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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/esm2022/lib/components/action-dialog/action-dialog.component.mjs +2 -2
  2. package/esm2022/lib/components/button/button.component.mjs +3 -3
  3. package/esm2022/lib/components/input/input.component.mjs +227 -147
  4. package/esm2022/lib/components/input-currency/index.mjs +2 -0
  5. package/esm2022/lib/components/input-currency/input-currency.component.mjs +146 -0
  6. package/esm2022/lib/components/input-date/index.mjs +2 -0
  7. package/esm2022/lib/components/input-date/input-date.component.mjs +382 -0
  8. package/esm2022/lib/components/input-date-range/index.mjs +2 -0
  9. package/esm2022/lib/components/{input-date-picker-range/input-date-picker-range.component.mjs → input-date-range/input-date-range.component.mjs} +8 -9
  10. package/esm2022/lib/components/input-time/index.mjs +2 -0
  11. package/esm2022/lib/components/input-time/input-time.component.mjs +207 -0
  12. package/esm2022/lib/components/nav/nav.component.mjs +9 -2
  13. package/esm2022/lib/components/quantity-items/quantity-items.component.mjs +150 -46
  14. package/esm2022/lib/components/radio-group-entity/radio-group-entity.component.mjs +19 -3
  15. package/esm2022/lib/components/radio-group-enum/index.mjs +2 -0
  16. package/esm2022/lib/components/radio-group-enum/radio-group-enum.component.mjs +140 -0
  17. package/esm2022/lib/components/select-entity/select-entity.component.mjs +19 -3
  18. package/esm2022/lib/components/select-enum/select-enum.component.mjs +19 -3
  19. package/esm2022/lib/components/slide-toggle/slide-toggle.component.mjs +19 -3
  20. package/esm2022/lib/components/textarea/index.mjs +2 -0
  21. package/esm2022/lib/components/textarea/textarea.component.mjs +213 -0
  22. package/esm2022/lib/layout/ptech-col.directive.mjs +102 -0
  23. package/esm2022/lib/layout/ptech-grid.directive.mjs +125 -0
  24. package/esm2022/lib/modules/directives.module.mjs +15 -5
  25. package/esm2022/lib/modules/pipes.module.mjs +1 -1
  26. package/esm2022/lib/modules/pumpkin-tech.module.mjs +38 -14
  27. package/esm2022/public-api.mjs +10 -3
  28. package/fesm2022/pumpkin-tech-pumpkin-tech-ng.mjs +1801 -334
  29. package/fesm2022/pumpkin-tech-pumpkin-tech-ng.mjs.map +1 -1
  30. package/lib/components/input/input.component.d.ts +8 -1
  31. package/lib/components/input-currency/index.d.ts +1 -0
  32. package/lib/components/input-currency/input-currency.component.d.ts +28 -0
  33. package/lib/components/input-date/index.d.ts +1 -0
  34. package/lib/components/input-date/input-date.component.d.ts +68 -0
  35. package/lib/components/input-date-range/index.d.ts +1 -0
  36. 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
  37. package/lib/components/input-time/index.d.ts +1 -0
  38. package/lib/components/input-time/input-time.component.d.ts +37 -0
  39. package/lib/components/nav/nav.component.d.ts +2 -1
  40. package/lib/components/quantity-items/quantity-items.component.d.ts +26 -3
  41. package/lib/components/radio-group-entity/radio-group-entity.component.d.ts +4 -1
  42. package/lib/components/radio-group-enum/index.d.ts +1 -0
  43. package/lib/components/radio-group-enum/radio-group-enum.component.d.ts +44 -0
  44. package/lib/components/select-entity/select-entity.component.d.ts +4 -1
  45. package/lib/components/select-enum/select-enum.component.d.ts +4 -1
  46. package/lib/components/slide-toggle/slide-toggle.component.d.ts +4 -1
  47. package/lib/components/textarea/index.d.ts +1 -0
  48. package/lib/components/textarea/textarea.component.d.ts +54 -0
  49. package/lib/layout/ptech-col.directive.d.ts +25 -0
  50. package/lib/layout/ptech-grid.directive.d.ts +32 -0
  51. package/lib/modules/directives.module.d.ts +3 -1
  52. package/lib/modules/pumpkin-tech.module.d.ts +29 -25
  53. package/package.json +4 -2
  54. package/public-api.d.ts +8 -2
  55. package/esm2022/lib/components/input-date-picker-range/index.mjs +0 -2
  56. package/esm2022/lib/components/radio-group/index.mjs +0 -2
  57. package/esm2022/lib/components/radio-group/radio-group.component.mjs +0 -74
  58. package/lib/components/input-date-picker-range/index.d.ts +0 -1
  59. package/lib/components/radio-group/index.d.ts +0 -1
  60. 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, Inject, InjectionToken, Optional, Pipe, HostListener, 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: [{
@@ -935,78 +1435,181 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
935
1435
  `, 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
1436
  }] });
937
1437
 
938
- // ptech-quantity-items.component.ts
939
1438
  class QuantityItemsComponent {
940
- quantity = 0;
1439
+ // Label e UX
1440
+ label = '';
1441
+ required = false;
1442
+ fullWidth = false;
1443
+ ariaLabel;
1444
+ // Regras
1445
+ min = 0; // não é null, então nada de ??
1446
+ max = null; // pode ser null => sem limite
1447
+ step = 1;
1448
+ disabled = false;
1449
+ // --- GRID COL (1..12) ---
1450
+ _col = 12;
1451
+ set ptechCol(v) {
1452
+ const n = typeof v === 'string' ? parseInt(v, 10) : v ?? 12;
1453
+ this._col = Number.isFinite(n) ? Math.min(Math.max(+n, 1), 12) : 12;
1454
+ }
1455
+ get gridColumn() {
1456
+ // “span N” funciona dentro de qualquer CSS grid
1457
+ return `span ${this._col}`;
1458
+ }
1459
+ /** Compat c/ [(quantity)] */
1460
+ get quantity() { return this.current; }
1461
+ set quantity(v) { this.setValue(v, false); }
941
1462
  quantityChange = new EventEmitter();
1463
+ current = 0;
1464
+ // CVA
1465
+ onChange = () => { };
1466
+ onTouched = () => { };
1467
+ writeValue(v) {
1468
+ this.setValue(v ?? 0, true);
1469
+ }
1470
+ registerOnChange(fn) { this.onChange = fn; }
1471
+ registerOnTouched(fn) { this.onTouched = fn; }
1472
+ setDisabledState(isDisabled) { this.disabled = isDisabled; }
942
1473
  decrement() {
943
- if (this.quantity > 0) {
944
- this.quantity--;
945
- this.quantityChange.emit(this.quantity);
946
- }
1474
+ if (this.disabled)
1475
+ return;
1476
+ this.setValue(this.current - this.step);
947
1477
  }
948
1478
  increment() {
949
- this.quantity++;
950
- this.quantityChange.emit(this.quantity);
1479
+ if (this.disabled)
1480
+ return;
1481
+ this.setValue(this.current + this.step);
1482
+ }
1483
+ clamp(v) {
1484
+ const min = this.min; // já é number
1485
+ const max = this.max ?? Number.POSITIVE_INFINITY; // aqui pode usar POSITIVE_INFINITY no TS
1486
+ return Math.min(Math.max(v, min), max);
1487
+ }
1488
+ setValue(v, fromWriteValue = false) {
1489
+ const num = Number.isFinite(v) ? v : 0;
1490
+ const next = this.clamp(num);
1491
+ if (next === this.current)
1492
+ return;
1493
+ this.current = next;
1494
+ this.onChange(this.current);
1495
+ if (!fromWriteValue)
1496
+ this.onTouched();
1497
+ this.quantityChange.emit(this.current);
951
1498
  }
952
1499
  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>
1500
+ 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: [
1501
+ {
1502
+ provide: NG_VALUE_ACCESSOR,
1503
+ useExisting: forwardRef(() => QuantityItemsComponent),
1504
+ multi: true,
1505
+ },
1506
+ ], ngImport: i0, template: `
1507
+ <div class="quantity-wrap" [class.full-width]="fullWidth">
1508
+ <label *ngIf="label" class="ptech-label">
1509
+ {{ label }} <span *ngIf="required" aria-hidden="true">*</span>
1510
+ </label>
1511
+
1512
+ <div class="quantity-items-container" role="group"
1513
+ [attr.aria-label]="ariaLabel || label || 'Quantity selector'">
1514
+ <button
1515
+ mat-icon-button
1516
+ class="pill"
1517
+ aria-label="Decrement"
1518
+ [disabled]="disabled || current <= min"
1519
+ (click)="decrement()">
1520
+ <mat-icon>remove</mat-icon>
1521
+ </button>
964
1522
 
965
- <span class="quantity-value" aria-live="polite">{{ quantity }}</span>
1523
+ <span class="quantity-value" aria-live="polite">{{ current }}</span>
966
1524
 
967
- <button mat-icon-button aria-label="Increment" (click)="increment()" class="pill">
968
- <mat-icon>add</mat-icon>
969
- </button>
1525
+ <button
1526
+ mat-icon-button
1527
+ class="pill"
1528
+ aria-label="Increment"
1529
+ [disabled]="disabled || (max !== null && current >= max)"
1530
+ (click)="increment()">
1531
+ <mat-icon>add</mat-icon>
1532
+ </button>
1533
+ </div>
970
1534
  </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 });
