@po-ui/ng-components 19.6.0 → 19.8.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 (174) hide show
  1. package/fesm2022/po-ui-ng-components.mjs +25435 -24062
  2. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  3. package/lib/components/po-button/enums/po-button-kind.enum.d.ts +15 -0
  4. package/lib/components/po-button/enums/po-button-size.enum.d.ts +13 -0
  5. package/lib/components/po-button/index.d.ts +3 -1
  6. package/lib/components/po-button/po-button-base.component.d.ts +26 -24
  7. package/lib/components/po-button/po-button.component.d.ts +4 -0
  8. package/lib/components/po-button-group/{po-button-group-toggle.enum.d.ts → enums/po-button-group-toggle.enum.d.ts} +1 -1
  9. package/lib/components/po-button-group/index.d.ts +1 -1
  10. package/lib/components/po-button-group/po-button-group-base.component.d.ts +25 -4
  11. package/lib/components/po-button-group/po-button-group.component.d.ts +3 -1
  12. package/lib/components/po-dropdown/po-dropdown-base.component.d.ts +21 -1
  13. package/lib/components/po-dropdown/po-dropdown.component.d.ts +3 -1
  14. package/lib/components/po-dynamic/index.d.ts +6 -6
  15. package/lib/components/po-dynamic/po-dynamic-field.interface.d.ts +1 -1
  16. package/lib/components/po-dynamic/po-dynamic-form/{po-dynamic-form-field.interface.d.ts → interfaces/po-dynamic-form-field.interface.d.ts} +19 -8
  17. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-base.component.d.ts +22 -2
  18. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-field-internal.interface.d.ts +1 -1
  19. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields-base.component.d.ts +9 -4
  20. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.d.ts +4 -2
  21. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-load/po-dynamic-form-load.interface.d.ts +2 -2
  22. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-load/po-dynamic-form-load.service.d.ts +1 -1
  23. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-validation/po-dynamic-form-field-validation.interface.d.ts +1 -1
  24. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-validation/po-dynamic-form-validation.interface.d.ts +2 -2
  25. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-validation/po-dynamic-form-validation.service.d.ts +1 -1
  26. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.d.ts +4 -2
  27. package/lib/components/po-dynamic/shared/po-dynamic-shared-base.d.ts +1 -1
  28. package/lib/components/po-field/index.d.ts +6 -6
  29. package/lib/components/po-field/po-checkbox/enums/po-checkbox-size.enum.d.ts +13 -0
  30. package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +10 -5
  31. package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +4 -2
  32. package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +22 -1
  33. package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +3 -1
  34. package/lib/components/po-field/po-clean/po-clean-base.component.d.ts +4 -2
  35. package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +22 -3
  36. package/lib/components/po-field/po-combo/po-combo.component.d.ts +6 -4
  37. package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +21 -2
  38. package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +3 -1
  39. package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +21 -2
  40. package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +6 -4
  41. package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +3 -2
  42. package/lib/components/po-field/po-email/po-email.component.d.ts +3 -1
  43. package/lib/components/po-field/po-input/po-input-base.component.d.ts +21 -2
  44. package/lib/components/po-field/po-input/po-input.component.d.ts +3 -1
  45. package/lib/components/po-field/po-input-generic/po-input-generic.d.ts +4 -3
  46. package/lib/components/po-field/po-login/po-login.component.d.ts +3 -1
  47. package/lib/components/po-field/po-lookup/interfaces/po-lookup-advanced-filter.interface.d.ts +1 -1
  48. package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +23 -4
  49. package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts +3 -1
  50. package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.d.ts +1 -1
  51. package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +3 -1
  52. package/lib/components/po-field/po-lookup/services/po-lookup-modal.service.d.ts +3 -2
  53. package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +25 -6
  54. package/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.d.ts +4 -2
  55. package/lib/components/po-field/po-multiselect/po-multiselect-filter.service.d.ts +2 -2
  56. package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +4 -2
  57. package/lib/components/po-field/po-number/po-number-base.component.d.ts +3 -1
  58. package/lib/components/po-field/po-number/po-number.component.d.ts +4 -2
  59. package/lib/components/po-field/po-password/po-password.component.d.ts +3 -1
  60. package/lib/components/po-field/po-radio/enums/po-radio-size.enum.d.ts +13 -0
  61. package/lib/components/po-field/po-radio/po-radio.component.d.ts +7 -13
  62. package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +14 -2
  63. package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +3 -1
  64. package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +21 -2
  65. package/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.d.ts +4 -2
  66. package/lib/components/po-field/po-rich-text/po-rich-text-image-modal/po-rich-text-image-modal.component.d.ts +3 -2
  67. package/lib/components/po-field/po-rich-text/po-rich-text-link-modal/po-rich-text-link-modal.component.d.ts +2 -1
  68. package/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.d.ts +2 -1
  69. package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +3 -1
  70. package/lib/components/po-field/po-select/po-select.component.d.ts +22 -3
  71. package/lib/components/po-field/po-switch/po-switch.component.d.ts +23 -3
  72. package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +37 -2
  73. package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +3 -1
  74. package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +22 -3
  75. package/lib/components/po-field/po-upload/po-upload.component.d.ts +3 -1
  76. package/lib/components/po-field/po-url/po-url.component.d.ts +3 -1
  77. package/lib/components/po-info/po-info.module.d.ts +2 -1
  78. package/lib/components/po-list-view/po-list-view-base.component.d.ts +21 -2
  79. package/lib/components/po-list-view/po-list-view.component.d.ts +3 -1
  80. package/lib/components/po-listbox/po-item-list/po-item-list-base.component.d.ts +4 -2
  81. package/lib/components/po-listbox/po-listbox-base.component.d.ts +7 -2
  82. package/lib/components/po-listbox/po-listbox.component.d.ts +3 -1
  83. package/lib/components/po-listbox/po-search-list/po-search-list.component.d.ts +3 -1
  84. package/lib/components/po-loading/po-loading-base.component.d.ts +4 -4
  85. package/lib/components/po-loading/po-loading-overlay/po-loading-overlay-base.component.d.ts +4 -4
  86. package/lib/components/po-menu/po-menu-base.component.d.ts +21 -2
  87. package/lib/components/po-menu/po-menu-filter/po-menu-filter.component.d.ts +2 -1
  88. package/lib/components/po-menu/po-menu.component.d.ts +3 -1
  89. package/lib/components/po-modal/po-modal-base.component.d.ts +21 -2
  90. package/lib/components/po-modal/po-modal.component.d.ts +3 -1
  91. package/lib/components/po-page/index.d.ts +3 -3
  92. package/lib/components/po-page/{po-page-action.interface.d.ts → interfaces/po-page-action.interface.d.ts} +1 -1
  93. package/lib/components/po-page/{po-page.interface.d.ts → interfaces/po-page.interface.d.ts} +1 -1
  94. package/lib/components/po-page/po-page-default/po-page-default-base.component.d.ts +22 -3
  95. package/lib/components/po-page/po-page-default/po-page-default.component.d.ts +4 -2
  96. package/lib/components/po-page/po-page-default/po-page-default.interface.d.ts +2 -2
  97. package/lib/components/po-page/po-page-detail/po-page-detail-base.component.d.ts +21 -2
  98. package/lib/components/po-page/po-page-edit/po-page-edit-base.component.d.ts +21 -2
  99. package/lib/components/po-page/po-page-list/po-page-list-base.component.d.ts +23 -4
  100. package/lib/components/po-page/po-page-list/po-page-list.component.d.ts +6 -4
  101. package/lib/components/po-page/po-page-slide/po-page-slide-base.component.d.ts +21 -1
  102. package/lib/components/po-page/po-page-slide/po-page-slide.component.d.ts +5 -3
  103. package/lib/components/po-popup/po-popup-base.component.d.ts +21 -1
  104. package/lib/components/po-popup/po-popup.component.d.ts +4 -2
  105. package/lib/components/po-progress/enums/po-progress-size.enum.d.ts +3 -1
  106. package/lib/components/po-progress/po-progress-base.component.d.ts +24 -4
  107. package/lib/components/po-progress/po-progress.component.d.ts +3 -0
  108. package/lib/components/po-search/index.d.ts +1 -1
  109. package/lib/components/po-search/po-search-base.component.d.ts +23 -4
  110. package/lib/components/po-search/po-search.component.d.ts +3 -1
  111. package/lib/components/po-table/interfaces/po-table-column.interface.d.ts +1 -1
  112. package/lib/components/po-table/interfaces/po-table-filtered-items-params.interface.d.ts +2 -0
  113. package/lib/components/po-table/po-table-base.component.d.ts +22 -3
  114. package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +21 -2
  115. package/lib/components/po-table/po-table-detail/po-table-detail.component.d.ts +23 -4
  116. package/lib/components/po-table/po-table-list-manager/po-table-list-manager.component.d.ts +22 -3
  117. package/lib/components/po-table/po-table-show-subtitle/po-table-show-subtitle.component.d.ts +3 -1
  118. package/lib/components/po-table/po-table-subtitle-footer/po-table-subtitle-footer.component.d.ts +3 -1
  119. package/lib/components/po-table/po-table.component.d.ts +4 -2
  120. package/lib/components/po-tabs/po-tab-dropdown/po-tab-dropdown.component.d.ts +3 -2
  121. package/lib/components/po-tabs/po-tabs-base.component.d.ts +25 -3
  122. package/lib/components/po-tabs/po-tabs.component.d.ts +3 -1
  123. package/lib/components/po-toaster/po-toaster-base.component.d.ts +23 -3
  124. package/lib/components/po-toaster/po-toaster.component.d.ts +5 -3
  125. package/lib/components/po-tree-view/po-tree-view-base.component.d.ts +21 -1
  126. package/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.d.ts +3 -2
  127. package/lib/components/po-tree-view/po-tree-view-item-header/po-tree-view-item-header.component.d.ts +2 -1
  128. package/lib/components/po-tree-view/po-tree-view.component.d.ts +3 -1
  129. package/lib/enums/po-field-size.enum.d.ts +13 -0
  130. package/lib/services/po-dialog/index.d.ts +1 -1
  131. package/lib/services/po-dialog/interfaces/po-dialog.interface.d.ts +11 -0
  132. package/lib/services/po-dialog/po-dialog-base.service.d.ts +1 -1
  133. package/lib/services/po-dialog/po-dialog.component.d.ts +11 -6
  134. package/lib/services/po-dialog/po-dialog.service.d.ts +1 -1
  135. package/lib/services/po-notification/po-notification-base.service.d.ts +4 -1
  136. package/lib/services/po-notification/po-notification.interface.d.ts +11 -0
  137. package/lib/services/po-notification/po-notification.service.d.ts +4 -2
  138. package/lib/services/po-theme/enum/po-theme-a11y.enum.d.ts +14 -10
  139. package/lib/services/po-theme/enum/po-theme-type.enum.d.ts +5 -8
  140. package/lib/services/po-theme/interfaces/po-theme.interface.d.ts +19 -10
  141. package/lib/services/po-theme/po-theme.service.d.ts +33 -7
  142. package/lib/utils/util.d.ts +9 -0
  143. package/package.json +4 -4
  144. package/po-ui-ng-components-19.8.0.tgz +0 -0
  145. package/schematics/ng-add/index.js +1 -1
  146. package/schematics/ng-update/v14/index.js +1 -1
  147. package/schematics/ng-update/v15/index.js +1 -1
  148. package/schematics/ng-update/v16/index.js +1 -1
  149. package/schematics/ng-update/v17/index.js +1 -1
  150. package/schematics/ng-update/v18/index.js +2 -2
  151. package/schematics/ng-update/v19/index.js +2 -2
  152. package/schematics/ng-update/v2/index.js +1 -1
  153. package/schematics/ng-update/v3/index.js +1 -1
  154. package/schematics/ng-update/v4/index.js +1 -1
  155. package/schematics/ng-update/v5/index.js +1 -1
  156. package/schematics/ng-update/v6/index.js +1 -1
  157. package/lib/components/po-button/po-button-kind.enum.d.ts +0 -5
  158. package/lib/components/po-button/po-button-size.enum.d.ts +0 -4
  159. package/lib/components/po-field/po-checkbox/po-checkbox-size.enum.d.ts +0 -13
  160. package/lib/components/po-field/po-radio/po-radio-size.enum.d.ts +0 -11
  161. package/po-ui-ng-components-19.6.0.tgz +0 -0
  162. /package/lib/components/po-button/{po-button-type.enum.d.ts → enums/po-button-type.enum.d.ts} +0 -0
  163. /package/lib/components/po-dynamic/{po-dynamic-field-force-component.enum.d.ts → enums/po-dynamic-field-force-component.enum.d.ts} +0 -0
  164. /package/lib/components/po-dynamic/{po-dynamic-field-type.enum.d.ts → enums/po-dynamic-field-type.enum.d.ts} +0 -0
  165. /package/lib/components/po-dynamic/po-dynamic-form/{po-dynamic-form-response.interface.d.ts → interfaces/po-dynamic-form-response.interface.d.ts} +0 -0
  166. /package/lib/components/po-field/po-combo/{po-combo-filter-mode.enum.d.ts → enums/po-combo-filter-mode.enum.d.ts} +0 -0
  167. /package/lib/components/po-field/po-multiselect/{po-multiselect-filter-mode.enum.d.ts → enums/po-multiselect-filter-mode.enum.d.ts} +0 -0
  168. /package/lib/components/po-field/po-multiselect/{po-multiselect-filter.interface.d.ts → interfaces/po-multiselect-filter.interface.d.ts} +0 -0
  169. /package/lib/components/po-field/po-multiselect/{po-multiselect-literals.interface.d.ts → interfaces/po-multiselect-literals.interface.d.ts} +0 -0
  170. /package/lib/components/po-field/po-multiselect/{po-multiselect-option.interface.d.ts → interfaces/po-multiselect-option.interface.d.ts} +0 -0
  171. /package/lib/components/po-loading/{po-loading-icon → enums}/po-loading-icon-size-enum.d.ts +0 -0
  172. /package/lib/components/po-page/{po-page-filter.interface.d.ts → interfaces/po-page-filter.interface.d.ts} +0 -0
  173. /package/lib/components/po-search/{enum → enums}/po-search-filter-mode.enum.d.ts +0 -0
  174. /package/lib/services/po-dialog/{po-dialog.enum.d.ts → enums/po-dialog.enum.d.ts} +0 -0
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
3
+ import { PoThemeService } from '../../../services';
3
4
  import { PoRadioGroupOption } from './po-radio-group-option.interface';
