@po-ui/ng-components 21.7.0 → 21.9.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 (198) hide show
  1. package/fesm2022/po-ui-ng-components.mjs +5175 -564
  2. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  3. package/lib/components/index.d.ts +2 -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 +10 -8
  14. package/lib/components/po-button-group/po-button-group-base.component.d.ts +0 -2
  15. package/lib/components/po-calendar/constants/po-calendar-range-presets.constant.d.ts +2 -0
  16. package/lib/components/po-calendar/index.d.ts +2 -0
  17. package/lib/components/po-calendar/interfaces/po-calendar-range-preset.interface.d.ts +16 -0
  18. package/lib/components/po-calendar/po-calendar-base.component.d.ts +56 -2
  19. package/lib/components/po-calendar/po-calendar-footer/po-calendar-footer.component.d.ts +16 -0
  20. package/lib/components/po-calendar/po-calendar-preset-list/po-calendar-preset-list.component.d.ts +28 -0
  21. package/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.d.ts +12 -6
  22. package/lib/components/po-calendar/po-calendar.component.d.ts +29 -4
  23. package/lib/components/po-calendar/services/po-calendar.lang.service.d.ts +9 -7
  24. package/lib/components/po-context-menu/index.d.ts +3 -0
  25. package/lib/components/po-context-menu/po-context-menu-base.component.d.ts +92 -0
  26. package/lib/components/po-context-menu/po-context-menu-item.interface.d.ts +15 -0
  27. package/lib/components/po-context-menu/po-context-menu.component.d.ts +51 -0
  28. package/lib/components/po-context-menu/po-context-menu.module.d.ts +7 -0
  29. package/lib/components/po-disclaimer/po-disclaimer-base.component.d.ts +1 -1
  30. package/lib/components/po-disclaimer-group/po-disclaimer-group-base.component.d.ts +1 -1
  31. package/lib/components/po-disclaimer-group/po-disclaimer-group.component.d.ts +1 -1
  32. package/lib/components/po-dropdown/po-dropdown.component.d.ts +3 -3
  33. package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts +58 -7
  34. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields-base.component.d.ts +1 -1
  35. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-operation/po-dynamic-form-operation.d.ts +1 -1
  36. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.d.ts +4 -4
  37. package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.d.ts +5 -5
  38. package/lib/components/po-dynamic/po-dynamic-view/services/po-dynamic-view.service.d.ts +1 -1
  39. package/lib/components/po-field/index.d.ts +3 -0
  40. package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +0 -6
  41. package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +0 -6
  42. package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +2 -2
  43. package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +1 -7
  44. package/lib/components/po-field/po-combo/po-combo-filter.service.d.ts +1 -1
  45. package/lib/components/po-field/po-combo/po-combo.component.d.ts +3 -3
  46. package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +0 -6
  47. package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +3 -3
  48. package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +56 -8
  49. package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +24 -6
  50. package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +4 -4
  51. package/lib/components/po-field/po-email/po-email.component.d.ts +1 -1
  52. package/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.d.ts +1 -1
  53. package/lib/components/po-field/po-field-container/po-field-container.component.d.ts +0 -2
  54. package/lib/components/po-field/po-input/po-input-base.component.d.ts +0 -6
  55. package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +0 -6
  56. package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts +1 -1
  57. package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +3 -3
  58. package/lib/components/po-field/po-lookup/services/po-lookup-filter.service.d.ts +1 -1
  59. package/lib/components/po-field/po-lookup/services/po-lookup-modal.service.d.ts +1 -1
  60. package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +1 -7
  61. package/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.d.ts +1 -1
  62. package/lib/components/po-field/po-multiselect/po-multiselect-filter.service.d.ts +2 -2
  63. package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +5 -5
  64. package/lib/components/po-field/po-radio/po-radio.component.d.ts +2 -2
  65. package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +1 -7
  66. package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +1 -1
  67. package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +0 -6
  68. package/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.d.ts +2 -2
  69. package/lib/components/po-field/po-rich-text/po-rich-text-image-modal/po-rich-text-image-modal.component.d.ts +1 -1
  70. package/lib/components/po-field/po-rich-text/po-rich-text-link-modal/po-rich-text-link-modal.component.d.ts +1 -1
  71. package/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.d.ts +1 -1
  72. package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +2 -2
  73. package/lib/components/po-field/po-rich-text/po-rich-text.service.d.ts +1 -1
  74. package/lib/components/po-field/po-select/po-select.component.d.ts +1 -7
  75. package/lib/components/po-field/po-switch/po-switch.component.d.ts +0 -7
  76. package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +0 -6
  77. package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +3 -2
  78. package/lib/components/po-field/po-timepicker/enums/po-timepicker-iso-format.enum.d.ts +13 -0
  79. package/lib/components/po-field/po-timepicker/index.d.ts +3 -0
  80. package/lib/components/po-field/po-timepicker/po-timepicker-base.component.d.ts +374 -0
  81. package/lib/components/po-field/po-timepicker/po-timepicker.component.d.ts +206 -0
  82. package/lib/components/po-field/po-timepicker/po-timepicker.literals.d.ts +46 -0
  83. package/lib/components/po-field/po-timepicker/po-timepicker.module.d.ts +7 -0
  84. package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +1 -7
  85. package/lib/components/po-field/po-upload/po-upload-base.service.d.ts +1 -1
  86. 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
  87. package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.component.d.ts +1 -1
  88. package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.directive.d.ts +2 -2
  89. package/lib/components/po-field/po-upload/po-upload-file-restrictions/po-upload-file-restrictions.component.d.ts +2 -2
  90. package/lib/components/po-field/po-upload/po-upload.component.d.ts +4 -4
  91. package/lib/components/po-field/po-url/po-url.component.d.ts +1 -1
  92. package/lib/components/po-grid/po-grid-cell/po-grid-cell.component.d.ts +1 -1
  93. package/lib/components/po-grid/po-grid.component.d.ts +3 -3
  94. package/lib/components/po-header/po-header-base.component.d.ts +31 -5
  95. package/lib/components/po-header/po-header-brand/po-header-brand.component.d.ts +3 -2
  96. package/lib/components/po-header/po-header-customer/po-header-customer.component.d.ts +1 -0
  97. package/lib/components/po-header/po-header-menu-item/po-header-menu-item.component.d.ts +3 -2
  98. package/lib/components/po-header/po-header-tools/po-header-tools.component.d.ts +3 -2
  99. package/lib/components/po-header/po-header.component.d.ts +4 -4
  100. package/lib/components/po-helper/po-helper-base.component.d.ts +0 -8
  101. package/lib/components/po-icon/po-icon.component.d.ts +1 -1
  102. package/lib/components/po-list-view/po-list-view-base.component.d.ts +1 -1
  103. package/lib/components/po-list-view/po-list-view.component.d.ts +2 -2
  104. package/lib/components/po-listbox/po-item-list/po-item-list-base.component.d.ts +2 -2
  105. package/lib/components/po-listbox/po-listbox-base.component.d.ts +1 -1
  106. package/lib/components/po-listbox/po-search-list/po-search-list.component.d.ts +1 -1
  107. package/lib/components/po-loading/po-loading-overlay/po-loading-overlay-base.component.d.ts +1 -1
  108. package/lib/components/po-menu/po-menu-base.component.d.ts +13 -1
  109. package/lib/components/po-menu/po-menu-item/po-menu-item.component.d.ts +1 -1
  110. package/lib/components/po-menu/po-menu.component.d.ts +5 -4
  111. package/lib/components/po-menu/services/po-menu-global.service.d.ts +5 -5
  112. package/lib/components/po-menu/services/po-menu-items.service.d.ts +2 -2
  113. package/lib/components/po-menu/services/po-menu.service.d.ts +1 -1
  114. package/lib/components/po-menu-panel/po-menu-panel-item/po-menu-panel-item.component.d.ts +1 -1
  115. package/lib/components/po-menu-panel/po-menu-panel.component.d.ts +3 -3
  116. package/lib/components/po-menu-panel/services/po-menu-panel-items.service.d.ts +2 -2
  117. package/lib/components/po-modal/po-modal.component.d.ts +3 -3
  118. package/lib/components/po-navbar/po-navbar-actions/po-navbar-action/po-navbar-action.component.d.ts +1 -1
  119. package/lib/components/po-navbar/po-navbar-base.component.d.ts +1 -1
  120. package/lib/components/po-navbar/po-navbar-items/po-navbar-items.component.d.ts +1 -1
  121. package/lib/components/po-navbar/po-navbar.component.d.ts +7 -7
  122. package/lib/components/po-page/po-page-default/po-page-default.component.d.ts +3 -3
  123. package/lib/components/po-page/po-page-detail/po-page-detail-base.component.d.ts +1 -1
  124. package/lib/components/po-page/po-page-edit/po-page-edit-base.component.d.ts +1 -1
  125. package/lib/components/po-page/po-page-list/po-page-list.component.d.ts +3 -3
  126. package/lib/components/po-page/po-page-slide/po-page-slide.component.d.ts +4 -4
  127. package/lib/components/po-popover/po-popover-base.component.d.ts +0 -2
  128. package/lib/components/po-popover/po-popover.component.d.ts +2 -1
  129. package/lib/components/po-popup/po-popup.component.d.ts +4 -4
  130. package/lib/components/po-progress/po-progress.component.d.ts +2 -2
  131. package/lib/components/po-search/po-search.component.d.ts +0 -1
  132. package/lib/components/po-skeleton/po-skeleton-base.component.d.ts +0 -23
  133. package/lib/components/po-slide/po-slide.component.d.ts +4 -4
  134. package/lib/components/po-stepper/po-step/po-step.component.d.ts +1 -1
  135. package/lib/components/po-stepper/po-stepper-label/po-stepper-label.component.d.ts +3 -3
  136. package/lib/components/po-stepper/po-stepper.component.d.ts +1 -1
  137. package/lib/components/po-table/po-table-base.component.d.ts +3 -3
  138. package/lib/components/po-table/po-table-column-frozen/po-table-column-frozen.directive.d.ts +2 -2
  139. package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +2 -2
  140. package/lib/components/po-table/po-table-detail/po-table-detail.component.d.ts +1 -1
  141. package/lib/components/po-table/po-table-list-manager/po-table-list-manager.component.d.ts +2 -2
  142. package/lib/components/po-table/po-table-subtitle-circle/po-table-subtitle-circle.component.d.ts +1 -1
  143. package/lib/components/po-table/po-table-subtitle-footer/po-table-subtitle-footer.component.d.ts +1 -1
  144. package/lib/components/po-table/po-table.component.d.ts +6 -6
  145. package/lib/components/po-table/services/po-table.service.d.ts +1 -1
  146. package/lib/components/po-tabs/po-tab/po-tab-base.component.d.ts +11 -1
  147. package/lib/components/po-tabs/po-tab/po-tab.component.d.ts +1 -1
  148. package/lib/components/po-tabs/po-tab-button/po-tab-button.component.d.ts +1 -1
  149. package/lib/components/po-tabs/po-tab-dropdown/po-tab-dropdown.component.d.ts +1 -1
  150. package/lib/components/po-tabs/po-tabs.component.d.ts +22 -2
  151. package/lib/components/po-tabs/po-tabs.service.d.ts +2 -2
  152. package/lib/components/po-tag/po-tag-base.component.d.ts +1 -1
  153. package/lib/components/po-tag/po-tag.component.d.ts +2 -2
  154. package/lib/components/po-timer/enums/po-timer-format.enum.d.ts +13 -0
  155. package/lib/components/po-timer/index.d.ts +4 -0
  156. package/lib/components/po-timer/po-timer-base.component.d.ts +255 -0
  157. package/lib/components/po-timer/po-timer-scroll.helper.d.ts +40 -0
  158. package/lib/components/po-timer/po-timer.component.d.ts +208 -0
  159. package/lib/components/po-timer/po-timer.literals.d.ts +22 -0
  160. package/lib/components/po-timer/po-timer.module.d.ts +6 -0
  161. package/lib/components/po-toaster/po-toaster-base.component.d.ts +1 -1
  162. package/lib/components/po-toaster/po-toaster.component.d.ts +1 -1
  163. package/lib/components/po-toolbar/po-toolbar-notification/po-toolbar-notification.component.d.ts +1 -1
  164. package/lib/components/po-toolbar/po-toolbar.component.d.ts +1 -1
  165. package/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.d.ts +1 -1
  166. package/lib/components/po-tree-view/po-tree-view.component.d.ts +1 -1
  167. package/lib/components/po-tree-view/services/po-tree-view.service.d.ts +2 -2
  168. package/lib/components/po-widget/po-widget-base.component.d.ts +0 -4
  169. package/lib/directives/po-tooltip/po-tooltip.directive.d.ts +4 -4
  170. package/lib/interceptors/po-http-interceptor/po-http-interceptor-base.service.d.ts +3 -3
  171. package/lib/interceptors/po-http-interceptor/po-http-interceptor-detail/po-http-interceptor-detail.component.d.ts +3 -3
  172. package/lib/interceptors/po-http-request/po-http-request-interceptor.service.d.ts +2 -2
  173. package/lib/services/po-component-injector/po-component-injector.service.d.ts +3 -3
  174. package/lib/services/po-control-position/po-control-position.service.d.ts +2 -2
  175. package/lib/services/po-dialog/po-dialog.component.d.ts +1 -1
  176. package/lib/services/po-dialog/po-dialog.service.d.ts +1 -1
  177. package/lib/services/po-i18n/po-i18n-base.service.d.ts +3 -3
  178. package/lib/services/po-media-query/po-media-query.service.d.ts +1 -1
  179. package/lib/services/po-notification/po-notification.service.d.ts +1 -1
  180. package/lib/services/po-theme/po-theme.service.d.ts +2 -2
  181. package/package.json +4 -4
  182. package/po-ui-ng-components-21.9.0.tgz +0 -0
  183. package/schematics/ng-add/index.js +1 -1
  184. package/schematics/ng-update/v14/index.js +1 -1
  185. package/schematics/ng-update/v15/index.js +1 -1
  186. package/schematics/ng-update/v16/index.js +1 -1
  187. package/schematics/ng-update/v17/index.js +1 -1
  188. package/schematics/ng-update/v18/index.js +2 -2
  189. package/schematics/ng-update/v19/index.js +2 -2
  190. package/schematics/ng-update/v2/index.js +1 -1
  191. package/schematics/ng-update/v20/index.js +2 -2
  192. package/schematics/ng-update/v21/index.js +1 -1
  193. package/schematics/ng-update/v3/index.js +1 -1
  194. package/schematics/ng-update/v4/index.js +1 -1
  195. package/schematics/ng-update/v5/index.js +1 -1
  196. package/schematics/ng-update/v6/index.js +1 -1
  197. package/types/po-ui-ng-components.d.ts +1914 -419
  198. package/po-ui-ng-components-21.7.0.tgz +0 -0
