@pumpkin-tech/pumpkin-tech-ng 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/esm2022/lib/components/action-dialog/action-dialog.component.mjs +2 -2
  2. package/esm2022/lib/components/badge/badge-stack.component.mjs +46 -0
  3. package/esm2022/lib/components/badge/badge.component.mjs +184 -0
  4. package/esm2022/lib/components/badge/index.mjs +3 -0
  5. package/esm2022/lib/components/button/button.component.mjs +3 -3
  6. package/esm2022/lib/components/input/input.component.mjs +227 -147
  7. package/esm2022/lib/components/input-currency/index.mjs +2 -0
  8. package/esm2022/lib/components/input-currency/input-currency.component.mjs +146 -0
  9. package/esm2022/lib/components/input-date/index.mjs +2 -0
  10. package/esm2022/lib/components/input-date/input-date.component.mjs +382 -0
  11. package/esm2022/lib/components/input-date-range/index.mjs +2 -0
  12. package/esm2022/lib/components/{input-date-picker-range/input-date-picker-range.component.mjs → input-date-range/input-date-range.component.mjs} +8 -9
  13. package/esm2022/lib/components/input-time/index.mjs +2 -0
  14. package/esm2022/lib/components/input-time/input-time.component.mjs +207 -0
  15. package/esm2022/lib/components/nav/nav.component.mjs +9 -2
  16. package/esm2022/lib/components/quantity-items/quantity-items.component.mjs +150 -46
  17. package/esm2022/lib/components/radio-group-entity/radio-group-entity.component.mjs +19 -3
  18. package/esm2022/lib/components/radio-group-enum/index.mjs +2 -0
  19. package/esm2022/lib/components/radio-group-enum/radio-group-enum.component.mjs +140 -0
  20. package/esm2022/lib/components/select-entity/select-entity.component.mjs +19 -3
  21. package/esm2022/lib/components/select-enum/select-enum.component.mjs +19 -3
  22. package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +19 -3
  23. package/esm2022/lib/components/textarea/index.mjs +2 -0
  24. package/esm2022/lib/components/textarea/textarea.component.mjs +213 -0
  25. package/esm2022/lib/layout/ptech-col.directive.mjs +102 -0
  26. package/esm2022/lib/layout/ptech-grid.directive.mjs +125 -0
  27. package/esm2022/lib/modules/directives.module.mjs +15 -5
  28. package/esm2022/lib/modules/pipes.module.mjs +1 -1
  29. package/esm2022/lib/modules/pumpkin-tech.module.mjs +49 -14
  30. package/esm2022/public-api.mjs +12 -3
  31. package/fesm2022/pumpkin-tech-pumpkin-tech-ng.mjs +2020 -322
  32. package/fesm2022/pumpkin-tech-pumpkin-tech-ng.mjs.map +1 -1
  33. package/lib/components/badge/badge-stack.component.d.ts +16 -0
  34. package/lib/components/badge/badge.component.d.ts +43 -0
  35. package/lib/components/badge/index.d.ts +2 -0
  36. package/lib/components/input/input.component.d.ts +8 -1
  37. package/lib/components/input-currency/index.d.ts +1 -0
  38. package/lib/components/input-currency/input-currency.component.d.ts +28 -0
  39. package/lib/components/input-date/index.d.ts +1 -0
  40. package/lib/components/input-date/input-date.component.d.ts +68 -0
  41. package/lib/components/input-date-range/index.d.ts +1 -0
  42. package/lib/components/{input-date-picker-range/input-date-picker-range.component.d.ts → input-date-range/input-date-range.component.d.ts} +3 -3
  43. package/lib/components/input-time/index.d.ts +1 -0
  44. package/lib/components/input-time/input-time.component.d.ts +37 -0
  45. package/lib/components/nav/nav.component.d.ts +2 -1
  46. package/lib/components/quantity-items/quantity-items.component.d.ts +26 -3
  47. package/lib/components/radio-group-entity/radio-group-entity.component.d.ts +4 -1
  48. package/lib/components/radio-group-enum/index.d.ts +1 -0
  49. package/lib/components/radio-group-enum/radio-group-enum.component.d.ts +44 -0
  50. package/lib/components/select-entity/select-entity.component.d.ts +4 -1
  51. package/lib/components/select-enum/select-enum.component.d.ts +4 -1
  52. package/lib/components/slide-toggle/slide-toggle.component.d.ts +4 -1
  53. package/lib/components/textarea/index.d.ts +1 -0
  54. package/lib/components/textarea/textarea.component.d.ts +54 -0
  55. package/lib/layout/ptech-col.directive.d.ts +25 -0
  56. package/lib/layout/ptech-grid.directive.d.ts +32 -0
  57. package/lib/modules/directives.module.d.ts +3 -1
  58. package/lib/modules/pumpkin-tech.module.d.ts +31 -25
  59. package/package.json +4 -2
  60. package/public-api.d.ts +10 -2
  61. package/pumpkin-tech-pumpkin-tech-ng-0.1.2.tgz +0 -0
  62. package/esm2022/lib/components/input-date-picker-range/index.mjs +0 -2
  63. package/esm2022/lib/components/radio-group/index.mjs +0 -2
  64. package/esm2022/lib/components/radio-group/radio-group.component.mjs +0 -74
  65. package/lib/components/input-date-picker-range/index.d.ts +0 -1
  66. package/lib/components/radio-group/index.d.ts +0 -1
  67. package/lib/components/radio-group/radio-group.component.d.ts +0 -20