4
5
  import * as i0 from "@angular/core";
5
6
  /**
@@ -51,6 +52,7 @@ import * as i0 from "@angular/core";
51
52
  *
52
53
  */
53
54
  export declare abstract class PoRadioGroupBaseComponent implements ControlValueAccessor, Validator {
55
+ protected poThemeService: PoThemeService;
54
56
  additionalHelpEventTrigger: string | undefined;
55
57
  /**
56
58
  * @optional
@@ -160,6 +162,7 @@ export declare abstract class PoRadioGroupBaseComponent implements ControlValueA
160
162
  private _disabled?;
161
163
  private _options;
162
164
  private _required?;
165
+ private _size?;
163
166
  private onChangePropagate;
164
167
  private validatorChange;
165
168
  /**
@@ -219,10 +222,19 @@ export declare abstract class PoRadioGroupBaseComponent implements ControlValueA
219
222
  *
220
223
  * @description
221
224
  *
222
- * Define o tamanho do *radio*
225
+ * Define o tamanho dos radios do componente:
226
+ * - `small`: 16x16 (disponível apenas para acessibilidade AA).
227
+ * - `medium`: 24x24.
228
+ *
229
+ * > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
230
+ * Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
231
+ *
223
232
  * @default `medium`
233
+ *
224
234
  */
225
- size: string;
235
+ set size(value: string);
236
+ get size(): string;
237
+ constructor(poThemeService: PoThemeService);
226
238
  changeValue(changedValue: any): void;
227
239
  setDisabledState(isDisabled: boolean): void;
228
240
  registerOnChange(fn: any): void;
@@ -1,4 +1,5 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, IterableDiffers, QueryList } from '@angular/core';
2
+ import { PoThemeService } from '../../../services';
2
3
  import { PoRadioComponent } from '../po-radio/po-radio.component';
