@po-ui/ng-components 19.24.0 → 19.25.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 +19020 -17886
- 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/po-item-list/po-item-list.component.d.ts +1 -2
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +3 -4
- package/lib/components/po-listbox/po-listbox.component.d.ts +3 -7
- 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 +1 -1
- package/lib/components/po-search/literals/po-search-literals.interface.d.ts +43 -0
- package/lib/components/po-search/po-search-base.component.d.ts +172 -79
- package/lib/components/po-search/po-search.component.d.ts +27 -9
- 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.25.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';
|
|
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,36 +46,39 @@ 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?;
|
|
75
84
|
/**
|
|
@@ -77,42 +86,95 @@ export declare class PoSearchBaseComponent {
|
|
|
77
86
|
*
|
|
78
87
|
* @description
|
|
79
88
|
*
|
|
80
|
-
*
|
|
89
|
+
* Define um aria-label para o po-search.
|
|
81
90
|
*
|
|
82
|
-
*
|
|
91
|
+
* > Devido o componente não possuir uma label assim como outros campos de texto, o `aria-label` é utilizado para
|
|
92
|
+
* acessibilidade.
|
|
83
93
|
*/
|
|
84
|
-
|
|
94
|
+
set ariaLabel(value: string);
|
|
95
|
+
get ariaLabel(): string;
|
|
85
96
|
/**
|
|
86
97
|
* @optional
|
|
87
98
|
*
|
|
88
99
|
* @description
|
|
89
100
|
*
|
|
90
|
-
*
|
|
101
|
+
* Desabilita o po-search e não permite que o usuário interaja com o mesmo.
|
|
102
|
+
*
|
|
103
|
+
* @default `false`
|
|
91
104
|
*/
|
|
92
|
-
|
|
105
|
+
disabled?: boolean;
|
|
93
106
|
/**
|
|
94
|
-
* @
|
|
107
|
+
* @description
|
|
95
108
|
*
|
|
109
|
+
* Define os nomes das propriedades do objeto que serão utilizados para busca em `p-items`. Cada valor definido no
|
|
110
|
+
* array será considerado durante a apresentação e filtragem dos itens.
|
|
111
|
+
* Exemplo de uso:
|
|
112
|
+
* ```typescript
|
|
113
|
+
* const filterKeys: Array<string> = ['name', 'gender', 'planet', 'father'];
|
|
114
|
+
* ```
|
|
115
|
+
*
|
|
116
|
+
* > Esta propriedade é ignorada quando utilizado com `p-filter-select` e incompatível com a propriedade
|
|
117
|
+
* `p-search-type` do tipo `locate`.
|
|
118
|
+
*/
|
|
119
|
+
filterKeys: Array<any>;
|
|
120
|
+
/**
|
|
96
121
|
* @description
|
|
97
122
|
*
|
|
98
|
-
*
|
|
123
|
+
* Habilita um seletor de filtros à esquerda do campo, permitindo a aplicação de filtros agrupados na busca ou sobre
|
|
124
|
+
* os itens fornecidos em `p-items`. Automaticamente adiciona a opção **Todos**, com um mapeamento de todas as opções passadas.
|
|
99
125
|
*
|
|
100
|
-
*
|
|
126
|
+
* Exemplo de uso:
|
|
127
|
+
* ```typescript
|
|
128
|
+
* const filterSelect = [
|
|
129
|
+
* { label: 'personal', value: ['name', 'email', 'nickname'] },
|
|
130
|
+
* { label: 'address', value: ['country', 'state', 'city', 'street'] },
|
|
131
|
+
* { label: 'family', value: ['father', 'mother', 'dependents'] }
|
|
132
|
+
* ];
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
135
|
+
* > Ao ser habilitada, a propriedade `p-filter-keys` será ignorada. Esta propriedade é incompatível com a propriedade
|
|
136
|
+
* `p-search-type` do tipo `locate`.
|
|
101
137
|
*/
|
|
102
|
-
set
|
|
103
|
-
get
|
|
138
|
+
set filterSelect(values: Array<PoSearchFilterSelect>);
|
|
139
|
+
get filterSelect(): Array<PoSearchFilterSelect>;
|
|
104
140
|
/**
|
|
141
|
+
* @optional
|
|
142
|
+
*
|
|
105
143
|
* @description
|
|
106
144
|
*
|
|
107
|
-
*
|
|
145
|
+
* Define o modo de pesquisa utilizado no campo de busca. Os valores permitidos são definidos pelo enum
|
|
146
|
+
* **PoSearchFilterMode**.
|
|
147
|
+
*
|
|
148
|
+
* > Incompatível com a propriedade `p-search-type` do tipo `locate`.
|
|
149
|
+
*
|
|
150
|
+
* @default `startsWith`
|
|
108
151
|
*/
|
|
109
|
-
|
|
152
|
+
filterType: PoSearchFilterMode;
|
|
110
153
|
/**
|
|
111
154
|
* @optional
|
|
112
155
|
*
|
|
113
156
|
* @description
|
|
114
157
|
*
|
|
115
|
-
*
|
|
158
|
+
* Permite customizar o ícone de busca que acompanha o campo.
|
|
159
|
+
*
|
|
160
|
+
* É possível usar qualquer um dos ícones da [Biblioteca de ícones PO UI](https://po-ui.io/icons), conforme exemplo:
|
|
161
|
+
* ```
|
|
162
|
+
* <po-search p-icon="an an-user"></po-search>
|
|
163
|
+
* ```
|
|
164
|
+
* Também é possível utilizar outras fontes de ícones, por exemplo a biblioteca *Font Awesome*, desde que a biblioteca
|
|
165
|
+
* esteja carregada no projeto:
|
|
166
|
+
* ```
|
|
167
|
+
* <po-search p-icon="fa fa-podcast"></po-search>
|
|
168
|
+
* ```
|
|
169
|
+
*
|
|
170
|
+
* Outra opção seria a customização do ícone através do `TemplateRef`, conforme exemplo abaixo:
|
|
171
|
+
* ```
|
|
172
|
+
* <po-search [p-icon]="template"></po-search>
|
|
173
|
+
*
|
|
174
|
+
* <ng-template #template>
|
|
175
|
+
* <i class="fa fa-podcast" style="font-size: inherit;"></i>
|
|
176
|
+
* </ng-template>
|
|
177
|
+
* ```
|
|
116
178
|
*/
|
|
117
179
|
icon: string | TemplateRef<void>;
|
|
118
180
|
/**
|
|
@@ -120,21 +182,17 @@ export declare class PoSearchBaseComponent {
|
|
|
120
182
|
*
|
|
121
183
|
* @description
|
|
122
184
|
*
|
|
123
|
-
*
|
|
185
|
+
* Lista de itens que serão utilizados para pesquisa.
|
|
124
186
|
*
|
|
125
|
-
*
|
|
126
|
-
* - `action`: Realiza a busca a cada caractere digitado.
|
|
127
|
-
* - `trigger`: Realiza a busca ao pressionar `enter` ou clicar no ícone de busca.
|
|
128
|
-
*
|
|
129
|
-
* @default `action`
|
|
187
|
+
* > Incompatível com a propriedade `p-search-type` do tipo `locate`.
|
|
130
188
|
*/
|
|
131
|
-
|
|
189
|
+
items: Array<any>;
|
|
132
190
|
/**
|
|
133
191
|
* @optional
|
|
134
192
|
*
|
|
135
193
|
* @description
|
|
136
194
|
*
|
|
137
|
-
* Objeto com as literais usadas no `po-search
|
|
195
|
+
* Objeto com as literais usadas no `po-search`, permitindo personalizar os textos exibidos no componente.
|
|
138
196
|
*
|
|
139
197
|
* Para utilizar basta passar a literal que deseja customizar:
|
|
140
198
|
*
|
|
@@ -153,8 +211,8 @@ export declare class PoSearchBaseComponent {
|
|
|
153
211
|
* </po-search>
|
|
154
212
|
* ```
|
|
155
213
|
*
|
|
156
|
-
* > O objeto padrão de literais será traduzido de acordo com o idioma do
|
|
157
|
-
*
|
|
214
|
+
* > O objeto padrão de literais será traduzido de acordo com o idioma do [`PoI18nService`](/documentation/po-i18n) ou
|
|
215
|
+
* do browser.
|
|
158
216
|
*/
|
|
159
217
|
set literals(value: PoSearchLiterals);
|
|
160
218
|
get literals(): PoSearchLiterals;
|
|
@@ -163,41 +221,42 @@ export declare class PoSearchBaseComponent {
|
|
|
163
221
|
*
|
|
164
222
|
* @description
|
|
165
223
|
*
|
|
166
|
-
* Define
|
|
224
|
+
* Define os valores do contador exibido ao usar a propriedade `p-search-type` do tipo `locate`, indicando a posição
|
|
225
|
+
* atual e o total de ocorrências encontradas.
|
|
226
|
+
* Exemplo de uso:
|
|
227
|
+
* ```ts
|
|
228
|
+
* locateSummary: PoSearchLocateSummary = { currentIndex: 0, total: 5 };
|
|
229
|
+
* ```
|
|
167
230
|
*
|
|
168
|
-
*
|
|
231
|
+
* > Compatível com a propriedade `p-search-type` do tipo `locate`.
|
|
169
232
|
*/
|
|
170
|
-
|
|
233
|
+
locateSummary: PoSearchLocateSummary;
|
|
171
234
|
/**
|
|
172
235
|
* @optional
|
|
173
236
|
*
|
|
174
237
|
* @description
|
|
175
238
|
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
239
|
+
* Determina a forma de realizar a pesquisa no componente. Valores aceitos:
|
|
240
|
+
* - `action`: Realiza a busca a cada caractere digitado.
|
|
241
|
+
* - `trigger`: Realiza a busca ao pressionar `enter` ou clicar no ícone de busca.
|
|
242
|
+
* - `locate`: Modo manual. Exibe botões e contador, mas não executa buscas — controle é do desenvolvedor.
|
|
178
243
|
*
|
|
179
|
-
* @default `
|
|
244
|
+
* @default `action`
|
|
180
245
|
*/
|
|
181
|
-
|
|
246
|
+
type: searchMode;
|
|
182
247
|
/**
|
|
248
|
+
* @optional
|
|
249
|
+
*
|
|
183
250
|
* @description
|
|
184
251
|
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
252
|
+
* Exibe uma lista (auto-complete) com as opções definidas em `p-filter-keys` ou `p-filter-select` enquanto realiza
|
|
253
|
+
* uma busca, respeitando o `p-filter-type` como modo de pesquisa.
|
|
187
254
|
*
|
|
188
|
-
* >
|
|
255
|
+
* > Incompatível com a propriedade `p-search-type` do tipo `locate`.
|
|
189
256
|
*
|
|
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
|
-
* ```
|
|
257
|
+
* @default `false`
|
|
198
258
|
*/
|
|
199
|
-
|
|
200
|
-
get filterSelect(): Array<PoSearchFilterSelect>;
|
|
259
|
+
showListbox?: boolean;
|
|
201
260
|
/**
|
|
202
261
|
* @optional
|
|
203
262
|
*
|
|
@@ -219,37 +278,71 @@ export declare class PoSearchBaseComponent {
|
|
|
219
278
|
*
|
|
220
279
|
* @description
|
|
221
280
|
*
|
|
222
|
-
* Evento disparado ao
|
|
281
|
+
* Evento disparado ao sair do campo.
|
|
223
282
|
*/
|
|
224
|
-
|
|
283
|
+
blur: EventEmitter<any>;
|
|
225
284
|
/**
|
|
226
285
|
* @optional
|
|
227
286
|
*
|
|
228
287
|
* @description
|
|
229
288
|
*
|
|
230
|
-
*
|
|
289
|
+
* Evento disparado ao alterar valor do model.
|
|
231
290
|
*/
|
|
232
|
-
|
|
291
|
+
changeModel: EventEmitter<any>;
|
|
233
292
|
/**
|
|
234
293
|
* @optional
|
|
235
294
|
*
|
|
236
295
|
* @description
|
|
237
296
|
*
|
|
238
297
|
* Pode ser informada uma função que será disparada quando houver alterações nos filtros.
|
|
298
|
+
*
|
|
299
|
+
* > Incompatível com a propriedade `p-search-type` do tipo `locate`.
|
|
239
300
|
*/
|
|
240
301
|
filter: EventEmitter<any>;
|
|
302
|
+
/**
|
|
303
|
+
* @optional
|
|
304
|
+
*
|
|
305
|
+
* @description
|
|
306
|
+
*
|
|
307
|
+
* Pode ser informada uma função que será disparada quando houver alterações no input.
|
|
308
|
+
*
|
|
309
|
+
* > Incompatível com a propriedade `p-search-type` do tipo `locate`.
|
|
310
|
+
*/
|
|
311
|
+
filteredItemsChange: EventEmitter<any[]>;
|
|
241
312
|
/**
|
|
242
313
|
* @optional
|
|
243
314
|
*
|
|
244
315
|
* @description
|
|
245
316
|
*
|
|
246
317
|
* Pode ser informada uma função que será disparada quando houver click no listbox.
|
|
318
|
+
*
|
|
319
|
+
* > Incompatível com a propriedade `p-search-type` do tipo `locate`.
|
|
247
320
|
*/
|
|
248
321
|
listboxOnClick: EventEmitter<any>;
|
|
249
|
-
|
|
322
|
+
/**
|
|
323
|
+
* @optional
|
|
324
|
+
*
|
|
325
|
+
* @description
|
|
326
|
+
*
|
|
327
|
+
* Evento disparado ao clicar no controle "Próximo resultado".
|
|
328
|
+
*
|
|
329
|
+
* > Compatível com a propriedade `p-search-type` do tipo `locate`.
|
|
330
|
+
*/
|
|
331
|
+
locateNext: EventEmitter<void>;
|
|
332
|
+
/**
|
|
333
|
+
* @optional
|
|
334
|
+
*
|
|
335
|
+
* @description
|
|
336
|
+
*
|
|
337
|
+
* Evento disparado ao clicar no controle "Resultado anterior".
|
|
338
|
+
*
|
|
339
|
+
* > Compatível com a propriedade `p-search-type` do tipo `locate`.
|
|
340
|
+
*/
|
|
341
|
+
locatePrevious: EventEmitter<void>;
|
|
342
|
+
constructor(languageService: PoLanguageService);
|
|
250
343
|
ensureFilterSelectOption(values: any): any[];
|
|
251
344
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoSearchBaseComponent, never>;
|
|
252
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoSearchBaseComponent, never, never, { "disabled": { "alias": "p-disabled"; "required": false; }; "
|
|
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>;
|
|
253
346
|
static ngAcceptInputType_disabled: any;
|
|
254
347
|
static ngAcceptInputType_showListbox: any;
|
|
255
348
|
}
|
|
@@ -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,33 +40,49 @@ 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-fields-locate" title="PO Search Form Fields with Locate">
|
|
44
|
+
* <file name="sample-po-search-fields-locate/sample-po-search-fields-locate.component.html"> </file>
|
|
45
|
+
* <file name="sample-po-search-fields-locate/sample-po-search-fields-locate.component.ts"> </file>
|
|
46
|
+
* </example>
|
|
47
|
+
*
|
|
44
48
|
*/
|
|
45
49
|
export declare class PoSearchComponent extends PoSearchBaseComponent implements OnInit, OnDestroy, OnChanges {
|
|
46
50
|
languageService: PoLanguageService;
|
|
47
|
-
protected
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
private controlPosition;
|
|
51
|
+
protected renderer: Renderer2;
|
|
52
|
+
protected changeDetector: ChangeDetectorRef;
|
|
53
|
+
protected controlPosition: PoControlPositionService;
|
|
51
54
|
private clickoutListener;
|
|
52
55
|
private eventResizeListener;
|
|
56
|
+
private _locateCounter;
|
|
57
|
+
set locateCounter(element: ElementRef);
|
|
58
|
+
get locateCounter(): ElementRef;
|
|
53
59
|
poSearchInput: ElementRef;
|
|
54
60
|
poListboxContainerElement: ElementRef;
|
|
55
61
|
poListboxElement: ElementRef;
|
|
56
62
|
poListbox: PoListBoxComponent;
|
|
63
|
+
basePaddingRightSmall: number;
|
|
64
|
+
basePaddingRightMedium: number;
|
|
65
|
+
dynamicPaddingRight: number;
|
|
57
66
|
listboxFilteredItems: Array<any>;
|
|
58
67
|
filteredItems: Array<any>;
|
|
59
68
|
listboxOpen: boolean;
|
|
60
69
|
shouldMarkLetters: boolean;
|
|
61
70
|
isFiltering: boolean;
|
|
71
|
+
isInputFocused: boolean;
|
|
62
72
|
listboxItemclicked: boolean;
|
|
73
|
+
showSearchLocateControls: boolean;
|
|
74
|
+
showNoResults: boolean;
|
|
75
|
+
locateCounterResize: ResizeObserver;
|
|
63
76
|
searchFilter: {};
|
|
64
77
|
searchFilterSelectLabel: string;
|
|
65
78
|
searchFilterSelectActions: Array<PoDropdownAction>;
|
|
66
|
-
constructor(
|
|
79
|
+
constructor();
|
|
67
80
|
ngOnInit(): void;
|
|
68
81
|
ngOnChanges(changes: SimpleChanges): void;
|
|
69
82
|
ngOnDestroy(): void;
|
|
70
83
|
clearSearch(): void;
|
|
84
|
+
onCleanKeydown(event: KeyboardEvent): void;
|
|
85
|
+
onEnterKey(event: any): void;
|
|
71
86
|
onSearchChange(searchText: string, activated: boolean, buttonClick?: boolean): void;
|
|
72
87
|
private updateFilteredItems;
|
|
73
88
|
private getFilteredItems;
|
|
@@ -84,17 +99,20 @@ export declare class PoSearchComponent extends PoSearchBaseComponent implements
|
|
|
84
99
|
onCloseListbox(): void;
|
|
85
100
|
onListboxClick(option: PoSearchOption, event?: any): void;
|
|
86
101
|
onBlur(): void;
|
|
87
|
-
|
|
102
|
+
onFocus(): void;
|
|
103
|
+
onInputHandler(value: string): void;
|
|
104
|
+
onKeyDown(event?: KeyboardEvent): void;
|
|
88
105
|
private focusItem;
|
|
89
106
|
private setContainerPosition;
|
|
90
107
|
private adjustContainerPosition;
|
|
91
|
-
controlListboxVisibility(toOpen: boolean): void;
|
|
92
108
|
private openListbox;
|
|
93
109
|
closeListbox(): void;
|
|
94
110
|
clickedOutsideInput(event: MouseEvent): void;
|
|
95
111
|
private initializeListeners;
|
|
96
112
|
private removeListeners;
|
|
97
|
-
private
|
|
113
|
+
private updatePaddingRightLocate;
|
|
114
|
+
private updateShowSearchLocateControls;
|
|
115
|
+
private readonly onScroll;
|
|
98
116
|
getInputValue(): any;
|
|
99
117
|
createDropdownFilterSelect(): void;
|
|
100
118
|
isSelected(filterOption: PoSearchFilterSelect): boolean;
|
|
@@ -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
|
*
|
package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { PoThemeService } from '../../../services';
|
|
3
2
|
import { PoLanguageService } from '../../../services/po-language/po-language.service';
|
|
4
3
|
import { PoCheckboxGroupOption } from '../../po-field/po-checkbox-group/interfaces/po-checkbox-group-option.interface';
|
|
5
4
|
import { PoPageSlideComponent } from '../../po-page/po-page-slide';
|
|
@@ -25,7 +24,6 @@ export declare const poTableColumnManagerLiteralsDefault: {
|
|
|
25
24
|
};
|
|
26
25
|
};
|
|
27
26
|
export declare class PoTableColumnManagerComponent implements OnChanges, OnDestroy {
|
|
28
|
-
protected poThemeService: PoThemeService;
|
|
29
27
|
private renderer;
|
|
30
28
|
popover: PoPopoverComponent;
|
|
31
29
|
pageSlideColumnsManager: PoPageSlideComponent;
|
|
@@ -66,7 +64,7 @@ export declare class PoTableColumnManagerComponent implements OnChanges, OnDestr
|
|
|
66
64
|
get componentsSize(): string;
|
|
67
65
|
set maxColumns(value: number);
|
|
68
66
|
get maxColumns(): number;
|
|
69
|
-
constructor(
|
|
67
|
+
constructor(renderer: Renderer2, languageService: PoLanguageService);
|
|
70
68
|
ngOnChanges(changes: SimpleChanges): void;
|
|
71
69
|
ngOnDestroy(): void;
|
|
72
70
|
checkChanges(event?: Array<string>, emit?: boolean): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DecimalPipe } from '@angular/common';
|
|
2
2
|
import { EventEmitter } from '@angular/core';
|
|
3
|
-
import { PoThemeService } from '../../../services';
|
|
4
3
|
import { PoTableDetailColumn } from './po-table-detail-column.interface';
|
|
5
4
|
import { PoTableDetail } from './po-table-detail.interface';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
@@ -12,7 +11,6 @@ import * as i0 from "@angular/core";
|
|
|
12
11
|
* Componente responsável por apresentar o detalhe de cada linha da tabela.
|
|
13
12
|
*/
|
|
14
13
|
export declare class PoTableDetailComponent {
|
|
15
|
-
protected poThemeService: PoThemeService;
|
|
16
14
|
private decimalPipe;
|
|
17
15
|
private _componentsSize?;
|
|
18
16
|
/**
|
|
@@ -58,7 +56,7 @@ export declare class PoTableDetailComponent {
|
|
|
58
56
|
*/
|
|
59
57
|
set detail(value: PoTableDetail);
|
|
60
58
|
get detail(): PoTableDetail;
|
|
61
|
-
constructor(
|
|
59
|
+
constructor(decimalPipe: DecimalPipe);
|
|
62
60
|
get detailColumns(): Array<PoTableDetailColumn>;
|
|
63
61
|
get typeHeaderInline(): boolean;
|
|
64
62
|
get typeHeaderTop(): boolean;
|