@@ -1,66 +1,284 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, NgModule, EventEmitter, forwardRef, ElementRef, Component, ChangeDetectionStrategy, ViewChild, ContentChild, Output, Input, Inject, InjectionToken, Optional, Pipe, Directive, HostListener, inject } from '@angular/core';
3
- import * as i2 from '@angular/forms';
4
- import { FormsModule, ReactiveFormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
2
+ import { Directive, Input, HostBinding, Injectable, NgModule, EventEmitter, forwardRef, ElementRef, Component, ChangeDetectionStrategy, ViewChild, ContentChild, Output, HostListener, Inject, InjectionToken, Optional, Pipe, inject } from '@angular/core';
3
+ import * as i1 from '@angular/cdk/layout';
4
+ import * as i2$4 from 'rxjs';
5
+ import { Subject, BehaviorSubject, delay, tap, map, filter, of } from 'rxjs';
6
+ import { takeUntil, filter as filter$1, switchMap } from 'rxjs/operators';
5
7
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
6
- import * as i1 from '@angular/common';
8
+ import * as i2 from '@angular/forms';
9
+ import { FormsModule, ReactiveFormsModule, NG_VALUE_ACCESSOR, FormControl } from '@angular/forms';
10
+ import * as i1$1 from '@angular/common';
7
11
  import { CommonModule, CurrencyPipe, formatNumber, formatDate, formatCurrency } from '@angular/common';
8
12
  import * as i3$2 from '@angular/material/toolbar';
9
13
  import { MatToolbarModule } from '@angular/material/toolbar';
10
- import * as i4 from '@angular/material/sidenav';
14
+ import * as i4$1 from '@angular/material/sidenav';
11
15
  import { MatSidenavModule } from '@angular/material/sidenav';
12
16
  import * as i4$2 from '@angular/material/card';
13
17
  import { MatCardModule } from '@angular/material/card';
14
- import * as i5$2 from '@angular/material/list';
18
+ import * as i5$1 from '@angular/material/list';
15
19
  import { MatListModule } from '@angular/material/list';
16
20
  import * as i2$1 from '@angular/material/button';
17
21
  import { MatButtonModule } from '@angular/material/button';
18
- import * as i1$4 from '@angular/material/snack-bar';
22
+ import * as i1$5 from '@angular/material/snack-bar';
19
23
  import { MatSnackBarModule, MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';
20
24
  import * as i3 from '@angular/material/form-field';
21
25
  import { MatFormFieldModule } from '@angular/material/form-field';
22
- import * as i5 from '@angular/material/input';
26
+ import * as i4 from '@angular/material/input';
23
27
  import { MatInputModule } from '@angular/material/input';
24
28
  import { MatTableModule } from '@angular/material/table';
25
29
  import { MatPaginatorIntl, MatPaginatorModule } from '@angular/material/paginator';
26
30
  import { MatSortModule } from '@angular/material/sort';
27
31
  import * as i3$1 from '@angular/material/icon';
28
32
  import { MatIconModule } from '@angular/material/icon';
29
- import * as i6$1 from '@angular/material/divider';
33
+ import * as i6$2 from '@angular/material/divider';
30
34
  import { MatDividerModule } from '@angular/material/divider';
31
35
  import * as i7 from '@angular/material/tooltip';
32
36
  import { MatTooltipModule } from '@angular/material/tooltip';
33
37
  import * as i4$3 from '@angular/material/menu';
34
38
  import { MatMenuModule } from '@angular/material/menu';
35
- import * as i3$3 from '@angular/material/datepicker';
36
- import { MatDatepickerModule } from '@angular/material/datepicker';
37
- import * as i1$1 from '@angular/material/progress-bar';
39
+ import * as i3$4 from '@angular/material/datepicker';
40
+ import { MatDatepickerModule, MatDatepicker } from '@angular/material/datepicker';
41
+ import * as i1$2 from '@angular/material/progress-bar';
38
42
  import { MatProgressBarModule } from '@angular/material/progress-bar';
39
- import * as i1$2 from '@angular/material/slide-toggle';
43
+ import * as i1$3 from '@angular/material/slide-toggle';
40
44
  import { MatSlideToggleModule } from '@angular/material/slide-toggle';
41
- import * as i4$1 from '@angular/material/radio';
45
+ import * as i3$3 from '@angular/material/radio';
42
46
  import { MatRadioModule } from '@angular/material/radio';
43
- import * as i5$1 from '@angular/material/select';
47
+ import * as i5 from '@angular/material/select';
44
48
  import { MatSelectModule } from '@angular/material/select';
45
- import * as i1$3 from '@angular/material/dialog';
49
+ import * as i1$4 from '@angular/material/dialog';
46
50
  import { MatDialogModule, MAT_DIALOG_DATA } from '@angular/material/dialog';
47
51
  import * as i7$1 from '@angular/material/checkbox';
48
52
  import { MatCheckboxModule } from '@angular/material/checkbox';
49
- import * as i8 from '@angular/material/progress-spinner';
53
+ import * as i6 from '@angular/material/progress-spinner';
50
54
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
51
- import * as i6 from '@angular/material/core';
55
+ import * as i6$1 from '@angular/material/core';
52
56
  import { MAT_DATE_LOCALE, DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
53
57
  import { MomentDateAdapter, MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular/material-moment-adapter';
54
58
  import 'moment/locale/pt-br';
55
59
  import * as i2$2 from '@angular/router';
56
60
  import { RouterModule, NavigationEnd } from '@angular/router';
57
- import * as i2$4 from 'rxjs';
58
- import { BehaviorSubject, delay, tap, map, filter, of } from 'rxjs';
59
61
  import * as i2$3 from '@angular/platform-browser';
60
62
  import * as moment from 'moment';
61
- import { filter as filter$1, switchMap } from 'rxjs/operators';
63
+ import * as i6$3 from 'ngx-material-timepicker';
64
+ import { NgxMaterialTimepickerModule } from 'ngx-material-timepicker';
65
+ import { NgxCurrencyDirective } from 'ngx-currency';
62
66
  import { faker } from '@faker-js/faker';
63
67
 
68
+ const MEDIA$1 = {
69
+ xs: '(max-width: 599.98px)',
70
+ sm: '(min-width: 600px) and (max-width: 959.98px)',
71
+ md: '(min-width: 960px) and (max-width: 1279.98px)',
72
+ lg: '(min-width: 1280px) and (max-width: 1919.98px)',
73
+ xl: '(min-width: 1920px)',
74
+ };
75
+ class PtechGridDirective {
76
+ bp;
77
+ destroy$ = new Subject();
78
+ // --- base cols ---
79
+ _cols = 12;
80
+ set ptechCols(v) {
81
+ this._cols = this.asNum(v, 12); // sempre number
82
+ this.updateCols();
83
+ }
84
+ // --- breakpoints (opcionais) ---
85
+ ptechColsXs;
86
+ ptechColsSm;
87
+ ptechColsMd;
88
+ ptechColsLg;
89
+ ptechColsXl;
90
+ // --- gap ---
91
+ _gapPx = 12;
92
+ set ptechGap(v) {
93
+ this._gapPx = this.asNum(v, 12);
94
+ }
95
+ get gapCss() { return `${this._gapPx}px`; }
96
+ // --- vertical (1 coluna) ---
97
+ static ngAcceptInputType_ptechVertical;
98
+ _vertical = false;
99
+ set ptechVertical(v) {
100
+ this._vertical = coerceBooleanProperty(v);
101
+ this.updateCols();
102
+ }
103
+ // --- estilos base ---
104
+ display = 'grid';
105
+ columns = 'repeat(12, minmax(0, 1fr))';
106
+ activeBp = null;
107
+ constructor(bp) {
108
+ this.bp = bp;
109
+ this.bp.observe(Object.values(MEDIA$1))
110
+ .pipe(takeUntil(this.destroy$))
111
+ .subscribe(state => {
112
+ this.activeBp = this.pickActive(state.breakpoints);
113
+ this.updateCols();
114
+ });
115
+ }
116
+ ngOnDestroy() {
117
+ this.destroy$.next();
118
+ this.destroy$.complete();
119
+ }
120
+ pickActive(bps) {
121
+ const order = ['xl', 'lg', 'md', 'sm', 'xs']; // prioridade do maior pro menor
122
+ for (const key of order)
123
+ if (bps[MEDIA$1[key]])
124
+ return key;
125
+ return null;
126
+ }
127
+ updateCols() {
128
+ const cols = this._vertical ? 1 : this.resolveColsForBp();
129
+ this.columns = `repeat(${cols}, minmax(0, 1fr))`;
130
+ }
131
+ resolveColsForBp() {
132
+ const map = {
133
+ xs: this.asNum(this.ptechColsXs),
134
+ sm: this.asNum(this.ptechColsSm),
135
+ md: this.asNum(this.ptechColsMd),
136
+ lg: this.asNum(this.ptechColsLg),
137
+ xl: this.asNum(this.ptechColsXl),
138
+ };
139
+ const bp = this.activeBp;
140
+ const span = bp ? map[bp] : undefined;
141
+ return span ?? this._cols ?? 12;
142
+ }
143
+ asNum(v, fallback) {
144
+ if (v === null || v === undefined || v === '')
145
+ return fallback;
146
+ const n = typeof v === 'string' ? +v : v;
147
+ return Number.isFinite(n) ? n : fallback;
148
+ }
149
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PtechGridDirective, deps: [{ token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Directive });
150
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: PtechGridDirective, isStandalone: true, selector: "[ptechGrid]", inputs: { ptechCols: "ptechCols", ptechColsXs: "ptechColsXs", ptechColsSm: "ptechColsSm", ptechColsMd: "ptechColsMd", ptechColsLg: "ptechColsLg", ptechColsXl: "ptechColsXl", ptechGap: "ptechGap", ptechVertical: "ptechVertical" }, host: { properties: { "style.gap": "this.gapCss", "style.display": "this.display", "style.gridTemplateColumns": "this.columns" } }, ngImport: i0 });
151
+ }
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PtechGridDirective, decorators: [{
153
+ type: Directive,
154
+ args: [{
155
+ selector: '[ptechGrid]',
156
+ standalone: true,
157
+ }]
158
+ }], ctorParameters: () => [{ type: i1.BreakpointObserver }], propDecorators: { ptechCols: [{
159
+ type: Input
160
+ }], ptechColsXs: [{
161
+ type: Input
162
+ }], ptechColsSm: [{
163
+ type: Input
164
+ }], ptechColsMd: [{
165
+ type: Input
166
+ }], ptechColsLg: [{
167
+ type: Input
168
+ }], ptechColsXl: [{
169
+ type: Input
170
+ }], ptechGap: [{
171
+ type: Input,
172
+ args: ['ptechGap']
173
+ }], gapCss: [{
174
+ type: HostBinding,
175
+ args: ['style.gap']
176
+ }], ptechVertical: [{
177
+ type: Input
178
+ }], display: [{
179
+ type: HostBinding,
180
+ args: ['style.display']
181
+ }], columns: [{
182
+ type: HostBinding,
183
+ args: ['style.gridTemplateColumns']
184
+ }] } });
185
+
186
+ const MEDIA = {
187
+ xs: '(max-width: 599.98px)',
188
+ sm: '(min-width: 600px) and (max-width: 959.98px)',
189
+ md: '(min-width: 960px) and (max-width: 1279.98px)',
190
+ lg: '(min-width: 1280px) and (max-width: 1919.98px)',
191
+ xl: '(min-width: 1920px)',
192
+ };
193
+ class PtechColDirective {
194
+ bp;
195
+ destroy$ = new Subject();
196
+ // base
197
+ _col = 12;
198
+ set ptechCol(v) {
199
+ this._col = this.asNum(v, 12); // aqui garantimos number com fallback 12
200
+ this.updateSpan();
201
+ }
202
+ // breakpoints (opcionais)
203
+ ptechColXs;
204
+ ptechColSm;
205
+ ptechColMd;
206
+ ptechColLg;
207
+ ptechColXl;
208
+ activeBp = null;
209
+ gridColumn = 'span 12 / auto';
210
+ minWidth = '0';
211
+ constructor(bp) {
212
+ this.bp = bp;
213
+ this.bp.observe(Object.values(MEDIA))
214
+ .pipe(takeUntil(this.destroy$))
215
+ .subscribe(state => {
216
+ this.activeBp = this.pickActive(state.breakpoints);
217
+ this.updateSpan();
218
+ });
219
+ }
220
+ ngOnDestroy() {
221
+ this.destroy$.next();
222
+ this.destroy$.complete();
223
+ }
224
+ pickActive(bps) {
225
+ const order = ['xl', 'lg', 'md', 'sm', 'xs'];
226
+ for (const key of order)
227
+ if (bps[MEDIA[key]])
228
+ return key;
229
+ return null;
230
+ }
231
+ updateSpan() {
232
+ const span = this.resolveColForBp();
233
+ this.gridColumn = `span ${span} / auto`;
234
+ }
235
+ resolveColForBp() {
236
+ const map = {
237
+ xs: this.asNum(this.ptechColXs),
238
+ sm: this.asNum(this.ptechColSm),
239
+ md: this.asNum(this.ptechColMd),
240
+ lg: this.asNum(this.ptechColLg),
241
+ xl: this.asNum(this.ptechColXl),
242
+ };
243
+ const bp = this.activeBp;
244
+ const span = bp ? map[bp] : undefined;
245
+ return span ?? this._col ?? 12;
246
+ }
247
+ asNum(v, fallback) {
248
+ if (v === null || v === undefined || v === '')
249
+ return fallback;
250
+ const n = typeof v === 'string' ? +v : v;
251
+ return Number.isFinite(n) ? n : fallback;
252
+ }
253
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PtechColDirective, deps: [{ token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Directive });
254
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: PtechColDirective, isStandalone: true, selector: "[ptechCol]", inputs: { ptechCol: "ptechCol", ptechColXs: "ptechColXs", ptechColSm: "ptechColSm", ptechColMd: "ptechColMd", ptechColLg: "ptechColLg", ptechColXl: "ptechColXl" }, host: { properties: { "style.gridColumn": "this.gridColumn", "style.minWidth": "this.minWidth" } }, ngImport: i0 });
255
+ }
256
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PtechColDirective, decorators: [{
257
+ type: Directive,
258
+ args: [{
259
+ selector: '[ptechCol]',
260
+ standalone: true,
261
+ }]
262
+ }], ctorParameters: () => [{ type: i1.BreakpointObserver }], propDecorators: { ptechCol: [{
263
+ type: Input
264
+ }], ptechColXs: [{
265
+ type: Input
266
+ }], ptechColSm: [{
267
+ type: Input
268
+ }], ptechColMd: [{
269
+ type: Input
270
+ }], ptechColLg: [{
271
+ type: Input
272
+ }], ptechColXl: [{
273
+ type: Input
274
+ }], gridColumn: [{
275
+ type: HostBinding,
276
+ args: ['style.gridColumn']
277
+ }], minWidth: [{
278
+ type: HostBinding,
279
+ args: ['style.minWidth']
280
+ }] } });
281
+
64
282
  class PortugueseMatPaginatorIntl extends MatPaginatorIntl {
65
283
  itemsPerPageLabel = 'Itens por página';
66
284
  nextPageLabel = 'Próxima página';
@@ -250,6 +468,10 @@ class InputComponent {
250
468
  iconHeight = '';
251
469
  /** Tamanho “real” do glifo */
252
470
  iconSize = '';
471
+ /** Lado do ícone */
472
+ iconPosition = 'right';
473
+ /** Força fallback fixo (absoluto) para o lado escolhido */
474
+ forceFixedIcon = false;
253
475
  /** Tooltip (no field quando sem ícone; no ícone quando há ícone) */
254
476
  tooltip = '';
255
477
  /** Acessibilidade */
@@ -259,6 +481,16 @@ class InputComponent {
259
481
  inputmode; // ex.: "numeric", "decimal"
260
482
  pattern; // regex do HTML
261
483
  fullWidth = true;
484
+ // --- GRID COL (1..12) ---
485
+ _col = 12;
486
+ set ptechCol(v) {
487
+ const n = typeof v === 'string' ? parseInt(v, 10) : v ?? 12;
488
+ this._col = Number.isFinite(n) ? Math.min(Math.max(+n, 1), 12) : 12;
489
+ }
490
+ get gridColumn() {
491
+ // “span N” funciona dentro de qualquer CSS grid
492
+ return `span ${this._col}`;
493
+ }
262
494
  _val;
263
495
  ngOnInit() { }
264
496
  get value() { return this._val; }
@@ -293,181 +525,237 @@ class InputComponent {
293
525
  return (c === 'primary' || c === 'accent' || c === 'warn') ? null : c;
294
526
  }
295
527
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
296
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InputComponent, isStandalone: true, selector: "ptech-input", inputs: { required: "required", label: "label", placeholder: "placeholder", disabled: "disabled", readonly: "readonly", maxlength: "maxlength", min: "min", max: "max", type: "type", name: "name", appearance: "appearance", loading: "loading", icon: "icon", iconColor: "iconColor", iconWidth: "iconWidth", iconHeight: "iconHeight", iconSize: "iconSize", tooltip: "tooltip", ariaLabel: "ariaLabel", autocomplete: "autocomplete", inputmode: "inputmode", pattern: "pattern", fullWidth: "fullWidth" }, outputs: { buttonClick: "buttonClick" }, providers: [{
528
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InputComponent, isStandalone: true, selector: "ptech-input", inputs: { required: "required", label: "label", placeholder: "placeholder", disabled: "disabled", readonly: "readonly", maxlength: "maxlength", min: "min", max: "max", type: "type", name: "name", appearance: "appearance", loading: "loading", icon: "icon", iconColor: "iconColor", iconWidth: "iconWidth", iconHeight: "iconHeight", iconSize: "iconSize", iconPosition: "iconPosition", forceFixedIcon: "forceFixedIcon", tooltip: "tooltip", ariaLabel: "ariaLabel", autocomplete: "autocomplete", inputmode: "inputmode", pattern: "pattern", fullWidth: "fullWidth", ptechCol: "ptechCol" }, outputs: { buttonClick: "buttonClick" }, host: { properties: { "style.grid-column": "this.gridColumn" } }, providers: [{
297
529
  provide: NG_VALUE_ACCESSOR,
298
530
  useExisting: forwardRef(() => InputComponent),
299
531
  multi: true
300
532
  }], queries: [{ propertyName: "suffixRef", first: true, predicate: ["suffix"], descendants: true }], viewQueries: [{ propertyName: "_elementRef", first: true, predicate: ["inputElem"], descendants: true, read: ElementRef }], ngImport: i0, template: `
301
533
  <div class="ptech-input-container" [class.full-width]="fullWidth">
302
534
  <mat-form-field
303
- [appearance]="appearance"
304
- class="ptech-form-field"
305
- [matTooltip]="!icon ? tooltip : null"
306
- [matTooltipDisabled]="!tooltip || !!icon"
307
- >
308
- <mat-label>
309
- {{ label }}
310
- <span *ngIf="required" aria-hidden="true">*</span>
311
- </mat-label>
535
+ [appearance]="appearance"
536
+ class="ptech-form-field"
537
+ [ngClass]="{
538
+ 'icon-suffix': !!icon && iconPosition === 'right',
539
+ 'icon-prefix': !!icon && iconPosition === 'left',
540
+ 'force-icon-right': forceFixedIcon && iconPosition === 'right',
541
+ 'force-icon-left': forceFixedIcon && iconPosition === 'left'
542
+ }"
543
+ [matTooltip]="!icon ? tooltip : null"
544
+ [matTooltipDisabled]="!tooltip || !!icon"
545
+ >
546
+
547
+ <mat-label>
548
+ {{ label }} <span *ngIf="required" aria-hidden="true">*</span>
549
+ </mat-label>
550
+
551
+ <!-- PREFIX projetado -->
552
+ <ng-content select="[matPrefix]"></ng-content>
553
+
554
+ <!-- Ícone à ESQUERDA (prefix) -->
555
+ <button
556
+ *ngIf="icon && iconPosition === 'left'"
557
+ mat-icon-button
558
+ matPrefix
559
+ type="button"
560
+ (click)="onButtonClick()"
561
+ [matTooltip]="tooltip"
562
+ [matTooltipDisabled]="!tooltip"
563
+ [attr.aria-label]="ariaLabel || label || icon"
564
+ >
565
+ <mat-icon
566
+ [ngClass]="{
567
+ 'mat-primary': isThemeColor(iconColor, 'primary'),
568
+ 'mat-accent': isThemeColor(iconColor, 'accent'),
569
+ 'mat-warn': isThemeColor(iconColor, 'warn')
570
+ }"
571
+ [style.color]="customIconColor"
572
+ [style.fontSize]="iconSize || null"
573
+ [style.width]="iconWidth || null"
574
+ [style.height]="iconHeight || null"
575
+ >
576
+ {{ icon }}
577
+ </mat-icon>
578
+ </button>
312
579
 
313
- <!-- prefix projetado -->
314
- <ng-content select="[matPrefix]"></ng-content>
580
+ <!-- spinner no prefix quando loading -->
581
+ <mat-spinner *ngIf="loading" matPrefix mode="indeterminate" diameter="17"></mat-spinner>
315
582
 
316
- <!-- spinner no prefix quando loading -->
317
- <mat-spinner
318
- *ngIf="loading"
319
- matPrefix
320
- mode="indeterminate"
321
- diameter="17">
322
- </mat-spinner>
583
+ <input
584
+ #inputElem
585
+ matInput
586
+ [placeholder]="placeholder"
587
+ [required]="required"
588
+ [disabled]="disabled || loading"
589
+ [(ngModel)]="value"
590
+ [type]="type"
591
+ [attr.name]="name"
592
+ [attr.min]="min"
593
+ [attr.max]="max"
594
+ [attr.maxlength]="maxlength"
595
+ [readonly]="readonly"
596
+ [attr.inputmode]="inputmode || null"
597
+ [attr.pattern]="pattern || null"
598
+ [attr.autocomplete]="autocomplete || 'off'"
599
+ />
323
600
 
324
- <input
325
- #inputElem
326
- matInput
327
- [placeholder]="placeholder"
328
- [required]="required"
329
- [disabled]="disabled || loading"
330
- [(ngModel)]="value"
331
- [type]="type"
332
- [attr.name]="name"
333
- [attr.min]="min"
334
- [attr.max]="max"
335
- [attr.maxlength]="maxlength"
336
- [readonly]="readonly"
337
- [attr.inputmode]="inputmode || null"
338
- [attr.pattern]="pattern || null"
339
- [attr.autocomplete]="autocomplete || 'off'"
340
- />
601
+ <!-- Ícone à DIREITA (suffix) -->
602
+ <button
603
+ *ngIf="icon && iconPosition === 'right'; else projectedSuffix"
604
+ mat-icon-button
605
+ matSuffix
606
+ type="button"
607
+ (click)="onButtonClick()"
608
+ [matTooltip]="tooltip"
609
+ [matTooltipDisabled]="!tooltip"
610
+ [attr.aria-label]="ariaLabel || label || icon"
611
+ >
612
+ <mat-icon
613
+ [ngClass]="{
614
+ 'mat-primary': isThemeColor(iconColor, 'primary'),
615
+ 'mat-accent': isThemeColor(iconColor, 'accent'),
616
+ 'mat-warn': isThemeColor(iconColor, 'warn')
617
+ }"
618
+ [style.color]="customIconColor"
619
+ [style.fontSize]="iconSize || null"
620
+ [style.width]="iconWidth || null"
621
+ [style.height]="iconHeight || null"
622
+ >
623
+ {{ icon }}
624
+ </mat-icon>
625
+ </button>
341
626
 
342
- <!-- Suffix: preferimos o ícone local; se não houver, renderiza template 'suffix' ou qualquer [matSuffix] projetado -->
343
- <ng-container *ngIf="icon; else projectedSuffix">
344
- <button
345
- mat-icon-button
346
- matSuffix
347
- type="button"
348
- (click)="onButtonClick()"
349
- [matTooltip]="tooltip"
350
- [matTooltipDisabled]="!tooltip"
351
- [attr.aria-label]="ariaLabel || label || icon"
352
- >
353
- <mat-icon
354
- [ngClass]="{
355
- 'mat-primary': isThemeColor(iconColor, 'primary'),
356
- 'mat-accent': isThemeColor(iconColor, 'accent'),
357
- 'mat-warn': isThemeColor(iconColor, 'warn')
358
- }"
359
- [style.color]="customIconColor"
360
- [style.fontSize]="iconSize || null"
361
- [style.width]="iconWidth || null"
362
- [style.height]="iconHeight || null"
363
- >
364
- {{ icon }}
365
- </mat-icon>
366
- </button>
367
- </ng-container>
368
-
369
- <ng-template #projectedSuffix>
370
- <ng-container *ngIf="suffixRef">
371
- <ng-container [ngTemplateOutlet]="suffixRef"></ng-container>
372
- </ng-container>
373
- <ng-content select="[matSuffix]"></ng-content>
374
- </ng-template>
627
+ <!-- Suffix projetável -->
628
+ <ng-template #projectedSuffix>
629
+ <ng-container *ngIf="suffixRef">
630
+ <ng-container [ngTemplateOutlet]="suffixRef"></ng-container>
631
+ </ng-container>
632
+ <ng-content select="[matSuffix]"></ng-content>
633
+ </ng-template>
634
+
635
+ <!-- Hints/Errors -->
636
+ <ng-content select="mat-hint, [mat-hint]"></ng-content>
637
+ <ng-content select="mat-error, [mat-error]"></ng-content>
638
+ </mat-form-field>
375
639
 
376
- <!-- Hints/Errors projetáveis -->
377
- <ng-content select="mat-hint, [mat-hint]"></ng-content>
378
- <ng-content select="mat-error, [mat-error]"></ng-content>
379
- </mat-form-field>
380
640
  </div>
381
- `, isInline: true, styles: [".ptech-input-container{display:flex;flex-direction:column;width:100%}.ptech-input-container.full-width .ptech-form-field,.ptech-form-field{width:100%}@media (max-width: 768px){.ptech-input-container{width:100%!important}}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: i8.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
641
+ `, isInline: true, styles: [".ptech-input-container{display:flex;flex-direction:row;width:100%}.ptech-input-container.full-width .ptech-form-field,.ptech-form-field{width:100%}:host ::ng-deep .ptech-form-field.force-icon-right{position:relative}:host ::ng-deep .ptech-form-field.force-icon-right button[mat-icon-button][matSuffix]{position:absolute;right:10px;top:50%;transform:translateY(-50%)}:host ::ng-deep .ptech-form-field.force-icon-left{position:relative}:host ::ng-deep .ptech-form-field.force-icon-left button[mat-icon-button][matPrefix]{position:absolute;left:8px;top:50%;transform:translateY(-50%)}:host ::ng-deep button.mat-mdc-icon-button{top:3px;width:auto;min-width:40px;height:40px;padding:0}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: i6.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
382
642
  }
383
643
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputComponent, decorators: [{
384
644
  type: Component,
385
645
  args: [{ selector: 'ptech-input', standalone: true, imports: [CoreMaterialModule], template: `
386
646
  <div class="ptech-input-container" [class.full-width]="fullWidth">
387
647
  <mat-form-field
388
- [appearance]="appearance"
389
- class="ptech-form-field"
390
- [matTooltip]="!icon ? tooltip : null"
391
- [matTooltipDisabled]="!tooltip || !!icon"
392
- >
393
- <mat-label>
394
- {{ label }}
395
- <span *ngIf="required" aria-hidden="true">*</span>
396
- </mat-label>
648
+ [appearance]="appearance"
649
+ class="ptech-form-field"
650
+ [ngClass]="{
651
+ 'icon-suffix': !!icon && iconPosition === 'right',
652
+ 'icon-prefix': !!icon && iconPosition === 'left',
653
+ 'force-icon-right': forceFixedIcon && iconPosition === 'right',
654
+ 'force-icon-left': forceFixedIcon && iconPosition === 'left'
655
+ }"
656
+ [matTooltip]="!icon ? tooltip : null"
657
+ [matTooltipDisabled]="!tooltip || !!icon"
658
+ >
659
+
660
+ <mat-label>
661
+ {{ label }} <span *ngIf="required" aria-hidden="true">*</span>
662
+ </mat-label>
663
+
664
+ <!-- PREFIX projetado -->
665
+ <ng-content select="[matPrefix]"></ng-content>
666
+
667
+ <!-- Ícone à ESQUERDA (prefix) -->
668
+ <button
669
+ *ngIf="icon && iconPosition === 'left'"
670
+ mat-icon-button
671
+ matPrefix
672
+ type="button"
673
+ (click)="onButtonClick()"
674
+ [matTooltip]="tooltip"
675
+ [matTooltipDisabled]="!tooltip"
676
+ [attr.aria-label]="ariaLabel || label || icon"
677
+ >
678
+ <mat-icon
679
+ [ngClass]="{
680
+ 'mat-primary': isThemeColor(iconColor, 'primary'),
681
+ 'mat-accent': isThemeColor(iconColor, 'accent'),
682
+ 'mat-warn': isThemeColor(iconColor, 'warn')
683
+ }"
684
+ [style.color]="customIconColor"
685
+ [style.fontSize]="iconSize || null"
686
+ [style.width]="iconWidth || null"
687
+ [style.height]="iconHeight || null"
688
+ >
689
+ {{ icon }}
690
+ </mat-icon>
691
+ </button>
397
692
 
398
- <!-- prefix projetado -->
399
- <ng-content select="[matPrefix]"></ng-content>
693
+ <!-- spinner no prefix quando loading -->
694
+ <mat-spinner *ngIf="loading" matPrefix mode="indeterminate" diameter="17"></mat-spinner>
400
695
 
401
- <!-- spinner no prefix quando loading -->
402
- <mat-spinner
403
- *ngIf="loading"
404
- matPrefix
405
- mode="indeterminate"
406
- diameter="17">
407
- </mat-spinner>
696
+ <input
697
+ #inputElem
698
+ matInput
699
+ [placeholder]="placeholder"
700
+ [required]="required"
701
+ [disabled]="disabled || loading"
702
+ [(ngModel)]="value"
703
+ [type]="type"
704
+ [attr.name]="name"
705
+ [attr.min]="min"
706
+ [attr.max]="max"
707
+ [attr.maxlength]="maxlength"
708
+ [readonly]="readonly"
709
+ [attr.inputmode]="inputmode || null"
710
+ [attr.pattern]="pattern || null"
711
+ [attr.autocomplete]="autocomplete || 'off'"
712
+ />
408
713
 
409
- <input
410
- #inputElem
411
- matInput
412
- [placeholder]="placeholder"
413
- [required]="required"
414
- [disabled]="disabled || loading"
415
- [(ngModel)]="value"
416
- [type]="type"
417
- [attr.name]="name"
418
- [attr.min]="min"
419
- [attr.max]="max"
420
- [attr.maxlength]="maxlength"
421
- [readonly]="readonly"
422
- [attr.inputmode]="inputmode || null"
423
- [attr.pattern]="pattern || null"
424
- [attr.autocomplete]="autocomplete || 'off'"
425
- />
714
+ <!-- Ícone à DIREITA (suffix) -->
715
+ <button
716
+ *ngIf="icon && iconPosition === 'right'; else projectedSuffix"
717
+ mat-icon-button
718
+ matSuffix
719
+ type="button"
720
+ (click)="onButtonClick()"
721
+ [matTooltip]="tooltip"
722
+ [matTooltipDisabled]="!tooltip"
723
+ [attr.aria-label]="ariaLabel || label || icon"
724
+ >
725
+ <mat-icon
726
+ [ngClass]="{
727
+ 'mat-primary': isThemeColor(iconColor, 'primary'),
728
+ 'mat-accent': isThemeColor(iconColor, 'accent'),
729
+ 'mat-warn': isThemeColor(iconColor, 'warn')
730
+ }"
731
+ [style.color]="customIconColor"
732
+ [style.fontSize]="iconSize || null"
733
+ [style.width]="iconWidth || null"
734
+ [style.height]="iconHeight || null"
735
+ >
736
+ {{ icon }}
737
+ </mat-icon>
738
+ </button>
426
739
 
427
- <!-- Suffix: preferimos o ícone local; se não houver, renderiza template 'suffix' ou qualquer [matSuffix] projetado -->
428
- <ng-container *ngIf="icon; else projectedSuffix">
429
- <button
430
- mat-icon-button
431
- matSuffix
432
- type="button"
433
- (click)="onButtonClick()"
434
- [matTooltip]="tooltip"
435
- [matTooltipDisabled]="!tooltip"
436
- [attr.aria-label]="ariaLabel || label || icon"
437
- >
438
- <mat-icon
439
- [ngClass]="{
440
- 'mat-primary': isThemeColor(iconColor, 'primary'),
441
- 'mat-accent': isThemeColor(iconColor, 'accent'),
442
- 'mat-warn': isThemeColor(iconColor, 'warn')
443
- }"
444
- [style.color]="customIconColor"
445
- [style.fontSize]="iconSize || null"
446
- [style.width]="iconWidth || null"
447
- [style.height]="iconHeight || null"
448
- >
449
- {{ icon }}
450
- </mat-icon>
451
- </button>
452
- </ng-container>
453
-
454
- <ng-template #projectedSuffix>
455
- <ng-container *ngIf="suffixRef">
456
- <ng-container [ngTemplateOutlet]="suffixRef"></ng-container>
457
- </ng-container>
458
- <ng-content select="[matSuffix]"></ng-content>
459
- </ng-template>
740
+ <!-- Suffix projetável -->
741
+ <ng-template #projectedSuffix>
742
+ <ng-container *ngIf="suffixRef">
743
+ <ng-container [ngTemplateOutlet]="suffixRef"></ng-container>
744
+ </ng-container>
745
+ <ng-content select="[matSuffix]"></ng-content>
746
+ </ng-template>
747
+
748
+ <!-- Hints/Errors -->
749
+ <ng-content select="mat-hint, [mat-hint]"></ng-content>
750
+ <ng-content select="mat-error, [mat-error]"></ng-content>
751
+ </mat-form-field>
460
752
 
461
- <!-- Hints/Errors projetáveis -->
462
- <ng-content select="mat-hint, [mat-hint]"></ng-content>
463
- <ng-content select="mat-error, [mat-error]"></ng-content>
464
- </mat-form-field>
465
753
  </div>
466
754
  `, providers: [{
467
755
  provide: NG_VALUE_ACCESSOR,
468
756
  useExisting: forwardRef(() => InputComponent),
469
757
  multi: true
470
- }], changeDetection: ChangeDetectionStrategy.OnPush, styles: [".ptech-input-container{display:flex;flex-direction:column;width:100%}.ptech-input-container.full-width .ptech-form-field,.ptech-form-field{width:100%}@media (max-width: 768px){.ptech-input-container{width:100%!important}}\n"] }]
758
+ }], changeDetection: ChangeDetectionStrategy.OnPush, styles: [".ptech-input-container{display:flex;flex-direction:row;width:100%}.ptech-input-container.full-width .ptech-form-field,.ptech-form-field{width:100%}:host ::ng-deep .ptech-form-field.force-icon-right{position:relative}:host ::ng-deep .ptech-form-field.force-icon-right button[mat-icon-button][matSuffix]{position:absolute;right:10px;top:50%;transform:translateY(-50%)}:host ::ng-deep .ptech-form-field.force-icon-left{position:relative}:host ::ng-deep .ptech-form-field.force-icon-left button[mat-icon-button][matPrefix]{position:absolute;left:8px;top:50%;transform:translateY(-50%)}:host ::ng-deep button.mat-mdc-icon-button{top:3px;width:auto;min-width:40px;height:40px;padding:0}\n"] }]
471
759
  }], propDecorators: { _elementRef: [{
472
760
  type: ViewChild,
473
761
  args: ['inputElem', { static: false, read: ElementRef }]
@@ -510,6 +798,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
510
798
  type: Input
511
799
  }], iconSize: [{
512
800
  type: Input
801
+ }], iconPosition: [{
802
+ type: Input
803
+ }], forceFixedIcon: [{
804
+ type: Input
513
805
  }], tooltip: [{
514
806
  type: Input
515
807
  }], ariaLabel: [{
@@ -522,6 +814,214 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
522
814
  type: Input
523
815
  }], fullWidth: [{
524
816
  type: Input
817
+ }], ptechCol: [{
818
+ type: Input,
819
+ args: ['ptechCol']
820
+ }], gridColumn: [{
821
+ type: HostBinding,
822
+ args: ['style.grid-column']
823
+ }] } });
824
+
825
+ class TextareaComponent {
826
+ taRef;
827
+ // Boolean coercion
828
+ static ngAcceptInputType_required;
829
+ static ngAcceptInputType_disabled;
830
+ static ngAcceptInputType_loading;
831
+ static ngAcceptInputType_fullWidth;
832
+ static ngAcceptInputType_showCounter;
833
+ _required = false;
834
+ get required() { return this._required; }
835
+ set required(v) { this._required = coerceBooleanProperty(v); }
836
+ _disabled = false;
837
+ get disabled() { return this._disabled; }
838
+ set disabled(v) { this._disabled = coerceBooleanProperty(v); }
839
+ _loading = false;
840
+ get loading() { return this._loading; }
841
+ set loading(v) { this._loading = coerceBooleanProperty(v); }
842
+ _fullWidth = true;
843
+ get fullWidth() { return this._fullWidth; }
844
+ set fullWidth(v) { this._fullWidth = coerceBooleanProperty(v); }
845
+ _showCounter = true;
846
+ get showCounter() { return this._showCounter; }
847
+ set showCounter(v) { this._showCounter = coerceBooleanProperty(v); }
848
+ // Inputs visuais
849
+ label = '';
850
+ placeholder = '';
851
+ maxlength = 3000;
852
+ rows = 2;
853
+ appearance = 'outline';
854
+ tooltip = '';
855
+ name = '';
856
+ autocomplete = 'off';
857
+ /** CSS resize: 'none' | 'vertical' | 'horizontal' | 'both' */
858
+ resize = 'vertical';
859
+ allowHorizontalResize = false;
860
+ // --- GRID COL (1..12) ---
861
+ _col = 12;
862
+ set ptechCol(v) {
863
+ const n = typeof v === 'string' ? parseInt(v, 10) : v ?? 12;
864
+ this._col = Number.isFinite(n) ? Math.min(Math.max(+n, 1), 12) : 12;
865
+ }
866
+ get gridColumn() {
867
+ // “span N” funciona dentro de qualquer CSS grid
868
+ return `span ${this._col}`;
869
+ }
870
+ // CVA
871
+ _val = '';
872
+ get value() { return this._val; }
873
+ set value(v) {
874
+ if (v !== this._val) {
875
+ this._val = v;
876
+ this.onChange(v);
877
+ this.onTouch();
878
+ }
879
+ }
880
+ onChange = () => { };
881
+ onTouch = () => { };
882
+ writeValue(value) {
883
+ this._val = value ?? '';
884
+ // sincroniza visualmente se precisar
885
+ const el = this.taRef?.nativeElement;
886
+ if (el && el.value !== this._val)
887
+ el.value = this._val;
888
+ }
889
+ registerOnChange(fn) { this.onChange = fn; }
890
+ registerOnTouched(fn) { this.onTouch = fn; }
891
+ setDisabledState(isDisabled) { this.disabled = isDisabled; }
892
+ // helper opcional: qual resize aplicar de fato
893
+ get effectiveResize() {
894
+ return this.allowHorizontalResize ? (this.resize ?? 'horizontal') : 'vertical';
895
+ }
896
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextareaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
897
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: TextareaComponent, isStandalone: true, selector: "ptech-textarea", inputs: { required: "required", disabled: "disabled", loading: "loading", fullWidth: "fullWidth", showCounter: "showCounter", label: "label", placeholder: "placeholder", maxlength: "maxlength", rows: "rows", appearance: "appearance", tooltip: "tooltip", name: "name", autocomplete: "autocomplete", resize: "resize", allowHorizontalResize: "allowHorizontalResize", ptechCol: "ptechCol" }, host: { properties: { "style.grid-column": "this.gridColumn" } }, providers: [{
898
+ provide: NG_VALUE_ACCESSOR,
899
+ useExisting: forwardRef(() => TextareaComponent),
900
+ multi: true
901
+ }], viewQueries: [{ propertyName: "taRef", first: true, predicate: ["ta"], descendants: true }], ngImport: i0, template: `
902
+ <div class="ptech-textarea-container" [class.full-width]="fullWidth">
903
+ <mat-form-field class="ptech-form-field" [appearance]="appearance"
904
+ [matTooltip]="tooltip || null" [matTooltipDisabled]="!tooltip">
905
+
906
+ <mat-label>
907
+ {{ label }}
908
+ <span *ngIf="required" aria-hidden="true">*</span>
909
+ </mat-label>
910
+
911
+ <mat-spinner *ngIf="loading" matPrefix mode="indeterminate" diameter="17"></mat-spinner>
912
+
913
+ <textarea
914
+ #ta
915
+ matInput
916
+ [placeholder]="placeholder"
917
+ [required]="required"
918
+ [disabled]="disabled || loading"
919
+ [(ngModel)]="value"
920
+ (blur)="onTouch()"
921
+ [maxlength]="maxlength"
922
+ [rows]="rows"
923
+ [attr.name]="name || null"
924
+ [attr.autocomplete]="autocomplete"
925
+ [style.resize]="effectiveResize"
926
+ [class.resizable-h]="allowHorizontalResize"
927
+ [class.stretch]="!allowHorizontalResize"
928
+ ></textarea>
929
+
930
+ <!-- contador de caracteres (opcional) -->
931
+ <mat-hint *ngIf="showCounter && maxlength" align="end">
932
+ {{ (value?.length || 0) }} / {{ maxlength }}
933
+ </mat-hint>
934
+
935
+ <!-- projeção de hints / errors -->
936
+ <ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
937
+ </mat-form-field>
938
+ </div>
939
+ `, isInline: true, styles: [".ptech-textarea-container{width:100%;display:flex;flex-direction:column}.ptech-form-field{width:100%}textarea[matInput].stretch{width:100%;box-sizing:border-box}.ptech-form-field.shrink-width{width:auto;max-width:100%;display:inline-block}textarea[matInput].resizable-h{width:auto;max-width:100%;box-sizing:border-box}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i7.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: i6.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
940
+ }
941
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextareaComponent, decorators: [{
942
+ type: Component,
943
+ args: [{ selector: 'ptech-textarea', standalone: true, imports: [CoreMaterialModule], providers: [{
944
+ provide: NG_VALUE_ACCESSOR,
945
+ useExisting: forwardRef(() => TextareaComponent),
946
+ multi: true
947
+ }], changeDetection: ChangeDetectionStrategy.OnPush, template: `
948
+ <div class="ptech-textarea-container" [class.full-width]="fullWidth">
949
+ <mat-form-field class="ptech-form-field" [appearance]="appearance"
950
+ [matTooltip]="tooltip || null" [matTooltipDisabled]="!tooltip">
951
+
952
+ <mat-label>
953
+ {{ label }}
954
+ <span *ngIf="required" aria-hidden="true">*</span>
955
+ </mat-label>
956
+
957
+ <mat-spinner *ngIf="loading" matPrefix mode="indeterminate" diameter="17"></mat-spinner>
958
+
959
+ <textarea
960
+ #ta
961
+ matInput
962
+ [placeholder]="placeholder"
963
+ [required]="required"
964
+ [disabled]="disabled || loading"
965
+ [(ngModel)]="value"
966
+ (blur)="onTouch()"
967
+ [maxlength]="maxlength"
968
+ [rows]="rows"
969
+ [attr.name]="name || null"
970
+ [attr.autocomplete]="autocomplete"
971
+ [style.resize]="effectiveResize"
972
+ [class.resizable-h]="allowHorizontalResize"
973
+ [class.stretch]="!allowHorizontalResize"
974
+ ></textarea>
975
+
976
+ <!-- contador de caracteres (opcional) -->
977
+ <mat-hint *ngIf="showCounter && maxlength" align="end">
978
+ {{ (value?.length || 0) }} / {{ maxlength }}
979
+ </mat-hint>
980
+
981
+ <!-- projeção de hints / errors -->
982
+ <ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
983
+ </mat-form-field>
984
+ </div>
985
+ `, styles: [".ptech-textarea-container{width:100%;display:flex;flex-direction:column}.ptech-form-field{width:100%}textarea[matInput].stretch{width:100%;box-sizing:border-box}.ptech-form-field.shrink-width{width:auto;max-width:100%;display:inline-block}textarea[matInput].resizable-h{width:auto;max-width:100%;box-sizing:border-box}\n"] }]
986
+ }], propDecorators: { taRef: [{
987
+ type: ViewChild,
988
+ args: ['ta', { static: false }]
989
+ }], required: [{
990
+ type: Input
991
+ }], disabled: [{
992
+ type: Input
993
+ }], loading: [{
994
+ type: Input
995
+ }], fullWidth: [{
996
+ type: Input
997
+ }], showCounter: [{
998
+ type: Input
999
+ }], label: [{
1000
+ type: Input
1001
+ }], placeholder: [{
1002
+ type: Input
1003
+ }], maxlength: [{
1004
+ type: Input
1005
+ }], rows: [{
1006
+ type: Input
1007
+ }], appearance: [{
1008
+ type: Input
1009
+ }], tooltip: [{
1010
+ type: Input
1011
+ }], name: [{
1012
+ type: Input
1013
+ }], autocomplete: [{
1014
+ type: Input
1015
+ }], resize: [{
1016
+ type: Input
1017
+ }], allowHorizontalResize: [{
1018
+ type: Input
1019
+ }], ptechCol: [{
1020
+ type: Input,
1021
+ args: ['ptechCol']
1022
+ }], gridColumn: [{
1023
+ type: HostBinding,
1024
+ args: ['style.grid-column']
525
1025
  }] } });
526
1026
 
527
1027
  class ButtonComponent {
@@ -699,7 +1199,7 @@ class ButtonComponent {
699
1199
  </a>
700
1200
 
701
1201
  </ng-container>
702
- `, isInline: true, styles: [".pill-style{border-radius:20px}button,a[mat-button]{cursor:pointer;transition:box-shadow .3s,transform .2s;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn-label{margin-left:2px}button:hover{box-shadow:0 4px 8px #0003;transform:translateY(-2px)}button:active{box-shadow:0 2px 4px #0003;transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.5;transform:none;box-shadow:none}button.mat-mdc-icon-button{display:inline-flex;align-items:center;justify-content:center}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i2$1.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatMiniFabButton, selector: "button[mat-mini-fab]", exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatFabButton, selector: "button[mat-fab]", inputs: ["extended"], exportAs: ["matButton"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: i8.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1202
+ `, isInline: true, styles: [".pill-style{border-radius:20px}button,a[mat-button]{cursor:pointer;transition:box-shadow .3s,transform .2s;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn-label{margin-left:2px}button:hover{box-shadow:0 4px 8px #0003;transform:translateY(-2px)}button:active{box-shadow:0 2px 4px #0003;transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.5;transform:none;box-shadow:none}button.mat-mdc-icon-button{width:auto!important;display:inline-flex;align-items:center;justify-content:center}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i2$1.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatMiniFabButton, selector: "button[mat-mini-fab]", exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatFabButton, selector: "button[mat-fab]", inputs: ["extended"], exportAs: ["matButton"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: i6.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
703
1203
  }
704
1204
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ButtonComponent, decorators: [{
705
1205
  type: Component,
@@ -833,7 +1333,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
833
1333
  </a>
834
1334
 
835
1335
  </ng-container>
836
- `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".pill-style{border-radius:20px}button,a[mat-button]{cursor:pointer;transition:box-shadow .3s,transform .2s;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn-label{margin-left:2px}button:hover{box-shadow:0 4px 8px #0003;transform:translateY(-2px)}button:active{box-shadow:0 2px 4px #0003;transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.5;transform:none;box-shadow:none}button.mat-mdc-icon-button{display:inline-flex;align-items:center;justify-content:center}\n"] }]
1336
+ `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".pill-style{border-radius:20px}button,a[mat-button]{cursor:pointer;transition:box-shadow .3s,transform .2s;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn-label{margin-left:2px}button:hover{box-shadow:0 4px 8px #0003;transform:translateY(-2px)}button:active{box-shadow:0 2px 4px #0003;transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.5;transform:none;box-shadow:none}button.mat-mdc-icon-button{width:auto!important;display:inline-flex;align-items:center;justify-content:center}\n"] }]
837
1337
  }], propDecorators: { required: [{
838
1338
  type: Input
839
1339
  }], type: [{
@@ -870,6 +1370,228 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
870
1370
  type: Input
871
1371
  }] } });
872
1372
 
1373
+ // projects/pumpkin-tech-ng/src/lib/components/badge/badge.component.ts
1374
+ class BadgeComponent {
1375
+ /** Texto do badge (ou use <ng-content>) */
1376
+ label = '';
1377
+ /** mat-icon opcional */
1378
+ icon;
1379
+ /** Tooltip opcional */
1380
+ tooltip;
1381
+ /** Acessibilidade */
1382
+ ariaLabel;
1383
+ /** Clique habilitado */
1384
+ clickable = false;
1385
+ disabled = false;
1386
+ /** Forma/estilo */
1387
+ pill = true;
1388
+ uppercase = false;
1389
+ size = 'md';
1390
+ variant = 'filled';
1391
+ /** Cor: preset (success, warning, …) ou qualquer CSS color (#hex, rgb, etc.) */
1392
+ color = 'neutral';
1393
+ badgeClick = new EventEmitter();
1394
+ badgeKey = new EventEmitter();
1395
+ /** papel ARIA: se clicável, vira “button” */
1396
+ get role() { return this.clickable ? 'button' : 'status'; }
1397
+ get tab() { return this.clickable && !this.disabled ? 0 : -1; }
1398
+ onClick(ev) { if (!this.disabled && this.clickable)
1399
+ this.badgeClick.emit(ev); }
1400
+ onKey(ev) {
1401
+ if (this.disabled || !this.clickable)
1402
+ return;
1403
+ if (ev.key === 'Enter' || ev.key === ' ') {
1404
+ ev.preventDefault();
1405
+ this.badgeKey.emit(ev);
1406
+ this.badgeClick.emit(new MouseEvent('click'));
1407
+ }
1408
+ }
1409
+ // ===== Cores / variantes =====
1410
+ get cssVars() {
1411
+ const base = this.resolveBaseColor(this.color);
1412
+ const [r, g, b] = this.toRgb(base);
1413
+ const fgOn = this.contrastOn(base);
1414
+ switch (this.variant) {
1415
+ case 'filled':
1416
+ return { bg: base, fg: fgOn, bd: base };
1417
+ case 'outline':
1418
+ return { bg: 'transparent', fg: base, bd: base };
1419
+ case 'soft':
1420
+ return { bg: `rgba(${r},${g},${b},.15)`, fg: base, bd: `rgba(${r},${g},${b},.35)` };
1421
+ default:
1422
+ return { bg: base, fg: fgOn, bd: base };
1423
+ }
1424
+ }
1425
+ resolveBaseColor(c) {
1426
+ const PRESETS = {
1427
+ success: '#22c55e', warning: '#f59e0b', error: '#ef4444', info: '#3b82f6',
1428
+ neutral: '#64748b', purple: '#7c3aed',
1429
+ primary: 'var(--mdc-theme-primary, #3f51b5)',
1430
+ accent: 'var(--mdc-theme-secondary, #ff4081)',
1431
+ warn: '#f44336'
1432
+ };
1433
+ return PRESETS[c] ?? c;
1434
+ }
1435
+ toRgb(color) {
1436
+ const ctx = document?.createElement?.('canvas')?.getContext?.('2d');
1437
+ if (!ctx)
1438
+ return [100, 100, 100];
1439
+ ctx.fillStyle = color;
1440
+ const computed = ctx.fillStyle; // normaliza
1441
+ // #rrggbb
1442
+ const m = computed.match(/^#?([0-9a-f]{6})$/i);
1443
+ if (m) {
1444
+ const n = parseInt(m[1], 16);
1445
+ return [(n >> 16) & 255, (n >> 8) & 255, n & 255];
1446
+ }
1447
+ // rgb(a)
1448
+ const m2 = computed.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/i);
1449
+ if (m2)
1450
+ return [+m2[1], +m2[2], +m2[3]];
1451
+ return [100, 100, 100];
1452
+ }
1453
+ contrastOn(color) {
1454
+ const [r, g, b] = this.toRgb(color);
1455
+ // luminância simples
1456
+ const lum = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
1457
+ return lum > 0.55 ? '#111' : '#fff';
1458
+ }
1459
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1460
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: BadgeComponent, isStandalone: true, selector: "ptech-badge", inputs: { label: "label", icon: "icon", tooltip: "tooltip", ariaLabel: "ariaLabel", clickable: "clickable", disabled: "disabled", pill: "pill", uppercase: "uppercase", size: "size", variant: "variant", color: "color" }, outputs: { badgeClick: "badgeClick", badgeKey: "badgeKey" }, host: { listeners: { "click": "onClick($event)", "keydown": "onKey($event)" }, properties: { "attr.role": "this.role", "attr.tabindex": "this.tab" } }, ngImport: i0, template: `
1461
+ <span
1462
+ class="ptech-badge"
1463
+ [class.clickable]="clickable && !disabled"
1464
+ [class.pill]="pill"
1465
+ [class.sm]="size==='sm'"
1466
+ [class.lg]="size==='lg'"
1467
+ [class.uppercase]="uppercase"
1468
+ [class.disabled]="disabled"
1469
+ [matTooltip]="tooltip || null"
1470
+ [matTooltipDisabled]="!tooltip"
1471
+ [attr.aria-label]="ariaLabel || label"
1472
+ [attr.aria-disabled]="disabled"
1473
+ [ngStyle]="{
1474
+ '--bg': cssVars.bg,
1475
+ '--fg': cssVars.fg,
1476
+ '--bd': cssVars.bd
1477
+ }"
1478
+ >
1479
+ <mat-icon *ngIf="icon" class="icon">{{ icon }}</mat-icon>
1480
+ <ng-content></ng-content>
1481
+ <span *ngIf="label">{{ label }}</span>
1482
+ </span>
1483
+ `, isInline: true, styles: [".ptech-badge{--bg: transparent;--fg: currentColor;--bd: currentColor;display:inline-flex;align-items:center;gap:6px;max-width:100%;line-height:1;font-weight:600;border-radius:8px;padding:.35rem .6rem;border:1px solid var(--bd);background:var(--bg);color:var(--fg);-webkit-user-select:none;user-select:none;font-size:12px}.ptech-badge .icon{font-size:16px;height:16px;width:16px}.ptech-badge.pill{border-radius:999px}.ptech-badge.sm{padding:.25rem .5rem;font-size:11px}.ptech-badge.lg{padding:.45rem .75rem;font-size:13px}.ptech-badge.uppercase{text-transform:uppercase}.ptech-badge.clickable{cursor:pointer}.ptech-badge.disabled{opacity:.5;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1484
+ }
1485
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BadgeComponent, decorators: [{
1486
+ type: Component,
1487
+ args: [{ selector: 'ptech-badge', standalone: true, imports: [CoreMaterialModule], template: `
1488
+ <span
1489
+ class="ptech-badge"
1490
+ [class.clickable]="clickable && !disabled"
1491
+ [class.pill]="pill"
1492
+ [class.sm]="size==='sm'"
1493
+ [class.lg]="size==='lg'"
1494
+ [class.uppercase]="uppercase"
1495
+ [class.disabled]="disabled"
1496
+ [matTooltip]="tooltip || null"
1497
+ [matTooltipDisabled]="!tooltip"
1498
+ [attr.aria-label]="ariaLabel || label"
1499
+ [attr.aria-disabled]="disabled"
1500
+ [ngStyle]="{
1501
+ '--bg': cssVars.bg,
1502
+ '--fg': cssVars.fg,
1503
+ '--bd': cssVars.bd
1504
+ }"
1505
+ >
1506
+ <mat-icon *ngIf="icon" class="icon">{{ icon }}</mat-icon>
1507
+ <ng-content></ng-content>
1508
+ <span *ngIf="label">{{ label }}</span>
1509
+ </span>
1510
+ `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".ptech-badge{--bg: transparent;--fg: currentColor;--bd: currentColor;display:inline-flex;align-items:center;gap:6px;max-width:100%;line-height:1;font-weight:600;border-radius:8px;padding:.35rem .6rem;border:1px solid var(--bd);background:var(--bg);color:var(--fg);-webkit-user-select:none;user-select:none;font-size:12px}.ptech-badge .icon{font-size:16px;height:16px;width:16px}.ptech-badge.pill{border-radius:999px}.ptech-badge.sm{padding:.25rem .5rem;font-size:11px}.ptech-badge.lg{padding:.45rem .75rem;font-size:13px}.ptech-badge.uppercase{text-transform:uppercase}.ptech-badge.clickable{cursor:pointer}.ptech-badge.disabled{opacity:.5;pointer-events:none}\n"] }]
1511
+ }], propDecorators: { label: [{
1512
+ type: Input
1513
+ }], icon: [{
1514
+ type: Input
1515
+ }], tooltip: [{
1516
+ type: Input
1517
+ }], ariaLabel: [{
1518
+ type: Input
1519
+ }], clickable: [{
1520
+ type: Input
1521
+ }], disabled: [{
1522
+ type: Input
1523
+ }], pill: [{
1524
+ type: Input
1525
+ }], uppercase: [{
1526
+ type: Input
1527
+ }], size: [{
1528
+ type: Input
1529
+ }], variant: [{
1530
+ type: Input
1531
+ }], color: [{
1532
+ type: Input
1533
+ }], badgeClick: [{
1534
+ type: Output
1535
+ }], badgeKey: [{
1536
+ type: Output
1537
+ }], role: [{
1538
+ type: HostBinding,
1539
+ args: ['attr.role']
1540
+ }], tab: [{
1541
+ type: HostBinding,
1542
+ args: ['attr.tabindex']
1543
+ }], onClick: [{
1544
+ type: HostListener,
1545
+ args: ['click', ['$event']]
1546
+ }], onKey: [{
1547
+ type: HostListener,
1548
+ args: ['keydown', ['$event']]
1549
+ }] } });
1550
+
1551
+ // projects/pumpkin-tech-ng/src/lib/components/badge/badge-stack.component.ts
1552
+ class BadgeStackComponent {
1553
+ direction = 'column';
1554
+ gap = 8;
1555
+ wrap = false;
1556
+ align = 'start';
1557
+ disp = 'flex';
1558
+ get fwrap() { return this.wrap ? 'wrap' : 'nowrap'; }
1559
+ get dir() { return this.direction; }
1560
+ get g() { return `${this.gap}px`; }
1561
+ get ai() {
1562
+ return this.align === 'center' ? 'center' : this.align === 'end' ? 'flex-end' : 'flex-start';
1563
+ }
1564
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BadgeStackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1565
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: BadgeStackComponent, isStandalone: true, selector: "ptech-badge-stack", inputs: { direction: "direction", gap: "gap", wrap: "wrap", align: "align" }, host: { properties: { "style.display": "this.disp", "style.flex-wrap": "this.fwrap", "style.flex-direction": "this.dir", "style.gap": "this.g", "style.align-items": "this.ai" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: [""] });
1566
+ }
1567
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BadgeStackComponent, decorators: [{
1568
+ type: Component,
1569
+ args: [{ selector: 'ptech-badge-stack', standalone: true, template: `<ng-content></ng-content>` }]
1570
+ }], propDecorators: { direction: [{
1571
+ type: Input
1572
+ }], gap: [{
1573
+ type: Input
1574
+ }], wrap: [{
1575
+ type: Input
1576
+ }], align: [{
1577
+ type: Input
1578
+ }], disp: [{
1579
+ type: HostBinding,
1580
+ args: ['style.display']
1581
+ }], fwrap: [{
1582
+ type: HostBinding,
1583
+ args: ['style.flex-wrap']
1584
+ }], dir: [{
1585
+ type: HostBinding,
1586
+ args: ['style.flex-direction']
1587
+ }], g: [{
1588
+ type: HostBinding,
1589
+ args: ['style.gap']
1590
+ }], ai: [{
1591
+ type: HostBinding,
1592
+ args: ['style.align-items']
1593
+ }] } });
1594
+
873
1595
  class IconComponent {
874
1596
  color = '';
875
1597
  icon = '';
@@ -935,63 +1657,166 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
935
1657
  `, styles: [".action-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:16px}@media (max-width: 767px){.action-row{flex-direction:column;align-items:stretch}}\n"] }]
