@po-ui/ng-components 19.12.0 → 19.14.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.mjs +27423 -25781
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/components.module.d.ts +42 -41
- package/lib/components/index.d.ts +1 -0
- package/lib/components/po-accordion/po-accordion.component.d.ts +0 -2
- package/lib/components/po-avatar/po-avatar.component.d.ts +0 -2
- package/lib/components/po-badge/po-badge-base.component.d.ts +12 -12
- package/lib/components/po-button/po-button-base.component.d.ts +1 -1
- package/lib/components/po-button/po-button.component.d.ts +1 -5
- package/lib/components/po-button-group/po-button-group-base.component.d.ts +1 -1
- package/lib/components/po-button-group/po-button-group.component.d.ts +1 -1
- package/lib/components/po-calendar/po-calendar-base.component.d.ts +27 -27
- package/lib/components/po-chart/index.d.ts +1 -0
- package/lib/components/po-chart/interfaces/po-chart-axis-options.interface.d.ts +7 -0
- package/lib/components/po-chart/interfaces/po-chart-header-options.interface.d.ts +51 -0
- package/lib/components/po-chart/interfaces/po-chart-literals-default.interface.d.ts +7 -0
- package/lib/components/po-chart/interfaces/po-chart-literals.interface.d.ts +43 -0
- package/lib/components/po-chart/interfaces/po-chart-options.interface.d.ts +29 -2
- package/lib/components/po-chart/interfaces/po-chart-serie.interface.d.ts +17 -19
- package/lib/components/po-chart/po-chart-switch.component.d.ts +22 -0
- package/lib/components/po-chart/po-chart.component.d.ts +1 -1
- package/lib/components/po-chart/po-chart.module.d.ts +4 -3
- package/lib/components/po-chart-new/index.d.ts +2 -0
- package/lib/components/po-chart-new/po-chart-grid-utils.d.ts +23 -0
- package/lib/components/po-chart-new/po-chart-new-base.component.d.ts +210 -0
- package/lib/components/po-chart-new/po-chart-new.component.d.ts +86 -0
- package/lib/components/po-chart-new/po-chart-new.module.d.ts +18 -0
- package/lib/components/po-container/po-container-base.component.d.ts +2 -2
- package/lib/components/po-dropdown/po-dropdown-base.component.d.ts +1 -1
- package/lib/components/po-dropdown/po-dropdown.component.d.ts +1 -3
- package/lib/components/po-dynamic/po-dynamic-field.interface.d.ts +4 -4
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.d.ts +4 -4
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-field.interface.d.ts +12 -12
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +9 -1
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +1 -1
- package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +0 -2
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +9 -9
- package/lib/components/po-field/po-email/po-email.component.d.ts +0 -2
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +23 -16
- package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts +2 -2
- package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +8 -6
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +9 -1
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +1 -1
- package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +0 -2
- package/lib/components/po-field/po-select/po-select.component.d.ts +10 -4
- package/lib/components/po-field/po-switch/po-switch.component.d.ts +1 -3
- package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +7 -7
- package/lib/components/po-list-view/po-list-view-base.component.d.ts +1 -1
- package/lib/components/po-list-view/po-list-view.component.d.ts +1 -1
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +1 -1
- package/lib/components/po-listbox/po-listbox.component.d.ts +1 -1
- package/lib/components/po-menu/po-menu-base.component.d.ts +1 -1
- package/lib/components/po-menu/po-menu.component.d.ts +5 -5
- package/lib/components/po-modal/po-modal-base.component.d.ts +1 -1
- package/lib/components/po-modal/po-modal.component.d.ts +1 -1
- package/lib/components/po-popup/po-popup-base.component.d.ts +1 -1
- package/lib/components/po-popup/po-popup.component.d.ts +1 -1
- package/lib/components/po-progress/po-progress-base.component.d.ts +1 -1
- package/lib/components/po-progress/po-progress.component.d.ts +1 -1
- package/lib/components/po-search/po-search-base.component.d.ts +1 -1
- package/lib/components/po-search/po-search.component.d.ts +1 -1
- package/lib/components/po-slide/po-slide-base.component.d.ts +9 -9
- package/lib/components/po-table/enums/po-table-spacing.enum.d.ts +7 -5
- package/lib/components/po-table/interfaces/po-table-column.interface.d.ts +7 -8
- package/lib/components/po-table/po-table-base.component.d.ts +17 -12
- package/lib/components/po-table/po-table-column-label/po-table-column-label.interface.d.ts +12 -12
- package/lib/components/po-table/po-table-detail/po-table-detail-column.interface.d.ts +5 -6
- package/lib/components/po-table/po-table.component.d.ts +3 -3
- package/lib/components/po-tabs/po-tabs-base.component.d.ts +1 -1
- package/lib/components/po-tabs/po-tabs.component.d.ts +1 -1
- package/lib/components/po-tag/po-tag-base.component.d.ts +24 -24
- package/lib/components/po-toaster/po-toaster-base.component.d.ts +1 -1
- package/lib/components/po-toaster/po-toaster.component.d.ts +1 -1
- package/lib/components/po-tree-view/po-tree-view-base.component.d.ts +1 -1
- package/lib/components/po-tree-view/po-tree-view.component.d.ts +1 -1
- package/lib/directives/po-tooltip/po-tooltip-base.directive.d.ts +32 -1
- package/lib/services/po-color/index.d.ts +2 -0
- package/lib/services/po-color/po-color.module.d.ts +11 -0
- package/lib/services/po-color/po-color.service.d.ts +5 -1
- package/lib/services/po-theme/helpers/types/po-theme-dark-defaults.constant.d.ts +20 -2
- package/lib/services/po-theme/helpers/types/po-theme-light-defaults.constant.d.ts +4 -2
- package/lib/services/po-theme/interfaces/po-theme-color.interface.d.ts +36 -0
- package/lib/services/po-theme/po-theme.service.d.ts +1 -0
- package/lib/utils/util.d.ts +1 -1
- package/package.json +5 -4
- package/po-ui-ng-components-19.14.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/po-ui-ng-components-19.12.0.tgz +0 -0
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { PoLanguageService } from '../../services/po-language/po-language.service';
|
|
3
|
+
import { PoChartType } from '../po-chart/enums/po-chart-type.enum';
|
|
4
|
+
import { PoChartLiterals } from '../po-chart/interfaces/po-chart-literals.interface';
|
|
5
|
+
import { PoChartOptions } from '../po-chart/interfaces/po-chart-options.interface';
|
|
6
|
+
import { PoChartDataLabel } from '../po-chart/interfaces/po-chart-serie-data-label.interface';
|
|
7
|
+
import { PoChartSerie } from '../po-chart/interfaces/po-chart-serie.interface';
|
|
8
|
+
import { PoPopupAction } from '../po-popup';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
/**
|
|
11
|
+
* @description
|
|
12
|
+
*
|
|
13
|
+
* O `po-chart` é um componente para renderização de dados através de gráficos, com isso facilitando a compreensão e tornando a
|
|
14
|
+
* visualização destes dados mais agradável.
|
|
15
|
+
*
|
|
16
|
+
* Através de suas principais propriedades é possível definir atributos, tais como tipo de gráfico, altura, título, cores customizadas, opções para os eixos, entre outros.
|
|
17
|
+
*
|
|
18
|
+
* O componente permite utilizar em conjunto séries do tipo linha e coluna.
|
|
19
|
+
*
|
|
20
|
+
* Além disso, também é possível definir uma ação que será executada ao clicar em determinado elemento do gráfico
|
|
21
|
+
* e outra que será executada ao passar o *mouse* sobre o elemento.
|
|
22
|
+
*
|
|
23
|
+
* #### Guia de uso para Gráficos
|
|
24
|
+
*
|
|
25
|
+
* > Veja nosso [guia de uso para gráficos](/guides/guide-charts) para auxiliar na construção do seu gráfico,
|
|
26
|
+
* informando em qual caso utilizar, o que devemos evitar e boas práticas relacionada a cores.
|
|
27
|
+
*
|
|
28
|
+
* #### Tokens customizáveis
|
|
29
|
+
*
|
|
30
|
+
* É possível alterar o estilo do componente usando os seguintes tokens (CSS):
|
|
31
|
+
*
|
|
32
|
+
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
33
|
+
*
|
|
34
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
35
|
+
* |------------------------------------------|-------------------------------------------------------|---------------------------------------------------|
|
|
36
|
+
* | **Header (.po-chart-header )** | | |
|
|
37
|
+
* | `--background-color` | Cor de background do cabeçalho | `var(--color-neutral-light-00)` |
|
|
38
|
+
* | `--color` | Cor da fonte do cabeçalho | `var(--color-neutral-dark-70)` |
|
|
39
|
+
* | `--font-family` | Família tipográfica usada | `var(--font-family-theme)` |
|
|
40
|
+
* | `--font-size-title` | Tamanho da fonte | `var(--font-size-default)` |
|
|
41
|
+
* | `--font-size-icons` | Tamanho dos ícones | `var(--font-size-md)` |
|
|
42
|
+
* | `--font-weight` | Peso da fonte | `var(--font-weight-bold)` |
|
|
43
|
+
* | **Chart (.po-chart)** | | |
|
|
44
|
+
* | `--background-color-grid` | Cor de background | `var(--color-neutral-light-00)` |
|
|
45
|
+
* | `--color-grid` | Cor da fonte | `var(--color-neutral-light-20)` |
|
|
46
|
+
* | `--font-family-grid` | Família tipográfica usada | `var(--font-family-theme)` |
|
|
47
|
+
* | `--font-size-grid` | Tamanho da fonte | `var(--font-size-xs)` |
|
|
48
|
+
* | `--font-weight-grid` | Peso da fonte | `var(--font-weight-normal)` |
|
|
49
|
+
* | `--color-legend` | Cor da fonte da legenda | `var(--color-neutral-dark-70)` |
|
|
50
|
+
* | `--border-radius-bar` | Contém o valor do raio dos cantos do elemento | `var(--border-radius-none)` |
|
|
51
|
+
* | `--color-grid-hover` | Cor no estado hover | `var(--color-neutral-mid-60)` |
|
|
52
|
+
*/
|
|
53
|
+
export declare abstract class PoChartNewBaseComponent {
|
|
54
|
+
private _literals?;
|
|
55
|
+
private readonly language;
|
|
56
|
+
id: string;
|
|
57
|
+
/** Define o título do gráfico. */
|
|
58
|
+
title?: string;
|
|
59
|
+
/**
|
|
60
|
+
* @description
|
|
61
|
+
*
|
|
62
|
+
* Define os elementos do gráfico que serão criados dinamicamente.
|
|
63
|
+
*/
|
|
64
|
+
series: Array<PoChartSerie>;
|
|
65
|
+
/**
|
|
66
|
+
* @optional
|
|
67
|
+
*
|
|
68
|
+
* @description
|
|
69
|
+
*
|
|
70
|
+
* Define os nomes das categorias que serão plotadas no eixo X do gráfico caso seja do tipo `bar`, ou então nos eixos Y do grid de gráficos dos tipos `area`, `columnn` e `line`.
|
|
71
|
+
*
|
|
72
|
+
* > Gráficos do tipo `bar` dimensionam a área do gráfico de acordo com a largura do maior texto de categorias. No entanto, é uma boa prática optar por palavras curtas para que a leitura do gráfico não seja prejudicada.
|
|
73
|
+
*
|
|
74
|
+
* > Caso não seja especificado um valor para a categoria, será plotado um hífen na categoria referente a cada série.
|
|
75
|
+
*/
|
|
76
|
+
categories?: Array<string>;
|
|
77
|
+
customActions?: Array<PoPopupAction>;
|
|
78
|
+
/**
|
|
79
|
+
* @optional
|
|
80
|
+
*
|
|
81
|
+
* @description
|
|
82
|
+
*
|
|
83
|
+
* Objeto com as configurações usadas no `po-chart`.
|
|
84
|
+
*
|
|
85
|
+
* É possível, por exemplo, definir as configurações de exibição das legendas,
|
|
86
|
+
* configurar os eixos(*axis*) para os gráficos dos tipos `area`, `line`, `column` e `bar` da seguinte forma:
|
|
87
|
+
*
|
|
88
|
+
* ```
|
|
89
|
+
* chartOptions: PoChartOptions = {
|
|
90
|
+
* legend: true,
|
|
91
|
+
* axis: {
|
|
92
|
+
* minRange: 0,
|
|
93
|
+
* maxRange: 100,
|
|
94
|
+
* gridLines: 5,
|
|
95
|
+
* },
|
|
96
|
+
* };
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
options?: PoChartOptions;
|
|
100
|
+
/**
|
|
101
|
+
* @optional
|
|
102
|
+
*
|
|
103
|
+
* @description
|
|
104
|
+
*
|
|
105
|
+
* Permite configurar as propriedades de exibição dos rótulos das séries no gráfico.
|
|
106
|
+
*
|
|
107
|
+
* Essa configuração possibilita fixar os valores das séries diretamente no gráfico, alterando o comportamento visual:
|
|
108
|
+
* - Os valores das séries permanecem visíveis, sem a necessidade de hover.
|
|
109
|
+
* - O *tooltip* não será exibido.
|
|
110
|
+
* - Os marcadores (*bullets*) terão seu estilo ajustado.
|
|
111
|
+
* - As outras séries ficarão com opacidade reduzida ao passar o mouse sobre a série ativa.
|
|
112
|
+
*
|
|
113
|
+
* > Disponível apenas para gráficos do tipo `line`.
|
|
114
|
+
*
|
|
115
|
+
* #### Exemplo de utilização:
|
|
116
|
+
* ```typescript
|
|
117
|
+
* dataLabel: PoChartDataLabel = {
|
|
118
|
+
* fixed: true,
|
|
119
|
+
* };
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
dataLabel?: PoChartDataLabel;
|
|
123
|
+
/**
|
|
124
|
+
* @optional
|
|
125
|
+
*
|
|
126
|
+
* @description
|
|
127
|
+
*
|
|
128
|
+
* Define a altura do gráfico em px.
|
|
129
|
+
*
|
|
130
|
+
* > O valor mínimo aceito nesta propriedade é 200.
|
|
131
|
+
*
|
|
132
|
+
* @default `400`
|
|
133
|
+
*/
|
|
134
|
+
set height(value: number);
|
|
135
|
+
get height(): number;
|
|
136
|
+
private _height;
|
|
137
|
+
/**
|
|
138
|
+
* @optional
|
|
139
|
+
*
|
|
140
|
+
* @description
|
|
141
|
+
*
|
|
142
|
+
* Define o tipo de gráfico.
|
|
143
|
+
*
|
|
144
|
+
* É possível também combinar gráficos dos tipos linha e coluna. Para isso, opte pela declaração de `type` conforme a interface `PoChartSerie`.
|
|
145
|
+
*
|
|
146
|
+
* > Note que, se houver declaração de tipo de gráfico tanto em `p-type` quanto em `PochartSerie.type`, o valor `{ type }` da primeira série anulará o valor definido em `p-type`.
|
|
147
|
+
*
|
|
148
|
+
* Se não passado valor, o padrão será relativo à primeira série passada em `p-series`:
|
|
149
|
+
* - Se `p-series = [{ data: [1,2,3] }]`: será `PoChartType.Column`.
|
|
150
|
+
* - Se `p-series = [{ data: 1 }]`: será `PoChartType.Pie`.
|
|
151
|
+
*
|
|
152
|
+
* > Veja os valores válidos no *enum* `PoChartType`.
|
|
153
|
+
*/
|
|
154
|
+
type: PoChartType;
|
|
155
|
+
/**
|
|
156
|
+
* @optional
|
|
157
|
+
*
|
|
158
|
+
* @description
|
|
159
|
+
*
|
|
160
|
+
* Objeto com as literais usadas no `po-chart`.
|
|
161
|
+
*
|
|
162
|
+
* Para utilizar basta passar a literal que deseja customizar:
|
|
163
|
+
*
|
|
164
|
+
* ```
|
|
165
|
+
* const customLiterals: PoChartLiterals = {
|
|
166
|
+
* downloadCSV: 'Obter CSV',
|
|
167
|
+
* };
|
|
168
|
+
* ```
|
|
169
|
+
*
|
|
170
|
+
* E para carregar a literal customizada, basta apenas passar o objeto para o componente.
|
|
171
|
+
*
|
|
172
|
+
* ```
|
|
173
|
+
* <po-chart
|
|
174
|
+
* [p-literals]="customLiterals">
|
|
175
|
+
* </po-chart>
|
|
176
|
+
* ```
|
|
177
|
+
*
|
|
178
|
+
* > O objeto padrão de literais será traduzido de acordo com o idioma do
|
|
179
|
+
* [`PoI18nService`](/documentation/po-i18n) ou do browser.
|
|
180
|
+
*/
|
|
181
|
+
set literals(value: PoChartLiterals);
|
|
182
|
+
get literals(): PoChartLiterals;
|
|
183
|
+
/**
|
|
184
|
+
* @optional
|
|
185
|
+
*
|
|
186
|
+
* @description
|
|
187
|
+
*
|
|
188
|
+
* Evento executado quando o usuário clicar sobre um elemento do gráfico.
|
|
189
|
+
*
|
|
190
|
+
* O evento emitirá o seguinte parâmetro:
|
|
191
|
+
* - *donut* e *pie*: um objeto contendo a categoria e valor da série.
|
|
192
|
+
* - *area*, *line*, *column* e *bar*: um objeto contendo o nome da série, valor e categoria do eixo do gráfico.
|
|
193
|
+
*/
|
|
194
|
+
seriesClick: EventEmitter<any>;
|
|
195
|
+
/**
|
|
196
|
+
* @optional
|
|
197
|
+
*
|
|
198
|
+
* @description
|
|
199
|
+
*
|
|
200
|
+
* Evento executado quando o usuário passar o *mouse* sobre um elemento do gráfico.
|
|
201
|
+
*
|
|
202
|
+
* O evento emitirá o seguinte parâmetro de acordo com o tipo de gráfico:
|
|
203
|
+
* - *donut* e *pie*: um objeto contendo a categoria e valor da série.
|
|
204
|
+
* - *area*, *line*, *column* e *bar*: um objeto contendo a categoria, valor da série e categoria do eixo do gráfico.
|
|
205
|
+
*/
|
|
206
|
+
seriesHover: EventEmitter<any>;
|
|
207
|
+
constructor(languageService: PoLanguageService);
|
|
208
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoChartNewBaseComponent, never>;
|
|
209
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoChartNewBaseComponent, never, never, { "id": { "alias": "t-id"; "required": false; }; "title": { "alias": "p-title"; "required": false; }; "series": { "alias": "p-series"; "required": false; }; "categories": { "alias": "p-categories"; "required": false; }; "customActions": { "alias": "p-custom-actions"; "required": false; }; "options": { "alias": "p-options"; "required": false; }; "dataLabel": { "alias": "p-data-label"; "required": false; }; "height": { "alias": "p-height"; "required": false; }; "type": { "alias": "p-type"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; }, { "seriesClick": "p-series-click"; "seriesHover": "p-series-hover"; }, never, never, true, never>;
|
|
210
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { CurrencyPipe, DecimalPipe } from '@angular/common';
|
|
3
|
+
import { PoTooltipDirective } from '../../directives';
|
|
4
|
+
import { PoColorService } from '../../services/po-color';
|
|
5
|
+
import { PoLanguageService } from '../../services/po-language/po-language.service';
|
|
6
|
+
import { PoModalAction, PoModalComponent } from '../po-modal';
|
|
7
|
+
import { PoPopupAction } from '../po-popup';
|
|
8
|
+
import { PoTableColumn } from '../po-table';
|
|
9
|
+
import { PoChartNewBaseComponent } from './po-chart-new-base.component';
|
|
10
|
+
import { PoChartGridUtils } from './po-chart-grid-utils';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
/**
|
|
13
|
+
* @docsPrivate
|
|
14
|
+
*
|
|
15
|
+
* Componente de uso interno.
|
|
16
|
+
*/
|
|
17
|
+
export declare class PoChartNewComponent extends PoChartNewBaseComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy {
|
|
18
|
+
private readonly el;
|
|
19
|
+
private readonly currencyPipe;
|
|
20
|
+
private readonly decimalPipe;
|
|
21
|
+
private readonly colorService;
|
|
22
|
+
private readonly cdr;
|
|
23
|
+
poTooltip: QueryList<PoTooltipDirective>;
|
|
24
|
+
targetRef: ElementRef;
|
|
25
|
+
modal: PoModalComponent;
|
|
26
|
+
tooltipText: string;
|
|
27
|
+
originalHeight: number;
|
|
28
|
+
chartMarginTop: string;
|
|
29
|
+
isTypeBar: boolean;
|
|
30
|
+
boundaryGap: boolean;
|
|
31
|
+
listTypePieDonut: Array<any>;
|
|
32
|
+
itemsTypeDonut: Array<any>;
|
|
33
|
+
protected actionModal: PoModalAction;
|
|
34
|
+
showPopup: boolean;
|
|
35
|
+
protected itemsTable: any[];
|
|
36
|
+
protected columnsTable: Array<PoTableColumn>;
|
|
37
|
+
protected isExpanded: boolean;
|
|
38
|
+
protected legendData: Array<{
|
|
39
|
+
name: string;
|
|
40
|
+
color: string;
|
|
41
|
+
}>;
|
|
42
|
+
protected headerHeight: number;
|
|
43
|
+
protected positionTooltip: string;
|
|
44
|
+
protected tooltipTitle: any;
|
|
45
|
+
protected chartGridUtils: PoChartGridUtils;
|
|
46
|
+
protected popupActions: Array<PoPopupAction>;
|
|
47
|
+
private chartInstance;
|
|
48
|
+
private currentRenderer;
|
|
49
|
+
private intersectionObserver;
|
|
50
|
+
private hideDomEchartsDiv;
|
|
51
|
+
get showHeader(): string | boolean;
|
|
52
|
+
constructor(el: ElementRef, currencyPipe: CurrencyPipe, decimalPipe: DecimalPipe, colorService: PoColorService, cdr: ChangeDetectorRef, languageService: PoLanguageService);
|
|
53
|
+
onResize: () => void;
|
|
54
|
+
changeTheme: (event: any) => void;
|
|
55
|
+
ngOnInit(): void;
|
|
56
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
57
|
+
ngAfterViewInit(): void;
|
|
58
|
+
ngOnDestroy(): void;
|
|
59
|
+
showTooltipTitle(e: MouseEvent): void;
|
|
60
|
+
getCSSVariable(variable: string, selector?: string): string;
|
|
61
|
+
openModal(): void;
|
|
62
|
+
toggleExpand(): void;
|
|
63
|
+
private checkShowCEcharts;
|
|
64
|
+
private setInitialPopupActions;
|
|
65
|
+
private initECharts;
|
|
66
|
+
private initEChartsEvents;
|
|
67
|
+
private setTooltipProperties;
|
|
68
|
+
private setChartsProperties;
|
|
69
|
+
private setOptions;
|
|
70
|
+
private formatLabelOption;
|
|
71
|
+
private setOptionLegend;
|
|
72
|
+
private setSeries;
|
|
73
|
+
private setSerieEmphasis;
|
|
74
|
+
private setTypeSerie;
|
|
75
|
+
private setTableProperties;
|
|
76
|
+
private setTablePropertiesTypeBar;
|
|
77
|
+
private setTableColumns;
|
|
78
|
+
private downloadCsv;
|
|
79
|
+
private exportImage;
|
|
80
|
+
private exportSvgAsImage;
|
|
81
|
+
private configureImageCanvas;
|
|
82
|
+
private setHeaderProperties;
|
|
83
|
+
private setPopupActions;
|
|
84
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoChartNewComponent, never>;
|
|
85
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoChartNewComponent, "po-chart-new", never, {}, {}, never, never, false, never>;
|
|
86
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./po-chart-new.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../directives/po-tooltip/po-tooltip.module";
|
|
5
|
+
import * as i4 from "../po-button/po-button.module";
|
|
6
|
+
import * as i5 from "../po-modal/po-modal.module";
|
|
7
|
+
import * as i6 from "../po-table/po-table.module";
|
|
8
|
+
import * as i7 from "../po-popup/po-popup.module";
|
|
9
|
+
/**
|
|
10
|
+
* @description
|
|
11
|
+
*
|
|
12
|
+
* Módulo do componente `po-chart`.
|
|
13
|
+
*/
|
|
14
|
+
export declare class PoChartNewModule {
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoChartNewModule, never>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoChartNewModule, [typeof i1.PoChartNewComponent], [typeof i2.CommonModule, typeof i3.PoTooltipModule, typeof i4.PoButtonModule, typeof i5.PoModalModule, typeof i6.PoTableModule, typeof i7.PoPopupModule], [typeof i1.PoChartNewComponent]>;
|
|
17
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PoChartNewModule>;
|
|
18
|
+
}
|
|
@@ -16,13 +16,13 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
*
|
|
17
17
|
* | Propriedade | Descrição | Valor Padrão |
|
|
18
18
|
* |------------------------------------------------|--------------------------------------------------------|--------------------------------------------------|
|
|
19
|
-
* | **Default Values - CONTENT
|
|
19
|
+
* | **Default Values - CONTENT** | | |
|
|
20
20
|
* | `--padding` | Preenchimento | `var(--spacing-sm)` |
|
|
21
21
|
* | `--border-radius` | Contém o valor do raio dos cantos do elemento | `var(--border-radius-md)` |
|
|
22
22
|
* | `--border-width` | Contém o valor da largura dos cantos do elemento | `var(--border-width-sm)` |
|
|
23
23
|
* | `--border-color` | Cor da borda | `var(--color-neutral-light-20)` |
|
|
24
24
|
* | `--background` | Cor de background | `var(--color-neutral-light-00)` |
|
|
25
|
-
* | **Default Values - TITLE
|
|
25
|
+
* | **Default Values - TITLE** | | |
|
|
26
26
|
* | `--font-family` | Font aplicado ao titulo | `var(--font-family-theme)` |
|
|
27
27
|
* | `--line-weight` | Espessura da Fonte a ser aplicada do titulo | `var(--font-weight-semibold)` |
|
|
28
28
|
* | `--line-height` | tamanho da linha do titulo | `var(--line-height-md)` |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
-
import { PoThemeService } from '../../services';
|
|
2
|
+
import { PoThemeService } from '../../services/po-theme/po-theme.service';
|
|
3
3
|
import { PoDropdownBaseComponent } from './po-dropdown-base.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
@@ -10,8 +10,6 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* <example name="po-dropdown-basic" title="PO Dropdown Basic" >
|
|
11
11
|
* <file name="sample-po-dropdown-basic/sample-po-dropdown-basic.component.html"> </file>
|
|
12
12
|
* <file name="sample-po-dropdown-basic/sample-po-dropdown-basic.component.ts"> </file>
|
|
13
|
-
* <file name="sample-po-dropdown-basic/sample-po-dropdown-basic.component.e2e-spec.ts"> </file>
|
|
14
|
-
* <file name="sample-po-dropdown-basic/sample-po-dropdown-basic.component.po.ts"> </file>
|
|
15
13
|
* </example>
|
|
16
14
|
*
|
|
17
15
|
* <example name="po-dropdown-labs" title="PO Dropdown Labs" >
|
|
@@ -159,15 +159,15 @@ export interface PoDynamicField {
|
|
|
159
159
|
* - `currency`: Valores monetários.
|
|
160
160
|
* - `decimal`: Valores decimais.
|
|
161
161
|
* - `date`: Valores de datas.
|
|
162
|
-
*
|
|
163
|
-
*
|
|
162
|
+
* + Aceita os tipos **string** e **Date** padrão do Javascript,
|
|
163
|
+
* por exemplo: `'2017-11-28'` ou `new Date(2017, 10, 28)`.
|
|
164
164
|
* - `dateTime`: Valor de data com horário.
|
|
165
|
-
*
|
|
165
|
+
* + Aceita o tipo _string_ no formato **ISO-8601** extendido **'yyyy-mm-ddThh:mm:ss+|-hh:mm'**
|
|
166
166
|
* e o tipo **Date** padrão do Javascript, por exemplo: `'2017-11-28T00:00:00-02:00'` ou `new Date(2017, 10, 28)`.
|
|
167
167
|
* - `number`: Valores numéricos.
|
|
168
168
|
* - `string`: Textos.
|
|
169
169
|
* - `time`: Valor do horário.
|
|
170
|
-
*
|
|
170
|
+
* + Aceita o tipo **string** nos formatos **'HH:mm:ss'** ou **'HH:mm:ss.ffffff'**, por exemplo: `'23:12:45'`.
|
|
171
171
|
*
|
|
172
172
|
* @default `string`
|
|
173
173
|
*/
|
|
@@ -15,9 +15,9 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare class PoDynamicFormFieldsComponent extends PoDynamicFormFieldsBaseComponent implements OnChanges {
|
|
17
17
|
protected poThemeService: PoThemeService;
|
|
18
|
-
private validationService;
|
|
19
|
-
private changes;
|
|
20
|
-
private form;
|
|
18
|
+
private readonly validationService;
|
|
19
|
+
private readonly changes;
|
|
20
|
+
private readonly form;
|
|
21
21
|
components: QueryList<{
|
|
22
22
|
name: string;
|
|
23
23
|
focus: () => void;
|
|
@@ -32,7 +32,7 @@ export declare class PoDynamicFormFieldsComponent extends PoDynamicFormFieldsBas
|
|
|
32
32
|
onChangeFieldModel(visibleField: PoDynamicFormField): void;
|
|
33
33
|
showAdditionalHelp(property: string): void;
|
|
34
34
|
updatePreviousValue(): void;
|
|
35
|
-
trackBy(index:
|
|
35
|
+
trackBy(index: number, field: PoDynamicFormField): string;
|
|
36
36
|
private applyFieldValidation;
|
|
37
37
|
private getField;
|
|
38
38
|
private triggerValidationOnForm;
|
|
@@ -24,18 +24,18 @@ export interface PoDynamicViewField extends PoDynamicField {
|
|
|
24
24
|
* - O nome da cor, por exemplo `blue`;
|
|
25
25
|
* - Usando uma das cores do tema do PO:
|
|
26
26
|
* - Valores válidos:
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
27
|
+
* - <span class="dot po-color-01"></span> `color-01`
|
|
28
|
+
* - <span class="dot po-color-02"></span> `color-02`
|
|
29
|
+
* - <span class="dot po-color-03"></span> `color-03`
|
|
30
|
+
* - <span class="dot po-color-04"></span> `color-04`
|
|
31
|
+
* - <span class="dot po-color-05"></span> `color-05`
|
|
32
|
+
* - <span class="dot po-color-06"></span> `color-06`
|
|
33
|
+
* - <span class="dot po-color-07"></span> `color-07`
|
|
34
|
+
* - <span class="dot po-color-08"></span> `color-08`
|
|
35
|
+
* - <span class="dot po-color-09"></span> `color-09`
|
|
36
|
+
* - <span class="dot po-color-10"></span> `color-10`
|
|
37
|
+
* - <span class="dot po-color-11"></span> `color-11`
|
|
38
|
+
* - <span class="dot po-color-12"></span> `color-12`
|
|
39
39
|
*/
|
|
40
40
|
color?: string;
|
|
41
41
|
/**
|
|
@@ -78,6 +78,14 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
78
78
|
* > Requer um recuo mínimo de 8px se o componente estiver próximo à lateral da tela.
|
|
79
79
|
*/
|
|
80
80
|
additionalHelpTooltip?: string;
|
|
81
|
+
/**
|
|
82
|
+
* @optional
|
|
83
|
+
*
|
|
84
|
+
* @description
|
|
85
|
+
*
|
|
86
|
+
* Evento disparado ao sair do campo.
|
|
87
|
+
*/
|
|
88
|
+
blur: EventEmitter<any>;
|
|
81
89
|
/**
|
|
82
90
|
* @optional
|
|
83
91
|
*
|
|
@@ -625,7 +633,7 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
625
633
|
abstract getInputValue(): string;
|
|
626
634
|
abstract initInputObservable(): void;
|
|
627
635
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoComboBaseComponent, never>;
|
|
628
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoComboBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "name": { "alias": "name"; "required": false; }; "filterService": { "alias": "p-filter-service"; "required": false; }; "infiniteScroll": { "alias": "p-infinite-scroll"; "required": false; }; "infiniteScrollDistance": { "alias": "p-infinite-scroll-distance"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "clean": { "alias": "p-clean"; "required": false; }; "emitObjectValue": { "alias": "p-emit-object-value"; "required": false; }; "disabledTabFilter": { "alias": "p-disabled-tab-filter"; "required": false; }; "removeInitialFilter": { "alias": "p-remove-initial-filter"; "required": false; }; "fieldErrorMessage": { "alias": "p-field-error-message"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "controlValueWithLabel": { "alias": "p-control-value-with-label"; "required": false; }; "listboxControlPosition": { "alias": "p-listbox-control-position"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "debounceTime": { "alias": "p-debounce-time"; "required": false; }; "disabledInitFilter": { "alias": "p-disabled-init-filter"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "filterMinlength": { "alias": "p-filter-minlength"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "changeOnEnter": { "alias": "p-change-on-enter"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "sort": { "alias": "p-sort"; "required": false; }; "options": { "alias": "p-options"; "required": false; }; "filterMode": { "alias": "p-filter-mode"; "required": false; }; "filterParams": { "alias": "p-filter-params"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "cache": { "alias": "p-cache"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "change": "p-change"; "keydown": "p-keydown"; "ngModelChange": "ngModelChange"; "inputChange": "p-input-change"; }, never, never, true, never>;
|
|
636
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoComboBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "name": { "alias": "name"; "required": false; }; "filterService": { "alias": "p-filter-service"; "required": false; }; "infiniteScroll": { "alias": "p-infinite-scroll"; "required": false; }; "infiniteScrollDistance": { "alias": "p-infinite-scroll-distance"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "clean": { "alias": "p-clean"; "required": false; }; "emitObjectValue": { "alias": "p-emit-object-value"; "required": false; }; "disabledTabFilter": { "alias": "p-disabled-tab-filter"; "required": false; }; "removeInitialFilter": { "alias": "p-remove-initial-filter"; "required": false; }; "fieldErrorMessage": { "alias": "p-field-error-message"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "controlValueWithLabel": { "alias": "p-control-value-with-label"; "required": false; }; "listboxControlPosition": { "alias": "p-listbox-control-position"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "debounceTime": { "alias": "p-debounce-time"; "required": false; }; "disabledInitFilter": { "alias": "p-disabled-init-filter"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "filterMinlength": { "alias": "p-filter-minlength"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "changeOnEnter": { "alias": "p-change-on-enter"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "sort": { "alias": "p-sort"; "required": false; }; "options": { "alias": "p-options"; "required": false; }; "filterMode": { "alias": "p-filter-mode"; "required": false; }; "filterParams": { "alias": "p-filter-params"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "cache": { "alias": "p-cache"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; }, { "blur": "p-blur"; "additionalHelp": "p-additional-help"; "change": "p-change"; "keydown": "p-keydown"; "ngModelChange": "ngModelChange"; "inputChange": "p-input-change"; }, never, never, true, never>;
|
|
629
637
|
static ngAcceptInputType_autoFocus: any;
|
|
630
638
|
static ngAcceptInputType_clean: any;
|
|
631
639
|
static ngAcceptInputType_emitObjectValue: any;
|
|
@@ -113,7 +113,7 @@ export declare class PoComboComponent extends PoComboBaseComponent implements Af
|
|
|
113
113
|
*/
|
|
114
114
|
focus(): void;
|
|
115
115
|
getAdditionalHelpTooltip(): string;
|
|
116
|
-
onBlur(): void;
|
|
116
|
+
onBlur(event: any): void;
|
|
117
117
|
onKeyDown(event?: any): void;
|
|
118
118
|
onKeyUp(event?: any): void;
|
|
119
119
|
initInputObservable(): void;
|
|
@@ -14,8 +14,6 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
* <example name="po-datepicker-basic" title="PO Datepicker Basic">
|
|
15
15
|
* <file name="sample-po-datepicker-basic/sample-po-datepicker-basic.component.html"> </file>
|
|
16
16
|
* <file name="sample-po-datepicker-basic/sample-po-datepicker-basic.component.ts"> </file>
|
|
17
|
-
* <file name="sample-po-datepicker-basic/sample-po-datepicker-basic.component.po.ts"> </file>
|
|
18
|
-
* <file name="sample-po-datepicker-basic/sample-po-datepicker-basic.component.e2e-spec.ts"> </file>
|
|
19
17
|
* </example>
|
|
20
18
|
*
|
|
21
19
|
* <example name="po-datepicker-labs" title="PO Datepicker Labs">
|
|
@@ -23,19 +23,19 @@ import * as i0 from "@angular/core";
|
|
|
23
23
|
* Este componente pode receber os seguintes formatos de data:
|
|
24
24
|
*
|
|
25
25
|
* - **Data e hora combinados (E8601DZw): yyyy-mm-ddThh:mm:ss+|-hh:mm**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* ```
|
|
27
|
+
* '2017-11-28T00:00:00-02:00';
|
|
28
|
+
* ```
|
|
29
29
|
*
|
|
30
30
|
* - **Data (E8601DAw.): yyyy-mm-dd**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
31
|
+
* ```
|
|
32
|
+
* '2017-11-28';
|
|
33
|
+
* ```
|
|
34
34
|
*
|
|
35
35
|
* - **JavaScript Date Object:**
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
36
|
+
* ```
|
|
37
|
+
* new Date(2017, 10, 28);
|
|
38
|
+
* ```
|
|
39
39
|
*
|
|
40
40
|
* > O componente respeitará o formato passado para o *model* via codificação. Porém, caso seja feita alteração em algum
|
|
41
41
|
* dos valores de data em tela, o componente atribuirá o formato **Data (E8601DAw.): yyyy-mm-dd** ao model.
|
|
@@ -15,8 +15,6 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
* <example name="po-email-basic" title="PO Email Basic">
|
|
16
16
|
* <file name="sample-po-email-basic/sample-po-email-basic.component.html"> </file>
|
|
17
17
|
* <file name="sample-po-email-basic/sample-po-email-basic.component.ts"> </file>
|
|
18
|
-
* <file name="sample-po-email-basic/sample-po-email-basic.component.e2e-spec.ts"> </file>
|
|
19
|
-
* <file name="sample-po-email-basic/sample-po-email-basic.component.po.ts"> </file>
|
|
20
18
|
* </example>
|
|
21
19
|
*
|
|
22
20
|
* <example name="po-email-labs" title="PO Email Labs">
|
|
@@ -3,7 +3,6 @@ import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms
|
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
4
|
import { PoLanguageService } from '../../../services/po-language/po-language.service';
|
|
5
5
|
import { PoThemeService } from '../../../services';
|
|
6
|
-
import { PoTableColumnSpacing } from '../../po-table/enums/po-table-spacing.enum';
|
|
7
6
|
import { PoLookupAdvancedFilter } from './interfaces/po-lookup-advanced-filter.interface';
|
|
8
7
|
import { PoLookupColumn } from './interfaces/po-lookup-column.interface';
|
|
9
8
|
import { PoLookupFilter } from './interfaces/po-lookup-filter.interface';
|
|
@@ -34,13 +33,14 @@ export declare const poLookupLiteralsDefault: {
|
|
|
34
33
|
* `po-select` ou o `po-combo`.
|
|
35
34
|
*/
|
|
36
35
|
export declare abstract class PoLookupBaseComponent implements ControlValueAccessor, OnDestroy, OnInit, Validator, AfterViewInit, OnChanges {
|
|
37
|
-
private defaultService;
|
|
38
|
-
private injector;
|
|
36
|
+
private readonly defaultService;
|
|
37
|
+
private readonly injector;
|
|
39
38
|
poLookupModalService: PoLookupModalService;
|
|
40
39
|
protected poThemeService: PoThemeService;
|
|
41
40
|
private _literals?;
|
|
42
|
-
private language;
|
|
41
|
+
private readonly language;
|
|
43
42
|
private _size?;
|
|
43
|
+
private _spacing;
|
|
44
44
|
additionalHelpEventTrigger: string | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* @optional
|
|
@@ -321,13 +321,19 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
|
|
|
321
321
|
*
|
|
322
322
|
* @description
|
|
323
323
|
*
|
|
324
|
-
*
|
|
324
|
+
* Define o espaçamento interno das células, impactando diretamente na altura das linhas do table dentro do modal. Os
|
|
325
|
+
* valores permitidos são definidos pelo enum **PoTableColumnSpacing**.
|
|
325
326
|
*
|
|
326
|
-
*
|
|
327
|
+
* > Em nível de acessibilidade **AA**, caso o valor de `p-spacing` não seja definido, o valor padrão será `extraSmall`
|
|
328
|
+
* > nos seguintes cenários:
|
|
329
|
+
* > - Quando o valor de `p-size` for `small`;
|
|
330
|
+
* > - Quando o valor padrão dos componentes for configurado como `small` no
|
|
331
|
+
* > [serviço de tema](https://po-ui.io/documentation/po-theme).
|
|
327
332
|
*
|
|
328
333
|
* @default `medium`
|
|
329
334
|
*/
|
|
330
|
-
spacing:
|
|
335
|
+
set spacing(value: string);
|
|
336
|
+
get spacing(): string;
|
|
331
337
|
/**
|
|
332
338
|
* @optional
|
|
333
339
|
*
|
|
@@ -432,12 +438,12 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
|
|
|
432
438
|
private _noAutocomplete;
|
|
433
439
|
private _placeholder;
|
|
434
440
|
private _required?;
|
|
435
|
-
private _autoHeight;
|
|
436
|
-
private autoHeightInitialValue;
|
|
441
|
+
private readonly _autoHeight;
|
|
442
|
+
private readonly autoHeightInitialValue;
|
|
437
443
|
private onChangePropagate;
|
|
438
444
|
private validatorChange;
|
|
439
445
|
private control;
|
|
440
|
-
private injectOptions;
|
|
446
|
+
private readonly injectOptions;
|
|
441
447
|
/**
|
|
442
448
|
* Serviço responsável por buscar os dados da tabela na janela. Pode ser informado um serviço que implemente a interface
|
|
443
449
|
* `PoLookupFilter` ou uma URL.
|
|
@@ -450,14 +456,14 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
|
|
|
450
456
|
*
|
|
451
457
|
* Caso utilizar ordenação, a coluna ordenada será enviada através do parâmetro `order`, por exemplo:
|
|
452
458
|
* - Coluna decrescente:
|
|
453
|
-
*
|
|
454
|
-
*
|
|
455
|
-
*
|
|
459
|
+
* ```
|
|
460
|
+
* url + ?page=1&pageSize=20&filter=Peter&order=-name
|
|
461
|
+
* ```
|
|
456
462
|
*
|
|
457
463
|
* - Coluna ascendente:
|
|
458
|
-
*
|
|
459
|
-
*
|
|
460
|
-
*
|
|
464
|
+
* ```
|
|
465
|
+
* url + ?page=1&pageSize=20&filter=Peter&order=name
|
|
466
|
+
* ```
|
|
461
467
|
*
|
|
462
468
|
* Se for definido a propriedade `p-filter-params`, o mesmo também será concatenado. Por exemplo, para o
|
|
463
469
|
* parâmetro `{ age: 23 }` a URL ficaria:
|
|
@@ -565,6 +571,7 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
|
|
|
565
571
|
abstract openLookup(): void;
|
|
566
572
|
abstract setDisclaimers(a: any): any;
|
|
567
573
|
abstract updateVisibleItems(): any;
|
|
574
|
+
protected abstract getDefaultSpacing(): any;
|
|
568
575
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoLookupBaseComponent, never>;
|
|
569
576
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PoLookupBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "name": { "alias": "name"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "filterParams": { "alias": "p-filter-params"; "required": false; }; "fieldFormat": { "alias": "p-field-format"; "required": false; }; "columns": { "alias": "p-columns"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "advancedFilters": { "alias": "p-advanced-filters"; "required": false; }; "hideColumnsManager": { "alias": "p-hide-columns-manager"; "required": false; }; "infiniteScroll": { "alias": "p-infinite-scroll"; "required": false; }; "clean": { "alias": "p-clean"; "required": false; }; "multiple": { "alias": "p-multiple"; "required": false; }; "autoHeight": { "alias": "p-auto-height"; "required": false; }; "fieldErrorMessage": { "alias": "p-field-error-message"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "spacing": { "alias": "p-spacing"; "required": false; }; "textWrap": { "alias": "p-text-wrap"; "required": false; }; "virtualScroll": { "alias": "p-virtual-scroll"; "required": false; }; "filterService": { "alias": "p-filter-service"; "required": false; }; "noAutocomplete": { "alias": "p-no-autocomplete"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "onError": "p-error"; "keydown": "p-keydown"; "selected": "p-selected"; "change": "p-change"; "changeVisibleColumns": "p-change-visible-columns"; "columnRestoreManager": "p-restore-column-manager"; }, never, never, true, never>;
|
|
570
577
|
static ngAcceptInputType_appendBox: any;
|