@po-ui/ng-components 19.32.0 → 19.34.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 (97) hide show
  1. package/fesm2022/po-ui-ng-components.mjs +3523 -2688
  2. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  3. package/lib/components/po-breadcrumb/po-breadcrumb-base.component.d.ts +16 -1
  4. package/lib/components/po-chart/interfaces/po-chart-serie.interface.d.ts +3 -2
  5. package/lib/components/po-dropdown/po-dropdown-action.interface.d.ts +10 -0
  6. package/lib/components/po-dropdown/po-dropdown.component.d.ts +5 -0
  7. package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts +10 -5
  8. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.d.ts +2 -2
  9. package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.d.ts +16 -1
  10. package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +6 -8
  11. package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +3 -12
  12. package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +6 -8
  13. package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +7 -12
  14. package/lib/components/po-field/po-checkbox-group/po-checkbox-group.module.d.ts +2 -1
  15. package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +6 -8
  16. package/lib/components/po-field/po-combo/po-combo.component.d.ts +5 -12
  17. package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +5 -7
  18. package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +7 -14
  19. package/lib/components/po-field/po-datepicker/po-datepicker.module.d.ts +2 -1
  20. package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +5 -7
  21. package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +4 -12
  22. package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +3 -4
  23. package/lib/components/po-field/po-email/po-email.component.d.ts +3 -3
  24. package/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.d.ts +3 -1
  25. package/lib/components/po-field/po-field-container/po-field-container.component.d.ts +3 -1
  26. package/lib/components/po-field/po-field.model.d.ts +7 -16
  27. package/lib/components/po-field/po-input/po-input-base.component.d.ts +12 -19
  28. package/lib/components/po-field/po-input/po-input.component.d.ts +3 -3
  29. package/lib/components/po-field/po-input-generic/po-input-generic.d.ts +0 -2
  30. package/lib/components/po-field/po-login/po-login.component.d.ts +3 -1
  31. package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +6 -8
  32. package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.d.ts +1 -1
  33. package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +8 -14
  34. package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +6 -8
  35. package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +4 -12
  36. package/lib/components/po-field/po-number/po-number.component.d.ts +3 -2
  37. package/lib/components/po-field/po-password/po-password.component.d.ts +3 -1
  38. package/lib/components/po-field/po-radio/po-radio.component.d.ts +11 -1
  39. package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +6 -8
  40. package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +7 -12
  41. package/lib/components/po-field/po-radio-group/po-radio-group.module.d.ts +2 -1
  42. package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +6 -8
  43. package/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.d.ts +1 -2
  44. package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +4 -10
  45. package/lib/components/po-field/po-select/po-select.component.d.ts +7 -14
  46. package/lib/components/po-field/po-switch/po-switch.component.d.ts +33 -6
  47. package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +6 -8
  48. package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +7 -12
  49. package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +6 -8
  50. package/lib/components/po-field/po-upload/po-upload.component.d.ts +5 -11
  51. package/lib/components/po-field/po-url/po-url.component.d.ts +3 -2
  52. package/lib/components/po-helper/po-helper-base.component.d.ts +12 -1
  53. package/lib/components/po-helper/po-helper.component.d.ts +1 -0
  54. package/lib/components/po-info/po-info-base.component.d.ts +16 -1
  55. package/lib/components/po-listbox/interfaces/po-listbox-literals.interface.d.ts +2 -0
  56. package/lib/components/po-listbox/po-item-list/po-item-list-base.component.d.ts +2 -1
  57. package/lib/components/po-listbox/po-listbox-base.component.d.ts +9 -8
  58. package/lib/components/po-listbox/po-listbox.component.d.ts +14 -3
  59. package/lib/components/po-listbox/po-listbox.module.d.ts +3 -2
  60. package/lib/components/po-loading/po-loading-base.component.d.ts +7 -4
  61. package/lib/components/po-page/interfaces/po-page-action.interface.d.ts +6 -5
  62. package/lib/components/po-page/po-page-default/po-page-default-base.component.d.ts +9 -8
  63. package/lib/components/po-page/po-page-detail/po-page-detail-base.component.d.ts +14 -0
  64. package/lib/components/po-page/po-page-edit/po-page-edit-base.component.d.ts +14 -0
  65. package/lib/components/po-page/po-page-header/po-page-header-base.component.d.ts +3 -1
  66. package/lib/components/po-page/po-page-list/po-page-list-base.component.d.ts +14 -0
  67. package/lib/components/po-popover/po-popover-base.component.d.ts +13 -1
  68. package/lib/components/po-popover/po-popover.component.d.ts +11 -0
  69. package/lib/components/po-popup/po-popup-action.interface.d.ts +36 -4
  70. package/lib/components/po-popup/po-popup-base.component.d.ts +2 -1
  71. package/lib/components/po-search/po-search-base.component.d.ts +17 -1
  72. package/lib/components/po-search/po-search.component.d.ts +1 -1
  73. package/lib/components/po-table/enums/po-table-spacing.enum.d.ts +1 -1
  74. package/lib/components/po-tag/po-tag-base.component.d.ts +1 -0
  75. package/lib/enums/po-density-mode.enum.d.ts +14 -0
  76. package/lib/enums/po-field-size.enum.d.ts +5 -3
  77. package/lib/services/po-theme/helpers/accessibilities/po-theme-density.constant.d.ts +12 -0
  78. package/lib/services/po-theme/helpers/types/po-theme-dark-defaults-AA.constant.d.ts +4 -0
  79. package/lib/services/po-theme/helpers/types/po-theme-dark-defaults.constant.d.ts +5 -0
  80. package/lib/services/po-theme/po-theme.module.d.ts +1 -1
  81. package/lib/services/po-theme/po-theme.service.d.ts +39 -11
  82. package/lib/utils/util.d.ts +9 -2
  83. package/package.json +4 -4
  84. package/po-ui-ng-components-19.34.0.tgz +0 -0
  85. package/schematics/ng-add/index.js +1 -1
  86. package/schematics/ng-update/v14/index.js +1 -1
  87. package/schematics/ng-update/v15/index.js +1 -1
  88. package/schematics/ng-update/v16/index.js +1 -1
  89. package/schematics/ng-update/v17/index.js +1 -1
  90. package/schematics/ng-update/v18/index.js +2 -2
  91. package/schematics/ng-update/v19/index.js +2 -2
  92. package/schematics/ng-update/v2/index.js +1 -1
  93. package/schematics/ng-update/v3/index.js +1 -1
  94. package/schematics/ng-update/v4/index.js +1 -1
  95. package/schematics/ng-update/v5/index.js +1 -1
  96. package/schematics/ng-update/v6/index.js +1 -1
  97. package/po-ui-ng-components-19.32.0.tgz +0 -0
