@po-ui/ng-components 19.15.0 → 19.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/fesm2022/po-ui-ng-components-po-chart-modal-table.component-mSWyBcer.mjs +45 -0
  2. package/fesm2022/po-ui-ng-components-po-chart-modal-table.component-mSWyBcer.mjs.map +1 -0
  3. package/fesm2022/po-ui-ng-components.mjs +10154 -12666
  4. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  5. package/lib/components/components.module.d.ts +41 -42
  6. package/lib/components/index.d.ts +0 -1
  7. package/lib/components/po-chart/enums/po-chart-type.enum.d.ts +7 -1
  8. package/lib/components/po-chart/index.d.ts +6 -4
  9. package/lib/components/po-chart/interfaces/po-chart-axis-options.interface.d.ts +65 -3
  10. package/lib/components/po-chart/interfaces/po-chart-header-options.interface.d.ts +0 -2
  11. package/lib/components/po-chart/interfaces/po-chart-literals.interface.d.ts +32 -2
  12. package/lib/components/po-chart/interfaces/po-chart-options.interface.d.ts +175 -0
  13. package/lib/components/po-chart/interfaces/po-chart-serie.interface.d.ts +12 -0
  14. package/lib/components/po-chart/po-chart-base.component.d.ts +149 -89
  15. package/lib/components/po-chart/po-chart-gauge-utils.d.ts +22 -0
  16. package/lib/components/{po-chart-new → po-chart}/po-chart-grid-utils.d.ts +2 -2
  17. package/lib/components/po-chart/po-chart-modal-table/po-chart-modal-table.component.d.ts +11 -0
  18. package/lib/components/po-chart/po-chart.component.d.ts +95 -43
  19. package/lib/components/po-chart/po-chart.module.d.ts +6 -23
  20. package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +0 -2
  21. package/lib/components/po-gauge/index.d.ts +1 -0
  22. package/lib/components/po-gauge/interfaces/po-gauge-options.interface.d.ts +69 -0
  23. package/lib/components/po-gauge/po-gauge-base.component.d.ts +45 -10
  24. package/lib/components/po-gauge/po-gauge.component.d.ts +10 -17
  25. package/lib/components/po-gauge/po-gauge.module.d.ts +3 -9
  26. package/lib/services/po-theme/helpers/types/po-theme-dark-defaults-AA.constant.d.ts +101 -0
  27. package/lib/services/po-theme/helpers/types/po-theme-dark-defaults.constant.d.ts +0 -7
  28. package/lib/services/po-theme/helpers/types/po-theme-light-defaults-AA.constant.d.ts +28 -0
  29. package/lib/services/po-theme/helpers/types/po-theme-light-defaults.constant.d.ts +18 -1
  30. package/lib/services/po-theme/index.d.ts +2 -0
  31. package/package.json +4 -4
  32. package/po-ui-ng-components-19.16.0.tgz +0 -0
  33. package/schematics/ng-add/index.js +1 -1
  34. package/schematics/ng-update/v14/index.js +1 -1
  35. package/schematics/ng-update/v15/index.js +1 -1
  36. package/schematics/ng-update/v16/index.js +1 -1
  37. package/schematics/ng-update/v17/index.js +1 -1
  38. package/schematics/ng-update/v18/index.js +2 -2
  39. package/schematics/ng-update/v19/index.js +2 -2
  40. package/schematics/ng-update/v2/index.js +1 -1
  41. package/schematics/ng-update/v3/index.js +1 -1
  42. package/schematics/ng-update/v4/index.js +1 -1
  43. package/schematics/ng-update/v5/index.js +1 -1
  44. package/schematics/ng-update/v6/index.js +1 -1
  45. package/lib/components/po-chart/directives/po-resize-observer.directive.d.ts +0 -15
  46. package/lib/components/po-chart/helpers/po-chart-default-values.constant.d.ts +0 -8
  47. package/lib/components/po-chart/interfaces/po-chart-bar-coordinates.interface.d.ts +0 -23
  48. package/lib/components/po-chart/interfaces/po-chart-container-size.interface.d.ts +0 -23
  49. package/lib/components/po-chart/interfaces/po-chart-label-coordinates.interface.d.ts +0 -19
  50. package/lib/components/po-chart/interfaces/po-chart-min-max-values.interface.d.ts +0 -19
  51. package/lib/components/po-chart/interfaces/po-chart-path-coordinates.interface.d.ts +0 -27
  52. package/lib/components/po-chart/interfaces/po-chart-points-coordinates.interface.d.ts +0 -28
  53. package/lib/components/po-chart/po-chart-container/po-chart-axis/po-chart-axis-label/po-chart-axis-label.component.d.ts +0 -19
  54. package/lib/components/po-chart/po-chart-container/po-chart-axis/po-chart-axis-path/po-chart-axis-path.component.d.ts +0 -10
  55. package/lib/components/po-chart/po-chart-container/po-chart-axis/po-chart-axis.component.d.ts +0 -63
  56. package/lib/components/po-chart/po-chart-container/po-chart-bar/po-chart-bar-base.component.d.ts +0 -34
  57. package/lib/components/po-chart/po-chart-container/po-chart-bar/po-chart-bar-path/po-chart-bar-path.component.d.ts +0 -16
  58. package/lib/components/po-chart/po-chart-container/po-chart-bar/po-chart-bar.component.d.ts +0 -16
  59. package/lib/components/po-chart/po-chart-container/po-chart-bar/po-chart-column/po-chart-column.component.d.ts +0 -16
  60. package/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-label/po-chart-circular-label.component.d.ts +0 -14
  61. package/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-path/po-chart-circular-path.component.d.ts +0 -16
  62. package/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular-path/po-chart-tooltip.directive.d.ts +0 -23
  63. package/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-circular.component.d.ts +0 -45
  64. package/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-donut/po-chart-donut.component.d.ts +0 -19
  65. package/lib/components/po-chart/po-chart-container/po-chart-circular/po-chart-pie/po-chart-pie.component.d.ts +0 -11
  66. package/lib/components/po-chart/po-chart-container/po-chart-container.component.d.ts +0 -52
  67. package/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-area/po-chart-area.component.d.ts +0 -23
  68. package/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-line-base.component.d.ts +0 -52
  69. package/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-line.component.d.ts +0 -19
  70. package/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-path/po-chart-path.component.d.ts +0 -24
  71. package/lib/components/po-chart/po-chart-container/po-chart-line/po-chart-series-point/po-chart-series-point.component.d.ts +0 -40
  72. package/lib/components/po-chart/po-chart-legend/po-chart-legend.component.d.ts +0 -10
  73. package/lib/components/po-chart/po-chart-switch.component.d.ts +0 -22
  74. package/lib/components/po-chart/po-chart-types/po-chart-dynamic-type.component.d.ts +0 -37
  75. package/lib/components/po-chart/services/po-chart-maths.service.d.ts +0 -66
  76. package/lib/components/po-chart/services/po-chart-svg-container.service.d.ts +0 -24
  77. package/lib/components/po-chart-new/index.d.ts +0 -2
  78. package/lib/components/po-chart-new/po-chart-new-base.component.d.ts +0 -210
  79. package/lib/components/po-chart-new/po-chart-new.component.d.ts +0 -86
  80. package/lib/components/po-chart-new/po-chart-new.module.d.ts +0 -18
  81. package/lib/components/po-gauge/interfaces/po-gauge-coordinates.interface.d.ts +0 -19
  82. package/lib/components/po-gauge/interfaces/po-gauge-svg-container.interface.d.ts +0 -15
  83. package/lib/components/po-gauge/po-gauge-description/po-gauge-description.component.d.ts +0 -14
  84. package/lib/components/po-gauge/po-gauge-legend/po-gauge-legend.component.d.ts +0 -12
  85. package/lib/components/po-gauge/po-gauge-svg/po-gauge-path/po-gauge-path.component.d.ts +0 -10
  86. package/lib/components/po-gauge/po-gauge-svg/po-gauge-pointer/po-gauge-pointer.component.d.ts +0 -18
  87. package/lib/components/po-gauge/po-gauge-svg/po-gauge-svg.component.d.ts +0 -35
  88. package/lib/components/po-gauge/po-gauge-title/po-gauge-title.component.d.ts +0 -6
  89. package/po-ui-ng-components-19.15.0.tgz +0 -0
