@po-ui/ng-components 19.36.0 → 19.37.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 +15 -4
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts +33 -6
- package/lib/components/po-field/po-input/po-input-base.component.d.ts +2 -2
- package/lib/components/po-field/po-number/po-number.component.d.ts +11 -0
- package/package.json +4 -4
- package/po-ui-ng-components-19.37.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.36.0.tgz +0 -0
package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts
CHANGED
|
@@ -104,17 +104,44 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
104
104
|
/**
|
|
105
105
|
* Máscara para o campo.
|
|
106
106
|
*
|
|
107
|
-
* **
|
|
107
|
+
* **Componente compatível:** `po-input`.
|
|
108
108
|
* > também é atribuído ao utilizar a propriedade `type: time`.
|
|
109
109
|
*/
|
|
110
110
|
mask?: string;
|
|
111
111
|
/**
|
|
112
112
|
* Define que o valor do componente será conforme especificado na mascára. O valor padrão é `false`.
|
|
113
113
|
*
|
|
114
|
-
* **
|
|
114
|
+
* **Componente compatível:** `po-input`.
|
|
115
115
|
* > também é atribuído ao utilizar a propriedade `type: time`.
|
|
116
116
|
* */
|
|
117
117
|
maskFormatModel?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Controla como o componente aplica as validações de comprimento mínimo (`minLength`) e máximo (`maxLength`) quando há uma máscara (`p-mask`) definida.
|
|
120
|
+
*
|
|
121
|
+
* - Quando `true`, apenas os caracteres alfanuméricos serão contabilizados para a validação dos comprimentos.
|
|
122
|
+
* - Quando `false`, todos os caracteres, incluindo os especiais da máscara, serão considerados na validação.
|
|
123
|
+
*
|
|
124
|
+
* **Componentes compatíveis:** `po-input`, `po-decimal`.
|
|
125
|
+
*
|
|
126
|
+
* > Esta propriedade é ignorada quando utilizada em conjunto com `p-mask-format-model`.
|
|
127
|
+
*
|
|
128
|
+
* Exemplo:
|
|
129
|
+
* ```
|
|
130
|
+
* fields:Array<PoDynamicFormField> = [
|
|
131
|
+
* {
|
|
132
|
+
* property: 'CNPJ maskNoLengthValidation TRUE',
|
|
133
|
+
* required: true,
|
|
134
|
+
* showRequired: true,
|
|
135
|
+
* mask: '99.999.999/9999-99',
|
|
136
|
+
* pattern: '([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])',
|
|
137
|
+
* maskNoLengthValidation: true,
|
|
138
|
+
* maxLength: 14,
|
|
139
|
+
* minLength: 0
|
|
140
|
+
* }
|
|
141
|
+
* ```
|
|
142
|
+
* - Entrada: `11.111.111/1111-11` → Validação será aplicada somente aos números, ignorando os caracteres especiais.
|
|
143
|
+
*/
|
|
144
|
+
maskNoLengthValidation?: boolean;
|
|
118
145
|
/** Define o ícone que será exibido no início do campo.
|
|
119
146
|
* > Esta propriedade só pode ser utilizado nos campos:
|
|
120
147
|
* - Input;
|
|
@@ -397,7 +424,7 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
397
424
|
/**
|
|
398
425
|
* Permite a seleção de múltiplos itens.
|
|
399
426
|
*
|
|
400
|
-
* **
|
|
427
|
+
* **Componentes compatíveis:** `po-lookup`, `po-upload`
|
|
401
428
|
*/
|
|
402
429
|
multiple?: boolean;
|
|
403
430
|
/** Se verdadeiro, o campo receberá um botão para ser limpo.
|
|
@@ -464,7 +491,7 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
464
491
|
* Define o modo de pesquisa utilizado no filtro da lista de seleção: `startsWith`, `contains` ou `endsWith`.
|
|
465
492
|
* > Quando utilizar a propriedade p-filter-service esta propriedade será ignorada.
|
|
466
493
|
*
|
|
467
|
-
* **
|
|
494
|
+
* **Componente compatível:** `po-multiselect`.
|
|
468
495
|
*/
|
|
469
496
|
filterMode?: PoMultiselectFilterMode;
|
|
470
497
|
/**
|
|
@@ -546,7 +573,7 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
546
573
|
* O componente envia como parâmetro um array de string com as colunas visíveis atualizadas.
|
|
547
574
|
* Por exemplo: ["idCard", "name", "hireStatus", "age"].
|
|
548
575
|
*
|
|
549
|
-
* **
|
|
576
|
+
* **Componente compatível**: `po-lookup`
|
|
550
577
|
*/
|
|
551
578
|
changeVisibleColumns?: Function;
|
|
552
579
|
/**
|
|
@@ -555,7 +582,7 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
555
582
|
* O componente envia como parâmetro um array de string com as colunas configuradas inicialmente.
|
|
556
583
|
* Por exemplo: ["idCard", "name", "hireStatus", "age"].
|
|
557
584
|
*
|
|
558
|
-
* **
|
|
585
|
+
* **Componente compatível**: `po-lookup`
|
|
559
586
|
*/
|
|
560
587
|
columnRestoreManager?: Function;
|
|
561
588
|
/**
|
|
@@ -207,12 +207,12 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
|
|
|
207
207
|
/**
|
|
208
208
|
* @description
|
|
209
209
|
*
|
|
210
|
-
*
|
|
210
|
+
* Controla como o componente aplica as validações de comprimento mínimo (`minLength`) e máximo (`maxLength`) quando há uma máscara (`p-mask`) definida.
|
|
211
211
|
*
|
|
212
212
|
* - Quando `true`, apenas os caracteres alfanuméricos serão contabilizados para a validação dos comprimentos.
|
|
213
213
|
* - Quando `false`, todos os caracteres, incluindo os especiais da máscara, serão considerados na validação.
|
|
214
214
|
*
|
|
215
|
-
* >
|
|
215
|
+
* > Esta propriedade é ignorada quando utilizada em conjunto com `p-mask-format-model`.
|
|
216
216
|
*
|
|
217
217
|
* Exemplo:
|
|
218
218
|
* ```
|
|
@@ -29,6 +29,17 @@ import * as i0 from "@angular/core";
|
|
|
29
29
|
* </example>
|
|
30
30
|
*/
|
|
31
31
|
export declare class PoNumberComponent extends PoNumberBaseComponent implements AfterViewInit, OnChanges {
|
|
32
|
+
/**
|
|
33
|
+
* @optional
|
|
34
|
+
*
|
|
35
|
+
* @description
|
|
36
|
+
*
|
|
37
|
+
* Indica uma máscara para o campo, porém é incompatível com o `po-number`.
|
|
38
|
+
* > **Componentes compatíveis:** `po-input`,`po-decimal`.
|
|
39
|
+
*
|
|
40
|
+
* @override
|
|
41
|
+
*/
|
|
42
|
+
mask?: string;
|
|
32
43
|
/**
|
|
33
44
|
* @optional
|
|
34
45
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.37.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.37.0",
|
|
26
|
+
"@po-ui/ng-schematics": "19.37.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.37.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.37.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.37.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.37.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.37.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.37.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.37.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.37.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.37.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.37.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.37.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.37.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.37.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.37.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.37.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
Binary file
|