@po-ui/ng-components 20.7.0 → 20.9.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 +194 -59
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/index.d.ts +200 -128
- package/lib/components/po-dropdown/po-dropdown-action.interface.d.ts +10 -0
- package/lib/components/po-dropdown/po-dropdown.component.d.ts +5 -0
- package/lib/components/po-listbox/interfaces/po-listbox-literals.interface.d.ts +2 -0
- package/lib/components/po-listbox/po-item-list/po-item-list-base.component.d.ts +1 -0
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +8 -7
- package/lib/components/po-listbox/po-listbox.component.d.ts +14 -3
- package/lib/components/po-page/interfaces/po-page-action.interface.d.ts +6 -5
- package/lib/components/po-popup/po-popup-action.interface.d.ts +36 -4
- package/lib/components/po-popup/po-popup-base.component.d.ts +1 -0
- package/lib/services/po-theme/helpers/types/po-theme-dark-defaults-AA.constant.d.ts +4 -0
- package/lib/services/po-theme/helpers/types/po-theme-dark-defaults.constant.d.ts +5 -0
- package/package.json +4 -4
- package/po-ui-ng-components-20.9.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/v20/index.js +2 -2
- 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-20.7.0.tgz +0 -0
|
@@ -7,11 +7,21 @@ import { TemplateRef } from '@angular/core';
|
|
|
7
7
|
* Interface para lista de ações do componente.
|
|
8
8
|
*/
|
|
9
9
|
export interface PoPopupAction {
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* @description
|
|
12
|
+
*
|
|
13
|
+
* Rótulo da ação.
|
|
14
|
+
*
|
|
15
|
+
* No componente `po-dropdown`, a label também pode representar o agrupador de subitens.
|
|
16
|
+
*/
|
|
11
17
|
label: string;
|
|
12
18
|
/**
|
|
19
|
+
* @description
|
|
20
|
+
*
|
|
13
21
|
* Ação que será executada, sendo possível passar o nome ou a referência da função.
|
|
14
22
|
*
|
|
23
|
+
* No componente `po-dropdown`, a action também pode ser executada para o agrupador de subitens.
|
|
24
|
+
*
|
|
15
25
|
* > Para que a função seja executada no contexto do elemento filho o mesmo deve ser passado utilizando *bind*.
|
|
16
26
|
*
|
|
17
27
|
* Exemplo: `action: this.myFunction.bind(this)`
|
|
@@ -58,12 +68,20 @@ export interface PoPopupAction {
|
|
|
58
68
|
* ```
|
|
59
69
|
*/
|
|
60
70
|
icon?: string | TemplateRef<void>;
|
|
61
|
-
/**
|
|
71
|
+
/**
|
|
72
|
+
* @description
|
|
73
|
+
*
|
|
74
|
+
* Atribui uma linha separadora acima do item.
|
|
75
|
+
*
|
|
76
|
+
* */
|
|
62
77
|
separator?: boolean;
|
|
63
78
|
/**
|
|
79
|
+
* @description
|
|
80
|
+
*
|
|
64
81
|
* Função que deve retornar um booleano para habilitar ou desabilitar a ação para o registro selecionado.
|
|
65
82
|
*
|
|
66
83
|
* Também é possível informar diretamente um valor booleano que vai habilitar ou desabilitar a ação para todos os registros.
|
|
84
|
+
*
|
|
67
85
|
*/
|
|
68
86
|
disabled?: boolean | Function;
|
|
69
87
|
/**
|
|
@@ -76,9 +94,23 @@ export interface PoPopupAction {
|
|
|
76
94
|
* - `danger` - indicado para ações exclusivas (excluir, sair).
|
|
77
95
|
*/
|
|
78
96
|
type?: string;
|
|
79
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* @description
|
|
99
|
+
*
|
|
100
|
+
* URL utilizada para redirecionamento das páginas.
|
|
101
|
+
*
|
|
102
|
+
* No componente `po-dropdown`, a url também pode ser configurada para o agrupador de subitens.
|
|
103
|
+
* Entretanto, quando a `url` é informada em um agrupador, o clique **não abrirá os subitens**, pois o item será
|
|
104
|
+
* tratado como um link e o redirecionamento terá prioridade sobre a exibição da lista.
|
|
105
|
+
*
|
|
106
|
+
*/
|
|
80
107
|
url?: string;
|
|
81
|
-
/**
|
|
108
|
+
/**
|
|
109
|
+
* @description
|
|
110
|
+
*
|
|
111
|
+
* Define se a ação está selecionada.
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
82
114
|
selected?: boolean;
|
|
83
115
|
/**
|
|
84
116
|
* @description
|
|
@@ -75,6 +75,7 @@ export declare class PoPopupBaseComponent {
|
|
|
75
75
|
private _position?;
|
|
76
76
|
private _size?;
|
|
77
77
|
private _target;
|
|
78
|
+
listboxSubitems: boolean;
|
|
78
79
|
/** Lista de ações que serão exibidas no componente. */
|
|
79
80
|
set actions(value: Array<PoPopupAction>);
|
|
80
81
|
get actions(): Array<PoPopupAction>;
|
|
@@ -53,6 +53,10 @@ declare const poThemeDefaultDarkValuesAA: {
|
|
|
53
53
|
'po-select': {
|
|
54
54
|
'--color-hover': string;
|
|
55
55
|
};
|
|
56
|
+
'.po-listbox-group-header .po-tag': {
|
|
57
|
+
color: string;
|
|
58
|
+
'background-color': string;
|
|
59
|
+
};
|
|
56
60
|
};
|
|
57
61
|
onRoot: {
|
|
58
62
|
'--color-caption-categorical-01': string;
|
|
@@ -72,6 +72,11 @@ declare const poThemeDefaultDarkValues: {
|
|
|
72
72
|
'po-select': {
|
|
73
73
|
'--color-hover': string;
|
|
74
74
|
};
|
|
75
|
+
/** DROPDOWN */
|
|
76
|
+
'.po-listbox-group-header .po-tag': {
|
|
77
|
+
color: string;
|
|
78
|
+
'background-color': string;
|
|
79
|
+
};
|
|
75
80
|
};
|
|
76
81
|
onRoot: {
|
|
77
82
|
'--color-neutral': string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.9.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": "~20.0.3",
|
|
25
|
-
"@po-ui/style": "20.
|
|
26
|
-
"@po-ui/ng-schematics": "20.
|
|
25
|
+
"@po-ui/style": "20.9.0",
|
|
26
|
+
"@po-ui/ng-schematics": "20.9.0",
|
|
27
27
|
"echarts": "^5.6.0",
|
|
28
28
|
"tslib": "^2.3.0"
|
|
29
29
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@angular/platform-browser-dynamic": "^20",
|
|
39
39
|
"@angular/router": "^20",
|
|
40
40
|
"@angular-devkit/schematics": "^20",
|
|
41
|
-
"@po-ui/style": "20.
|
|
41
|
+
"@po-ui/style": "20.9.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', '20.
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '20.9.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)('20.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.9.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)('20.
|
|
14
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.9.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)('20.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.9.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)('20.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.9.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)('20.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.9.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('20.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('20.9.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)('20.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.9.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('20.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('20.9.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('20.
|
|
13
|
+
updatePackageJson('20.9.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(),
|
|
@@ -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)('20.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.9.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('20.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('20.9.0', changes_1.updateDepedenciesVersion),
|
|
48
48
|
addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
|
|
49
49
|
addProviderToAppModule(options, newProviderDictionary),
|
|
50
50
|
updateAppConfigFileRule(),
|
|
@@ -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)('20.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.9.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)('20.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.9.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)('20.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.9.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)('20.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.9.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
Binary file
|