3
4
  import { PoRadioGroupBaseComponent } from './po-radio-group-base.component';
4
5
  import * as i0 from "@angular/core";
@@ -31,6 +32,7 @@ import * as i0 from "@angular/core";
31
32
  *
32
33
  */
33
34
  export declare class PoRadioGroupComponent extends PoRadioGroupBaseComponent implements AfterViewInit, DoCheck {
35
+ protected poThemeService: PoThemeService;
34
36
  private el;
35
37
  private cd;
36
38
  /** Label do campo. */
@@ -40,7 +42,7 @@ export declare class PoRadioGroupComponent extends PoRadioGroupBaseComponent imp
40
42
  inputEl: ElementRef;
41
43
  radioLabels: QueryList<PoRadioComponent>;
42
44
  differ: any;
43
- constructor(differs: IterableDiffers, el: ElementRef, cd: ChangeDetectorRef);
45
+ constructor(differs: IterableDiffers, poThemeService: PoThemeService, el: ElementRef, cd: ChangeDetectorRef);
44
46
  ngAfterViewInit(): void;
45
47
  ngDoCheck(): void;
46
48
  emitAdditionalHelp(): void;
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
3
+ import { PoThemeService } from '../../../services';
3
4
  import { PoRichTextToolbarActions } from './enum/po-rich-text-toolbar-actions.enum';
4
5
  import { PoRichTextService } from './po-rich-text.service';
5
6
  import * as i0 from "@angular/core";
@@ -14,6 +15,7 @@ import * as i0 from "@angular/core";
14
15
  */
15
16
  export declare abstract class PoRichTextBaseComponent implements ControlValueAccessor, Validator {
16
17
  private richTextService;
18
+ protected poThemeService: PoThemeService;
17
19
  /**
18
20
  * @optional
19
21
  *
@@ -175,6 +177,7 @@ export declare abstract class PoRichTextBaseComponent implements ControlValueAcc
175
177
  private _placeholder;
176
178
  private _readonly;
177
179
  private _required;
180
+ private _size?;
178
181
  private validatorChange;
179
182
  protected onTouched: any;
180
183
  /**
@@ -221,6 +224,22 @@ export declare abstract class PoRichTextBaseComponent implements ControlValueAcc
221
224
  */
222
225
  set required(value: boolean);
223
226
  get required(): boolean;
227
+ /**
228
+ * @optional
229
+ *
230
+ * @description
231
+ *
232
+ * Define o tamanho do componente:
233
+ * - `small`: altura dos buttons como 32px (disponível apenas para acessibilidade AA).
234
+ * - `medium`: altura dos buttons como 44px.
235
+ *
236
+ * > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
237
+ * Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
238
+ *
239
+ * @default `medium`
240
+ */
241
+ set size(value: string);
242
+ get size(): string;
224
243
  /**
225
244
  * Define se a indicação de campo obrigatório será exibida.
226
245
  *
@@ -228,7 +247,7 @@ export declare abstract class PoRichTextBaseComponent implements ControlValueAcc
228
247
  * - Não possuir `p-help` e/ou `p-label`.
229
248
  */
230
249
  showRequired: boolean;
231
- constructor(richTextService: PoRichTextService);
250
+ constructor(richTextService: PoRichTextService, poThemeService: PoThemeService);
232
251
  registerOnChange(func: any): void;
233
252
  registerOnTouched(func: any): void;
234
253
  registerOnValidatorChange(fn: () => void): void;
@@ -239,7 +258,7 @@ export declare abstract class PoRichTextBaseComponent implements ControlValueAcc
239
258
  protected updateModel(value: any): void;
240
259
  protected validateModel(value: any): void;
241
260
  static ɵfac: i0.ɵɵFactoryDeclaration<PoRichTextBaseComponent, never>;
242
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoRichTextBaseComponent, never, never, { "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "disabledTextAlign": { "alias": "p-disabled-text-align"; "required": false; }; "errorMessage": { "alias": "p-error-message"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "hideToolbarActions": { "alias": "p-hide-toolbar-actions"; "required": false; }; "height": { "alias": "p-height"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "readonly": { "alias": "p-readonly"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "change": "p-change"; "changeModel": "p-change-model"; "keydown": "p-keydown"; }, never, never, true, never>;
261
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoRichTextBaseComponent, never, never, { "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "disabledTextAlign": { "alias": "p-disabled-text-align"; "required": false; }; "errorMessage": { "alias": "p-error-message"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "hideToolbarActions": { "alias": "p-hide-toolbar-actions"; "required": false; }; "height": { "alias": "p-height"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "readonly": { "alias": "p-readonly"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "change": "p-change"; "changeModel": "p-change-model"; "keydown": "p-keydown"; }, never, never, true, never>;
243
262
  static ngAcceptInputType_appendBox: any;
244
263
  static ngAcceptInputType_autoFocus: any;
245
264
  static ngAcceptInputType_disabledTextAlign: any;
@@ -1,4 +1,4 @@
1
- import { ElementRef, EventEmitter, OnInit, OnDestroy } from '@angular/core';
1
+ import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { PoRichTextService } from '../po-rich-text.service';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class PoRichTextBodyComponent implements OnInit, OnDestroy {
@@ -9,6 +9,8 @@ export declare class PoRichTextBodyComponent implements OnInit, OnDestroy {
9
9
  modelValue?: string;
10
10
  placeholder?: string;
11
11
  readonly?: string;
12
+ /** Tamanho do fonte */
13
+ size?: string;
12
14
  change: EventEmitter<any>;
13
15
  commands: EventEmitter<any>;
14
16
  keydown: EventEmitter<KeyboardEvent>;
@@ -53,5 +55,5 @@ export declare class PoRichTextBodyComponent implements OnInit, OnDestroy {
53
55
  private updateValueWithModelValue;
54
56
  private verifyCursorPositionInFirefoxIEEdge;
55
57
  static ɵfac: i0.ɵɵFactoryDeclaration<PoRichTextBodyComponent, never>;
56
- static ɵcmp: i0.ɵɵComponentDeclaration<PoRichTextBodyComponent, "po-rich-text-body", never, { "height": { "alias": "p-height"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "modelValue": { "alias": "p-model-value"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "readonly": { "alias": "p-readonly"; "required": false; }; }, { "change": "p-change"; "commands": "p-commands"; "keydown": "p-keydown"; "selectedLink": "p-selected-link"; "shortcutCommand": "p-shortcut-command"; "value": "p-value"; "blur": "p-blur"; }, never, never, false, never>;
58
+ static ɵcmp: i0.ɵɵComponentDeclaration<PoRichTextBodyComponent, "po-rich-text-body", never, { "height": { "alias": "p-height"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "modelValue": { "alias": "p-model-value"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "readonly": { "alias": "p-readonly"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, { "change": "p-change"; "commands": "p-commands"; "keydown": "p-keydown"; "selectedLink": "p-selected-link"; "shortcutCommand": "p-shortcut-command"; "value": "p-value"; "blur": "p-blur"; }, never, never, false, never>;
57
59
  }
@@ -2,14 +2,15 @@ import { EventEmitter } from '@angular/core';
2
2
  import { NgForm } from '@angular/forms';
3
3
  import { PoLanguageService } from './../../../../services/po-language/po-language.service';
4
4
  import { PoModalAction, PoModalComponent } from '../../../po-modal';
5
- import { PoUploadComponent } from '../../po-upload/po-upload.component';
6
5
  import { PoUploadFileRestrictions } from '../../po-upload/interfaces/po-upload-file-restriction.interface';
6
+ import { PoUploadComponent } from '../../po-upload/po-upload.component';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class PoRichTextImageModalComponent {
9
9
  private languageService;
10
10
  modal: PoModalComponent;
11
11
  modalImageForm: NgForm;
12
12
  upload: PoUploadComponent;
13
+ size: string;
13
14
  command: EventEmitter<string | {
14
15
  command: string;
15
16
  value: string | any;
@@ -33,5 +34,5 @@ export declare class PoRichTextImageModalComponent {
33
34
  private retrieveCursorPosition;
34
35
  private saveCursorPosition;
35
36
  static ɵfac: i0.ɵɵFactoryDeclaration<PoRichTextImageModalComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<PoRichTextImageModalComponent, "po-rich-text-image-modal", never, {}, { "command": "p-command"; }, never, never, false, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<PoRichTextImageModalComponent, "po-rich-text-image-modal", never, { "size": { "alias": "p-size"; "required": false; }; }, { "command": "p-command"; }, never, never, false, never>;
37
38
  }
@@ -7,6 +7,7 @@ export declare class PoRichTextLinkModalComponent implements OnInit {
7
7
  private languageService;
8
8
  modal: PoModalComponent;
9
9
  modalLinkForm: NgForm;
10
+ size: string;
10
11
  command: EventEmitter<string | {
11
12
  command: string;
12
13
  value: string | any;
@@ -43,5 +44,5 @@ export declare class PoRichTextLinkModalComponent implements OnInit {
43
44
  private toEditLink;
44
45
  private toInsertLink;
45
46
  static ɵfac: i0.ɵɵFactoryDeclaration<PoRichTextLinkModalComponent, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<PoRichTextLinkModalComponent, "po-rich-text-link-modal", never, {}, { "command": "p-command"; "linkEditing": "p-link-editing"; }, never, never, false, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<PoRichTextLinkModalComponent, "po-rich-text-link-modal", never, { "size": { "alias": "p-size"; "required": false; }; }, { "command": "p-command"; "linkEditing": "p-link-editing"; }, never, never, false, never>;
47
48
  }
@@ -59,6 +59,7 @@ export declare class PoRichTextToolbarComponent implements AfterViewInit {
59
59
  set readonly(value: boolean);
60
60
  get readonly(): boolean;
61
61
  get isInternetExplorer(): boolean;
62
+ size: string;
62
63
  constructor(languageService: PoLanguageService);
63
64
  ngAfterViewInit(): void;
64
65
  changeTextColor(value: any): void;
@@ -77,5 +78,5 @@ export declare class PoRichTextToolbarComponent implements AfterViewInit {
77
78
  private setColorInColorPicker;
78
79
  private toggleDisableButtons;
79
80
  static ɵfac: i0.ɵɵFactoryDeclaration<PoRichTextToolbarComponent, never>;
80
- static ɵcmp: i0.ɵɵComponentDeclaration<PoRichTextToolbarComponent, "po-rich-text-toolbar", never, { "hideToolbarActions": { "alias": "p-hide-toolbar-actions"; "required": false; }; "readonly": { "alias": "p-readonly"; "required": false; }; }, { "command": "p-command"; "modal": "p-modal"; "linkEditing": "p-link-editing"; }, never, never, false, never>;
81
+ static ɵcmp: i0.ɵɵComponentDeclaration<PoRichTextToolbarComponent, "po-rich-text-toolbar", never, { "hideToolbarActions": { "alias": "p-hide-toolbar-actions"; "required": false; }; "readonly": { "alias": "p-readonly"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, { "command": "p-command"; "modal": "p-modal"; "linkEditing": "p-link-editing"; }, never, never, false, never>;
81
82
  }
@@ -1,4 +1,5 @@
1
1
  import { AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
+ import { PoThemeService } from '../../../services';
2
3
  import { PoRichTextToolbarActions } from './enum/po-rich-text-toolbar-actions.enum';
3
4
  import { PoRichTextBaseComponent } from './po-rich-text-base.component';
4
5
  import { PoRichTextBodyComponent } from './po-rich-text-body/po-rich-text-body.component';
@@ -28,13 +29,14 @@ import * as i0 from "@angular/core";
28
29
  */
29
30
  export declare class PoRichTextComponent extends PoRichTextBaseComponent implements AfterViewInit, OnDestroy, OnInit, OnChanges {
30
31
  private element;
32
+ protected poThemeService: PoThemeService;
31
33
  bodyElement: PoRichTextBodyComponent;
32
34
  richTextToolbar: PoRichTextToolbarComponent;
33
35
  private listener;
34
36
  private modelLastUpdate;
35
37
  toolbarActions: Array<PoRichTextToolbarActions>;
36
38
  get errorMsg(): string;
37
- constructor(element: ElementRef, richTextService: PoRichTextService);
39
+ constructor(element: ElementRef, richTextService: PoRichTextService, poThemeService: PoThemeService);
38
40
  ngOnInit(): void;
39
41
  ngOnChanges(changes: SimpleChanges): void;
40
42
  ngAfterViewInit(): void;
@@ -1,5 +1,6 @@
1
1
  import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
+ import { PoThemeService } from '../../../services';
3
4
  import { PoFieldValidateModel } from '../po-field-validate.model';
4
5
  import { PoSelectOptionGroup } from './po-select-option-group.interface';
5
6
  import { PoSelectOption } from './po-select-option.interface';
@@ -77,6 +78,7 @@ import * as i0 from "@angular/core";
77
78
  export declare class PoSelectComponent extends PoFieldValidateModel<any> implements OnChanges {
78
79
  private el;
79
80
  renderer: Renderer2;
81
+ protected poThemeService: PoThemeService;
80
82
  private _iconToken;
81
83
  selectElement: ElementRef;
82
84
  /**
@@ -118,6 +120,7 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
118
120
  private _fieldLabel?;
119
121
  private _fieldValue?;
120
122
  private _options;
123
+ private _size?;
121
124
  /**
122
125
  * Nesta propriedade deve ser definido uma coleção de objetos que implementam a interface `PoSelectOption`,
123
126
  * ou uma coleção de objetos dentro de grupos diferentes, que seriam da interface `PoSelectOptionGroup`.
@@ -183,9 +186,25 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
183
186
  controlValueWithLabel?: boolean;
184
187
  get fieldValue(): string;
185
188
  get iconNameLib(): string;
189
+ /**
190
+ * @optional
191
+ *
192
+ * @description
193
+ *
194
+ * Define o tamanho do componente:
195
+ * - `small`: altura do input como 32px (disponível apenas para acessibilidade AA).
196
+ * - `medium`: altura do input como 44px.
197
+ *
198
+ * > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
199
+ * Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
200
+ *
201
+ * @default `medium`
202
+ */
203
+ set size(value: string);
204
+ get size(): string;
186
205
  constructor(value: {
187
206
  [key: string]: string;
188
- }, changeDetector: ChangeDetectorRef, el: ElementRef, renderer: Renderer2);
207
+ }, changeDetector: ChangeDetectorRef, el: ElementRef, renderer: Renderer2, poThemeService: PoThemeService);
189
208
  ngOnChanges(changes: SimpleChanges): void;
190
209
  /**
191
210
  * Função que atribui foco ao componente.
@@ -246,8 +265,8 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
246
265
  private transformInArray;
247
266
  private separateOptions;
248
267
  private validateOptions;
249
- static ɵfac: i0.ɵɵFactoryDeclaration<PoSelectComponent, [{ optional: true; }, null, null, null]>;
250
- static ɵcmp: i0.ɵɵComponentDeclaration<PoSelectComponent, "po-select", never, { "readonly": { "alias": "p-readonly"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "options": { "alias": "p-options"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "controlValueWithLabel": { "alias": "p-control-value-with-label"; "required": false; }; }, { "ngModelChange": "ngModelChange"; }, never, never, false, never>;
268
+ static ɵfac: i0.ɵɵFactoryDeclaration<PoSelectComponent, [{ optional: true; }, null, null, null, null]>;
269
+ static ɵcmp: i0.ɵɵComponentDeclaration<PoSelectComponent, "po-select", never, { "readonly": { "alias": "p-readonly"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "options": { "alias": "p-options"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "controlValueWithLabel": { "alias": "p-control-value-with-label"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, { "ngModelChange": "ngModelChange"; }, never, never, false, never>;
251
270
  static ngAcceptInputType_readonly: any;
252
271
  static ngAcceptInputType_controlValueWithLabel: any;
253
272
  }
@@ -1,4 +1,5 @@
1
1
  import { ChangeDetectorRef, ElementRef } from '@angular/core';
2
+ import { PoThemeService } from '../../../services';
2
3
  import { PoFieldModel } from '../po-field.model';
3
4
  import { PoSwitchLabelPosition } from './po-switch-label-position.enum';
4
5
  import * as i0 from "@angular/core";
@@ -78,6 +79,7 @@ import * as i0 from "@angular/core";
78
79
  * </example>
79
80
  */
80
81
  export declare class PoSwitchComponent extends PoFieldModel<any> {
82
+ protected poThemeService: PoThemeService;
81
83
  private changeDetector;
82
84
  switchContainer: ElementRef;
83
85
  id: string;
@@ -86,6 +88,7 @@ export declare class PoSwitchComponent extends PoFieldModel<any> {
86
88
  private _labelOn;
87
89
  private _labelPosition;
88
90
  private _formatModel;
91
+ private _size?;
89
92
  /**
90
93
  * @optional
91
94
  *
@@ -135,7 +138,24 @@ export declare class PoSwitchComponent extends PoFieldModel<any> {
135
138
  */
136
139
  set labelOn(label: string);
137
140
  get labelOn(): string;
138
- constructor(changeDetector: ChangeDetectorRef);
141
+ /**
142
+ * @optional
143
+ *
144
+ * @description
145
+ *
146
+ * Define o tamanho do componente:
147
+ * - `small`: altura de 16px (disponível apenas para acessibilidade AA).
148
+ * - `medium`: altura de 24px.
149
+ *
150
+ * > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
151
+ * Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
152
+ *
153
+ * @default `medium`
154
+ *
155
+ */
156
+ set size(value: string);
157
+ get size(): string;
158
+ constructor(poThemeService: PoThemeService, changeDetector: ChangeDetectorRef);
139
159
  /**
140
160
  * Função que atribui foco ao componente.
141
161
  *
@@ -155,13 +175,13 @@ export declare class PoSwitchComponent extends PoFieldModel<any> {
155
175
  */
156
176
  focus(): void;
157
177
  onBlur(): void;
158
- getLabelPosition(): "right" | "left";
178
+ getLabelPosition(): "left" | "right";
159
179
  onKeyDown(event: any): void;
160
180
  changeValue(value: any): void;
161
181
  eventClick(): void;
162
182
  onWriteValue(value: any): void;
163
183
  static ɵfac: i0.ɵɵFactoryDeclaration<PoSwitchComponent, never>;
164
- static ɵcmp: i0.ɵɵComponentDeclaration<PoSwitchComponent, "po-switch", never, { "value": { "alias": "p-value"; "required": false; }; "formatModel": { "alias": "p-format-model"; "required": false; }; "hideLabelStatus": { "alias": "p-hide-label-status"; "required": false; }; "labelPosition": { "alias": "p-label-position"; "required": false; }; "labelOff": { "alias": "p-label-off"; "required": false; }; "labelOn": { "alias": "p-label-on"; "required": false; }; }, {}, never, never, false, never>;
184
+ static ɵcmp: i0.ɵɵComponentDeclaration<PoSwitchComponent, "po-switch", never, { "value": { "alias": "p-value"; "required": false; }; "formatModel": { "alias": "p-format-model"; "required": false; }; "hideLabelStatus": { "alias": "p-hide-label-status"; "required": false; }; "labelPosition": { "alias": "p-label-position"; "required": false; }; "labelOff": { "alias": "p-label-off"; "required": false; }; "labelOn": { "alias": "p-label-on"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, {}, never, never, false, never>;
165
185
  static ngAcceptInputType_value: any;
166
186
  static ngAcceptInputType_formatModel: any;
167
187
  static ngAcceptInputType_hideLabelStatus: any;
@@ -1,5 +1,6 @@
1
1
  import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
2
  import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
3
+ import { PoThemeService } from '../../../services';
3
4
  import * as i0 from "@angular/core";
4
5
  /**
5
6
  * @description
@@ -28,9 +29,26 @@ import * as i0 from "@angular/core";
28
29
  * elementos da tela. [WCAG 2.4.12: Focus Appearance)](https://www.w3.org/WAI/WCAG22/Understanding/focus-appearance-enhanced)
29
30
  * - A identificação do erro acontece também através da mudança de cor do campo, mas também de um ícone
30
31
  * junto da mensagem. [WGAG 1.4.1: Use of Color, 3.2.4: Consistent Identification](https://www.w3.org/WAI/WCAG21/Understanding/use-of-color)
32
+ *
33
+ * #### Tokens customizáveis
34
+ *
35
+ * É possível alterar o estilo do componente usando os seguintes tokens (CSS):
36
+ *
37
+ * > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
38
+ *
39
+ * | Propriedade | Descrição | Valor Padrão |
40
+ * |----------------------------------------|-------------------------------------------------------|-------------------------------------------------|
41
+ * | **Default Values** | | |
42
+ * | `--font-family` | Família tipográfica usada | `var(--font-family-theme)` |
43
+ * | `--font-size` | Tamanho da fonte | `var(--font-size-default)` |
44
+ * | `--text-color-placeholder` | Cor do texto placeholder | `var(--color-neutral-light-30)` |
45
+ * | `--color` | Cor pincipal do campo | `var(--color-neutral-dark-70)` |
46
+ * | `--background` | Cor de background | `var(--color-neutral-light-05)` |
47
+ *
31
48
  */
32
49
  export declare abstract class PoTextareaBaseComponent implements ControlValueAccessor, Validator {
33
50
  cd: ChangeDetectorRef;
51
+ protected poThemeService: PoThemeService;
34
52
  additionalHelpEventTrigger: string | undefined;
35
53
  /**
36
54
  * @optional
@@ -168,6 +186,7 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
168
186
  private _readonly;
169
187
  private _required;
170
188
  private _rows;
189
+ private _size?;
171
190
  private modelLastUpdate;
172
191
  private onChangePropagate;
173
192
  private validatorChange;
@@ -246,7 +265,23 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
246
265
  */
247
266
  set rows(value: number);
248
267
  get rows(): number;
249
- constructor(cd: ChangeDetectorRef);
268
+ /**
269
+ * @optional
270
+ *
271
+ * @description
272
+ *
273
+ * Define o tamanho do componente:
274
+ * - `small` (disponível apenas para acessibilidade AA)
275
+ * - `medium`
276
+ *
277
+ * > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
278
+ * Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
279
+ *
280
+ * @default `medium`
281
+ */
282
+ set size(value: string);
283
+ get size(): string;
284
+ constructor(cd: ChangeDetectorRef, poThemeService: PoThemeService);
250
285
  callOnChange(value: any): void;
251
286
  controlChangeModelEmitter(value: any): void;
252
287
  setDisabledState(isDisabled: boolean): void;
@@ -260,7 +295,7 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
260
295
  protected validateModel(): void;
261
296
  abstract writeValueModel(value: any): void;
262
297
  static ɵfac: i0.ɵɵFactoryDeclaration<PoTextareaBaseComponent, never>;
263
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoTextareaBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "name": { "alias": "name"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "fieldErrorMessage": { "alias": "p-field-error-message"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "readonly": { "alias": "p-readonly"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "minlength": { "alias": "p-minlength"; "required": false; }; "maxlength": { "alias": "p-maxlength"; "required": false; }; "rows": { "alias": "p-rows"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "blur": "p-blur"; "enter": "p-enter"; "change": "p-change"; "changeModel": "p-change-model"; "keydown": "p-keydown"; }, never, never, true, never>;
298
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoTextareaBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "name": { "alias": "name"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "fieldErrorMessage": { "alias": "p-field-error-message"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "readonly": { "alias": "p-readonly"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "minlength": { "alias": "p-minlength"; "required": false; }; "maxlength": { "alias": "p-maxlength"; "required": false; }; "rows": { "alias": "p-rows"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "blur": "p-blur"; "enter": "p-enter"; "change": "p-change"; "changeModel": "p-change-model"; "keydown": "p-keydown"; }, never, never, true, never>;
264
299
  static ngAcceptInputType_appendBox: any;
265
300
  static ngAcceptInputType_autoFocus: any;
266
301
  }
@@ -1,4 +1,5 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, ElementRef } from '@angular/core';
2
+ import { PoThemeService } from '../../../services';
2
3
  import { PoTextareaBaseComponent } from './po-textarea-base.component';
3
4
  import * as i0 from "@angular/core";
4
5
  /**
@@ -29,11 +30,12 @@ import * as i0 from "@angular/core";
29
30
  */
30
31
  export declare class PoTextareaComponent extends PoTextareaBaseComponent implements AfterViewInit {
31
32
  private el;
33
+ protected poThemeService: PoThemeService;
32
34
  inputEl: ElementRef;
33
35
  id: string;
34
36
  valueBeforeChange: any;
35
37
  fireChange: boolean;
36
- constructor(cd: ChangeDetectorRef, el: ElementRef);
38
+ constructor(cd: ChangeDetectorRef, el: ElementRef, poThemeService: PoThemeService);
37
39
  emitAdditionalHelp(): void;
38
40
  /**
39
41
  * Função que atribui foco ao componente.
@@ -1,11 +1,12 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
3
+ import { PoThemeService } from '../../../services';
3
4
  import { PoLanguageService } from '../../../services/po-language/po-language.service';
5
+ import { PoProgressAction } from '../../po-progress';
4
6
  import { PoUploadFileRestrictions } from './interfaces/po-upload-file-restriction.interface';
5
7
  import { PoUploadLiterals } from './interfaces/po-upload-literals.interface';
6
8
  import { PoUploadFile } from './po-upload-file';
7
9
  import { PoUploadService } from './po-upload.service';
8
- import { PoProgressAction } from '../../po-progress';
9
10
  import * as i0 from "@angular/core";
10
11
  export declare const poUploadLiteralsDefault: {
11
12
  en: PoUploadLiterals;
@@ -28,6 +29,7 @@ export declare const poUploadLiteralsDefault: {
28
29
  * - Permite habilitar uma área onde os arquivos podem ser arrastados.
29
30
  */
30
31
  export declare abstract class PoUploadBaseComponent implements ControlValueAccessor, Validator {
32
+ protected poThemeService: PoThemeService;
31
33
  protected uploadService: PoUploadService;
32
34
  additionalHelpEventTrigger: string | undefined;
33
35
  /**
@@ -312,6 +314,7 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
312
314
  private _isMultiple?;
313
315
  private _literals?;
314
316
  private _required?;
317
+ private _size?;
315
318
  private language;
316
319
  private validatorChange;
317
320
  /**
@@ -472,7 +475,23 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
472
475
  * - Não possuir `p-help` e/ou `p-label`.
473
476
  */
474
477
  showRequired: boolean;
475
- constructor(uploadService: PoUploadService, languageService: PoLanguageService);
478
+ /**
479
+ * @optional
480
+ *
481
+ * @description
482
+ *
483
+ * Define o tamanho e as ações do componente:
484
+ * - `small`: altura do button como 32px (disponível apenas para acessibilidade AA).
485
+ * - `medium`: altura do button como 44px.
486
+ *
487
+ * > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
488
+ * Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
489
+ *
490
+ * @default `medium`
491
+ */
492
+ set size(value: string);
493
+ get size(): string;
494
+ constructor(poThemeService: PoThemeService, uploadService: PoUploadService, languageService: PoLanguageService);
476
495
  setDisabledState(isDisabled: boolean): void;
477
496
  registerOnChange(fn: any): void;
478
497
  registerOnTouched(fn: any): void;
@@ -495,7 +514,7 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
495
514
  abstract sendFeedback(): void;
496
515
  abstract setDirectoryAttribute(value: boolean): any;
497
516
  static ɵfac: i0.ɵɵFactoryDeclaration<PoUploadBaseComponent, never>;
498
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoUploadBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "dragDropHeight": { "alias": "p-drag-drop-height"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "url": { "alias": "p-url"; "required": false; }; "name": { "alias": "name"; "required": false; }; "autoUpload": { "alias": "p-auto-upload"; "required": false; }; "disabledRemoveFile": { "alias": "p-disabled-remove-file"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "headers": { "alias": "p-headers"; "required": false; }; "requiredUrl": { "alias": "p-required-url"; "required": false; }; "customAction": { "alias": "p-custom-action"; "required": false; }; "directory": { "alias": "p-directory"; "required": false; }; "dragDrop": { "alias": "p-drag-drop"; "required": false; }; "hideRestrictionsInfo": { "alias": "p-hide-restrictions-info"; "required": false; }; "hideSelectButton": { "alias": "p-hide-select-button"; "required": false; }; "hideSendButton": { "alias": "p-hide-send-button"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "fileRestrictions": { "alias": "p-restrictions"; "required": false; }; "formField": { "alias": "p-form-field"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "isMultiple": { "alias": "p-multiple"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "customActionClick": "p-custom-action-click"; "keydown": "p-keydown"; "onUpload": "p-upload"; "onError": "p-error"; "onSuccess": "p-success"; "ngModelChange": "ngModelChange"; }, never, never, true, never>;
517
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoUploadBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "dragDropHeight": { "alias": "p-drag-drop-height"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "url": { "alias": "p-url"; "required": false; }; "name": { "alias": "name"; "required": false; }; "autoUpload": { "alias": "p-auto-upload"; "required": false; }; "disabledRemoveFile": { "alias": "p-disabled-remove-file"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "headers": { "alias": "p-headers"; "required": false; }; "requiredUrl": { "alias": "p-required-url"; "required": false; }; "customAction": { "alias": "p-custom-action"; "required": false; }; "directory": { "alias": "p-directory"; "required": false; }; "dragDrop": { "alias": "p-drag-drop"; "required": false; }; "hideRestrictionsInfo": { "alias": "p-hide-restrictions-info"; "required": false; }; "hideSelectButton": { "alias": "p-hide-select-button"; "required": false; }; "hideSendButton": { "alias": "p-hide-send-button"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "fileRestrictions": { "alias": "p-restrictions"; "required": false; }; "formField": { "alias": "p-form-field"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "isMultiple": { "alias": "p-multiple"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "customActionClick": "p-custom-action-click"; "keydown": "p-keydown"; "onUpload": "p-upload"; "onError": "p-error"; "onSuccess": "p-success"; "ngModelChange": "ngModelChange"; }, never, never, true, never>;
499
518
  static ngAcceptInputType_appendBox: any;
500
519
  static ngAcceptInputType_autoFocus: any;
501
520
  static ngAcceptInputType_disabledRemoveFile: any;
@@ -4,6 +4,7 @@ import { PoLanguageService } from '../../../services/po-language/po-language.ser
4
4
  import { PoNotificationService } from '../../../services/po-notification/po-notification.service';
5
5
  import { PoProgressStatus } from '../../po-progress/enums/po-progress-status.enum';
6
6
  import { PoButtonComponent } from './../../po-button/po-button.component';
7
+ import { PoThemeService } from '../../../services';
7
8
  import { PoUploadBaseComponent } from './po-upload-base.component';
8
9
  import { PoUploadFile } from './po-upload-file';
9
10
  import { PoUploadStatus } from './po-upload-status.enum';
@@ -44,6 +45,7 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
44
45
  private i18nPipe;
45
46
  private notification;
46
47
  private cd;
48
+ protected poThemeService: PoThemeService;
47
49
  private inputFile;
48
50
  private poUploadDragDropComponent;
49
51
  uploadButton: PoButtonComponent;
@@ -59,7 +61,7 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
59
61
  2: PoProgressStatus;
60
62
  };
61
63
  private calledByCleanInputValue;
62
- constructor(uploadService: PoUploadService, renderer: Renderer2, i18nPipe: PoI18nPipe, notification: PoNotificationService, cd: ChangeDetectorRef, languageService: PoLanguageService);
64
+ constructor(uploadService: PoUploadService, renderer: Renderer2, i18nPipe: PoI18nPipe, notification: PoNotificationService, cd: ChangeDetectorRef, languageService: PoLanguageService, poThemeService: PoThemeService);
63
65
  get displayDragDrop(): boolean;
64
66
  get displaySendButton(): boolean;
65
67
  get selectFileButtonLabel(): string;
@@ -1,5 +1,6 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
+ import { PoThemeService } from '../../../services';
3
4
  import { PoInputGeneric } from '../po-input-generic/po-input-generic';
4
5
  import * as i0 from "@angular/core";
5
6
  /**
@@ -28,13 +29,14 @@ import * as i0 from "@angular/core";
28
29
  *
29
30
  */
30
31
  export declare class PoUrlComponent extends PoInputGeneric implements AfterViewInit, OnDestroy {
32
+ protected poThemeService: PoThemeService;
31
33
  id: string;
32
34
  icon: string;
33
35
  type: string;
34
36
  pattern: string;
35
37
  mask: string;
36
38
  private listener;
37
- constructor(el: ElementRef, cd: ChangeDetectorRef);
39
+ constructor(el: ElementRef, cd: ChangeDetectorRef, poThemeService: PoThemeService);
38
40
  ngAfterViewInit(): void;
39
41
  ngOnDestroy(): void;
40
42
  extraValidation(c: AbstractControl): {
@@ -2,6 +2,7 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./po-info.component";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "@angular/router";
5
+ import * as i4 from "../po-link/po-link.module";
5
6
  /**
6
7
  * @description
7
8
  *
@@ -9,6 +10,6 @@ import * as i3 from "@angular/router";
9
10
  */
10
11
  export declare class PoInfoModule {
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<PoInfoModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<PoInfoModule, [typeof i1.PoInfoComponent], [typeof i2.CommonModule, typeof i3.RouterModule], [typeof i1.PoInfoComponent]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PoInfoModule, [typeof i1.PoInfoComponent], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.PoLinkModule], [typeof i1.PoInfoComponent]>;
13
14
  static ɵinj: i0.ɵɵInjectorDeclaration<PoInfoModule>;
14
15
  }