@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,4 +1,5 @@
1
1
  import { EventEmitter } from '@angular/core';
2
+ import { PoThemeService } from '../../services';
2
3
  import { PoLanguageService } from '../../services/po-language/po-language.service';
3
4
  import { PoListViewAction } from './interfaces/po-list-view-action.interface';
4
5
  import { PoListViewLiterals } from './interfaces/po-list-view-literals.interface';
@@ -21,6 +22,7 @@ export declare const poListViewLiteralsDefault: {
21
22
  * através da diretiva **[p-list-view-detail-template](/documentation/po-list-view-detail-template)**.
22
23
  */
23
24
  export declare class PoListViewBaseComponent {
25
+ protected poThemeService: PoThemeService;
24
26
  /** Recebe uma propriedade que será utilizada para recuperar o valor do objeto que será usado como link para o título. */
25
27
  propertyLink?: string;
26
28
  /** Recebe uma propriedade que será utilizada para recuperar o valor do objeto que será exibido como o título de cada item. */
@@ -59,6 +61,7 @@ export declare class PoListViewBaseComponent {
59
61
  selectAll: boolean;
60
62
  showHeader: boolean;
61
63
  private _actions;
64
+ private _componentsSize;
62
65
  private _height;
63
66
  private _hideSelectAll;
64
67
  private _items;
@@ -75,6 +78,22 @@ export declare class PoListViewBaseComponent {
75
78
  */
76
79
  set actions(value: Array<PoListViewAction>);
77
80
  get actions(): Array<PoListViewAction>;
81
+ /**
82
+ * @optional
83
+ *
84
+ * @description
85
+ *
86
+ * Define o tamanho dos componentes de formulário no template:
87
+ * - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
88
+ * - `medium`: aplica a medida medium de cada componente.
89
+ *
90
+ * > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
91
+ * Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
92
+ *
93
+ * @default `medium`
94
+ */
95
+ set componentsSize(value: string);
96
+ get componentsSize(): string;
78
97
  /**
79
98
  * @optional
80
99
  *
@@ -164,7 +183,7 @@ export declare class PoListViewBaseComponent {
164
183
  */
165
184
  set showMoreDisabled(value: boolean);
166
185
  get showMoreDisabled(): boolean;
167
- constructor(languageService: PoLanguageService);
186
+ constructor(languageService: PoLanguageService, poThemeService: PoThemeService);
168
187
  onClickAction(listViewAction: PoListViewAction, item: any): void;
169
188
  onShowMore(): void;
170
189
  runTitleAction(listItem: any): void;
@@ -174,5 +193,5 @@ export declare class PoListViewBaseComponent {
174
193
  private checkIfItemsAreSelected;
175
194
  private showMainHeader;
176
195
  static ɵfac: i0.ɵɵFactoryDeclaration<PoListViewBaseComponent, never>;
177
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoListViewBaseComponent, never, never, { "propertyLink": { "alias": "p-property-link"; "required": false; }; "propertyTitle": { "alias": "p-property-title"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "height": { "alias": "p-height"; "required": false; }; "hideSelectAll": { "alias": "p-hide-select-all"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "select": { "alias": "p-select"; "required": false; }; "showMoreDisabled": { "alias": "p-show-more-disabled"; "required": false; }; }, { "showMore": "p-show-more"; "titleAction": "p-title-action"; "showDetail": "p-show-detail"; }, never, never, true, never>;
196
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoListViewBaseComponent, never, never, { "propertyLink": { "alias": "p-property-link"; "required": false; }; "propertyTitle": { "alias": "p-property-title"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "componentsSize": { "alias": "p-components-size"; "required": false; }; "height": { "alias": "p-height"; "required": false; }; "hideSelectAll": { "alias": "p-hide-select-all"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "select": { "alias": "p-select"; "required": false; }; "showMoreDisabled": { "alias": "p-show-more-disabled"; "required": false; }; }, { "showMore": "p-show-more"; "titleAction": "p-title-action"; "showDetail": "p-show-detail"; }, never, never, true, never>;
178
197
  }
@@ -1,6 +1,7 @@
1
1
  import { AfterContentInit, ChangeDetectorRef, DoCheck, IterableDiffers } from '@angular/core';
2
2
  import { PoLanguageService } from '../../services/po-language/po-language.service';
3
3
  import { PoPopupComponent } from '../po-popup/po-popup.component';
4
+ import { PoThemeService } from '../../services';
4
5
  import { PoListViewAction } from './interfaces/po-list-view-action.interface';
5
6
  import { PoListViewBaseComponent } from './po-list-view-base.component';
6
7
  import { PoListViewContentTemplateDirective } from './po-list-view-content-template/po-list-view-content-template.directive';
@@ -29,11 +30,12 @@ import * as i0 from "@angular/core";
29
30
  */
30
31
  export declare class PoListViewComponent extends PoListViewBaseComponent implements AfterContentInit, DoCheck {
31
32
  private changeDetector;
33
+ protected poThemeService: PoThemeService;
32
34
  listViewContentTemplate: PoListViewContentTemplateDirective;
33
35
  listViewDetailTemplate: PoListViewDetailTemplateDirective;
34
36
  poPopupComponent: PoPopupComponent;
35
37
  private differ;
36
- constructor(changeDetector: ChangeDetectorRef, differs: IterableDiffers, languageService: PoLanguageService);
38
+ constructor(changeDetector: ChangeDetectorRef, differs: IterableDiffers, languageService: PoLanguageService, poThemeService: PoThemeService);
37
39
  get hasContentTemplate(): boolean;
38
40
  get hasDetailTemplate(): boolean;
39
41
  get displayShowMoreButton(): boolean;
@@ -1,9 +1,9 @@
1
1
  import { EventEmitter, TemplateRef } from '@angular/core';
2
+ import { PoItemListFilterMode } from '../enums/po-item-list-filter-mode.enum';
2
3
  import { PoItemListType } from '../enums/po-item-list-type.enum';
3
4
  import { PoItemListAction } from './interfaces/po-item-list-action.interface';
4
5
  import { PoItemListOptionGroup } from './interfaces/po-item-list-option-group.interface';
5
6
  import { PoItemListOption } from './interfaces/po-item-list-option.interface';
6
- import { PoItemListFilterMode } from '../enums/po-item-list-filter-mode.enum';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
9
  * @description
@@ -33,6 +33,8 @@ export declare class PoItemListBaseComponent {
33
33
  item: PoItemListAction | PoItemListOption | PoItemListOptionGroup | any;
34
34
  /** Texto de exibição do item. */
35
35
  label: string;
36
+ /** Tamanho do texto exibido. */
37
+ size: string;
36
38
  /** Valor do item. */
37
39
  value: string;
38
40
  danger: boolean;
@@ -104,7 +106,7 @@ export declare class PoItemListBaseComponent {
104
106
  get activeTabs(): boolean;
105
107
  protected emitActiveTabs(tab: any): void;
106
108
  static ɵfac: i0.ɵɵFactoryDeclaration<PoItemListBaseComponent, never>;
107
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoItemListBaseComponent, never, never, { "type": { "alias": "p-type"; "required": false; }; "visible": { "alias": "p-visible"; "required": false; }; "item": { "alias": "p-item"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; "danger": { "alias": "p-danger"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "selected": { "alias": "p-selected"; "required": false; }; "separator": { "alias": "p-separator"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "checkboxValue": { "alias": "p-checkbox-value"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "template": { "alias": "p-template"; "required": false; }; "templateContext": { "alias": "p-template-context"; "required": false; }; "searchValue": { "alias": "p-search-value"; "required": false; }; "filterMode": { "alias": "p-filter-mode"; "required": false; }; "isFiltering": { "alias": "p-filtering"; "required": false; }; "shouldMarkLetters": { "alias": "p-should-mark-letter"; "required": false; }; "compareCache": { "alias": "p-compare-cache"; "required": false; }; "comboService": { "alias": "p-combo-service"; "required": false; }; "isTabs": { "alias": "p-is-tabs"; "required": false; }; "tabHide": { "alias": "p-tab-hide"; "required": false; }; "activeTabs": { "alias": "p-active-tabs"; "required": false; }; }, { "clickItem": "p-click-item"; "checkboxItem": "p-selectcheckbox-item"; "comboItem": "p-selectcombo-item"; "tabsItem": "p-emit-item-tabs"; "activatedTab": "p-activated-tabs"; }, never, never, true, never>;
109
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoItemListBaseComponent, never, never, { "type": { "alias": "p-type"; "required": false; }; "visible": { "alias": "p-visible"; "required": false; }; "item": { "alias": "p-item"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; "danger": { "alias": "p-danger"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "selected": { "alias": "p-selected"; "required": false; }; "separator": { "alias": "p-separator"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "checkboxValue": { "alias": "p-checkbox-value"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "template": { "alias": "p-template"; "required": false; }; "templateContext": { "alias": "p-template-context"; "required": false; }; "searchValue": { "alias": "p-search-value"; "required": false; }; "filterMode": { "alias": "p-filter-mode"; "required": false; }; "isFiltering": { "alias": "p-filtering"; "required": false; }; "shouldMarkLetters": { "alias": "p-should-mark-letter"; "required": false; }; "compareCache": { "alias": "p-compare-cache"; "required": false; }; "comboService": { "alias": "p-combo-service"; "required": false; }; "isTabs": { "alias": "p-is-tabs"; "required": false; }; "tabHide": { "alias": "p-tab-hide"; "required": false; }; "activeTabs": { "alias": "p-active-tabs"; "required": false; }; }, { "clickItem": "p-click-item"; "checkboxItem": "p-selectcheckbox-item"; "comboItem": "p-selectcombo-item"; "tabsItem": "p-emit-item-tabs"; "activatedTab": "p-activated-tabs"; }, never, never, true, never>;
108
110
  static ngAcceptInputType_danger: any;
109
111
  static ngAcceptInputType_selected: any;
110
112
  static ngAcceptInputType_separator: any;
@@ -2,6 +2,7 @@ import { EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { PoLanguageService } from '../../services/po-language/po-language.service';
3
3
  import { PoItemListType } from './enums/po-item-list-type.enum';
4
4
  import { PoItemListAction } from './po-item-list/interfaces/po-item-list-action.interface';
5
+ import { PoThemeService } from '../../services';
5
6
  import { PoItemListFilterMode } from './enums/po-item-list-filter-mode.enum';
6
7
  import { PoListBoxLiterals } from './interfaces/po-listbox-literals.interface';
7
8
  import { PoItemListOptionGroup } from './po-item-list/interfaces/po-item-list-option-group.interface';
@@ -18,10 +19,12 @@ export declare const poListBoxLiteralsDefault: {
18
19
  * O componente `po-listbox` é uma caixa suspensa que aparece sobre a interface após ser acionado por um gatilho visível em tela, como o dropdown. Ele apoia trazendo agrupamentos de opções. O componente listbox é composto pelo componente [**PO Item List**](/documentation/po-item-list).
19
20
  */
20
21
  export declare class PoListBoxBaseComponent {
22
+ protected poThemeService: PoThemeService;
21
23
  private _items;
22
24
  private _type;
23
25
  private _literals;
24
26
  private language;
27
+ private _size?;
25
28
  visible: boolean;
26
29
  set type(value: string);
27
30
  get type(): PoItemListType;
@@ -60,15 +63,17 @@ export declare class PoListBoxBaseComponent {
60
63
  filterMode: PoItemListFilterMode;
61
64
  isFiltering: boolean;
62
65
  shouldMarkLetters: boolean;
66
+ set size(value: string);
67
+ get size(): string;
63
68
  compareCache: boolean;
64
69
  comboService: any;
65
70
  containerWidth: number;
66
71
  activatedTab: EventEmitter<any>;
67
72
  clickTab: EventEmitter<any>;
68
73
  changeStateTabs: EventEmitter<any>;
69
- constructor(languageService: PoLanguageService);
74
+ constructor(languageService: PoLanguageService, poThemeService: PoThemeService);
70
75
  static ɵfac: i0.ɵɵFactoryDeclaration<PoListBoxBaseComponent, never>;
71
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoListBoxBaseComponent, never, never, { "visible": { "alias": "p-visible"; "required": false; }; "type": { "alias": "p-type"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "isTabs": { "alias": "p-is-tabs"; "required": false; }; "param": { "alias": "p-param"; "required": false; }; "checkboxAllValue": { "alias": "p-checkboxAllValue"; "required": false; }; "selectedOptions": { "alias": "p-selected-options"; "required": false; }; "selectedOption": { "alias": "p-selected-option"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "literalSearch": { "alias": "p-literal-search"; "required": false; }; "fieldValueSearch": { "alias": "p-field-value-search"; "required": false; }; "hideSearch": { "alias": "p-hide-search"; "required": false; }; "hideSelectAll": { "alias": "p-hide-select-all"; "required": false; }; "multiselectTemplate": { "alias": "p-multiselect-template"; "required": false; }; "template": { "alias": "p-template"; "required": false; }; "placeholderSearch": { "alias": "p-placeholder-search"; "required": false; }; "searchValue": { "alias": "p-search-value"; "required": false; }; "isServerSearching": { "alias": "p-is-searching"; "required": false; }; "infiniteLoading": { "alias": "p-infinite-loading"; "required": false; }; "infiniteScroll": { "alias": "p-infinite-scroll"; "required": false; }; "cache": { "alias": "p-cache"; "required": false; }; "infiniteScrollDistance": { "alias": "p-infinite-scroll-distance"; "required": false; }; "filterMode": { "alias": "p-filter-mode"; "required": false; }; "isFiltering": { "alias": "p-filtering"; "required": false; }; "shouldMarkLetters": { "alias": "p-should-mark-letter"; "required": false; }; "compareCache": { "alias": "p-compare-cache"; "required": false; }; "comboService": { "alias": "p-combo-service"; "required": false; }; "containerWidth": { "alias": "p-container-width"; "required": false; }; }, { "selectItem": "p-select-item"; "closeEvent": "p-close"; "change": "p-change"; "selectCombo": "p-selectcombo-item"; "changeAll": "p-change-all"; "UpdateInfiniteScroll": "p-update-infinite-scroll"; "changeSearch": "p-change-search"; "activatedTab": "p-activated-tabs"; "clickTab": "p-click-tabs"; "changeStateTabs": "p-change-state-tabs"; }, never, never, true, never>;
76
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoListBoxBaseComponent, never, never, { "visible": { "alias": "p-visible"; "required": false; }; "type": { "alias": "p-type"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "isTabs": { "alias": "p-is-tabs"; "required": false; }; "param": { "alias": "p-param"; "required": false; }; "checkboxAllValue": { "alias": "p-checkboxAllValue"; "required": false; }; "selectedOptions": { "alias": "p-selected-options"; "required": false; }; "selectedOption": { "alias": "p-selected-option"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "literalSearch": { "alias": "p-literal-search"; "required": false; }; "fieldValueSearch": { "alias": "p-field-value-search"; "required": false; }; "hideSearch": { "alias": "p-hide-search"; "required": false; }; "hideSelectAll": { "alias": "p-hide-select-all"; "required": false; }; "multiselectTemplate": { "alias": "p-multiselect-template"; "required": false; }; "template": { "alias": "p-template"; "required": false; }; "placeholderSearch": { "alias": "p-placeholder-search"; "required": false; }; "searchValue": { "alias": "p-search-value"; "required": false; }; "isServerSearching": { "alias": "p-is-searching"; "required": false; }; "infiniteLoading": { "alias": "p-infinite-loading"; "required": false; }; "infiniteScroll": { "alias": "p-infinite-scroll"; "required": false; }; "cache": { "alias": "p-cache"; "required": false; }; "infiniteScrollDistance": { "alias": "p-infinite-scroll-distance"; "required": false; }; "filterMode": { "alias": "p-filter-mode"; "required": false; }; "isFiltering": { "alias": "p-filtering"; "required": false; }; "shouldMarkLetters": { "alias": "p-should-mark-letter"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "compareCache": { "alias": "p-compare-cache"; "required": false; }; "comboService": { "alias": "p-combo-service"; "required": false; }; "containerWidth": { "alias": "p-container-width"; "required": false; }; }, { "selectItem": "p-select-item"; "closeEvent": "p-close"; "change": "p-change"; "selectCombo": "p-selectcombo-item"; "changeAll": "p-change-all"; "UpdateInfiniteScroll": "p-update-infinite-scroll"; "changeSearch": "p-change-search"; "activatedTab": "p-activated-tabs"; "clickTab": "p-click-tabs"; "changeStateTabs": "p-change-state-tabs"; }, never, never, true, never>;
72
77
  static ngAcceptInputType_visible: any;
73
78
  static ngAcceptInputType_isTabs: any;
74
79
  static ngAcceptInputType_isServerSearching: any;
@@ -6,10 +6,12 @@ import { PoItemListOption } from './po-item-list/interfaces/po-item-list-option.
6
6
  import { PoLanguageService } from '../../services/po-language/po-language.service';
7
7
  import { PoSearchListComponent } from './po-search-list/po-search-list.component';
8
8
  import { Observable } from 'rxjs';
9
+ import { PoThemeService } from '../../services';
9
10
  import * as i0 from "@angular/core";
10
11
  export declare class PoListBoxComponent extends PoListBoxBaseComponent implements AfterViewInit, OnChanges, OnDestroy {
11
12
  element: ElementRef;
12
13
  private renderer;
14
+ protected poThemeService: PoThemeService;
13
15
  private router;
14
16
  private changeDetector;
15
17
  listbox: ElementRef;
@@ -17,7 +19,7 @@ export declare class PoListBoxComponent extends PoListBoxBaseComponent implement
17
19
  searchElement: PoSearchListComponent;
18
20
  private scrollEvent$;
19
21
  private subscriptionScrollEvent;
20
- constructor(element: ElementRef, renderer: Renderer2, languageService: PoLanguageService, router: Router, changeDetector: ChangeDetectorRef);
22
+ constructor(element: ElementRef, renderer: Renderer2, languageService: PoLanguageService, poThemeService: PoThemeService, router: Router, changeDetector: ChangeDetectorRef);
21
23
  ngAfterViewInit(): void;
22
24
  ngOnChanges(changes?: SimpleChanges): void;
23
25
  ngOnDestroy(): void;
@@ -14,6 +14,8 @@ export declare class PoSearchListComponent {
14
14
  /** Propriedade que recebe as literais definidas no `po-listbox`. */
15
15
  literals?: PoListBoxLiterals;
16
16
  fieldValue: string;
17
+ /** Tamanho do texto de exibido do item. */
18
+ size: string;
17
19
  /** Evento que será disparado a cada tecla digitada no campo de busca. */
18
20
  change: EventEmitter<any>;
19
21
  private _placeholder?;
@@ -37,5 +39,5 @@ export declare class PoSearchListComponent {
37
39
  clean(): void;
38
40
  isTypeof(object: any, type: any): boolean;
39
41
  static ɵfac: i0.ɵɵFactoryDeclaration<PoSearchListComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<PoSearchListComponent, "po-search-list", never, { "literals": { "alias": "p-literals"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; }, { "change": "p-change"; }, never, never, false, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<PoSearchListComponent, "po-search-list", never, { "literals": { "alias": "p-literals"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; }, { "change": "p-change"; }, never, never, false, never>;
41
43
  }
@@ -30,10 +30,10 @@ export declare class PoLoadingBaseComponent {
30
30
  * @default `lg`
31
31
  *
32
32
  * Valores válidos:
33
- * - `xs`: tamanho `extra small`
34
- * - `sm`: tamanho `small`
35
- * - `md`: tamanho `medium`
36
- * - `lg`: tamanho `large`
33
+ * - `xs`: 16px
34
+ * - `sm`: 24px
35
+ * - `md`: 32px
36
+ * - `lg`: 80px
37
37
  */
38
38
  set size(value: string);
39
39
  get size(): string;
@@ -86,10 +86,10 @@ export declare class PoLoadingOverlayBaseComponent {
86
86
  * Define o tamanho do componente com base no tamanho do ícone de *loading*.
87
87
  *
88
88
  * Tamanhos disponíveis para o *loading*:
89
- * - `xs`: 16px
90
- * - `sm`: 24px
91
- * - `md`: 48px
92
- * - `lg`: 80px (valor padrão)
89
+ * - `xs`: 1rem
90
+ * - `sm`: 1.5rem
91
+ * - `md`: 3rem
92
+ * - `lg`: 5rem (valor padrão)
93
93
  *
94
94
  * @default `lg`
95
95
  */
@@ -1,3 +1,4 @@
1
+ import { PoThemeService } from '../../services';
1
2
  import { PoLanguageService } from '../../services/po-language/po-language.service';
2
3
  import { PoMenuFilter } from './po-menu-filter/po-menu-filter.interface';
3
4
  import { PoMenuItem } from './po-menu-item.interface';
@@ -83,6 +84,7 @@ export declare abstract class PoMenuBaseComponent {
83
84
  menuGlobalService: PoMenuGlobalService;
84
85
  menuService: PoMenuService;
85
86
  languageService: PoLanguageService;
87
+ protected poThemeService: PoThemeService;
86
88
  allowIcons: boolean;
87
89
  allowCollapseMenu: boolean;
88
90
  allowCollapseHover: boolean;
@@ -90,6 +92,7 @@ export declare abstract class PoMenuBaseComponent {
90
92
  filterService: PoMenuFilter;
91
93
  readonly literals: any;
92
94
  private _collapsed;
95
+ private _componentsSize;
93
96
  private _filter;
94
97
  private _searchTreeItems;
95
98
  private _level;
@@ -128,6 +131,22 @@ export declare abstract class PoMenuBaseComponent {
128
131
  */
129
132
  set collapsed(collapsed: boolean);
130
133
  get collapsed(): boolean;
134
+ /**
135
+ * @optional
136
+ *
137
+ * @description
138
+ *
139
+ * Define o tamanho dos componentes de formulário no menu:
140
+ * - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
141
+ * - `medium`: aplica a medida medium de cada componente.
142
+ *
143
+ * > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
144
+ * Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
145
+ *
146
+ * @default `medium`
147
+ */
148
+ set componentsSize(value: string);
149
+ get componentsSize(): string;
131
150
  /** Lista dos itens do menu. Se o valor estiver indefinido ou inválido, será inicializado como um array vazio. */
132
151
  set menus(menus: Array<PoMenuItem>);
133
152
  get menus(): Array<PoMenuItem>;
@@ -266,7 +285,7 @@ export declare abstract class PoMenuBaseComponent {
266
285
  */
267
286
  set logoLink(value: boolean | string);
268
287
  get logoLink(): boolean | string;
269
- constructor(menuGlobalService: PoMenuGlobalService, menuService: PoMenuService, languageService: PoLanguageService);
288
+ constructor(menuGlobalService: PoMenuGlobalService, menuService: PoMenuService, languageService: PoLanguageService, poThemeService: PoThemeService);
270
289
  protected setMenuExtraProperties(): void;
271
290
  protected setMenuItemProperties(menuItem: PoMenuItem): void;
272
291
  protected validateMenus(menus: any): void;
@@ -280,6 +299,6 @@ export declare abstract class PoMenuBaseComponent {
280
299
  protected abstract checkingRouterChildrenFragments(): any;
281
300
  protected abstract validateCollapseClass(): any;
282
301
  static ɵfac: i0.ɵɵFactoryDeclaration<PoMenuBaseComponent, never>;
283
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoMenuBaseComponent, never, never, { "automaticToggle": { "alias": "p-automatic-toggle"; "required": false; }; "collapsed": { "alias": "p-collapsed"; "required": false; }; "menus": { "alias": "p-menus"; "required": false; }; "filter": { "alias": "p-filter"; "required": false; }; "searchTreeItems": { "alias": "p-search-tree-items"; "required": false; }; "service": { "alias": "p-service"; "required": false; }; "params": { "alias": "p-params"; "required": false; }; "logo": { "alias": "p-logo"; "required": false; }; "logoAlt": { "alias": "p-logo-alt"; "required": false; }; "shortLogo": { "alias": "p-short-logo"; "required": false; }; "logoLink": { "alias": "p-logo-link"; "required": false; }; }, {}, never, never, true, never>;
302
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoMenuBaseComponent, never, never, { "automaticToggle": { "alias": "p-automatic-toggle"; "required": false; }; "collapsed": { "alias": "p-collapsed"; "required": false; }; "componentsSize": { "alias": "p-components-size"; "required": false; }; "menus": { "alias": "p-menus"; "required": false; }; "filter": { "alias": "p-filter"; "required": false; }; "searchTreeItems": { "alias": "p-search-tree-items"; "required": false; }; "service": { "alias": "p-service"; "required": false; }; "params": { "alias": "p-params"; "required": false; }; "logo": { "alias": "p-logo"; "required": false; }; "logoAlt": { "alias": "p-logo-alt"; "required": false; }; "shortLogo": { "alias": "p-short-logo"; "required": false; }; "logoLink": { "alias": "p-logo-link"; "required": false; }; }, {}, never, never, true, never>;
284
303
  static ngAcceptInputType_automaticToggle: any;
285
304
  }
@@ -17,6 +17,7 @@ export declare const poMenuFilterLiteralsDefault: {
17
17
  */
18
18
  export declare class PoMenuFilterComponent {
19
19
  languageService: PoLanguageService;
20
+ componentsSize: string;
20
21
  loading: boolean;
21
22
  enableCollapse: boolean;
22
23
  inputFilterElement: ElementRef;
@@ -25,5 +26,5 @@ export declare class PoMenuFilterComponent {
25
26
  constructor(languageService: PoLanguageService);
26
27
  filterItems(search: string): void;
27
28
  static ɵfac: i0.ɵɵFactoryDeclaration<PoMenuFilterComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<PoMenuFilterComponent, "po-menu-filter", never, { "loading": { "alias": "p-loading"; "required": false; }; "enableCollapse": { "alias": "p-enable-collapse"; "required": false; }; }, { "filter": "p-filter"; }, never, never, false, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<PoMenuFilterComponent, "po-menu-filter", never, { "componentsSize": { "alias": "p-components-size"; "required": false; }; "loading": { "alias": "p-loading"; "required": false; }; "enableCollapse": { "alias": "p-enable-collapse"; "required": false; }; }, { "filter": "p-filter"; }, never, never, false, never>;
29
30
  }
@@ -1,5 +1,6 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
+ import { PoThemeService } from '../../services';
3
4
  import { PoLanguageService } from '../../services/po-language/po-language.service';
4
5
  import { PoMenuBaseComponent } from './po-menu-base.component';
5
6
  import { PoMenuHeaderTemplateDirective } from './po-menu-header-template/po-menu-header-template.directive';
@@ -96,6 +97,7 @@ export declare class PoMenuComponent extends PoMenuBaseComponent implements Afte
96
97
  private renderer;
97
98
  private router;
98
99
  private menuItemsService;
100
+ protected poThemeService: PoThemeService;
99
101
  menuHeaderTemplate: PoMenuHeaderTemplateDirective;
100
102
  activeMenuItem: PoMenuItem;
101
103
  collapsedMobile: boolean;
@@ -112,7 +114,7 @@ export declare class PoMenuComponent extends PoMenuBaseComponent implements Afte
112
114
  private resizeListener;
113
115
  private itemSubscription;
114
116
  private routeSubscription;
115
- constructor(changeDetector: ChangeDetectorRef, element: ElementRef, renderer: Renderer2, router: Router, menuItemsService: PoMenuItemsService, menuGlobalService: PoMenuGlobalService, menuService: PoMenuService, languageService: PoLanguageService);
117
+ constructor(changeDetector: ChangeDetectorRef, element: ElementRef, renderer: Renderer2, router: Router, menuItemsService: PoMenuItemsService, menuGlobalService: PoMenuGlobalService, menuService: PoMenuService, languageService: PoLanguageService, poThemeService: PoThemeService);
116
118
  private get isActiveItemMenuSubMenu();
117
119
  get enableCollapse(): boolean;
118
120
  get enableCollapseButton(): boolean;
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { PoModalAction } from './po-modal-action.interface';
3
+ import { PoThemeService } from '../../services';
3
4
  import { PoLanguageService } from '../../services/po-language/po-language.service';
4
5
  import * as i0 from "@angular/core";
5
6
  /**
@@ -40,6 +41,7 @@ import * as i0 from "@angular/core";
40
41
  *
41
42
  */
42
43
  export declare class PoModalBaseComponent {
44
+ protected poThemeService: PoThemeService;
43
45
  /** Título da modal. */
44
46
  title: string;
45
47
  /** Evento disparado ao fechar o modal. */
@@ -56,6 +58,7 @@ export declare class PoModalBaseComponent {
56
58
  literals: any;
57
59
  isHidden: boolean;
58
60
  onXClosed: EventEmitter<boolean>;
61
+ private _componentsSize?;
59
62
  private _hideClose?;
60
63
  private _size?;
61
64
  /**
@@ -80,6 +83,22 @@ export declare class PoModalBaseComponent {
80
83
  */
81
84
  clickOut?: boolean;
82
85
  set setClickOut(value: boolean | string);
86
+ /**
87
+ * @optional
88
+ *
89
+ * @description
90
+ *
91
+ * Define o tamanho dos componentes de formulário no modal:
92
+ * - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
93
+ * - `medium`: aplica a medida medium de cada componente.
94
+ *
95
+ * > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
96
+ * Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
97
+ *
98
+ * @default `medium`
99
+ */
100
+ set componentsSize(value: string);
101
+ get componentsSize(): string;
83
102
  /**
84
103
  * @optional
85
104
  *
@@ -117,12 +136,12 @@ export declare class PoModalBaseComponent {
117
136
  * ```
118
137
  */
119
138
  icon?: string | TemplateRef<void>;
120
- constructor(poLanguageService: PoLanguageService);
139
+ constructor(poLanguageService: PoLanguageService, poThemeService: PoThemeService);
121
140
  /** Função para fechar a modal. */
122
141
  close(xClosed?: boolean): void;
123
142
  /** Função para abrir a modal. */
124
143
  open(): void;
125
144
  validPrimaryAction(): void;
126
145
  static ɵfac: i0.ɵɵFactoryDeclaration<PoModalBaseComponent, never>;
127
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoModalBaseComponent, never, never, { "title": { "alias": "p-title"; "required": false; }; "primaryAction": { "alias": "p-primary-action"; "required": false; }; "secondaryAction": { "alias": "p-secondary-action"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "setClickOut": { "alias": "p-click-out"; "required": false; }; "hideClose": { "alias": "p-hide-close"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; }, { "closeModal": "p-close"; }, never, never, true, never>;
146
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoModalBaseComponent, never, never, { "title": { "alias": "p-title"; "required": false; }; "primaryAction": { "alias": "p-primary-action"; "required": false; }; "secondaryAction": { "alias": "p-secondary-action"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "setClickOut": { "alias": "p-click-out"; "required": false; }; "componentsSize": { "alias": "p-components-size"; "required": false; }; "hideClose": { "alias": "p-hide-close"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; }, { "closeModal": "p-close"; }, never, never, true, never>;
128
147
  }
@@ -1,6 +1,7 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { PoModalBaseComponent } from './po-modal-base.component';
3
3
  import { PoModalFooterComponent } from './po-modal-footer/po-modal-footer.component';
4
+ import { PoThemeService } from '../../services';
4
5
  import { PoActiveOverlayService } from '../../services/po-active-overlay/po-active-overlay.service';
5
6
  import { PoLanguageService } from '../../services/po-language/po-language.service';
6
7
  import * as i0 from "@angular/core";
@@ -26,6 +27,7 @@ import * as i0 from "@angular/core";
26
27
  */
27
28
  export declare class PoModalComponent extends PoModalBaseComponent {
28
29
  private poActiveOverlayService;
30
+ protected poThemeService: PoThemeService;
29
31
  modalContent: ElementRef;
30
32
  modalContainer: ElementRef;
31
33
  modalFooter: PoModalFooterComponent;
@@ -34,7 +36,7 @@ export declare class PoModalComponent extends PoModalBaseComponent {
34
36
  private focusableElements;
35
37
  private id;
36
38
  private sourceElement;
37
- constructor(poActiveOverlayService: PoActiveOverlayService, poLanguageService: PoLanguageService);
39
+ constructor(poActiveOverlayService: PoActiveOverlayService, poLanguageService: PoLanguageService, poThemeService: PoThemeService);
38
40
  close(xClosed?: boolean): void;
39
41
  closeModalOnEscapeKey(event: any): void;
40
42
  getSecondaryActionButtonDanger(): "true" | "false";
@@ -8,8 +8,8 @@ export * from './po-page-edit/po-page-edit.component';
8
8
  export * from './po-page-list/po-page-list-literals.interface';
9
9
  export * from './po-page-list/po-page-list.component';
10
10
  export * from './po-page-slide/po-page-slide.component';
11
- export * from './po-page.interface';
12
- export * from './po-page-action.interface';
13
- export * from './po-page-filter.interface';
11
+ export * from './interfaces/po-page.interface';
12
+ export * from './interfaces/po-page-action.interface';
13
+ export * from './interfaces/po-page-filter.interface';
14
14
  export * from './po-page-slide/po-page-slide.module';
15
15
  export * from './po-page.module';
@@ -1,4 +1,4 @@
1
- import { PoPopupAction } from '../po-popup/po-popup-action.interface';
1
+ import { PoPopupAction } from '../../po-popup/po-popup-action.interface';
2
2
  /**
3
3
  * @description
4
4
  * Interface para as ações dos componentes po-page-default e po-page-list.
@@ -1,4 +1,4 @@
1
- import { PoBreadcrumb } from '../po-breadcrumb/po-breadcrumb.interface';
1
+ import { PoBreadcrumb } from '../../po-breadcrumb/po-breadcrumb.interface';
2
2
  /**
3
3
  * @usedBy PoPageComponent
4
4
  *
@@ -1,6 +1,7 @@
1
1
  import { PoLanguageService } from './../../../services/po-language/po-language.service';
2
+ import { PoThemeService } from '../../../services';
2
3
  import { PoBreadcrumb } from '../../po-breadcrumb/po-breadcrumb.interface';
3
- import { PoPageAction } from '../po-page-action.interface';
4
+ import { PoPageAction } from '../interfaces/po-page-action.interface';
4
5
  import { PoPageContentComponent } from '../po-page-content/po-page-content.component';
5
6
  import { PoPageDefaultLiterals } from './po-page-default-literals.interface';
6
7
  import * as i0 from "@angular/core";
@@ -29,12 +30,14 @@ export declare const poPageDefaultLiteralsDefault: {
29
30
  * | `--padding-content` | Espaçamento do conteúdo | `var(--spacing-xs) var(--spacing-sm)` |
30
31
  */
31
32
  export declare abstract class PoPageDefaultBaseComponent {
33
+ protected poThemeService: PoThemeService;
32
34
  poPageContent: PoPageContentComponent;
33
35
  /** Objeto com propriedades do breadcrumb. */
34
36
  breadcrumb?: PoBreadcrumb;
35
37
  visibleActions: Array<PoPageAction>;
36
38
  protected language: string;
37
39
  private _actions?;
40
+ private _componentsSize?;
38
41
  private _literals;
39
42
  private _title;
40
43
  /**
@@ -46,6 +49,22 @@ export declare abstract class PoPageDefaultBaseComponent {
46
49
  */
47
50
  set actions(actions: Array<PoPageAction>);
48
51
  get actions(): Array<PoPageAction>;
52
+ /**
53
+ * @optional
54
+ *
55
+ * @description
56
+ *
57
+ * Define o tamanho dos componentes de formulário no template:
58
+ * - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
59
+ * - `medium`: aplica a medida medium de cada componente.
60
+ *
61
+ * > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
62
+ * Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
63
+ *
64
+ * @default `medium`
65
+ */
66
+ set componentsSize(value: string);
67
+ get componentsSize(): string;
49
68
  /**
50
69
  * @optional
51
70
  *
@@ -92,9 +111,9 @@ export declare abstract class PoPageDefaultBaseComponent {
92
111
  * Subtitulo do Header da página
93
112
  */
94
113
  subtitle: string;
95
- constructor(languageService: PoLanguageService);
114
+ constructor(languageService: PoLanguageService, poThemeService: PoThemeService);
96
115
  abstract setDropdownActions(): any;
97
116
  abstract getVisibleActions(): any;
98
117
  static ɵfac: i0.ɵɵFactoryDeclaration<PoPageDefaultBaseComponent, never>;
99
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoPageDefaultBaseComponent, never, never, { "breadcrumb": { "alias": "p-breadcrumb"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "title": { "alias": "p-title"; "required": false; }; "subtitle": { "alias": "p-subtitle"; "required": false; }; }, {}, never, never, true, never>;
118
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoPageDefaultBaseComponent, never, never, { "breadcrumb": { "alias": "p-breadcrumb"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "componentsSize": { "alias": "p-components-size"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "title": { "alias": "p-title"; "required": false; }; "subtitle": { "alias": "p-subtitle"; "required": false; }; }, {}, never, never, true, never>;
100
119
  }
@@ -1,7 +1,8 @@
1
1
  import { AfterContentInit, OnChanges, Renderer2, SimpleChange, ViewContainerRef } from '@angular/core';
2
2
  import { Router } from '@angular/router';
3
3
  import { PoLanguageService } from './../../../services/po-language/po-language.service';
4
- import { PoPageAction } from '../po-page-action.interface';
4
+ import { PoPageAction } from '../interfaces/po-page-action.interface';
5
+ import { PoThemeService } from '../../../services';
5
6
  import { PoPageDefaultBaseComponent } from './po-page-default-base.component';
6
7
  import * as i0 from "@angular/core";
7
8
  /**
@@ -26,13 +27,14 @@ import * as i0 from "@angular/core";
26
27
  * </example>
27
28
  */
28
29
  export declare class PoPageDefaultComponent extends PoPageDefaultBaseComponent implements AfterContentInit, OnChanges {
30
+ protected poThemeService: PoThemeService;
29
31
  private renderer;
30
32
  private router;
31
33
  limitPrimaryActions: number;
32
34
  dropdownActions: Array<PoPageAction>;
33
35
  isMobile: boolean;
34
36
  private maxWidthMobile;
35
- constructor(viewRef: ViewContainerRef, languageService: PoLanguageService, renderer: Renderer2, router: Router);
37
+ constructor(viewRef: ViewContainerRef, languageService: PoLanguageService, poThemeService: PoThemeService, renderer: Renderer2, router: Router);
36
38
  ngAfterContentInit(): void;
37
39
  ngOnChanges(changes: {
38
40
  [propName: string]: SimpleChange;
@@ -1,5 +1,5 @@
1
- import { PoPage } from '../po-page.interface';
2
- import { PoPageAction } from '../po-page-action.interface';
1
+ import { PoPage } from '../interfaces/po-page.interface';
2
+ import { PoPageAction } from '../interfaces/po-page-action.interface';
3
3
  /**
4
4
  * @usedBy PoPageComponent
5
5
  *
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { PoLanguageService } from '../../../services/po-language/po-language.service';
3
+ import { PoThemeService } from '../../../services';
3
4
  import { PoBreadcrumb } from '../../po-breadcrumb/po-breadcrumb.interface';
4
5
  import { PoPageContentComponent } from '../po-page-content/po-page-content.component';
5
6
  import { PoPageDetailLiterals } from './po-page-detail-literals.interface';
@@ -17,6 +18,7 @@ export declare const poPageDetailLiteralsDefault: {
17
18
  * detalhamento de um registro, tendo a possibilidade de usar as ações de "Voltar", "Editar" e "Remover".
18
19
  */
19
20
  export declare class PoPageDetailBaseComponent {
21
+ protected poThemeService: PoThemeService;
20
22
  poPageContent: PoPageContentComponent;
21
23
  /** Objeto com propriedades do breadcrumb. */
22
24
  breadcrumb: PoBreadcrumb;
@@ -53,9 +55,26 @@ export declare class PoPageDetailBaseComponent {
53
55
  * > Caso não utilizar esta propriedade, o botão de "Remover" não será exibido.
54
56
  */
55
57
  remove: EventEmitter<any>;
58
+ private _componentsSize?;
56
59
  private _literals;
57
60
  private _title;
58
61
  private language;
62
+ /**
63
+ * @optional
64
+ *
65
+ * @description
66
+ *
67
+ * Define o tamanho dos componentes de formulário no template:
68
+ * - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
69
+ * - `medium`: aplica a medida medium de cada componente.
70
+ *
71
+ * > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
72
+ * Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
73
+ *
74
+ * @default `medium`
75
+ */
76
+ set componentsSize(value: string);
77
+ get componentsSize(): string;
59
78
  /**
60
79
  * @optional
61
80
  *
@@ -105,7 +124,7 @@ export declare class PoPageDetailBaseComponent {
105
124
  * Subtitulo do Header da página
106
125
  */
107
126
  subtitle: string;
108
- constructor(languageService: PoLanguageService);
127
+ constructor(languageService: PoLanguageService, poThemeService: PoThemeService);
109
128
  static ɵfac: i0.ɵɵFactoryDeclaration<PoPageDetailBaseComponent, never>;
110
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoPageDetailBaseComponent, never, never, { "breadcrumb": { "alias": "p-breadcrumb"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "title": { "alias": "p-title"; "required": false; }; "subtitle": { "alias": "p-subtitle"; "required": false; }; }, { "back": "p-back"; "edit": "p-edit"; "remove": "p-remove"; }, never, never, true, never>;
129
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoPageDetailBaseComponent, never, never, { "breadcrumb": { "alias": "p-breadcrumb"; "required": false; }; "componentsSize": { "alias": "p-components-size"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "title": { "alias": "p-title"; "required": false; }; "subtitle": { "alias": "p-subtitle"; "required": false; }; }, { "back": "p-back"; "edit": "p-edit"; "remove": "p-remove"; }, never, never, true, never>;
111
130
  }