@po-ui/ng-components 19.25.0 → 19.27.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 (34) hide show
  1. package/fesm2022/po-ui-ng-components.mjs +306 -69
  2. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  3. package/lib/components/po-chart/interfaces/po-chart-serie.interface.d.ts +33 -2
  4. package/lib/components/po-chart/po-chart.component.d.ts +3 -0
  5. package/lib/components/po-listbox/interfaces/po-listbox-literals.interface.d.ts +1 -0
  6. package/lib/components/po-listbox/po-item-list/po-item-list-base.component.d.ts +2 -1
  7. package/lib/components/po-listbox/po-listbox-base.component.d.ts +6 -1
  8. package/lib/components/po-listbox/po-listbox.component.d.ts +2 -1
  9. package/lib/components/po-navbar/interfaces/po-navbar-icon-action.interface.d.ts +2 -0
  10. package/lib/components/po-navbar/interfaces/po-navbar-item.interface.d.ts +2 -0
  11. package/lib/components/po-navbar/interfaces/po-navbar-literals.interface.d.ts +2 -0
  12. package/lib/components/po-navbar/po-navbar-base.component.d.ts +12 -0
  13. package/lib/components/po-navbar/po-navbar.component.d.ts +2 -0
  14. package/lib/components/po-navbar/po-navbar.module.d.ts +7 -2
  15. package/lib/components/po-search/literals/po-search-literals-default.d.ts +6 -0
  16. package/lib/components/po-search/literals/po-search-literals.interface.d.ts +8 -0
  17. package/lib/components/po-search/po-search-base.component.d.ts +31 -2
  18. package/lib/components/po-search/po-search.component.d.ts +16 -5
  19. package/lib/directives/po-tooltip/po-tooltip.directive.d.ts +3 -1
  20. package/package.json +4 -4
  21. package/po-ui-ng-components-19.27.0.tgz +0 -0
  22. package/schematics/ng-add/index.js +1 -1
  23. package/schematics/ng-update/v14/index.js +1 -1
  24. package/schematics/ng-update/v15/index.js +1 -1
  25. package/schematics/ng-update/v16/index.js +1 -1
  26. package/schematics/ng-update/v17/index.js +1 -1
  27. package/schematics/ng-update/v18/index.js +2 -2
  28. package/schematics/ng-update/v19/index.js +2 -2
  29. package/schematics/ng-update/v2/index.js +1 -1
  30. package/schematics/ng-update/v3/index.js +1 -1
  31. package/schematics/ng-update/v4/index.js +1 -1
  32. package/schematics/ng-update/v5/index.js +1 -1
  33. package/schematics/ng-update/v6/index.js +1 -1
  34. package/po-ui-ng-components-19.25.0.tgz +0 -0
