@po-ui/ng-components 21.8.0 → 21.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/fesm2022/po-ui-ng-components.mjs +4883 -363
  2. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  3. package/lib/components/index.d.ts +1 -0
  4. package/lib/components/po-avatar/po-avatar.component.d.ts +1 -0
  5. package/lib/components/po-badge/po-badge-base.component.d.ts +15 -0
  6. package/lib/components/po-button/po-button-base.component.d.ts +10 -0
  7. package/lib/components/po-calendar/constants/po-calendar-range-presets.constant.d.ts +2 -0
  8. package/lib/components/po-calendar/index.d.ts +2 -0
  9. package/lib/components/po-calendar/interfaces/po-calendar-range-preset.interface.d.ts +16 -0
  10. package/lib/components/po-calendar/po-calendar-base.component.d.ts +54 -0
  11. package/lib/components/po-calendar/po-calendar-footer/po-calendar-footer.component.d.ts +16 -0
  12. package/lib/components/po-calendar/po-calendar-preset-list/po-calendar-preset-list.component.d.ts +28 -0
  13. package/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.d.ts +9 -3
  14. package/lib/components/po-calendar/po-calendar.component.d.ts +28 -3
  15. package/lib/components/po-calendar/services/po-calendar.lang.service.d.ts +2 -0
  16. package/lib/components/po-container/po-container.component.d.ts +1 -0
  17. package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts +58 -7
  18. package/lib/components/po-field/index.d.ts +3 -0
  19. package/lib/components/po-field/po-combo/po-combo.component.d.ts +1 -0
  20. package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +54 -0
  21. package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +18 -0
  22. package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +1 -0
  23. package/lib/components/po-field/po-select/po-select.component.d.ts +1 -0
  24. package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +2 -1
  25. package/lib/components/po-field/po-timepicker/enums/po-timepicker-iso-format.enum.d.ts +13 -0
  26. package/lib/components/po-field/po-timepicker/index.d.ts +3 -0
  27. package/lib/components/po-field/po-timepicker/po-timepicker-base.component.d.ts +374 -0
  28. package/lib/components/po-field/po-timepicker/po-timepicker.component.d.ts +206 -0
  29. package/lib/components/po-field/po-timepicker/po-timepicker.literals.d.ts +46 -0
  30. package/lib/components/po-field/po-timepicker/po-timepicker.module.d.ts +7 -0
  31. package/lib/components/po-loading/po-loading-overlay/po-loading-overlay.component.d.ts +2 -0
  32. package/lib/components/po-menu/po-menu.component.d.ts +2 -0
  33. package/lib/components/po-page/po-page-default/po-page-default.component.d.ts +1 -0
  34. package/lib/components/po-popup/po-popup.component.d.ts +2 -0
  35. package/lib/components/po-progress/po-progress.component.d.ts +1 -0
  36. package/lib/components/po-search/po-search.component.d.ts +3 -1
  37. package/lib/components/po-stepper/po-stepper.component.d.ts +1 -0
  38. package/lib/components/po-table/interfaces/po-table-column.interface.d.ts +14 -4
  39. package/lib/components/po-table/po-table-base.component.d.ts +22 -0
  40. package/lib/components/po-table/po-table-column-icon/po-table-column-icon.interface.d.ts +10 -0
  41. package/lib/components/po-table/po-table-column-label/po-table-column-label.interface.d.ts +21 -0
  42. package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +1 -0
  43. package/lib/components/po-table/po-table-subtitle-footer/po-table-subtitle-column.interface.d.ts +10 -0
  44. package/lib/components/po-table/po-table.component.d.ts +1 -0
  45. package/lib/components/po-tag/po-tag-base.component.d.ts +20 -1
  46. package/lib/components/po-tag/po-tag.component.d.ts +7 -0
  47. package/lib/components/po-timer/enums/po-timer-format.enum.d.ts +13 -0
  48. package/lib/components/po-timer/index.d.ts +4 -0
  49. package/lib/components/po-timer/po-timer-base.component.d.ts +255 -0
  50. package/lib/components/po-timer/po-timer-scroll.helper.d.ts +40 -0
  51. package/lib/components/po-timer/po-timer.component.d.ts +208 -0
  52. package/lib/components/po-timer/po-timer.literals.d.ts +22 -0
  53. package/lib/components/po-timer/po-timer.module.d.ts +6 -0
  54. package/lib/components/po-widget/po-widget.component.d.ts +2 -0
  55. package/lib/enums/po-caption-tag-color.enum.d.ts +43 -0
  56. package/package.json +4 -4
  57. package/po-ui-ng-components-21.10.0.tgz +0 -0
  58. package/schematics/ng-add/index.js +1 -1
  59. package/schematics/ng-update/v14/index.js +1 -1
  60. package/schematics/ng-update/v15/index.js +1 -1
  61. package/schematics/ng-update/v16/index.js +1 -1
  62. package/schematics/ng-update/v17/index.js +1 -1
  63. package/schematics/ng-update/v18/index.js +2 -2
  64. package/schematics/ng-update/v19/index.js +2 -2
  65. package/schematics/ng-update/v2/index.js +1 -1
  66. package/schematics/ng-update/v20/index.js +2 -2
  67. package/schematics/ng-update/v21/index.js +1 -1
  68. package/schematics/ng-update/v3/index.js +1 -1
  69. package/schematics/ng-update/v4/index.js +1 -1
  70. package/schematics/ng-update/v5/index.js +1 -1
  71. package/schematics/ng-update/v6/index.js +1 -1
  72. package/types/po-ui-ng-components.d.ts +1533 -29
  73. package/po-ui-ng-components-21.8.0.tgz +0 -0
@@ -12,6 +12,7 @@ import { PoProgressBaseComponent } from './po-progress-base.component';
12
12
  * <example name="po-progress-labs" title="PO Progress Labs">