1535
+ `, 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
1536
  }
973
1537
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: QuantityItemsComponent, decorators: [{
974
1538
  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>
1539
+ args: [{ selector: 'ptech-quantity-items', standalone: true, imports: [CoreMaterialModule], providers: [
1540
+ {
1541
+ provide: NG_VALUE_ACCESSOR,
1542
+ useExisting: forwardRef(() => QuantityItemsComponent),
1543
+ multi: true,
1544
+ },
1545
+ ], template: `
1546
+ <div class="quantity-wrap" [class.full-width]="fullWidth">
1547
+ <label *ngIf="label" class="ptech-label">
1548
+ {{ label }} <span *ngIf="required" aria-hidden="true">*</span>
1549
+ </label>
1550
+
1551
+ <div class="quantity-items-container" role="group"
1552
+ [attr.aria-label]="ariaLabel || label || 'Quantity selector'">
1553
+ <button
1554
+ mat-icon-button
1555
+ class="pill"
1556
+ aria-label="Decrement"
1557
+ [disabled]="disabled || current <= min"
1558
+ (click)="decrement()">
1559
+ <mat-icon>remove</mat-icon>
1560
+ </button>
986
1561
 
987
- <span class="quantity-value" aria-live="polite">{{ quantity }}</span>
1562
+ <span class="quantity-value" aria-live="polite">{{ current }}</span>
988
1563
 
989
- <button mat-icon-button aria-label="Increment" (click)="increment()" class="pill">
990
- <mat-icon>add</mat-icon>
991
- </button>
1564
+ <button
1565
+ mat-icon-button
1566
+ class="pill"
1567
+ aria-label="Increment"
1568
+ [disabled]="disabled || (max !== null && current >= max)"
1569
+ (click)="increment()">
1570
+ <mat-icon>add</mat-icon>
1571
+ </button>
1572
+ </div>
992
1573
  </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: [{
1574
+ `, 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"] }]
1575
+ }], propDecorators: { label: [{
995
1576
  type: Input
996
- }], quantityChange: [{
997
- type: Output
998
- }] } });
999
-
1000
- // src/lib/utils/object.util.ts
1001
- class ObjectUtil {
1002
- static isNull(value) {
1003
- return value === undefined || value === null;
1004
- }
1005
- static isEmptyObject(obj) {
1006
- return Object.keys(obj).length === 0;
1007
- }
1008
- /**
1009
- * Considera “novo” um modelo sem id ou com id não positivo.
1577
+ }], required: [{
1578
+ type: Input
1579
+ }], fullWidth: [{
1580
+ type: Input
1581
+ }], ariaLabel: [{
1582
+ type: Input
1583
+ }], min: [{
1584
+ type: Input
1585
+ }], max: [{
1586
+ type: Input
1587
+ }], step: [{
1588
+ type: Input
1589
+ }], disabled: [{
1590
+ type: Input
1591
+ }], ptechCol: [{
1592
+ type: Input,
1593
+ args: ['ptechCol']
1594
+ }], gridColumn: [{
1595
+ type: HostBinding,
1596
+ args: ['style.grid-column']
1597
+ }], quantity: [{
1598
+ type: Input
1599
+ }], quantityChange: [{
1600
+ type: Output
1601
+ }] } });
1602
+
1603
+ // src/lib/utils/object.util.ts
1604
+ class ObjectUtil {
1605
+ static isNull(value) {
1606
+ return value === undefined || value === null;
1607
+ }
1608
+ static isEmptyObject(obj) {
1609
+ return Object.keys(obj).length === 0;
1610
+ }
1611
+ /**
1612
+ * Considera “novo” um modelo sem id ou com id não positivo.
1010
1613
  */
1011
1614
  static isNewModel(value) {
1012
1615
  if (ObjectUtil.isNull(value))
@@ -1092,6 +1695,16 @@ class SelectEntityComponent {
1092
1695
  entities = [];
1093
1696
  /** loading do combo */
1094
1697
  loading = false;
1698
+ // --- GRID COL (1..12) ---
1699
+ _col = 12;
1700
+ set ptechCol(v) {
1701
+ const n = typeof v === 'string' ? parseInt(v, 10) : v ?? 12;
1702
+ this._col = Number.isFinite(n) ? Math.min(Math.max(+n, 1), 12) : 12;
1703
+ }
1704
+ get gridColumn() {
1705
+ // “span N” funciona dentro de qualquer CSS grid
1706
+ return `span ${this._col}`;
1707
+ }
1095
1708
  // ===== Outputs =====
1096
1709
  selectionChange = new EventEmitter();
1097
1710
  loadingChange = new EventEmitter();
@@ -1205,7 +1818,7 @@ class SelectEntityComponent {
1205
1818
  return obj && typeof obj === 'object' ? obj[this.idProp] : obj;
1206
1819
  }
1207
1820
  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: [{
1821
+ 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
1822
  provide: NG_VALUE_ACCESSOR,
1210
1823
  useExisting: forwardRef(() => SelectEntityComponent),
1211
1824
  multi: true,
@@ -1279,7 +1892,7 @@ class SelectEntityComponent {
1279
1892
  ></mat-spinner>
1280
1893
  </mat-form-field>
1281
1894
  </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 });
1895
+ `, 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
1896
  }
1284
1897
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SelectEntityComponent, decorators: [{
1285
1898
  type: Component,
@@ -1386,6 +1999,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1386
1999
  type: Input
1387
2000
  }], loading: [{
1388
2001
  type: Input
2002
+ }], ptechCol: [{
2003
+ type: Input,
2004
+ args: ['ptechCol']
2005
+ }], gridColumn: [{
2006
+ type: HostBinding,
2007
+ args: ['style.grid-column']
1389
2008
  }], selectionChange: [{
1390
2009
  type: Output
1391
2010
  }], loadingChange: [{
@@ -1418,7 +2037,7 @@ class BreadcrumbComponent {
1418
2037
  </ul>
1419
2038
  </div>
1420
2039
  </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 }] });
2040
+ `, 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
2041
  }
1423
2042
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BreadcrumbComponent, decorators: [{
1424
2043
  type: Component,
@@ -1481,7 +2100,7 @@ class HeaderComponent {
1481
2100
 
1482
2101
  <ng-content select="[user-profile]"></ng-content>
1483
2102
  </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"] }] });
2103
+ `, 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
2104
  }