@@ -50,13 +50,44 @@ export interface PoChartSerie {
50
50
  *
51
51
  * @description
52
52
  *
53
- * Define o texto que será exibido ao passar o mouse por cima das séries do *chart*.
53
+ * Define o texto que será exibido na tooltip ao passar o mouse por cima das séries do *chart*.
54
+ *
55
+ * Formatos aceitos:
56
+ *
57
+ * - **string**: pode conter marcadores dinâmicos e HTML simples.
58
+ * - Marcadores disponíveis:
59
+ * - `{name}` → Nome do item/categoria.
60
+ * - `{seriesName}` → Nome da série.
61
+ * - `{value}` → Valor correspondente.
62
+ *
63
+ * - **function**: função que recebe o objeto `params` e deve retornar uma *string* com o conteúdo da tooltip.
64
+ *
65
+ * > É possível utilizar marcação HTML simples (`<b>`, `<i>`, `<br>`, `<hr>`, etc.) que será interpretada via `innerHTML`.
66
+ *
67
+ * > Formatação customizada (será convertido internamente para HTML):
68
+ * - `\n` → quebra de linha (`<br>`).
69
+ * - `**texto**` → negrito (`<b>`).
70
+ * - `__texto__` → itálico (`<i>`).
54
71
  *
55
72
  * > Caso não seja informado um valor para o *tooltip*, será exibido da seguinte forma:
56
73
  * - `donut`: `label`: valor proporcional ao total em porcentagem.
57
74
  * - `area`, `bar`, `column`, `line` e `pie`: `label`: `data`.
75
+ *
76
+ * ### Exemplos:
77
+ *
78
+ * **Usando string com placeholders:**
79
+ * ```ts
80
+ * tooltip: 'Ano: {name}<br>Série: {seriesName}<br>Valor: <b>{value}</b>'
81
+ * ```
82
+ *
83
+ * **Usando função de callback:**
84
+ * ```ts
85
+ * tooltip = (params) => {
86
+ * return `Ano: ${params.name}<br><i>Valor:</i> ${params.value}`;
87
+ * }
88
+ * ```
58
89
  */
59
- tooltip?: string;
90
+ tooltip?: string | ((params: any) => string);
60
91
  /**
61
92
  * @optional
62
93
  *
@@ -99,12 +99,15 @@ export declare class PoChartComponent extends PoChartBaseComponent implements On
99
99
  getCSSVariable(variable: string, selector?: string): string;
100
100
  openModal(): Promise<void>;
101
101
  toggleExpand(): void;
102
+ private applyStringFormatter;
102
103
  private observeContainerResize;
103
104
  private checkShowCEcharts;
104
105
  private setInitialPopupActions;
105
106
  private setHeightProperties;
106
107
  private initECharts;
107
108
  private initEChartsEvents;
109
+ private parseTooltipText;
110
+ private resolveCustomTooltip;
108
111
  private setTooltipProperties;
109
112
  private setChartsProperties;
110
113
  private setOptions;
@@ -12,4 +12,5 @@ export interface PoListBoxLiterals {
12
12
  placeholderSearch?: string;
13
13
  /** Texto do checkbox para selecionar todos os itens. */
14
14
  selectAll?: string;
15
+ footerActionListbox?: string;
15
16
  }
