@po-ui/ng-components 18.1.0 → 18.2.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/esm2022/lib/components/po-field/po-select/po-select.component.mjs +30 -2
- package/fesm2022/po-ui-ng-components.mjs +29 -1
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-field/po-select/po-select.component.d.ts +28 -0
- package/package.json +4 -4
- package/po-ui-ng-components-18.2.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/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-18.1.0.tgz +0 -0
|
@@ -45,6 +45,34 @@ import * as i0 from "@angular/core";
|
|
|
45
45
|
* veja mais em **[p-combo-option-template](/documentation/po-combo-option-template)**.
|
|
46
46
|
*
|
|
47
47
|
* > Obs: o template **[p-select-option-template](/documentation/po-select-option-template)** será depreciado na versão 14.x.x.
|
|
48
|
+
*
|
|
49
|
+
* #### Tokens customizáveis
|
|
50
|
+
*
|
|
51
|
+
* É possível alterar o estilo do componente usando os seguintes tokens (CSS):
|
|
52
|
+
*
|
|
53
|
+
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
54
|
+
*
|
|
55
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
56
|
+
* |----------------------------------------|-------------------------------------------------------|-------------------------------------------------|
|
|
57
|
+
* | **Default Values** | | |
|
|
58
|
+
* | `--font-family` | Família tipográfica usada | `var(--font-family-theme)` |
|
|
59
|
+
* | `--font-size` | Tamanho da fonte | `var(--font-size-default)` |
|
|
60
|
+
* | `--text-color-empty` | Cor do placeholder | `var(--color-neutral-light-30)` |
|
|
61
|
+
* | `--color` | Cor da borda | `var(--color-neutral-dark-70)` |
|
|
62
|
+
* | `--background` | Cor de background | `var(--color-neutral-light-05)` |
|
|
63
|
+
* | `--text-color` | Cor do texto | `var(--color-neutral-dark-90)` |
|
|
64
|
+
* | `--padding-horizontal` | Preenchimento horizontal | `0.5em` |
|
|
65
|
+
* | `--padding-vertical` | Preenchimento vertical | `0.7em` |
|
|
66
|
+
* | **Hover** | | |
|
|
67
|
+
* | `--color-hover` | Cor principal no estado hover | `var(--color-brand-01-dark)` |
|
|
68
|
+
* | `--background-hover` | Cor de background no estado hover | `var(--color-brand-01-lighter)` |
|
|
69
|
+
* | **Focused** | | |
|
|
70
|
+
* | `--outline-color-focused` | Cor do outline do estado de focus | `var(--color-action-focus)` |
|
|
71
|
+
* | `--color-focused` | Cor da borda no estado de focus | `var(--color-action-default)` |
|
|
72
|
+
* | **Disabled** | | |
|
|
73
|
+
* | `--color-disabled` | Cor principal no estado disabled | `var(--color-neutral-light-30)` |
|
|
74
|
+
* | `--background-color-disabled` | Cor de background no estado disabled | `var(--color-neutral-light-20)` |
|
|
75
|
+
*
|
|
48
76
|
*/
|
|
49
77
|
export declare class PoSelectComponent extends PoFieldValidateModel<any> implements OnChanges {
|
|
50
78
|
private changeDetector;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.2.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": "~18.0.1",
|
|
25
|
-
"@po-ui/style": "18.
|
|
26
|
-
"@po-ui/ng-schematics": "18.
|
|
25
|
+
"@po-ui/style": "18.2.0",
|
|
26
|
+
"@po-ui/ng-schematics": "18.2.0",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@angular/platform-browser-dynamic": "^18",
|
|
38
38
|
"@angular/router": "^18",
|
|
39
39
|
"@angular-devkit/schematics": "^18",
|
|
40
|
-
"@po-ui/style": "18.
|
|
40
|
+
"@po-ui/style": "18.2.0",
|
|
41
41
|
"rxjs": "~7.8.1",
|
|
42
42
|
"zone.js": "~0.14.4"
|
|
43
43
|
},
|
|
Binary file
|
|
@@ -18,7 +18,7 @@ function default_1(options) {
|
|
|
18
18
|
exports.default = default_1;
|
|
19
19
|
function addPoPackageAndInstall() {
|
|
20
20
|
return (tree, context) => {
|
|
21
|
-
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '18.
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '18.2.0');
|
|
22
22
|
// install packages
|
|
23
23
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
24
24
|
};
|
|
@@ -5,7 +5,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
5
5
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
6
6
|
const changes_1 = require("./changes");
|
|
7
7
|
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.2.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
@@ -10,7 +10,7 @@ const changes_1 = require("./changes");
|
|
|
10
10
|
const httpClientModuleName = 'HttpClientModule';
|
|
11
11
|
const httpClientModuleSourcePath = '@angular/common/http';
|
|
12
12
|
function default_1() {
|
|
13
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.
|
|
13
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
14
14
|
}
|
|
15
15
|
exports.default = default_1;
|
|
16
16
|
function postUpdate() {
|
|
@@ -5,7 +5,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
5
5
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
6
6
|
const changes_1 = require("./changes");
|
|
7
7
|
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.2.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
@@ -5,7 +5,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
5
5
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
6
6
|
const changes_1 = require("./changes");
|
|
7
7
|
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.2.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
@@ -36,11 +36,11 @@ function main(options) {
|
|
|
36
36
|
configureNewIcon.toLowerCase() === 'y' ||
|
|
37
37
|
configureNewIcon.toLowerCase() === 'sim' ||
|
|
38
38
|
configureNewIcon.toLowerCase() === '') {
|
|
39
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.
|
|
39
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
42
42
|
return (0, schematics_1.chain)([
|
|
43
|
-
(0, package_config_1.updatePackageJson)('18.
|
|
43
|
+
(0, package_config_1.updatePackageJson)('18.2.0', changes_1.updateDepedenciesVersion),
|
|
44
44
|
addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
|
|
45
45
|
addProviderToAppModule(options, newProviderDictionary),
|
|
46
46
|
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('18.
|
|
13
|
+
updatePackageJson('18.2.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)('18.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
11
11
|
}
|
|
12
12
|
exports.updateToV3 = updateToV3;
|
|
13
13
|
function postUpdate() {
|
|
@@ -6,7 +6,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
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)('18.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
exports.default = default_1;
|
|
12
12
|
function postUpdate() {
|
|
@@ -6,7 +6,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
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)('18.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.2.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
exports.default = default_1;
|
|
12
12
|
function postUpdate() {
|
|
@@ -5,7 +5,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
5
5
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
6
6
|
const changes_1 = require("./changes");
|
|
7
7
|
function default_1() {
|
|
8
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('18.2.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
Binary file
|