@po-ui/ng-components 19.18.0 → 19.19.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 +54 -17
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-chart/interfaces/po-chart-options.interface.d.ts +14 -0
- package/lib/components/po-chart/interfaces/po-chart-serie-data-label.interface.d.ts +1 -1
- package/lib/components/po-chart/interfaces/po-chart-serie.interface.d.ts +18 -0
- package/lib/components/po-chart/po-chart-grid-utils.d.ts +3 -1
- package/lib/components/po-chart/po-chart.component.d.ts +5 -0
- package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts +1 -0
- package/lib/interceptors/po-http-interceptor/po-http-interceptor-base.service.d.ts +7 -2
- package/package.json +4 -4
- package/po-ui-ng-components-19.19.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.18.0.tgz +0 -0
|
@@ -196,6 +196,20 @@ export interface PoChartOptions {
|
|
|
196
196
|
*
|
|
197
197
|
*/
|
|
198
198
|
descriptionChart?: string;
|
|
199
|
+
/**
|
|
200
|
+
* @optional
|
|
201
|
+
*
|
|
202
|
+
* @description
|
|
203
|
+
*
|
|
204
|
+
* Agrupa todas as séries numa única coluna ou barra por categoria. Essa propriedade sobrescreve a propriedade `stackGroupName` da interface `PoChartSerie`
|
|
205
|
+
*
|
|
206
|
+
* > Válido para gráfico do tipo `Column` e `Bar`.
|
|
207
|
+
*
|
|
208
|
+
* > Essa propriedade habilita a propriedade `p-data-label` por padrão, podendo ser desabilitada passando `[p-data-label]={ fixed: false }`.
|
|
209
|
+
*
|
|
210
|
+
* @default `false`
|
|
211
|
+
*/
|
|
212
|
+
stacked?: boolean;
|
|
199
213
|
/**
|
|
200
214
|
* @optional
|
|
201
215
|
*
|
|
@@ -19,7 +19,7 @@ export interface PoChartDataLabel {
|
|
|
19
19
|
* - O *tooltip* não será exibido.
|
|
20
20
|
* - As outras séries ficarão com opacidade reduzida ao passar o mouse sobre a série ativa.
|
|
21
21
|
*
|
|
22
|
-
* > Disponível
|
|
22
|
+
* > Disponível para os tipo de gráfico `PoChartType.Line`, `PoChartType.Area`, `PoChartType.Column` e `PoChartType.Bar`.
|
|
23
23
|
*/
|
|
24
24
|
fixed?: boolean;
|
|
25
25
|
}
|
|
@@ -87,4 +87,22 @@ export interface PoChartSerie {
|
|
|
87
87
|
* > Propriedade válida para gráfico do tipo `Gauge`.
|
|
88
88
|
*/
|
|
89
89
|
to?: number;
|
|
90
|
+
/**
|
|
91
|
+
* @optional
|
|
92
|
+
*
|
|
93
|
+
* @description
|
|
94
|
+
*
|
|
95
|
+
* Agrupa as séries em barras ou colunas que receberem o mesmo `stackGroupName`. Exemplo:
|
|
96
|
+
* - Serie A: `{ data: 500, stackGroupName: 'group1' ... }`;
|
|
97
|
+
* - Série B: `{ data: 200, stackGroupName: 'group1' ... }`.
|
|
98
|
+
* - Série C: `{ data: 100, stackGroupName: 'group2' ... }`.
|
|
99
|
+
* - Série D: `{ data: 400, stackGroupName: 'group2' ... }`.
|
|
100
|
+
*
|
|
101
|
+
* Nesse caso será criado duas barras ou colunas com duas series agrupadas em cada uma por categoria.
|
|
102
|
+
* > Válido para gráfico do tipo `Column` e `Bar`. Essa propriedade é ignorada caso a propriedade `stacked` da interface `PoChartOptions` esteja como `true`.
|
|
103
|
+
*
|
|
104
|
+
* > Essa propriedade habilita a propriedade `p-data-label` por padrão, podendo ser desabilitada passando `[p-data-label]={ fixed: false }`.
|
|
105
|
+
*
|
|
106
|
+
*/
|
|
107
|
+
stackGroupName?: string;
|
|
90
108
|
}
|
|
@@ -2,7 +2,8 @@ import { PoChartComponent } from './po-chart.component';
|
|
|
2
2
|
import { PoChartType } from '../po-chart/enums/po-chart-type.enum';
|
|
3
3
|
export declare class PoChartGridUtils {
|
|
4
4
|
private readonly component;
|
|
5
|
-
|
|
5
|
+
isTypeDonut: boolean;
|
|
6
|
+
textCenterDonut: {};
|
|
6
7
|
constructor(component: PoChartComponent);
|
|
7
8
|
setGridOption(options: any): void;
|
|
8
9
|
setOptionsAxis(options: any): void;
|
|
@@ -13,6 +14,7 @@ export declare class PoChartGridUtils {
|
|
|
13
14
|
setSerieTypeBarColumn(serie: any, color: string): void;
|
|
14
15
|
setSerieTypeDonutPie(serie: any, color: string): void;
|
|
15
16
|
setListTypeDonutPie(type: PoChartType): void;
|
|
17
|
+
private setTextCenterDonut;
|
|
16
18
|
private getAdjustedRadius;
|
|
17
19
|
private normalizeToPercentage;
|
|
18
20
|
resolvePx(size: string, selector?: string): number;
|
|
@@ -30,6 +30,11 @@ import * as i0 from "@angular/core";
|
|
|
30
30
|
* <file name="sample-po-chart-coffee-ranking/sample-po-chart-coffee-ranking.component.ts"> </file>
|
|
31
31
|
* </example>
|
|
32
32
|
*
|
|
33
|
+
* <example name="po-chart-stacked" title="PO Chart - Stacked">
|
|
34
|
+
* <file name="sample-po-chart-stacked/sample-po-chart-stacked.component.html"> </file>
|
|
35
|
+
* <file name="sample-po-chart-stacked/sample-po-chart-stacked.component.ts"> </file>
|
|
36
|
+
* </example>
|
|
37
|
+
*
|
|
33
38
|
* <example name="po-chart-summary" title="PO Chart - Summary">
|
|
34
39
|
* <file name="sample-po-chart-summary/sample-po-chart-summary.component.html"> </file>
|
|
35
40
|
* <file name="sample-po-chart-summary/sample-po-chart-summary.component.ts"> </file>
|
package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts
CHANGED
|
@@ -124,6 +124,7 @@ export declare abstract class PoLookupModalBaseComponent implements OnDestroy, O
|
|
|
124
124
|
page: number;
|
|
125
125
|
pageSize: number;
|
|
126
126
|
searchValue: string;
|
|
127
|
+
appliedSearchValue: string;
|
|
127
128
|
tableLiterals: any;
|
|
128
129
|
advancedFilterModalTitle: string;
|
|
129
130
|
dynamicFormValue: {};
|
|
@@ -13,11 +13,13 @@ import { PoLanguageService } from '../../services/po-language/po-language.servic
|
|
|
13
13
|
* ## Configuração
|
|
14
14
|
*
|
|
15
15
|
* Para o correto funcionamento do interceptor `po-http-interceptor`, deve ser importado o `BrowserAnimationsModule` no
|
|
16
|
-
* módulo principal da sua aplicação.
|
|
16
|
+
* módulo principal da sua aplicação. Além disso, é necessário configurar o `HttpClient` para utilizar os interceptors
|
|
17
|
+
* registrados no Dependency Injection (DI) por meio da função `provideHttpClient(withInterceptorsFromDi())`.
|
|
17
18
|
*
|
|
18
19
|
* Módulo da aplicação:
|
|
19
20
|
* ```
|
|
20
21
|
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
22
|
+
* import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
21
23
|
* import { PoModule } from '@po-ui/ng-components';
|
|
22
24
|
* ...
|
|
23
25
|
*
|
|
@@ -32,7 +34,10 @@ import { PoLanguageService } from '../../services/po-language/po-language.servic
|
|
|
32
34
|
* AppComponent,
|
|
33
35
|
* ...
|
|
34
36
|
* ],
|
|
35
|
-
* providers: [
|
|
37
|
+
* providers: [
|
|
38
|
+
* provideHttpClient(withInterceptorsFromDi()),
|
|
39
|
+
* ...
|
|
40
|
+
* ],
|
|
36
41
|
* bootstrap: [AppComponent]
|
|
37
42
|
* })
|
|
38
43
|
* export class AppModule { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.19.0",
|
|
4
4
|
"description": "PO UI - Components",
|
|
5
5
|
"author": "PO UI",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@angular/cdk": "~19.0.3",
|
|
25
|
-
"@po-ui/style": "19.
|
|
26
|
-
"@po-ui/ng-schematics": "19.
|
|
25
|
+
"@po-ui/style": "19.19.0",
|
|
26
|
+
"@po-ui/ng-schematics": "19.19.0",
|
|
27
27
|
"echarts": "^5.6.0",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@angular/platform-browser-dynamic": "^19",
|
|
39
39
|
"@angular/router": "^19",
|
|
40
40
|
"@angular-devkit/schematics": "^19",
|
|
41
|
-
"@po-ui/style": "19.
|
|
41
|
+
"@po-ui/style": "19.19.0",
|
|
42
42
|
"rxjs": "~7.8.1",
|
|
43
43
|
"zone.js": "~0.15.0"
|
|
44
44
|
},
|
|
Binary file
|
|
@@ -18,7 +18,7 @@ function default_1(options) {
|
|
|
18
18
|
}
|
|
19
19
|
function addPoPackageAndInstall() {
|
|
20
20
|
return (tree, context) => {
|
|
21
|
-
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '19.
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '19.19.0');
|
|
22
22
|
// install packages
|
|
23
23
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
24
24
|
};
|
|
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.19.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
@@ -11,7 +11,7 @@ const changes_1 = require("./changes");
|
|
|
11
11
|
const httpClientModuleName = 'HttpClientModule';
|
|
12
12
|
const httpClientModuleSourcePath = '@angular/common/http';
|
|
13
13
|
function default_1() {
|
|
14
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.
|
|
14
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.19.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
15
15
|
}
|
|
16
16
|
function postUpdate() {
|
|
17
17
|
return (_, context) => {
|
|
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.19.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.19.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
@@ -40,11 +40,11 @@ function main(options) {
|
|
|
40
40
|
configureNewIcon.toLowerCase() === 'y' ||
|
|
41
41
|
configureNewIcon.toLowerCase() === 'sim' ||
|
|
42
42
|
configureNewIcon.toLowerCase() === '') {
|
|
43
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.19.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('19.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('19.19.0', changes_1.updateDepedenciesVersion),
|
|
48
48
|
addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
|
|
49
49
|
addProviderToAppModule(options, newProviderDictionary),
|
|
50
50
|
updateAppConfigFileRule(),
|
|
@@ -40,11 +40,11 @@ function main(options) {
|
|
|
40
40
|
configureNewIcon.toLowerCase() === 'y' ||
|
|
41
41
|
configureNewIcon.toLowerCase() === 'sim' ||
|
|
42
42
|
configureNewIcon.toLowerCase() === '') {
|
|
43
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.19.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('19.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('19.19.0', changes_1.updateDepedenciesVersion),
|
|
48
48
|
addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
|
|
49
49
|
addProviderToAppModule(options, newProviderDictionary),
|
|
50
50
|
updateAppConfigFileRule(),
|
|
@@ -10,7 +10,7 @@ const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
|
10
10
|
const changes_1 = require("./changes");
|
|
11
11
|
function updateToV2() {
|
|
12
12
|
return (0, schematics_1.chain)([
|
|
13
|
-
updatePackageJson('19.
|
|
13
|
+
updatePackageJson('19.19.0', changes_1.dependeciesChanges),
|
|
14
14
|
(0, replace_1.replaceInFile)('tslint.json', changes_1.tsLintReplaces),
|
|
15
15
|
(0, replace_1.replaceInFile)('angular.json', changes_1.angularJsonReplaces),
|
|
16
16
|
createUpgradeRule(),
|
|
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
7
7
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
8
8
|
const changes_1 = require("./changes");
|
|
9
9
|
function updateToV3() {
|
|
10
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.19.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
11
11
|
}
|
|
12
12
|
function postUpdate() {
|
|
13
13
|
return (_, context) => {
|
|
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
7
7
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
8
8
|
const changes_1 = require("./changes");
|
|
9
9
|
function default_1() {
|
|
10
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.19.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
11
11
|
}
|
|
12
12
|
function postUpdate() {
|
|
13
13
|
return (_, context) => {
|
|
@@ -7,7 +7,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
7
7
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
8
8
|
const changes_1 = require("./changes");
|
|
9
9
|
function default_1() {
|
|
10
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.19.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
11
11
|
}
|
|
12
12
|
function postUpdate() {
|
|
13
13
|
return (_, context) => {
|
|
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('19.19.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
Binary file
|