@po-ui/ng-components 21.6.0 → 21.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 (178) hide show
  1. package/fesm2022/po-ui-ng-components.mjs +729 -191
  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-accordion/po-accordion-base.component.d.ts +1 -1
  5. package/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.d.ts +3 -3
  6. package/lib/components/po-accordion/po-accordion-item-header/po-accordion-item-header.component.d.ts +1 -1
  7. package/lib/components/po-accordion/po-accordion.component.d.ts +1 -1
  8. package/lib/components/po-accordion/services/po-accordion.service.d.ts +1 -1
  9. package/lib/components/po-badge/po-badge.component.d.ts +1 -1
  10. package/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.component.d.ts +2 -2
  11. package/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.service.d.ts +1 -1
  12. package/lib/components/po-breadcrumb/po-breadcrumb.component.d.ts +2 -2
  13. package/lib/components/po-button/po-button-base.component.d.ts +0 -8
  14. package/lib/components/po-button-group/po-button-group-base.component.d.ts +0 -2
  15. package/lib/components/po-calendar/po-calendar-base.component.d.ts +2 -2
  16. package/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.d.ts +3 -3
  17. package/lib/components/po-calendar/po-calendar.component.d.ts +1 -1
  18. package/lib/components/po-calendar/services/po-calendar.lang.service.d.ts +7 -7
  19. package/lib/components/po-context-menu/index.d.ts +3 -0
  20. package/lib/components/po-context-menu/po-context-menu-base.component.d.ts +92 -0
  21. package/lib/components/po-context-menu/po-context-menu-item.interface.d.ts +15 -0
  22. package/lib/components/po-context-menu/po-context-menu.component.d.ts +51 -0
  23. package/lib/components/po-context-menu/po-context-menu.module.d.ts +7 -0
  24. package/lib/components/po-disclaimer/po-disclaimer-base.component.d.ts +1 -1
  25. package/lib/components/po-disclaimer-group/po-disclaimer-group-base.component.d.ts +1 -1
  26. package/lib/components/po-disclaimer-group/po-disclaimer-group.component.d.ts +1 -1
  27. package/lib/components/po-dropdown/po-dropdown.component.d.ts +3 -3
  28. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields-base.component.d.ts +1 -1
  29. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-operation/po-dynamic-form-operation.d.ts +1 -1
  30. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.d.ts +4 -4
  31. package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.d.ts +5 -5
  32. package/lib/components/po-dynamic/po-dynamic-view/services/po-dynamic-view.service.d.ts +1 -1
  33. package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +0 -6
  34. package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +0 -6
  35. package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +2 -2
  36. package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +1 -7
  37. package/lib/components/po-field/po-combo/po-combo-filter.service.d.ts +1 -1
  38. package/lib/components/po-field/po-combo/po-combo.component.d.ts +3 -3
  39. package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +0 -6
  40. package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +3 -3
  41. package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +2 -8
  42. package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +6 -6
  43. package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +4 -4
  44. package/lib/components/po-field/po-email/po-email.component.d.ts +1 -1
  45. package/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.d.ts +1 -1
  46. package/lib/components/po-field/po-field-container/po-field-container.component.d.ts +0 -2
  47. package/lib/components/po-field/po-input/po-input-base.component.d.ts +0 -6
  48. package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +0 -6
  49. package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts +1 -1
  50. package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +3 -3
  51. package/lib/components/po-field/po-lookup/services/po-lookup-filter.service.d.ts +1 -1
  52. package/lib/components/po-field/po-lookup/services/po-lookup-modal.service.d.ts +1 -1
  53. package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +1 -7
  54. package/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.d.ts +1 -1
  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 +5 -5
  57. package/lib/components/po-field/po-radio/po-radio.component.d.ts +2 -2
  58. package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +1 -7
  59. package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +1 -1
  60. package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +27 -9
  61. package/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.d.ts +17 -4
  62. package/lib/components/po-field/po-rich-text/po-rich-text-image-modal/po-rich-text-image-modal.component.d.ts +1 -1
  63. package/lib/components/po-field/po-rich-text/po-rich-text-link-modal/po-rich-text-link-modal.component.d.ts +1 -1
  64. package/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.d.ts +2 -1
  65. package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +2 -2
  66. package/lib/components/po-field/po-rich-text/po-rich-text.service.d.ts +1 -1
  67. package/lib/components/po-field/po-select/po-select.component.d.ts +1 -7
  68. package/lib/components/po-field/po-switch/po-switch.component.d.ts +0 -7
  69. package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +14 -6
  70. package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +12 -3
  71. package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +15 -7
  72. package/lib/components/po-field/po-upload/po-upload-base.service.d.ts +1 -1
  73. package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop-area-overlay/po-upload-drag-drop-area-overlay.component.d.ts +1 -1
  74. package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.component.d.ts +1 -1
  75. package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.directive.d.ts +2 -2
  76. package/lib/components/po-field/po-upload/po-upload-file-restrictions/po-upload-file-restrictions.component.d.ts +2 -2
  77. package/lib/components/po-field/po-upload/po-upload.component.d.ts +6 -4
  78. package/lib/components/po-field/po-url/po-url.component.d.ts +1 -1
  79. package/lib/components/po-grid/po-grid-cell/po-grid-cell.component.d.ts +1 -1
  80. package/lib/components/po-grid/po-grid.component.d.ts +3 -3
  81. package/lib/components/po-header/interfaces/po-header-action-tool.interface.d.ts +10 -2
  82. package/lib/components/po-header/po-header-base.component.d.ts +31 -5
  83. package/lib/components/po-header/po-header-brand/po-header-brand.component.d.ts +3 -2
  84. package/lib/components/po-header/po-header-customer/po-header-customer.component.d.ts +1 -0
  85. package/lib/components/po-header/po-header-menu-item/po-header-menu-item.component.d.ts +3 -2
  86. package/lib/components/po-header/po-header-tools/po-header-tools.component.d.ts +3 -2
  87. package/lib/components/po-header/po-header.component.d.ts +4 -4
  88. package/lib/components/po-helper/po-helper-base.component.d.ts +0 -8
  89. package/lib/components/po-icon/po-icon.component.d.ts +1 -1
  90. package/lib/components/po-list-view/po-list-view-base.component.d.ts +1 -1
  91. package/lib/components/po-list-view/po-list-view.component.d.ts +2 -2
  92. package/lib/components/po-listbox/po-item-list/po-item-list-base.component.d.ts +2 -2
  93. package/lib/components/po-listbox/po-listbox-base.component.d.ts +1 -1
  94. package/lib/components/po-listbox/po-search-list/po-search-list.component.d.ts +1 -1
  95. package/lib/components/po-loading/po-loading-overlay/po-loading-overlay-base.component.d.ts +1 -1
  96. package/lib/components/po-menu/po-menu-base.component.d.ts +13 -1
  97. package/lib/components/po-menu/po-menu-item/po-menu-item.component.d.ts +1 -1
  98. package/lib/components/po-menu/po-menu.component.d.ts +5 -4
  99. package/lib/components/po-menu/services/po-menu-global.service.d.ts +5 -5
  100. package/lib/components/po-menu/services/po-menu-items.service.d.ts +2 -2
  101. package/lib/components/po-menu/services/po-menu.service.d.ts +1 -1
  102. package/lib/components/po-menu-panel/po-menu-panel-item/po-menu-panel-item.component.d.ts +1 -1
  103. package/lib/components/po-menu-panel/po-menu-panel.component.d.ts +3 -3
  104. package/lib/components/po-menu-panel/services/po-menu-panel-items.service.d.ts +2 -2
  105. package/lib/components/po-modal/po-modal.component.d.ts +3 -3
  106. package/lib/components/po-navbar/po-navbar-actions/po-navbar-action/po-navbar-action.component.d.ts +1 -1
  107. package/lib/components/po-navbar/po-navbar-base.component.d.ts +1 -1
  108. package/lib/components/po-navbar/po-navbar-items/po-navbar-items.component.d.ts +1 -1
  109. package/lib/components/po-navbar/po-navbar.component.d.ts +7 -7
  110. package/lib/components/po-page/po-page-default/po-page-default.component.d.ts +3 -3
  111. package/lib/components/po-page/po-page-detail/po-page-detail-base.component.d.ts +1 -1
  112. package/lib/components/po-page/po-page-edit/po-page-edit-base.component.d.ts +1 -1
  113. package/lib/components/po-page/po-page-list/po-page-list.component.d.ts +3 -3
  114. package/lib/components/po-page/po-page-slide/po-page-slide.component.d.ts +4 -4
  115. package/lib/components/po-popover/po-popover-base.component.d.ts +2 -2
  116. package/lib/components/po-popover/po-popover.component.d.ts +6 -1
  117. package/lib/components/po-popup/po-popup.component.d.ts +4 -4
  118. package/lib/components/po-progress/po-progress.component.d.ts +2 -2
  119. package/lib/components/po-skeleton/po-skeleton-base.component.d.ts +0 -23
  120. package/lib/components/po-slide/po-slide.component.d.ts +4 -4
  121. package/lib/components/po-stepper/po-step/po-step.component.d.ts +1 -1
  122. package/lib/components/po-stepper/po-stepper-label/po-stepper-label.component.d.ts +3 -3
  123. package/lib/components/po-stepper/po-stepper.component.d.ts +1 -1
  124. package/lib/components/po-table/po-table-base.component.d.ts +3 -3
  125. package/lib/components/po-table/po-table-column-frozen/po-table-column-frozen.directive.d.ts +2 -2
  126. package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +2 -2
  127. package/lib/components/po-table/po-table-detail/po-table-detail.component.d.ts +1 -1
  128. package/lib/components/po-table/po-table-list-manager/po-table-list-manager.component.d.ts +2 -2
  129. package/lib/components/po-table/po-table-subtitle-circle/po-table-subtitle-circle.component.d.ts +1 -1
  130. package/lib/components/po-table/po-table-subtitle-footer/po-table-subtitle-footer.component.d.ts +1 -1
  131. package/lib/components/po-table/po-table.component.d.ts +6 -6
  132. package/lib/components/po-table/services/po-table.service.d.ts +1 -1
  133. package/lib/components/po-tabs/po-tab/po-tab-base.component.d.ts +11 -1
  134. package/lib/components/po-tabs/po-tab/po-tab.component.d.ts +1 -1
  135. package/lib/components/po-tabs/po-tab-button/po-tab-button.component.d.ts +1 -1
  136. package/lib/components/po-tabs/po-tab-dropdown/po-tab-dropdown.component.d.ts +1 -1
  137. package/lib/components/po-tabs/po-tabs.component.d.ts +22 -2
  138. package/lib/components/po-tabs/po-tabs.service.d.ts +2 -2
  139. package/lib/components/po-tag/po-tag-base.component.d.ts +1 -1
  140. package/lib/components/po-tag/po-tag.component.d.ts +2 -2
  141. package/lib/components/po-toaster/po-toaster-base.component.d.ts +1 -1
  142. package/lib/components/po-toaster/po-toaster.component.d.ts +1 -1
  143. package/lib/components/po-toolbar/po-toolbar-notification/po-toolbar-notification.component.d.ts +1 -1
  144. package/lib/components/po-toolbar/po-toolbar.component.d.ts +1 -1
  145. package/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.d.ts +1 -1
  146. package/lib/components/po-tree-view/po-tree-view.component.d.ts +1 -1
  147. package/lib/components/po-tree-view/services/po-tree-view.service.d.ts +2 -2
  148. package/lib/components/po-widget/po-widget-base.component.d.ts +0 -4
  149. package/lib/directives/po-tooltip/po-tooltip.directive.d.ts +4 -4
  150. package/lib/interceptors/po-http-interceptor/po-http-interceptor-base.service.d.ts +3 -3
  151. package/lib/interceptors/po-http-interceptor/po-http-interceptor-detail/po-http-interceptor-detail.component.d.ts +3 -3
  152. package/lib/interceptors/po-http-request/po-http-request-interceptor.service.d.ts +2 -2
  153. package/lib/services/po-component-injector/po-component-injector.service.d.ts +3 -3
  154. package/lib/services/po-control-position/po-control-position.service.d.ts +3 -3
  155. package/lib/services/po-dialog/po-dialog.component.d.ts +1 -1
  156. package/lib/services/po-dialog/po-dialog.service.d.ts +1 -1
  157. package/lib/services/po-i18n/po-i18n-base.service.d.ts +3 -3
  158. package/lib/services/po-media-query/po-media-query.service.d.ts +1 -1
  159. package/lib/services/po-notification/po-notification.service.d.ts +1 -1
  160. package/lib/services/po-theme/po-theme.service.d.ts +2 -2
  161. package/package.json +4 -4
  162. package/po-ui-ng-components-21.8.0.tgz +0 -0
  163. package/schematics/ng-add/index.js +1 -1
  164. package/schematics/ng-update/v14/index.js +1 -1
  165. package/schematics/ng-update/v15/index.js +1 -1
  166. package/schematics/ng-update/v16/index.js +1 -1
  167. package/schematics/ng-update/v17/index.js +1 -1
  168. package/schematics/ng-update/v18/index.js +2 -2
  169. package/schematics/ng-update/v19/index.js +2 -2
  170. package/schematics/ng-update/v2/index.js +1 -1
  171. package/schematics/ng-update/v20/index.js +2 -2
  172. package/schematics/ng-update/v21/index.js +1 -1
  173. package/schematics/ng-update/v3/index.js +1 -1
  174. package/schematics/ng-update/v4/index.js +1 -1
  175. package/schematics/ng-update/v5/index.js +1 -1
  176. package/schematics/ng-update/v6/index.js +1 -1
  177. package/types/po-ui-ng-components.d.ts +634 -413
  178. package/po-ui-ng-components-21.6.0.tgz +0 -0