@@ -104,9 +104,10 @@ export declare class PoItemListBaseComponent {
104
104
  activatedTab: EventEmitter<any>;
105
105
  set activeTabs(value: boolean);
106
106
  get activeTabs(): boolean;
107
+ keysLabel?: Array<string>;
107
108
  protected emitActiveTabs(tab: any): void;
108
109
  static ɵfac: i0.ɵɵFactoryDeclaration<PoItemListBaseComponent, 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>;
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>;
110
111
  static ngAcceptInputType_danger: any;
111
112
  static ngAcceptInputType_selected: any;
112
113
  static ngAcceptInputType_separator: any;
@@ -66,13 +66,18 @@ export declare class PoListBoxBaseComponent {
66
66
  compareCache: boolean;
67
67
  comboService: any;
68
68
  containerWidth: number;
69
+ keysLabel: Array<string>;
70
+ footerActionListbox: boolean;
71
+ placeholderListbox: string;
72
+ separator: boolean;
69
73
  activatedTab: EventEmitter<any>;
70
74
  clickTab: EventEmitter<any>;
71
75
  changeStateTabs: EventEmitter<any>;
72
76
  clickItem: EventEmitter<any>;
77
+ footerActionListboxEvent: EventEmitter<any>;
73
78
  constructor(languageService: PoLanguageService);
74
79
  static ɵfac: i0.ɵɵFactoryDeclaration<PoListBoxBaseComponent, never>;
75
- 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"; "clickItem": "p-click-item"; }, never, never, true, 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>;
76
81
  static ngAcceptInputType_visible: any;
77
82
  static ngAcceptInputType_isTabs: any;
78
83
  static ngAcceptInputType_isServerSearching: any;
@@ -43,13 +43,14 @@ export declare class PoListBoxComponent extends PoListBoxBaseComponent implement
43
43
  protected getSizeLoading(): "xs" | "sm" | "md";
44
44
  protected getTextLoading(): "" | " ";
45
45
  private hasInfiniteScroll;
46
- checkTemplate(): number;
46
+ checkTemplate(): number | true;
47
47
  private includeInfiniteScroll;
48
48
  protected returnBooleanValue(itemListAction: any, property: string): any;
49
49
  private setListBoxMaxHeight;
50
50
  private openUrl;
51
51
  onClickTabs(tab: any): void;
52
52
  formatItemList(item: any): string;
53
+ handleFooterActionListbox(): void;
53
54
  static ɵfac: i0.ɵɵFactoryDeclaration<PoListBoxComponent, never>;
54
55
  static ɵcmp: i0.ɵɵComponentDeclaration<PoListBoxComponent, "po-listbox", never, {}, {}, never, ["[p-popup-header-template]"], false, never>;
55
56
  }
@@ -1,5 +1,7 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  /**
3
+ * @deprecated v23.x.x
4
+ *
3
5
  * @usedBy PoNavbarComponent
4
6
  *
5
7
  * @description
@@ -1,4 +1,6 @@
1
1
  /**
2
+ * @deprecated v23.x.x
3
+ *
2
4
  * @usedBy PoNavbarComponent
3
5
  *
4
6
  * @description
@@ -1,4 +1,6 @@
1
1
  /**
2
+ * @deprecated v23.x.x
3
+ *
2
4
  * @usedBy PoNavbarComponent
3
5
  *
4
6
  * @description
@@ -30,6 +30,8 @@ export declare abstract class PoNavbarBaseComponent {
30
30
  private _shadow;
31
31
  private language;
32
32
  /**
33
+ * @deprecated v23.x.x
34
+ *
33
35
  * @optional
34
36
  *
35
37
  * @description
@@ -39,6 +41,8 @@ export declare abstract class PoNavbarBaseComponent {
39
41
  set iconActions(value: Array<PoNavbarIconAction>);
40
42
  get iconActions(): Array<PoNavbarIconAction>;
41
43
  /**
44
+ * @deprecated v23.x.x
45
+ *
42
46
  * @optional
43
47
  *
44
48
  * @description
@@ -48,6 +52,8 @@ export declare abstract class PoNavbarBaseComponent {
48
52
  set items(value: Array<PoNavbarItem>);
49
53
  get items(): Array<PoNavbarItem>;
50
54
  /**
55
+ * @deprecated v23.x.x
56
+ *
51
57
  * @optional
52
58
  *
53
59
  * @description
@@ -76,6 +82,8 @@ export declare abstract class PoNavbarBaseComponent {
76
82
  set literals(value: PoNavbarLiterals);
77
83
  get literals(): PoNavbarLiterals;
78
84
  /**
85
+ * @deprecated v23.x.x
86
+ *
79
87
  * @optional
80
88
  *
81
89
  * @description
@@ -85,6 +93,8 @@ export declare abstract class PoNavbarBaseComponent {
85
93
  set logo(value: string);
86
94
  get logo(): string;
87
95
  /**
96
+ * @deprecated v23.x.x
97
+ *
88
98
  * @optional
89
99
  *
90
100
  * @description
@@ -98,6 +108,8 @@ export declare abstract class PoNavbarBaseComponent {
98
108
  */
99
109
  logoAlt?: string;
100
110
  /**
111
+ * @deprecated v23.x.x
112
+ *
101
113
  * @optional
102
114
  *
103
115
  * @description
@@ -4,6 +4,8 @@ import { PoNavbarBaseComponent } from './po-navbar-base.component';
4
4
  import { PoNavbarItemsComponent } from './po-navbar-items/po-navbar-items.component';
5
5
  import * as i0 from "@angular/core";
6
6
  /**
7
+ * @deprecated v23.x.x use `po-header`
8
+ *
7
9
  * @docsExtends PoNavbarBaseComponent
8
10
  */
9
11
  export declare class PoNavbarComponent extends PoNavbarBaseComponent implements AfterViewInit, OnDestroy, OnInit {
@@ -9,12 +9,17 @@ import * as i7 from "./po-navbar-actions/po-navbar-actions.module";
9
9
  import * as i8 from "./po-navbar-item-navigation/po-navbar-item-navigation.module";
10
10
  import * as i9 from "./po-navbar-items/po-navbar-items.module";
11
11
  /**
12
+ * @deprecated v23.x.x use `po-header`
13
+ *
12
14
  * @description
13
15
  *
14
16
  * Módulo do componente `po-navbar`.
15
- *
17
+ * > Esse componente está **depreciado** e será removido na `v23.x.x`. Recomendamos utilizar o componente
18
+ * [po-header](https://po-ui.io/documentation/po-header), que oferece compatibilidade com todas as funcionalidades do
19
+ * `po-navbar`, além de maior flexibilidade, usabilidade e acessibilidade.
20
+ * >
16
21
  * > Para o correto funcionamento do componente `po-navbar`, deve ser importado o módulo `BrowserAnimationsModule` no
17
- * > módulo principal da sua aplicação.
22
+ * módulo principal da sua aplicação.
18
23
  *
19
24
  * Módulo da aplicação:
20
25
  * ```
@@ -5,3 +5,9 @@ export declare const poSearchLiteralsDefault: {
5
5
  pt: PoSearchLiterals;
6
6
  ru: PoSearchLiterals;
7
7
  };
8
+ export declare const poSearchLiteralsDefaultExecute: {
9
+ en: PoSearchLiterals;
10
+ es: PoSearchLiterals;
11
+ pt: PoSearchLiterals;
12
+ ru: PoSearchLiterals;
13
+ };
@@ -40,4 +40,12 @@ export interface PoSearchLiterals {
40
40
  * > Exibido apenas quando a propriedade `p-filter-locate` estiver habilitada.
41
41
  */
42
42
  result?: string;
43
+ /**
44
+ * Texto exibido na ação do rodapé da lista de resultados.
45
+ */
46
+ footerActionListbox?: string;
47
+ /**
48
+ * Texto exibido como *placeholder* na lista de resultados.
49
+ */
50
+ placeholderListbox?: string;
43
51
  }
@@ -5,7 +5,7 @@ import { PoSearchFilterSelect } from './interfaces/po-search-filter-select.inter
5
5
  import { PoSearchLiterals } from './literals/po-search-literals.interface';
6
6
  import { PoSearchLocateSummary } from './interfaces/po-search-locate-summary.interface';
7
7
  import * as i0 from "@angular/core";
8
- export type searchMode = 'action' | 'trigger' | 'locate';
8
+ export type searchMode = 'action' | 'trigger' | 'locate' | 'execute';
9
9
  /**
10
10
  * @description
11
11
  *
@@ -81,6 +81,7 @@ export declare class PoSearchBaseComponent {
81
81
  protected language: string;
82
82
  private _filterSelect?;
83
83
  private _size?;
84
+ private _keysLabel?;
84
85
  /**
85
86
  * @optional
86
87
  *
@@ -240,6 +241,8 @@ export declare class PoSearchBaseComponent {
240
241
  * - `action`: Realiza a busca a cada caractere digitado.
241
242
  * - `trigger`: Realiza a busca ao pressionar `enter` ou clicar no ícone de busca.
242
243
  * - `locate`: Modo manual. Exibe botões e contador, mas não executa buscas — controle é do desenvolvedor.
244
+ * - `execute`: Executa uma ação ou realiza um redirecionamento ao selecionar um item no `listbox`.
245
+ * Para este tipo, é necessário informar as propriedades `action` ou `url` nos itens definidos em `p-items`.
243
246
  *
244
247
  * @default `action`
245
248
  */
@@ -273,6 +276,23 @@ export declare class PoSearchBaseComponent {
273
276
  */
274
277
  set size(value: string);
275
278
  get size(): string;
279
+ /**
280
+ * @optional
281
+ *
282
+ * @description
283
+ *
284
+ * Define os nomes das propriedades do objeto que serão exibidos como rótulos (labels) no `listbox` quando a propriedade
285
+ * `p-show-listbox` estiver habilitada.
286
+ *
287
+ * Deve ser informado um array de strings contendo até **3 propriedades**.
288
+ *
289
+ * Exemplo de uso:
290
+ * ```ts
291
+ * keysLabel: Array<string> = ['nome', 'email', 'country'];
292
+ * ```
293
+ */
294
+ set keysLabel(value: Array<string>);
295
+ get keysLabel(): Array<string>;
276
296
  /**
277
297
  * @optional
278
298
  *
@@ -339,10 +359,19 @@ export declare class PoSearchBaseComponent {
339
359
  * > Compatível com a propriedade `p-search-type` do tipo `locate`.
340
360
  */
341
361
  locatePrevious: EventEmitter<void>;
362
+ /**
363
+ * @optional
364
+ *
365
+ * @description
366
+ *
367
+ * Evento disparado ao clicar no botão de ação exibido no rodapé do `listbox`.
368
+ * O texto exibido pode ser configurado por meio do literal `footerActionListbox`.
369
+ */
370
+ footerAction: EventEmitter<any>;
342
371
  constructor(languageService: PoLanguageService);
343
372
  ensureFilterSelectOption(values: any): any[];
344
373
  static ɵfac: i0.ɵɵFactoryDeclaration<PoSearchBaseComponent, never>;
345
- 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; }; }, { "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"; }, never, never, true, 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>;
346
375
  static ngAcceptInputType_disabled: any;