@@ -8,6 +8,7 @@ export * from './po-button/index';
8
8
  export * from './po-calendar/index';
9
9
  export * from './po-chart/index';
10
10
  export * from './po-container/index';
11
+ export * from './po-context-menu/index';
11
12
  export * from './po-disclaimer-group/index';
12
13
  export * from './po-disclaimer/index';
13
14
  export * from './po-divider/index';
@@ -49,3 +50,4 @@ export * from './po-search/index';
49
50
  export * from './po-skeleton/index';
50
51
  export * from './po-toaster/index';
51
52
  export * from './po-header/index';
53
+ export * from './po-timer/index';
@@ -79,7 +79,7 @@ export declare const poAccordionLiteralsDefault: {
79
79
  *
80
80
  */
81
81
  export declare class PoAccordionBaseComponent {
82
- private language;
82
+ private readonly language;
83
83
  private _literals;
84
84
  private _size?;
85
85
  private _initialSize?;
@@ -32,7 +32,7 @@ import { PoTagType } from '../../po-tag';
32
32
  * ```
33
33
  */
34
34
  export declare class PoAccordionItemComponent implements OnDestroy {
35
- private accordionService;
35
+ private readonly accordionService;
36
36
  private _type?;
37
37
  /** Título do item. */
38
38
  label: string;
@@ -79,8 +79,8 @@ export declare class PoAccordionItemComponent implements OnDestroy {
79
79
  collapseEvent: EventEmitter<void>;
80
80
  templateRef: TemplateRef<any>;
81
81
  expanded: boolean;
82
- private expandSubscription;
83
- private collapseSubscription;
82
+ private readonly expandSubscription;
83
+ private readonly collapseSubscription;
84
84
  constructor();
85
85
  ngOnDestroy(): void;
86
86
  /**
@@ -1,6 +1,6 @@
1
1
  import { ElementRef, EventEmitter } from '@angular/core';
2
2
  export declare class PoAccordionItemHeaderComponent {
3
- private language;
3
+ private readonly language;
4
4
  accordionElement: ElementRef;
5
5
  accordionHeaderElement: ElementRef;
6
6
  expanded: boolean;
@@ -23,7 +23,7 @@ import { PoAccordionItemComponent } from './po-accordion-item/po-accordion-item.
23
23
  * </example>
24
24
  */
25
25
  export declare class PoAccordionComponent extends PoAccordionBaseComponent implements OnDestroy {
26
- private accordionService;
26
+ private readonly accordionService;
27
27
  accordionsHeader: QueryList<PoAccordionItemHeaderComponent>;
28
28
  poAccordionItems: QueryList<PoAccordionItemComponent>;
29
29
  expandedAllItems: boolean;
@@ -8,7 +8,7 @@ import { PoAccordionItemComponent } from '../po-accordion-item/po-accordion-item
8
8
  * expandido/colapsado.
9
9
  */
10
10
  export declare class PoAccordionService {
11
- private subjectChild;
11
+ private readonly subjectChild;
12
12
  receiveFromChildAccordionClicked(): import("rxjs").Observable<PoAccordionItemComponent>;
13
13
  sendToParentAccordionItemClicked(accordionItem: PoAccordionItemComponent): void;
14
14
  }
@@ -28,7 +28,7 @@ export declare class PoBadgeComponent extends PoBadgeBaseComponent implements On
28
28
  literals: PoBadgeLiterals;
29
29
  badgeIcon: string;
30
30
  isValidValue: boolean;
31
- private poLanguageService;
31
+ private readonly poLanguageService;
32
32
  ngOnInit(): void;
33
33
  ngOnChanges(changes: SimpleChanges): void;
34
34
  initialize(): void;
@@ -9,8 +9,8 @@ export declare const PoBreadcrumbLiterals: object;
9
9
  * Componente que renderiza o serviço de favoritar do po-breadcrumb.
10
10
  */
11
11
  export declare class PoBreadcrumbFavoriteComponent implements OnInit, OnDestroy {
12
- private service;
13
- private languageService;
12
+ private readonly service;
13
+ private readonly languageService;
14
14
  favoriteService: string;
15
15
  itemActive: PoBreadcrumbItem;
16
16
  paramsService: object;
@@ -14,7 +14,7 @@ import { Observable } from 'rxjs';
14
14
  *
15
15
  */
16
16
  export declare class PoBreadcrumbFavoriteService {
17
- private http;
17
+ private readonly http;
18
18
  private _url;
19
19
  private _bodyParams;
20
20
  get url(): string;
@@ -20,7 +20,7 @@ export declare const poBreadcrumbLiterals: object;
20
20
  * </example>
21
21
  */
22
22
  export declare class PoBreadcrumbComponent extends PoBreadcrumbBaseComponent implements AfterViewInit, DoCheck, OnDestroy {
23
- private element;
23
+ private readonly element;
24
24
  renderer: Renderer2;
25
25
  languageService: PoLanguageService;
26
26
  breadcrumbElement: ElementRef;
@@ -34,7 +34,7 @@ export declare class PoBreadcrumbComponent extends PoBreadcrumbBaseComponent imp
34
34
  hiddenLiteralFavorite: boolean;
35
35
  private _breadcrumbItemsLenght;
36
36
  private calculatedElement;
37
- private differ;
37
+ private readonly differ;
38
38
  private hiddenWithoutResize;
39
39
  private initialized;
40
40
  private timeoutResize;
@@ -67,8 +67,6 @@ import { PoButtonType } from './enums/po-button-type.enum';
67
67
  */
68
68
  export declare class PoButtonBaseComponent {
69
69
  /**
70
- * @Input
71
- *
72
70
  * @optional
73
71
  *
74
72
  * @description
@@ -77,8 +75,6 @@ export declare class PoButtonBaseComponent {
77
75
  */
78
76
  readonly label: import("@angular/core").InputSignal<string>;
79
77
  /**
80
- * @Input
81
- *
82
78
  * @optional
83
79
  *
84
80
  * @description
@@ -105,8 +101,6 @@ export declare class PoButtonBaseComponent {
105
101
  */
106
102
  readonly icon: import("@angular/core").InputSignal<string | TemplateRef<void>>;
107
103
  /**
108
- * @Input
109
- *
110
104
  * @optional
111
105
  *
112
106
  * @description
@@ -175,8 +169,6 @@ export declare class PoButtonBaseComponent {
175
169
  set disabled(value: boolean);
176
170
  get disabled(): boolean;
177
171
  /**
178
- * @Input
179
- *
180
172
  * @optional
181
173
  *
182
174
  * @description
@@ -189,6 +181,16 @@ export declare class PoButtonBaseComponent {
189
181
  */
190
182
  readonly ariaLabel: import("@angular/core").InputSignal<string>;
191
183
  ariaExpanded?: boolean;
184
+ /**
185
+ * @optional
186
+ *
187
+ * @description
188
+ *
189
+ * Define o `tabindex` do elemento `<button>` nativo interno.
190
+ *
191
+ * Use `[tabindex]="-1"` para remover o botão da ordem de foco do teclado.
192
+ */
193
+ tabindex?: number | string;
192
194
  /**
193
195
  * @optional
194
196
  *
@@ -54,8 +54,6 @@ import { PoButtonGroupItem } from './po-button-group-item.interface';
54
54
  */
55
55
  export declare class PoButtonGroupBaseComponent {
56
56
  /**
57
- * @Input
58
- *
59
57
  * @description
60
58
  *
61
59
  * Lista de botões.
@@ -0,0 +1,2 @@
1
+ import { PoCalendarRangePreset } from '../interfaces/po-calendar-range-preset.interface';
2
+ export declare const PO_CALENDAR_DEFAULT_RANGE_PRESETS: Array<PoCalendarRangePreset>;
@@ -1,3 +1,5 @@
1
1
  export * from './po-calendar-mode.enum';
2
2
  export * from './po-calendar.component';
3
3
  export * from './po-calendar.module';
4
+ export * from './interfaces/po-calendar-range-preset.interface';
5
+ export * from './constants/po-calendar-range-presets.constant';
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Interface para definir um preset de intervalo de datas no calendário.
3
+ *
4
+ * Cada preset possui um rótulo identificador e uma função que calcula
5
+ * dinamicamente o intervalo de datas com base na data atual.
6
+ */
7
+ export interface PoCalendarRangePreset {
8
+ /** Identificador/rótulo de exibição do preset. */
9
+ label: string;
10
+ /** Função que calcula dinamicamente o intervalo de datas relativo à data informada. */
11
+ dateRange: (today: Date) => {
12
+ start: Date;
13
+ end: Date;
14
+ };
15
+ isDisabled?: boolean;
16
+ }
@@ -2,6 +2,7 @@ import { EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { PoDateService } from '../../services/po-date';
3
3
  import { PoLanguageService } from '../../services/po-language/po-language.service';
4
4
  import { PoCalendarMode } from './po-calendar-mode.enum';
5
+ import { PoCalendarRangePreset } from './interfaces/po-calendar-range-preset.interface';
5
6
  /**
6
7
  * @description
7
8
  *
@@ -93,7 +94,7 @@ import { PoCalendarMode } from './po-calendar-mode.enum';
93
94
  */
94
95
  export declare class PoCalendarBaseComponent {
95
96
  poDate: PoDateService;
96
- private languageService;
97
+ private readonly languageService;
97
98
  /**
98
99
  * @optional
99
100
  *
@@ -118,11 +119,12 @@ export declare class PoCalendarBaseComponent {
118
119
  changeMonthYear: EventEmitter<any>;
119
120
  close: EventEmitter<void>;
120
121
  activateDate: any;
122
+ selectedPresetLabel: string | null;
121
123
  value: any;
122
124
  protected onTouched: any;
123
125
  protected propagateChange: any;
124
126
  protected today: Date;
125
- private shortLanguage;
127
+ private readonly shortLanguage;
126
128
  private _locale;
127
129
  private _maxDate;
128
130
  private _minDate;
@@ -206,6 +208,57 @@ export declare class PoCalendarBaseComponent {
206
208
  get mode(): PoCalendarMode;
207
209
  get isRange(): boolean;
208
210
  headerTemplate?: TemplateRef<any>;
211
+ /**
212
+ * @optional
213
+ *
214
+ * @description
215
+ *
216
+ * Habilita a exibição dos presets padrão de intervalos de data no painel lateral do calendário em modo *range*.
217
+ *
218
+ * Aceita os seguintes valores:
219
+ * - `true`: exibe todos os presets padrão (Amanhã, Hoje, Ontem, Últimos 7 dias, Últimos 14 dias, Últimos 30 dias, Últimos 3 meses, Últimos 6 meses).
220
+ * - `false`: não exibe os presets padrão.
221
+ * - `Array<string>`: exibe apenas os presets padrão cujos labels estejam no array informado.
222
+ * O preset "today" é obrigatório e será incluído automaticamente mesmo que não esteja no array.
223
+ *
224
+ * Caso `p-range-preset-options` também seja informado, os presets customizados serão exibidos junto aos presets padrão,
225
+ * ordenados automaticamente por temporalidade com base na data início (Futuro → Presente → Passado).
226
+ *
227
+ * @default `false`
228
+ */
229
+ set rangePresets(value: boolean | Array<string> | string);
230
+ get rangePresets(): boolean | Array<string>;
231
+ private _rangePresets;
232
+ /**
233
+ * @optional
234
+ *
235
+ * @description
236
+ *
237
+ * Lista de presets customizados de intervalos de data exibidos no painel lateral do calendário em modo *range*.
238
+ *
239
+ * Quando informado sem `p-range-presets`, exibe apenas os presets customizados.
240
+ * Quando informado junto com `p-range-presets` habilitado, os presets customizados serão exibidos junto aos presets padrão,
241
+ * ordenados automaticamente por temporalidade com base na data início (Futuro → Presente → Passado).
242
+ *
243
+ * Para utilizar presets customizados, informe um array de objetos que implementam a interface `PoCalendarRangePreset`.
244
+ */
245
+ rangePresetOptions?: Array<PoCalendarRangePreset>;
246
+ /**
247
+ * @optional
248
+ *
249
+ * @description
250
+ *
251
+ * Define a ordenação dos presets na lista.
252
+ *
253
+ * Valores aceitos:
254
+ * - `'asc'` (padrão): presets mais próximos de hoje aparecem primeiro.
255
+ * - `'desc'`: presets mais distantes de hoje aparecem primeiro.
256
+ *
257
+ * A ordenação é aplicada dentro de cada grupo de temporalidade com base na data início (Futuro → Presente → Passado).
258
+ *
259
+ * @default `asc`
260
+ */
261
+ rangePresetsOrder: 'asc' | 'desc';
209
262
  /**
210
263
  * @optional
211
264
  *
@@ -220,6 +273,7 @@ export declare class PoCalendarBaseComponent {
220
273
  */
221
274
  set size(value: string);
222
275
  get size(): string;
276
+ widthWithPresets?: boolean;
223
277
  constructor(poDate: PoDateService, languageService: PoLanguageService);
224
278
  protected onThemeChange(): void;
225
279
  protected setActivateDate(date?: Date | string): void;
@@ -0,0 +1,16 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ export declare class PoCalendarFooterComponent {
3
+ size: string;
4
+ labelClear: string;
5
+ labelToday: string;
6
+ responsive: boolean;
7
+ todayDisabled: boolean;
8
+ hideTodayButton: boolean;
9
+ clear: EventEmitter<void>;
10
+ selectToday: EventEmitter<void>;
11
+ closeCalendar: EventEmitter<void>;
12
+ onClear(): void;
13
+ onSelectToday(): void;
14
+ onClearKeydown(event: KeyboardEvent): void;
15
+ onTodayKeydown(event: KeyboardEvent): void;
16
+ }
@@ -0,0 +1,28 @@
1
+ import { EventEmitter, QueryList } from '@angular/core';
2
+ import { PoCalendarRangePreset } from '../interfaces/po-calendar-range-preset.interface';
3
+ export declare class PoCalendarPresetListComponent {
4
+ private readonly poCalendarLangService;
5
+ private _locale;
6
+ size: string;
7
+ presets: Array<PoCalendarRangePreset>;
8
+ selectedPreset: string | null;
9
+ responsive: boolean;
10
+ set locale(value: string);
11
+ get locale(): string;
12
+ closeCalendar: EventEmitter<void>;
13
+ selectPreset: EventEmitter<{
14
+ label: string;
15
+ start: Date;
16
+ end: Date;
17
+ }>;
18
+ presetButtons: QueryList<HTMLButtonElement>;
19
+ focusedIndex: number;
20
+ getDisplayLabel(preset: PoCalendarRangePreset): string;
21
+ isSelected(preset: PoCalendarRangePreset): boolean;
22
+ onKeydown(event: KeyboardEvent, index: number): void;
23
+ resetFocusToFirst(): void;
24
+ isPresetDisabled(preset: PoCalendarRangePreset): boolean;
25
+ onPresetClick(preset: PoCalendarRangePreset): void;
26
+ private focusPreset;
27
+ private getPresetButtons;
28
+ }
@@ -1,9 +1,9 @@
1
1
  import { OnChanges, OnInit, EventEmitter, TemplateRef, ChangeDetectorRef, SimpleChanges, ElementRef } from '@angular/core';
2
2
  import { Subject } from 'rxjs';
3
3
  export declare class PoCalendarWrapperComponent implements OnInit, OnChanges {
4
- private poCalendarService;
5
- private poCalendarLangService;
6
- private poDate;
4
+ private readonly poCalendarService;
5
+ private readonly poCalendarLangService;
6
+ private readonly poDate;
7
7
  readonly cdr: ChangeDetectorRef;
8
8
  readonly elementRef: ElementRef<any>;
9
9
  value: any;
@@ -17,6 +17,8 @@ export declare class PoCalendarWrapperComponent implements OnInit, OnChanges {
17
17
  maxDate: any;
18
18
  hoverValue: Date;
19
19
  size: string;
20
+ hideTodayButton: boolean;
21
+ hasPresets: boolean;
20
22
  headerTemplate?: TemplateRef<any>;
21
23
  private _locale;
22
24
  set locale(value: string);
@@ -72,6 +74,12 @@ export declare class PoCalendarWrapperComponent implements OnInit, OnChanges {
72
74
  private updateTemplateContext;
73
75
  updateDate(year: number, month: number, comboComponent?: any): void;
74
76
  onComboBlur(comboComponent?: any): void;
77
+ private handleComboBlur;
78
+ private syncInputValue;
79
+ private applySelectedValue;
80
+ private ensureValidDisplay;
81
+ private isMonthInvalid;
82
+ private isYearInvalid;
75
83
  private updateDisplay;
76
84
  private setInitialFocusedDay;
77
85
  private ensureValidFocusedDay;
@@ -86,11 +94,9 @@ export declare class PoCalendarWrapperComponent implements OnInit, OnChanges {
86
94
  onMouseEnter(day: any): void;
87
95
  onMouseLeave(): void;
88
96
  onSelectToday(): void;
89
- onTodayKeydown(event: KeyboardEvent): void;
97
+ onFooterCloseCalendar(): void;
90
98
  onHostKeydown(event: KeyboardEvent): void;
91
99
  private restoreOriginalDisplay;
92
- onTodayKeydownEnter(event: KeyboardEvent): void;
93
- onTodayKeydownSpace(event: KeyboardEvent): void;
94
100
  onDayKeydown(event: KeyboardEvent, day: Date, index: number): void;
95
101
  private isSelectionKey;
96
102
  private handleSelectKey;
@@ -1,6 +1,7 @@
1
- import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
1
+ import { DoCheck, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { AbstractControl } from '@angular/forms';
3
3
  import { PoCalendarBaseComponent } from './po-calendar-base.component';
4
+ import { PoCalendarRangePreset } from './interfaces/po-calendar-range-preset.interface';
4
5
  /**
5
6
  * @docsExtends PoCalendarBaseComponent
6
7
  *
@@ -11,6 +12,11 @@ import { PoCalendarBaseComponent } from './po-calendar-base.component';
11
12
  * <file name="sample-po-calendar-basic/sample-po-calendar-basic.component.ts"> </file>
12
13
  * </example>
13
14
  *
15
+ * <example name="po-calendar-range-presets" title="PO Calendar - Range and Presets" >
16
+ * <file name="sample-po-calendar-range-presets/sample-po-calendar-range-presets.component.html"> </file>
17
+ * <file name="sample-po-calendar-range-presets/sample-po-calendar-range-presets.component.ts"> </file>
18
+ * </example>
19
+ *
14
20
  * <example name="po-calendar-labs" title="PO Calendar Labs" >
15
21
  * <file name="sample-po-calendar-labs/sample-po-calendar-labs.component.html"> </file>
16
22
  * <file name="sample-po-calendar-labs/sample-po-calendar-labs.component.ts"> </file>
@@ -21,13 +27,23 @@ import { PoCalendarBaseComponent } from './po-calendar-base.component';
21
27
  * <file name="sample-po-calendar-ticket-sales/sample-po-calendar-ticket-sales.component.ts"> </file>
22
28
  * </example>
23
29
  */
24
- export declare class PoCalendarComponent extends PoCalendarBaseComponent implements OnInit, OnChanges {
25
- private changeDetector;
30
+ export declare class PoCalendarComponent extends PoCalendarBaseComponent implements OnInit, OnChanges, DoCheck {
31
+ private readonly changeDetector;
32
+ private readonly poCalendarLangService;
26
33
  hoverValue: Date;
34
+ displayToClean: string;
35
+ private readonly _isRange;
36
+ private readonly _rangePresetsValue;
37
+ private readonly _rangePresetOptionsValue;
38
+ private readonly _rangePresetsOrderValue;
39
+ private readonly _minDateValue;
40
+ private readonly _maxDateValue;
41
+ readonly effectivePresets: import("@angular/core").Signal<PoCalendarRangePreset[]>;
27
42
  constructor();
28
- get isResponsive(): boolean;
43
+ get isResponsive(): RegExpMatchArray;
29
44
  ngOnInit(): void;
30
45
  ngOnChanges(changes: SimpleChanges): void;
46
+ ngDoCheck(): void;
31
47
  getActivateDate(partType: any): any;
32
48
  getValue(partType: any): any;
33
49
  onSelectDate(selectedDate: any, partType?: any): void;
@@ -43,6 +59,15 @@ export declare class PoCalendarComponent extends PoCalendarBaseComponent impleme
43
59
  [key: string]: any;
44
60
  };
45
61
  writeValue(value: any): void;
62
+ onPresetSelected(event: {
63
+ label: string;
64
+ start: Date;
65
+ end: Date;
66
+ }): void;
67
+ private sortPresetsByTemporality;
68
+ private normalizeDate;
69
+ private enrichPresetsWithDisabledState;
70
+ private clampDate;
46
71
  private getValidateStartDate;
47
72
  private getValueFromSelectedDate;
48
73
  private updateActivateDateFromHeaderChange;
@@ -1,18 +1,19 @@
1
1
  export declare class PoCalendarLangService {
2
2
  private language;
3
- private months;
4
- private shortWeekDays;
5
- private monthLabel;
6
- private yearLabel;
7
- private todayLabel;
8
- private previousMonthLabel;
9
- private nextMonthLabel;
3
+ private readonly months;
4
+ private readonly shortWeekDays;
5
+ private readonly monthLabel;
6
+ private readonly yearLabel;
7
+ private readonly todayLabel;
8
+ private readonly previousMonthLabel;
9
+ private readonly nextMonthLabel;
10
10
  readonly toCleanLabel: {
11
11
  pt: string;
12
12
  en: string;
13
13
  es: string;
14
14
  ru: string;
15
15
  };
16
+ private readonly presetLabels;
16
17
  getMonth(month: number): any;
17
18
  getMonthLabel(): any;
18
19
  getMonthsArray(): any[];
@@ -23,5 +24,6 @@ export declare class PoCalendarLangService {
23
24
  getPreviousMonthLabel(): any;
24
25
  getNextMonthLabel(): any;
25
26
  getToCleanLabel(): any;
27
+ getPresetLabel(key: string): string;
26
28
  setLanguage(language: string): void;
27
29
  }
@@ -0,0 +1,3 @@
1
+ export * from './po-context-menu-item.interface';
2
+ export * from './po-context-menu.component';
3
+ export * from './po-context-menu.module';
@@ -0,0 +1,92 @@
1
+ import { PoContextMenuItem } from './po-context-menu-item.interface';
2
+ /**
3
+ * @description
4
+ *
5
+ * O componente `po-context-menu` é uma barra lateral de contexto (sidebar) para navegação interna entre contextos.
6
+ * Inspirado visualmente no `po-menu`, porém independente e focado em navegação contextual.
7
+ *
8
+ * No caso de uso do componente `po-page-default` em conjunto, ambos devem estar no mesmo nível
9
+ * e inseridos em uma div com a classe **po-context-menu-wrapper**.
10
+ * Esta classe é responsável por fazer os cálculos necessários para o alinhamento dos componentes.
11
+ *
12
+ * O uso simultâneo dos componentes `po-menu` e `po-context-menu` não é recomendado.
13
+ * Porém, se os mesmos forem necessários na mesma interface, certifique-se de que não permaneçam expandidos
14
+ * simultaneamente para não comprometer a usabilidade.
15
+ *
16
+ * #### Tokens customizáveis
17
+ *
18
+ * É possível alterar o estilo do componente usando os seguintes tokens (CSS):
19
+ *
20
+ * > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
21
+ *
22
+ * | Propriedade | Descrição | Valor Padrão |
23
+ * |----------------------------------------|--------------------------------------------------------------|-------------------------------------------------|
24
+ * | **Default Values** | | |
25
+ * | `--font-family` | Família tipográfica usada | `var(--font-family-theme)` |
26
+ * | `--font-size` | Tamanho da fonte dos itens | `var(--font-size-default)` |
27
+ * | `--font-size-context-title` | Tamanho da fonte do título de contexto | `var(--font-size-sm)` |
28
+ * | `--font-size-title` | Tamanho da fonte do título principal | `var(--font-size-lg)` |
29
+ * | `--line-height` | Altura da linha | `var(--line-height-md)` |
30
+ * | `--border-radius` | Raio dos cantos dos itens | `var(--border-radius-md)` |
31
+ * | `--border-color` | Cor da borda lateral direita do componente | `var(--color-neutral-light-20)` |
32
+ * | `--background-color` | Cor de fundo do componente | `var(--color-neutral-light-05)` |
33
+ * | `--color` | Cor do texto dos itens | `var(--color-action-default)` |
34
+ * | `--color-context-title` | Cor do texto do título de contexto | `var(--color-neutral-mid-40)` |
35
+ * | `--color-title` | Cor do texto do título principal | `var(--color-neutral-dark-80)` |
36
+ * | `--font-weight` | Peso da fonte dos itens | `var(--font-weight-bold)` |
37
+ * | `--font-weight-title` | Peso da fonte do título principal | `var(--font-weight-bold)` |
38
+ * | `--outline-color-focused` | Cor do outline no estado de focus | `var(--color-action-focus)` |
39
+ * | **Hover** | | |
40
+ * | `--color-hover` | Cor do texto no estado hover | `var(--color-brand-01-darkest)` |
41
+ * | `--background-color-hover` | Cor de fundo no estado hover | `var(--color-brand-01-lighter)` |
42
+ * | **Pressed** | | |
43
+ * | `--background-color-pressed` | Cor de fundo no estado pressed | `var(--color-brand-01-light)` |
44
+ * | **Active (Selected)** | | |
45
+ * | `--background-color-actived` | Cor de fundo do item selecionado | `var(--color-brand-01-lightest)` |
46
+ * | `--color-actived` | Cor do texto do item selecionado | `var(--color-action-pressed)` |
47
+ *
48
+ */
49
+ export declare class PoContextMenuBaseComponent {
50
+ /**
51
+ * Título do contexto superior
52
+ */
53
+ contextTitle: import("@angular/core").InputSignal<string>;
54
+ /**
55
+ * Título principal do menu
56
+ */
57
+ title: import("@angular/core").InputSignal<string>;
58
+ /**
59
+ * Lista de itens para renderização.
60
+ *
61
+ * > Ao receber os itens, o componente valida que apenas um item pode ter `selected: true`.
62
+ * > Se mais de um item estiver com `selected: true`, apenas o primeiro será mantido como selecionado.
63
+ */
64
+ items: import("@angular/core").InputSignal<PoContextMenuItem[]>;
65
+ /**
66
+ * Define se o menu está aberto ou fechado.
67
+ *
68
+ * Suporta two-way binding:
69
+ *
70
+ * ```html
71
+ * <po-context-menu
72
+ * [(p-expanded)]="expanded"
73
+ * />
74
+ * ```
75
+ *
76
+ * ou
77
+ *
78
+ * ```html
79
+ * <po-context-menu
80
+ * [(p-expanded)]="expanded"
81
+ * (p-expandedChange)="handlerExpanded($event)"
82
+ * />
83
+ * ```
84
+ *
85
+ * @default `true`
86
+ */
87
+ expanded: import("@angular/core").ModelSignal<boolean>;
88
+ /**
89
+ * Evento emitido ao selecionar um item. Emite o item selecionado.
90
+ */
91
+ itemSelected: import("@angular/core").OutputEmitterRef<PoContextMenuItem>;
92
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @usedBy PoContextMenuComponent
3
+ *
4
+ * @description
5
+ *
6
+ * Interface para os itens do componente po-context-menu.
7
+ */
8
+ export interface PoContextMenuItem {
9
+ /** Texto do item de menu. */
10
+ label: string;
11
+ /** Ação executada ao clicar no item. */
12
+ action?: Function;
13
+ /** Estado de seleção do item. */
14
+ selected?: boolean;
15
+ }