1486
2105
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: HeaderComponent, decorators: [{
1487
2106
  type: Component,
@@ -1558,6 +2177,7 @@ class NavComponent {
1558
2177
  fixedTopGap = 134;
1559
2178
  fixedBottomGap = 70;
1560
2179
  footerItems = [];
2180
+ headerClick = new EventEmitter();
1561
2181
  navigate = new EventEmitter();
1562
2182
  logout = new EventEmitter();
1563
2183
  stack = [];
@@ -1588,9 +2208,13 @@ class NavComponent {
1588
2208
  if (this.stack.length) {
1589
2209
  this.stack.pop();
1590
2210
  }
2211
+ else {
2212
+ this.headerClick.emit(); // <- clique no topo: pedir navegação pro home
2213
+ // opcional: this.navService.toggleNav();
2214
+ }
1591
2215
  }
1592
2216
  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: `
2217
+ 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
2218
  <mat-sidenav-container class="sidenav-container">
1595
2219
  <mat-sidenav
1596
2220
  class="sidenav"
@@ -1637,7 +2261,7 @@ class NavComponent {
1637
2261
  </div>
1638
2262
  </mat-sidenav>
1639
2263
  </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 });
2264
+ `, 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
2265
  }
1642
2266
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NavComponent, decorators: [{
1643
2267
  type: Component,
@@ -1703,6 +2327,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1703
2327
  type: Input
1704
2328
  }], footerItems: [{
1705
2329
  type: Input
2330
+ }], headerClick: [{
2331
+ type: Output
1706
2332
  }], navigate: [{
1707
2333
  type: Output
1708
2334
  }], logout: [{
@@ -1769,7 +2395,7 @@ class LoadingOverlayComponent {
1769
2395
  <div *ngIf="isLoading | async" class="overlay">
1770
2396
  <div class="spinner"></div>
1771
2397
  </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" }] });
2398
+ `, 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
2399
  }
1774
2400
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LoadingOverlayComponent, decorators: [{
1775
2401
  type: Component,
@@ -1813,7 +2439,7 @@ class ProgressBarComponent {
1813
2439
  [color]="dynamicColorPrimary"
1814
2440
  ></mat-progress-bar>
1815
2441
  </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"] }] });
2442
+ `, 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
2443
  }
1818
2444
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ProgressBarComponent, decorators: [{
1819
2445
  type: Component,
@@ -1878,7 +2504,7 @@ class ProgressBarMultipleComponent {
1878
2504
  return 'warn';
1879
2505
  }
1880
2506
  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"] }] });
2507
+ 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
2508
  }
1883
2509
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ProgressBarMultipleComponent, decorators: [{
1884
2510
  type: Component,
@@ -1897,70 +2523,135 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1897
2523
  type: Input
1898
2524
  }] } });
1899
2525
 
1900
- class RadioGroupComponent {
2526
+ // projects/pumpkin-tech-ng/src/lib/components/radio-group-enum/radio-group-enum.component.ts
2527
+ class RadioGroupEnumComponent {
2528
+ // UI
1901
2529
  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
- }
2530
+ static ngAcceptInputType_required;
2531
+ _required = false;
2532
+ get required() { return this._required; }
2533
+ set required(v) { this._required = coerceBooleanProperty(v); }
2534
+ static ngAcceptInputType_disabled;
2535
+ _disabled = false;
2536
+ get disabled() { return this._disabled; }
2537
+ set disabled(v) { this._disabled = coerceBooleanProperty(v); }
2538
+ /** 'row' (padrão) ou 'column' */
2539
+ orientation = 'row';
2540
+ /** Pode ser: { KEY: 'Rótulo' } ou [{ key, value }] */
2541
+ enums = {};
2542
+ // --- GRID COL (1..12) ---
2543
+ _col = 12;
2544
+ set ptechCol(v) {
2545
+ const n = typeof v === 'string' ? parseInt(v, 10) : v ?? 12;
2546
+ this._col = Number.isFinite(n) ? Math.min(Math.max(+n, 1), 12) : 12;
2547
+ }
2548
+ get gridColumn() {
2549
+ // “span N” funciona dentro de qualquer CSS grid
2550
+ return `span ${this._col}`;
2551
+ }
2552
+ valueChange = new EventEmitter();
2553
+ // CVA
2554
+ _val;
1915
2555
  onChange = () => { };
1916
2556
  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];
2557
+ get value() { return this._val; }
2558
+ set value(v) {
2559
+ if (v !== this._val) {
2560
+ this._val = v;
2561
+ this.onChange(v);
2562
+ this.valueChange.emit(v);
2563
+ }
1932
2564
  }
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
- {
2565
+ writeValue(value) { this._val = value; }
2566
+ registerOnChange(fn) { this.onChange = fn; }
2567
+ registerOnTouched(fn) { this.onTouch = fn; }
2568
+ setDisabledState(isDisabled) { this.disabled = isDisabled; }
2569
+ // Data -> array padronizado
2570
+ get items() {
2571
+ if (Array.isArray(this.enums))
2572
+ return this.enums;
2573
+ const map = this.enums;
2574
+ return Object.keys(map || {}).map(k => ({ key: k, value: map[k] }));
2575
+ }
2576
+ trackByKey = (_, item) => item.key;
2577
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RadioGroupEnumComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2578
+ 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
2579
  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"] }] });
2580
+ useExisting: forwardRef(() => RadioGroupEnumComponent),
2581
+ multi: true
2582
+ }], ngImport: i0, template: `
2583
+ <div class="ptech-radio-container">
2584
+ <label class="ptech-label">
2585
+ {{ label }}
2586
+ <span *ngIf="required" aria-hidden="true">*</span>
2587
+ </label>
2588
+
2589
+ <mat-radio-group
2590
+ class="ptech-radio-group"
2591
+ [class.row]="orientation === 'row'"
2592
+ [class.column]="orientation === 'column'"
2593
+ [(ngModel)]="value"
2594
+ [disabled]="disabled"
2595
+ [attr.aria-required]="required"
2596
+ (blur)="onTouch()"
2597
+ >
2598
+ <mat-radio-button
2599
+ *ngFor="let item of items; trackBy: trackByKey"
2600
+ [value]="item.key">
2601
+ {{ item.value }}
2602
+ </mat-radio-button>
2603
+ </mat-radio-group>
2604
+ </div>
2605
+ `, 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
2606
  }