936
1658
  }] });
937
1659
 
938
- // ptech-quantity-items.component.ts
939
1660
  class QuantityItemsComponent {
940
- quantity = 0;
1661
+ // Label e UX
1662
+ label = '';
1663
+ required = false;
1664
+ fullWidth = false;
1665
+ ariaLabel;
1666
+ // Regras
1667
+ min = 0; // não é null, então nada de ??
1668
+ max = null; // pode ser null => sem limite
1669
+ step = 1;
1670
+ disabled = false;
1671
+ // --- GRID COL (1..12) ---
1672
+ _col = 12;
1673
+ set ptechCol(v) {
1674
+ const n = typeof v === 'string' ? parseInt(v, 10) : v ?? 12;
1675
+ this._col = Number.isFinite(n) ? Math.min(Math.max(+n, 1), 12) : 12;
1676
+ }
1677
+ get gridColumn() {
1678
+ // “span N” funciona dentro de qualquer CSS grid
1679
+ return `span ${this._col}`;
1680
+ }
1681
+ /** Compat c/ [(quantity)] */
1682
+ get quantity() { return this.current; }
1683
+ set quantity(v) { this.setValue(v, false); }
941
1684
  quantityChange = new EventEmitter();
942
- decrement() {
943
- if (this.quantity > 0) {
944
- this.quantity--;
945
- this.quantityChange.emit(this.quantity);
946
- }
947
- }
1685
+ current = 0;
1686
+ // CVA
1687
+ onChange = () => { };
1688
+ onTouched = () => { };
1689
+ writeValue(v) {
1690
+ this.setValue(v ?? 0, true);
1691
+ }
1692
+ registerOnChange(fn) { this.onChange = fn; }
1693
+ registerOnTouched(fn) { this.onTouched = fn; }
1694
+ setDisabledState(isDisabled) { this.disabled = isDisabled; }
1695
+ decrement() {
1696
+ if (this.disabled)
1697
+ return;
1698
+ this.setValue(this.current - this.step);
1699
+ }
948
1700
  increment() {
949
- this.quantity++;
950
- this.quantityChange.emit(this.quantity);
1701
+ if (this.disabled)
1702
+ return;
1703
+ this.setValue(this.current + this.step);
1704
+ }
1705
+ clamp(v) {
1706
+ const min = this.min; // já é number
1707
+ const max = this.max ?? Number.POSITIVE_INFINITY; // aqui pode usar POSITIVE_INFINITY no TS
1708
+ return Math.min(Math.max(v, min), max);
1709
+ }
1710
+ setValue(v, fromWriteValue = false) {
1711
+ const num = Number.isFinite(v) ? v : 0;
1712
+ const next = this.clamp(num);
1713
+ if (next === this.current)
1714
+ return;
1715
+ this.current = next;
1716
+ this.onChange(this.current);
1717
+ if (!fromWriteValue)
1718
+ this.onTouched();
1719
+ this.quantityChange.emit(this.current);
951
1720
  }
952
1721
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: QuantityItemsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
953
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: QuantityItemsComponent, isStandalone: true, selector: "ptech-quantity-items", inputs: { quantity: "quantity" }, outputs: { quantityChange: "quantityChange" }, ngImport: i0, template: `
954
- <div class="quantity-items-container" role="group" aria-label="Quantity selector">
955
- <button
956
- mat-icon-button
957
- aria-label="Decrement"
958
- [disabled]="quantity <= 0"
959
- (click)="decrement()"
960
- class="pill"
961
- >
962
- <mat-icon>remove</mat-icon>
963
- </button>
1722
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: QuantityItemsComponent, isStandalone: true, selector: "ptech-quantity-items", inputs: { label: "label", required: "required", fullWidth: "fullWidth", ariaLabel: "ariaLabel", min: "min", max: "max", step: "step", disabled: "disabled", ptechCol: "ptechCol", quantity: "quantity" }, outputs: { quantityChange: "quantityChange" }, host: { properties: { "style.grid-column": "this.gridColumn" } }, providers: [
1723
+ {
1724
+ provide: NG_VALUE_ACCESSOR,
1725
+ useExisting: forwardRef(() => QuantityItemsComponent),
1726
+ multi: true,
1727
+ },
1728
+ ], ngImport: i0, template: `
1729
+ <div class="quantity-wrap" [class.full-width]="fullWidth">
1730
+ <label *ngIf="label" class="ptech-label">
1731
+ {{ label }} <span *ngIf="required" aria-hidden="true">*</span>
1732
+ </label>
1733
+
1734
+ <div class="quantity-items-container" role="group"
1735
+ [attr.aria-label]="ariaLabel || label || 'Quantity selector'">
1736
+ <button
1737
+ mat-icon-button
1738
+ class="pill"
1739
+ aria-label="Decrement"
1740
+ [disabled]="disabled || current <= min"
1741
+ (click)="decrement()">
1742
+ <mat-icon>remove</mat-icon>
1743
+ </button>
964
1744
 
965
- <span class="quantity-value" aria-live="polite">{{ quantity }}</span>
1745
+ <span class="quantity-value" aria-live="polite">{{ current }}</span>
966
1746
 
967
- <button mat-icon-button aria-label="Increment" (click)="increment()" class="pill">
968
- <mat-icon>add</mat-icon>
969
- </button>
1747
+ <button
1748
+ mat-icon-button
1749
+ class="pill"
1750
+ aria-label="Increment"
1751
+ [disabled]="disabled || (max !== null && current >= max)"
1752
+ (click)="increment()">
1753
+ <mat-icon>add</mat-icon>
1754
+ </button>
1755
+ </div>
970
1756
  </div>
971
- `, isInline: true, styles: [".quantity-items-container{display:flex;align-items:center;gap:8px;margin-bottom:10px}.quantity-value{font-size:1.2em;width:36px;text-align:center}.pill{border-radius:50%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1757
+ `, isInline: true, styles: [".quantity-wrap{display:flex;flex-direction:column;gap:6px}.quantity-wrap.full-width{width:100%}.ptech-label{font-weight:500;display:inline-flex;align-items:center;gap:4px}.ptech-label span{color:#f44336!important}.quantity-items-container{display:flex;align-items:center;gap:8px;margin-bottom:10px;width:fit-content}.quantity-value{font-size:1.2em;width:36px;text-align:center}.pill{border-radius:50%}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
972
1758
  }
973
1759
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: QuantityItemsComponent, decorators: [{
974
1760
  type: Component,
975
- args: [{ selector: 'ptech-quantity-items', standalone: true, imports: [CommonModule, CoreMaterialModule], template: `
976
- <div class="quantity-items-container" role="group" aria-label="Quantity selector">
977
- <button
978
- mat-icon-button
979
- aria-label="Decrement"
980
- [disabled]="quantity <= 0"
981
- (click)="decrement()"
982
- class="pill"
983
- >
984
- <mat-icon>remove</mat-icon>
985
- </button>
1761
+ args: [{ selector: 'ptech-quantity-items', standalone: true, imports: [CoreMaterialModule], providers: [
1762
+ {
1763
+ provide: NG_VALUE_ACCESSOR,
1764
+ useExisting: forwardRef(() => QuantityItemsComponent),
1765
+ multi: true,
1766
+ },
1767
+ ], template: `
1768
+ <div class="quantity-wrap" [class.full-width]="fullWidth">
1769
+ <label *ngIf="label" class="ptech-label">
1770
+ {{ label }} <span *ngIf="required" aria-hidden="true">*</span>
1771
+ </label>
1772
+
1773
+ <div class="quantity-items-container" role="group"
1774
+ [attr.aria-label]="ariaLabel || label || 'Quantity selector'">
1775
+ <button
1776
+ mat-icon-button
1777
+ class="pill"
1778
+ aria-label="Decrement"
1779
+ [disabled]="disabled || current <= min"
1780
+ (click)="decrement()">
1781
+ <mat-icon>remove</mat-icon>
1782
+ </button>
986
1783
 
987
- <span class="quantity-value" aria-live="polite">{{ quantity }}</span>
1784
+ <span class="quantity-value" aria-live="polite">{{ current }}</span>
988
1785
 
989
- <button mat-icon-button aria-label="Increment" (click)="increment()" class="pill">
990
- <mat-icon>add</mat-icon>
991
- </button>
1786
+ <button
1787
+ mat-icon-button
1788
+ class="pill"
1789
+ aria-label="Increment"
1790
+ [disabled]="disabled || (max !== null && current >= max)"
1791
+ (click)="increment()">
1792
+ <mat-icon>add</mat-icon>
1793
+ </button>
1794
+ </div>
992
1795
  </div>
993
- `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".quantity-items-container{display:flex;align-items:center;gap:8px;margin-bottom:10px}.quantity-value{font-size:1.2em;width:36px;text-align:center}.pill{border-radius:50%}\n"] }]
994
- }], propDecorators: { quantity: [{
1796
+ `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".quantity-wrap{display:flex;flex-direction:column;gap:6px}.quantity-wrap.full-width{width:100%}.ptech-label{font-weight:500;display:inline-flex;align-items:center;gap:4px}.ptech-label span{color:#f44336!important}.quantity-items-container{display:flex;align-items:center;gap:8px;margin-bottom:10px;width:fit-content}.quantity-value{font-size:1.2em;width:36px;text-align:center}.pill{border-radius:50%}\n"] }]
1797
+ }], propDecorators: { label: [{
1798
+ type: Input
1799
+ }], required: [{
1800
+ type: Input
1801
+ }], fullWidth: [{
1802
+ type: Input
1803
+ }], ariaLabel: [{
1804
+ type: Input
1805
+ }], min: [{
1806
+ type: Input
1807
+ }], max: [{
1808
+ type: Input
1809
+ }], step: [{
1810
+ type: Input
1811
+ }], disabled: [{
1812
+ type: Input
1813
+ }], ptechCol: [{
1814
+ type: Input,
1815
+ args: ['ptechCol']
1816
+ }], gridColumn: [{
1817
+ type: HostBinding,
1818
+ args: ['style.grid-column']
1819
+ }], quantity: [{
995
1820
  type: Input
996
1821
  }], quantityChange: [{
997
1822
  type: Output
@@ -1092,6 +1917,16 @@ class SelectEntityComponent {
1092
1917
  entities = [];
1093
1918
  /** loading do combo */
1094
1919
  loading = false;
1920
+ // --- GRID COL (1..12) ---
1921
+ _col = 12;
1922
+ set ptechCol(v) {
1923
+ const n = typeof v === 'string' ? parseInt(v, 10) : v ?? 12;
1924
+ this._col = Number.isFinite(n) ? Math.min(Math.max(+n, 1), 12) : 12;
1925
+ }
1926
+ get gridColumn() {
1927
+ // “span N” funciona dentro de qualquer CSS grid
1928
+ return `span ${this._col}`;
1929
+ }
1095
1930
  // ===== Outputs =====
1096
1931
  selectionChange = new EventEmitter();
1097
1932
  loadingChange = new EventEmitter();
@@ -1205,7 +2040,7 @@ class SelectEntityComponent {
1205
2040
  return obj && typeof obj === 'object' ? obj[this.idProp] : obj;
1206
2041
  }
1207
2042
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SelectEntityComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1208
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SelectEntityComponent, isStandalone: true, selector: "ptech-select-entity", inputs: { appearance: "appearance", label: "label", placeholder: "placeholder", disabled: "disabled", multiple: "multiple", required: "required", property: "property", propertyEnum: "propertyEnum", propertyFn: "propertyFn", idProp: "idProp", searchPlaceholder: "searchPlaceholder", multipleTriggerMax: "multipleTriggerMax", entities: "entities", loading: "loading" }, outputs: { selectionChange: "selectionChange", loadingChange: "loadingChange" }, providers: [{
2043
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SelectEntityComponent, isStandalone: true, selector: "ptech-select-entity", inputs: { appearance: "appearance", label: "label", placeholder: "placeholder", disabled: "disabled", multiple: "multiple", required: "required", property: "property", propertyEnum: "propertyEnum", propertyFn: "propertyFn", idProp: "idProp", searchPlaceholder: "searchPlaceholder", multipleTriggerMax: "multipleTriggerMax", entities: "entities", loading: "loading", ptechCol: "ptechCol" }, outputs: { selectionChange: "selectionChange", loadingChange: "loadingChange" }, host: { properties: { "style.grid-column": "this.gridColumn" } }, providers: [{
1209
2044
  provide: NG_VALUE_ACCESSOR,
1210
2045
  useExisting: forwardRef(() => SelectEntityComponent),
1211
2046
  multi: true,
@@ -1279,7 +2114,7 @@ class SelectEntityComponent {
1279
2114
  ></mat-spinner>
1280
2115
  </mat-form-field>
1281
2116
  </div>
1282
- `, isInline: true, styles: [".select-entity-container{display:flex;flex-direction:column}.select-entity-field{width:100%}::ng-deep .mat-mdc-select-value{padding-left:10px!important}.search-container{display:flex;align-items:center;padding:8px 12px 0;gap:8px}.search-container input[matInput]{width:100%}mat-label span{color:#f44336!important}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i5$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i5$1.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i6.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i8.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2117
+ `, isInline: true, styles: [".select-entity-container{display:flex;flex-direction:column}.select-entity-field{width:100%}::ng-deep .mat-mdc-select-value{padding-left:10px!important}.search-container{display:flex;align-items:center;padding:8px 12px 0;gap:8px}.search-container input[matInput]{width:100%}mat-label span{color:#f44336!important}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i5.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i6$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1283
2118
  }
1284
2119
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SelectEntityComponent, decorators: [{
1285
2120
  type: Component,
@@ -1386,6 +2221,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1386
2221
  type: Input
1387
2222
  }], loading: [{
1388
2223
  type: Input
2224
+ }], ptechCol: [{
2225
+ type: Input,
2226
+ args: ['ptechCol']
2227
+ }], gridColumn: [{
2228
+ type: HostBinding,
2229
+ args: ['style.grid-column']
1389
2230
  }], selectionChange: [{
1390
2231
  type: Output
1391
2232
  }], loadingChange: [{
@@ -1418,7 +2259,7 @@ class BreadcrumbComponent {
1418
2259
  </ul>
1419
2260
  </div>
1420
2261
  </nav>
1421
- `, isInline: true, styles: [".breadcrumb{display:flex;padding:10px 20px;background-color:#323a46}.box{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:100%}.breadcrumbs-list{display:flex;gap:10px;list-style:none;margin:0;padding:0;align-items:center}.breadcrumb-item{font-family:ProximaNova-Regular,Roboto,Nunito,Helvetica Neue,sans-serif;font-size:13px;color:#c3c3c3;gap:4px;font-weight:400;display:flex;align-items:center}.breadcrumb-item a{color:#c3c3c3;text-decoration:none;padding-right:4px}.breadcrumb-item a:hover{color:#b1b1b1;text-decoration:underline}.breadcrumb-item .start-icon{padding-top:4px!important}.separator{margin:0 4px;color:#b1b1b1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CoreMaterialModule }] });
2262
+ `, isInline: true, styles: [".breadcrumb{display:flex;padding:10px 20px;background-color:#323a46}.box{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:100%}.breadcrumbs-list{display:flex;gap:10px;list-style:none;margin:0;padding:0;align-items:center}.breadcrumb-item{font-family:ProximaNova-Regular,Roboto,Nunito,Helvetica Neue,sans-serif;font-size:13px;color:#c3c3c3;gap:4px;font-weight:400;display:flex;align-items:center}.breadcrumb-item a{color:#c3c3c3;text-decoration:none;padding-right:4px}.breadcrumb-item a:hover{color:#b1b1b1;text-decoration:underline}.breadcrumb-item .start-icon{padding-top:4px!important}.separator{margin:0 4px;color:#b1b1b1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CoreMaterialModule }] });
1422
2263
  }
1423
2264
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BreadcrumbComponent, decorators: [{
1424
2265
  type: Component,
@@ -1481,7 +2322,7 @@ class HeaderComponent {
1481
2322
 
1482
2323
  <ng-content select="[user-profile]"></ng-content>
1483
2324
  </mat-toolbar>
1484
- `, isInline: true, styles: [".header{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(315deg,#003373,#348e9f);animation:gradient 10s ease infinite}.spacer{flex:1}.header-logo{height:35px;object-fit:contain}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i3$2.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
2325
+ `, isInline: true, styles: [".header{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(315deg,#003373,#348e9f);animation:gradient 10s ease infinite}.spacer{flex:1}.header-logo{height:35px;object-fit:contain}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i3$2.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
1485
2326
  }
1486
2327
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: HeaderComponent, decorators: [{
1487
2328
  type: Component,
@@ -1558,6 +2399,7 @@ class NavComponent {
1558
2399
  fixedTopGap = 134;
1559
2400
  fixedBottomGap = 70;
1560
2401
  footerItems = [];
2402
+ headerClick = new EventEmitter();
1561
2403
  navigate = new EventEmitter();
1562
2404
  logout = new EventEmitter();
1563
2405
  stack = [];
@@ -1588,9 +2430,13 @@ class NavComponent {
1588
2430
  if (this.stack.length) {
1589
2431
  this.stack.pop();
1590
2432
  }
2433
+ else {
2434
+ this.headerClick.emit(); // <- clique no topo: pedir navegação pro home
2435
+ // opcional: this.navService.toggleNav();
2436
+ }
1591
2437
  }
1592
2438
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NavComponent, deps: [{ token: NavService }], target: i0.ɵɵFactoryTarget.Component });
1593
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NavComponent, isStandalone: true, selector: "ptech-nav", inputs: { links: "links", currentModuleName: "currentModuleName", fixedTopGap: "fixedTopGap", fixedBottomGap: "fixedBottomGap", footerItems: "footerItems" }, outputs: { navigate: "navigate", logout: "logout" }, ngImport: i0, template: `
2439
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NavComponent, isStandalone: true, selector: "ptech-nav", inputs: { links: "links", currentModuleName: "currentModuleName", fixedTopGap: "fixedTopGap", fixedBottomGap: "fixedBottomGap", footerItems: "footerItems" }, outputs: { headerClick: "headerClick", navigate: "navigate", logout: "logout" }, ngImport: i0, template: `
1594
2440
  <mat-sidenav-container class="sidenav-container">
1595
2441
  <mat-sidenav
1596
2442
  class="sidenav"
@@ -1637,7 +2483,7 @@ class NavComponent {
1637
2483
  </div>
1638
2484
  </mat-sidenav>
1639
2485
  </mat-sidenav-container>
1640
- `, isInline: true, styles: [".mat-icon{margin-bottom:-2px!important;height:22px!important;width:22px!important}mat-sidenav.sidenav{display:flex;flex-direction:column;width:220px;background-color:#3d454e;border-top-right-radius:12px;border-bottom-right-radius:12px;box-shadow:0 4px 6px #0000004d;padding:0;overflow:hidden}.nav-content{display:flex;flex-direction:column;height:100%;overflow:hidden}.nav-list{flex:1 1 auto!important;overflow-y:auto!important;padding:0!important;margin:0!important}:host ::ng-deep .mat-list-item,:host ::ng-deep .mat-mdc-list-item{display:flex!important;align-items:center!important;border-radius:unset!important}:host ::ng-deep .mat-list-item mat-icon[matListIcon],:host ::ng-deep .mdc-list-item__graphic{margin:0!important;padding:0!important;vertical-align:middle!important;line-height:1!important}:host ::ng-deep .mat-list-item .mat-line,:host ::ng-deep .mdc-list-item__primary-text{color:#fff!important;letter-spacing:unset!important}.list-item-header{display:flex;align-items:center;height:66px!important;padding:0 16px;background-color:#35404a!important;color:#cfd8dc!important;font-size:1.1rem;font-weight:600;text-decoration:none;cursor:pointer;border-bottom:1px solid #c9cbcf}.list-item-header mat-icon[matListIcon]{color:#90a4ae;font-size:25px;margin-right:12px}.list-item-header:hover{background-color:#ffffff1a}.list-item-level1{display:flex;align-items:center;justify-content:space-between;height:48px;color:#cfd8dc!important;font-size:1rem;text-decoration:none;cursor:pointer;border-bottom:1px solid #c9cbcf}.list-item-level1 mat-icon[matListIcon]{color:#90a4ae;font-size:22px;margin-right:12px}.list-item-level1 span[matLine]{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important}.arrow-right-icon{color:#90a4ae;font-size:25px;margin-left:46px}.list-item-level1:hover{background-color:#ffffff14}.list-item-level2{display:flex;align-items:center;height:44px;padding:0 24px;color:#cfd8dc;font-size:.95rem;text-decoration:none;cursor:pointer;border-bottom:1px solid #c9cbcf}.list-item-level2 mat-icon[matListIcon]{color:#90a4ae;font-size:22px;margin-right:12px}.list-item-level2:hover{background-color:#ffffff0f}.mat-divider{margin-top:0!important;margin-bottom:0!important}.nav-footer{display:flex;flex-direction:column;flex-shrink:0;margin-top:auto;padding:12px 16px;background-color:#35404a}.footer-item{display:flex;align-items:center;margin-bottom:6px}.footer-icon{color:#90a4ae;font-size:18px;margin-right:8px}.footer-text{color:#cfd8dc;font-size:.85rem}.footer-item:last-child{margin-bottom:0!important}:host ::ng-deep mat-sidenav.sidenav .nav-list{flex:1 1 auto!important}:host ::ng-deep mat-sidenav.sidenav .nav-footer{margin-top:auto!important;flex-shrink:0!important}@media screen and (max-width: 599px){mat-sidenav.sidenav{width:180px}.list-item-header{height:50px;font-size:1rem;padding:0 12px}.list-item-header mat-icon[matListIcon]{font-size:18px;margin-right:8px}.list-item-level1{height:44px;font-size:.9rem;padding:0 12px}.list-item-level1 mat-icon[matListIcon]{font-size:18px;margin-right:10px}.arrow-right-icon{font-size:18px}.list-item-level2{height:40px;font-size:.85rem;padding:0 20px}.list-item-level2 mat-icon[matListIcon]{font-size:16px;margin-right:10px}.footer-item{margin-bottom:4px}.footer-icon{font-size:16px;margin-right:6px}.footer-text{font-size:.8rem}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i4.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i4.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i5$2.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i5$2.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "component", type: i6$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2486
+ `, isInline: true, styles: [".mat-icon{margin-bottom:-2px!important;height:22px!important;width:22px!important}mat-sidenav.sidenav{display:flex;flex-direction:column;width:220px;background-color:#3d454e;border-top-right-radius:12px;border-bottom-right-radius:12px;box-shadow:0 4px 6px #0000004d;padding:0;overflow:hidden}.nav-content{display:flex;flex-direction:column;height:100%;overflow:hidden}.nav-list{flex:1 1 auto!important;overflow-y:auto!important;padding:0!important;margin:0!important}:host ::ng-deep .mat-list-item,:host ::ng-deep .mat-mdc-list-item{display:flex!important;align-items:center!important;border-radius:unset!important}:host ::ng-deep .mat-list-item mat-icon[matListIcon],:host ::ng-deep .mdc-list-item__graphic{margin:0!important;padding:0!important;vertical-align:middle!important;line-height:1!important}:host ::ng-deep .mat-list-item .mat-line,:host ::ng-deep .mdc-list-item__primary-text{color:#fff!important;letter-spacing:unset!important}.list-item-header{display:flex;align-items:center;height:66px!important;padding:0 16px;background-color:#35404a!important;color:#cfd8dc!important;font-size:1.1rem;font-weight:600;text-decoration:none;cursor:pointer;border-bottom:1px solid #c9cbcf}.list-item-header mat-icon[matListIcon]{color:#90a4ae;font-size:25px;margin-right:12px}.list-item-header:hover{background-color:#ffffff1a}.list-item-level1{display:flex;align-items:center;justify-content:space-between;height:48px;color:#cfd8dc!important;font-size:1rem;text-decoration:none;cursor:pointer;border-bottom:1px solid #c9cbcf}.list-item-level1 mat-icon[matListIcon]{color:#90a4ae;font-size:22px;margin-right:12px}.list-item-level1 span[matLine]{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important}.arrow-right-icon{color:#90a4ae;font-size:25px;margin-left:46px}.list-item-level1:hover{background-color:#ffffff14}.list-item-level2{display:flex;align-items:center;height:44px;padding:0 24px;color:#cfd8dc;font-size:.95rem;text-decoration:none;cursor:pointer;border-bottom:1px solid #c9cbcf}.list-item-level2 mat-icon[matListIcon]{color:#90a4ae;font-size:22px;margin-right:12px}.list-item-level2:hover{background-color:#ffffff0f}.mat-divider{margin-top:0!important;margin-bottom:0!important}.nav-footer{display:flex;flex-direction:column;flex-shrink:0;margin-top:auto;padding:12px 16px;background-color:#35404a}.footer-item{display:flex;align-items:center;margin-bottom:6px}.footer-icon{color:#90a4ae;font-size:18px;margin-right:8px}.footer-text{color:#cfd8dc;font-size:.85rem}.footer-item:last-child{margin-bottom:0!important}:host ::ng-deep mat-sidenav.sidenav .nav-list{flex:1 1 auto!important}:host ::ng-deep mat-sidenav.sidenav .nav-footer{margin-top:auto!important;flex-shrink:0!important}@media screen and (max-width: 599px){mat-sidenav.sidenav{width:180px}.list-item-header{height:50px;font-size:1rem;padding:0 12px}.list-item-header mat-icon[matListIcon]{font-size:18px;margin-right:8px}.list-item-level1{height:44px;font-size:.9rem;padding:0 12px}.list-item-level1 mat-icon[matListIcon]{font-size:18px;margin-right:10px}.arrow-right-icon{font-size:18px}.list-item-level2{height:40px;font-size:.85rem;padding:0 20px}.list-item-level2 mat-icon[matListIcon]{font-size:16px;margin-right:10px}.footer-item{margin-bottom:4px}.footer-icon{font-size:16px;margin-right:6px}.footer-text{font-size:.8rem}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i4$1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i4$1.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i5$1.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i5$1.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "component", type: i6$2.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1641
2487
  }
1642
2488
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NavComponent, decorators: [{
1643
2489
  type: Component,
@@ -1703,6 +2549,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1703
2549
  type: Input
1704
2550
  }], footerItems: [{
1705
2551
  type: Input
2552
+ }], headerClick: [{
2553
+ type: Output
1706
2554
  }], navigate: [{
1707
2555
  type: Output
1708
2556
  }], logout: [{
@@ -1769,7 +2617,7 @@ class LoadingOverlayComponent {
1769
2617
  <div *ngIf="isLoading | async" class="overlay">
1770
2618
  <div class="spinner"></div>
1771
2619
  </div>
1772
- `, isInline: true, styles: [".overlay{display:none}.overlay{display:flex;position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000080;align-items:center;justify-content:center;z-index:9999;pointer-events:all}.spinner{width:50px;height:50px;border:6px solid #ccc;border-top-color:#333;border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }] });
2620
+ `, isInline: true, styles: [".overlay{display:none}.overlay{display:flex;position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000080;align-items:center;justify-content:center;z-index:9999;pointer-events:all}.spinner{width:50px;height:50px;border:6px solid #ccc;border-top-color:#333;border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }] });
1773
2621
  }
1774
2622
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LoadingOverlayComponent, decorators: [{
1775
2623
  type: Component,
@@ -1813,7 +2661,7 @@ class ProgressBarComponent {
1813
2661
  [color]="dynamicColorPrimary"
1814
2662
  ></mat-progress-bar>
1815
2663
  </p>
1816
- `, isInline: true, styles: [".progress-values{position:absolute;width:100%;text-align:center;bottom:0;transform:translateY(-50%);z-index:1;font-size:1.2rem}.progress-bar-container{position:relative}.custom-progress-bar{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i1$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
2664
+ `, isInline: true, styles: [".progress-values{position:absolute;width:100%;text-align:center;bottom:0;transform:translateY(-50%);z-index:1;font-size:1.2rem}.progress-bar-container{position:relative}.custom-progress-bar{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
1817
2665
  }
1818
2666
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ProgressBarComponent, decorators: [{
1819
2667
  type: Component,
@@ -1878,7 +2726,7 @@ class ProgressBarMultipleComponent {
1878
2726
  return 'warn';
1879
2727
  }
1880
2728
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ProgressBarMultipleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1881
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ProgressBarMultipleComponent, isStandalone: true, selector: "ptech-progress-bar-multiple", inputs: { progressStartPrimary: "progressStartPrimary", progressEndPrimary: "progressEndPrimary", labelPrimary: "labelPrimary", progressStartSecondary: "progressStartSecondary", progressEndSecondary: "progressEndSecondary", labelSecondary: "labelSecondary" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"progress-bar-vertical\">\n <!-- Progresso prim\u00E1rio -->\n <div class=\"progress-section\">\n <div class=\"progress-overlay\" *ngIf=\"labelPrimary\">\n {{ labelPrimary }}: {{ progressPercentagePrimary }}%\n </div>\n <div class=\"progress-overlay\" *ngIf=\"!labelPrimary\">\n {{ progressPercentagePrimary }}%\n </div>\n\n <mat-progress-bar\n class=\"custom-progress-bar\"\n mode=\"determinate\"\n [value]=\"progressPercentagePrimary\"\n [color]=\"dynamicColorPrimary\"\n ></mat-progress-bar>\n </div>\n\n <!-- Progresso secund\u00E1rio -->\n <div\n *ngIf=\"progressPercentageSecondary !== undefined\"\n class=\"progress-section\"\n >\n <div class=\"progress-overlay\">\n {{ labelSecondary }}: {{ progressPercentageSecondary }}%\n </div>\n <mat-progress-bar\n class=\"custom-progress-bar\"\n mode=\"determinate\"\n [value]=\"progressPercentageSecondary\"\n [color]=\"dynamicColorSecondary\"\n ></mat-progress-bar>\n </div>\n</div>\n", styles: [".progress-bar-vertical{display:flex;flex-direction:column;gap:16px}.progress-section{position:relative;height:30px}.custom-progress-bar{height:20px;border-radius:6px}.progress-overlay{position:absolute;width:100%;height:100%;top:-18px;left:0;display:flex;align-items:center;justify-content:center;font-size:1.2rem;z-index:1;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i1$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
2729
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ProgressBarMultipleComponent, isStandalone: true, selector: "ptech-progress-bar-multiple", inputs: { progressStartPrimary: "progressStartPrimary", progressEndPrimary: "progressEndPrimary", labelPrimary: "labelPrimary", progressStartSecondary: "progressStartSecondary", progressEndSecondary: "progressEndSecondary", labelSecondary: "labelSecondary" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"progress-bar-vertical\">\n <!-- Progresso prim\u00E1rio -->\n <div class=\"progress-section\">\n <div class=\"progress-overlay\" *ngIf=\"labelPrimary\">\n {{ labelPrimary }}: {{ progressPercentagePrimary }}%\n </div>\n <div class=\"progress-overlay\" *ngIf=\"!labelPrimary\">\n {{ progressPercentagePrimary }}%\n </div>\n\n <mat-progress-bar\n class=\"custom-progress-bar\"\n mode=\"determinate\"\n [value]=\"progressPercentagePrimary\"\n [color]=\"dynamicColorPrimary\"\n ></mat-progress-bar>\n </div>\n\n <!-- Progresso secund\u00E1rio -->\n <div\n *ngIf=\"progressPercentageSecondary !== undefined\"\n class=\"progress-section\"\n >\n <div class=\"progress-overlay\">\n {{ labelSecondary }}: {{ progressPercentageSecondary }}%\n </div>\n <mat-progress-bar\n class=\"custom-progress-bar\"\n mode=\"determinate\"\n [value]=\"progressPercentageSecondary\"\n [color]=\"dynamicColorSecondary\"\n ></mat-progress-bar>\n </div>\n</div>\n", styles: [".progress-bar-vertical{display:flex;flex-direction:column;gap:16px}.progress-section{position:relative;height:30px}.custom-progress-bar{height:20px;border-radius:6px}.progress-overlay{position:absolute;width:100%;height:100%;top:-18px;left:0;display:flex;align-items:center;justify-content:center;font-size:1.2rem;z-index:1;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
1882
2730
  }
1883
2731
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ProgressBarMultipleComponent, decorators: [{
1884
2732
  type: Component,
@@ -1897,70 +2745,135 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1897
2745
  type: Input
1898
2746
  }] } });
1899
2747
 
1900
- class RadioGroupComponent {
2748
+ // projects/pumpkin-tech-ng/src/lib/components/radio-group-enum/radio-group-enum.component.ts
2749
+ class RadioGroupEnumComponent {
2750
+ // UI
1901
2751
  label = '';
1902
- disabled = false;
1903
- required = false;
1904
- property = 'description';
1905
- entities = [];
1906
- _value;
1907
- get value() {
1908
- return this._value;
1909
- }
1910
- set value(val) {
1911
- this._value = val;
1912
- this.onChange(val);
1913
- this.onTouch();
1914
- }
2752
+ static ngAcceptInputType_required;
2753
+ _required = false;
2754
+ get required() { return this._required; }
2755
+ set required(v) { this._required = coerceBooleanProperty(v); }
2756
+ static ngAcceptInputType_disabled;
2757
+ _disabled = false;
2758
+ get disabled() { return this._disabled; }
2759
+ set disabled(v) { this._disabled = coerceBooleanProperty(v); }
2760
+ /** 'row' (padrão) ou 'column' */
2761
+ orientation = 'row';
2762
+ /** Pode ser: { KEY: 'Rótulo' } ou [{ key, value }] */
2763
+ enums = {};
2764
+ // --- GRID COL (1..12) ---
2765
+ _col = 12;
2766
+ set ptechCol(v) {
2767
+ const n = typeof v === 'string' ? parseInt(v, 10) : v ?? 12;
2768
+ this._col = Number.isFinite(n) ? Math.min(Math.max(+n, 1), 12) : 12;
2769
+ }
2770
+ get gridColumn() {
2771
+ // “span N” funciona dentro de qualquer CSS grid
2772
+ return `span ${this._col}`;
2773
+ }
2774
+ valueChange = new EventEmitter();
2775
+ // CVA
2776
+ _val;
1915
2777
  onChange = () => { };
1916
2778
  onTouch = () => { };
1917
- writeValue(value) {
1918
- this.value = value;
1919
- }
1920
- registerOnChange(fn) {
1921
- this.onChange = fn;
1922
- }
1923
- registerOnTouched(fn) {
1924
- this.onTouch = fn;
1925
- }
1926
- getPropertyValue(entity) {
1927
- if (!entity)
1928
- return '';
1929
- if (typeof entity === 'string')
1930
- return entity;
1931
- return entity[this.property];
2779
+ get value() { return this._val; }
2780
+ set value(v) {
2781
+ if (v !== this._val) {
2782
+ this._val = v;
2783
+ this.onChange(v);
2784
+ this.valueChange.emit(v);
2785
+ }
1932
2786
  }
1933
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RadioGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1934
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: RadioGroupComponent, isStandalone: true, selector: "ptech-radio-group", inputs: { label: "label", disabled: "disabled", required: "required", property: "property", entities: "entities", value: "value" }, providers: [
1935
- {
2787
+ writeValue(value) { this._val = value; }
2788
+ registerOnChange(fn) { this.onChange = fn; }
2789
+ registerOnTouched(fn) { this.onTouch = fn; }
2790
+ setDisabledState(isDisabled) { this.disabled = isDisabled; }
2791
+ // Data -> array padronizado
2792
+ get items() {
2793
+ if (Array.isArray(this.enums))
2794
+ return this.enums;
2795
+ const map = this.enums;
2796
+ return Object.keys(map || {}).map(k => ({ key: k, value: map[k] }));
2797
+ }
2798
+ trackByKey = (_, item) => item.key;
2799
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RadioGroupEnumComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2800
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: RadioGroupEnumComponent, isStandalone: true, selector: "ptech-radio-group-enum", inputs: { label: "label", required: "required", disabled: "disabled", orientation: "orientation", enums: "enums", ptechCol: "ptechCol" }, outputs: { valueChange: "valueChange" }, host: { properties: { "style.grid-column": "this.gridColumn" } }, providers: [{
1936
2801
  provide: NG_VALUE_ACCESSOR,
1937
- useExisting: forwardRef(() => RadioGroupComponent),
1938
- multi: true,
1939
- },
1940
- ], ngImport: i0, template: "<div class=\"radio-group-column\">\n <mat-label>{{ label }} <span *ngIf=\"required\">*</span></mat-label>\n <mat-radio-group\n [(ngModel)]=\"value\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n >\n <mat-radio-button *ngFor=\"let entity of entities\" [value]=\"entity\">\n {{ getPropertyValue(entity) }}\n </mat-radio-button>\n </mat-radio-group>\n</div>\n", styles: [".radio-group-column{display:flex;flex-direction:column}mat-label span{color:#f44336!important}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4$1.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i4$1.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }] });
2802
+ useExisting: forwardRef(() => RadioGroupEnumComponent),
2803
+ multi: true
2804
+ }], ngImport: i0, template: `
2805
+ <div class="ptech-radio-container">
2806
+ <label class="ptech-label">
2807
+ {{ label }}
2808
+ <span *ngIf="required" aria-hidden="true">*</span>
2809
+ </label>
2810
+
2811
+ <mat-radio-group
2812
+ class="ptech-radio-group"
2813
+ [class.row]="orientation === 'row'"
2814
+ [class.column]="orientation === 'column'"
2815
+ [(ngModel)]="value"
2816
+ [disabled]="disabled"
2817
+ [attr.aria-required]="required"
2818
+ (blur)="onTouch()"
2819
+ >
2820
+ <mat-radio-button
2821
+ *ngFor="let item of items; trackBy: trackByKey"
2822
+ [value]="item.key">
2823
+ {{ item.value }}
2824
+ </mat-radio-button>
2825
+ </mat-radio-group>
2826
+ </div>
2827
+ `, isInline: true, styles: [".ptech-radio-container{display:flex;flex-direction:column;width:100%}.ptech-label{font-size:.875rem;margin-bottom:6px}.ptech-label span{color:#f44336!important}.ptech-radio-group.row{display:flex;flex-wrap:wrap;gap:12px 16px}.ptech-radio-group.column{display:flex;flex-direction:column;gap:8px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$3.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i3$3.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1941
2828
  }
1942
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RadioGroupComponent, decorators: [{
2829
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RadioGroupEnumComponent, decorators: [{
1943
2830
  type: Component,
1944
- args: [{ selector: 'ptech-radio-group', standalone: true, imports: [CoreMaterialModule], providers: [
1945
- {
2831
+ args: [{ selector: 'ptech-radio-group-enum', standalone: true, imports: [CommonModule, CoreMaterialModule], template: `
2832
+ <div class="ptech-radio-container">
2833
+ <label class="ptech-label">
2834
+ {{ label }}
2835
+ <span *ngIf="required" aria-hidden="true">*</span>
2836
+ </label>
2837
+
2838
+ <mat-radio-group
2839
+ class="ptech-radio-group"
2840
+ [class.row]="orientation === 'row'"
2841
+ [class.column]="orientation === 'column'"
2842
+ [(ngModel)]="value"
2843
+ [disabled]="disabled"
2844
+ [attr.aria-required]="required"
2845
+ (blur)="onTouch()"
2846
+ >
2847
+ <mat-radio-button
2848
+ *ngFor="let item of items; trackBy: trackByKey"
2849
+ [value]="item.key">
2850
+ {{ item.value }}
2851
+ </mat-radio-button>
2852
+ </mat-radio-group>
2853
+ </div>
2854
+ `, providers: [{
1946
2855
  provide: NG_VALUE_ACCESSOR,
1947
- useExisting: forwardRef(() => RadioGroupComponent),
1948
- multi: true,
1949
- },
1950
- ], template: "<div class=\"radio-group-column\">\n <mat-label>{{ label }} <span *ngIf=\"required\">*</span></mat-label>\n <mat-radio-group\n [(ngModel)]=\"value\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n >\n <mat-radio-button *ngFor=\"let entity of entities\" [value]=\"entity\">\n {{ getPropertyValue(entity) }}\n </mat-radio-button>\n </mat-radio-group>\n</div>\n", styles: [".radio-group-column{display:flex;flex-direction:column}mat-label span{color:#f44336!important}\n"] }]
2856
+ useExisting: forwardRef(() => RadioGroupEnumComponent),
2857
+ multi: true
2858
+ }], changeDetection: ChangeDetectionStrategy.OnPush, styles: [".ptech-radio-container{display:flex;flex-direction:column;width:100%}.ptech-label{font-size:.875rem;margin-bottom:6px}.ptech-label span{color:#f44336!important}.ptech-radio-group.row{display:flex;flex-wrap:wrap;gap:12px 16px}.ptech-radio-group.column{display:flex;flex-direction:column;gap:8px}\n"] }]
1951
2859
  }], propDecorators: { label: [{
1952
2860
  type: Input
1953
- }], disabled: [{
1954
- type: Input
1955
2861
  }], required: [{
1956
2862
  type: Input
1957
- }], property: [{
2863
+ }], disabled: [{
1958
2864
  type: Input
1959
- }], entities: [{
2865
+ }], orientation: [{
1960
2866
  type: Input
1961
- }], value: [{
2867
+ }], enums: [{
2868
+ type: Input
2869
+ }], ptechCol: [{
1962
2870
  type: Input,
1963
- args: ['value']
2871
+ args: ['ptechCol']
2872
+ }], gridColumn: [{
2873
+ type: HostBinding,
2874
+ args: ['style.grid-column']
2875
+ }], valueChange: [{
2876
+ type: Output
1964
2877
  }] } });
1965
2878
 
1966
2879
  class RadioGroupEntityComponent {
@@ -1969,6 +2882,16 @@ class RadioGroupEntityComponent {
1969
2882
  required = false;
1970
2883
  property = 'description';
1971
2884
  entities = [];
2885
+ // --- GRID COL (1..12) ---
2886
+ _col = 12;
2887
+ set ptechCol(v) {
2888
+ const n = typeof v === 'string' ? parseInt(v, 10) : v ?? 12;
2889
+ this._col = Number.isFinite(n) ? Math.min(Math.max(+n, 1), 12) : 12;
2890
+ }
2891
+ get gridColumn() {
2892
+ // “span N” funciona dentro de qualquer CSS grid
2893
+ return `span ${this._col}`;
2894
+ }
1972
2895
  _value;
1973
2896
  get value() {
1974
2897
  return this._value;
@@ -1998,7 +2921,7 @@ class RadioGroupEntityComponent {
1998
2921
  this.disabled = isDisabled;
1999
2922
  }
2000
2923
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RadioGroupEntityComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2001
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: RadioGroupEntityComponent, isStandalone: true, selector: "ptech-radio-group-entity", inputs: { label: "label", disabled: "disabled", required: "required", property: "property", entities: "entities" }, providers: [
2924
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: RadioGroupEntityComponent, isStandalone: true, selector: "ptech-radio-group-entity", inputs: { label: "label", disabled: "disabled", required: "required", property: "property", entities: "entities", ptechCol: "ptechCol" }, host: { properties: { "style.grid-column": "this.gridColumn" } }, providers: [
2002
2925
  {
2003
2926
  provide: NG_VALUE_ACCESSOR,
2004
2927
  useExisting: forwardRef(() => RadioGroupEntityComponent),
@@ -2019,7 +2942,7 @@ class RadioGroupEntityComponent {
2019
2942
  </mat-radio-button>
2020
2943
  </mat-radio-group>
2021
2944
  </div>
2022
- `, isInline: true, styles: [".radio-group-column{display:flex;flex-direction:column}.radio-group-label{font-weight:500;margin-bottom:4px}.required{color:#f44336}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4$1.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i4$1.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }] });
2945
+ `, isInline: true, styles: [".radio-group-column{display:flex;flex-direction:column}.radio-group-label{font-weight:500;margin-bottom:4px}.required{color:#f44336}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$3.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i3$3.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }] });
2023
2946
  }
2024
2947
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RadioGroupEntityComponent, decorators: [{
2025
2948
  type: Component,
@@ -2055,6 +2978,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2055
2978
  type: Input
2056
2979
  }], entities: [{
2057
2980
  type: Input
2981
+ }], ptechCol: [{
2982
+ type: Input,
2983
+ args: ['ptechCol']
2984
+ }], gridColumn: [{
2985
+ type: HostBinding,
2986
+ args: ['style.grid-column']
2058
2987
  }] } });
2059
2988
 
2060
2989
  class SelectEnumComponent {
@@ -2068,6 +2997,16 @@ class SelectEnumComponent {
2068
2997
  sort = () => 0;
2069
2998
  loading = false;
2070
2999
  val;
3000
+ // --- GRID COL (1..12) ---
3001
+ _col = 12;
3002
+ set ptechCol(v) {
3003
+ const n = typeof v === 'string' ? parseInt(v, 10) : v ?? 12;
3004
+ this._col = Number.isFinite(n) ? Math.min(Math.max(+n, 1), 12) : 12;
3005
+ }
3006
+ get gridColumn() {
3007
+ // “span N” funciona dentro de qualquer CSS grid
3008
+ return `span ${this._col}`;
3009
+ }
2071
3010
  selectionChange = new EventEmitter();
2072
3011
  enumList = [];
2073
3012
  ngOnInit() {
@@ -2098,13 +3037,13 @@ class SelectEnumComponent {
2098
3037
  this.onTouch = fn;
2099
3038
  }
2100
3039
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SelectEnumComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2101
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SelectEnumComponent, isStandalone: true, selector: "ptech-select-enum", inputs: { label: "label", placeholder: "placeholder", disabled: "disabled", required: "required", multiple: "multiple", enum: "enum", disabledOptions: "disabledOptions", sort: "sort", loading: "loading", val: ["value", "val"] }, outputs: { selectionChange: "selectionChange" }, providers: [
3040
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SelectEnumComponent, isStandalone: true, selector: "ptech-select-enum", inputs: { label: "label", placeholder: "placeholder", disabled: "disabled", required: "required", multiple: "multiple", enum: "enum", disabledOptions: "disabledOptions", sort: "sort", loading: "loading", val: ["value", "val"], ptechCol: "ptechCol" }, outputs: { selectionChange: "selectionChange" }, host: { properties: { "style.grid-column": "this.gridColumn" } }, providers: [
2102
3041
  {
2103
3042
  provide: NG_VALUE_ACCESSOR,
2104
3043
  useExisting: forwardRef(() => SelectEnumComponent),
2105
3044
  multi: true,
2106
3045
  },
2107
- ], ngImport: i0, template: "<div class=\"select-enum-container\">\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ label }} </mat-label>\n <mat-select\n [placeholder]=\"placeholder\"\n [multiple]=\"multiple\"\n [(ngModel)]=\"value\"\n [required]=\"required\"\n [disabled]=\"disabled || loading\"\n (selectionChange)=\"onSelectionChange($event.value)\"\n >\n <mat-option *ngIf=\"!required && !multiple\" [value]=\"null\"\n >Selecione</mat-option\n >\n <mat-option\n *ngFor=\"let e of enumList\"\n [value]=\"e.key\"\n [disabled]=\"disabledOptions?.includes(e.key)\"\n >{{ e.value }}\n <span *ngIf=\"disabledOptions?.includes(e.key)\"> (indispon\u00EDvel)</span>\n </mat-option>\n </mat-select>\n <mat-spinner\n matPrefix\n *ngIf=\"loading\"\n mode=\"indeterminate\"\n diameter=\"17\"\n ></mat-spinner>\n </mat-form-field>\n</div>\n", styles: [".select-enum-container{display:flex;flex-direction:column}.select-enum-container mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "component", type: i5$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i6.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i8.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
3046
+ ], ngImport: i0, template: "<div class=\"select-enum-container\">\n <mat-form-field appearance=\"outline\">\n <mat-label>{{ label }} </mat-label>\n <mat-select\n [placeholder]=\"placeholder\"\n [multiple]=\"multiple\"\n [(ngModel)]=\"value\"\n [required]=\"required\"\n [disabled]=\"disabled || loading\"\n (selectionChange)=\"onSelectionChange($event.value)\"\n >\n <mat-option *ngIf=\"!required && !multiple\" [value]=\"null\"\n >Selecione</mat-option\n >\n <mat-option\n *ngFor=\"let e of enumList\"\n [value]=\"e.key\"\n [disabled]=\"disabledOptions?.includes(e.key)\"\n >{{ e.value }}\n <span *ngIf=\"disabledOptions?.includes(e.key)\"> (indispon\u00EDvel)</span>\n </mat-option>\n </mat-select>\n <mat-spinner\n matPrefix\n *ngIf=\"loading\"\n mode=\"indeterminate\"\n diameter=\"17\"\n ></mat-spinner>\n </mat-form-field>\n</div>\n", styles: [".select-enum-container{display:flex;flex-direction:column}.select-enum-container mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i6$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i6.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
2108
3047
  }
2109
3048
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SelectEnumComponent, decorators: [{
2110
3049
  type: Component,
@@ -2136,6 +3075,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2136
3075
  }], val: [{
2137
3076
  type: Input,
2138
3077
  args: ['value']
3078
+ }], ptechCol: [{
3079
+ type: Input,
3080
+ args: ['ptechCol']
3081
+ }], gridColumn: [{
3082
+ type: HostBinding,
3083
+ args: ['style.grid-column']
2139
3084
  }], selectionChange: [{
2140
3085
  type: Output
2141
3086
  }] } });
@@ -2165,6 +3110,16 @@ class SlideToggleComponent {
2165
3110
  set disableRipple(v) { this._disableRipple = coerceBooleanProperty(v); }
2166
3111
  /** name para forms nativos, se precisar */
2167
3112
  name = '';
3113
+ // --- GRID COL (1..12) ---
3114
+ _col = 12;
3115
+ set ptechCol(v) {
3116
+ const n = typeof v === 'string' ? parseInt(v, 10) : v ?? 12;
3117
+ this._col = Number.isFinite(n) ? Math.min(Math.max(+n, 1), 12) : 12;
3118
+ }
3119
+ get gridColumn() {
3120
+ // “span N” funciona dentro de qualquer CSS grid
3121
+ return `span ${this._col}`;
3122
+ }
2168
3123
  /** Saída de mudança (boolean) – compatível com (change) que você usava */
2169
3124
  change = new EventEmitter();
2170
3125
  /** Model interno (CVA) */
@@ -2193,11 +3148,11 @@ class SlideToggleComponent {
2193
3148
  this.value = checked;
2194
3149
  }
2195
3150
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SlideToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2196
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SlideToggleComponent, isStandalone: true, selector: "ptech-slide-toggle", inputs: { label: "label", color: "color", labelPosition: "labelPosition", ariaLabel: "ariaLabel", ariaLabelledby: "ariaLabelledby", disabled: "disabled", required: "required", disableRipple: "disableRipple", name: "name" }, outputs: { change: "change" }, providers: [{
3151
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SlideToggleComponent, isStandalone: true, selector: "ptech-slide-toggle", inputs: { label: "label", color: "color", labelPosition: "labelPosition", ariaLabel: "ariaLabel", ariaLabelledby: "ariaLabelledby", disabled: "disabled", required: "required", disableRipple: "disableRipple", name: "name", ptechCol: "ptechCol" }, outputs: { change: "change" }, host: { properties: { "style.grid-column": "this.gridColumn" } }, providers: [{
2197
3152
  provide: NG_VALUE_ACCESSOR,
2198
3153
  useExisting: forwardRef(() => SlideToggleComponent),
2199
3154
  multi: true,
2200
- }], ngImport: i0, template: "<div class=\"ptech-slide-toggle-container\">\n <mat-slide-toggle\n [color]=\"color\"\n [checked]=\"value\"\n [labelPosition]=\"labelPosition\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\"\n [attr.name]=\"name || null\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"ariaLabelledby || null\"\n (change)=\"onMatChange($event.checked)\"\n (blur)=\"onTouch()\"\n >\n {{ label }}\n </mat-slide-toggle>\n</div>\n", styles: [".slide-toggle-container{display:flex;flex-direction:column}mat-slide-toggle{margin-bottom:15px}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i1$2.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3155
+ }], ngImport: i0, template: "<div class=\"ptech-slide-toggle-container\">\n <mat-slide-toggle\n [color]=\"color\"\n [checked]=\"value\"\n [labelPosition]=\"labelPosition\"\n [required]=\"required\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\"\n [attr.name]=\"name || null\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"ariaLabelledby || null\"\n (change)=\"onMatChange($event.checked)\"\n (blur)=\"onTouch()\"\n >\n {{ label }}\n </mat-slide-toggle>\n</div>\n", styles: [".slide-toggle-container{display:flex;flex-direction:column}mat-slide-toggle{margin-bottom:15px}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i1$3.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2201
3156
  }
2202
3157
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SlideToggleComponent, decorators: [{
2203
3158
  type: Component,
@@ -2224,6 +3179,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2224
3179
  type: Input
2225
3180
  }], name: [{
2226
3181
  type: Input
3182
+ }], ptechCol: [{
3183
+ type: Input,
3184
+ args: ['ptechCol']
3185
+ }], gridColumn: [{
3186
+ type: HostBinding,
3187
+ args: ['style.grid-column']
2227
3188
  }], change: [{
2228
3189
  type: Output
2229
3190
  }] } });
@@ -2266,7 +3227,7 @@ class ConfirmationDialogComponent {
2266
3227
  cancel() {
2267
3228
  this.dialogRef.close(false);
2268
3229
  }
2269
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfirmationDialogComponent, deps: [{ token: i1$3.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
3230
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfirmationDialogComponent, deps: [{ token: i1$4.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
2270
3231
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ConfirmationDialogComponent, isStandalone: true, selector: "ptech-confirmation-dialog", ngImport: i0, template: `
2271
3232
  <div class="dialog">
2272
3233
  <h1 mat-dialog-title class="dialog-title">{{ confirmation.title }}</h1>
@@ -2284,7 +3245,7 @@ class ConfirmationDialogComponent {
2284
3245
  </button>
2285
3246
  </div>
2286
3247
  </div>
2287
- `, isInline: true, styles: [".dialog{padding:10px;background-color:#f7f7f7;border-radius:8px}.dialog-title{font-size:20px;font-weight:500;margin-bottom:12px;text-align:center}.dialog-content{font-size:16px;margin-bottom:20px;text-align:center}.dialog-actions{display:flex;justify-content:center;gap:20px}button{padding:8px 24px;font-size:14px;font-weight:500;text-transform:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i1$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }] });
3248
+ `, isInline: true, styles: [".dialog{padding:10px;background-color:#f7f7f7;border-radius:8px}.dialog-title{font-size:20px;font-weight:500;margin-bottom:12px;text-align:center}.dialog-content{font-size:16px;margin-bottom:20px;text-align:center}.dialog-actions{display:flex;justify-content:center;gap:20px}button{padding:8px 24px;font-size:14px;font-weight:500;text-transform:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i1$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }] });
2288
3249
  }
2289
3250
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfirmationDialogComponent, decorators: [{
2290
3251
  type: Component,
@@ -2306,7 +3267,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2306
3267
  </div>
2307
3268
  </div>
2308
3269
  `, styles: [".dialog{padding:10px;background-color:#f7f7f7;border-radius:8px}.dialog-title{font-size:20px;font-weight:500;margin-bottom:12px;text-align:center}.dialog-content{font-size:16px;margin-bottom:20px;text-align:center}.dialog-actions{display:flex;justify-content:center;gap:20px}button{padding:8px 24px;font-size:14px;font-weight:500;text-transform:none}\n"] }]
2309
- }], ctorParameters: () => [{ type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
3270
+ }], ctorParameters: () => [{ type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
2310
3271
  type: Inject,
2311
3272
  args: [MAT_DIALOG_DATA]
2312
3273
  }] }] });
@@ -2356,8 +3317,8 @@ class ActionDialogComponent {
2356
3317
  onSelectionChange($event) {
2357
3318
  console.log('selection changed', $event);
2358
3319
  }
2359
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ActionDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$3.MatDialogRef }, { token: MESSAGE_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
2360
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ActionDialogComponent, isStandalone: true, selector: "ptech-action-dialog", ngImport: i0, template: "<h2 mat-dialog-title>{{ data.title }}</h2>\n\n<mat-dialog-content>\n <div *ngFor=\"let field of data.fields\">\n <!-- Select -->\n <ng-container *ngIf=\"field.type === 'select'\">\n <ptech-select-entity\n [label]=\"field.label\"\n [entities]=\"field.options ?? []\"\n [(ngModel)]=\"field.value\"\n property=\"label\"\n placeholder=\"Selecione\"\n (selectionChange)=\"onSelectionChange($event)\"\n ></ptech-select-entity>\n </ng-container>\n\n <!-- Number -->\n <ng-container *ngIf=\"field.type === 'number'\">\n <mat-label>{{ field.label }}</mat-label>\n <ptech-quantity-items\n [quantity]=\"field.value\"\n (quantityChange)=\"changeQuantity($event)\"\n ></ptech-quantity-items>\n </ng-container>\n\n <!-- Text -->\n <ng-container *ngIf=\"field.type === 'text'\">\n <mat-form-field appearance=\"fill\">\n <mat-label>{{ field.label }}</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"field.value\" />\n </mat-form-field>\n </ng-container>\n\n <!-- Checkbox -->\n <ng-container *ngIf=\"field.type === 'checkbox'\">\n <mat-checkbox [(ngModel)]=\"field.value\">{{ field.label }}</mat-checkbox>\n </ng-container>\n </div>\n\n <mat-card *ngIf=\"data.infoBox\">\n <pre>{{ data.infoBox }}</pre>\n </mat-card>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <ptech-button\n class=\"action-btn\"\n type=\"raised\"\n [label]=\"data.confirmText || 'Confirmar'\"\n icon=\"assignment_turned_in\"\n color=\"primary\"\n (click)=\"onConfirm()\"\n ></ptech-button>\n\n <ptech-button\n class=\"action-btn\"\n type=\"raised\"\n [label]=\"data.cancelText || 'Fechar'\"\n icon=\"close\"\n color=\"#dc3545\"\n (click)=\"onCancel()\"\n ></ptech-button>\n</mat-dialog-actions>\n", styles: [".action-btn{margin-right:5px!important}mat-dialog-content{max-height:calc(90vh - 120px);overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card{background:#2b2e34!important;color:#fff!important;padding:12px 16px!important;border-radius:6px;font-size:13px;line-height:18px;margin-bottom:24px;white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card pre{margin:0;white-space:pre-wrap!important;word-break:break-word!important;overflow-wrap:break-word!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i4$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i1$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i7$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["required", "type", "tooltip", "disabled", "loading", "icon", "iconColor", "iconWidth", "iconHeight", "label", "textColor", "link", "target", "shape", "ariaLabel", "color", "fullWidth"] }, { kind: "component", type: SelectEntityComponent, selector: "ptech-select-entity", inputs: ["appearance", "label", "placeholder", "disabled", "multiple", "required", "property", "propertyEnum", "propertyFn", "idProp", "searchPlaceholder", "multipleTriggerMax", "entities", "loading"], outputs: ["selectionChange", "loadingChange"] }, { kind: "component", type: QuantityItemsComponent, selector: "ptech-quantity-items", inputs: ["quantity"], outputs: ["quantityChange"] }] });
3320
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ActionDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$4.MatDialogRef }, { token: MESSAGE_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
3321
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ActionDialogComponent, isStandalone: true, selector: "ptech-action-dialog", ngImport: i0, template: "<h2 mat-dialog-title>{{ data.title }}</h2>\n\n<mat-dialog-content>\n <div *ngFor=\"let field of data.fields\">\n <!-- Select -->\n <ng-container *ngIf=\"field.type === 'select'\">\n <ptech-select-entity\n [label]=\"field.label\"\n [entities]=\"field.options ?? []\"\n [(ngModel)]=\"field.value\"\n property=\"label\"\n placeholder=\"Selecione\"\n (selectionChange)=\"onSelectionChange($event)\"\n ></ptech-select-entity>\n </ng-container>\n\n <!-- Number -->\n <ng-container *ngIf=\"field.type === 'number'\">\n <mat-label>{{ field.label }}</mat-label>\n <ptech-quantity-items\n [quantity]=\"field.value\"\n (quantityChange)=\"changeQuantity($event)\"\n ></ptech-quantity-items>\n </ng-container>\n\n <!-- Text -->\n <ng-container *ngIf=\"field.type === 'text'\">\n <mat-form-field appearance=\"fill\">\n <mat-label>{{ field.label }}</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"field.value\" />\n </mat-form-field>\n </ng-container>\n\n <!-- Checkbox -->\n <ng-container *ngIf=\"field.type === 'checkbox'\">\n <mat-checkbox [(ngModel)]=\"field.value\">{{ field.label }}</mat-checkbox>\n </ng-container>\n </div>\n\n <mat-card *ngIf=\"data.infoBox\">\n <pre>{{ data.infoBox }}</pre>\n </mat-card>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <ptech-button\n class=\"action-btn\"\n type=\"raised\"\n [label]=\"data.confirmText || 'Confirmar'\"\n icon=\"assignment_turned_in\"\n color=\"primary\"\n (click)=\"onConfirm()\"\n ></ptech-button>\n\n <ptech-button\n class=\"action-btn\"\n type=\"raised\"\n [label]=\"data.cancelText || 'Fechar'\"\n icon=\"close\"\n color=\"#dc3545\"\n (click)=\"onCancel()\"\n ></ptech-button>\n</mat-dialog-actions>\n", styles: [".action-btn{margin-right:5px!important}mat-dialog-content{max-height:calc(90vh - 120px);overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card{background:#2b2e34!important;color:#fff!important;padding:12px 16px!important;border-radius:6px;font-size:13px;line-height:18px;margin-bottom:24px;white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card pre{margin:0;white-space:pre-wrap!important;word-break:break-word!important;overflow-wrap:break-word!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i4$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i1$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i7$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["required", "type", "tooltip", "disabled", "loading", "icon", "iconColor", "iconWidth", "iconHeight", "label", "textColor", "link", "target", "shape", "ariaLabel", "color", "fullWidth"] }, { kind: "component", type: SelectEntityComponent, selector: "ptech-select-entity", inputs: ["appearance", "label", "placeholder", "disabled", "multiple", "required", "property", "propertyEnum", "propertyFn", "idProp", "searchPlaceholder", "multipleTriggerMax", "entities", "loading", "ptechCol"], outputs: ["selectionChange", "loadingChange"] }, { kind: "component", type: QuantityItemsComponent, selector: "ptech-quantity-items", inputs: ["label", "required", "fullWidth", "ariaLabel", "min", "max", "step", "disabled", "ptechCol", "quantity"], outputs: ["quantityChange"] }] });
2361
3322
  }
2362
3323
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ActionDialogComponent, decorators: [{
2363
3324
  type: Component,
@@ -2372,7 +3333,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2372
3333
  }], ctorParameters: () => [{ type: undefined, decorators: [{
2373
3334
  type: Inject,
2374
3335
  args: [MAT_DIALOG_DATA]
2375
- }] }, { type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
3336
+ }] }, { type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
2376
3337
  type: Optional
2377
3338
  }, {
2378
3339
  type: Inject,
@@ -2424,7 +3385,7 @@ class InfoDetailDialogComponent {
2424
3385
 
2425
3386
  <button mat-button mat-dialog-close>Fechar</button>
2426
3387
  </mat-dialog-actions>
2427
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i2$1.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i1$3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }] });
3388
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i2$1.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i1$4.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }] });
2428
3389
  }
2429
3390
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InfoDetailDialogComponent, decorators: [{
2430
3391
  type: Component,
@@ -2484,13 +3445,13 @@ class InfoDetailComponent {
2484
3445
  },
2485
3446
  });
2486
3447
  }
2487
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InfoDetailComponent, deps: [{ token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
3448
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InfoDetailComponent, deps: [{ token: i1$4.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
2488
3449
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InfoDetailComponent, isStandalone: true, selector: "ptech-info-detail", inputs: { infoTitle: "infoTitle", infoContent: "infoContent", infoRawContent: "infoRawContent", iconColor: "iconColor" }, ngImport: i0, template: "<div class=\"info-trigger\" (click)=\"openInfo()\" [style.color]=\"iconColor\">\n <button mat-icon-button>\n <mat-icon [style.color]=\"iconColor\">info</mat-icon>\n </button>\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:inline-block;font-family:Inter,sans-serif;color:var(--text-color, #ffffff)}.info-trigger{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;transition:opacity .2s ease,transform .15s ease}.info-trigger:hover{opacity:.85;transform:translateY(-1px)}.info-trigger button.mat-mdc-icon-button{display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;min-width:0;width:2rem;height:2rem;border-radius:50%;background:transparent!important;transition:background-color .2s ease}.info-trigger button.mat-mdc-icon-button:hover{background-color:#ffffff14}.info-trigger mat-icon{font-size:1.5rem;line-height:1;color:inherit}.info-trigger .detail-link{margin:0;line-height:1.2;font-size:.85rem;text-decoration:underline;color:inherit;transition:color .2s ease}.info-trigger .detail-link:hover{color:var(--link-hover-color, #00bfff)}@media (max-width: 600px){.info-trigger{gap:.625rem}.info-trigger button.mat-mdc-icon-button{width:2.25rem;height:2.25rem}.info-trigger mat-icon{font-size:1.75rem}.info-trigger .detail-link{font-size:.95rem}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
2489
3450
  }
2490
3451
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InfoDetailComponent, decorators: [{
2491
3452
  type: Component,
2492
3453
  args: [{ selector: 'ptech-info-detail', standalone: true, imports: [CommonModule, CoreMaterialModule], template: "<div class=\"info-trigger\" (click)=\"openInfo()\" [style.color]=\"iconColor\">\n <button mat-icon-button>\n <mat-icon [style.color]=\"iconColor\">info</mat-icon>\n </button>\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:inline-block;font-family:Inter,sans-serif;color:var(--text-color, #ffffff)}.info-trigger{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;transition:opacity .2s ease,transform .15s ease}.info-trigger:hover{opacity:.85;transform:translateY(-1px)}.info-trigger button.mat-mdc-icon-button{display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;min-width:0;width:2rem;height:2rem;border-radius:50%;background:transparent!important;transition:background-color .2s ease}.info-trigger button.mat-mdc-icon-button:hover{background-color:#ffffff14}.info-trigger mat-icon{font-size:1.5rem;line-height:1;color:inherit}.info-trigger .detail-link{margin:0;line-height:1.2;font-size:.85rem;text-decoration:underline;color:inherit;transition:color .2s ease}.info-trigger .detail-link:hover{color:var(--link-hover-color, #00bfff)}@media (max-width: 600px){.info-trigger{gap:.625rem}.info-trigger button.mat-mdc-icon-button{width:2.25rem;height:2.25rem}.info-trigger mat-icon{font-size:1.75rem}.info-trigger .detail-link{font-size:.95rem}}\n"] }]
2493
- }], ctorParameters: () => [{ type: i1$3.MatDialog }], propDecorators: { infoTitle: [{
3454
+ }], ctorParameters: () => [{ type: i1$4.MatDialog }], propDecorators: { infoTitle: [{
2494
3455
  type: Input
2495
3456
  }], infoContent: [{
2496
3457
  type: Input
@@ -2544,8 +3505,8 @@ class ActionResultDialogComponent {
2544
3505
  return;
2545
3506
  window.open(this.whatsappUrl, '_blank');
2546
3507
  }
2547
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ActionResultDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$3.MatDialogRef }, { token: i2$3.DomSanitizer }, { token: MESSAGE_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
2548
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ActionResultDialogComponent, isStandalone: true, selector: "ptech-action-result-dialog", ngImport: i0, template: "<h2 mat-dialog-title>{{ data.title }}</h2>\n\n<mat-dialog-content>\n <!-- Conte\u00FAdo HTML (sanitizado) -->\n <div *ngIf=\"data.content\" [innerHTML]=\"sanitizedContent\"></div>\n\n <!-- Detalhes estruturados (JSON etc.) -->\n <div *ngIf=\"data.details\" class=\"details\">\n <mat-card>\n <pre>{{ data.details | json }}</pre>\n </mat-card>\n </div>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <ptech-button\n *ngIf=\"data.rawContent\"\n class=\"action-btn\"\n label=\"WhatsApp\"\n icon=\"share\"\n type=\"raised\"\n color=\"#00c853\"\n (click)=\"openWhatsApp()\"\n ></ptech-button>\n\n <ptech-button\n *ngIf=\"data.rawContent\"\n class=\"action-btn\"\n label=\"Copiar\"\n icon=\"file_copy\"\n type=\"raised\"\n color=\"primary\"\n (click)=\"copyToClipboard()\"\n ></ptech-button>\n\n <ptech-button\n class=\"action-btn\"\n label=\"Fechar\"\n icon=\"close\"\n type=\"raised\"\n color=\"#dc3545\"\n (click)=\"close()\"\n ></ptech-button>\n</mat-dialog-actions>\n", styles: [":host{display:block;color:#fff;padding:24px;border-radius:10px;min-width:420px;font-family:Inter,sans-serif;background:transparent}h2[mat-dialog-title]{font-size:20px;font-weight:600;margin-bottom:24px}mat-dialog-content{display:flex;flex-direction:column;gap:20px}mat-dialog-content div[innerHTML]{color:#fff;font-size:14px;line-height:20px}.details{background:#2b2e34!important;color:#fff!important;padding:14px 18px!important;border-radius:8px;font-size:14px;line-height:20px;font-family:monospace;white-space:pre-wrap;word-break:break-word;box-shadow:none;width:100%}.details mat-card{background:transparent;box-shadow:none;padding:0;margin:0}.details pre{margin:0;color:#fff}mat-dialog-actions{display:flex;justify-content:flex-end;gap:12px}mat-dialog-actions button,mat-dialog-actions a[mat-flat-button]{border-radius:6px!important;font-weight:500;padding:8px 18px;text-transform:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.JsonPipe, name: "json" }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i4$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i1$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["required", "type", "tooltip", "disabled", "loading", "icon", "iconColor", "iconWidth", "iconHeight", "label", "textColor", "link", "target", "shape", "ariaLabel", "color", "fullWidth"] }] });
3508
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ActionResultDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$4.MatDialogRef }, { token: i2$3.DomSanitizer }, { token: MESSAGE_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
3509
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ActionResultDialogComponent, isStandalone: true, selector: "ptech-action-result-dialog", ngImport: i0, template: "<h2 mat-dialog-title>{{ data.title }}</h2>\n\n<mat-dialog-content>\n <!-- Conte\u00FAdo HTML (sanitizado) -->\n <div *ngIf=\"data.content\" [innerHTML]=\"sanitizedContent\"></div>\n\n <!-- Detalhes estruturados (JSON etc.) -->\n <div *ngIf=\"data.details\" class=\"details\">\n <mat-card>\n <pre>{{ data.details | json }}</pre>\n </mat-card>\n </div>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <ptech-button\n *ngIf=\"data.rawContent\"\n class=\"action-btn\"\n label=\"WhatsApp\"\n icon=\"share\"\n type=\"raised\"\n color=\"#00c853\"\n (click)=\"openWhatsApp()\"\n ></ptech-button>\n\n <ptech-button\n *ngIf=\"data.rawContent\"\n class=\"action-btn\"\n label=\"Copiar\"\n icon=\"file_copy\"\n type=\"raised\"\n color=\"primary\"\n (click)=\"copyToClipboard()\"\n ></ptech-button>\n\n <ptech-button\n class=\"action-btn\"\n label=\"Fechar\"\n icon=\"close\"\n type=\"raised\"\n color=\"#dc3545\"\n (click)=\"close()\"\n ></ptech-button>\n</mat-dialog-actions>\n", styles: [":host{display:block;color:#fff;padding:24px;border-radius:10px;min-width:420px;font-family:Inter,sans-serif;background:transparent}h2[mat-dialog-title]{font-size:20px;font-weight:600;margin-bottom:24px}mat-dialog-content{display:flex;flex-direction:column;gap:20px}mat-dialog-content div[innerHTML]{color:#fff;font-size:14px;line-height:20px}.details{background:#2b2e34!important;color:#fff!important;padding:14px 18px!important;border-radius:8px;font-size:14px;line-height:20px;font-family:monospace;white-space:pre-wrap;word-break:break-word;box-shadow:none;width:100%}.details mat-card{background:transparent;box-shadow:none;padding:0;margin:0}.details pre{margin:0;color:#fff}mat-dialog-actions{display:flex;justify-content:flex-end;gap:12px}mat-dialog-actions button,mat-dialog-actions a[mat-flat-button]{border-radius:6px!important;font-weight:500;padding:8px 18px;text-transform:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.JsonPipe, name: "json" }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i4$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i1$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["required", "type", "tooltip", "disabled", "loading", "icon", "iconColor", "iconWidth", "iconHeight", "label", "textColor", "link", "target", "shape", "ariaLabel", "color", "fullWidth"] }] });
2549
3510
  }
2550
3511
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ActionResultDialogComponent, decorators: [{
2551
3512
  type: Component,
@@ -2553,7 +3514,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2553
3514
  }], ctorParameters: () => [{ type: undefined, decorators: [{
2554
3515
  type: Inject,
2555
3516
  args: [MAT_DIALOG_DATA]
2556
- }] }, { type: i1$3.MatDialogRef }, { type: i2$3.DomSanitizer }, { type: undefined, decorators: [{
3517
+ }] }, { type: i1$4.MatDialogRef }, { type: i2$3.DomSanitizer }, { type: undefined, decorators: [{
2557
3518
  type: Inject,
2558
3519
  args: [MESSAGE_SERVICE]
2559
3520
  }] }] });
@@ -2596,8 +3557,8 @@ class AlertComponent {
2596
3557
  second: '2-digit',
2597
3558
  });
2598
3559
  }
2599
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertComponent, deps: [{ token: MAT_SNACK_BAR_DATA }, { token: i1$4.MatSnackBarRef }], target: i0.ɵɵFactoryTarget.Component });
2600
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AlertComponent, isStandalone: true, selector: "ptech-alert", ngImport: i0, template: "<div class=\"alert\" [ngClass]=\"data.type\" role=\"alert\">\n <mat-icon\n *ngIf=\"data.icon\"\n class=\"icon\"\n [ngStyle]=\"{ color: getIconColor(data.type) }\"\n >{{ data.icon }}</mat-icon\n >\n <div class=\"text-content\">\n <div class=\"title\">\n {{ data.title }}\n </div>\n <span class=\"text-content-date-hour\">{{\n data.timestamp | date : \"dd/MM/yyyy HH:mm:ss\"\n }}</span>\n <span>{{ data.message }}</span>\n <span *ngFor=\"let detail of data.details\">{{ detail }}</span>\n </div>\n\n <button mat-icon-button class=\"close-button\" (click)=\"closeSnackbar()\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".alert{position:relative;display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:3px;padding:30px;border-left:5px solid #ddd;box-shadow:-1px 2px 7px -1px #00000045;max-width:350px}.close-button{position:relative;bottom:30px;left:15px;margin:0;padding:0;color:#aaa;border:none;background:none;cursor:pointer}.close-button mat-icon{font-size:26px!important;margin-top:10px!important;margin-left:-3px!important}.alert mat-icon{height:35px;width:55px;font-size:35px;display:contents}.text-content{margin-left:10px!important;display:flex;flex-direction:column}.text-content-date-hour{margin-left:0!important;margin-bottom:10px}.title{font-family:Roboto,Nunito,Helvetica Neue,sans-serif;font-size:16px;color:#606267;font-weight:600;margin-bottom:3px}span{font-family:Roboto,Nunito,Helvetica Neue,sans-serif;font-size:14px;color:#9ea0a9;font-weight:400}.success{border-left-color:#7fcb78}.error{border-left-color:#f25158}.warn{border-left-color:#f0c943}.info{border-left-color:#2c80d2}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3560
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertComponent, deps: [{ token: MAT_SNACK_BAR_DATA }, { token: i1$5.MatSnackBarRef }], target: i0.ɵɵFactoryTarget.Component });
3561
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AlertComponent, isStandalone: true, selector: "ptech-alert", ngImport: i0, template: "<div class=\"alert\" [ngClass]=\"data.type\" role=\"alert\">\n <mat-icon\n *ngIf=\"data.icon\"\n class=\"icon\"\n [ngStyle]=\"{ color: getIconColor(data.type) }\"\n >{{ data.icon }}</mat-icon\n >\n <div class=\"text-content\">\n <div class=\"title\">\n {{ data.title }}\n </div>\n <span class=\"text-content-date-hour\">{{\n data.timestamp | date : \"dd/MM/yyyy HH:mm:ss\"\n }}</span>\n <span>{{ data.message }}</span>\n <span *ngFor=\"let detail of data.details\">{{ detail }}</span>\n </div>\n\n <button mat-icon-button class=\"close-button\" (click)=\"closeSnackbar()\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".alert{position:relative;display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:3px;padding:30px;border-left:5px solid #ddd;box-shadow:-1px 2px 7px -1px #00000045;max-width:350px}.close-button{position:relative;bottom:30px;left:15px;margin:0;padding:0;color:#aaa;border:none;background:none;cursor:pointer}.close-button mat-icon{font-size:26px!important;margin-top:10px!important;margin-left:-3px!important}.alert mat-icon{height:35px;width:55px;font-size:35px;display:contents}.text-content{margin-left:10px!important;display:flex;flex-direction:column}.text-content-date-hour{margin-left:0!important;margin-bottom:10px}.title{font-family:Roboto,Nunito,Helvetica Neue,sans-serif;font-size:16px;color:#606267;font-weight:600;margin-bottom:3px}span{font-family:Roboto,Nunito,Helvetica Neue,sans-serif;font-size:14px;color:#9ea0a9;font-weight:400}.success{border-left-color:#7fcb78}.error{border-left-color:#f25158}.warn{border-left-color:#f0c943}.info{border-left-color:#2c80d2}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2601
3562
  }
2602
3563
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertComponent, decorators: [{
2603
3564
  type: Component,
@@ -2605,7 +3566,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2605
3566
  }], ctorParameters: () => [{ type: undefined, decorators: [{
2606
3567
  type: Inject,
2607
3568
  args: [MAT_SNACK_BAR_DATA]
2608
- }] }, { type: i1$4.MatSnackBarRef }] });
3569
+ }] }, { type: i1$5.MatSnackBarRef }] });
2609
3570
 
2610
3571
  class GetFirstStringBeforeSpacePipe {
2611
3572
  transform(value) {
@@ -2655,7 +3616,7 @@ class ProfileMenuComponent {
2655
3616
  <!-- extensibilidade por projection -->
2656
3617
  <ng-content select="[extra-items]"></ng-content>
2657
3618
  </mat-menu>
2658
- `, isInline: true, styles: [".profile-menu{display:flex;align-items:center;cursor:pointer;position:relative}.profile-menu mat-icon{margin-right:8px;color:#fff}.profile-menu span{color:#fff;font-weight:700;margin-right:4px}.profile-menu mat-icon:last-child{margin-right:0}.mat-divider{margin:0!important}@media (max-width: 599px){.hide-on-mobile{display:none}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i6$1.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4$3.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i4$3.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i4$3.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "pipe", type: GetFirstStringBeforeSpacePipe, name: "getFirstStringBeforeSpace" }] });
3619
+ `, isInline: true, styles: [".profile-menu{display:flex;align-items:center;cursor:pointer;position:relative}.profile-menu mat-icon{margin-right:8px;color:#fff}.profile-menu span{color:#fff;font-weight:700;margin-right:4px}.profile-menu mat-icon:last-child{margin-right:0}.mat-divider{margin:0!important}@media (max-width: 599px){.hide-on-mobile{display:none}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i6$2.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4$3.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: i4$3.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i4$3.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "pipe", type: GetFirstStringBeforeSpacePipe, name: "getFirstStringBeforeSpace" }] });
2659
3620
  }
2660
3621
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ProfileMenuComponent, decorators: [{
2661
3622
  type: Component,
@@ -2787,8 +3748,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2787
3748
  type: Input
2788
3749
  }] } });
2789
3750
 
2790
- // src/lib/components/input-date-picker-range/input-date-picker-range.component.ts
2791
- class InputDatePickerRangeComponent {
3751
+ class InputDateRangeComponent {
2792
3752
  disabled = false;
2793
3753
  label;
2794
3754
  required = false;
@@ -2858,23 +3818,23 @@ class InputDatePickerRangeComponent {
2858
3818
  // Format date with timezone offset
2859
3819
  return momentDate.format('YYYY-MM-DDTHH:mm:ssZ'); // This will include the offset
2860
3820
  }
2861
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputDatePickerRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2862
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InputDatePickerRangeComponent, isStandalone: true, selector: "ptech-input-date-picker-range", inputs: { disabled: "disabled", label: "label", required: "required", loading: "loading", firstPlaceholder: "firstPlaceholder", secondPlaceholder: "secondPlaceholder", hint: "hint", appearance: "appearance" }, outputs: { dateChange: "dateChange" }, providers: [
3821
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputDateRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3822
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InputDateRangeComponent, isStandalone: true, selector: "ptech-input-date-range", inputs: { disabled: "disabled", label: "label", required: "required", loading: "loading", firstPlaceholder: "firstPlaceholder", secondPlaceholder: "secondPlaceholder", hint: "hint", appearance: "appearance" }, outputs: { dateChange: "dateChange" }, providers: [
2863
3823
  {
2864
3824
  provide: NG_VALUE_ACCESSOR,
2865
- useExisting: forwardRef(() => InputDatePickerRangeComponent),
3825
+ useExisting: forwardRef(() => InputDateRangeComponent),
2866
3826
  multi: true
2867
3827
  }
2868
- ], ngImport: i0, template: "<mat-form-field [appearance]=\"appearance\" class=\"input-date-container\">\n <mat-label>{{ label }}</mat-label>\n <mat-date-range-input [rangePicker]=\"picker\" [disabled]=\"disabled\">\n <input\n matStartDate\n [placeholder]=\"firstPlaceholder\"\n [required]=\"required\"\n (dateChange)=\"onStartDateChange($event)\"\n />\n <input\n matEndDate\n [placeholder]=\"secondPlaceholder\"\n [required]=\"required\"\n (dateChange)=\"onEndDateChange($event)\"\n />\n </mat-date-range-input>\n <mat-hint *ngIf=\"hint\">{{ hint }}</mat-hint>\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-date-range-picker #picker></mat-date-range-picker>\n <mat-spinner\n matPrefix\n *ngIf=\"loading\"\n mode=\"indeterminate\"\n diameter=\"17\"\n ></mat-spinner>\n</mat-form-field>\n", styles: [".input-date-container{display:flex;flex-direction:column;width:100%}.mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i3$3.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i3$3.MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "directive", type: i3$3.MatStartDate, selector: "input[matStartDate]", outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: i3$3.MatEndDate, selector: "input[matEndDate]", outputs: ["dateChange", "dateInput"] }, { kind: "component", type: i3$3.MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { kind: "component", type: i8.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
3828
+ ], ngImport: i0, template: "<mat-form-field [appearance]=\"appearance\" class=\"input-date-container\">\n <mat-label>{{ label }}</mat-label>\n <mat-date-range-input [rangePicker]=\"picker\" [disabled]=\"disabled\">\n <input\n matStartDate\n [placeholder]=\"firstPlaceholder\"\n [required]=\"required\"\n (dateChange)=\"onStartDateChange($event)\"\n />\n <input\n matEndDate\n [placeholder]=\"secondPlaceholder\"\n [required]=\"required\"\n (dateChange)=\"onEndDateChange($event)\"\n />\n </mat-date-range-input>\n <mat-hint *ngIf=\"hint\">{{ hint }}</mat-hint>\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-date-range-picker #picker></mat-date-range-picker>\n <mat-spinner\n matPrefix\n *ngIf=\"loading\"\n mode=\"indeterminate\"\n diameter=\"17\"\n ></mat-spinner>\n</mat-form-field>\n", styles: [".input-date-container{display:flex;flex-direction:column;width:100%}.mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i3$4.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i3$4.MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "directive", type: i3$4.MatStartDate, selector: "input[matStartDate]", outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: i3$4.MatEndDate, selector: "input[matEndDate]", outputs: ["dateChange", "dateInput"] }, { kind: "component", type: i3$4.MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { kind: "component", type: i6.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
2869
3829
  }
2870
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputDatePickerRangeComponent, decorators: [{
3830
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputDateRangeComponent, decorators: [{
2871
3831
  type: Component,
2872
- args: [{ selector: 'ptech-input-date-picker-range', standalone: true, imports: [
3832
+ args: [{ selector: 'ptech-input-date-range', standalone: true, imports: [
2873
3833
  CoreMaterialModule
2874
3834
  ], providers: [
2875
3835
  {
2876
3836
  provide: NG_VALUE_ACCESSOR,
2877
- useExisting: forwardRef(() => InputDatePickerRangeComponent),
3837
+ useExisting: forwardRef(() => InputDateRangeComponent),
2878
3838
  multi: true
2879
3839
  }
2880
3840
  ], template: "<mat-form-field [appearance]=\"appearance\" class=\"input-date-container\">\n <mat-label>{{ label }}</mat-label>\n <mat-date-range-input [rangePicker]=\"picker\" [disabled]=\"disabled\">\n <input\n matStartDate\n [placeholder]=\"firstPlaceholder\"\n [required]=\"required\"\n (dateChange)=\"onStartDateChange($event)\"\n />\n <input\n matEndDate\n [placeholder]=\"secondPlaceholder\"\n [required]=\"required\"\n (dateChange)=\"onEndDateChange($event)\"\n />\n </mat-date-range-input>\n <mat-hint *ngIf=\"hint\">{{ hint }}</mat-hint>\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-date-range-picker #picker></mat-date-range-picker>\n <mat-spinner\n matPrefix\n *ngIf=\"loading\"\n mode=\"indeterminate\"\n diameter=\"17\"\n ></mat-spinner>\n</mat-form-field>\n", styles: [".input-date-container{display:flex;flex-direction:column;width:100%}.mat-form-field{width:100%}\n"] }]
@@ -2898,6 +3858,707 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2898
3858
  type: Output
2899
3859
  }] } });
2900
3860
 
3861
+ class InputDateComponent {
3862
+ cdr;
3863
+ inputDateElement;
3864
+ picker;
3865
+ // controle reativo da data
3866
+ dateCtrl = new FormControl({ value: null, disabled: false });
3867
+ // Inputs
3868
+ label = '';
3869
+ placeholder = '';
3870
+ appearance = 'outline';
3871
+ required = false;
3872
+ disabled = false; // <- não usar no template com [formControl]
3873
+ loading = false; // idem (use ngOnChanges)
3874
+ name;
3875
+ min;
3876
+ max;
3877
+ startAt;
3878
+ startView = 'month';
3879
+ touchUi = false;
3880
+ panelClass;
3881
+ dateFilter;
3882
+ withTime = false;
3883
+ seconds = true;
3884
+ timeLabel = 'Hora';
3885
+ defaultTime = '00:00:00';
3886
+ timeZone;
3887
+ emit = 'isoDate';
3888
+ // --- GRID COL (1..12) ---
3889
+ _col = 12;
3890
+ set ptechCol(v) {
3891
+ const n = typeof v === 'string' ? parseInt(v, 10) : v ?? 12;
3892
+ this._col = Number.isFinite(n) ? Math.min(Math.max(+n, 1), 12) : 12;
3893
+ }
3894
+ get gridColumn() {
3895
+ // “span N” funciona dentro de qualquer CSS grid
3896
+ return `span ${this._col}`;
3897
+ }
3898
+ dateChange = new EventEmitter();
3899
+ opened = new EventEmitter();
3900
+ closed = new EventEmitter();
3901
+ timeString = '';
3902
+ onChange = () => { };
3903
+ onTouched = () => { };
3904
+ get isDisabled() { return this.disabled || this.loading; }
3905
+ constructor(cdr) {
3906
+ this.cdr = cdr;
3907
+ this.dateCtrl.valueChanges.subscribe(() => this.emitCombined());
3908
+ }
3909
+ // SINCRONIZA disabled/loading -> FormControl
3910
+ ngOnChanges(changes) {
3911
+ if (('disabled' in changes) || ('loading' in changes)) {
3912
+ const shouldDisable = this.isDisabled;
3913
+ if (shouldDisable && !this.dateCtrl.disabled)
3914
+ this.dateCtrl.disable({ emitEvent: false });
3915
+ if (!shouldDisable && this.dateCtrl.disabled)
3916
+ this.dateCtrl.enable({ emitEvent: false });
3917
+ }
3918
+ }
3919
+ // CVA
3920
+ writeValue(value) {
3921
+ if (!value) {
3922
+ this.dateCtrl.setValue(null, { emitEvent: false });
3923
+ this.timeString = '';
3924
+ this.cdr.detectChanges();
3925
+ return;
3926
+ }
3927
+ const d = this.parseToDate(value);
3928
+ this.dateCtrl.setValue(d, { emitEvent: false });
3929
+ if (d) {
3930
+ const hh = this.pad(d.getHours());
3931
+ const mm = this.pad(d.getMinutes());
3932
+ const ss = this.pad(d.getSeconds());
3933
+ this.timeString = this.seconds ? `${hh}:${mm}:${ss}` : `${hh}:${mm}`;
3934
+ }
3935
+ else {
3936
+ this.timeString = '';
3937
+ }
3938
+ this.cdr.detectChanges();
3939
+ }
3940
+ registerOnChange(fn) { this.onChange = fn; }
3941
+ registerOnTouched(fn) { this.onTouched = fn; }
3942
+ setDisabledState(isDisabled) {
3943
+ this.disabled = isDisabled;
3944
+ this.ngOnChanges({ disabled: { currentValue: isDisabled, previousValue: !isDisabled, firstChange: false, isFirstChange: () => false } });
3945
+ }
3946
+ // UI
3947
+ onTimeInput(v) {
3948
+ this.timeString = v || '';
3949
+ this.emitCombined();
3950
+ }
3951
+ // Emissão
3952
+ emitCombined() {
3953
+ const d = this.combine(this.dateCtrl.value, this.timeString);
3954
+ const out = this.toOutput(d);
3955
+ this.onChange(out);
3956
+ this.dateChange.emit(out);
3957
+ }
3958
+ // Helpers (iguais aos seus)
3959
+ combine(date, time) {
3960
+ if (!date)
3961
+ return null;
3962
+ const t = this.withTime ? (time || this.defaultTime) : '00:00:00';
3963
+ const [hh, mm, ss] = this.normalizeTime(t);
3964
+ const d = new Date(date);
3965
+ d.setHours(hh, mm, ss, 0);
3966
+ return d;
3967
+ }
3968
+ normalizeTime(t) {
3969
+ const parts = t.split(':').map(p => +p || 0);
3970
+ return [this.clamp(parts[0], 0, 23), this.clamp(parts[1] ?? 0, 0, 59), this.clamp(parts[2] ?? 0, 0, 59)];
3971
+ }
3972
+ clamp(v, min, max) { return Math.max(min, Math.min(max, v)); }
3973
+ parseToDate(v) {
3974
+ if (v instanceof Date)
3975
+ return isNaN(v.getTime()) ? null : v;
3976
+ const d = new Date(v);
3977
+ return isNaN(d.getTime()) ? null : d;
3978
+ }
3979
+ toOutput(d) {
3980
+ if (!d)
3981
+ return null;
3982
+ switch (this.emit) {
3983
+ case 'date': return d;
3984
+ case 'isoDate': return this.formatIsoDate(d);
3985
+ case 'isoDateTimeZ': return d.toISOString();
3986
+ case 'localOffset': return this.formatWithFixedOffset(d, d.getTimezoneOffset() * -1);
3987
+ case 'isoDateTimeTZ': {
3988
+ const tz = (this.timeZone ?? 'UTC');
3989
+ return this.formatInTimeZone(d, tz);
3990
+ }
3991
+ default: return this.formatIsoDate(d);
3992
+ }
3993
+ }
3994
+ pad(n) { return n < 10 ? '0' + n : '' + n; }
3995
+ formatIsoDate(d) { return `${d.getFullYear()}-${this.pad(d.getMonth() + 1)}-${this.pad(d.getDate())}`; }
3996
+ /** Constrói 'YYYY-MM-DDTHH:mm:ss±HH:MM' para offset “fixo” (minutos a partir de UTC) */
3997
+ formatWithFixedOffset(d, offsetMinutes) {
3998
+ const ms = d.getTime() + offsetMinutes * 60000;
3999
+ const z = new Date(ms);
4000
+ const y = z.getUTCFullYear();
4001
+ const m = this.pad(z.getUTCMonth() + 1);
4002
+ const day = this.pad(z.getUTCDate());
4003
+ const H = this.pad(z.getUTCHours());
4004
+ const M = this.pad(z.getUTCMinutes());
4005
+ const S = this.pad(z.getUTCSeconds());
4006
+ const sign = offsetMinutes >= 0 ? '+' : '-';
4007
+ const oh = this.pad(Math.trunc(Math.abs(offsetMinutes) / 60));
4008
+ const om = this.pad(Math.abs(offsetMinutes) % 60);
4009
+ // 👇 CRASES
4010
+ return `${y}-${m}-${day}T${H}:${M}:${S}${sign}${oh}:${om}`;
4011
+ }
4012
+ /** Formata no timezone (IANA/offset/UTC). Default UTC quando nada informado. */
4013
+ formatInTimeZone(d, tz) {
4014
+ if (typeof tz === 'number')
4015
+ return this.formatWithFixedOffset(d, tz);
4016
+ if (tz === 'browser')
4017
+ return this.formatWithFixedOffset(d, d.getTimezoneOffset() * -1); // 👈 novo atalho
4018
+ if (tz === 'UTC' || tz === 'Z' || !tz)
4019
+ return this.formatWithFixedOffset(d, 0);
4020
+ if (/^[+-]\d{2}:\d{2}$/.test(tz)) {
4021
+ const min = this.offsetStringToMinutes(tz);
4022
+ return this.formatWithFixedOffset(d, min);
4023
+ }
4024
+ // IANA
4025
+ const parts = new Intl.DateTimeFormat('en-US', {
4026
+ timeZone: tz,
4027
+ hour12: false,
4028
+ year: 'numeric', month: '2-digit', day: '2-digit',
4029
+ hour: '2-digit', minute: '2-digit', second: '2-digit'
4030
+ }).formatToParts(d);
4031
+ const map = {};
4032
+ for (const p of parts)
4033
+ map[p.type] = p.value;
4034
+ const off = this.getTzOffsetMinutes(d, tz);
4035
+ const sign = off >= 0 ? '+' : '-';
4036
+ const oh = this.pad(Math.trunc(Math.abs(off) / 60));
4037
+ const om = this.pad(Math.abs(off) % 60);
4038
+ // 👇 CRASES
4039
+ return `${map.year}-${map.month}-${map.day}T${map.hour}:${map.minute}:${map.second}${sign}${oh}:${om}`;
4040
+ }
4041
+ offsetStringToMinutes(s) {
4042
+ const sign = s.startsWith('-') ? -1 : 1;
4043
+ const [h, m] = s.slice(1).split(':').map(n => +n);
4044
+ return sign * (h * 60 + m);
4045
+ }
4046
+ /** Offset (min) do timezone IANA naquele instante. Ex.: SP ⇒ -180 no horário padrão. */
4047
+ getTzOffsetMinutes(date, timeZone) {
4048
+ const dtf = new Intl.DateTimeFormat('en-US', {
4049
+ timeZone,
4050
+ hour12: false,
4051
+ year: 'numeric', month: '2-digit', day: '2-digit',
4052
+ hour: '2-digit', minute: '2-digit', second: '2-digit'
4053
+ });
4054
+ const parts = dtf.formatToParts(date);
4055
+ const map = {};
4056
+ parts.forEach(p => map[p.type] = p.value);
4057
+ // 👇 CRASES
4058
+ const asUTC = new Date(`${map.year}-${map.month}-${map.day}T${map.hour}:${map.minute}:${map.second}.000Z`);
4059
+ return (asUTC.getTime() - date.getTime()) / 60000;
4060
+ }
4061
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputDateComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4062
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InputDateComponent, isStandalone: true, selector: "ptech-input-date", inputs: { label: "label", placeholder: "placeholder", appearance: "appearance", required: "required", disabled: "disabled", loading: "loading", name: "name", min: "min", max: "max", startAt: "startAt", startView: "startView", touchUi: "touchUi", panelClass: "panelClass", dateFilter: "dateFilter", withTime: "withTime", seconds: "seconds", timeLabel: "timeLabel", defaultTime: "defaultTime", timeZone: "timeZone", emit: "emit", ptechCol: "ptechCol" }, outputs: { dateChange: "dateChange", opened: "opened", closed: "closed" }, host: { properties: { "style.grid-column": "this.gridColumn" } }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => InputDateComponent), multi: true }], viewQueries: [{ propertyName: "inputDateElement", first: true, predicate: ["inputDateElement"], descendants: true, static: true }, { propertyName: "picker", first: true, predicate: MatDatepicker, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
4063
+ <div class="input-date-container">
4064
+ <div class="row">
4065
+ <mat-form-field [appearance]="appearance" class="field">
4066
+ <mat-label>{{ label }} <span *ngIf="required" aria-hidden="true">*</span></mat-label>
4067
+
4068
+ <mat-spinner *ngIf="loading" matPrefix mode="indeterminate" diameter="17"></mat-spinner>
4069
+
4070
+ <input
4071
+ #inputDateElement
4072
+ matInput
4073
+ [formControl]="dateCtrl"
4074
+ [matDatepicker]="picker"
4075
+ [placeholder]="placeholder"
4076
+ [required]="required"
4077
+ [min]="min"
4078
+ [max]="max"
4079
+ [matDatepickerFilter]="dateFilter || null"
4080
+ [attr.name]="name || null"
4081
+ autocomplete="off"
4082
+ type="text"
4083
+ (blur)="onTouched()"
4084
+ />
4085
+
4086
+ <mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
4087
+ <mat-datepicker
4088
+ #picker
4089
+ [startAt]="startAt"
4090
+ [startView]="startView"
4091
+ [touchUi]="touchUi"
4092
+ [panelClass]="panelClass"
4093
+ (opened)="opened.emit()"
4094
+ (closed)="closed.emit()">
4095
+ </mat-datepicker>
4096
+
4097
+ <ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
4098
+ </mat-form-field>
4099
+
4100
+ <mat-form-field *ngIf="withTime" [appearance]="appearance" class="field time">
4101
+ <mat-label>{{ timeLabel }}</mat-label>
4102
+ <input
4103
+ matInput
4104
+ type="time"
4105
+ [step]="seconds ? 1 : 60"
4106
+ [value]="timeString"
4107
+ [disabled]="isDisabled"
4108
+ (change)="onTimeInput($any($event.target).value)"
4109
+ (blur)="onTouched()"
4110
+ />
4111
+ </mat-form-field>
4112
+ </div>
4113
+ </div>
4114
+ `, isInline: true, styles: [".time{margin-left:15px}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i3$4.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i3$4.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i3$4.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i6.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] });
4115
+ }
4116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputDateComponent, decorators: [{
4117
+ type: Component,
4118
+ args: [{ selector: 'ptech-input-date', standalone: true, imports: [CoreMaterialModule], template: `
4119
+ <div class="input-date-container">
4120
+ <div class="row">
4121
+ <mat-form-field [appearance]="appearance" class="field">
4122
+ <mat-label>{{ label }} <span *ngIf="required" aria-hidden="true">*</span></mat-label>
4123
+
4124
+ <mat-spinner *ngIf="loading" matPrefix mode="indeterminate" diameter="17"></mat-spinner>
4125
+
4126
+ <input
4127
+ #inputDateElement
4128
+ matInput
4129
+ [formControl]="dateCtrl"
4130
+ [matDatepicker]="picker"
4131
+ [placeholder]="placeholder"
4132
+ [required]="required"
4133
+ [min]="min"
4134
+ [max]="max"
4135
+ [matDatepickerFilter]="dateFilter || null"
4136
+ [attr.name]="name || null"
4137
+ autocomplete="off"
4138
+ type="text"
4139
+ (blur)="onTouched()"
4140
+ />
4141
+
4142
+ <mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
4143
+ <mat-datepicker
4144
+ #picker
4145
+ [startAt]="startAt"
4146
+ [startView]="startView"
4147
+ [touchUi]="touchUi"
4148
+ [panelClass]="panelClass"
4149
+ (opened)="opened.emit()"
4150
+ (closed)="closed.emit()">
4151
+ </mat-datepicker>
4152
+
4153
+ <ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
4154
+ </mat-form-field>
4155
+
4156
+ <mat-form-field *ngIf="withTime" [appearance]="appearance" class="field time">
4157
+ <mat-label>{{ timeLabel }}</mat-label>
4158
+ <input
4159
+ matInput
4160
+ type="time"
4161
+ [step]="seconds ? 1 : 60"
4162
+ [value]="timeString"
4163
+ [disabled]="isDisabled"
4164
+ (change)="onTimeInput($any($event.target).value)"
4165
+ (blur)="onTouched()"
4166
+ />
4167
+ </mat-form-field>
4168
+ </div>
4169
+ </div>
4170
+ `, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => InputDateComponent), multi: true }], styles: [".time{margin-left:15px}\n"] }]
4171
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { inputDateElement: [{
4172
+ type: ViewChild,
4173
+ args: ['inputDateElement', { static: true }]
4174
+ }], picker: [{
4175
+ type: ViewChild,
4176
+ args: [MatDatepicker]
4177
+ }], label: [{
4178
+ type: Input
4179
+ }], placeholder: [{
4180
+ type: Input
4181
+ }], appearance: [{
4182
+ type: Input
4183
+ }], required: [{
4184
+ type: Input
4185
+ }], disabled: [{
4186
+ type: Input
4187
+ }], loading: [{
4188
+ type: Input
4189
+ }], name: [{
4190
+ type: Input
4191
+ }], min: [{
4192
+ type: Input
4193
+ }], max: [{
4194
+ type: Input
4195
+ }], startAt: [{
4196
+ type: Input
4197
+ }], startView: [{
4198
+ type: Input
4199
+ }], touchUi: [{
4200
+ type: Input
4201
+ }], panelClass: [{
4202
+ type: Input
4203
+ }], dateFilter: [{
4204
+ type: Input
4205
+ }], withTime: [{
4206
+ type: Input
4207
+ }], seconds: [{
4208
+ type: Input
4209
+ }], timeLabel: [{
4210
+ type: Input
4211
+ }], defaultTime: [{
4212
+ type: Input
4213
+ }], timeZone: [{
4214
+ type: Input
4215
+ }], emit: [{
4216
+ type: Input
4217
+ }], ptechCol: [{
4218
+ type: Input,
4219
+ args: ['ptechCol']
4220
+ }], gridColumn: [{
4221
+ type: HostBinding,
4222
+ args: ['style.grid-column']
4223
+ }], dateChange: [{
4224
+ type: Output
4225
+ }], opened: [{
4226
+ type: Output
4227
+ }], closed: [{
4228
+ type: Output
4229
+ }] } });
4230
+
4231
+ // projects/pumpkin-tech-ng/src/lib/components/input-time/input-time.component.ts
4232
+ class InputTimeComponent {
4233
+ // Visual
4234
+ label = '';
4235
+ placeholder = '';
4236
+ required = false;
4237
+ disabled = false;
4238
+ loading = false;
4239
+ appearance = 'outline';
4240
+ // Comportamento
4241
+ /** 24 (padrão) ou 12 */
4242
+ format = 24;
4243
+ /** mostra/oculta seleção de segundos */
4244
+ seconds = false;
4245
+ /** evita focar/editar manualmente (só via picker) */
4246
+ disableClick = true;
4247
+ /** usado quando não há valor inicial */
4248
+ defaultTime = '00:00:00';
4249
+ /** two-way opcional via (valueChange) */
4250
+ valueChange = new EventEmitter();
4251
+ _val = null;
4252
+ // CVA
4253
+ onChange = () => { };
4254
+ onTouch = () => { };
4255
+ get value() { return this._val; }
4256
+ set value(v) {
4257
+ if (v !== this._val) {
4258
+ this._val = v;
4259
+ this.onChange(v);
4260
+ this.valueChange.emit(v ?? '');
4261
+ }
4262
+ }
4263
+ writeValue(val) { this._val = val ?? null; }
4264
+ registerOnChange(fn) { this.onChange = fn; }
4265
+ registerOnTouched(fn) { this.onTouch = fn; }
4266
+ setDisabledState(isDisabled) { this.disabled = isDisabled; }
4267
+ // Normaliza saída do timepicker para 'HH:mm' ou 'HH:mm:ss' (24h)
4268
+ onTimeSet(raw) {
4269
+ const { hh, mm, ss } = this.parseTime(raw);
4270
+ const out = this.seconds ? `${hh}:${mm}:${ss}` : `${hh}:${mm}`;
4271
+ this.value = out;
4272
+ }
4273
+ // Aceita 'HH:mm', 'HH:mm:ss', 'h:mm A', 'h:mm:ss A'
4274
+ parseTime(inp) {
4275
+ const s = (inp || '').trim().toUpperCase();
4276
+ // AM/PM?
4277
+ const ampmMatch = s.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?\s*(AM|PM)$/);
4278
+ if (ampmMatch) {
4279
+ let h = +ampmMatch[1];
4280
+ const m = +ampmMatch[2];
4281
+ const sec = +(ampmMatch[3] ?? 0);
4282
+ const ap = ampmMatch[4];
4283
+ if (ap === 'AM') {
4284
+ if (h === 12)
4285
+ h = 0;
4286
+ }
4287
+ else { // PM
4288
+ if (h !== 12)
4289
+ h += 12;
4290
+ }
4291
+ return { hh: this.pad(h), mm: this.pad(m), ss: this.pad(sec) };
4292
+ }
4293
+ // 24h
4294
+ const h24 = s.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
4295
+ if (h24) {
4296
+ const h = this.clamp(+h24[1], 0, 23);
4297
+ const m = this.clamp(+h24[2], 0, 59);
4298
+ const sec = this.clamp(+(h24[3] ?? 0), 0, 59);
4299
+ return { hh: this.pad(h), mm: this.pad(m), ss: this.pad(sec) };
4300
+ }
4301
+ // fallback defaultTime
4302
+ const def = this.seconds ? '00:00:00' : '00:00';
4303
+ return this.parseTime(def);
4304
+ }
4305
+ pad(n) { return n < 10 ? '0' + n : '' + n; }
4306
+ clamp(v, min, max) { return Math.max(min, Math.min(max, v)); }
4307
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4308
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InputTimeComponent, isStandalone: true, selector: "ptech-input-time", inputs: { label: "label", placeholder: "placeholder", required: "required", disabled: "disabled", loading: "loading", appearance: "appearance", format: "format", seconds: "seconds", disableClick: "disableClick", defaultTime: "defaultTime" }, outputs: { valueChange: "valueChange" }, providers: [{
4309
+ provide: NG_VALUE_ACCESSOR,
4310
+ useExisting: forwardRef(() => InputTimeComponent),
4311
+ multi: true
4312
+ }], ngImport: i0, template: `
4313
+ <div class="ptech-time-container">
4314
+ <mat-form-field class="ptech-form-field" [appearance]="appearance">
4315
+ <mat-label>
4316
+ {{ label }}
4317
+ <span *ngIf="required" aria-hidden="true">*</span>
4318
+ </mat-label>
4319
+
4320
+ <input
4321
+ matInput
4322
+ [ngxTimepicker]="picker"
4323
+ [format]="format"
4324
+ [disabled]="disabled || loading"
4325
+ [disableClick]="disableClick"
4326
+ [placeholder]="placeholder"
4327
+ [required]="required"
4328
+ readonly
4329
+ autocomplete="off"
4330
+ [maxLength]="seconds ? 8 : 5"
4331
+ [(ngModel)]="value"
4332
+ (blur)="onTouch()"
4333
+ />
4334
+
4335
+ <ngx-material-timepicker
4336
+ #picker
4337
+ [defaultTime]="value || defaultTime"
4338
+ (timeSet)="onTimeSet($event)">
4339
+ </ngx-material-timepicker>
4340
+
4341
+ <ngx-material-timepicker-toggle matSuffix [for]="picker"></ngx-material-timepicker-toggle>
4342
+
4343
+ <mat-spinner
4344
+ matPrefix
4345
+ *ngIf="loading"
4346
+ mode="indeterminate"
4347
+ diameter="17">
4348
+ </mat-spinner>
4349
+
4350
+ <ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
4351
+ </mat-form-field>
4352
+ </div>
4353
+ `, isInline: true, styles: [".ptech-time-container{display:flex;flex-direction:column;width:100%}.ptech-form-field{width:100%}mat-label span{color:#f44336!important}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i6.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: NgxMaterialTimepickerModule }, { kind: "component", type: i6$3.NgxMaterialTimepickerComponent, selector: "ngx-material-timepicker", inputs: ["cancelBtnTmpl", "editableHintTmpl", "confirmBtnTmpl", "ESC", "enableKeyboardInput", "preventOverlayClick", "disableAnimation", "appendToInput", "hoursOnly", "defaultTime", "timepickerClass", "theme", "min", "max", "ngxMaterialTimepickerTheme", "format", "minutesGap"], outputs: ["timeSet", "opened", "closed", "hourSelected", "timeChanged"] }, { kind: "component", type: i6$3.NgxMaterialTimepickerToggleComponent, selector: "ngx-material-timepicker-toggle", inputs: ["for", "disabled"] }, { kind: "directive", type: i6$3.TimepickerDirective, selector: "[ngxTimepicker]", inputs: ["format", "min", "max", "ngxTimepicker", "value", "disabled", "disableClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4354
+ }
4355
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputTimeComponent, decorators: [{
4356
+ type: Component,
4357
+ args: [{ selector: 'ptech-input-time', standalone: true, imports: [CoreMaterialModule, NgxMaterialTimepickerModule], template: `
4358
+ <div class="ptech-time-container">
4359
+ <mat-form-field class="ptech-form-field" [appearance]="appearance">
4360
+ <mat-label>
4361
+ {{ label }}
4362
+ <span *ngIf="required" aria-hidden="true">*</span>
4363
+ </mat-label>
4364
+
4365
+ <input
4366
+ matInput
4367
+ [ngxTimepicker]="picker"
4368
+ [format]="format"
4369
+ [disabled]="disabled || loading"
4370
+ [disableClick]="disableClick"
4371
+ [placeholder]="placeholder"
4372
+ [required]="required"
4373
+ readonly
4374
+ autocomplete="off"
4375
+ [maxLength]="seconds ? 8 : 5"
4376
+ [(ngModel)]="value"
4377
+ (blur)="onTouch()"
4378
+ />
4379
+
4380
+ <ngx-material-timepicker
4381
+ #picker
4382
+ [defaultTime]="value || defaultTime"
4383
+ (timeSet)="onTimeSet($event)">
4384
+ </ngx-material-timepicker>
4385
+
4386
+ <ngx-material-timepicker-toggle matSuffix [for]="picker"></ngx-material-timepicker-toggle>
4387
+
4388
+ <mat-spinner
4389
+ matPrefix
4390
+ *ngIf="loading"
4391
+ mode="indeterminate"
4392
+ diameter="17">
4393
+ </mat-spinner>
4394
+
4395
+ <ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
4396
+ </mat-form-field>
4397
+ </div>
4398
+ `, providers: [{
4399
+ provide: NG_VALUE_ACCESSOR,
4400
+ useExisting: forwardRef(() => InputTimeComponent),
4401
+ multi: true
4402
+ }], changeDetection: ChangeDetectionStrategy.OnPush, styles: [".ptech-time-container{display:flex;flex-direction:column;width:100%}.ptech-form-field{width:100%}mat-label span{color:#f44336!important}\n"] }]
4403
+ }], propDecorators: { label: [{
4404
+ type: Input
4405
+ }], placeholder: [{
4406
+ type: Input
4407
+ }], required: [{
4408
+ type: Input
4409
+ }], disabled: [{
4410
+ type: Input
4411
+ }], loading: [{
4412
+ type: Input
4413
+ }], appearance: [{
4414
+ type: Input
4415
+ }], format: [{
4416
+ type: Input
4417
+ }], seconds: [{
4418
+ type: Input
4419
+ }], disableClick: [{
4420
+ type: Input
4421
+ }], defaultTime: [{
4422
+ type: Input
4423
+ }], valueChange: [{
4424
+ type: Output
4425
+ }] } });
4426
+
4427
+ // projects/pumpkin-tech-ng/src/lib/components/input-currency/input-currency.component.ts
4428
+ class InputCurrencyComponent {
4429
+ // Visual
4430
+ label = '';
4431
+ placeholder = '';
4432
+ required = false;
4433
+ loading = false;
4434
+ disabled = false;
4435
+ appearance = 'outline';
4436
+ // Config por input
4437
+ options = {};
4438
+ valueChange = new EventEmitter();
4439
+ _val;
4440
+ // Defaults (BRL)
4441
+ defaultOptions = {
4442
+ align: 'right',
4443
+ allowNegative: false,
4444
+ allowZero: true,
4445
+ decimal: ',',
4446
+ precision: 2,
4447
+ prefix: 'R$ ',
4448
+ suffix: '',
4449
+ thousands: '.',
4450
+ nullable: true
4451
+ };
4452
+ get resolvedOptions() {
4453
+ return { ...this.defaultOptions, ...(this.options || {}) };
4454
+ }
4455
+ // CVA
4456
+ onChange = () => { };
4457
+ onTouch = () => { };
4458
+ get value() { return this._val; }
4459
+ set value(v) {
4460
+ if (v !== this._val) {
4461
+ this._val = v;
4462
+ this.onChange(v);
4463
+ this.valueChange.emit(v);
4464
+ }
4465
+ }
4466
+ writeValue(value) { this._val = value; }
4467
+ registerOnChange(fn) { this.onChange = fn; }
4468
+ registerOnTouched(fn) { this.onTouch = fn; }
4469
+ setDisabledState(isDisabled) { this.disabled = isDisabled; }
4470
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputCurrencyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4471
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InputCurrencyComponent, isStandalone: true, selector: "ptech-input-currency", inputs: { label: "label", placeholder: "placeholder", required: "required", loading: "loading", disabled: "disabled", appearance: "appearance", options: "options" }, outputs: { valueChange: "valueChange" }, providers: [{
4472
+ provide: NG_VALUE_ACCESSOR,
4473
+ useExisting: forwardRef(() => InputCurrencyComponent),
4474
+ multi: true
4475
+ }], ngImport: i0, template: `
4476
+ <div class="ptech-currency-container">
4477
+ <mat-form-field class="ptech-form-field" [appearance]="appearance">
4478
+ <mat-label>
4479
+ {{ label }}
4480
+ <span *ngIf="required" aria-hidden="true">*</span>
4481
+ </mat-label>
4482
+
4483
+ <input
4484
+ matInput
4485
+ [placeholder]="placeholder"
4486
+ [required]="required"
4487
+ [disabled]="disabled || loading"
4488
+ [(ngModel)]="value"
4489
+ (blur)="onTouch()"
4490
+ autocomplete="off"
4491
+ type="text"
4492
+ currencyMask
4493
+ [options]="resolvedOptions" />
4494
+
4495
+ <mat-spinner
4496
+ matPrefix
4497
+ *ngIf="loading"
4498
+ mode="indeterminate"
4499
+ diameter="17">
4500
+ </mat-spinner>
4501
+
4502
+ <ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
4503
+ </mat-form-field>
4504
+ </div>
4505
+ `, isInline: true, styles: [".ptech-currency-container{display:flex;flex-direction:column;width:100%}.ptech-form-field{width:100%}mat-label span{color:#f44336!important}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i6.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: NgxCurrencyDirective, selector: "input[currencyMask]", inputs: ["currencyMask", "options"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4506
+ }
4507
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputCurrencyComponent, decorators: [{
4508
+ type: Component,
4509
+ args: [{ selector: 'ptech-input-currency', standalone: true, imports: [CoreMaterialModule, NgxCurrencyDirective], template: `
4510
+ <div class="ptech-currency-container">
4511
+ <mat-form-field class="ptech-form-field" [appearance]="appearance">
4512
+ <mat-label>
4513
+ {{ label }}
4514
+ <span *ngIf="required" aria-hidden="true">*</span>
4515
+ </mat-label>
4516
+
4517
+ <input
4518
+ matInput
4519
+ [placeholder]="placeholder"
4520
+ [required]="required"
4521
+ [disabled]="disabled || loading"
4522
+ [(ngModel)]="value"
4523
+ (blur)="onTouch()"
4524
+ autocomplete="off"
4525
+ type="text"
4526
+ currencyMask
4527
+ [options]="resolvedOptions" />
4528
+
4529
+ <mat-spinner
4530
+ matPrefix
4531
+ *ngIf="loading"
4532
+ mode="indeterminate"
4533
+ diameter="17">
4534
+ </mat-spinner>
4535
+
4536
+ <ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
4537
+ </mat-form-field>
4538
+ </div>
4539
+ `, providers: [{
4540
+ provide: NG_VALUE_ACCESSOR,
4541
+ useExisting: forwardRef(() => InputCurrencyComponent),
4542
+ multi: true
4543
+ }], changeDetection: ChangeDetectionStrategy.OnPush, styles: [".ptech-currency-container{display:flex;flex-direction:column;width:100%}.ptech-form-field{width:100%}mat-label span{color:#f44336!important}\n"] }]
4544
+ }], propDecorators: { label: [{
4545
+ type: Input
4546
+ }], placeholder: [{
4547
+ type: Input
4548
+ }], required: [{
4549
+ type: Input
4550
+ }], loading: [{
4551
+ type: Input
4552
+ }], disabled: [{
4553
+ type: Input
4554
+ }], appearance: [{
4555
+ type: Input
4556
+ }], options: [{
4557
+ type: Input
4558
+ }], valueChange: [{
4559
+ type: Output
4560
+ }] } });
4561
+
2901
4562
  class SnackbarMessageService {
2902
4563
  snackBar;
2903
4564
  constructor(snackBar) {
@@ -2945,12 +4606,12 @@ class SnackbarMessageService {
2945
4606
  duration,
2946
4607
  });
2947
4608
  }
2948
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SnackbarMessageService, deps: [{ token: i1$4.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable });
4609
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SnackbarMessageService, deps: [{ token: i1$5.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable });
2949
4610
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SnackbarMessageService });
2950
4611
  }
2951
4612
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SnackbarMessageService, decorators: [{
2952
4613
  type: Injectable
2953
- }], ctorParameters: () => [{ type: i1$4.MatSnackBar }] });
4614
+ }], ctorParameters: () => [{ type: i1$5.MatSnackBar }] });
2954
4615
 
2955
4616
  // src/lib/modules/pumpkin-tech.module.ts
2956
4617
  class PumpkinTechModule {
@@ -2959,12 +4620,18 @@ class PumpkinTechModule {
2959
4620
  CoreMaterialModule,
2960
4621
  // standalone components para reexportar
2961
4622
  InputComponent,
2962
- InputDatePickerRangeComponent,
4623
+ TextareaComponent,
4624
+ InputDateComponent,
4625
+ InputDateRangeComponent,
4626
+ InputTimeComponent,
4627
+ InputCurrencyComponent,
2963
4628
  InfoDetailComponent,
2964
4629
  InfoDetailDialogComponent,
2965
4630
  ActionDialogComponent,
2966
4631
  ActionResultDialogComponent,
2967
4632
  ButtonComponent,
4633
+ BadgeComponent,
4634
+ BadgeStackComponent,
2968
4635
  BreadcrumbComponent,
2969
4636
  TitleComponent,
2970
4637
  ActionRowComponent,
@@ -2974,7 +4641,7 @@ class PumpkinTechModule {
2974
4641
  IconComponent,
2975
4642
  SelectEntityComponent,
2976
4643
  SelectEnumComponent,
2977
- RadioGroupComponent,
4644
+ RadioGroupEnumComponent,
2978
4645
  RadioGroupEntityComponent,
2979
4646
  SlideToggleComponent,
2980
4647
  QuantityItemsComponent,
@@ -2985,12 +4652,18 @@ class PumpkinTechModule {
2985
4652
  ProgressBarMultipleComponent], exports: [
2986
4653
  // reexporta tudo junto
2987
4654
  InputComponent,
2988
- InputDatePickerRangeComponent,
4655
+ TextareaComponent,
4656
+ InputDateComponent,
4657
+ InputDateRangeComponent,
4658
+ InputTimeComponent,
4659
+ InputCurrencyComponent,
2989
4660
  InfoDetailComponent,
2990
4661
  InfoDetailDialogComponent,
2991
4662
  ActionDialogComponent,
2992
4663
  ActionResultDialogComponent,
2993
4664
  ButtonComponent,
4665
+ BadgeComponent,
4666
+ BadgeStackComponent,
2994
4667
  BreadcrumbComponent,
2995
4668
  TitleComponent,
2996
4669
  ActionRowComponent,
@@ -3000,7 +4673,7 @@ class PumpkinTechModule {
3000
4673
  IconComponent,
3001
4674
  SelectEntityComponent,
3002
4675
  SelectEnumComponent,
3003
- RadioGroupComponent,
4676
+ RadioGroupEnumComponent,
3004
4677
  RadioGroupEntityComponent,
3005
4678
  SlideToggleComponent,
3006
4679
  QuantityItemsComponent,
@@ -3019,12 +4692,17 @@ class PumpkinTechModule {
3019
4692
  CoreMaterialModule,
3020
4693
  // standalone components para reexportar
3021
4694
  InputComponent,
3022
- InputDatePickerRangeComponent,
4695
+ TextareaComponent,
4696
+ InputDateComponent,
4697
+ InputDateRangeComponent,
4698
+ InputTimeComponent,
4699
+ InputCurrencyComponent,
3023
4700
  InfoDetailComponent,
3024
4701
  InfoDetailDialogComponent,
3025
4702
  ActionDialogComponent,
3026
4703
  ActionResultDialogComponent,
3027
4704
  ButtonComponent,
4705
+ BadgeComponent,
3028
4706
  BreadcrumbComponent,
3029
4707
  TitleComponent,
3030
4708
  HeaderComponent,
@@ -3033,7 +4711,7 @@ class PumpkinTechModule {
3033
4711
  IconComponent,
3034
4712
  SelectEntityComponent,
3035
4713
  SelectEnumComponent,
3036
- RadioGroupComponent,
4714
+ RadioGroupEnumComponent,
3037
4715
  RadioGroupEntityComponent,
3038
4716
  SlideToggleComponent,
3039
4717
  QuantityItemsComponent,
@@ -3051,12 +4729,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
3051
4729
  CoreMaterialModule,
3052
4730
  // standalone components para reexportar
3053
4731
  InputComponent,
3054
- InputDatePickerRangeComponent,
4732
+ TextareaComponent,
4733
+ InputDateComponent,
4734
+ InputDateRangeComponent,
4735
+ InputTimeComponent,
4736
+ InputCurrencyComponent,
3055
4737
  InfoDetailComponent,
3056
4738
  InfoDetailDialogComponent,
3057
4739
  ActionDialogComponent,
3058
4740
  ActionResultDialogComponent,
3059
4741
  ButtonComponent,
4742
+ BadgeComponent,
4743
+ BadgeStackComponent,
3060
4744
  BreadcrumbComponent,
3061
4745
  TitleComponent,
3062
4746
  ActionRowComponent,
@@ -3066,7 +4750,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
3066
4750
  IconComponent,
3067
4751
  SelectEntityComponent,
3068
4752
  SelectEnumComponent,
3069
- RadioGroupComponent,
4753
+ RadioGroupEnumComponent,
3070
4754
  RadioGroupEntityComponent,
3071
4755
  SlideToggleComponent,
3072
4756
  QuantityItemsComponent,
@@ -3079,12 +4763,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
3079
4763
  exports: [
3080
4764
  // reexporta tudo junto
3081
4765
  InputComponent,
3082
- InputDatePickerRangeComponent,
4766
+ TextareaComponent,
4767
+ InputDateComponent,
4768
+ InputDateRangeComponent,
4769
+ InputTimeComponent,
4770
+ InputCurrencyComponent,
3083
4771
  InfoDetailComponent,
3084
4772
  InfoDetailDialogComponent,
3085
4773
  ActionDialogComponent,
3086
4774
  ActionResultDialogComponent,
3087
4775
  ButtonComponent,
4776
+ BadgeComponent,
4777
+ BadgeStackComponent,
3088
4778
  BreadcrumbComponent,
3089
4779
  TitleComponent,
3090
4780
  ActionRowComponent,
@@ -3094,7 +4784,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
3094
4784
  IconComponent,
3095
4785
  SelectEntityComponent,
3096
4786
  SelectEnumComponent,
3097
- RadioGroupComponent,
4787
+ RadioGroupEnumComponent,
3098
4788
  RadioGroupEntityComponent,
3099
4789
  SlideToggleComponent,
3100
4790
  QuantityItemsComponent,
@@ -3521,7 +5211,9 @@ class DirectivesModule {
3521
5211
  PhoneMaskSpainDirective,
3522
5212
  SpaceDropDirective,
3523
5213
  DateMaskDirective,
3524
- DynamicTabDirective], exports: [UpperCaseDirective,
5214
+ DynamicTabDirective,
5215
+ PtechGridDirective,
5216
+ PtechColDirective], exports: [UpperCaseDirective,
3525
5217
  LowerCaseDirective,
3526
5218
  RedDirective,
3527
5219
  ClickCatcherDirective,
@@ -3530,7 +5222,9 @@ class DirectivesModule {
3530
5222
  PhoneMaskSpainDirective,
3531
5223
  SpaceDropDirective,
3532
5224
  DateMaskDirective,
3533
- DynamicTabDirective] });
5225
+ DynamicTabDirective,
5226
+ PtechGridDirective,
5227
+ PtechColDirective] });
3534
5228
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DirectivesModule });
3535
5229
  }
3536
5230
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DirectivesModule, decorators: [{
@@ -3546,7 +5240,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
3546
5240
  PhoneMaskSpainDirective,
3547
5241
  SpaceDropDirective,
3548
5242
  DateMaskDirective,
3549
- DynamicTabDirective
5243
+ DynamicTabDirective,
5244
+ PtechGridDirective,
5245
+ PtechColDirective
3550
5246
  ],
3551
5247
  exports: [
3552
5248
  UpperCaseDirective,
@@ -3558,7 +5254,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
3558
5254
  PhoneMaskSpainDirective,
3559
5255
  SpaceDropDirective,
3560
5256
  DateMaskDirective,
3561
- DynamicTabDirective
5257
+ DynamicTabDirective,
5258
+ PtechGridDirective,
5259
+ PtechColDirective
3562
5260
  ]
3563
5261
  }]
3564
5262
  }] });
@@ -3988,7 +5686,7 @@ class DialogService {
3988
5686
  this.openResultDialog(resultData);
3989
5687
  }), map(() => void 0));
3990
5688
  }
3991
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DialogService, deps: [{ token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
5689
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DialogService, deps: [{ token: i1$4.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
3992
5690
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DialogService, providedIn: 'root' });
3993
5691
  }
3994
5692
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DialogService, decorators: [{
@@ -3996,7 +5694,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
3996
5694
  args: [{
3997
5695
  providedIn: 'root',
3998
5696
  }]
3999
- }], ctorParameters: () => [{ type: i1$3.MatDialog }] });
5697
+ }], ctorParameters: () => [{ type: i1$4.MatDialog }] });
4000
5698
 
4001
5699
  class ModuleChangeService {
4002
5700
  moduleChangedSource = new BehaviorSubject('');
@@ -4461,11 +6159,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
4461
6159
  }]
4462
6160
  }] });
4463
6161
 
4464
- // componentes
6162
+ // layout
4465
6163
 
4466
6164
  /**
4467
6165
  * Generated bundle index. Do not edit.
4468
6166
  */
4469
6167
 
4470
- export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CheckBoxComponent, ClickCatcherDirective, ConfirmationDialogComponent, CoreMaterialModule, CurrencyBrlPipe, CurrencyPreferenceService, CurrencyUtil, DateAgoPipe, DateMaskDirective, DateUtil, DefaultConsoleMessageService, DefaultMessageService, DialogService, DirectivesModule, DocumentUtil, DynamicTabDirective, FakeDataService, FooterComponent, ForDirective, GetFirstStringBeforeSpacePipe, HeaderComponent, IconComponent, InfoDetailComponent, InfoDetailDialogComponent, InputComponent, InputDatePickerRangeComponent, LineBreakAfterPeriodPipe, LineBreakAfterPipe, LoadingOverlayComponent, LoadingService, LowerCaseDirective, MESSAGE_SERVICE, MY_DATE_FORMATS, MemoryFormatPipe, ModuleChangeService, NavComponent, NavService, NumberUtil, ObjectUtil, PhoneBrazilPipe, PhoneMaskBrazilDirective, PhoneMaskSpainDirective, PhoneSpainPipe, PipesModule, ProfileMenuComponent, ProgressBarComponent, ProgressBarMultipleComponent, PumpkinTechModule, QuantityItemsComponent, RadioGroupComponent, RadioGroupEntityComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
6168
+ 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, FooterComponent, ForDirective, GetFirstStringBeforeSpacePipe, HeaderComponent, IconComponent, InfoDetailComponent, InfoDetailDialogComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputTimeComponent, 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, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
4471
6169
  //# sourceMappingURL=pumpkin-tech-pumpkin-tech-ng.mjs.map