347
376
  static ngAcceptInputType_showListbox: any;
348
377
  }
@@ -40,6 +40,11 @@ import * as i0 from "@angular/core";
40
40
  * <file name="sample-po-search-filter-select/sample-po-search-filter-select.component.ts"> </file>
41
41
  * </example>
42
42
  *
43
+ * <example name="po-search-execute" title="PO Search Form Fields with Execute">
44
+ * <file name="sample-po-search-execute/sample-po-search-execute.component.html"> </file>
45
+ * <file name="sample-po-search-execute/sample-po-search-execute.component.ts"> </file>
46
+ * </example>
47
+ *
43
48
  * <example name="po-search-fields-locate" title="PO Search Form Fields with Locate">
44
49
  * <file name="sample-po-search-fields-locate/sample-po-search-fields-locate.component.html"> </file>
45
50
  * <file name="sample-po-search-fields-locate/sample-po-search-fields-locate.component.ts"> </file>
@@ -76,9 +81,15 @@ export declare class PoSearchComponent extends PoSearchBaseComponent implements
76
81
  searchFilter: {};
77
82
  searchFilterSelectLabel: string;
78
83
  searchFilterSelectActions: Array<PoDropdownAction>;
84
+ idSearchButtonClean: string;
85
+ protected showFooterActionListbox: boolean;
86
+ protected showSeparator: boolean;
87
+ protected placeholderListbox: string | null;
88
+ protected modelSelected: string;
79
89
  constructor();