1942
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RadioGroupComponent, decorators: [{
2607
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RadioGroupEnumComponent, decorators: [{
1943
2608
  type: Component,
1944
- args: [{ selector: 'ptech-radio-group', standalone: true, imports: [CoreMaterialModule], providers: [
1945
- {
2609
+ args: [{ selector: 'ptech-radio-group-enum', standalone: true, imports: [CommonModule, CoreMaterialModule], template: `
2610
+ <div class="ptech-radio-container">
2611
+ <label class="ptech-label">
2612
+ {{ label }}
2613
+ <span *ngIf="required" aria-hidden="true">*</span>
2614
+ </label>
2615
+
2616
+ <mat-radio-group
2617
+ class="ptech-radio-group"
2618
+ [class.row]="orientation === 'row'"
2619
+ [class.column]="orientation === 'column'"
2620
+ [(ngModel)]="value"
2621
+ [disabled]="disabled"
2622
+ [attr.aria-required]="required"
2623
+ (blur)="onTouch()"
2624
+ >
2625
+ <mat-radio-button
2626
+ *ngFor="let item of items; trackBy: trackByKey"
2627
+ [value]="item.key">
2628
+ {{ item.value }}
2629
+ </mat-radio-button>
2630
+ </mat-radio-group>
2631
+ </div>
2632
+ `, providers: [{
1946
2633
  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"] }]
2634
+ useExisting: forwardRef(() => RadioGroupEnumComponent),
2635
+ multi: true
2636
+ }], 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
2637
  }], propDecorators: { label: [{
1952
2638
  type: Input
1953
- }], disabled: [{
1954
- type: Input
1955
2639
  }], required: [{
1956
2640
  type: Input
1957
- }], property: [{
2641
+ }], disabled: [{
1958
2642
  type: Input
1959
- }], entities: [{
2643
+ }], orientation: [{
1960
2644
  type: Input
1961
- }], value: [{
2645
+ }], enums: [{
2646
+ type: Input
2647
+ }], ptechCol: [{
1962
2648
  type: Input,
1963
- args: ['value']
2649
+ args: ['ptechCol']
2650
+ }], gridColumn: [{
2651
+ type: HostBinding,
2652
+ args: ['style.grid-column']
2653
+ }], valueChange: [{
2654
+ type: Output
1964
2655
  }] } });
1965
2656
 
1966
2657
  class RadioGroupEntityComponent {
@@ -1969,6 +2660,16 @@ class RadioGroupEntityComponent {
1969
2660
  required = false;
1970
2661
  property = 'description';
1971
2662
  entities = [];
2663
+ // --- GRID COL (1..12) ---
2664
+ _col = 12;
2665
+ set ptechCol(v) {
2666
+ const n = typeof v === 'string' ? parseInt(v, 10) : v ?? 12;
2667
+ this._col = Number.isFinite(n) ? Math.min(Math.max(+n, 1), 12) : 12;
2668
+ }
2669
+ get gridColumn() {
2670
+ // “span N” funciona dentro de qualquer CSS grid
2671
+ return `span ${this._col}`;
2672
+ }
1972
2673
  _value;
1973
2674
  get value() {
1974
2675
  return this._value;
@@ -1998,7 +2699,7 @@ class RadioGroupEntityComponent {
1998
2699
  this.disabled = isDisabled;
1999
2700
  }
2000
2701
  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: [
2702
+ 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
2703
  {
2003
2704
  provide: NG_VALUE_ACCESSOR,
2004
2705
  useExisting: forwardRef(() => RadioGroupEntityComponent),
@@ -2019,7 +2720,7 @@ class RadioGroupEntityComponent {
2019
2720
  </mat-radio-button>
2020
2721
  </mat-radio-group>
2021
2722
  </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"] }] });
2723
+ `, 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
2724
  }
2024
2725
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RadioGroupEntityComponent, decorators: [{
2025
2726
  type: Component,
@@ -2055,6 +2756,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2055
2756
  type: Input
2056
2757
  }], entities: [{
2057
2758
  type: Input
2759
+ }], ptechCol: [{
2760
+ type: Input,
2761
+ args: ['ptechCol']
2762
+ }], gridColumn: [{
2763
+ type: HostBinding,
2764
+ args: ['style.grid-column']
2058
2765
  }] } });
2059
2766
 
2060
2767
  class SelectEnumComponent {
@@ -2068,6 +2775,16 @@ class SelectEnumComponent {
2068
2775
  sort = () => 0;
2069
2776
  loading = false;
2070
2777
  val;
2778
+ // --- GRID COL (1..12) ---
2779
+ _col = 12;
2780
+ set ptechCol(v) {
2781
+ const n = typeof v === 'string' ? parseInt(v, 10) : v ?? 12;
2782
+ this._col = Number.isFinite(n) ? Math.min(Math.max(+n, 1), 12) : 12;
2783
+ }
2784
+ get gridColumn() {
2785
+ // “span N” funciona dentro de qualquer CSS grid
2786
+ return `span ${this._col}`;
2787
+ }
2071
2788
  selectionChange = new EventEmitter();
2072
2789
  enumList = [];
2073
2790
  ngOnInit() {
@@ -2098,13 +2815,13 @@ class SelectEnumComponent {
2098
2815
  this.onTouch = fn;
2099
2816
  }
2100
2817
  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: [
2818
+ 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
2819
  {
2103
2820
  provide: NG_VALUE_ACCESSOR,
2104
2821
  useExisting: forwardRef(() => SelectEnumComponent),
2105
2822
  multi: true,
2106
2823
  },
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"] }] });
2824
+ ], 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
2825
  }
2109
2826
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SelectEnumComponent, decorators: [{
2110
2827
  type: Component,
@@ -2136,6 +2853,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2136
2853
  }], val: [{
2137
2854
  type: Input,
2138
2855
  args: ['value']
2856
+ }], ptechCol: [{
2857
+ type: Input,
2858
+ args: ['ptechCol']
2859
+ }], gridColumn: [{
2860
+ type: HostBinding,
2861
+ args: ['style.grid-column']
2139
2862
  }], selectionChange: [{
2140
2863
  type: Output
2141
2864
  }] } });
@@ -2165,6 +2888,16 @@ class SlideToggleComponent {
2165
2888
  set disableRipple(v) { this._disableRipple = coerceBooleanProperty(v); }
2166
2889
  /** name para forms nativos, se precisar */
2167
2890
  name = '';
2891
+ // --- GRID COL (1..12) ---
2892
+ _col = 12;
2893
+ set ptechCol(v) {
2894
+ const n = typeof v === 'string' ? parseInt(v, 10) : v ?? 12;
2895
+ this._col = Number.isFinite(n) ? Math.min(Math.max(+n, 1), 12) : 12;
2896
+ }
2897
+ get gridColumn() {
2898
+ // “span N” funciona dentro de qualquer CSS grid
2899
+ return `span ${this._col}`;
2900
+ }
2168
2901
  /** Saída de mudança (boolean) – compatível com (change) que você usava */
2169
2902
  change = new EventEmitter();
2170
2903
  /** Model interno (CVA) */
@@ -2193,11 +2926,11 @@ class SlideToggleComponent {
2193
2926
  this.value = checked;
2194
2927
  }
2195
2928
  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: [{
2929
+ 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
2930
  provide: NG_VALUE_ACCESSOR,
2198
2931
  useExisting: forwardRef(() => SlideToggleComponent),
2199
2932
  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 });
2933
+ }], 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
2934
  }
2202
2935
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SlideToggleComponent, decorators: [{
2203
2936
  type: Component,
@@ -2224,6 +2957,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2224
2957
  type: Input
2225
2958
  }], name: [{
2226
2959
  type: Input
2960
+ }], ptechCol: [{
2961
+ type: Input,
2962
+ args: ['ptechCol']
2963
+ }], gridColumn: [{
2964
+ type: HostBinding,
2965
+ args: ['style.grid-column']
2227
2966
  }], change: [{
2228
2967
  type: Output
2229
2968
  }] } });
@@ -2266,7 +3005,7 @@ class ConfirmationDialogComponent {
2266
3005
  cancel() {
2267
3006
  this.dialogRef.close(false);
2268
3007
  }
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 });
3008
+ 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
3009
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ConfirmationDialogComponent, isStandalone: true, selector: "ptech-confirmation-dialog", ngImport: i0, template: `
2271
3010
  <div class="dialog">
2272
3011
  <h1 mat-dialog-title class="dialog-title">{{ confirmation.title }}</h1>
@@ -2284,7 +3023,7 @@ class ConfirmationDialogComponent {
2284
3023
  </button>
2285
3024
  </div>
2286
3025
  </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]" }] });
3026
+ `, 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
3027
  }
2289
3028
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ConfirmationDialogComponent, decorators: [{
2290
3029
  type: Component,
@@ -2306,7 +3045,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2306
3045
  </div>
2307
3046
  </div>
2308
3047
  `, 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: [{
3048
+ }], ctorParameters: () => [{ type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
2310
3049
  type: Inject,
2311
3050
  args: [MAT_DIALOG_DATA]
2312
3051
  }] }] });
@@ -2356,8 +3095,8 @@ class ActionDialogComponent {
2356
3095
  onSelectionChange($event) {
2357
3096
  console.log('selection changed', $event);
2358
3097
  }
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"] }] });
3098
+ 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 });
3099
+ 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
3100
  }
2362
3101
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ActionDialogComponent, decorators: [{
2363
3102
  type: Component,
@@ -2372,7 +3111,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2372
3111
  }], ctorParameters: () => [{ type: undefined, decorators: [{
2373
3112
  type: Inject,
2374
3113
  args: [MAT_DIALOG_DATA]
2375
- }] }, { type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
3114
+ }] }, { type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
2376
3115
  type: Optional
2377
3116
  }, {
2378
3117
  type: Inject,
@@ -2424,7 +3163,7 @@ class InfoDetailDialogComponent {
2424
3163
 
2425
3164
  <button mat-button mat-dialog-close>Fechar</button>
2426
3165
  </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]" }] });
3166
+ `, 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
3167
  }
2429
3168
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InfoDetailDialogComponent, decorators: [{
2430
3169
  type: Component,
@@ -2484,13 +3223,13 @@ class InfoDetailComponent {
2484
3223
  },
2485
3224
  });
2486
3225
  }
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 });
3226
+ 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
3227
  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
3228
  }
2490
3229
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InfoDetailComponent, decorators: [{
2491
3230
  type: Component,
2492
3231
  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: [{
3232
+ }], ctorParameters: () => [{ type: i1$4.MatDialog }], propDecorators: { infoTitle: [{
2494
3233
  type: Input
2495
3234
  }], infoContent: [{
2496
3235
  type: Input
@@ -2544,8 +3283,8 @@ class ActionResultDialogComponent {
2544
3283
  return;
2545
3284
  window.open(this.whatsappUrl, '_blank');
2546
3285
  }
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"] }] });
3286
+ 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 });
3287
+ 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
3288
  }
2550
3289
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ActionResultDialogComponent, decorators: [{
2551
3290
  type: Component,
@@ -2553,7 +3292,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2553
3292
  }], ctorParameters: () => [{ type: undefined, decorators: [{
2554
3293
  type: Inject,
2555
3294
  args: [MAT_DIALOG_DATA]
2556
- }] }, { type: i1$3.MatDialogRef }, { type: i2$3.DomSanitizer }, { type: undefined, decorators: [{
3295
+ }] }, { type: i1$4.MatDialogRef }, { type: i2$3.DomSanitizer }, { type: undefined, decorators: [{
2557
3296
  type: Inject,
2558
3297
  args: [MESSAGE_SERVICE]
2559
3298
  }] }] });
@@ -2596,8 +3335,8 @@ class AlertComponent {
2596
3335
  second: '2-digit',
2597
3336
  });
2598
3337
  }
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 });
3338
+ 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 });
3339
+ 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
3340
  }
2602
3341
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AlertComponent, decorators: [{
2603
3342
  type: Component,
@@ -2605,7 +3344,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2605
3344
  }], ctorParameters: () => [{ type: undefined, decorators: [{
2606
3345
  type: Inject,
2607
3346
  args: [MAT_SNACK_BAR_DATA]
2608
- }] }, { type: i1$4.MatSnackBarRef }] });
3347
+ }] }, { type: i1$5.MatSnackBarRef }] });
2609
3348
 
2610
3349
  class GetFirstStringBeforeSpacePipe {
2611
3350
  transform(value) {
@@ -2655,7 +3394,7 @@ class ProfileMenuComponent {
2655
3394
  <!-- extensibilidade por projection -->
2656
3395
  <ng-content select="[extra-items]"></ng-content>
2657
3396
  </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" }] });
3397
+ `, 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
3398
  }
2660
3399
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ProfileMenuComponent, decorators: [{
2661
3400
  type: Component,
@@ -2787,8 +3526,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2787
3526
  type: Input
2788
3527
  }] } });
2789
3528
 
2790
- // src/lib/components/input-date-picker-range/input-date-picker-range.component.ts
2791
- class InputDatePickerRangeComponent {
3529
+ class InputDateRangeComponent {
2792
3530
  disabled = false;
2793
3531
  label;
2794
3532
  required = false;
@@ -2858,23 +3596,23 @@ class InputDatePickerRangeComponent {
2858
3596
  // Format date with timezone offset
2859
3597
  return momentDate.format('YYYY-MM-DDTHH:mm:ssZ'); // This will include the offset
2860
3598
  }
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: [
3599
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputDateRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3600
+ 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
3601
  {
2864
3602
  provide: NG_VALUE_ACCESSOR,
2865
- useExisting: forwardRef(() => InputDatePickerRangeComponent),
3603
+ useExisting: forwardRef(() => InputDateRangeComponent),
2866
3604
  multi: true
2867
3605
  }
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"] }] });
3606
+ ], 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
3607
  }
2870
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputDatePickerRangeComponent, decorators: [{
3608
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputDateRangeComponent, decorators: [{
2871
3609
  type: Component,
2872
- args: [{ selector: 'ptech-input-date-picker-range', standalone: true, imports: [
3610
+ args: [{ selector: 'ptech-input-date-range', standalone: true, imports: [
2873
3611
  CoreMaterialModule
2874
3612
  ], providers: [
2875
3613
  {
2876
3614
  provide: NG_VALUE_ACCESSOR,
2877
- useExisting: forwardRef(() => InputDatePickerRangeComponent),
3615
+ useExisting: forwardRef(() => InputDateRangeComponent),
2878
3616
  multi: true
2879
3617
  }
2880
3618
  ], 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 +3636,707 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2898
3636
  type: Output
2899
3637
  }] } });
2900
3638
 
3639
+ class InputDateComponent {
3640
+ cdr;
3641
+ inputDateElement;
3642
+ picker;
3643
+ // controle reativo da data
3644
+ dateCtrl = new FormControl({ value: null, disabled: false });
3645
+ // Inputs
3646
+ label = '';
3647
+ placeholder = '';
3648
+ appearance = 'outline';
3649
+ required = false;
3650
+ disabled = false; // <- não usar no template com [formControl]
3651
+ loading = false; // idem (use ngOnChanges)
3652
+ name;
3653
+ min;
3654
+ max;
3655
+ startAt;
3656
+ startView = 'month';
3657
+ touchUi = false;
3658
+ panelClass;
3659
+ dateFilter;
3660
+ withTime = false;
3661
+ seconds = true;
3662
+ timeLabel = 'Hora';
3663
+ defaultTime = '00:00:00';
3664
+ timeZone;
3665
+ emit = 'isoDate';
3666
+ // --- GRID COL (1..12) ---
3667
+ _col = 12;
3668
+ set ptechCol(v) {
3669
+ const n = typeof v === 'string' ? parseInt(v, 10) : v ?? 12;
3670
+ this._col = Number.isFinite(n) ? Math.min(Math.max(+n, 1), 12) : 12;
3671
+ }
3672
+ get gridColumn() {
3673
+ // “span N” funciona dentro de qualquer CSS grid
3674
+ return `span ${this._col}`;
3675
+ }
3676
+ dateChange = new EventEmitter();
3677
+ opened = new EventEmitter();
3678
+ closed = new EventEmitter();
3679
+ timeString = '';
3680
+ onChange = () => { };
3681
+ onTouched = () => { };
3682
+ get isDisabled() { return this.disabled || this.loading; }
3683
+ constructor(cdr) {
3684
+ this.cdr = cdr;
3685
+ this.dateCtrl.valueChanges.subscribe(() => this.emitCombined());
3686
+ }
3687
+ // SINCRONIZA disabled/loading -> FormControl
3688
+ ngOnChanges(changes) {
3689
+ if (('disabled' in changes) || ('loading' in changes)) {
3690
+ const shouldDisable = this.isDisabled;
3691
+ if (shouldDisable && !this.dateCtrl.disabled)
3692
+ this.dateCtrl.disable({ emitEvent: false });
3693
+ if (!shouldDisable && this.dateCtrl.disabled)
3694
+ this.dateCtrl.enable({ emitEvent: false });
3695
+ }
3696
+ }
3697
+ // CVA
3698
+ writeValue(value) {
3699
+ if (!value) {
3700
+ this.dateCtrl.setValue(null, { emitEvent: false });
3701
+ this.timeString = '';
3702
+ this.cdr.detectChanges();
3703
+ return;
3704
+ }
3705
+ const d = this.parseToDate(value);
3706
+ this.dateCtrl.setValue(d, { emitEvent: false });
3707
+ if (d) {
3708
+ const hh = this.pad(d.getHours());
3709
+ const mm = this.pad(d.getMinutes());
3710
+ const ss = this.pad(d.getSeconds());
3711
+ this.timeString = this.seconds ? `${hh}:${mm}:${ss}` : `${hh}:${mm}`;
3712
+ }
3713
+ else {
3714
+ this.timeString = '';
3715
+ }
3716
+ this.cdr.detectChanges();
3717
+ }
3718
+ registerOnChange(fn) { this.onChange = fn; }
3719
+ registerOnTouched(fn) { this.onTouched = fn; }
3720
+ setDisabledState(isDisabled) {
3721
+ this.disabled = isDisabled;
3722
+ this.ngOnChanges({ disabled: { currentValue: isDisabled, previousValue: !isDisabled, firstChange: false, isFirstChange: () => false } });
3723
+ }
3724
+ // UI
3725
+ onTimeInput(v) {
3726
+ this.timeString = v || '';
3727
+ this.emitCombined();
3728
+ }
3729
+ // Emissão
3730
+ emitCombined() {
3731
+ const d = this.combine(this.dateCtrl.value, this.timeString);
3732
+ const out = this.toOutput(d);
3733
+ this.onChange(out);
3734
+ this.dateChange.emit(out);
3735
+ }
3736
+ // Helpers (iguais aos seus)
3737
+ combine(date, time) {
3738
+ if (!date)
3739
+ return null;
3740
+ const t = this.withTime ? (time || this.defaultTime) : '00:00:00';
3741
+ const [hh, mm, ss] = this.normalizeTime(t);
3742
+ const d = new Date(date);
3743
+ d.setHours(hh, mm, ss, 0);
3744
+ return d;
3745
+ }
3746
+ normalizeTime(t) {
3747
+ const parts = t.split(':').map(p => +p || 0);
3748
+ return [this.clamp(parts[0], 0, 23), this.clamp(parts[1] ?? 0, 0, 59), this.clamp(parts[2] ?? 0, 0, 59)];
3749
+ }
3750
+ clamp(v, min, max) { return Math.max(min, Math.min(max, v)); }
3751
+ parseToDate(v) {
3752
+ if (v instanceof Date)
3753
+ return isNaN(v.getTime()) ? null : v;
3754
+ const d = new Date(v);
3755
+ return isNaN(d.getTime()) ? null : d;
3756
+ }
3757
+ toOutput(d) {
3758
+ if (!d)
3759
+ return null;
3760
+ switch (this.emit) {
3761
+ case 'date': return d;
3762
+ case 'isoDate': return this.formatIsoDate(d);
3763
+ case 'isoDateTimeZ': return d.toISOString();
3764
+ case 'localOffset': return this.formatWithFixedOffset(d, d.getTimezoneOffset() * -1);
3765
+ case 'isoDateTimeTZ': {
3766
+ const tz = (this.timeZone ?? 'UTC');
3767
+ return this.formatInTimeZone(d, tz);
3768
+ }
3769
+ default: return this.formatIsoDate(d);
3770
+ }
3771
+ }
3772
+ pad(n) { return n < 10 ? '0' + n : '' + n; }
3773
+ formatIsoDate(d) { return `${d.getFullYear()}-${this.pad(d.getMonth() + 1)}-${this.pad(d.getDate())}`; }
3774
+ /** Constrói 'YYYY-MM-DDTHH:mm:ss±HH:MM' para offset “fixo” (minutos a partir de UTC) */
3775
+ formatWithFixedOffset(d, offsetMinutes) {
3776
+ const ms = d.getTime() + offsetMinutes * 60000;
3777
+ const z = new Date(ms);
3778
+ const y = z.getUTCFullYear();
3779
+ const m = this.pad(z.getUTCMonth() + 1);
3780
+ const day = this.pad(z.getUTCDate());
3781
+ const H = this.pad(z.getUTCHours());
3782
+ const M = this.pad(z.getUTCMinutes());
3783
+ const S = this.pad(z.getUTCSeconds());
3784
+ const sign = offsetMinutes >= 0 ? '+' : '-';
3785
+ const oh = this.pad(Math.trunc(Math.abs(offsetMinutes) / 60));
3786
+ const om = this.pad(Math.abs(offsetMinutes) % 60);
3787
+ // 👇 CRASES
3788
+ return `${y}-${m}-${day}T${H}:${M}:${S}${sign}${oh}:${om}`;
3789
+ }
3790
+ /** Formata no timezone (IANA/offset/UTC). Default UTC quando nada informado. */
3791
+ formatInTimeZone(d, tz) {
3792
+ if (typeof tz === 'number')
3793
+ return this.formatWithFixedOffset(d, tz);
3794
+ if (tz === 'browser')
3795
+ return this.formatWithFixedOffset(d, d.getTimezoneOffset() * -1); // 👈 novo atalho
3796
+ if (tz === 'UTC' || tz === 'Z' || !tz)
3797
+ return this.formatWithFixedOffset(d, 0);
3798
+ if (/^[+-]\d{2}:\d{2}$/.test(tz)) {
3799
+ const min = this.offsetStringToMinutes(tz);
3800
+ return this.formatWithFixedOffset(d, min);
3801
+ }
3802
+ // IANA
3803
+ const parts = new Intl.DateTimeFormat('en-US', {
3804
+ timeZone: tz,
3805
+ hour12: false,
3806
+ year: 'numeric', month: '2-digit', day: '2-digit',
3807
+ hour: '2-digit', minute: '2-digit', second: '2-digit'
3808
+ }).formatToParts(d);
3809
+ const map = {};
3810
+ for (const p of parts)
3811
+ map[p.type] = p.value;
3812
+ const off = this.getTzOffsetMinutes(d, tz);
3813
+ const sign = off >= 0 ? '+' : '-';
3814
+ const oh = this.pad(Math.trunc(Math.abs(off) / 60));
3815
+ const om = this.pad(Math.abs(off) % 60);
3816
+ // 👇 CRASES
3817
+ return `${map.year}-${map.month}-${map.day}T${map.hour}:${map.minute}:${map.second}${sign}${oh}:${om}`;
3818
+ }
3819
+ offsetStringToMinutes(s) {
3820
+ const sign = s.startsWith('-') ? -1 : 1;
3821
+ const [h, m] = s.slice(1).split(':').map(n => +n);
3822
+ return sign * (h * 60 + m);
3823
+ }
3824
+ /** Offset (min) do timezone IANA naquele instante. Ex.: SP ⇒ -180 no horário padrão. */
3825
+ getTzOffsetMinutes(date, timeZone) {
3826
+ const dtf = new Intl.DateTimeFormat('en-US', {
3827
+ timeZone,
3828
+ hour12: false,
3829
+ year: 'numeric', month: '2-digit', day: '2-digit',
3830
+ hour: '2-digit', minute: '2-digit', second: '2-digit'
3831
+ });
3832
+ const parts = dtf.formatToParts(date);
3833
+ const map = {};
3834
+ parts.forEach(p => map[p.type] = p.value);
3835
+ // 👇 CRASES
3836
+ const asUTC = new Date(`${map.year}-${map.month}-${map.day}T${map.hour}:${map.minute}:${map.second}.000Z`);
3837
+ return (asUTC.getTime() - date.getTime()) / 60000;
3838
+ }
3839
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputDateComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
3840
+ 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: `
3841
+ <div class="input-date-container">
3842
+ <div class="row">
3843
+ <mat-form-field [appearance]="appearance" class="field">
3844
+ <mat-label>{{ label }} <span *ngIf="required" aria-hidden="true">*</span></mat-label>
3845
+
3846
+ <mat-spinner *ngIf="loading" matPrefix mode="indeterminate" diameter="17"></mat-spinner>
3847
+
3848
+ <input
3849
+ #inputDateElement
3850
+ matInput
3851
+ [formControl]="dateCtrl"
3852
+ [matDatepicker]="picker"
3853
+ [placeholder]="placeholder"
3854
+ [required]="required"
3855
+ [min]="min"
3856
+ [max]="max"
3857
+ [matDatepickerFilter]="dateFilter || null"
3858
+ [attr.name]="name || null"
3859
+ autocomplete="off"
3860
+ type="text"
3861
+ (blur)="onTouched()"
3862
+ />
3863
+
3864
+ <mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
3865
+ <mat-datepicker
3866
+ #picker
3867
+ [startAt]="startAt"
3868
+ [startView]="startView"
3869
+ [touchUi]="touchUi"
3870
+ [panelClass]="panelClass"
3871
+ (opened)="opened.emit()"
3872
+ (closed)="closed.emit()">
3873
+ </mat-datepicker>
3874
+
3875
+ <ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
3876
+ </mat-form-field>
3877
+
3878
+ <mat-form-field *ngIf="withTime" [appearance]="appearance" class="field time">
3879
+ <mat-label>{{ timeLabel }}</mat-label>
3880
+ <input
3881
+ matInput
3882
+ type="time"
3883
+ [step]="seconds ? 1 : 60"
3884
+ [value]="timeString"
3885
+ [disabled]="isDisabled"
3886
+ (change)="onTimeInput($any($event.target).value)"
3887
+ (blur)="onTouched()"
3888
+ />
3889
+ </mat-form-field>
3890
+ </div>
3891
+ </div>
3892
+ `, 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"] }] });
3893
+ }
3894
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputDateComponent, decorators: [{
3895
+ type: Component,
3896
+ args: [{ selector: 'ptech-input-date', standalone: true, imports: [CoreMaterialModule], template: `
3897
+ <div class="input-date-container">
3898
+ <div class="row">
3899
+ <mat-form-field [appearance]="appearance" class="field">
3900
+ <mat-label>{{ label }} <span *ngIf="required" aria-hidden="true">*</span></mat-label>
3901
+
3902
+ <mat-spinner *ngIf="loading" matPrefix mode="indeterminate" diameter="17"></mat-spinner>
3903
+
3904
+ <input
3905
+ #inputDateElement
3906
+ matInput
3907
+ [formControl]="dateCtrl"
3908
+ [matDatepicker]="picker"
3909
+ [placeholder]="placeholder"
3910
+ [required]="required"
3911
+ [min]="min"
3912
+ [max]="max"
3913
+ [matDatepickerFilter]="dateFilter || null"
3914
+ [attr.name]="name || null"
3915
+ autocomplete="off"
3916
+ type="text"
3917
+ (blur)="onTouched()"
3918
+ />
3919
+
3920
+ <mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
3921
+ <mat-datepicker
3922
+ #picker
3923
+ [startAt]="startAt"
3924
+ [startView]="startView"
3925
+ [touchUi]="touchUi"
3926
+ [panelClass]="panelClass"
3927
+ (opened)="opened.emit()"
3928
+ (closed)="closed.emit()">
3929
+ </mat-datepicker>
3930
+
3931
+ <ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
3932
+ </mat-form-field>
3933
+
3934
+ <mat-form-field *ngIf="withTime" [appearance]="appearance" class="field time">
3935
+ <mat-label>{{ timeLabel }}</mat-label>
3936
+ <input
3937
+ matInput
3938
+ type="time"
3939
+ [step]="seconds ? 1 : 60"
3940
+ [value]="timeString"
3941
+ [disabled]="isDisabled"
3942
+ (change)="onTimeInput($any($event.target).value)"
3943
+ (blur)="onTouched()"
3944
+ />
3945
+ </mat-form-field>
3946
+ </div>
3947
+ </div>
3948
+ `, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => InputDateComponent), multi: true }], styles: [".time{margin-left:15px}\n"] }]
3949
+ }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { inputDateElement: [{
3950
+ type: ViewChild,
3951
+ args: ['inputDateElement', { static: true }]
3952
+ }], picker: [{
3953
+ type: ViewChild,
3954
+ args: [MatDatepicker]
3955
+ }], label: [{
3956
+ type: Input
3957
+ }], placeholder: [{
3958
+ type: Input
3959
+ }], appearance: [{
3960
+ type: Input
3961
+ }], required: [{
3962
+ type: Input
3963
+ }], disabled: [{
3964
+ type: Input
3965
+ }], loading: [{
3966
+ type: Input
3967
+ }], name: [{
3968
+ type: Input
3969
+ }], min: [{
3970
+ type: Input
3971
+ }], max: [{
3972
+ type: Input
3973
+ }], startAt: [{
3974
+ type: Input
3975
+ }], startView: [{
3976
+ type: Input
3977
+ }], touchUi: [{
3978
+ type: Input
3979
+ }], panelClass: [{
3980
+ type: Input
3981
+ }], dateFilter: [{
3982
+ type: Input
3983
+ }], withTime: [{
3984
+ type: Input
3985
+ }], seconds: [{
3986
+ type: Input
3987
+ }], timeLabel: [{
3988
+ type: Input
3989
+ }], defaultTime: [{
3990
+ type: Input
3991
+ }], timeZone: [{
3992
+ type: Input
3993
+ }], emit: [{
3994
+ type: Input
3995
+ }], ptechCol: [{
3996
+ type: Input,
3997
+ args: ['ptechCol']
3998
+ }], gridColumn: [{
3999
+ type: HostBinding,
4000
+ args: ['style.grid-column']
4001
+ }], dateChange: [{
4002
+ type: Output
4003
+ }], opened: [{
4004
+ type: Output
4005
+ }], closed: [{
4006
+ type: Output
4007
+ }] } });
4008
+
4009
+ // projects/pumpkin-tech-ng/src/lib/components/input-time/input-time.component.ts
4010
+ class InputTimeComponent {
4011
+ // Visual
4012
+ label = '';
4013
+ placeholder = '';
4014
+ required = false;
4015
+ disabled = false;
4016
+ loading = false;
4017
+ appearance = 'outline';
4018
+ // Comportamento
4019
+ /** 24 (padrão) ou 12 */
4020
+ format = 24;
4021
+ /** mostra/oculta seleção de segundos */
4022
+ seconds = false;
4023
+ /** evita focar/editar manualmente (só via picker) */
4024
+ disableClick = true;
4025
+ /** usado quando não há valor inicial */
4026
+ defaultTime = '00:00:00';
4027
+ /** two-way opcional via (valueChange) */
4028
+ valueChange = new EventEmitter();
4029
+ _val = null;
4030
+ // CVA
4031
+ onChange = () => { };
4032
+ onTouch = () => { };
4033
+ get value() { return this._val; }
4034
+ set value(v) {
4035
+ if (v !== this._val) {
4036
+ this._val = v;
4037
+ this.onChange(v);
4038
+ this.valueChange.emit(v ?? '');
4039
+ }
4040
+ }
4041
+ writeValue(val) { this._val = val ?? null; }
4042
+ registerOnChange(fn) { this.onChange = fn; }
4043
+ registerOnTouched(fn) { this.onTouch = fn; }
4044
+ setDisabledState(isDisabled) { this.disabled = isDisabled; }
4045
+ // Normaliza saída do timepicker para 'HH:mm' ou 'HH:mm:ss' (24h)
4046
+ onTimeSet(raw) {
4047
+ const { hh, mm, ss } = this.parseTime(raw);
4048
+ const out = this.seconds ? `${hh}:${mm}:${ss}` : `${hh}:${mm}`;
4049
+ this.value = out;
4050
+ }
4051
+ // Aceita 'HH:mm', 'HH:mm:ss', 'h:mm A', 'h:mm:ss A'
4052
+ parseTime(inp) {
4053
+ const s = (inp || '').trim().toUpperCase();
4054
+ // AM/PM?
4055
+ const ampmMatch = s.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?\s*(AM|PM)$/);
4056
+ if (ampmMatch) {
4057
+ let h = +ampmMatch[1];
4058
+ const m = +ampmMatch[2];
4059
+ const sec = +(ampmMatch[3] ?? 0);
4060
+ const ap = ampmMatch[4];
4061
+ if (ap === 'AM') {
4062
+ if (h === 12)
4063
+ h = 0;
4064
+ }
4065
+ else { // PM
4066
+ if (h !== 12)
4067
+ h += 12;
4068
+ }
4069
+ return { hh: this.pad(h), mm: this.pad(m), ss: this.pad(sec) };
4070
+ }
4071
+ // 24h
4072
+ const h24 = s.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
4073
+ if (h24) {
4074
+ const h = this.clamp(+h24[1], 0, 23);
4075
+ const m = this.clamp(+h24[2], 0, 59);
4076
+ const sec = this.clamp(+(h24[3] ?? 0), 0, 59);
4077
+ return { hh: this.pad(h), mm: this.pad(m), ss: this.pad(sec) };
4078
+ }
4079
+ // fallback defaultTime
4080
+ const def = this.seconds ? '00:00:00' : '00:00';
4081
+ return this.parseTime(def);
4082
+ }
4083
+ pad(n) { return n < 10 ? '0' + n : '' + n; }
4084
+ clamp(v, min, max) { return Math.max(min, Math.min(max, v)); }
4085
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4086
+ 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: [{
4087
+ provide: NG_VALUE_ACCESSOR,
4088
+ useExisting: forwardRef(() => InputTimeComponent),
4089
+ multi: true
4090
+ }], ngImport: i0, template: `
4091
+ <div class="ptech-time-container">
4092
+ <mat-form-field class="ptech-form-field" [appearance]="appearance">
4093
+ <mat-label>
4094
+ {{ label }}
4095
+ <span *ngIf="required" aria-hidden="true">*</span>
4096
+ </mat-label>
4097
+
4098
+ <input
4099
+ matInput
4100
+ [ngxTimepicker]="picker"
4101
+ [format]="format"
4102
+ [disabled]="disabled || loading"
4103
+ [disableClick]="disableClick"
4104
+ [placeholder]="placeholder"
4105
+ [required]="required"
4106
+ readonly
4107
+ autocomplete="off"
4108
+ [maxLength]="seconds ? 8 : 5"
4109
+ [(ngModel)]="value"
4110
+ (blur)="onTouch()"
4111
+ />
4112
+
4113
+ <ngx-material-timepicker
4114
+ #picker
4115
+ [defaultTime]="value || defaultTime"
4116
+ (timeSet)="onTimeSet($event)">
4117
+ </ngx-material-timepicker>
4118
+
4119
+ <ngx-material-timepicker-toggle matSuffix [for]="picker"></ngx-material-timepicker-toggle>
4120
+
4121
+ <mat-spinner
4122
+ matPrefix
4123
+ *ngIf="loading"
4124
+ mode="indeterminate"
4125
+ diameter="17">
4126
+ </mat-spinner>
4127
+
4128
+ <ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
4129
+ </mat-form-field>
4130
+ </div>
4131
+ `, 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 });
4132
+ }
4133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputTimeComponent, decorators: [{
4134
+ type: Component,
4135
+ args: [{ selector: 'ptech-input-time', standalone: true, imports: [CoreMaterialModule, NgxMaterialTimepickerModule], template: `
4136
+ <div class="ptech-time-container">
4137
+ <mat-form-field class="ptech-form-field" [appearance]="appearance">
4138
+ <mat-label>
4139
+ {{ label }}
4140
+ <span *ngIf="required" aria-hidden="true">*</span>
4141
+ </mat-label>
4142
+
4143
+ <input
4144
+ matInput
4145
+ [ngxTimepicker]="picker"
4146
+ [format]="format"
4147
+ [disabled]="disabled || loading"
4148
+ [disableClick]="disableClick"
4149
+ [placeholder]="placeholder"
4150
+ [required]="required"
4151
+ readonly
4152
+ autocomplete="off"
4153
+ [maxLength]="seconds ? 8 : 5"
4154
+ [(ngModel)]="value"
4155
+ (blur)="onTouch()"
4156
+ />
4157
+
4158
+ <ngx-material-timepicker
4159
+ #picker
4160
+ [defaultTime]="value || defaultTime"
4161
+ (timeSet)="onTimeSet($event)">
4162
+ </ngx-material-timepicker>
4163
+
4164
+ <ngx-material-timepicker-toggle matSuffix [for]="picker"></ngx-material-timepicker-toggle>
4165
+
4166
+ <mat-spinner
4167
+ matPrefix
4168
+ *ngIf="loading"
4169
+ mode="indeterminate"
4170
+ diameter="17">
4171
+ </mat-spinner>
4172
+
4173
+ <ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
4174
+ </mat-form-field>
4175
+ </div>
4176
+ `, providers: [{
4177
+ provide: NG_VALUE_ACCESSOR,
4178
+ useExisting: forwardRef(() => InputTimeComponent),
4179
+ multi: true
4180
+ }], 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"] }]
4181
+ }], propDecorators: { label: [{
4182
+ type: Input
4183
+ }], placeholder: [{
4184
+ type: Input
4185
+ }], required: [{
4186
+ type: Input
4187
+ }], disabled: [{
4188
+ type: Input
4189
+ }], loading: [{
4190
+ type: Input
4191
+ }], appearance: [{
4192
+ type: Input
4193
+ }], format: [{
4194
+ type: Input
4195
+ }], seconds: [{
4196
+ type: Input
4197
+ }], disableClick: [{
4198
+ type: Input
4199
+ }], defaultTime: [{
4200
+ type: Input
4201
+ }], valueChange: [{
4202
+ type: Output
4203
+ }] } });
4204
+
4205
+ // projects/pumpkin-tech-ng/src/lib/components/input-currency/input-currency.component.ts
4206
+ class InputCurrencyComponent {
4207
+ // Visual
4208
+ label = '';
4209
+ placeholder = '';
4210
+ required = false;
4211
+ loading = false;
4212
+ disabled = false;
4213
+ appearance = 'outline';
4214
+ // Config por input
4215
+ options = {};
4216
+ valueChange = new EventEmitter();
4217
+ _val;
4218
+ // Defaults (BRL)
4219
+ defaultOptions = {
4220
+ align: 'right',
4221
+ allowNegative: false,
4222
+ allowZero: true,
4223
+ decimal: ',',
4224
+ precision: 2,
4225
+ prefix: 'R$ ',
4226
+ suffix: '',
4227
+ thousands: '.',
4228
+ nullable: true
4229
+ };
4230
+ get resolvedOptions() {
4231
+ return { ...this.defaultOptions, ...(this.options || {}) };
4232
+ }
4233
+ // CVA
4234
+ onChange = () => { };
4235
+ onTouch = () => { };
4236
+ get value() { return this._val; }
4237
+ set value(v) {
4238
+ if (v !== this._val) {
4239
+ this._val = v;
4240
+ this.onChange(v);
4241
+ this.valueChange.emit(v);
4242
+ }
4243
+ }
4244
+ writeValue(value) { this._val = value; }
4245
+ registerOnChange(fn) { this.onChange = fn; }
4246
+ registerOnTouched(fn) { this.onTouch = fn; }
4247
+ setDisabledState(isDisabled) { this.disabled = isDisabled; }
4248
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputCurrencyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4249
+ 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: [{
4250
+ provide: NG_VALUE_ACCESSOR,
4251
+ useExisting: forwardRef(() => InputCurrencyComponent),
4252
+ multi: true
4253
+ }], ngImport: i0, template: `
4254
+ <div class="ptech-currency-container">
4255
+ <mat-form-field class="ptech-form-field" [appearance]="appearance">
4256
+ <mat-label>
4257
+ {{ label }}
4258
+ <span *ngIf="required" aria-hidden="true">*</span>
4259
+ </mat-label>
4260
+
4261
+ <input
4262
+ matInput
4263
+ [placeholder]="placeholder"
4264
+ [required]="required"
4265
+ [disabled]="disabled || loading"
4266
+ [(ngModel)]="value"
4267
+ (blur)="onTouch()"
4268
+ autocomplete="off"
4269
+ type="text"
4270
+ currencyMask
4271
+ [options]="resolvedOptions" />
4272
+
4273
+ <mat-spinner
4274
+ matPrefix
4275
+ *ngIf="loading"
4276
+ mode="indeterminate"
4277
+ diameter="17">
4278
+ </mat-spinner>
4279
+
4280
+ <ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
4281
+ </mat-form-field>
4282
+ </div>
4283
+ `, 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 });
4284
+ }
4285
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InputCurrencyComponent, decorators: [{
4286
+ type: Component,
4287
+ args: [{ selector: 'ptech-input-currency', standalone: true, imports: [CoreMaterialModule, NgxCurrencyDirective], template: `
4288
+ <div class="ptech-currency-container">
4289
+ <mat-form-field class="ptech-form-field" [appearance]="appearance">
4290
+ <mat-label>
4291
+ {{ label }}
4292
+ <span *ngIf="required" aria-hidden="true">*</span>
4293
+ </mat-label>
4294
+
4295
+ <input
4296
+ matInput
4297
+ [placeholder]="placeholder"
4298
+ [required]="required"
4299
+ [disabled]="disabled || loading"
4300
+ [(ngModel)]="value"
4301
+ (blur)="onTouch()"
4302
+ autocomplete="off"
4303
+ type="text"
4304
+ currencyMask
4305
+ [options]="resolvedOptions" />
4306
+
4307
+ <mat-spinner
4308
+ matPrefix
4309
+ *ngIf="loading"
4310
+ mode="indeterminate"
4311
+ diameter="17">
4312
+ </mat-spinner>
4313
+
4314
+ <ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
4315
+ </mat-form-field>
4316
+ </div>
4317
+ `, providers: [{
4318
+ provide: NG_VALUE_ACCESSOR,
4319
+ useExisting: forwardRef(() => InputCurrencyComponent),
4320
+ multi: true
4321
+ }], 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"] }]
4322
+ }], propDecorators: { label: [{
4323
+ type: Input
4324
+ }], placeholder: [{
4325
+ type: Input
4326
+ }], required: [{
4327
+ type: Input
4328
+ }], loading: [{
4329
+ type: Input
4330
+ }], disabled: [{
4331
+ type: Input
4332
+ }], appearance: [{
4333
+ type: Input
4334
+ }], options: [{
4335
+ type: Input
4336
+ }], valueChange: [{
4337
+ type: Output
4338
+ }] } });
4339
+
2901
4340
  class SnackbarMessageService {
2902
4341
  snackBar;
2903
4342
  constructor(snackBar) {
@@ -2945,12 +4384,12 @@ class SnackbarMessageService {
2945
4384
  duration,
2946
4385
  });
2947
4386
  }
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 });
4387
+ 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
4388
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SnackbarMessageService });
2950
4389
  }
