@po-ui/ng-components 19.24.0 → 19.26.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.
- package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-mSWyBcer.mjs → po-ui-ng-components-po-chart-modal-table.component-CaO2fPeS.mjs} +3 -4
- package/fesm2022/po-ui-ng-components-po-chart-modal-table.component-CaO2fPeS.mjs.map +1 -0
- package/fesm2022/po-ui-ng-components.mjs +18860 -17533
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/components.module.d.ts +2 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.d.ts +1 -2
- package/lib/components/po-accordion/po-accordion-item-header/po-accordion-item-header.component.d.ts +1 -2
- package/lib/components/po-accordion/po-accordion.component.d.ts +1 -3
- package/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.component.d.ts +1 -3
- package/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.service.d.ts +0 -2
- package/lib/components/po-breadcrumb/po-breadcrumb.component.d.ts +2 -2
- package/lib/components/po-button/po-button-base.component.d.ts +14 -8
- package/lib/components/po-button/po-button.component.d.ts +0 -3
- package/lib/components/po-button-group/po-button-group-base.component.d.ts +9 -6
- package/lib/components/po-button-group/po-button-group.component.d.ts +0 -4
- package/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.d.ts +0 -4
- package/lib/components/po-calendar/po-calendar.component.d.ts +2 -4
- package/lib/components/po-chart/po-chart.component.d.ts +3 -6
- package/lib/components/po-disclaimer-group/po-disclaimer-group.component.d.ts +2 -4
- package/lib/components/po-dropdown/po-dropdown-base.component.d.ts +0 -3
- package/lib/components/po-dropdown/po-dropdown.component.d.ts +1 -4
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-base.component.d.ts +0 -3
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields-base.component.d.ts +1 -3
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.d.ts +2 -7
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-load/po-dynamic-form-load.service.d.ts +1 -2
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-validation/po-dynamic-form-validation.service.d.ts +1 -2
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.d.ts +1 -3
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.d.ts +1 -6
- package/lib/components/po-dynamic/po-dynamic-view/services/po-dynamic-view.service.d.ts +1 -2
- package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +0 -3
- package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +3 -7
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +0 -3
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +1 -4
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +1 -3
- package/lib/components/po-field/po-combo/po-combo-filter.service.d.ts +1 -2
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +3 -8
- package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +1 -3
- package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +2 -8
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +1 -3
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +2 -8
- package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +2 -5
- package/lib/components/po-field/po-email/po-email.component.d.ts +2 -4
- package/lib/components/po-field/po-field-container/po-field-container.component.d.ts +1 -2
- package/lib/components/po-field/po-input/po-input-base.component.d.ts +1 -3
- package/lib/components/po-field/po-input/po-input.component.d.ts +2 -4
- package/lib/components/po-field/po-input-generic/po-input-generic.d.ts +1 -3
- package/lib/components/po-field/po-login/po-login.component.d.ts +1 -4
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +1 -3
- package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.d.ts +2 -3
- package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +2 -7
- package/lib/components/po-field/po-lookup/services/po-lookup-modal.service.d.ts +0 -2
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +1 -3
- package/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.d.ts +1 -2
- package/lib/components/po-field/po-multiselect/po-multiselect-filter.service.d.ts +0 -2
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +2 -6
- package/lib/components/po-field/po-number/po-number-base.component.d.ts +1 -3
- package/lib/components/po-field/po-number/po-number.component.d.ts +1 -4
- package/lib/components/po-field/po-password/po-password.component.d.ts +1 -4
- package/lib/components/po-field/po-radio/po-radio.component.d.ts +1 -4
- package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +0 -3
- package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +2 -4
- package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +1 -3
- package/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.d.ts +0 -2
- package/lib/components/po-field/po-rich-text/po-rich-text-image-modal/po-rich-text-image-modal.component.d.ts +1 -2
- package/lib/components/po-field/po-rich-text/po-rich-text-link-modal/po-rich-text-link-modal.component.d.ts +1 -2
- package/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.d.ts +1 -2
- package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +2 -5
- package/lib/components/po-field/po-select/po-select.component.d.ts +3 -7
- package/lib/components/po-field/po-switch/po-switch.component.d.ts +1 -4
- package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +1 -3
- package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +2 -4
- package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +1 -3
- package/lib/components/po-field/po-upload/po-upload-base.service.d.ts +0 -2
- package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop-area/po-upload-drag-drop-area.component.d.ts +1 -2
- 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 -2
- package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.component.d.ts +1 -2
- package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.directive.d.ts +0 -3
- package/lib/components/po-field/po-upload/po-upload-file-restrictions/po-upload-file-restrictions.component.d.ts +2 -3
- package/lib/components/po-field/po-upload/po-upload.component.d.ts +2 -8
- package/lib/components/po-field/po-url/po-url.component.d.ts +2 -4
- package/lib/components/po-grid/po-grid-cell/po-grid-cell.component.d.ts +1 -2
- package/lib/components/po-grid/po-grid.component.d.ts +2 -2
- package/lib/components/po-header/index.d.ts +7 -0
- package/lib/components/po-header/interfaces/po-header-action-tool.interface.d.ts +138 -0
- package/lib/components/po-header/interfaces/po-header-actions.interface.d.ts +49 -0
- package/lib/components/po-header/interfaces/po-header-brand.interface.d.ts +59 -0
- package/lib/components/po-header/interfaces/po-header-literals.interface.d.ts +13 -0
- package/lib/components/po-header/interfaces/po-header-user.interface.d.ts +74 -0
- package/lib/components/po-header/po-header-base.component.d.ts +266 -0
- package/lib/components/po-header/po-header-brand/po-header-brand.component.d.ts +27 -0
- package/lib/components/po-header/po-header-customer/po-header-customer.component.d.ts +32 -0
- package/lib/components/po-header/po-header-menu-item/po-header-menu-item.component.d.ts +50 -0
- package/lib/components/po-header/po-header-tools/po-header-tools.component.d.ts +31 -0
- package/lib/components/po-header/po-header.component.d.ts +83 -0
- package/lib/components/po-header/po-header.module.d.ts +27 -0
- package/lib/components/po-list-view/po-list-view-base.component.d.ts +1 -3
- package/lib/components/po-list-view/po-list-view.component.d.ts +2 -5
- package/lib/components/po-listbox/interfaces/po-listbox-literals.interface.d.ts +1 -0
- package/lib/components/po-listbox/po-item-list/po-item-list-base.component.d.ts +2 -1
- package/lib/components/po-listbox/po-item-list/po-item-list.component.d.ts +1 -2
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +8 -4
- package/lib/components/po-listbox/po-listbox.component.d.ts +5 -8
- package/lib/components/po-listbox/po-search-list/po-search-list.component.d.ts +1 -2
- package/lib/components/po-loading/po-loading-overlay/po-loading-overlay.component.d.ts +1 -2
- package/lib/components/po-menu/po-menu-base.component.d.ts +6 -4
- package/lib/components/po-menu/po-menu-filter/po-menu-filter.component.d.ts +1 -1
- package/lib/components/po-menu/po-menu-item/po-menu-item.component.d.ts +0 -2
- package/lib/components/po-menu/po-menu-item.interface.d.ts +3 -0
- package/lib/components/po-menu/po-menu.component.d.ts +5 -10
- package/lib/components/po-menu/services/po-menu-global.service.d.ts +6 -0
- package/lib/components/po-menu/services/po-menu.service.d.ts +0 -2
- package/lib/components/po-menu-panel/po-menu-panel-item/po-menu-panel-item.component.d.ts +0 -2
- package/lib/components/po-menu-panel/po-menu-panel.component.d.ts +1 -5
- package/lib/components/po-modal/po-modal-base.component.d.ts +1 -3
- package/lib/components/po-modal/po-modal.component.d.ts +1 -5
- package/lib/components/po-navbar/po-navbar-actions/po-navbar-action/po-navbar-action.component.d.ts +1 -3
- package/lib/components/po-navbar/po-navbar-items/po-navbar-items.component.d.ts +0 -2
- package/lib/components/po-navbar/po-navbar.component.d.ts +2 -5
- package/lib/components/po-page/po-page-content/po-page-content.component.d.ts +1 -1
- package/lib/components/po-page/po-page-default/po-page-default-base.component.d.ts +1 -3
- package/lib/components/po-page/po-page-default/po-page-default.component.d.ts +2 -6
- package/lib/components/po-page/po-page-detail/po-page-detail-base.component.d.ts +1 -3
- package/lib/components/po-page/po-page-edit/po-page-edit-base.component.d.ts +1 -3
- package/lib/components/po-page/po-page-list/po-page-list-base.component.d.ts +1 -3
- package/lib/components/po-page/po-page-list/po-page-list.component.d.ts +2 -6
- package/lib/components/po-page/po-page-slide/po-page-slide-base.component.d.ts +0 -3
- package/lib/components/po-page/po-page-slide/po-page-slide.component.d.ts +1 -5
- package/lib/components/po-popover/po-popover.component.d.ts +5 -2
- package/lib/components/po-popup/po-popup-base.component.d.ts +2 -4
- package/lib/components/po-popup/po-popup.component.d.ts +2 -6
- package/lib/components/po-progress/po-progress-base.component.d.ts +0 -3
- package/lib/components/po-progress/po-progress.component.d.ts +0 -3
- package/lib/components/po-search/enums/po-search-filter-mode.enum.d.ts +1 -1
- package/lib/components/po-search/index.d.ts +1 -1
- package/lib/components/po-search/interfaces/po-search-filter-select.interface.d.ts +1 -5
- package/lib/components/po-search/interfaces/po-search-locate-summary.interface.d.ts +13 -0
- package/lib/components/po-search/literals/po-search-literals-default.d.ts +7 -1
- package/lib/components/po-search/literals/po-search-literals.interface.d.ts +51 -0
- package/lib/components/po-search/po-search-base.component.d.ts +201 -79
- package/lib/components/po-search/po-search.component.d.ts +43 -14
- package/lib/components/po-slide/po-slide.component.d.ts +0 -2
- package/lib/components/po-stepper/po-step/po-step.component.d.ts +1 -2
- package/lib/components/po-stepper/po-stepper-label/po-stepper-label.component.d.ts +1 -2
- package/lib/components/po-stepper/po-stepper.component.d.ts +1 -2
- package/lib/components/po-table/po-table-base.component.d.ts +1 -3
- package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +1 -3
- package/lib/components/po-table/po-table-detail/po-table-detail.component.d.ts +1 -3
- package/lib/components/po-table/po-table-list-manager/po-table-list-manager.component.d.ts +2 -4
- package/lib/components/po-table/po-table.component.d.ts +2 -4
- package/lib/components/po-tabs/po-tab/po-tab.component.d.ts +1 -3
- package/lib/components/po-tabs/po-tab-button/po-tab-button.component.d.ts +0 -1
- package/lib/components/po-tabs/po-tab-dropdown/po-tab-dropdown.component.d.ts +0 -1
- package/lib/components/po-tabs/po-tabs-base.component.d.ts +0 -3
- package/lib/components/po-tabs/po-tabs.component.d.ts +1 -5
- package/lib/components/po-tag/po-tag.component.d.ts +1 -2
- package/lib/components/po-toaster/po-toaster-base.component.d.ts +0 -3
- package/lib/components/po-toaster/po-toaster.component.d.ts +3 -6
- package/lib/components/po-toolbar/po-toolbar-notification/po-toolbar-notification.component.d.ts +1 -2
- package/lib/components/po-toolbar/po-toolbar.component.d.ts +1 -3
- package/lib/components/po-tree-view/po-tree-view-base.component.d.ts +0 -3
- package/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.d.ts +0 -2
- package/lib/components/po-tree-view/po-tree-view.component.d.ts +0 -4
- package/lib/components/po-widget/po-widget-base.component.d.ts +0 -3
- package/lib/components/po-widget/po-widget.component.d.ts +3 -3
- package/lib/services/po-dialog/po-dialog.component.d.ts +1 -3
- package/lib/services/po-notification/po-notification-base.service.d.ts +0 -3
- package/lib/services/po-notification/po-notification.service.d.ts +1 -3
- package/lib/utils/util.d.ts +25 -0
- package/package.json +4 -4
- package/po-ui-ng-components-19.26.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/v16/index.js +1 -1
- package/schematics/ng-update/v17/index.js +1 -1
- package/schematics/ng-update/v18/index.js +2 -2
- package/schematics/ng-update/v19/index.js +2 -2
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/fesm2022/po-ui-ng-components-po-chart-modal-table.component-mSWyBcer.mjs.map +0 -1
- package/lib/components/po-search/literals/po-search-literals.d.ts +0 -32
- package/po-ui-ng-components-19.24.0.tgz +0 -0
|
@@ -1,36 +1,42 @@
|
|
|
1
1
|
import { PoLanguageService } from '../../services/po-language/po-language.service';
|
|
2
2
|
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
3
|
-
import { PoThemeService } from '../../services/po-theme/po-theme.service';
|
|
4
3
|
import { PoSearchFilterMode } from './enums/po-search-filter-mode.enum';
|
|
5
4
|
import { PoSearchFilterSelect } from './interfaces/po-search-filter-select.interface';
|
|
6
|
-
import { PoSearchLiterals } from './literals/po-search-literals';
|
|
5
|
+
import { PoSearchLiterals } from './literals/po-search-literals.interface';
|
|
6
|
+
import { PoSearchLocateSummary } from './interfaces/po-search-locate-summary.interface';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export type searchMode = 'action' | 'trigger';
|
|
8
|
+
export type searchMode = 'action' | 'trigger' | 'locate' | 'execute';
|
|
9
9
|
/**
|
|
10
10
|
* @description
|
|
11
11
|
*
|
|
12
|
-
* O componente search, também conhecido como barra de pesquisa, é utilizado para ajudar os usuários a localizar um determinado conteúdo
|
|
12
|
+
* O componente search, também conhecido como barra de pesquisa, é utilizado para ajudar os usuários a localizar um determinado conteúdo.
|
|
13
13
|
*
|
|
14
14
|
* Normalmente localizado no canto superior direito, junto com o ícone de lupa, uma vez que este ícone é amplamente reconhecido.
|
|
15
15
|
*
|
|
16
|
-
* Portanto, é de extrema importância que, ao utilizar este componente, as pessoas responsáveis por seu desenvolvimento considerem os seguintes critérios.
|
|
17
|
-
*
|
|
18
16
|
* #### Boas práticas
|
|
19
17
|
*
|
|
20
|
-
* Foram estruturados os padrões de usabilidade para auxiliar na utilização do componente e garantir uma boa experiência
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* -
|
|
24
|
-
*
|
|
18
|
+
* Foram estruturados os padrões de usabilidade para auxiliar na utilização do componente e garantir uma boa experiência
|
|
19
|
+
* aos usuários. Portanto, é de extrema importância que, ao utilizar este componente, as pessoas responsáveis por seu
|
|
20
|
+
* desenvolvimento considerem os seguintes critérios:
|
|
21
|
+
* - Utilize labels para apresentar resultados que estão sendo exibidos e apresente os resultados mais relevantes
|
|
22
|
+
* primeiro.
|
|
23
|
+
* - Exiba uma mensagem clara quando não forem encontrados resultados para busca e sempre que possível ofereça outras
|
|
24
|
+
* sugestões de busca.
|
|
25
|
+
* - Mantenha o texto original no campo de input, que facilita a ação do usuário caso queira fazer uma nova busca com
|
|
26
|
+
* alguma modificação na pesquisa.
|
|
27
|
+
* - Caso seja possível detectar um erro de digitação, mostre os resultados para a palavra "corrigida", isso evita a
|
|
28
|
+
* frustração de não obter resultados e não força o usuário a realizar uma nova busca.
|
|
25
29
|
* - Quando apropriado, destaque os termos da busca nos resultados.
|
|
26
30
|
* - A entrada do campo de pesquisa deve caber em uma linha. Não use entradas de pesquisa de várias linhas.
|
|
27
|
-
* - Recomenda-se ter apenas uma pesquisa por página. Se você precisar de várias pesquisas, rotule-as claramente para
|
|
28
|
-
*
|
|
31
|
+
* - Recomenda-se ter apenas uma pesquisa por página. Se você precisar de várias pesquisas, rotule-as claramente para
|
|
32
|
+
* indicar sua finalidade.
|
|
33
|
+
* - Se possível, forneça sugestões de pesquisa, seja em um helptext ou sugestão de pesquisa que é um autocomplete. Isso
|
|
34
|
+
* ajuda os usuários a encontrar o que estão procurando, especialmente se os itens pesquisáveis forem complexos.
|
|
29
35
|
*
|
|
30
36
|
* #### Acessibilidade tratada no componente
|
|
31
37
|
*
|
|
32
|
-
* Algumas diretrizes de acessibilidade já são tratadas no componente, internamente, e não podem ser alteradas pelo
|
|
33
|
-
*
|
|
38
|
+
* Algumas diretrizes de acessibilidade já são tratadas no componente, internamente, e não podem ser alteradas pelo
|
|
39
|
+
* proprietário do conteúdo. São elas:
|
|
34
40
|
* - Permitir a interação via teclado (2.1.1: Keyboard (A));
|
|
35
41
|
* - Alteração entre os estados precisa ser indicada por mais de um elemento além da cor (1.4.1: Use of Color);
|
|
36
42
|
*
|
|
@@ -40,79 +46,136 @@ export type searchMode = 'action' | 'trigger';
|
|
|
40
46
|
*
|
|
41
47
|
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
42
48
|
*
|
|
43
|
-
* | Propriedade
|
|
49
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
44
50
|
* |----------------------------------------|-------------------------------------------------------|---------------------------------------------------|
|
|
45
51
|
* | **Default Values** | | |
|
|
46
|
-
* | `--font-family` | Família tipográfica
|
|
47
|
-
* | `--font-size` | Tamanho da fonte
|
|
52
|
+
* | `--font-family` | Família tipográfica do campo | `var(--font-family-theme)` |
|
|
53
|
+
* | `--font-size` | Tamanho da fonte do campo | `var(--font-size-default)` |
|
|
48
54
|
* | `--text-color-placeholder` | Cor do texto no placeholder | `var(--color-neutral-light-30)` |
|
|
49
|
-
* | `--color` | Cor
|
|
50
|
-
* | `--border-radius` |
|
|
55
|
+
* | `--color` | Cor das bordas | `var(--color-neutral-dark-70)` |
|
|
56
|
+
* | `--border-radius` | Raio das bordas | `var(--border-radius-md)` |
|
|
51
57
|
* | `--background` | Cor de background | `var(--color-neutral-light-05)` |
|
|
52
|
-
* | `--text-color` | Cor do texto
|
|
53
|
-
* | `--color-clear` | Cor
|
|
58
|
+
* | `--text-color` | Cor do texto editável | `var(--color-neutral-dark-90)` |
|
|
59
|
+
* | `--color-clear` | Cor do ícone close | `var(--color-action-default)` |
|
|
60
|
+
* | `--color-controls` | Cor dos ícones de controle do mode location | `var(--color-action-default)` |
|
|
61
|
+
* | `--transition-property` | Atributo da transição | `all` |
|
|
62
|
+
* | `--transition-duration` | Duração da transição | `var(--duration-extra-fast)` |
|
|
63
|
+
* | `--transition-timing` | Duração da transição com o tipo de transição | `var(--timing-standart)` |
|
|
54
64
|
* | **Icon** | | |
|
|
55
|
-
* | `--color-icon-read` | Cor
|
|
56
|
-
* | `--color-icon` | Cor
|
|
65
|
+
* | `--color-icon-read` | Cor do ícone de busca no modo action | `var(--color-neutral-dark-70)` |
|
|
66
|
+
* | `--color-icon` | Cor do ícone de busca no modo trigger | `var(--color-action-default)` |
|
|
57
67
|
* | **Hover** | | |
|
|
58
|
-
* | `--color-hover` | Cor
|
|
68
|
+
* | `--color-hover` | Cor das bordas no estado hover | `var(--color-action-hover)` |
|
|
59
69
|
* | `--background-hover` | Cor de background no estado hover | `var(--color-brand-01-lightest)` |
|
|
60
70
|
* | **Focused** | | |
|
|
61
|
-
* | `--color-focused` | Cor
|
|
62
|
-
* | `--outline-color-focused` | Cor do outline
|
|
71
|
+
* | `--color-focused` | Cor das bordas no estado de focus | `var(--color-action-default)` |
|
|
72
|
+
* | `--outline-color-focused` | Cor do outline no estado de focus | `var(--color-action-focus)` |
|
|
63
73
|
* | **Disabled** | | |
|
|
64
74
|
* | `--color-disabled` | Cor principal no estado disabled | `var(--color-action-disabled)` |
|
|
65
|
-
* | `--background-
|
|
75
|
+
* | `--background-disabled` | Cor de background no estado disabled | `var(--color-neutral-light-20)` |
|
|
66
76
|
*
|
|
67
77
|
*/
|
|
68
78
|
export declare class PoSearchBaseComponent {
|
|
69
|
-
protected poThemeService: PoThemeService;
|
|
70
79
|
private _literals?;
|
|
71
80
|
private _ariaLabel?;
|
|
72
|
-
|
|
81
|
+
protected language: string;
|
|
73
82
|
private _filterSelect?;
|
|
74
83
|
private _size?;
|
|
84
|
+
private _keysLabel?;
|
|
75
85
|
/**
|
|
76
86
|
* @optional
|
|
77
87
|
*
|
|
78
88
|
* @description
|
|
79
89
|
*
|
|
80
|
-
*
|
|
90
|
+
* Define um aria-label para o po-search.
|
|
81
91
|
*
|
|
82
|
-
*
|
|
92
|
+
* > Devido o componente não possuir uma label assim como outros campos de texto, o `aria-label` é utilizado para
|
|
93
|
+
* acessibilidade.
|
|
83
94
|
*/
|
|
84
|
-
|
|
95
|
+
set ariaLabel(value: string);
|
|
96
|
+
get ariaLabel(): string;
|
|
85
97
|
/**
|
|
86
98
|
* @optional
|
|
87
99
|
*
|
|
88
100
|
* @description
|
|
89
101
|
*
|
|
90
|
-
*
|
|
102
|
+
* Desabilita o po-search e não permite que o usuário interaja com o mesmo.
|
|
103
|
+
*
|
|
104
|
+
* @default `false`
|
|
91
105
|
*/
|
|
92
|
-
|
|
106
|
+
disabled?: boolean;
|
|
93
107
|
/**
|
|
94
|
-
* @
|
|
108
|
+
* @description
|
|
95
109
|
*
|
|
110
|
+
* Define os nomes das propriedades do objeto que serão utilizados para busca em `p-items`. Cada valor definido no
|
|
111
|
+
* array será considerado durante a apresentação e filtragem dos itens.
|
|
112
|
+
* Exemplo de uso:
|
|
113
|
+
* ```typescript
|
|
114
|
+
* const filterKeys: Array<string> = ['name', 'gender', 'planet', 'father'];
|
|
115
|
+
* ```
|
|
116
|
+
*
|
|
117
|
+
* > Esta propriedade é ignorada quando utilizado com `p-filter-select` e incompatível com a propriedade
|
|
118
|
+
* `p-search-type` do tipo `locate`.
|
|
119
|
+
*/
|
|
120
|
+
filterKeys: Array<any>;
|
|
121
|
+
/**
|
|
96
122
|
* @description
|
|
97
123
|
*
|
|
98
|
-
*
|
|
124
|
+
* Habilita um seletor de filtros à esquerda do campo, permitindo a aplicação de filtros agrupados na busca ou sobre
|
|
125
|
+
* os itens fornecidos em `p-items`. Automaticamente adiciona a opção **Todos**, com um mapeamento de todas as opções passadas.
|
|
126
|
+
*
|
|
127
|
+
* Exemplo de uso:
|
|
128
|
+
* ```typescript
|
|
129
|
+
* const filterSelect = [
|
|
130
|
+
* { label: 'personal', value: ['name', 'email', 'nickname'] },
|
|
131
|
+
* { label: 'address', value: ['country', 'state', 'city', 'street'] },
|
|
132
|
+
* { label: 'family', value: ['father', 'mother', 'dependents'] }
|
|
133
|
+
* ];
|
|
134
|
+
* ```
|
|
99
135
|
*
|
|
100
|
-
* >
|
|
136
|
+
* > Ao ser habilitada, a propriedade `p-filter-keys` será ignorada. Esta propriedade é incompatível com a propriedade
|
|
137
|
+
* `p-search-type` do tipo `locate`.
|
|
101
138
|
*/
|
|
102
|
-
set
|
|
103
|
-
get
|
|
139
|
+
set filterSelect(values: Array<PoSearchFilterSelect>);
|
|
140
|
+
get filterSelect(): Array<PoSearchFilterSelect>;
|
|
104
141
|
/**
|
|
142
|
+
* @optional
|
|
143
|
+
*
|
|
105
144
|
* @description
|
|
106
145
|
*
|
|
107
|
-
*
|
|
146
|
+
* Define o modo de pesquisa utilizado no campo de busca. Os valores permitidos são definidos pelo enum
|
|
147
|
+
* **PoSearchFilterMode**.
|
|
148
|
+
*
|
|
149
|
+
* > Incompatível com a propriedade `p-search-type` do tipo `locate`.
|
|
150
|
+
*
|
|
151
|
+
* @default `startsWith`
|
|
108
152
|
*/
|
|
109
|
-
|
|
153
|
+
filterType: PoSearchFilterMode;
|
|
110
154
|
/**
|
|
111
155
|
* @optional
|
|
112
156
|
*
|
|
113
157
|
* @description
|
|
114
158
|
*
|
|
115
|
-
*
|
|
159
|
+
* Permite customizar o ícone de busca que acompanha o campo.
|
|
160
|
+
*
|
|
161
|
+
* É possível usar qualquer um dos ícones da [Biblioteca de ícones PO UI](https://po-ui.io/icons), conforme exemplo:
|
|
162
|
+
* ```
|
|
163
|
+
* <po-search p-icon="an an-user"></po-search>
|
|
164
|
+
* ```
|
|
165
|
+
* Também é possível utilizar outras fontes de ícones, por exemplo a biblioteca *Font Awesome*, desde que a biblioteca
|
|
166
|
+
* esteja carregada no projeto:
|
|
167
|
+
* ```
|
|
168
|
+
* <po-search p-icon="fa fa-podcast"></po-search>
|
|
169
|
+
* ```
|
|
170
|
+
*
|
|
171
|
+
* Outra opção seria a customização do ícone através do `TemplateRef`, conforme exemplo abaixo:
|
|
172
|
+
* ```
|
|
173
|
+
* <po-search [p-icon]="template"></po-search>
|
|
174
|
+
*
|
|
175
|
+
* <ng-template #template>
|
|
176
|
+
* <i class="fa fa-podcast" style="font-size: inherit;"></i>
|
|
177
|
+
* </ng-template>
|
|
178
|
+
* ```
|
|
116
179
|
*/
|
|
117
180
|
icon: string | TemplateRef<void>;
|
|
118
181
|
/**
|
|
@@ -120,21 +183,17 @@ export declare class PoSearchBaseComponent {
|
|
|
120
183
|
*
|
|
121
184
|
* @description
|
|
122
185
|
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
* Valores aceitos:
|
|
126
|
-
* - `action`: Realiza a busca a cada caractere digitado.
|
|
127
|
-
* - `trigger`: Realiza a busca ao pressionar `enter` ou clicar no ícone de busca.
|
|
186
|
+
* Lista de itens que serão utilizados para pesquisa.
|
|
128
187
|
*
|
|
129
|
-
*
|
|
188
|
+
* > Incompatível com a propriedade `p-search-type` do tipo `locate`.
|
|
130
189
|
*/
|
|
131
|
-
|
|
190
|
+
items: Array<any>;
|
|
132
191
|
/**
|
|
133
192
|
* @optional
|
|
134
193
|
*
|
|
135
194
|
* @description
|
|
136
195
|
*
|
|
137
|
-
* Objeto com as literais usadas no `po-search
|
|
196
|
+
* Objeto com as literais usadas no `po-search`, permitindo personalizar os textos exibidos no componente.
|
|
138
197
|
*
|
|
139
198
|
* Para utilizar basta passar a literal que deseja customizar:
|
|
140
199
|
*
|
|
@@ -153,8 +212,8 @@ export declare class PoSearchBaseComponent {
|
|
|
153
212
|
* </po-search>
|
|
154
213
|
* ```
|
|
155
214
|
*
|
|
156
|
-
* > O objeto padrão de literais será traduzido de acordo com o idioma do
|
|
157
|
-
*
|
|
215
|
+
* > O objeto padrão de literais será traduzido de acordo com o idioma do [`PoI18nService`](/documentation/po-i18n) ou
|
|
216
|
+
* do browser.
|
|
158
217
|
*/
|
|
159
218
|
set literals(value: PoSearchLiterals);
|
|
160
219
|
get literals(): PoSearchLiterals;
|
|
@@ -163,41 +222,44 @@ export declare class PoSearchBaseComponent {
|
|
|
163
222
|
*
|
|
164
223
|
* @description
|
|
165
224
|
*
|
|
166
|
-
* Define
|
|
225
|
+
* Define os valores do contador exibido ao usar a propriedade `p-search-type` do tipo `locate`, indicando a posição
|
|
226
|
+
* atual e o total de ocorrências encontradas.
|
|
227
|
+
* Exemplo de uso:
|
|
228
|
+
* ```ts
|
|
229
|
+
* locateSummary: PoSearchLocateSummary = { currentIndex: 0, total: 5 };
|
|
230
|
+
* ```
|
|
167
231
|
*
|
|
168
|
-
*
|
|
232
|
+
* > Compatível com a propriedade `p-search-type` do tipo `locate`.
|
|
169
233
|
*/
|
|
170
|
-
|
|
234
|
+
locateSummary: PoSearchLocateSummary;
|
|
171
235
|
/**
|
|
172
236
|
* @optional
|
|
173
237
|
*
|
|
174
238
|
* @description
|
|
175
239
|
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
240
|
+
* Determina a forma de realizar a pesquisa no componente. Valores aceitos:
|
|
241
|
+
* - `action`: Realiza a busca a cada caractere digitado.
|
|
242
|
+
* - `trigger`: Realiza a busca ao pressionar `enter` ou clicar no ícone de busca.
|
|
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`.
|
|
178
246
|
*
|
|
179
|
-
* @default `
|
|
247
|
+
* @default `action`
|
|
180
248
|
*/
|
|
181
|
-
|
|
249
|
+
type: searchMode;
|
|
182
250
|
/**
|
|
251
|
+
* @optional
|
|
252
|
+
*
|
|
183
253
|
* @description
|
|
184
254
|
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
255
|
+
* Exibe uma lista (auto-complete) com as opções definidas em `p-filter-keys` ou `p-filter-select` enquanto realiza
|
|
256
|
+
* uma busca, respeitando o `p-filter-type` como modo de pesquisa.
|
|
187
257
|
*
|
|
188
|
-
* >
|
|
258
|
+
* > Incompatível com a propriedade `p-search-type` do tipo `locate`.
|
|
189
259
|
*
|
|
190
|
-
*
|
|
191
|
-
* ```typescript
|
|
192
|
-
* const filterSelect = [
|
|
193
|
-
* { label: 'personal', value: ['name', 'email', 'nickname'] },
|
|
194
|
-
* { label: 'address', value: ['country', 'state', 'city', 'street'] },
|
|
195
|
-
* { label: 'family', value: ['father', 'mother', 'dependents'] }
|
|
196
|
-
* ];
|
|
197
|
-
* ```
|
|
260
|
+
* @default `false`
|
|
198
261
|
*/
|
|
199
|
-
|
|
200
|
-
get filterSelect(): Array<PoSearchFilterSelect>;
|
|
262
|
+
showListbox?: boolean;
|
|
201
263
|
/**
|
|
202
264
|
* @optional
|
|
203
265
|
*
|
|
@@ -219,37 +281,97 @@ export declare class PoSearchBaseComponent {
|
|
|
219
281
|
*
|
|
220
282
|
* @description
|
|
221
283
|
*
|
|
222
|
-
*
|
|
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
|
+
* ```
|
|
223
293
|
*/
|
|
224
|
-
|
|
294
|
+
set keysLabel(value: Array<string>);
|
|
295
|
+
get keysLabel(): Array<string>;
|
|
225
296
|
/**
|
|
226
297
|
* @optional
|
|
227
298
|
*
|
|
228
299
|
* @description
|
|
229
300
|
*
|
|
230
|
-
*
|
|
301
|
+
* Evento disparado ao sair do campo.
|
|
231
302
|
*/
|
|
232
|
-
|
|
303
|
+
blur: EventEmitter<any>;
|
|
304
|
+
/**
|
|
305
|
+
* @optional
|
|
306
|
+
*
|
|
307
|
+
* @description
|
|
308
|
+
*
|
|
309
|
+
* Evento disparado ao alterar valor do model.
|
|
310
|
+
*/
|
|
311
|
+
changeModel: EventEmitter<any>;
|
|
233
312
|
/**
|
|
234
313
|
* @optional
|
|
235
314
|
*
|
|
236
315
|
* @description
|
|
237
316
|
*
|
|
238
317
|
* Pode ser informada uma função que será disparada quando houver alterações nos filtros.
|
|
318
|
+
*
|
|
319
|
+
* > Incompatível com a propriedade `p-search-type` do tipo `locate`.
|
|
239
320
|
*/
|
|
240
321
|
filter: EventEmitter<any>;
|
|
322
|
+
/**
|
|
323
|
+
* @optional
|
|
324
|
+
*
|
|
325
|
+
* @description
|
|
326
|
+
*
|
|
327
|
+
* Pode ser informada uma função que será disparada quando houver alterações no input.
|
|
328
|
+
*
|
|
329
|
+
* > Incompatível com a propriedade `p-search-type` do tipo `locate`.
|
|
330
|
+
*/
|
|
331
|
+
filteredItemsChange: EventEmitter<any[]>;
|
|
241
332
|
/**
|
|
242
333
|
* @optional
|
|
243
334
|
*
|
|
244
335
|
* @description
|
|
245
336
|
*
|
|
246
337
|
* Pode ser informada uma função que será disparada quando houver click no listbox.
|
|
338
|
+
*
|
|
339
|
+
* > Incompatível com a propriedade `p-search-type` do tipo `locate`.
|
|
247
340
|
*/
|
|
248
341
|
listboxOnClick: EventEmitter<any>;
|
|
249
|
-
|
|
342
|
+
/**
|
|
343
|
+
* @optional
|
|
344
|
+
*
|
|
345
|
+
* @description
|
|
346
|
+
*
|
|
347
|
+
* Evento disparado ao clicar no controle "Próximo resultado".
|
|
348
|
+
*
|
|
349
|
+
* > Compatível com a propriedade `p-search-type` do tipo `locate`.
|
|
350
|
+
*/
|
|
351
|
+
locateNext: EventEmitter<void>;
|
|
352
|
+
/**
|
|
353
|
+
* @optional
|
|
354
|
+
*
|
|
355
|
+
* @description
|
|
356
|
+
*
|
|
357
|
+
* Evento disparado ao clicar no controle "Resultado anterior".
|
|
358
|
+
*
|
|
359
|
+
* > Compatível com a propriedade `p-search-type` do tipo `locate`.
|
|
360
|
+
*/
|
|
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>;
|
|
371
|
+
constructor(languageService: PoLanguageService);
|
|
250
372
|
ensureFilterSelectOption(values: any): any[];
|
|
251
373
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoSearchBaseComponent, never>;
|
|
252
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoSearchBaseComponent, never, never, { "disabled": { "alias": "p-disabled"; "required": false; }; "
|
|
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>;
|
|
253
375
|
static ngAcceptInputType_disabled: any;
|
|
254
376
|
static ngAcceptInputType_showListbox: any;
|
|
255
377
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { PoThemeService } from '../../services/po-theme/po-theme.service';
|
|
3
2
|
import { PoControlPositionService } from '../../services/po-control-position/po-control-position.service';
|
|
4
3
|
import { PoLanguageService } from '../../services/po-language/po-language.service';
|
|
5
4
|
import { PoDropdownAction } from '../po-dropdown';
|
|
@@ -41,64 +40,94 @@ import * as i0 from "@angular/core";
|
|
|
41
40
|
* <file name="sample-po-search-filter-select/sample-po-search-filter-select.component.ts"> </file>
|
|
42
41
|
* </example>
|
|
43
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
|
+
*
|
|
48
|
+
* <example name="po-search-fields-locate" title="PO Search Form Fields with Locate">
|
|
49
|
+
* <file name="sample-po-search-fields-locate/sample-po-search-fields-locate.component.html"> </file>
|
|
50
|
+
* <file name="sample-po-search-fields-locate/sample-po-search-fields-locate.component.ts"> </file>
|
|
51
|
+
* </example>
|
|
52
|
+
*
|
|
44
53
|
*/
|
|
45
54
|
export declare class PoSearchComponent extends PoSearchBaseComponent implements OnInit, OnDestroy, OnChanges {
|
|
46
55
|
languageService: PoLanguageService;
|
|
47
|
-
protected
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
private controlPosition;
|
|
56
|
+
protected renderer: Renderer2;
|
|
57
|
+
protected changeDetector: ChangeDetectorRef;
|
|
58
|
+
protected controlPosition: PoControlPositionService;
|
|
51
59
|
private clickoutListener;
|
|
52
60
|
private eventResizeListener;
|
|
61
|
+
private _locateCounter;
|
|
62
|
+
set locateCounter(element: ElementRef);
|
|
63
|
+
get locateCounter(): ElementRef;
|
|
53
64
|
poSearchInput: ElementRef;
|
|
54
65
|
poListboxContainerElement: ElementRef;
|
|
55
66
|
poListboxElement: ElementRef;
|
|
56
67
|
poListbox: PoListBoxComponent;
|
|
68
|
+
basePaddingRightSmall: number;
|
|
69
|
+
basePaddingRightMedium: number;
|
|
70
|
+
dynamicPaddingRight: number;
|
|
57
71
|
listboxFilteredItems: Array<any>;
|
|
58
72
|
filteredItems: Array<any>;
|
|
59
73
|
listboxOpen: boolean;
|
|
60
74
|
shouldMarkLetters: boolean;
|
|
61
75
|
isFiltering: boolean;
|
|
76
|
+
isInputFocused: boolean;
|
|
62
77
|
listboxItemclicked: boolean;
|
|
78
|
+
showSearchLocateControls: boolean;
|
|
79
|
+
showNoResults: boolean;
|
|
80
|
+
locateCounterResize: ResizeObserver;
|
|
63
81
|
searchFilter: {};
|
|
64
82
|
searchFilterSelectLabel: string;
|
|
65
83
|
searchFilterSelectActions: Array<PoDropdownAction>;
|
|
66
|
-
|
|
84
|
+
idSearchButtonClean: string;
|
|
85
|
+
protected showFooterActionListbox: boolean;
|
|
86
|
+
protected showSeparator: boolean;
|
|
87
|
+
protected placeholderListbox: string | null;
|
|
88
|
+
protected modelSelected: string;
|
|
89
|
+
constructor();
|
|
67
90
|
ngOnInit(): void;
|
|
68
91
|
ngOnChanges(changes: SimpleChanges): void;
|
|
92
|
+
private configureSearchModeExecute;
|
|
69
93
|
ngOnDestroy(): void;
|
|
70
94
|
clearSearch(): void;
|
|
95
|
+
onCleanKeydown(event: KeyboardEvent): void;
|
|
96
|
+
onEnterKey(event: any): void;
|
|
71
97
|
onSearchChange(searchText: string, activated: boolean, buttonClick?: boolean): void;
|
|
72
98
|
private updateFilteredItems;
|
|
73
99
|
private getFilteredItems;
|
|
74
100
|
private itemMatchesFilter;
|
|
75
|
-
getListboxFilteredItems(searchText:
|
|
76
|
-
label: string;
|
|
77
|
-
value: string;
|
|
78
|
-
}[];
|
|
101
|
+
getListboxFilteredItems(searchText: string): any[];
|
|
79
102
|
private filterValue;
|
|
80
103
|
get listboxItems(): {
|
|
81
104
|
label: string;
|
|
82
105
|
value: string;
|
|
83
106
|
}[];
|
|
84
107
|
onCloseListbox(): void;
|
|
85
|
-
onListboxClick(option: PoSearchOption, event?: any): void;
|
|
108
|
+
onListboxClick(option: PoSearchOption | any, event?: any): void;
|
|
86
109
|
onBlur(): void;
|
|
87
|
-
|
|
110
|
+
onFocus(): void;
|
|
111
|
+
onInputHandler(value: string): void;
|
|
112
|
+
onKeyDown(event?: KeyboardEvent): void;
|
|
88
113
|
private focusItem;
|
|
89
114
|
private setContainerPosition;
|
|
90
115
|
private adjustContainerPosition;
|
|
91
|
-
controlListboxVisibility(toOpen: boolean): void;
|
|
92
116
|
private openListbox;
|
|
93
117
|
closeListbox(): void;
|
|
94
118
|
clickedOutsideInput(event: MouseEvent): void;
|
|
95
119
|
private initializeListeners;
|
|
96
120
|
private removeListeners;
|
|
97
|
-
private
|
|
121
|
+
private updatePaddingRightLocate;
|
|
122
|
+
private updateShowSearchLocateControls;
|
|
123
|
+
private readonly onScroll;
|
|
98
124
|
getInputValue(): any;
|
|
99
125
|
createDropdownFilterSelect(): void;
|
|
100
126
|
isSelected(filterOption: PoSearchFilterSelect): boolean;
|
|
101
127
|
changeFilterSelect(filterOption: PoSearchFilterSelect): void;
|
|
128
|
+
handlerFooterActionListbox(): void;
|
|
129
|
+
private openListboxFooterAction;
|
|
130
|
+
private handlerPlaceholderListbox;
|
|
102
131
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoSearchComponent, never>;
|
|
103
132
|
static ɵcmp: i0.ɵɵComponentDeclaration<PoSearchComponent, "po-search", never, {}, {}, never, never, false, never>;
|
|
104
133
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DoCheck, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { AnimationBuilder } from '@angular/animations';
|
|
3
2
|
import { PoSlideBaseComponent } from './po-slide-base.component';
|
|
4
3
|
import { PoSlideContentTemplateDirective } from './directives/po-slide-content-template.directive';
|
|
5
4
|
import { PoSlideItem } from './interfaces/po-slide-item.interface';
|
|
@@ -51,7 +50,6 @@ export declare class PoSlideComponent extends PoSlideBaseComponent implements On
|
|
|
51
50
|
private get isImageSlide();
|
|
52
51
|
private get offset();
|
|
53
52
|
get hasSlides(): boolean;
|
|
54
|
-
constructor(builder: AnimationBuilder);
|
|
55
53
|
onResize(): void;
|
|
56
54
|
ngOnInit(): void;
|
|
57
55
|
ngDoCheck(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterContentInit,
|
|
1
|
+
import { AfterContentInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { PoStepperStatus } from '../enums/po-stepper-status.enum';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -97,7 +97,6 @@ export declare class PoStepComponent implements AfterContentInit {
|
|
|
97
97
|
* > Deve-se usar `font-size: inherit` para ajustar ícones que não se ajustam automaticamente.
|
|
98
98
|
*/
|
|
99
99
|
iconDefault?: string | TemplateRef<void>;
|
|
100
|
-
constructor(elementRef: ElementRef);
|
|
101
100
|
ngAfterContentInit(): void;
|
|
102
101
|
protected setDisplayOnActiveOrError(): void;
|
|
103
102
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoStepComponent, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
1
|
+
import { AfterViewInit, ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
4
|
* @docsPrivate
|
|
@@ -19,7 +19,6 @@ export declare class PoStepperLabelComponent implements AfterViewInit, OnChanges
|
|
|
19
19
|
displayedContent: string;
|
|
20
20
|
tooltipContent: string;
|
|
21
21
|
private maxLabelLength;
|
|
22
|
-
constructor(renderer: Renderer2, changeDetectorRef: ChangeDetectorRef);
|
|
23
22
|
ngAfterViewInit(): void;
|
|
24
23
|
ngOnChanges(changes: SimpleChanges): void;
|
|
25
24
|
onMouseOver(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterContentInit,
|
|
1
|
+
import { AfterContentInit, QueryList } from '@angular/core';
|
|
2
2
|
import { PoStepComponent } from './po-step/po-step.component';
|
|
3
3
|
import { PoStepperBaseComponent } from './po-stepper-base.component';
|
|
4
4
|
import { PoStepperItem } from './po-stepper-item.interface';
|
|
@@ -44,7 +44,6 @@ export declare class PoStepperComponent extends PoStepperBaseComponent implement
|
|
|
44
44
|
get stepList(): QueryList<PoStepComponent> | Array<PoStepperItem>;
|
|
45
45
|
get stepSizeCircle(): number;
|
|
46
46
|
get usePoSteps(): boolean;
|
|
47
|
-
constructor(changeDetector: ChangeDetectorRef);
|
|
48
47
|
ngAfterContentInit(): void;
|
|
49
48
|
/**
|
|
50
49
|
* Altera o status do *step* para ativo.
|
|
@@ -2,7 +2,6 @@ import { EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { PoDateService } from '../../services/po-date/po-date.service';
|
|
4
4
|
import { PoLanguageService } from '../../services/po-language/po-language.service';
|
|
5
|
-
import { PoThemeService } from '../../services/po-theme/po-theme.service';
|
|
6
5
|
import { PoSearchFilterMode } from '../po-search/enums/po-search-filter-mode.enum';
|
|
7
6
|
import { PoTableAction } from './interfaces/po-table-action.interface';
|
|
8
7
|
import { PoTableColumnSort } from './interfaces/po-table-column-sort.interface';
|
|
@@ -74,7 +73,6 @@ export declare const poTableLiteralsDefault: {
|
|
|
74
73
|
*/
|
|
75
74
|
export declare abstract class PoTableBaseComponent implements OnChanges, OnDestroy {
|
|
76
75
|
private poDate;
|
|
77
|
-
protected poThemeService: PoThemeService;
|
|
78
76
|
private poTableService;
|
|
79
77
|
/**
|
|
80
78
|
* @optional
|
|
@@ -400,7 +398,7 @@ export declare abstract class PoTableBaseComponent implements OnChanges, OnDestr
|
|
|
400
398
|
private _draggable?;
|
|
401
399
|
private _hideActionFixedColumns?;
|
|
402
400
|
private _virtualScroll?;
|
|
403
|
-
constructor(poDate: PoDateService, languageService: PoLanguageService,
|
|
401
|
+
constructor(poDate: PoDateService, languageService: PoLanguageService, poTableService: PoTableService);
|
|
404
402
|
/**
|
|
405
403
|
* @optional
|
|
406
404
|
*
|