80
90
  ngOnInit(): void;
81
91
  ngOnChanges(changes: SimpleChanges): void;
92
+ private configureSearchModeExecute;
82
93
  ngOnDestroy(): void;
83
94
  clearSearch(): void;
84
95
  onCleanKeydown(event: KeyboardEvent): void;
@@ -87,17 +98,14 @@ export declare class PoSearchComponent extends PoSearchBaseComponent implements
87
98
  private updateFilteredItems;
88
99
  private getFilteredItems;
89
100
  private itemMatchesFilter;
90
- getListboxFilteredItems(searchText: any): {
91
- label: string;
92
- value: string;
93
- }[];
101
+ getListboxFilteredItems(searchText: string): any[];
94
102
  private filterValue;
95
103
  get listboxItems(): {
96
104
  label: string;
97
105
  value: string;
98
106
  }[];
99
107
  onCloseListbox(): void;
100
- onListboxClick(option: PoSearchOption, event?: any): void;
108
+ onListboxClick(option: PoSearchOption | any, event?: any): void;
101
109
  onBlur(): void;
102
110
  onFocus(): void;
103
111
  onInputHandler(value: string): void;
@@ -117,6 +125,9 @@ export declare class PoSearchComponent extends PoSearchBaseComponent implements
117
125
  createDropdownFilterSelect(): void;
118
126
  isSelected(filterOption: PoSearchFilterSelect): boolean;