2951
4390
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SnackbarMessageService, decorators: [{
2952
4391
  type: Injectable
2953
- }], ctorParameters: () => [{ type: i1$4.MatSnackBar }] });
4392
+ }], ctorParameters: () => [{ type: i1$5.MatSnackBar }] });
2954
4393
 
2955
4394
  // src/lib/modules/pumpkin-tech.module.ts
2956
4395
  class PumpkinTechModule {
@@ -2959,7 +4398,11 @@ class PumpkinTechModule {
2959
4398
  CoreMaterialModule,
2960
4399
  // standalone components para reexportar
2961
4400
  InputComponent,
2962
- InputDatePickerRangeComponent,
4401
+ TextareaComponent,
4402
+ InputDateComponent,
4403
+ InputDateRangeComponent,
4404
+ InputTimeComponent,
4405
+ InputCurrencyComponent,
2963
4406
  InfoDetailComponent,
2964
4407
  InfoDetailDialogComponent,
2965
4408
  ActionDialogComponent,
@@ -2974,7 +4417,7 @@ class PumpkinTechModule {
2974
4417
  IconComponent,
2975
4418
  SelectEntityComponent,
2976
4419
  SelectEnumComponent,
2977
- RadioGroupComponent,
4420
+ RadioGroupEnumComponent,
2978
4421
  RadioGroupEntityComponent,
2979
4422
  SlideToggleComponent,
2980
4423
  QuantityItemsComponent,
@@ -2985,7 +4428,11 @@ class PumpkinTechModule {
2985
4428
  ProgressBarMultipleComponent], exports: [
2986
4429
  // reexporta tudo junto
2987
4430
  InputComponent,
2988
- InputDatePickerRangeComponent,
4431
+ TextareaComponent,
4432
+ InputDateComponent,
4433
+ InputDateRangeComponent,
4434
+ InputTimeComponent,
4435
+ InputCurrencyComponent,
2989
4436
  InfoDetailComponent,
2990
4437
  InfoDetailDialogComponent,
2991
4438
  ActionDialogComponent,
@@ -3000,7 +4447,7 @@ class PumpkinTechModule {
3000
4447
  IconComponent,
3001
4448
  SelectEntityComponent,
3002
4449
  SelectEnumComponent,
3003
- RadioGroupComponent,
4450
+ RadioGroupEnumComponent,
3004
4451
  RadioGroupEntityComponent,
3005
4452
  SlideToggleComponent,
3006
4453
  QuantityItemsComponent,
@@ -3019,7 +4466,11 @@ class PumpkinTechModule {
3019
4466
  CoreMaterialModule,
3020
4467
  // standalone components para reexportar
3021
4468
  InputComponent,
3022
- InputDatePickerRangeComponent,
4469
+ TextareaComponent,
4470
+ InputDateComponent,
4471
+ InputDateRangeComponent,
4472
+ InputTimeComponent,
4473
+ InputCurrencyComponent,
3023
4474
  InfoDetailComponent,
3024
4475
  InfoDetailDialogComponent,
3025
4476
  ActionDialogComponent,
@@ -3033,7 +4484,7 @@ class PumpkinTechModule {
3033
4484
  IconComponent,
3034
4485
  SelectEntityComponent,
3035
4486
  SelectEnumComponent,
3036
- RadioGroupComponent,
4487
+ RadioGroupEnumComponent,
3037
4488
  RadioGroupEntityComponent,
3038
4489
  SlideToggleComponent,
3039
4490
  QuantityItemsComponent,
@@ -3051,7 +4502,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
3051
4502
  CoreMaterialModule,
3052
4503
  // standalone components para reexportar
3053
4504
  InputComponent,
3054
- InputDatePickerRangeComponent,
4505
+ TextareaComponent,
4506
+ InputDateComponent,
4507
+ InputDateRangeComponent,
4508
+ InputTimeComponent,
4509
+ InputCurrencyComponent,
3055
4510
  InfoDetailComponent,
3056
4511
  InfoDetailDialogComponent,
3057
4512
  ActionDialogComponent,
@@ -3066,7 +4521,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
3066
4521
  IconComponent,
3067
4522
  SelectEntityComponent,
3068
4523
  SelectEnumComponent,
3069
- RadioGroupComponent,
4524
+ RadioGroupEnumComponent,
3070
4525
  RadioGroupEntityComponent,
3071
4526
  SlideToggleComponent,
3072
4527
  QuantityItemsComponent,
@@ -3079,7 +4534,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
3079
4534
  exports: [
3080
4535
  // reexporta tudo junto
3081
4536
  InputComponent,
3082
- InputDatePickerRangeComponent,
4537
+ TextareaComponent,
4538
+ InputDateComponent,
4539
+ InputDateRangeComponent,
4540
+ InputTimeComponent,
4541
+ InputCurrencyComponent,
3083
4542
  InfoDetailComponent,
3084
4543
  InfoDetailDialogComponent,
3085
4544
  ActionDialogComponent,
@@ -3094,7 +4553,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
3094
4553
  IconComponent,
3095
4554
  SelectEntityComponent,
3096
4555
  SelectEnumComponent,
3097
- RadioGroupComponent,
4556
+ RadioGroupEnumComponent,
3098
4557
  RadioGroupEntityComponent,
3099
4558
  SlideToggleComponent,
3100
4559
  QuantityItemsComponent,
@@ -3521,7 +4980,9 @@ class DirectivesModule {
3521
4980
  PhoneMaskSpainDirective,
3522
4981
  SpaceDropDirective,
3523
4982
  DateMaskDirective,
3524
- DynamicTabDirective], exports: [UpperCaseDirective,
4983
+ DynamicTabDirective,
4984
+ PtechGridDirective,
4985
+ PtechColDirective], exports: [UpperCaseDirective,
3525
4986
  LowerCaseDirective,
3526
4987
  RedDirective,
3527
4988
  ClickCatcherDirective,
@@ -3530,7 +4991,9 @@ class DirectivesModule {
3530
4991
  PhoneMaskSpainDirective,
3531
4992
  SpaceDropDirective,
3532
4993
  DateMaskDirective,
3533
- DynamicTabDirective] });
4994
+ DynamicTabDirective,
4995
+ PtechGridDirective,
4996
+ PtechColDirective] });
3534
4997
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DirectivesModule });
3535
4998
  }
3536
4999
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DirectivesModule, decorators: [{
@@ -3546,7 +5009,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
3546
5009
  PhoneMaskSpainDirective,
3547
5010
  SpaceDropDirective,
3548
5011
  DateMaskDirective,
3549
- DynamicTabDirective
5012
+ DynamicTabDirective,
5013
+ PtechGridDirective,
5014
+ PtechColDirective
3550
5015
  ],
3551
5016
  exports: [
3552
5017
  UpperCaseDirective,
@@ -3558,7 +5023,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
3558
5023
  PhoneMaskSpainDirective,
3559
5024
  SpaceDropDirective,
3560
5025
  DateMaskDirective,
3561
- DynamicTabDirective
5026
+ DynamicTabDirective,
5027
+ PtechGridDirective,
5028
+ PtechColDirective
3562
5029
  ]
3563
5030
  }]
3564
5031
  }] });
@@ -3988,7 +5455,7 @@ class DialogService {
3988
5455
  this.openResultDialog(resultData);
3989
5456
  }), map(() => void 0));
3990
5457
  }
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 });
5458
+ 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
5459
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DialogService, providedIn: 'root' });
3993
5460
  }
3994
5461
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DialogService, decorators: [{
@@ -3996,7 +5463,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
3996
5463
  args: [{
3997
5464
  providedIn: 'root',
3998
5465
  }]
3999
- }], ctorParameters: () => [{ type: i1$3.MatDialog }] });
5466
+ }], ctorParameters: () => [{ type: i1$4.MatDialog }] });
4000
5467
 
4001
5468
  class ModuleChangeService {
4002
5469
  moduleChangedSource = new BehaviorSubject('');
@@ -4461,11 +5928,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
4461
5928
  }]
4462
5929
  }] });
4463
5930
 
4464
- // componentes
5931
+ // layout
4465
5932
 
4466
5933
  /**
4467
5934
  * Generated bundle index. Do not edit.
4468
5935
  */
4469
5936
 
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 };
5937
+ 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, 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
5938
  //# sourceMappingURL=pumpkin-tech-pumpkin-tech-ng.mjs.map