13
13
  * <file name="sample-po-progress-labs/sample-po-progress-labs.component.html"> </file>
14
14
  * <file name="sample-po-progress-labs/sample-po-progress-labs.component.ts"> </file>
15
+ * <file name="sample-po-progress-labs/sample-po-progress-labs.component.css"> </file>
15
16
  * </example>
16
17
  *
17
18
  * <example name="po-progress-publication" title="PO Progress - Publication">
@@ -19,12 +19,13 @@ import { PoSearchBaseComponent } from './po-search-base.component';
19
19
  * <example name="po-search-labs" title="PO Search Labs">
20
20
  * <file name="sample-po-search-labs/sample-po-search-labs.component.html"> </file>
21
21
  * <file name="sample-po-search-labs/sample-po-search-labs.component.ts"> </file>
22
- * <file name="sample-po-search-labs/sample-po-search-labs.service.ts"> </file>
22
+ * <file name="sample-po-search-labs/sample-po-search-labs.component.css"> </file>
23
23
  * </example>
24
24
  *
25
25
  * <example name="po-search-find-people" title="PO Search Find People">
26
26
  * <file name="sample-po-search-find-people/sample-po-search-find-people.component.html"> </file>
27
27
  * <file name="sample-po-search-find-people/sample-po-search-find-people.component.ts"> </file>
28
+ * <file name="sample-po-search-find-people/sample-po-search-find-people.component.css"> </file>
28
29
  * <file name="sample-po-search-find-people/sample-po-search-find-people.service.ts"> </file>
29
30
  * </example>
30
31
  *
@@ -42,6 +43,7 @@ import { PoSearchBaseComponent } from './po-search-base.component';
42
43
  * <example name="po-search-execute" title="PO Search Form Fields with Execute">
43
44
  * <file name="sample-po-search-execute/sample-po-search-execute.component.html"> </file>
44
45
  * <file name="sample-po-search-execute/sample-po-search-execute.component.ts"> </file>
46
+ * <file name="sample-po-search-execute/sample-po-search-execute.component.css"> </file>
45
47
  * </example>
46
48
  *
47
49
  * <example name="po-search-fields-locate" title="PO Search Form Fields with Locate">
@@ -20,6 +20,7 @@ import { PoStepperItem } from './po-stepper-item.interface';
20
20
  * <example name="po-stepper-sales" title="PO Stepper - Sales">
21
21
  * <file name="sample-po-stepper-sales/sample-po-stepper-sales.component.html"> </file>
22
22
  * <file name="sample-po-stepper-sales/sample-po-stepper-sales.component.ts"> </file>
23
+ * <file name="sample-po-stepper-sales/sample-po-stepper-sales.component.css"> </file>
23
24
  * </example>
24
25
  *
25
26
  * <example name="po-stepper-active" title="PO Stepper - Active">