119
127
  changeFilterSelect(filterOption: PoSearchFilterSelect): void;
128
+ handlerFooterActionListbox(): void;
129
+ private openListboxFooterAction;
130
+ private handlerPlaceholderListbox;
120
131
  static ɵfac: i0.ɵɵFactoryDeclaration<PoSearchComponent, never>;
121
132
  static ɵcmp: i0.ɵɵComponentDeclaration<PoSearchComponent, "po-search", never, {}, {}, never, never, false, never>;
122
133
  }
@@ -1,6 +1,7 @@
1
1
  import { ElementRef, OnInit, Renderer2, OnDestroy } from '@angular/core';
2
2
  import { PoTooltipBaseDirective } from './po-tooltip-base.directive';
3
3
  import { PoTooltipControlPositionService } from './po-tooltip-control-position.service';
4
+ import { DomSanitizer } from '@angular/platform-browser';
4
5
  import * as i0 from "@angular/core";
5
6
  /**
6
7
  * @docsExtends PoTooltipBaseDirective
@@ -27,6 +28,7 @@ export declare class PoTooltipDirective extends PoTooltipBaseDirective implement
27
28
  private elementRef;
28
29
  private renderer;
29
30
  private poControlPosition;
31
+ private readonly sanitizer;
30
32
  private arrowDirection;
31
33
  private divArrow;
32
34
  private divContent;
@@ -35,7 +37,7 @@ export declare class PoTooltipDirective extends PoTooltipBaseDirective implement
35
37
  private textContent;
36
38
  private tooltipOffset;
37
39
  private eventListenerFunction;
38
- constructor(elementRef: ElementRef, renderer: Renderer2, poControlPosition: PoTooltipControlPositionService);
40
+ constructor(elementRef: ElementRef, renderer: Renderer2, poControlPosition: PoTooltipControlPositionService, sanitizer: DomSanitizer);
39
41
  ngOnDestroy(): void;
40
42
  ngOnInit(): void;
41
43
  onMouseEnter(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@po-ui/ng-components",
3
- "version": "19.25.0",
3
+ "version": "19.27.0",
4
4
  "description": "PO UI - Components",
5
5
  "author": "PO UI",
6
6
  "license": "MIT",
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@angular/cdk": "~19.0.3",
25
- "@po-ui/style": "19.25.0",
26
- "@po-ui/ng-schematics": "19.25.0",
25
+ "@po-ui/style": "19.27.0",
26
+ "@po-ui/ng-schematics": "19.27.0",
27
27
  "echarts": "^5.6.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
@@ -38,7 +38,7 @@
38
38
  "@angular/platform-browser-dynamic": "^19",
39
39
  "@angular/router": "^19",
40
40
  "@angular-devkit/schematics": "^19",
41
- "@po-ui/style": "19.25.0",
41
+ "@po-ui/style": "19.27.0",
42
42
  "rxjs": "~7.8.1",
43
43
  "zone.js": "~0.15.0"
44
44
  },
Binary file
@@ -18,7 +18,7 @@ function default_1(options) {
18
18
  }
19
19
  function addPoPackageAndInstall() {
20
20
  return (tree, context) => {
21
- (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '19.25.0');
21
+ (0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '19.27.0');
22
22
  // install packages
23
23
  context.addTask(new tasks_1.NodePackageInstallTask());
24
24
  };
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
6
6
  const package_config_1 = require("@po-ui/ng-schematics/package-config");
7
7
  const changes_1 = require("./changes");
8
8
  function default_1() {
9
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.25.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.27.0', changes_1.updateDepedenciesVersion), postUpdate()]);
10
10
  }
11
11
  function postUpdate() {
12
12
  return (_, context) => {
@@ -11,7 +11,7 @@ const changes_1 = require("./changes");
11
11
  const httpClientModuleName = 'HttpClientModule';
12
12
  const httpClientModuleSourcePath = '@angular/common/http';
13
13
  function default_1() {
14
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.25.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
14
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.27.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
15
15
  }
16
16
  function postUpdate() {
17
17
  return (_, context) => {
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
6
6
  const package_config_1 = require("@po-ui/ng-schematics/package-config");
7
7
  const changes_1 = require("./changes");
8
8
  function default_1() {
9
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.25.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.27.0', changes_1.updateDepedenciesVersion), postUpdate()]);
10
10
  }
11
11
  function postUpdate() {
12
12
  return (_, context) => {
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
6
6
  const package_config_1 = require("@po-ui/ng-schematics/package-config");
7
7
  const changes_1 = require("./changes");
8
8
  function default_1() {
9
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.25.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.27.0', changes_1.updateDepedenciesVersion), postUpdate()]);
10
10
  }
11
11
  function postUpdate() {
12
12
  return (_, context) => {
@@ -40,11 +40,11 @@ function main(options) {
40
40
  configureNewIcon.toLowerCase() === 'y' ||
41
41
  configureNewIcon.toLowerCase() === 'sim' ||
42
42
  configureNewIcon.toLowerCase() === '') {
43
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.25.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.27.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
44
44
  }
45
45
  else {
46
46
  return (0, schematics_1.chain)([
47
- (0, package_config_1.updatePackageJson)('19.25.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('19.27.0', changes_1.updateDepedenciesVersion),
48
48
  addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
49
49
  addProviderToAppModule(options, newProviderDictionary),
50
50
  updateAppConfigFileRule(),
@@ -40,11 +40,11 @@ function main(options) {
40
40
  configureNewIcon.toLowerCase() === 'y' ||
41
41
  configureNewIcon.toLowerCase() === 'sim' ||
42
42
  configureNewIcon.toLowerCase() === '') {
43
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.25.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
43
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.27.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
44
44
  }
45
45
  else {
46
46
  return (0, schematics_1.chain)([
47
- (0, package_config_1.updatePackageJson)('19.25.0', changes_1.updateDepedenciesVersion),
47
+ (0, package_config_1.updatePackageJson)('19.27.0', changes_1.updateDepedenciesVersion),
48
48
  addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
49
49
  addProviderToAppModule(options, newProviderDictionary),
50
50
  updateAppConfigFileRule(),
@@ -10,7 +10,7 @@ const package_config_1 = require("@po-ui/ng-schematics/package-config");
10
10
  const changes_1 = require("./changes");
11
11
  function updateToV2() {
12
12
  return (0, schematics_1.chain)([
13
- updatePackageJson('19.25.0', changes_1.dependeciesChanges),
13
+ updatePackageJson('19.27.0', changes_1.dependeciesChanges),
14
14
  (0, replace_1.replaceInFile)('tslint.json', changes_1.tsLintReplaces),
15
15
  (0, replace_1.replaceInFile)('angular.json', changes_1.angularJsonReplaces),
16
16
  createUpgradeRule(),
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
7
7
  const package_config_1 = require("@po-ui/ng-schematics/package-config");
8
8
  const changes_1 = require("./changes");
9
9
  function updateToV3() {
10
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.25.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.27.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
11
11
  }
12
12
  function postUpdate() {
13
13
  return (_, context) => {
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
7
7
  const package_config_1 = require("@po-ui/ng-schematics/package-config");
8
8
  const changes_1 = require("./changes");
9
9
  function default_1() {
10
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.25.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.27.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
11
11
  }
12
12
  function postUpdate() {
13
13
  return (_, context) => {
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
7
7
  const package_config_1 = require("@po-ui/ng-schematics/package-config");
8
8
  const changes_1 = require("./changes");
9
9
  function default_1() {
10
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.25.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
10
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.27.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
11
11
  }
12
12
  function postUpdate() {
13
13
  return (_, context) => {
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
6
6
  const package_config_1 = require("@po-ui/ng-schematics/package-config");
7
7
  const changes_1 = require("./changes");
8
8
  function default_1() {
9
- return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.25.0', changes_1.updateDepedenciesVersion), postUpdate()]);
9
+ return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.27.0', changes_1.updateDepedenciesVersion), postUpdate()]);
10
10
  }
11
11
  function postUpdate() {
12
12
  return (_, context) => {
Binary file