@@ -16,6 +16,7 @@ export declare class PoInfoBaseComponent {
16
16
  readonly poInfoOrientation: typeof PoInfoOrientation;
17
17
  private _labelSize;
18
18
  private _orientation;
19
+ private _size?;
19
20
  /**
20
21
  * @optional
21
22
  *
@@ -44,6 +45,20 @@ export declare class PoInfoBaseComponent {
44
45
  */
45
46
  set orientation(value: PoInfoOrientation);
46
47
  get orientation(): PoInfoOrientation;
48
+ /**
49
+ * @optional
50
+ *
51
+ * @description
52
+ *
53
+ * Define o tamanho do componente entre `small` ou `medium`.
54
+ *
55
+ * > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
56
+ * Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
57
+ *
58
+ * @default `medium`
59
+ */
60
+ set size(value: string);
61
+ get size(): string;
47
62
  static ɵfac: i0.ɵɵFactoryDeclaration<PoInfoBaseComponent, never>;
48
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoInfoBaseComponent, never, never, { "label": { "alias": "p-label"; "required": false; }; "url": { "alias": "p-url"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; "labelSize": { "alias": "p-label-size"; "required": false; }; "orientation": { "alias": "p-orientation"; "required": false; }; }, {}, never, never, true, never>;
63
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoInfoBaseComponent, never, never, { "label": { "alias": "p-label"; "required": false; }; "url": { "alias": "p-url"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; "labelSize": { "alias": "p-label-size"; "required": false; }; "orientation": { "alias": "p-orientation"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, {}, never, never, true, never>;
49
64
  }
@@ -6,6 +6,8 @@
6
6
  * Interface para definição de literais utilizadas no `po-listbox`
7
7
  */
8
8
  export interface PoListBoxLiterals {
9
+ /** Texto do botão para voltar ao agrupador anterior. */
10
+ backToPreviousGroup?: string;
9
11
  /** Texto exibido quando não houver itens na lista */
10
12
  noItems?: string;
11
13
  /** Texto do *placeholder* do campo de busca. */
@@ -77,6 +77,7 @@ export declare class PoItemListBaseComponent {
77
77
  * Define um ícone que será exibido ao lado esquerdo do rótulo.
78
78
  */
79
79
  icon: string | TemplateRef<void>;
80
+ iconPosition: 'left' | 'right';
80
81
  /**
81
82
  * @optional
82
83
  *
@@ -107,7 +108,7 @@ export declare class PoItemListBaseComponent {
107
108
  keysLabel?: Array<string>;
108
109
  protected emitActiveTabs(tab: any): void;
109
110
  static ɵfac: i0.ɵɵFactoryDeclaration<PoItemListBaseComponent, never>;
110
- 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; }; "keysLabel": { "alias": "p-keys-label"; "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>;
111
+ 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; }; "iconPosition": { "alias": "p-icon-position"; "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; }; "keysLabel": { "alias": "p-keys-label"; "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>;
111
112
  static ngAcceptInputType_danger: any;
112
113
  static ngAcceptInputType_selected: any;
113
114
  static ngAcceptInputType_separator: any;
@@ -23,6 +23,7 @@ export declare class PoListBoxBaseComponent {
23
23
  private _literals;
24
24
  private language;
25
25
  private _size?;
26
+ listboxSubitems: boolean;
26
27
  visible: boolean;
27
28
  set type(value: string);
28
29
  get type(): PoItemListType;
@@ -33,18 +34,11 @@ export declare class PoListBoxBaseComponent {
33
34
  get isItemListGroup(): boolean;
34
35
  isTabs: boolean;
35
36
  param?: any;
36
- selectItem: EventEmitter<any>;
37
- closeEvent: EventEmitter<any>;
38
- change: EventEmitter<any>;
39
- selectCombo: EventEmitter<any>;
40
- changeAll: EventEmitter<any>;
41
- UpdateInfiniteScroll: EventEmitter<any>;
42
37
  checkboxAllValue: any;
43
38
  selectedOptions: Array<any>;
44
39
  selectedOption?: any;
45
40
  fieldValue: string;
46
41
  fieldLabel: string;
47
- changeSearch: EventEmitter<any>;
48
42
  literalSearch?: any;
49
43
  fieldValueSearch: string;
50
44
  hideSearch?: boolean;
@@ -70,6 +64,13 @@ export declare class PoListBoxBaseComponent {
70
64
  footerActionListbox: boolean;
71
65
  placeholderListbox: string;
72
66
  separator: boolean;
67
+ changeSearch: EventEmitter<any>;
68
+ selectItem: EventEmitter<any>;
69
+ closeEvent: EventEmitter<any>;
70
+ change: EventEmitter<any>;
71
+ selectCombo: EventEmitter<any>;
72
+ changeAll: EventEmitter<any>;
73
+ UpdateInfiniteScroll: EventEmitter<any>;
73
74
  activatedTab: EventEmitter<any>;
74
75
  clickTab: EventEmitter<any>;
75
76
  changeStateTabs: EventEmitter<any>;
@@ -77,7 +78,7 @@ export declare class PoListBoxBaseComponent {
77
78
  footerActionListboxEvent: EventEmitter<any>;
78
79
  constructor(languageService: PoLanguageService);
79
80
  static ɵfac: i0.ɵɵFactoryDeclaration<PoListBoxBaseComponent, never>;
80
- 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; }; "keysLabel": { "alias": "p-keys-label"; "required": false; }; "footerActionListbox": { "alias": "p-footer-action-listbox"; "required": false; }; "placeholderListbox": { "alias": "p-placeholder-listbox"; "required": false; }; "separator": { "alias": "p-separator"; "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"; "clickItem": "p-click-item"; "footerActionListboxEvent": "p-footer-action-listbox-event"; }, never, never, true, never>;
81
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoListBoxBaseComponent, never, never, { "listboxSubitems": { "alias": "p-listbox-subitems"; "required": false; }; "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; }; "keysLabel": { "alias": "p-keys-label"; "required": false; }; "footerActionListbox": { "alias": "p-footer-action-listbox"; "required": false; }; "placeholderListbox": { "alias": "p-placeholder-listbox"; "required": false; }; "separator": { "alias": "p-separator"; "required": false; }; }, { "changeSearch": "p-change-search"; "selectItem": "p-select-item"; "closeEvent": "p-close"; "change": "p-change"; "selectCombo": "p-selectcombo-item"; "changeAll": "p-change-all"; "UpdateInfiniteScroll": "p-update-infinite-scroll"; "activatedTab": "p-activated-tabs"; "clickTab": "p-click-tabs"; "changeStateTabs": "p-change-state-tabs"; "clickItem": "p-click-item"; "footerActionListboxEvent": "p-footer-action-listbox-event"; }, never, never, true, never>;
81
82
  static ngAcceptInputType_visible: any;
82
83
  static ngAcceptInputType_isTabs: any;
83
84
  static ngAcceptInputType_isServerSearching: any;
@@ -1,26 +1,36 @@
1
- import { AfterViewInit, ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
1
+ import { AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
2
2
  import { PoListBoxBaseComponent } from './po-listbox-base.component';
3
3
  import { PoItemListOptionGroup } from './po-item-list/interfaces/po-item-list-option-group.interface';
4
4
  import { PoItemListOption } from './po-item-list/interfaces/po-item-list-option.interface';
5
5
  import { PoSearchListComponent } from './po-search-list/po-search-list.component';
6
+ import { PoDropdownAction } from '../po-dropdown/po-dropdown-action.interface';
6
7
  import { Observable } from 'rxjs';
7
8
  import * as i0 from "@angular/core";
8
- export declare class PoListBoxComponent extends PoListBoxBaseComponent implements AfterViewInit, OnChanges, OnDestroy {
9
+ export declare class PoListBoxComponent extends PoListBoxBaseComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy {
9
10
  element: ElementRef<any>;
11
+ currentItems: Array<PoDropdownAction>;
12
+ currentGroup: PoDropdownAction | null;
13
+ private readonly navigationStack;
10
14
  private readonly renderer;
11
15
  private readonly router;
12
16
  private readonly changeDetector;
13
17
  listbox: ElementRef;
14
18
  listboxItemList: ElementRef;
19
+ listboxGroupHeader: ElementRef;
15
20
  searchElement: PoSearchListComponent;
16
21
  popupHeaderContainer: ElementRef;
22
+ listboxItems: QueryList<ElementRef>;
17
23
  private scrollEvent$;
18
24
  private subscriptionScrollEvent;
19
25
  constructor();
26
+ ngOnInit(): void;
20
27
  ngAfterViewInit(): void;
21
28
  ngOnChanges(changes?: SimpleChanges): void;
22
29
  ngOnDestroy(): void;
23
- onSelectItem(itemListAction: PoItemListOption | PoItemListOptionGroup | any): void | Promise<boolean>;
30
+ openGroup(group: PoDropdownAction, event?: MouseEvent | KeyboardEvent): void;
31
+ goBack(event: MouseEvent | KeyboardEvent): void;
32
+ onKeydownGoBack(event: KeyboardEvent): void;
33
+ onSelectItem(itemListAction: PoItemListOption | PoItemListOptionGroup | any, event?: MouseEvent | KeyboardEvent): void | Promise<boolean>;
24
34
  onSelectAllCheckboxKeyDown(event: KeyboardEvent): void;
25
35
  onKeyDown(itemListAction: PoItemListOption | PoItemListOptionGroup | any, event?: KeyboardEvent): void;
26
36
  checkboxClicked({ option, selected }: {
@@ -47,6 +57,7 @@ export declare class PoListBoxComponent extends PoListBoxBaseComponent implement
47
57
  private includeInfiniteScroll;
48
58
  protected returnBooleanValue(itemListAction: any, property: string): any;
49
59
  private setListBoxMaxHeight;
60
+ private setListBoxWidth;
50
61
  private openUrl;
51
62
  onClickTabs(tab: any): void;
52
63
  formatItemList(item: any): string;
@@ -6,9 +6,10 @@ import * as i4 from "@angular/common";
6
6
  import * as i5 from "../po-field/po-checkbox/po-checkbox.module";
7
7
  import * as i6 from "../po-icon/po-icon.module";
8
8
  import * as i7 from "../po-loading/po-loading.module";
9
- import * as i8 from "@angular/cdk/listbox";
9
+ import * as i8 from "../po-tag/po-tag.module";
10
+ import * as i9 from "@angular/cdk/listbox";
10
11
  export declare class PoListBoxModule {
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<PoListBoxModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<PoListBoxModule, [typeof i1.PoListBoxComponent, typeof i2.PoItemListComponent, typeof i3.PoSearchListComponent], [typeof i4.CommonModule, typeof i5.PoCheckboxModule, typeof i6.PoIconModule, typeof i7.PoLoadingModule, typeof i8.CdkListboxModule], [typeof i1.PoListBoxComponent]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<PoListBoxModule, [typeof i1.PoListBoxComponent, typeof i2.PoItemListComponent, typeof i3.PoSearchListComponent], [typeof i4.CommonModule, typeof i5.PoCheckboxModule, typeof i6.PoIconModule, typeof i7.PoLoadingModule, typeof i8.PoTagModule, typeof i9.CdkListboxModule], [typeof i1.PoListBoxComponent]>;
13
14
  static ɵinj: i0.ɵɵInjectorDeclaration<PoListBoxModule>;
14
15
  }
@@ -16,7 +16,7 @@ export declare const poLoadingLiteralsDefault: {
16
16
  * ou aguardando a resposta de alguma requisição.
17
17
  */
18
18
  export declare class PoLoadingBaseComponent {
19
- private languageService;
19
+ protected languageService: PoLanguageService;
20
20
  private _text?;
21
21
  private _size?;
22
22
  /**
@@ -26,14 +26,17 @@ export declare class PoLoadingBaseComponent {
26
26
  get text(): string;
27
27
  /**
28
28
  * Define o tamanho do ícone.
29
- *
30
- * @default `lg`
31
- *
32
29
  * Valores válidos:
33
30
  * - `xs`: 16px
34
31
  * - `sm`: 24px
35
32
  * - `md`: 32px
36
33
  * - `lg`: 80px
34
+ *
35
+ * > Em nível de acessibilidade **AA**, caso o valor de `p-size` não seja definido, o valor padrão será `sm`
36
+ * > quando o valor padrão dos componentes for configurado como `small` no
37
+ * > [serviço de tema](https://po-ui.io/documentation/po-theme).
38
+ *
39
+ * @default `lg`
37
40
  */
38
41
  set size(value: string);
39
42
  get size(): string;
@@ -1,16 +1,17 @@
1
- import { PoPopupAction } from '../../po-popup/po-popup-action.interface';
1
+ import { PoDropdownAction } from '../../po-dropdown';
2
2
  /**
3
3
  * @description
4
4
  * Interface para as ações dos componentes po-page-default e po-page-list.
5
5
  *
6
- * > As propriedades `selected`, `separator` e `type` serão vistas a partir da terceira ação e somente quando
7
- * definir quatro ações ou mais.
6
+ * > Quando o array de actions possui quatro ou mais registros, os dois últimos e os seguintes são automaticamente agrupados no po-dropdown.
7
+ * A partir desse ponto, as propriedades `selected`, `separator`, `type` e `subItems` passam a ter efeito apenas nas ações exibidas dentro do dropdown, ou seja, a partir da terceira ação.
8
+ * Dessa forma, o uso de subItems (agrupadores dentro do dropdown) só terá efeito quando houver pelo menos quatro ações definidas.
8
9
  *
9
- * @docsExtends PoPopupAction
10
+ * @docsExtends PoDropdownAction
10
11
  *
11
12
  * @ignoreExtendedDescription
12
13
  *
13
14
  * @usedBy PoPageDefaultComponent, PoPageListComponent
14
15
  */
15
- export interface PoPageAction extends PoPopupAction {
16
+ export interface PoPageAction extends PoDropdownAction {
16
17
  }
@@ -19,14 +19,15 @@ export declare const poPageDefaultLiteralsDefault: {
19
19
  *
20
20
  * > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
21
21
  *
22
- * | Propriedade | Descrição | Valor Padrão |
23
- * |----------------------------------------|-------------------------------------------------------|-------------------------------------------------|
24
- * | **Default Values** | | |
25
- * | `--padding` | Espaçamento do componente | `var(--spacing-xs) var(--spacing-md)` |
26
- * | `--gap` | Gap entre o header e o conteúdo | `var(--spacing-md)` |
27
- * | `--padding-top-header` | Espaçamento do topo do header | `var(--color-neutral-light-30)` |
28
- * | `--gap-actions` | Gap entre os botões de action | `var(--spacing-xs)` |
29
- * | `--padding-content` | Espaçamento do conteúdo | `var(--spacing-xs) var(--spacing-sm)` |
22
+ * | Propriedade | Descrição | Valor Padrão |
23
+ * |---------------------|---------------------------------------------|---------------------------------------|
24
+ * | **Header** | | |
25
+ * | `--padding` | Espaçamento do header | `var(--spacing-xs) var(--spacing-md)` |
26
+ * | `--gap` | Espaçamento entre os breadcrumbs e o título | `var(--spacing-md)` |
27
+ * | `--gap-actions` | Espaçamento entre as ações | `var(--spacing-xs)` |
28
+ * | `--font-family` | Família tipográfica do título | `var(--font-family-theme)` |
29
+ * | **Content** | | |
30
+ * | `--padding-content` | Espaçamento do conteúdo | `var(--spacing-xs) var(--spacing-sm)` |
30
31
  */
31
32
  export declare abstract class PoPageDefaultBaseComponent {
32
33
  poPageContent: PoPageContentComponent;
@@ -15,6 +15,20 @@ export declare const poPageDetailLiteralsDefault: {
15
15
  *
16
16
  * O componente **po-page-detail** é utilizado como container principal para a tela de
17
17
  * detalhamento de um registro, tendo a possibilidade de usar as ações de "Voltar", "Editar" e "Remover".
18
+ *
19
+ * #### Tokens customizáveis
20
+ *
21
+ * > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
22
+ *
23
+ * | Propriedade | Descrição | Valor Padrão |
24
+ * |---------------------|---------------------------------------------|---------------------------------------|
25
+ * | **Header** | | |
26
+ * | `--padding` | Espaçamento do header | `var(--spacing-xs) var(--spacing-md)` |
27
+ * | `--gap` | Espaçamento entre os breadcrumbs e o título | `var(--spacing-md)` |
28
+ * | `--gap-actions` | Espaçamento entre as ações | `var(--spacing-xs)` |
29
+ * | `--font-family` | Família tipográfica do título | `var(--font-family-theme)` |
30
+ * | **Content** | | |
31
+ * | `--padding-content` | Espaçamento do conteúdo | `var(--spacing-xs) var(--spacing-sm)` |
18
32
  */
19
33
  export declare class PoPageDetailBaseComponent {
20
34
  poPageContent: PoPageContentComponent;
@@ -19,6 +19,20 @@ export declare const poPageEditLiteralsDefault: {
19
19
  * Os botões "Salvar" e "Salvar e Novo" podem ser habilitados/desabilitados utilizando a propriedade `p-disable-submit`.
20
20
  * Esta propriedade pode ser utilizada para desabilitar os botões caso exista um formulário inválido na página ou alguma
21
21
  * regra de negócio não tenha sido atendida.
22
+ *
23
+ * #### Tokens customizáveis
24
+ *
25
+ * > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
26
+ *
27
+ * | Propriedade | Descrição | Valor Padrão |
28
+ * |---------------------|---------------------------------------------|---------------------------------------|
29
+ * | **Header** | | |
30
+ * | `--padding` | Espaçamento do header | `var(--spacing-xs) var(--spacing-md)` |
31
+ * | `--gap` | Espaçamento entre os breadcrumbs e o título | `var(--spacing-md)` |
32
+ * | `--gap-actions` | Espaçamento entre as ações | `var(--spacing-xs)` |
33
+ * | `--font-family` | Família tipográfica do título | `var(--font-family-theme)` |
34
+ * | **Content** | | |
35
+ * | `--padding-content` | Espaçamento do conteúdo | `var(--spacing-xs) var(--spacing-sm)` |
22
36
  */
23
37
  export declare class PoPageEditBaseComponent {
24
38
  poPageContent: PoPageContentComponent;
@@ -11,6 +11,8 @@ import * as i0 from "@angular/core";
11
11
  export declare class PoPageHeaderBaseComponent {
12
12
  /** Título da página. */
13
13
  title: string;
14
+ /** Define o tamanho dos componentes no header. */
15
+ size: string;
14
16
  /** Subtítulo da página. */
15
17
  subtitle: string;
16
18
  private _breadcrumb;
@@ -18,5 +20,5 @@ export declare class PoPageHeaderBaseComponent {
18
20
  set breadcrumb(value: PoBreadcrumb);
19
21
  get breadcrumb(): PoBreadcrumb;
20
22
  static ɵfac: i0.ɵɵFactoryDeclaration<PoPageHeaderBaseComponent, never>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoPageHeaderBaseComponent, never, never, { "title": { "alias": "p-title"; "required": false; }; "subtitle": { "alias": "p-subtitle"; "required": false; }; "breadcrumb": { "alias": "p-breadcrumb"; "required": false; }; }, {}, never, never, true, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoPageHeaderBaseComponent, never, never, { "title": { "alias": "p-title"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "subtitle": { "alias": "p-subtitle"; "required": false; }; "breadcrumb": { "alias": "p-breadcrumb"; "required": false; }; }, {}, never, never, true, never>;
22
24
  }
@@ -24,6 +24,20 @@ export declare const poPageListLiteralsDefault: {
24
24
  *
25
25
  * Para facilitar a manipulação e visualização dos filtros aplicados, é possível também utilizar o componente
26
26
  * [`po-disclaimer-group`](/documentation/po-disclaimer-group).
27
+ *
28
+ * #### Tokens customizáveis
29
+ *
30
+ * > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
31
+ *
32
+ * | Propriedade | Descrição | Valor Padrão |
33
+ * |---------------------|---------------------------------------------|---------------------------------------|
34
+ * | **Header** | | |
35
+ * | `--padding` | Espaçamento do header | `var(--spacing-xs) var(--spacing-md)` |
36
+ * | `--gap` | Espaçamento entre os breadcrumbs e o título | `var(--spacing-md)` |
37
+ * | `--gap-actions` | Espaçamento entre as ações | `var(--spacing-xs)` |
38
+ * | `--font-family` | Família tipográfica do título | `var(--font-family-theme)` |
39
+ * | **Content** | | |
40
+ * | `--padding-content` | Espaçamento do conteúdo | `var(--spacing-xs) var(--spacing-sm)` |
27
41
  */
28
42
  export declare abstract class PoPageListBaseComponent {
29
43
  poPageContent: PoPageContentComponent;
@@ -141,7 +141,19 @@ export declare class PoPopoverBaseComponent {
141
141
  */
142
142
  set trigger(value: string);
143
143
  get trigger(): string;
144
+ /**
145
+ * @Input
146
+ *
147
+ * @optional
148
+ *
149
+ * @description
150
+ * Permite a inclusão de classes CSS customizadas ao componente.
151
+ *
152
+ * Exemplo: `p-custom-classes="minha-classe-1 minha-classe-2"`.
153
+ *
154
+ */
155
+ customClasses: import("@angular/core").InputSignal<string>;
144
156
  static ɵfac: i0.ɵɵFactoryDeclaration<PoPopoverBaseComponent, never>;
145
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoPopoverBaseComponent, never, never, { "appendBox": { "alias": "p-append-in-body"; "required": false; }; "target": { "alias": "p-target"; "required": false; }; "title": { "alias": "p-title"; "required": false; }; "hideArrow": { "alias": "p-hide-arrow"; "required": false; }; "position": { "alias": "p-position"; "required": false; }; "trigger": { "alias": "p-trigger"; "required": false; }; }, { "closePopover": "p-close"; }, never, never, true, never>;
157
+ static ɵcmp: i0.ɵɵComponentDeclaration<PoPopoverBaseComponent, "po-popover-base", never, { "appendBox": { "alias": "p-append-in-body"; "required": false; }; "target": { "alias": "p-target"; "required": false; }; "title": { "alias": "p-title"; "required": false; }; "hideArrow": { "alias": "p-hide-arrow"; "required": false; }; "position": { "alias": "p-position"; "required": false; }; "trigger": { "alias": "p-trigger"; "required": false; }; "customClasses": { "alias": "p-custom-classes"; "required": false; "isSignal": true; }; }, { "closePopover": "p-close"; }, never, never, false, never>;
146
158
  static ngAcceptInputType_appendBox: any;
147
159
  }
@@ -32,7 +32,10 @@ export declare class PoPopoverComponent extends PoPopoverBaseComponent implement
32
32
  timeoutResize: any;
33
33
  targetElement: any;
34
34
  afterViewInitWasCalled: boolean;
35
+ private keydownTargetListener?;
36
+ private keydownPopoverListener?;
35
37
  eventListenerFunction: () => void;
38
+ private readonly tabbableSelector;
36
39
  constructor(renderer: Renderer2, poControlPosition: PoControlPositionService, cd: ChangeDetectorRef);
37
40
  ngOnChanges(changes: SimpleChanges): void;
38
41
  ngAfterViewInit(): void;
@@ -50,6 +53,14 @@ export declare class PoPopoverComponent extends PoPopoverBaseComponent implement
50
53
  private initEventListenerFunction;
51
54
  private removeListeners;
52
55
  private setElementsControlPosition;
56
+ private focusOnTarget;
57
+ private focusOnFirstFocusable;
58
+ private attachPopoverKeydown;
59
+ private isVisible;
60
+ private getTabbablesIn;
61
+ private getDocumentTabbables;
62
+ private focusNextAfterTarget;
63
+ private focusPrevBeforeTarget;
53
64
  static ɵfac: i0.ɵɵFactoryDeclaration<PoPopoverComponent, never>;
54
65
  static ɵcmp: i0.ɵɵComponentDeclaration<PoPopoverComponent, "po-popover", never, {}, {}, never, ["*"], false, never>;
55
66
  }
@@ -7,11 +7,21 @@ import { TemplateRef } from '@angular/core';
7
7
  * Interface para lista de ações do componente.
8
8
  */
9
9
  export interface PoPopupAction {
10
- /** Rótulo da ação. */
10
+ /**
11
+ * @description
12
+ *
13
+ * Rótulo da ação.
14
+ *
15
+ * No componente `po-dropdown`, a label também pode representar o agrupador de subitens.
16
+ */
11
17
  label: string;
12
18
  /**
19
+ * @description
20
+ *
13
21
  * Ação que será executada, sendo possível passar o nome ou a referência da função.
14
22
  *
23
+ * No componente `po-dropdown`, a action também pode ser executada para o agrupador de subitens.
24
+ *
15
25
  * > Para que a função seja executada no contexto do elemento filho o mesmo deve ser passado utilizando *bind*.
16
26
  *
17
27
  * Exemplo: `action: this.myFunction.bind(this)`
@@ -58,12 +68,20 @@ export interface PoPopupAction {
58
68
  * ```
59
69
  */
60
70
  icon?: string | TemplateRef<void>;
61
- /** Atribui uma linha separadora acima do item. */
71
+ /**
72
+ * @description
73
+ *
74
+ * Atribui uma linha separadora acima do item.
75
+ *
76
+ * */
62
77
  separator?: boolean;
63
78
  /**
79
+ * @description
80
+ *
64
81
  * Função que deve retornar um booleano para habilitar ou desabilitar a ação para o registro selecionado.
65
82
  *
66
83
  * Também é possível informar diretamente um valor booleano que vai habilitar ou desabilitar a ação para todos os registros.
84
+ *
67
85
  */
68
86
  disabled?: boolean | Function;
69
87
  /**
@@ -76,9 +94,23 @@ export interface PoPopupAction {
76
94
  * - `danger` - indicado para ações exclusivas (excluir, sair).
77
95
  */
78
96
  type?: string;
79
- /** URL utilizada no redirecionamento das páginas. */
97
+ /**
98
+ * @description
99
+ *
100
+ * URL utilizada para redirecionamento das páginas.
101
+ *
102
+ * No componente `po-dropdown`, a url também pode ser configurada para o agrupador de subitens.
103
+ * Entretanto, quando a `url` é informada em um agrupador, o clique **não abrirá os subitens**, pois o item será
104
+ * tratado como um link e o redirecionamento terá prioridade sobre a exibição da lista.
105
+ *
106
+ */
80
107
  url?: string;
81
- /** Define se a ação está selecionada. */
108
+ /**
109
+ * @description
110
+ *
111
+ * Define se a ação está selecionada.
112
+ *
113
+ */
82
114
  selected?: boolean;
83
115
  /**
84
116
  * @description
@@ -76,6 +76,7 @@ export declare class PoPopupBaseComponent {
76
76
  private _position?;
77
77
  private _size?;
78
78
  private _target;
79
+ listboxSubitems: boolean;
79
80
  /** Lista de ações que serão exibidas no componente. */
80
81
  set actions(value: Array<PoPopupAction>);
81
82
  get actions(): Array<PoPopupAction>;
@@ -207,5 +208,5 @@ export declare class PoPopupBaseComponent {
207
208
  closeEvent: EventEmitter<any>;
208
209
  clickItem: EventEmitter<any>;
209
210
  static ɵfac: i0.ɵɵFactoryDeclaration<PoPopupBaseComponent, never>;
210
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoPopupBaseComponent, never, never, { "actions": { "alias": "p-actions"; "required": false; }; "hideArrow": { "alias": "p-hide-arrow"; "required": false; }; "isCornerAlign": { "alias": "p-is-corner-align"; "required": false; }; "position": { "alias": "p-position"; "required": false; }; "customPositions": { "alias": "p-custom-positions"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "target": { "alias": "p-target"; "required": false; }; }, { "closeEvent": "p-close"; "clickItem": "p-click-item"; }, never, never, true, never>;
211
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoPopupBaseComponent, never, never, { "listboxSubitems": { "alias": "p-listbox-subitems"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "hideArrow": { "alias": "p-hide-arrow"; "required": false; }; "isCornerAlign": { "alias": "p-is-corner-align"; "required": false; }; "position": { "alias": "p-position"; "required": false; }; "customPositions": { "alias": "p-custom-positions"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "target": { "alias": "p-target"; "required": false; }; }, { "closeEvent": "p-close"; "clickItem": "p-click-item"; }, never, never, true, never>;
211
212
  }
@@ -329,6 +329,22 @@ export declare class PoSearchBaseComponent {
329
329
  * > Incompatível com a propriedade `p-search-type` do tipo `locate`.
330
330
  */
331
331
  filteredItemsChange: EventEmitter<any[]>;
332
+ /**
333
+ * @optional
334
+ *
335
+ * @description
336
+ *
337
+ * Evento emitido quando o campo de entrada (input) recebe foco.
338
+ */
339
+ focusEvent: EventEmitter<any>;
340
+ /**
341
+ * @optional
342
+ *
343
+ * @description
344
+ * Evento disparado quando uma tecla é pressionada enquanto o foco está no componente.
345
+ * Retorna um objeto `KeyboardEvent` com informações sobre a tecla.
346
+ */
347
+ keydown: EventEmitter<KeyboardEvent>;
332
348
  /**
333
349
  * @optional
334
350
  *
@@ -371,7 +387,7 @@ export declare class PoSearchBaseComponent {
371
387
  constructor(languageService: PoLanguageService);
372
388
  ensureFilterSelectOption(values: any): any[];
373
389
  static ɵfac: i0.ɵɵFactoryDeclaration<PoSearchBaseComponent, never>;
374
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoSearchBaseComponent, never, never, { "ariaLabel": { "alias": "p-aria-label"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "filterKeys": { "alias": "p-filter-keys"; "required": false; }; "filterSelect": { "alias": "p-filter-select"; "required": false; }; "filterType": { "alias": "p-filter-type"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "locateSummary": { "alias": "p-locate-summary"; "required": false; }; "type": { "alias": "p-search-type"; "required": false; }; "showListbox": { "alias": "p-show-listbox"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "keysLabel": { "alias": "p-keys-label"; "required": false; }; }, { "blur": "p-blur"; "changeModel": "p-change-model"; "filter": "p-filter"; "filteredItemsChange": "p-filtered-items-change"; "listboxOnClick": "p-listbox-onclick"; "locateNext": "p-locate-next"; "locatePrevious": "p-locate-previous"; "footerAction": "p-footer-action-listbox"; }, never, never, true, never>;
390
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PoSearchBaseComponent, never, never, { "ariaLabel": { "alias": "p-aria-label"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "filterKeys": { "alias": "p-filter-keys"; "required": false; }; "filterSelect": { "alias": "p-filter-select"; "required": false; }; "filterType": { "alias": "p-filter-type"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "locateSummary": { "alias": "p-locate-summary"; "required": false; }; "type": { "alias": "p-search-type"; "required": false; }; "showListbox": { "alias": "p-show-listbox"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "keysLabel": { "alias": "p-keys-label"; "required": false; }; }, { "blur": "p-blur"; "changeModel": "p-change-model"; "filter": "p-filter"; "filteredItemsChange": "p-filtered-items-change"; "focusEvent": "p-focus"; "keydown": "p-keydown"; "listboxOnClick": "p-listbox-onclick"; "locateNext": "p-locate-next"; "locatePrevious": "p-locate-previous"; "footerAction": "p-footer-action-listbox"; }, never, never, true, never>;
375
391
  static ngAcceptInputType_disabled: any;
376
392
  static ngAcceptInputType_showListbox: any;
377
393
  }
@@ -124,7 +124,7 @@ export declare class PoSearchComponent extends PoSearchBaseComponent implements
124
124
  getInputValue(): any;
125
125
  createDropdownFilterSelect(): void;
126
126
  isSelected(filterOption: PoSearchFilterSelect): boolean;
127
- changeFilterSelect(filterOption: PoSearchFilterSelect): void;
127
+ changeFilterSelect(filterOption: PoSearchFilterSelect, focus?: boolean): void;
128
128
  handlerFooterActionListbox(): void;
129
129
  private openListboxFooterAction;
130
130
  private handlerPlaceholderListbox;
@@ -5,7 +5,7 @@
5
5
  * Tipos de espaçamento interno (padding) das células (**p-spacing**) do po-table.
6
6
  */
7
7
  export declare enum PoTableColumnSpacing {
8
- /** Espaçamento extra pequeno: 0.25rem (vertical) x 1rem (horizontal). */
8
+ /** Espaçamento extra pequeno: 0.25rem (vertical) x 0.5rem (horizontal). */
9
9
  ExtraSmall = "extraSmall",
10
10
  /** Espaçamento pequeno: 0.5rem (vertical) x 1rem (horizontal). */
11
11
  Small = "small",
@@ -42,6 +42,7 @@ export declare const PoTagLiteralsDefault: {
42
42
  * | `--font-size` | Tamanho da fonte | `var(--font-size-sm)` |
43
43
  * | `--line-height` | Tamanho da label | `var(---line-height-sm)` |
44
44
  * | `--border-radius` | Contém o valor do raio dos cantos do elemento&nbsp; | `var(--border-radius-pill)` |
45
+ * | `--gap` | Espaçamento entre o label e o value | `var(--spacing-xs)` |
45
46
  * | **Neutral** | | |
46
47
  * | `--color-neutral` | Cor principal no estado neutral | `var(--color-neutral-light-10)` |
47
48
  * | `--text-color-positive` | Cor do texto no estado neutral | `var(--color-neutral-dark-80)` |
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @docsPrivate
3
+ *
4
+ * @description
5
+ *
6
+ * Define o nível de densidade (espaçamento) aplicado em componentes agrupadores. Pode ser ajustado conforme a
7
+ * preferência do usuário ou requisitos de acessibilidade.
8
+ */
9
+ export declare enum PoDensityMode {
10
+ /** Define espaçamentos mais compactos entre os elementos. */
11
+ Small = "small",
12
+ /** Define espaçamentos mais amplos e confortáveis. */
13
+ Medium = "medium"
14
+ }
@@ -3,11 +3,13 @@
3
3
  *
4
4
  * @description
5
5
  *
6
- * Tamanhos da propriedade `p-size`. A medida `small` está disponível apenas para acessibilidade AA.
6
+ * Define o tamanho padrão utilizado em componentes interativos. Este enum também é usado pelo serviço de tema para
7
+ * definir a preferência global de tamanho dos componentes. Por padrão, os componentes utilizam o tamanho `medium` por
8
+ * ser mais acessível (conforme diretrizes WCAG nível AAA).
9
+ *
10
+ * > O tamanho `small` está disponível apenas em contextos com acessibilidade AA.
7
11
  */
8
12
  export declare enum PoFieldSize {
9
- /** Define a altura do input como 32px. */
10
13
  Small = "small",
11
- /** Define a altura do input como 44px. */
12
14
  Medium = "medium"
13
15
  }
@@ -0,0 +1,12 @@
1
+ export declare const poThemeDensity: {
2
+ small: {
3
+ '--default-spacing-0': string;
4
+ '--default-spacing-xs': string;
5
+ '--default-spacing-sm': string;
6
+ '--default-spacing-md': string;
7
+ '--default-spacing-lg': string;
8
+ '--default-spacing-xl': string;
9
+ '--default-line-height-xs': string;
10
+ '--default-spacing-squish-xs': string;
11
+ };
12
+ };