@@ -75,7 +75,7 @@ import { PoHelperComponent, PoHelperOptions } from '../../po-helper';
75
75
  *
76
76
  */
77
77
  export declare class PoSelectComponent extends PoFieldValidateModel<any> implements OnChanges {
78
- private el;
78
+ private readonly el;
79
79
  renderer: Renderer2;
80
80
  selectElement: ElementRef;
81
81
  helperEl?: PoHelperComponent;
@@ -113,8 +113,6 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
113
113
  */
114
114
  readonly: boolean;
115
115
  /**
116
- * @Input
117
- *
118
116
  * @optional
119
117
  *
120
118
  * @description
@@ -260,8 +258,6 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
260
258
  set size(value: string);
261
259
  get size(): string;
262
260
  /**
263
- * @Input
264
- *
265
261
  * @optional
266
262
  *
267
263
  * @description
@@ -273,8 +269,6 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
273
269
  */
274
270
  poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
275
271
  /**
276
- * @Input
277
- *
278
272
  * @optional
279
273
  *
280
274
  * @description
@@ -92,9 +92,6 @@ export declare class PoSwitchComponent extends PoFieldModel<any> implements Vali
92
92
  private _initialSize?;
93
93
  private statusChangesSubscription;
94
94
  /**
95
- *
96
- * @Input
97
- *
98
95
  * @optional
99
96
  *
100
97
  * @description
@@ -244,8 +241,6 @@ export declare class PoSwitchComponent extends PoFieldModel<any> implements Vali
244
241
  set size(value: string);
245
242
  get size(): string;
246
243
  /**
247
- * @Input
248
- *
249
244
  * @optional
250
245
  *
251
246
  * @description
@@ -257,8 +252,6 @@ export declare class PoSwitchComponent extends PoFieldModel<any> implements Vali
257
252
  */
258
253
  poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
259
254
  /**
260
- * @Input
261
- *
262
255
  * @optional
263
256
  *
264
257
  * @description
@@ -91,8 +91,6 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
91
91
  */
92
92
  autoFocus: boolean;
93
93
  /**
94
- * @Input
95
- *
96
94
  * @optional
97
95
  *
98
96
  * @description
@@ -174,8 +172,6 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
174
172
  */
175
173
  errorLimit: boolean;
176
174
  /**
177
- * @Input
178
- *
179
175
  * @optional
180
176
  *
181
177
  * @description
@@ -187,8 +183,6 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
187
183
  */
188
184
  poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
189
185
  /**
190
- * @Input
191
- *
192
186
  * @optional
193
187
  *
194
188
  * @description
@@ -254,6 +248,7 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
254
248
  keydown: EventEmitter<KeyboardEvent>;
255
249
  displayAdditionalHelp: boolean;
256
250
  private _disabled;
251
+ private _loading;
257
252
  private _maxlength;
258
253
  private _minlength;
259
254
  private _placeholder;
@@ -281,6 +276,17 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
281
276
  */
282
277
  set disabled(disabled: boolean);
283
278
  get disabled(): boolean;
279
+ /**
280
+ * @optional
281
+ *
282
+ * @description
283
+ * Exibe um ícone de carregamento no lado direito do campo para sinalizar que uma operação está em andamento.
284
+ *
285
+ * @default `false`
286
+ */
287
+ set loading(value: boolean);
288
+ get loading(): boolean;
289
+ get isDisabled(): boolean;
284
290
  /**
285
291
  * @optional
286
292
  *
@@ -358,6 +364,7 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
358
364
  get size(): string;
359
365
  constructor(cd: ChangeDetectorRef);
360
366
  protected onThemeChange(): void;
367
+ protected onAfterThemeChange(): void;
361
368
  callOnChange(value: any): void;
362
369
  controlChangeModelEmitter(value: any): void;
363
370
  setDisabledState(isDisabled: boolean): void;
@@ -368,6 +375,7 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
368
375
  [key: string]: any;
369
376
  };
370
377
  writeValue(value: any): void;
378
+ protected mapSizeToIcon(size: string): string;
371
379
  protected validateModel(): void;
372
380
  private applySizeBasedOnA11y;
373
381
  abstract writeValueModel(value: any): void;
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
2
  import { PoTextareaBaseComponent } from './po-textarea-base.component';
3
3
  import { PoHelperComponent } from '../../po-helper';
4
4
  /**
@@ -27,13 +27,16 @@ import { PoHelperComponent } from '../../po-helper';
27
27
  * </example>
28
28
  *
29
29
  */
30
- export declare class PoTextareaComponent extends PoTextareaBaseComponent implements AfterViewInit, OnChanges {
31
- private el;
30
+ export declare class PoTextareaComponent extends PoTextareaBaseComponent implements AfterViewInit, OnChanges, OnDestroy {
31
+ private readonly el;
32
32
  inputEl: ElementRef;
33
33
  helperEl?: PoHelperComponent;
34
34
  id: string;
35
35
  valueBeforeChange: any;
36
36
  fireChange: boolean;
37
+ hasScroll: boolean;
38
+ hasValue: boolean;
39
+ private resizeObserver;
37
40
  constructor();
38
41
  emitAdditionalHelp(): void;
39
42
  /**
@@ -55,7 +58,9 @@ export declare class PoTextareaComponent extends PoTextareaBaseComponent impleme
55
58
  */
56
59
  focus(): void;
57
60
  ngAfterViewInit(): void;
61
+ protected onAfterThemeChange(): void;
58
62
  ngOnChanges(changes: SimpleChanges): void;
63
+ ngOnDestroy(): void;
59
64
  getAdditionalHelpTooltip(): string;
60
65
  getErrorPattern(): string;
61
66
  hasInvalidClass(): boolean;
@@ -97,4 +102,8 @@ export declare class PoTextareaComponent extends PoTextareaBaseComponent impleme
97
102
  hideAdditionalHelp: boolean;
98
103
  helperSettings?: any;
99
104
  };
105
+ private readonly onWindowResize;
106
+ private checkScrollState;
107
+ private calculateTextareaHeight;
108
+ private initResizeObserver;
100
109
  }
@@ -128,8 +128,6 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
128
128
  /** Rótulo do campo. */
129
129
  label?: string;
130
130
  /**
131
- * @Input
132
- *
133
131
  * @optional
134
132
  *
135
133
  * @description
@@ -242,8 +240,6 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
242
240
  */
243
241
  requiredUrl: boolean;
244
242
  /**
245
- * @Input
246
- *
247
243
  * @optional
248
244
  *
249
245
  * @description
@@ -255,8 +251,6 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
255
251
  */
256
252
  poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
257
253
  /**
258
- * @Input
259
- *
260
254
  * @optional
261
255
  *
262
256
  * @description
@@ -500,10 +494,11 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
500
494
  private _hideSendButton?;
501
495
  private _isMultiple?;
502
496
  private _literals?;
497
+ private _loading;
503
498
  private _required?;
504
499
  private _size?;
505
500
  private _initialSize?;
506
- private language;
501
+ private readonly language;
507
502
  private validatorChange;
508
503
  /**
509
504
  * @optional
@@ -634,6 +629,19 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
634
629
  */
635
630
  set disabled(value: boolean);
636
631
  get disabled(): boolean;
632
+ /**
633
+ * @optional
634
+ *
635
+ * @description
636
+ * Exibe um ícone de carregamento no botão `Selecionar arquivo`, à esquerda do texto, sinalizando que uma operação está em andamento.
637
+ *
638
+ * > Incompatível com `p-drag-drop` e `p-hide-select-button`, pois o estado de loading depende da exibição do botão `Selecionar arquivo`.
639
+ *
640
+ * @default `false`
641
+ */
642
+ set loading(value: boolean);
643
+ get loading(): boolean;
644
+ get isDisabled(): boolean;
637
645
  /**
638
646
  * @optional
639
647
  *
@@ -2,7 +2,7 @@ import { EventEmitter } from '@angular/core';
2
2
  import { PoUploadFile } from './po-upload-file';
3
3
  import { Observable, Subscription } from 'rxjs';
4
4
  export declare class PoUploadBaseService {
5
- private http;
5
+ private readonly http;
6
6
  formField: string;
7
7
  requests: Array<any>;
8
8
  /**
@@ -1,7 +1,7 @@
1
1
  import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
2
2
  import { PoUploadLiterals } from '../../interfaces/po-upload-literals.interface';
3
3
  export declare class PoUploadDragDropAreaOverlayComponent implements AfterViewInit {
4
- private renderer;
4
+ private readonly renderer;
5
5
  DragDropAreaFixed: ElementRef;
6
6
  directoryCompatible: boolean;
7
7
  disabled: boolean;
@@ -2,7 +2,7 @@ import { ElementRef, EventEmitter } from '@angular/core';
2
2
  import { PoUploadDragDropAreaComponent } from './po-upload-drag-drop-area/po-upload-drag-drop-area.component';
3
3
  import { PoUploadLiterals } from '../interfaces/po-upload-literals.interface';
4
4
  export declare class PoUploadDragDropComponent {
5
- private changeDetector;
5
+ private readonly changeDetector;
6
6
  dragDropOverlayElement: ElementRef;
7
7
  dragDropAreaComponent: PoUploadDragDropAreaComponent;
8
8
  directoryCompatible: boolean;
@@ -1,8 +1,8 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { PoUploadLiterals } from '../interfaces/po-upload-literals.interface';
3
3
  export declare class PoUploadDragDropDirective {
4
- private i18nPipe;
5
- private notification;
4
+ private readonly i18nPipe;
5
+ private readonly notification;
6
6
  areaElement: HTMLElement;
7
7
  directoryCompatible: boolean;
8
8
  disabled: boolean;
@@ -1,12 +1,12 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  export declare class PoUploadFileRestrictionsComponent implements OnInit {
3
- private changeDetector;
3
+ private readonly changeDetector;
4
4
  maxFiles: number;
5
5
  literals: any;
6
6
  private _allowedExtensions;
7
7
  private _maxFileSize;
8
8
  private _minFileSize;
9
- private language;
9
+ private readonly language;
10
10
  set allowedExtensions(value: string);
11
11
  get allowedExtensions(): string;
12
12
  set maxFileSize(value: string);
@@ -43,10 +43,10 @@ import { PoHelperComponent } from '../../po-helper';
43
43
  */
44
44
  export declare class PoUploadComponent extends PoUploadBaseComponent implements AfterViewInit, OnChanges {
45
45
  renderer: Renderer2;
46
- private i18nPipe;
47
- private notification;
48
- private inputFile;
49
- private poUploadDragDropComponent;
46
+ private readonly i18nPipe;
47
+ private readonly notification;
48
+ private readonly inputFile;
49
+ private readonly poUploadDragDropComponent;
50
50
  uploadButton: PoButtonComponent;
51
51
  modalComponent: PoModalComponent;
52
52
  helperEl?: PoHelperComponent;
@@ -76,6 +76,8 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
76
76
  get hasMultipleFiles(): boolean;
77
77
  get hasFileNotUploaded(): boolean;
78
78
  get isDisabled(): boolean;
79
+ get isSelectButtonDisabled(): boolean;
80
+ get isFieldDisabled(): boolean;
79
81
  get maxFiles(): number;
80
82
  cancel(file: PoUploadFile, keydown?: KeyboardEvent): void;
81
83
  ngOnChanges(changes: SimpleChanges): void;
@@ -32,7 +32,7 @@ export declare class PoUrlComponent extends PoInputGeneric implements AfterViewI
32
32
  type: string;
33
33
  pattern: string;
34
34
  mask: string;
35
- private listener;
35
+ private readonly listener;
36
36
  constructor();
37
37
  ngAfterViewInit(): void;
38
38
  ngOnDestroy(): void;
@@ -1,6 +1,6 @@
1
1
  import { ElementRef, EventEmitter } from '@angular/core';
2
2
  export declare class PoGridCellComponent {
3
- private changeDetectorRef;
3
+ private readonly changeDetectorRef;
4
4
  align?: string;
5
5
  freeze?: boolean;
6
6
  tabIndex?: number;
@@ -30,8 +30,8 @@ import { PoGridRowActions } from './po-grid-row-actions.interface';
30
30
  * </example>
31
31
  */
32
32
  export declare class PoGridComponent implements OnDestroy {
33
- private changeDetectorRef;
34
- private elRef;
33
+ private readonly changeDetectorRef;
34
+ private readonly elRef;
35
35
  tableElement: ElementRef;
36
36
  tableWrapper: ElementRef;
37
37
  /**
@@ -55,7 +55,7 @@ export declare class PoGridComponent implements OnDestroy {
55
55
  width: string;
56
56
  widporeeze: number;
57
57
  widthActions: number;
58
- private resizeListener;
58
+ private readonly resizeListener;
59
59
  private timeoutResize;
60
60
  private _columns;
61
61
  /**
@@ -103,12 +103,20 @@ export interface PoHeaderActionTool {
103
103
  */
104
104
  export interface PoHeaderActionPopoverAction {
105
105
  /**
106
- *
107
106
  * @description
108
107
  *
109
- * Template que será renderizado dentro do popover
108
+ * Template que será renderizado dentro do popover.
110
109
  */
111
110
  content: TemplateRef<any>;
111
+ /**
112
+ * @description
113
+ *
114
+ * Largura, em pixels, do template renderizado dentro do popover.
115
+ *
116
+ * Valores permitidos: de 240 a 800.
117
+ *
118
+ */
119
+ width?: number;
112
120
  }
113
121
  /**
114
122
  * @usedBy PoHeaderComponent
@@ -6,6 +6,7 @@ import { PoHeaderActions } from './interfaces/po-header-actions.interface';
6
6
  import { PoHeaderBrand } from './interfaces/po-header-brand.interface';
7
7
  import { PoHeaderLiterals } from './interfaces/po-header-literals.interface';
8
8
  import { PoHeaderUser } from './interfaces/po-header-user.interface';
9
+ import { PoFieldSize } from '../../enums/po-field-size.enum';
9
10
  export declare const poNavbarLiteralsDefault: {
10
11
  en: PoHeaderLiterals;
11
12
  es: PoHeaderLiterals;
@@ -84,24 +85,27 @@ export declare const poNavbarLiteralsDefault: {
84
85
  * | `--border-radius-bottom-left` | Valor do radius do lado esquerdo do header | `var(--border-radius-md)` |
85
86
  * | `--border-radius-bottom-right` | Valor do radius do lado direito do header | `var(--border-radius-md)` |
86
87
  * | `--base shadow` | Cor da sombra do header | `0 1px 8px rgba(0, 0, 0, 0.1)` |
88
+ * | `--stroke-color` | Cor da borda inferior do header | `var(--color-brand-01-base)` |
87
89
  * | **Sub-menu** | | |
88
90
  * | `--border-radius` | Valor do radius dos itens do sub-menu | `var(--border-radius-md);` |
89
91
  * | `--text-color-submenu` | Cor do texto dos itens do sub-menu | `var(--color-brand-01-base)` |
90
92
  * | `--icon-color` | Cor do ícone do sub-menu com itens | `var(--color-brand-01-base)` |
91
93
  * | `--border-color` | Cor da borda | `var(--color-transparent)` |
92
94
  * | `--shadow` | Contém o valor da sombra do elemento | `var(--shadow-none)` |
95
+ * | `--font-family-submenu` | Fonte do texto dos itens de sub-menu | `var(--font-family-theme)` |
96
+ * | `--font-weight-submenu` | Peso da fonte do texto dos itens de sub-menu | `var(--font-weight-bold)` |
93
97
  * | **Sub-menu - Hover** | | |
94
98
  * | `--background-hover` | Cor de background dos itens do sub-menu no estado hover | `var(--color-brand-01-lighter)` |
95
99
  * | `--icon-color-hover` | Cor do ícone dos itens de sub-menu no estado hover | `var(--color-brand-01-darkest)` |
96
- * | `--text-color-hover` | Cor do texo dos itens de sub-menu no estado hover | `var(--color-brand-01-darkest)` |
100
+ * | `--text-color-hover` | Cor do texto dos itens de sub-menu no estado hover | `var(--color-brand-01-darkest)` |
97
101
  * | **Sub-menu - pressed** | | |
98
102
  * | `--background-pressed` | Cor de background dos itens do sub-menu no estado pressed | `var(--color-brand-01-light)` |
99
103
  * | `--icon-color-pressed` | Cor do ícone dos itens de sub-menu no estado pressed | `var(--color-brand-01-darkest)` |
100
- * | `--text-color-pressed` | Cor do texo dos itens de sub-menu no estado pressed | `var(--color-brand-01-darkest)` |
104
+ * | `--text-color-pressed` | Cor do texto dos itens de sub-menu no estado pressed | `var(--color-brand-01-darkest)` |
101
105
  * | **Sub-menu - selected** | | |
102
106
  * | `--background-selected` | Cor de background dos itens do sub-menu no estado selected | `var(--color-brand-01-light)` |
103
107
  * | `--icon-color-selected` | Cor do ícone dos itens de sub-menu no estado selected | `var(--color-neutral-dark-95)` |
104
- * | `--text-color-selected` | Cor do texo dos itens de sub-menu no estado selected | `var(--color-brand-01-darkest)` |
108
+ * | `--text-color-selected` | Cor do texto dos itens de sub-menu no estado selected | `var(--color-brand-01-darkest)` |
105
109
  * | **Customer** | | |
106
110
  * | `--background-color-customer` | Cor do background da seção customer | `var(--color-neutral-light-00)` |
107
111
  * | `--border-color` | Cor da borda da seção customer | `var(--color-neutral-light-10)` |
@@ -109,9 +113,9 @@ export declare const poNavbarLiteralsDefault: {
109
113
  * | `--border-width` | Largura da borda da seção customer | `var(--border-width-sm)` |
110
114
  * | **Customer - hover** | | |
111
115
  * | `--background-color-customer-hover` | Cor do background da seção customer no estado hover | `var(--color-brand-01-lighter)` |
112
- * | `--background-color-customer-hover` | Cor do background da seção customer no estado hover | `var(--color-brand-01-lighter)` |
113
116
  * | **Customer - pressed** | | |
114
117
  * | `--background-color-customer-pressed` | Cor do background da seção customer no estado pressed | `var(--color-brand-01-light)` |
118
+ * | `--border-width-pressed` | Largura da borda da seção customer no estado pressed | `var(--border-width-md)` |
115
119
  *
116
120
  */
117
121
  export declare abstract class PoHeaderBaseComponent {
@@ -120,7 +124,8 @@ export declare abstract class PoHeaderBaseComponent {
120
124
  menuCollapseJoinExternal: any[];
121
125
  private _brand;
122
126
  private _literals;
123
- private language;
127
+ private readonly language;
128
+ private readonly themeChangeSignal;
124
129
  /**
125
130
  * @optional
126
131
  *
@@ -247,6 +252,25 @@ export declare abstract class PoHeaderBaseComponent {
247
252
  */
248
253
  set literals(value: PoHeaderLiterals);
249
254
  get literals(): PoHeaderLiterals;
255
+ /**
256
+ * @optional
257
+ *
258
+ * @Input
259
+ *
260
+ * @description
261
+ *
262
+ * Define o tamanho do componente:
263
+ * - `small`: altura de 44px (disponível apenas para acessibilidade AA).
264
+ * - `medium`: altura de 56px.
265
+ *
266
+ * > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
267
+ * Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
268
+ *
269
+ * @default `medium`
270
+ */
271
+ sizeInput: import("@angular/core").InputSignal<string>;
272
+ size: import("@angular/core").Signal<string>;
273
+ get hostSize(): PoFieldSize;
250
274
  /**
251
275
  * @optional
252
276
  *
@@ -259,4 +283,6 @@ export declare abstract class PoHeaderBaseComponent {
259
283
  constructor(languageService: PoLanguageService);
260
284
  get menuItems(): Array<PoHeaderActions>;
261
285
  private generateRandomId;
286
+ protected onThemeChange(): void;
287
+ abstract updateMenu(): void;
262
288
  }
@@ -3,8 +3,8 @@ import { Router } from '@angular/router';
3
3
  import { PoMenuItem } from '../../po-menu';
4
4
  import { PoHeaderBrand } from '../interfaces/po-header-brand.interface';
5
5
  export declare class PoHeaderbrandComponent implements AfterViewInit, OnChanges, OnDestroy {
6
- private cd;
7
- private router;
6
+ private readonly cd;
7
+ private readonly router;
8
8
  private resizeSub;
9
9
  showTitleTooltip: boolean;
10
10
  smallLogo: boolean;
@@ -15,6 +15,7 @@ export declare class PoHeaderbrandComponent implements AfterViewInit, OnChanges,
15
15
  hideButtonMenu?: boolean;
16
16
  menuCollapse: Array<PoMenuItem>;
17
17
  externalMenu: boolean;
18
+ size: import("@angular/core").InputSignal<string>;
18
19
  constructor(cd: ChangeDetectorRef, router: Router);
19
20
  ngAfterViewInit(): void;
20
21
  ngOnDestroy(): void;
@@ -21,6 +21,7 @@ export declare class PoHeaderCustomerComponent {
21
21
  poPopupAction: PoPopupComponent;
22
22
  poPopoverAction: PoPopoverComponent;
23
23
  headerUser: PoHeaderUser;
24
+ size: import("@angular/core").InputSignal<string>;
24
25
  constructor(languageService: PoLanguageService);
25
26
  onClickPopup(): void;
26
27
  onClickUserSection(): void;
@@ -18,8 +18,8 @@ export declare const poHeaderMoreLiteralsDefault: {
18
18
  };
19
19
  };
20
20
  export declare class PoHeaderMenuItemComponent implements OnChanges, OnInit, OnDestroy {
21
- private cd;
22
- private router;
21
+ private readonly cd;
22
+ private readonly router;
23
23
  buttonMoreRef: any;
24
24
  lastItemSelected: PoHeaderActions;
25
25
  selectedItem: boolean;
@@ -31,6 +31,7 @@ export declare class PoHeaderMenuItemComponent implements OnChanges, OnInit, OnD
31
31
  item: PoHeaderActions;
32
32
  itemOverFlow: Array<PoHeaderActions>;
33
33
  overflowButton: boolean;
34
+ size: import("@angular/core").InputSignal<string>;
34
35
  itemClick: EventEmitter<any>;
35
36
  constructor(cd: ChangeDetectorRef, router: Router, languageService: PoLanguageService);
36
37
  ngOnInit(): void;
@@ -6,8 +6,8 @@ import { PoPopupComponent } from '../../po-popup';
6
6
  import { PoHeaderActionTool } from '../interfaces/po-header-action-tool.interface';
7
7
  import { PoHeaderLiterals } from '../interfaces/po-header-literals.interface';
8
8
  export declare class PoHeaderToolsComponent {
9
- private router;
10
- private cd;
9
+ private readonly router;
10
+ private readonly cd;
11
11
  _actionTools: Array<PoHeaderActionTool>;
12
12
  buttonActionElements: QueryList<ElementRef>;
13
13
  buttonActionComponents: QueryList<PoButtonComponent>;
@@ -16,6 +16,7 @@ export declare class PoHeaderToolsComponent {
16
16
  forceActionTools?: boolean;
17
17
  set actionTools(value: Array<PoHeaderActionTool>);
18
18
  literals: PoHeaderLiterals;
19
+ size: import("@angular/core").InputSignal<string>;
19
20
  get actionTools(): Array<PoHeaderActionTool>;
20
21
  get popoverIndexes(): Array<number>;
21
22
  headerTemplate: TemplateRef<any>;
@@ -27,9 +27,9 @@ import { PoHeaderMenuItemComponent } from './po-header-menu-item/po-header-menu-
27
27
  *
28
28
  */
29
29
  export declare class PoHeaderComponent extends PoHeaderBaseComponent implements AfterViewInit, OnChanges, OnInit, OnDestroy {
30
- private cd;
31
- private elRef;
32
- private menuGlobalService;
30
+ private readonly cd;
31
+ private readonly elRef;
32
+ private readonly menuGlobalService;
33
33
  afterViewInitWascalled: boolean;
34
34
  showMenu: boolean;
35
35
  visibleMenuItems: Array<any>;
@@ -46,7 +46,7 @@ export declare class PoHeaderComponent extends PoHeaderBaseComponent implements
46
46
  menuExternal: any[];
47
47
  existMenuExternal: boolean;
48
48
  applicationMenu: PoMenuComponent;
49
- private id;
49
+ private readonly id;
50
50
  private currentWidth;
51
51
  private previousMenusItems;
52
52
  buttonFirstAction: ElementRef;
@@ -53,8 +53,6 @@ import { PoHelperOptions } from './interfaces/po-helper.interface';
53
53
  */
54
54
  export declare class PoHelperBaseComponent {
55
55
  /**
56
- * @Input
57
- *
58
56
  * @optional
59
57
  *
60
58
  * @description
@@ -77,8 +75,6 @@ export declare class PoHelperBaseComponent {
77
75
  */
78
76
  helper: import("@angular/core").InputSignal<string | PoHelperOptions>;
79
77
  /**
80
- * @Input
81
- *
82
78
  * @optional
83
79
  *
84
80
  * @description
@@ -95,8 +91,6 @@ export declare class PoHelperBaseComponent {
95
91
  size: import("@angular/core").InputSignal<string>;
96
92
  get hostSize(): string;
97
93
  /**
98
- * @Input
99
- *
100
94
  * @optional
101
95
  *
102
96
  * @description
@@ -107,8 +101,6 @@ export declare class PoHelperBaseComponent {
107
101
  */
108
102
  disabled: import("@angular/core").InputSignal<boolean>;
109
103
  /**
110
- * @Input
111
- *
112
104
  * @optional
113
105
  *
114
106
  * @description
@@ -12,7 +12,7 @@ export declare class PoIconComponent {
12
12
  iconElement: ElementRef;
13
13
  class: string;
14
14
  private _icon;
15
- private _iconToken;
15
+ private readonly _iconToken;
16
16
  hostPIcon: string | null;
17
17
  constructor();
18
18
  /**
@@ -66,7 +66,7 @@ export declare class PoListViewBaseComponent {
66
66
  private _literals;
67
67
  private _select;
68
68
  private _showMoreDisabled;
69
- private language;
69
+ private readonly language;
70
70
  /**
71
71
  * @optional
72
72
  *
@@ -26,11 +26,11 @@ import { PoListViewDetailTemplateDirective } from './po-list-view-detail-templat
26
26
  * </example>
27
27
  */
28
28
  export declare class PoListViewComponent extends PoListViewBaseComponent implements AfterContentInit, DoCheck {
29
- private changeDetector;
29
+ private readonly changeDetector;
30
30
  listViewContentTemplate: PoListViewContentTemplateDirective;
31
31
  listViewDetailTemplate: PoListViewDetailTemplateDirective;
32
32
  poPopupComponent: PoPopupComponent;
33
- private differ;
33
+ private readonly differ;
34
34
  constructor();
35
35
  get hasContentTemplate(): boolean;
36
36
  get hasDetailTemplate(): boolean;
@@ -10,8 +10,8 @@ import { PoItemListOption } from './interfaces/po-item-list-option.interface';
10
10
  * O componente `po-item-list` é a menor parte da lista de ação que compõem o componente [**PO Listbox**](/documentation/po-listbox).
11
11
  */
12
12
  export declare class PoItemListBaseComponent {
13
- private _label;
14
- private _value;
13
+ private readonly _label;
14
+ private readonly _value;
15
15
  private _type;
16
16
  private _visible;
17
17
  private _disabled;
@@ -20,7 +20,7 @@ export declare class PoListBoxBaseComponent {
20
20
  private _items;
21
21
  private _type;
22
22
  private _literals;
23
- private language;
23
+ private readonly language;
24
24
  private _size?;
25
25
  private _initialSize?;
26
26
  listboxSubitems: boolean;