@@ -57,6 +57,16 @@ export interface PoTableColumn {
57
57
  * - <span class="dot po-color-11"></span> `color-11`
58
58
  * - <span class="dot po-color-12"></span> `color-12`
59
59
  *
60
+ * > Também é possível utilizar as 35 cores da paleta **Caption Tag Colors**:
61
+ *
62
+ * - <span class="dot po-caption-tag-01"></span> `caption-tag-01` <span class="dot po-caption-tag-02"></span> `caption-tag-02` <span class="dot po-caption-tag-03"></span> `caption-tag-03` <span class="dot po-caption-tag-04"></span> `caption-tag-04` <span class="dot po-caption-tag-05"></span> `caption-tag-05`
63
+ * - <span class="dot po-caption-tag-06"></span> `caption-tag-06` <span class="dot po-caption-tag-07"></span> `caption-tag-07` <span class="dot po-caption-tag-08"></span> `caption-tag-08` <span class="dot po-caption-tag-09"></span> `caption-tag-09` <span class="dot po-caption-tag-10"></span> `caption-tag-10`
64
+ * - <span class="dot po-caption-tag-11"></span> `caption-tag-11` <span class="dot po-caption-tag-12"></span> `caption-tag-12` <span class="dot po-caption-tag-13"></span> `caption-tag-13` <span class="dot po-caption-tag-14"></span> `caption-tag-14` <span class="dot po-caption-tag-15"></span> `caption-tag-15`
65
+ * - <span class="dot po-caption-tag-16"></span> `caption-tag-16` <span class="dot po-caption-tag-17"></span> `caption-tag-17` <span class="dot po-caption-tag-18"></span> `caption-tag-18` <span class="dot po-caption-tag-19"></span> `caption-tag-19` <span class="dot po-caption-tag-20"></span> `caption-tag-20`
66
+ * - <span class="dot po-caption-tag-21"></span> `caption-tag-21` <span class="dot po-caption-tag-22"></span> `caption-tag-22` <span class="dot po-caption-tag-23"></span> `caption-tag-23` <span class="dot po-caption-tag-24"></span> `caption-tag-24` <span class="dot po-caption-tag-25"></span> `caption-tag-25`
67
+ * - <span class="dot po-caption-tag-26"></span> `caption-tag-26` <span class="dot po-caption-tag-27"></span> `caption-tag-27` <span class="dot po-caption-tag-28"></span> `caption-tag-28` <span class="dot po-caption-tag-29"></span> `caption-tag-29` <span class="dot po-caption-tag-30"></span> `caption-tag-30`
68
+ * - <span class="dot po-caption-tag-31"></span> `caption-tag-31` <span class="dot po-caption-tag-32"></span> `caption-tag-32` <span class="dot po-caption-tag-33"></span> `caption-tag-33` <span class="dot po-caption-tag-34"></span> `caption-tag-34` <span class="dot po-caption-tag-35"></span> `caption-tag-35`
69
+ *
60
70
  * > Existe a possibilidade de informar uma função que retorne um dos valores aceitos, serão passados
61
71
  * por parâmetro a linha e a coluna atual, por exemplo:
62
72
  *
@@ -136,8 +146,8 @@ export interface PoTableColumn {
136
146
  *
137
147
  * ```
138
148
  * { property: 'flightStatus', label: 'Status', type: 'label', width:'100px', labels: [
139
- * { value: 'confirmed', color: 'color-11', label: 'Confirmado', tooltip: 'Flight Status' },
140
- * { value: 'delayed', color: 'color-08', label: 'Atrasado', tooltip: 'Flight Status' }
149
+ * { value: 'confirmed', color: 'caption-tag-13', label: 'Confirmado', tooltip: 'Flight Status' },
150
+ * { value: 'delayed', color: 'caption-tag-08', label: 'Atrasado', tooltip: 'Flight Status' }
141
151
  * }
142
152
  * ```
143
153
  *
@@ -173,8 +183,8 @@ export interface PoTableColumn {
173
183
  *
174
184
  * ```
175
185
  * { property: 'flightStatus', label: 'Status', color: 'subtitle', width:'100px', subtitles: [
176
- * { value: 'confirmed', color: 'color-11', label: 'Confirmado', content: '1' },
177
- * { value: 'delayed', color: 'color-08', label: 'Atrasado', content: '2' }
186
+ * { value: 'confirmed', color: 'caption-tag-13', label: 'Confirmado', content: '1' },
187
+ * { value: 'delayed', color: 'caption-tag-08', label: 'Atrasado', content: '2' }
178
188
  * }
179
189
  * ```
180
190
  * Nesse exemplo a coluna escolhida para legenda é 'flightStatus', se o valor dessa coluna for 'confirmed', o texto da legenda será
@@ -343,6 +343,28 @@ export declare abstract class PoTableBaseComponent implements OnChanges, OnDestr
343
343
  * Por exemplo: ["idCard", "name", "hireStatus", "age"].
344
344
  */
345
345
  changeVisibleColumns: EventEmitter<string[]>;
346
+ /**
347
+ * @optional
348
+ *
349
+ * @description
350
+ * Evento disparado ao alterar o estado de fixação de uma coluna no gerenciador de colunas.
351
+ *
352
+ * O componente envia como parâmetro um array de string com as propriedades das colunas fixas.
353
+ * Por exemplo: ["name", "age"].
354
+ *
355
+ * > Incompatível com `p-hide-action-fixed-columns`. Quando esta propriedade estiver ativa, o evento não será disparado.
356
+ *
357
+ * @example
358
+ *
359
+ * ```html
360
+ * <po-table
361
+ * [p-columns]="columns"
362
+ * [p-items]="items"
363
+ * (p-change-fixed-columns)="onFixedColumnsChange($event)">
364
+ * </po-table>
365
+ * ```
366
+ */
367
+ changeFixedColumns: import("@angular/core").OutputEmitterRef<string[]>;
346
368
  /**
347
369
  * @optional
348
370
  *
@@ -32,6 +32,16 @@ export interface PoTableColumnIcon {
32
32
  * - <span class="dot po-color-11"></span> `color-11`
33
33
  * - <span class="dot po-color-12"></span> `color-12`
34
34
  *
35
+ * > Também é possível utilizar as 35 cores da paleta **Caption Tag Colors**:
36
+ *
37
+ * - <span class="dot po-caption-tag-01"></span> `caption-tag-01` <span class="dot po-caption-tag-02"></span> `caption-tag-02` <span class="dot po-caption-tag-03"></span> `caption-tag-03` <span class="dot po-caption-tag-04"></span> `caption-tag-04` <span class="dot po-caption-tag-05"></span> `caption-tag-05`
38
+ * - <span class="dot po-caption-tag-06"></span> `caption-tag-06` <span class="dot po-caption-tag-07"></span> `caption-tag-07` <span class="dot po-caption-tag-08"></span> `caption-tag-08` <span class="dot po-caption-tag-09"></span> `caption-tag-09` <span class="dot po-caption-tag-10"></span> `caption-tag-10`
39
+ * - <span class="dot po-caption-tag-11"></span> `caption-tag-11` <span class="dot po-caption-tag-12"></span> `caption-tag-12` <span class="dot po-caption-tag-13"></span> `caption-tag-13` <span class="dot po-caption-tag-14"></span> `caption-tag-14` <span class="dot po-caption-tag-15"></span> `caption-tag-15`
40
+ * - <span class="dot po-caption-tag-16"></span> `caption-tag-16` <span class="dot po-caption-tag-17"></span> `caption-tag-17` <span class="dot po-caption-tag-18"></span> `caption-tag-18` <span class="dot po-caption-tag-19"></span> `caption-tag-19` <span class="dot po-caption-tag-20"></span> `caption-tag-20`
41
+ * - <span class="dot po-caption-tag-21"></span> `caption-tag-21` <span class="dot po-caption-tag-22"></span> `caption-tag-22` <span class="dot po-caption-tag-23"></span> `caption-tag-23` <span class="dot po-caption-tag-24"></span> `caption-tag-24` <span class="dot po-caption-tag-25"></span> `caption-tag-25`
42
+ * - <span class="dot po-caption-tag-26"></span> `caption-tag-26` <span class="dot po-caption-tag-27"></span> `caption-tag-27` <span class="dot po-caption-tag-28"></span> `caption-tag-28` <span class="dot po-caption-tag-29"></span> `caption-tag-29` <span class="dot po-caption-tag-30"></span> `caption-tag-30`
43
+ * - <span class="dot po-caption-tag-31"></span> `caption-tag-31` <span class="dot po-caption-tag-32"></span> `caption-tag-32` <span class="dot po-caption-tag-33"></span> `caption-tag-33` <span class="dot po-caption-tag-34"></span> `caption-tag-34` <span class="dot po-caption-tag-35"></span> `caption-tag-35`
44
+ *
35
45
  */
36
46
  color?: string | Function;
37
47
  /** Função que deve retornar um booleano para habilitar ou desabilitar o ícone e sua ação. */
@@ -28,6 +28,24 @@ export interface PoTableColumnLabel {
28
28
  * - <span class="dot po-color-10"></span> `color-10`
29
29
  * - <span class="dot po-color-11"></span> `color-11`
30
30
  * - <span class="dot po-color-12"></span> `color-12`
31
+ *
32
+ * > Também é possível utilizar as 35 cores da paleta **Caption Tag Colors**:
33
+ *
34
+ * - <span class="dot po-caption-tag-01"></span> `caption-tag-01` <span class="dot po-caption-tag-02"></span> `caption-tag-02` <span class="dot po-caption-tag-03"></span> `caption-tag-03` <span class="dot po-caption-tag-04"></span> `caption-tag-04` <span class="dot po-caption-tag-05"></span> `caption-tag-05`
35
+ * - <span class="dot po-caption-tag-06"></span> `caption-tag-06` <span class="dot po-caption-tag-07"></span> `caption-tag-07` <span class="dot po-caption-tag-08"></span> `caption-tag-08` <span class="dot po-caption-tag-09"></span> `caption-tag-09` <span class="dot po-caption-tag-10"></span> `caption-tag-10`
36
+ * - <span class="dot po-caption-tag-11"></span> `caption-tag-11` <span class="dot po-caption-tag-12"></span> `caption-tag-12` <span class="dot po-caption-tag-13"></span> `caption-tag-13` <span class="dot po-caption-tag-14"></span> `caption-tag-14` <span class="dot po-caption-tag-15"></span> `caption-tag-15`
37
+ * - <span class="dot po-caption-tag-16"></span> `caption-tag-16` <span class="dot po-caption-tag-17"></span> `caption-tag-17` <span class="dot po-caption-tag-18"></span> `caption-tag-18` <span class="dot po-caption-tag-19"></span> `caption-tag-19` <span class="dot po-caption-tag-20"></span> `caption-tag-20`
38
+ * - <span class="dot po-caption-tag-21"></span> `caption-tag-21` <span class="dot po-caption-tag-22"></span> `caption-tag-22` <span class="dot po-caption-tag-23"></span> `caption-tag-23` <span class="dot po-caption-tag-24"></span> `caption-tag-24` <span class="dot po-caption-tag-25"></span> `caption-tag-25`
39
+ * - <span class="dot po-caption-tag-26"></span> `caption-tag-26` <span class="dot po-caption-tag-27"></span> `caption-tag-27` <span class="dot po-caption-tag-28"></span> `caption-tag-28` <span class="dot po-caption-tag-29"></span> `caption-tag-29` <span class="dot po-caption-tag-30"></span> `caption-tag-30`
40
+ * - <span class="dot po-caption-tag-31"></span> `caption-tag-31` <span class="dot po-caption-tag-32"></span> `caption-tag-32` <span class="dot po-caption-tag-33"></span> `caption-tag-33` <span class="dot po-caption-tag-34"></span> `caption-tag-34` <span class="dot po-caption-tag-35"></span> `caption-tag-35`
41
+ *
42
+ * Exemplo de uso:
43
+ * ```
44
+ * { property: 'status', type: 'label', labels: [
45
+ * { value: 'ativo', color: 'caption-tag-13', label: 'Ativo' },
46
+ * { value: 'pendente', color: 'caption-tag-08', label: 'Pendente' }
47
+ * ]}
48
+ * ```
31
49
  */
32
50
  color?: string;
33
51
  /**
@@ -57,6 +75,9 @@ export interface PoTableColumnLabel {
57
75
  * - Para uma melhor acessibilidade no uso do componente é recomendável utilizar cores com um melhor contraste em relação ao background.
58
76
  *
59
77
  * > **Atenção:** A propriedade `p-type` sobrepõe esta definição.
78
+ *
79
+ * > **Atenção:** As cores da paleta **Caption Tag Colors** (`caption-tag-01` a `caption-tag-35`) não são aceitas nesta propriedade,
80
+ * pois possuem cor de texto fixa definida via token CSS.
60
81
  */
61
82
  textColor?: string;
62
83
  /**
@@ -32,6 +32,7 @@ export declare class PoTableColumnManagerComponent implements OnChanges, OnDestr
32
32
  lastVisibleColumnsSelected: Array<PoTableColumn>;
33
33
  visibleColumnsChange: EventEmitter<PoTableColumn[]>;
34
34
  changeVisibleColumns: EventEmitter<string[]>;
35
+ changeFixedColumns: import("@angular/core").OutputEmitterRef<string[]>;
35
36
  initialColumns: EventEmitter<string[]>;
36
37
  hideActionFixedColumns: boolean;
37
38
  literals: any;
@@ -31,6 +31,16 @@ export interface PoTableSubtitleColumn {
31
31
  * - <span class="dot po-color-11"></span> `color-11`
32
32
  * - <span class="dot po-color-12"></span> `color-12`
33
33
  *
34
+ * > Também é possível utilizar as 35 cores da paleta **Caption Tag Colors**:
35
+ *
36
+ * - <span class="dot po-caption-tag-01"></span> `caption-tag-01` <span class="dot po-caption-tag-02"></span> `caption-tag-02` <span class="dot po-caption-tag-03"></span> `caption-tag-03` <span class="dot po-caption-tag-04"></span> `caption-tag-04` <span class="dot po-caption-tag-05"></span> `caption-tag-05`
37
+ * - <span class="dot po-caption-tag-06"></span> `caption-tag-06` <span class="dot po-caption-tag-07"></span> `caption-tag-07` <span class="dot po-caption-tag-08"></span> `caption-tag-08` <span class="dot po-caption-tag-09"></span> `caption-tag-09` <span class="dot po-caption-tag-10"></span> `caption-tag-10`
38
+ * - <span class="dot po-caption-tag-11"></span> `caption-tag-11` <span class="dot po-caption-tag-12"></span> `caption-tag-12` <span class="dot po-caption-tag-13"></span> `caption-tag-13` <span class="dot po-caption-tag-14"></span> `caption-tag-14` <span class="dot po-caption-tag-15"></span> `caption-tag-15`
39
+ * - <span class="dot po-caption-tag-16"></span> `caption-tag-16` <span class="dot po-caption-tag-17"></span> `caption-tag-17` <span class="dot po-caption-tag-18"></span> `caption-tag-18` <span class="dot po-caption-tag-19"></span> `caption-tag-19` <span class="dot po-caption-tag-20"></span> `caption-tag-20`
40
+ * - <span class="dot po-caption-tag-21"></span> `caption-tag-21` <span class="dot po-caption-tag-22"></span> `caption-tag-22` <span class="dot po-caption-tag-23"></span> `caption-tag-23` <span class="dot po-caption-tag-24"></span> `caption-tag-24` <span class="dot po-caption-tag-25"></span> `caption-tag-25`
41
+ * - <span class="dot po-caption-tag-26"></span> `caption-tag-26` <span class="dot po-caption-tag-27"></span> `caption-tag-27` <span class="dot po-caption-tag-28"></span> `caption-tag-28` <span class="dot po-caption-tag-29"></span> `caption-tag-29` <span class="dot po-caption-tag-30"></span> `caption-tag-30`
42
+ * - <span class="dot po-caption-tag-31"></span> `caption-tag-31` <span class="dot po-caption-tag-32"></span> `caption-tag-32` <span class="dot po-caption-tag-33"></span> `caption-tag-33` <span class="dot po-caption-tag-34"></span> `caption-tag-34` <span class="dot po-caption-tag-35"></span> `caption-tag-35`
43
+ *
34
44
  * @default `color-01`
35
45
  */
36
46
  color?: string;
@@ -240,6 +240,7 @@ export declare class PoTableComponent extends PoTableBaseComponent implements Af
240
240
  isShowRowTemplate(row: any, index: number): boolean;
241
241
  onClickLink(event: any, row: any, column: PoTableColumn): void;
242
242
  onChangeVisibleColumns(columns: Array<string>): void;
243
+ onChangeFixedColumns(columns: Array<string>): void;
243
244
  onColumnRestoreManager(value: Array<string>): void;
244
245
  onVisibleColumnsChange(columns: Array<PoTableColumn>): void;
245
246
  tooltipMouseEnter(event: any, column?: PoTableColumn, row?: any): any;
@@ -157,8 +157,24 @@ export declare class PoTagBaseComponent {
157
157
  * - <span class="dot po-color-11"></span> `color-11`
158
158
  * - <span class="dot po-color-12"></span> `color-12`
159
159
  *
160
+ * > Também é possível utilizar as 35 cores da paleta **Caption Tag Colors**:
161
+ *
162
+ * - <span class="dot po-caption-tag-01"></span> `caption-tag-01` <span class="dot po-caption-tag-02"></span> `caption-tag-02` <span class="dot po-caption-tag-03"></span> `caption-tag-03` <span class="dot po-caption-tag-04"></span> `caption-tag-04` <span class="dot po-caption-tag-05"></span> `caption-tag-05`
163
+ * - <span class="dot po-caption-tag-06"></span> `caption-tag-06` <span class="dot po-caption-tag-07"></span> `caption-tag-07` <span class="dot po-caption-tag-08"></span> `caption-tag-08` <span class="dot po-caption-tag-09"></span> `caption-tag-09` <span class="dot po-caption-tag-10"></span> `caption-tag-10`
164
+ * - <span class="dot po-caption-tag-11"></span> `caption-tag-11` <span class="dot po-caption-tag-12"></span> `caption-tag-12` <span class="dot po-caption-tag-13"></span> `caption-tag-13` <span class="dot po-caption-tag-14"></span> `caption-tag-14` <span class="dot po-caption-tag-15"></span> `caption-tag-15`
165
+ * - <span class="dot po-caption-tag-16"></span> `caption-tag-16` <span class="dot po-caption-tag-17"></span> `caption-tag-17` <span class="dot po-caption-tag-18"></span> `caption-tag-18` <span class="dot po-caption-tag-19"></span> `caption-tag-19` <span class="dot po-caption-tag-20"></span> `caption-tag-20`
166
+ * - <span class="dot po-caption-tag-21"></span> `caption-tag-21` <span class="dot po-caption-tag-22"></span> `caption-tag-22` <span class="dot po-caption-tag-23"></span> `caption-tag-23` <span class="dot po-caption-tag-24"></span> `caption-tag-24` <span class="dot po-caption-tag-25"></span> `caption-tag-25`
167
+ * - <span class="dot po-caption-tag-26"></span> `caption-tag-26` <span class="dot po-caption-tag-27"></span> `caption-tag-27` <span class="dot po-caption-tag-28"></span> `caption-tag-28` <span class="dot po-caption-tag-29"></span> `caption-tag-29` <span class="dot po-caption-tag-30"></span> `caption-tag-30`
168
+ * - <span class="dot po-caption-tag-31"></span> `caption-tag-31` <span class="dot po-caption-tag-32"></span> `caption-tag-32` <span class="dot po-caption-tag-33"></span> `caption-tag-33` <span class="dot po-caption-tag-34"></span> `caption-tag-34` <span class="dot po-caption-tag-35"></span> `caption-tag-35`
169
+ *
170
+ * Exemplo de uso:
171
+ * ```
172
+ * <po-tag p-color="caption-tag-15" p-value="Status"></po-tag>
173
+ * ```
174
+ *
160
175
  * - Para uma melhor acessibilidade no uso do componente é recomendável utilizar cores com um melhor contraste em relação ao background;
161
- * - O componente ajusta automaticamente a cor do texto para garantir legibilidade, escolhendo dinamicamente entre texto claro ou escuro conforme o contraste necessário.
176
+ * - Para as cores legacy (`color-01` a `color-12`) e cores customizadas, o componente ajusta automaticamente a cor do texto para garantir legibilidade.
177
+ * - Para as cores **Caption Tag Colors** (`caption-tag-01` a `caption-tag-35`), a cor do texto é fixa e definida via token CSS, não sendo possível alterá-la via `p-text-color`.
162
178
  *
163
179
  * > **Atenção:** A propriedade `p-type` sobrepõe esta definição.
164
180
  */
@@ -191,6 +207,9 @@ export declare class PoTagBaseComponent {
191
207
  * - Para uma melhor acessibilidade no uso do componente é recomendável utilizar cores com um melhor contraste em relação ao background.
192
208
  *
193
209
  * > **Atenção:** A propriedade `p-type` sobrepõe esta definição.
210
+ *
211
+ * > **Atenção:** As cores da paleta **Caption Tag Colors** (`caption-tag-01` a `caption-tag-35`) não são aceitas nesta propriedade,
212
+ * pois possuem cor de texto fixa definida via token CSS.
194
213
  */
195
214
  set textColor(value: string);
196
215
  get textColor(): string;
@@ -14,12 +14,18 @@ import { PoTagBaseComponent } from './po-tag-base.component';
14
14
  * <example name="po-tag-labs" title="PO Tag Labs">
15
15
  * <file name="sample-po-tag-labs/sample-po-tag-labs.component.html"> </file>
16
16
  * <file name="sample-po-tag-labs/sample-po-tag-labs.component.ts"> </file>
17
+ * <file name="sample-po-tag-labs/sample-po-tag-labs.component.css"> </file>
17
18
  * </example>
18
19
  *
19
20
  * <example name="po-tag-bank-account" title="PO Tag - Bank Account">
20
21
  * <file name="sample-po-tag-bank-account/sample-po-tag-bank-account.component.html"> </file>
21
22
  * <file name="sample-po-tag-bank-account/sample-po-tag-bank-account.component.ts"> </file>
22
23
  * </example>
24
+ *
25
+ * <example name="po-tag-caption-tag-colors" title="PO Tag - Caption Tag Colors">
26
+ * <file name="sample-po-tag-caption-tag-colors/sample-po-tag-caption-tag-colors.component.html"> </file>
27
+ * <file name="sample-po-tag-caption-tag-colors/sample-po-tag-caption-tag-colors.component.ts"> </file>
28
+ * </example>
23
29
  */
24
30
  export declare class PoTagComponent extends PoTagBaseComponent implements OnInit {
25
31
  private readonly el;
@@ -30,6 +36,7 @@ export declare class PoTagComponent extends PoTagBaseComponent implements OnInit
30
36
  constructor();
31
37
  ngOnInit(): void;
32
38
  get iconFromType(): PoTagIcon;
39
+ get isCaptionTag(): boolean;
33
40
  get tagColor(): string;
34
41
  get tagOrientation(): boolean;
35
42
  onClick(event?: string): void;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @usedBy PoTimerComponent
3
+ *
4
+ * @description
5
+ *
6
+ * Enum para definição do formato de exibição do timer.
7
+ */
8
+ export declare enum PoTimerFormat {
9
+ /** Formato de 24 horas (0-23). */
10
+ Format24 = "24",
11
+ /** Formato de 12 horas (1-12) com indicador AM/PM. */
12
+ Format12 = "12"
13
+ }
@@ -0,0 +1,4 @@
1
+ export * from './po-timer.component';
2
+ export * from './po-timer-base.component';
3
+ export * from './po-timer.module';
4
+ export * from './enums/po-timer-format.enum';
@@ -0,0 +1,255 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { PoLanguageService } from '../../services/po-language/po-language.service';
4
+ import { PoTimerFormat } from './enums/po-timer-format.enum';
5
+ /**
6
+ * @docsPrivate
7
+ *
8
+ * @description
9
+ *
10
+ * O `po-timer` é um componente de seleção de horário que apresenta colunas de horas, minutos e, opcionalmente, segundos
11
+ * para que a pessoa usuária escolha um horário de forma intuitiva.
12
+ *
13
+ * O componente é recomendado para cenários onde é necessário selecionar um horário específico, podendo ser utilizado
14
+ * de forma independente ou integrado ao `po-timepicker` como painel flutuante de seleção.
15
+ *
16
+ * O valor de saída segue o formato ISO 8601 para horários (`HH:mm` ou `HH:mm:ss`).
17
+ *
18
+ * **Importante:**
19
+ * - Horários fora do intervalo (`p-min-time` / `p-max-time`) aparecem desabilitados sem alterar o *model*.
20
+ *
21
+ * #### Boas práticas
22
+ *
23
+ * - Utilize o formato de 24 horas quando o contexto for profissional ou técnico (ex: agendamentos, logs).
24
+ * - Utilize o formato de 12 horas (AM/PM) quando o público-alvo estiver habituado a esse padrão.
25
+ * - Defina intervalos de minutos adequados ao contexto: intervalos de 5 minutos para agendamentos gerais,
26
+ * intervalos de 15 minutos para reuniões, ou intervalos de 1 minuto para precisão.
27
+ * - Configure limites mínimo e máximo para impedir seleção de horários inválidos no contexto da aplicação.
28
+ *
29
+ * #### Acessibilidade tratada no componente
30
+ *
31
+ * Algumas diretrizes de acessibilidade já são tratadas no componente, internamente, e não podem ser alteradas pelo
32
+ * proprietário do conteúdo. São elas:
33
+ *
34
+ * - Navegação por teclado: O componente permite interação via tecla Tab entre as colunas e navegação nas células
35
+ * por meio das setas direcionais (Arrow Up/Down).
36
+ * - Foco visual: A área de foco possui espessura de pelo menos 2 pixels CSS e não é sobreposta por outros elementos da tela,
37
+ * garantindo visibilidade para usuários que utilizam teclado.
38
+ * [WCAG 2.4.12: Focus Appearance](https://www.w3.org/WAI/WCAG22/Understanding/focus-appearance-enhanced)
39
+ * - Leitores de tela: Cada coluna e célula possui atributos ARIA para correta leitura por leitores de tela
40
+ * como NVDA e VoiceOver.
41
+ *
42
+ * #### Tokens customizáveis
43
+ *
44
+ * É possível alterar o estilo do componente usando os seguintes tokens (CSS):
45
+ *
46
+ * > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
47
+ *
48
+ * | Propriedade | Descrição | Valor Padrão |
49
+ * |--------------------------------|------------------------------------------------------|-----------------------------------|
50
+ * | **Base** | | |
51
+ * | `--background` | Cor de fundo | `var(--color-neutral-light-00)` |
52
+ * | `--border-color` | Cor da borda | `var(--color-neutral-light-20)` |
53
+ * | `--border-radius` | Raio da borda | `var(--border-radius-md)` |
54
+ * | `--border-width` | Largura da borda | `var(--border-width-sm)` |
55
+ * | `--shadow` | Contém o valor da sombra do elemento | `var(--shadow-md)` |
56
+ * | **Display** | | |
57
+ * | `--color-display` | Cor da fonte do display | `var(--color-brand-01-base)` |
58
+ * | `--font-weight-display` | Peso da fonte do display | `var(--font-weight-bold)` |
59
+ * | `--border-radius-display` | Raio da borda do display | `var(--border-radius-md)` |
60
+ * | **Hover** | | |
61
+ * | `--color-hover-display` | Cor da fonte do display ao passar o mouse | `var(--color-brand-01-darkest)` |
62
+ * | `--background-hover-display` | Cor de fundo do display ao passar o mouse | `var(--color-brand-01-lighter)` |
63
+ * | **Focus** | | |
64
+ * | `--outline-color-focused-display` | Cor do outline do estado de focus | `var(--color-brand-01-darkest)` |
65
+ * | **Pressed** | | |
66
+ * | `--background-pressed-display` | Cor de fundo do display ao pressionar | `var(--color-brand-01-light)` |
67
+ * | **Disabled** | | |
68
+ * | `--color-disabled-display` | Cor da fonte do display desabilitado | `var(--color-neutral-light-30)` |
69
+ * | **Transitions** | | |
70
+ * | `--transition-duration` | Duração da transição do display | `var(--duration-extra-fast)` |
71
+ * | `--transition-property` | Atributo da transição do display | `all` |
72
+ * | `--transition-timing` | Tipo de transição do display | `var(--timing-standart)` |
73
+ */
74
+ export declare class PoTimerBaseComponent implements ControlValueAccessor {
75
+ protected languageService: PoLanguageService;
76
+ private _format;
77
+ private _locale;
78
+ private _maxTime;
79
+ private _minTime;
80
+ private _minuteInterval;
81
+ private _secondInterval;
82
+ private _showSeconds;
83
+ private _size?;
84
+ private _initialSize;
85
+ private readonly shortLanguage;
86
+ protected onChangePropagate: (value: string) => void;
87
+ protected onTouched: () => void;
88
+ /**
89
+ * @optional
90
+ *
91
+ * @description
92
+ *
93
+ * Evento disparado ao selecionar um horário.
94
+ * Retorna uma `string` no formato ISO 8601 (`HH:mm` ou `HH:mm:ss`).
95
+ */
96
+ change: EventEmitter<string>;
97
+ /**
98
+ * @optional
99
+ *
100
+ * @description
101
+ *
102
+ * Define um valor inicial para o componente no formato ISO 8601 (`HH:mm` ou `HH:mm:ss`).
103
+ */
104
+ set value(value: string);
105
+ get value(): string;
106
+ /**
107
+ * @optional
108
+ *
109
+ * @description
110
+ *
111
+ * Define o formato de exibição do timer.
112
+ *
113
+ * Valores válidos:
114
+ * - `24`: formato de 24 horas (padrão)
115
+ * - `12`: formato de 12 horas com indicador AM/PM
116
+ *
117
+ * @default `24`
118
+ */
119
+ set format(value: PoTimerFormat);
120
+ get format(): PoTimerFormat;
121
+ /**
122
+ * @optional
123
+ *
124
+ * @description
125
+ *
126
+ * Idioma do componente.
127
+ *
128
+ * > O locale padrão será recuperado com base no [`PoI18nService`](/documentation/po-i18n) ou *browser*.
129
+ */
130
+ set locale(locale: string);
131
+ get locale(): string;
132
+ /**
133
+ * @optional
134
+ *
135
+ * @description
136
+ *
137
+ * Define o horário máximo permitido para seleção.
138
+ * Horários posteriores ao limite ficam desabilitados.
139
+ *
140
+ * Formato aceito: `HH:mm` ou `HH:mm:ss`.
141
+ */
142
+ set maxTime(value: string);
143
+ get maxTime(): string;
144
+ /**
145
+ * @optional
146
+ *
147
+ * @description
148
+ *
149
+ * Define o horário mínimo permitido para seleção.
150
+ * Horários anteriores ao limite ficam desabilitados.
151
+ *
152
+ * Formato aceito: `HH:mm` ou `HH:mm:ss`.
153
+ */
154
+ set minTime(value: string);
155
+ get minTime(): string;
156
+ /**
157
+ * @optional
158
+ *
159
+ * @description
160
+ *
161
+ * Define o intervalo entre os minutos exibidos no painel.
162
+ *
163
+ * @default `5`
164
+ */
165
+ set minuteInterval(value: number);
166
+ get minuteInterval(): number;
167
+ /**
168
+ * @optional
169
+ *
170
+ * @description
171
+ *
172
+ * Define o intervalo entre os segundos exibidos no painel.
173
+ * Utilizado apenas quando `p-show-seconds` está ativo.
174
+ *
175
+ * @default `1`
176
+ */
177
+ set secondInterval(value: number);
178
+ get secondInterval(): number;
179
+ /**
180
+ * @optional
181
+ *
182
+ * @description
183
+ *
184
+ * Exibe a coluna de segundos no painel de seleção.
185
+ *
186
+ * @default `false`
187
+ */
188
+ set showSeconds(value: boolean);
189
+ get showSeconds(): boolean;
190
+ /**
191
+ * @optional
192
+ *
193
+ * @description
194
+ *
195
+ * Define o tamanho do componente.
196
+ *
197
+ * > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
198
+ * Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
199
+ *
200
+ * @default `medium`
201
+ */
202
+ set size(value: string);
203
+ get size(): string;
204
+ literals: {
205
+ hours: string;
206
+ minutes: string;
207
+ seconds: string;
208
+ };
209
+ hours: Array<number>;
210
+ minutes: Array<number>;
211
+ seconds: Array<number>;
212
+ selectedHour: number;
213
+ selectedMinute: number;
214
+ selectedSecond: number;
215
+ period: string;
216
+ constructor(languageService: PoLanguageService);
217
+ get is12HourFormat(): boolean;
218
+ protected onThemeChange(): void;
219
+ /** Gera a lista de horas disponíveis de acordo com o formato. */
220
+ protected generateHours(): void;
221
+ /** Gera a lista de minutos de acordo com o intervalo configurado. */
222
+ protected generateMinutes(): void;
223
+ /** Gera a lista de segundos de acordo com o intervalo configurado. */
224
+ protected generateSeconds(): void;
225
+ /** Formata um número com dois dígitos. */
226
+ protected formatValue(value: number): string;
227
+ /** Verifica se uma hora está desabilitada com base nos limites min/max. */
228
+ protected isHourDisabled(hour: number): boolean;
229
+ /** Verifica se um minuto está desabilitado com base nos limites min/max e hora selecionada. */
230
+ protected isMinuteDisabled(minute: number): boolean;
231
+ /** Verifica se um segundo está desabilitado com base nos limites min/max, hora e minuto selecionados. */
232
+ protected isSecondDisabled(second: number): boolean;
233
+ protected isMinuteAllowedForHour(hour: number, minute: number): boolean;
234
+ protected isSecondAllowed(hour: number, minute: number, second: number): boolean;
235
+ /** Gera o valor ISO 8601 com base na seleção atual. */
236
+ protected buildTimeValue(): string;
237
+ /** Define o horário a partir de uma string ISO. */
238
+ setTimeFromString(time: string): void;
239
+ /** Converte hora 24h para formato de exibicao 12h com periodo. */
240
+ private convertTo12HourDisplay;
241
+ writeValue(value: any): void;
242
+ registerOnChange(fn: (value: string) => void): void;
243
+ registerOnTouched(fn: () => void): void;
244
+ setDisabledState(_isDisabled: boolean): void;
245
+ protected emitChange(): void;
246
+ protected callOnTouched(): void;
247
+ private updateModel;
248
+ /** Converte hora no formato atual para formato de 24 horas. */
249
+ protected convertTo24Hour(hour: number): number;
250
+ /** Extrai componente do tempo (hora, minuto ou segundo) de uma string. */
251
+ protected parseTimeComponent(time: string, component: 'hour' | 'minute' | 'second'): number;
252
+ private applySizeBasedOnA11y;
253
+ private isValidTimeString;
254
+ private setLiterals;
255
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * @docsPrivate
3
+ *
4
+ * Helper com funcoes puras de matematica e layout para o infinity scroll
5
+ * do po-timer. Nenhuma dessas funcoes acessa estado do componente — recebem
6
+ * e devolvem apenas valores, facilitando testes unitarios isolados.
7
+ */
8
+ export declare class PoTimerScrollHelper {
9
+ /**
10
+ * Normaliza o offset para o intervalo [sectionHeight, 2 * sectionHeight).
11
+ *
12
+ * Matematica:
13
+ * mod = ((offset - sH) % sH + sH) % sH → resultado em [0, sH)
14
+ * retorno = mod + sH → resultado em [sH, 2*sH)
15
+ *
16
+ * Funciona para qualquer valor de offset (positivo, negativo, multiplos).
17
+ */
18
+ static wrapOffset(offset: number, sectionHeight: number): number;
19
+ /**
20
+ * Calcula o passo (em px) por item, incluindo o gap entre itens.
21
+ *
22
+ * Para N itens num flex-column com altura H, gap G e padding P:
23
+ * scrollHeight = N*H + (N-1)*G + 2*P
24
+ * passo = H + G = (scrollHeight - 2*P + G) / N
25
+ */
26
+ static getCellStep(itemsEl: HTMLElement, displayCount: number): number;
27
+ /**
28
+ * Calcula o indice no displayArray do item visivel no topo a partir do offset.
29
+ * Usa Math.round para snap ao item mais proximo.
30
+ */
31
+ static computeTopDisplayIndex(offset: number, step: number, displayLength: number): number;
32
+ /**
33
+ * Repete o array fonte o numero necessario de vezes para manter
34
+ * o infinity scroll com pelo menos INFINITY_SCROLL_MIN_ITEMS itens.
35
+ *
36
+ * Quando o array fonte tem menos de 6 itens, retorna uma copia simples
37
+ * (sem repeticao), pois o infinity scroll nao e utilizado.
38
+ */
39
+ static repeatArray(source: Array<number>): Array<number>;
40
+ }