@@ -1,37 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import { Subject } from 'rxjs';
3
- import { PoChartType } from '../enums/po-chart-type.enum';
4
- import * as i0 from "@angular/core";
5
- export declare abstract class PoChartDynamicTypeComponent {
6
- chartBody: ElementRef;
7
- svgContainer: ElementRef;
8
- centerX: number;
9
- chartElementCategory: any;
10
- chartElementDescription: any;
11
- chartElementValue: any;
12
- chartHeader: number;
13
- chartLegend: number;
14
- chartWrapper: number;
15
- colors: Array<string>;
16
- height: number;
17
- innerRadius: number;
18
- onSerieClick: Subject<any>;
19
- onSerieHover: Subject<any>;
20
- svgElement: HTMLObjectElement;
21
- svgHeight: number;
22
- target: HTMLInputElement & EventTarget;
23
- tooltipElement: HTMLObjectElement;
24
- tooltipText: string;
25
- totalValue: number;
26
- type: PoChartType;
27
- protected windowResizeListener: () => void;
28
- protected windowScrollListener: () => void;
29
- protected _series: Array<any>;
30
- calculateSVGContainerDimensions(chartWrapperElement: number, chartHeaderElement: number, chartLegendElement: number): void;
31
- calculateTotalValue(): void;
32
- set series(value: Array<any>);
33
- get series(): Array<any>;
34
- protected getSeriesWithValue(value: any): any;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<PoChartDynamicTypeComponent, never>;
36
- static ɵdir: i0.ɵɵDirectiveDeclaration<PoChartDynamicTypeComponent, never, never, {}, {}, never, never, true, never>;
37
- }
@@ -1,66 +0,0 @@
1
- import { PoChartType } from '../enums/po-chart-type.enum';
2
- import { PoChartMinMaxValues } from '../interfaces/po-chart-min-max-values.interface';
3
- import { PoChartOptions } from '../interfaces/po-chart-options.interface';
4
- import { PoChartSerie } from '../interfaces/po-chart-serie.interface';
5
- import * as i0 from "@angular/core";
6
- export declare class PoChartMathsService {
7
- /**
8
- * Calcula e retorna os válores mínimo e máximo das séries.
9
- *
10
- * @param series Lista de séries.
11
- * @param acceptNegativeValues boolean.
12
- */
13
- calculateMinAndMaxValues(series: Array<any>, acceptNegativeValues?: boolean): PoChartMinMaxValues;
14
- /**
15
- * Retorna o valor com maior quantidade de dígitos entre todas as séries.
16
- * Pode receber uma lista de categorias para o caso de gráfico de barra, ou então a lista de séries se o tipo de gráfico for linha ou coluna.
17
- *
18
- * @param data Lista de séries.
19
- * @param type O tipo do gráfico'.
20
- * @param options As opções para validação de número de linhas do eixo X'.
21
- */
22
- getLongestDataValue(data: Array<PoChartSerie | string>, type: PoChartType, options: PoChartOptions): number | string;
23
- /**
24
- * Retorna o tamanho da série que tiver mais itens.
25
- *
26
- * @param series Lista de séries.
27
- */
28
- seriesGreaterLength(series: Array<PoChartSerie>): number;
29
- /**
30
- * Retorna o percentual em decimal da série passada pela distância entre os valores mínimos e máximos da série.
31
- *
32
- * Se o valor mínimo for negativo o alcance partirá dele como sendo zero %.
33
- *
34
- * Por exemplo:
35
- * minValue = -10;
36
- * maxValue = 0;
37
- * serieValue = -8
38
- * O resultado será de 0.20;
39
- *
40
- * @param minMaxValues Objeto contendo os valores mínimo e máximo de todas as séries.
41
- * @param serieValue O valor da série.
42
- */
43
- getSeriePercentage(minMaxValues: any, serieValue: number): number;
44
- /**
45
- * Calcula e retorna uma lista de valores referentes aos textos dos eixos X em relação à quantidade de linhas horizontais.
46
- *
47
- * @param minMaxValues Objeto contendo os valores mínimo e máximo de todas as séries.
48
- * @param gridLines Quantidade de linhas horizontais. Valor default é 5.
49
- */
50
- range(minMaxValues: PoChartMinMaxValues, gridLines?: number): any[];
51
- /**
52
- *
53
- * Verifica se o valor passado é um Integer ou Float.
54
- *
55
- * @param number O valor a ser validado
56
- */
57
- verifyIfFloatOrInteger(number: number): boolean;
58
- private amountOfGridLines;
59
- private getAxisXLabelLongestValue;
60
- private getGridLineArea;
61
- private getDomain;
62
- private getFractionFromInt;
63
- private getLongestData;
64
- static ɵfac: i0.ɵɵFactoryDeclaration<PoChartMathsService, never>;
65
- static ɵprov: i0.ɵɵInjectableDeclaration<PoChartMathsService>;
66
- }
@@ -1,24 +0,0 @@
1
- import { PoChartContainerSize } from '../interfaces/po-chart-container-size.interface';
2
- import * as i0 from "@angular/core";
3
- export declare class PoChartSvgContainerService {
4
- constructor();
5
- /**
6
- * Retorna um objeto do tipo PoChartContainerSize contendo as dimensões necessárias para plotagem do SVG.
7
- *
8
- * @param chartHeight
9
- * @param chartWrapperWidth
10
- * @param chartHeaderHeight
11
- * @param chartLegendHeight
12
- */
13
- calculateSVGContainerMeasurements(chartHeight?: number, chartWrapperWidth?: number, chartHeaderHeight?: number, chartLegendHeight?: number): PoChartContainerSize;
14
- private svgWidth;
15
- private center;
16
- private svgHeight;
17
- /**
18
- * Altura da área de plotagem.
19
- * Subtrai a altura do container SVG pelo padding superior + área para overflow de labels do eixo X.
20
- */
21
- private svgPlottingAreaHeight;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<PoChartSvgContainerService, never>;
23
- static ɵprov: i0.ɵɵInjectableDeclaration<PoChartSvgContainerService>;
24
- }
@@ -1,2 +0,0 @@
1
- export * from './po-chart-new.component';
2
- export * from './po-chart-new.module';
@@ -1,210 +0,0 @@
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
- }
@@ -1,86 +0,0 @@
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
- }
@@ -1,18 +0,0 @@
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
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * @docsPrivate
3
- *
4
- * @usedBy PoGaugeComponent
5
- *
6
- * @description
7
- *
8
- * Interface que define o objeto com as coordenadas do gauge.
9
- */
10
- export interface PoGaugeCoordinates {
11
- /** A cor do alcance. Aceita hexadecimais, string com nome da cor, RGB ou então uma das classes de cor do PO. */
12
- color?: string;
13
- /** Definição de coordenadas. */
14
- coordinates: string;
15
- /** O raio do circulo. Utilizado para posicionar o ponteiro no centro do gauge. */
16
- radius?: number;
17
- /** O grau de angulação do ponteiro. */
18
- pointerDegrees?: number;
19
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * @docsPrivate
3
- *
4
- * @usedBy PoGaugeComponent
5
- *
6
- * @description
7
- *
8
- * Interface que implementa as dimensões do container do SVG.
9
- */
10
- export interface PoGaugeSvgContainer {
11
- /** Altura do container. */
12
- height?: number;
13
- /** Largura do container. */
14
- width: number;
15
- }
@@ -1,14 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class PoGaugeDescriptionComponent {
4
- description: string;
5
- hasRanges: boolean;
6
- descriptionWidth: number;
7
- value: number;
8
- descriptionText: ElementRef;
9
- tooltip: string;
10
- get isValidValue(): number | boolean;
11
- verifyIfHasEllipsis(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<PoGaugeDescriptionComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<PoGaugeDescriptionComponent, "po-gauge-description", never, { "description": { "alias": "p-description"; "required": false; }; "hasRanges": { "alias": "p-has-ranges"; "required": false; }; "descriptionWidth": { "alias": "p-description-width"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; }, {}, never, never, false, never>;
14
- }
@@ -1,12 +0,0 @@
1
- import { PoGaugeRanges } from '../interfaces/po-gauge-ranges.interface';
2
- import * as i0 from "@angular/core";
3
- export declare class PoGaugeLegendComponent {
4
- private _ranges;
5
- set ranges(value: Array<PoGaugeRanges>);
6
- get ranges(): Array<PoGaugeRanges>;
7
- constructor();
8
- trackBy(index: any): any;
9
- private filterLabel;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<PoGaugeLegendComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<PoGaugeLegendComponent, "po-gauge-legend", never, { "ranges": { "alias": "p-ranges"; "required": false; }; }, {}, never, never, false, never>;
12
- }
@@ -1,10 +0,0 @@
1
- import { PoGaugeCoordinates } from '../../interfaces/po-gauge-coordinates.interface';
2
- import * as i0 from "@angular/core";
3
- export declare class PoGaugePathComponent {
4
- baseCoordinates: PoGaugeCoordinates;
5
- rangesCoordinates: Array<PoGaugeCoordinates>;
6
- constructor();
7
- trackBy(index: any): any;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<PoGaugePathComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<PoGaugePathComponent, "[po-gauge-path]", never, { "baseCoordinates": { "alias": "p-base-coordinates"; "required": false; }; "rangesCoordinates": { "alias": "p-ranges-coordinates"; "required": false; }; }, {}, never, never, false, never>;
10
- }
@@ -1,18 +0,0 @@
1
- import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
2
- import { PoGaugeCoordinates } from '../../interfaces/po-gauge-coordinates.interface';
3
- import * as i0 from "@angular/core";
4
- export declare class PoGaugePointerComponent implements AfterViewInit {
5
- private renderer;
6
- pointer: ElementRef;
7
- radiusScale: number;
8
- private _coordinates;
9
- private afterViewInit;
10
- set coordinates(value: PoGaugeCoordinates);
11
- get coordinates(): PoGaugeCoordinates;
12
- constructor(renderer: Renderer2);
13
- ngAfterViewInit(): void;
14
- private calculateRadiusScale;
15
- private applyPointerRotation;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<PoGaugePointerComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<PoGaugePointerComponent, "[po-gauge-pointer]", never, { "coordinates": { "alias": "p-coordinates"; "required": false; }; }, {}, never, never, false, never>;
18
- }
@@ -1,35 +0,0 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import { PoGaugeCoordinates } from '../interfaces/po-gauge-coordinates.interface';
3
- import { PoGaugeRanges } from '../interfaces/po-gauge-ranges.interface';
4
- import { PoGaugeSvgContainer } from '../interfaces/po-gauge-svg-container.interface';
5
- import * as i0 from "@angular/core";
6
- export declare const poGaugeStartAngle: number;
7
- export declare class PoGaugeSvgComponent implements OnChanges {
8
- container: PoGaugeSvgContainer;
9
- ranges: Array<PoGaugeRanges>;
10
- value: number;
11
- addSvgElement: boolean;
12
- baseCoordinates: PoGaugeCoordinates;
13
- coordinates: Array<PoGaugeCoordinates>;
14
- pointerCoordinates: PoGaugeCoordinates;
15
- viewBox: string;
16
- get hasRanges(): boolean;
17
- ngOnChanges(changes: SimpleChanges): void;
18
- private setCoordinates;
19
- private setBaseCoordinates;
20
- private setRangesCoordinates;
21
- private setSingleRangeCoordinates;
22
- private setPointerCoordinates;
23
- private pointerRotation;
24
- private calculatePointerInitialCoordinates;
25
- private calculateCoordinates;
26
- private calculateAngleRadius;
27
- private convertValueToPercentage;
28
- private setViewBox;
29
- private calculateDiameter;
30
- private calculateMinAndMaxValues;
31
- private verifyIfFloatOrInteger;
32
- private getDomain;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<PoGaugeSvgComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<PoGaugeSvgComponent, "po-gauge-svg", never, { "container": { "alias": "p-container"; "required": false; }; "ranges": { "alias": "p-ranges"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; }, {}, never, never, false, never>;
35
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class PoGaugeTitleComponent {
3
- title?: string;
4
- static ɵfac: i0.ɵɵFactoryDeclaration<PoGaugeTitleComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<PoGaugeTitleComponent, "po-gauge-title", never, { "title": { "alias": "p-title"; "required": false; }; }, {}, never, never, false, never>;
6
- }
Binary file