@po-ui/ng-components 6.9.0 → 6.11.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/esm2020/lib/components/po-button/po-button-base.component.mjs +37 -10
- package/esm2020/lib/components/po-button/po-button-type.enum.mjs +10 -0
- package/esm2020/lib/components/po-button/po-button.component.mjs +4 -4
- package/esm2020/lib/components/po-dynamic/po-dynamic-field.interface.mjs +1 -1
- package/esm2020/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields-base.component.mjs +12 -2
- package/esm2020/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.mjs +12 -2
- package/esm2020/lib/components/po-dynamic/po-dynamic.util.mjs +18 -11
- package/esm2020/lib/components/po-field/po-combo/po-combo-base.component.mjs +10 -4
- package/esm2020/lib/components/po-field/po-decimal/po-decimal.component.mjs +15 -4
- package/esm2020/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.mjs +8 -8
- package/esm2020/lib/components/po-field/po-upload/po-upload.component.mjs +3 -3
- package/esm2020/lib/components/po-list-view/po-list-view.component.mjs +4 -4
- package/esm2020/lib/components/po-modal/po-modal-footer/po-modal-footer.component.mjs +2 -2
- package/esm2020/lib/components/po-modal/po-modal.component.mjs +6 -6
- package/esm2020/lib/components/po-page/po-page-default/po-page-default.component.mjs +3 -3
- package/esm2020/lib/components/po-page/po-page-detail/po-page-detail.component.mjs +7 -7
- package/esm2020/lib/components/po-page/po-page-edit/po-page-edit.component.mjs +6 -6
- package/esm2020/lib/components/po-page/po-page-list/po-page-list.component.mjs +3 -3
- package/esm2020/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.mjs +3 -3
- package/fesm2015/po-ui-ng-components.mjs +144 -64
- package/fesm2015/po-ui-ng-components.mjs.map +1 -1
- package/fesm2020/po-ui-ng-components.mjs +144 -64
- package/fesm2020/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-button/po-button-base.component.d.ts +26 -5
- package/lib/components/po-button/po-button-type.enum.d.ts +8 -0
- package/lib/components/po-dynamic/po-dynamic-field.interface.d.ts +44 -0
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.d.ts +5 -0
- package/lib/components/po-dynamic/po-dynamic.util.d.ts +1 -1
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +1 -0
- package/lib/components/po-modal/po-modal-footer/po-modal-footer.component.d.ts +1 -1
- package/lib/components/po-modal/po-modal.component.d.ts +1 -1
- package/package.json +4 -4
- package/po-ui-ng-components-6.11.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- 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-6.9.0.tgz +0 -0
|
@@ -69,7 +69,7 @@ export declare class PoButtonBaseComponent {
|
|
|
69
69
|
private _disabled?;
|
|
70
70
|
private _loading?;
|
|
71
71
|
private _small?;
|
|
72
|
-
private
|
|
72
|
+
private _kind?;
|
|
73
73
|
/**
|
|
74
74
|
* @optional
|
|
75
75
|
*
|
|
@@ -95,22 +95,43 @@ export declare class PoButtonBaseComponent {
|
|
|
95
95
|
set small(value: boolean);
|
|
96
96
|
get small(): boolean;
|
|
97
97
|
/**
|
|
98
|
+
* @deprecated 15.x.x
|
|
99
|
+
*
|
|
98
100
|
* @optional
|
|
99
101
|
*
|
|
100
102
|
* @description
|
|
103
|
+
* **Deprecated 15.x.x**. Utilizar `p-kind` no lugar.
|
|
101
104
|
*
|
|
102
105
|
* Define o estilo do `po-button`.
|
|
103
106
|
*
|
|
104
107
|
* Valore válidos:
|
|
105
|
-
* - `default`:
|
|
108
|
+
* - `default`: **Deprecated 15.x.x**. Utilizar `p-kind="secondary"`.
|
|
106
109
|
* - `primary`: deixa o `po-button` com destaque, deve ser usado para ações primárias.
|
|
107
110
|
* - `danger`: deve ser usado para ações que o usuário precisa ter cuidado ao executa-lá.
|
|
108
|
-
* - `link`:
|
|
111
|
+
* - `link`: **Deprecated 15.x.x**. Utilizar `p-kind="tertiary"`.
|
|
109
112
|
*
|
|
110
|
-
* @default `
|
|
113
|
+
* @default `secondary`
|
|
111
114
|
*/
|
|
112
115
|
set type(value: string);
|
|
113
116
|
get type(): string;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @optional
|
|
120
|
+
*
|
|
121
|
+
* @description
|
|
122
|
+
*
|
|
123
|
+
* Define o estilo do `po-button`.
|
|
124
|
+
*
|
|
125
|
+
* Valore válidos:
|
|
126
|
+
* - `primary`: deixa o `po-button` com destaque, deve ser usado para ações primárias.
|
|
127
|
+
* - `secondary`: estilo padrão do `po-button`.
|
|
128
|
+
* - `danger`: deve ser usado para ações que o usuário precisa ter cuidado ao executa-lá.
|
|
129
|
+
* - `tertiary`: o `po-button` é exibido sem cor do fundo, recebendo menos destaque entre as ações.
|
|
130
|
+
*
|
|
131
|
+
* @default `secondary`
|
|
132
|
+
*/
|
|
133
|
+
set kind(value: string);
|
|
134
|
+
get kind(): string;
|
|
114
135
|
/**
|
|
115
136
|
* @optional
|
|
116
137
|
*
|
|
@@ -123,5 +144,5 @@ export declare class PoButtonBaseComponent {
|
|
|
123
144
|
set disabled(value: boolean);
|
|
124
145
|
get disabled(): boolean;
|
|
125
146
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoButtonBaseComponent, never>;
|
|
126
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoButtonBaseComponent, never, never, { "autoFocus": "p-auto-focus"; "label": "p-label"; "icon": "p-icon"; "loading": "p-loading"; "small": "p-small"; "type": "p-type"; "disabled": "p-disabled"; }, { "click": "p-click"; }, never>;
|
|
147
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoButtonBaseComponent, never, never, { "autoFocus": "p-auto-focus"; "label": "p-label"; "icon": "p-icon"; "loading": "p-loading"; "small": "p-small"; "type": "p-type"; "kind": "p-kind"; "disabled": "p-disabled"; }, { "click": "p-click"; }, never>;
|
|
127
148
|
}
|
|
@@ -58,6 +58,50 @@ export interface PoDynamicField {
|
|
|
58
58
|
* @default `3`
|
|
59
59
|
*/
|
|
60
60
|
gridXlColumns?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Tamanho do espaço de exibição do campo em telas.
|
|
63
|
+
*
|
|
64
|
+
* Deve ser usado o sistema de **grid** do PO (1 ... 12 colunas).
|
|
65
|
+
*
|
|
66
|
+
* > Esta propriedade é genérica, aplica o valor em todos os tamanhos de telas.
|
|
67
|
+
*/
|
|
68
|
+
offsetColumns?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Tamanho do espaço de exibição do campo em telas menores (sm).
|
|
71
|
+
*
|
|
72
|
+
* Deve ser usado o sistema de **grid** do PO (1 ... 12 colunas).
|
|
73
|
+
*
|
|
74
|
+
* > Esta propriedade sobrescreve o valor definido para o tamanho dela na `offsetColumns`.
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
offsetSmColumns?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Tamanho do espaço de exibição do campo em telas médias (md).
|
|
80
|
+
*
|
|
81
|
+
* Deve ser usado o sistema de **grid** do PO (1 ... 12 colunas).
|
|
82
|
+
*
|
|
83
|
+
* > Esta propriedade sobrescreve o valor definido para o tamanho dela na `offsetColumns`.
|
|
84
|
+
*
|
|
85
|
+
*/
|
|
86
|
+
offsetMdColumns?: number;
|
|
87
|
+
/**
|
|
88
|
+
* Tamanho do espaço de exibição do campo em telas grandes (lg).
|
|
89
|
+
*
|
|
90
|
+
* Deve ser usado o sistema de **grid** do PO (1 ... 12 colunas).
|
|
91
|
+
*
|
|
92
|
+
* > Esta propriedade sobrescreve o valor definido para o tamanho dela na `offsetColumns`.
|
|
93
|
+
*
|
|
94
|
+
*/
|
|
95
|
+
offsetLgColumns?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Tamanho do espaço de exibição do campo em telas extra grandes (xl).
|
|
98
|
+
*
|
|
99
|
+
* Deve ser usado o sistema de **grid** do PO (1 ... 12 colunas).
|
|
100
|
+
*
|
|
101
|
+
* > Esta propriedade sobrescreve o valor definido para o tamanho dela na `offsetColumns`.
|
|
102
|
+
*
|
|
103
|
+
*/
|
|
104
|
+
offsetXlColumns?: number;
|
|
61
105
|
/**
|
|
62
106
|
* Tamanho do espaçamento após o campo antes da exibição do próximo campo em telas menores (sm).
|
|
63
107
|
*
|
|
@@ -120,6 +120,11 @@ export declare class PoDynamicViewBaseComponent {
|
|
|
120
120
|
gridMdColumns?: number;
|
|
121
121
|
gridLgColumns?: number;
|
|
122
122
|
gridXlColumns?: number;
|
|
123
|
+
offsetColumns?: number;
|
|
124
|
+
offsetSmColumns?: number;
|
|
125
|
+
offsetMdColumns?: number;
|
|
126
|
+
offsetLgColumns?: number;
|
|
127
|
+
offsetXlColumns?: number;
|
|
123
128
|
gridSmPull?: number;
|
|
124
129
|
gridMdPull?: number;
|
|
125
130
|
gridLgPull?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function getGridColumnsClasses(
|
|
1
|
+
export declare function getGridColumnsClasses(gridColumns: any, offsetColumns: any, grid: any, offset: any, pull: any): string;
|
|
2
2
|
export declare function isVisibleField(field: {
|
|
3
3
|
visible?: boolean;
|
|
4
4
|
}): boolean;
|
|
@@ -332,6 +332,7 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
332
332
|
* - A lista deve seguir as definições descritas nas respectivas interfaces, caso contrário não exibirá a(as) opção(ões) fora dos padrões.
|
|
333
333
|
* - O componente interpretará o formato da lista de acordo com a interface utilizada e só exibirá as opções correspondentes à ela.
|
|
334
334
|
* - Um agrupamento só será exibido se houver pelo menos uma opção válida.
|
|
335
|
+
* - Aconselha-se utilizar valores distintos no `label` e `value` dos itens.
|
|
335
336
|
*/
|
|
336
337
|
set options(options: Array<PoComboOption | PoComboOptionGroup>);
|
|
337
338
|
get options(): Array<PoComboOption | PoComboOptionGroup>;
|
|
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* <po-modal-footer>
|
|
11
11
|
* <po-button p-label="Close" (p-click)="modal.close()"> </po-button>
|
|
12
12
|
* <po-button p-label="Clean" (p-click)="clean()"> </po-button>
|
|
13
|
-
* <po-button p-label="Confirm" p-
|
|
13
|
+
* <po-button p-label="Confirm" p-kind="primary" (p-click)="confirm()"> </po-button>
|
|
14
14
|
* </po-modal-footer>
|
|
15
15
|
* </po-modal>
|
|
16
16
|
* ```
|
|
@@ -37,7 +37,7 @@ export declare class PoModalComponent extends PoModalBaseComponent {
|
|
|
37
37
|
close(xClosed?: boolean): void;
|
|
38
38
|
closeModalOnEscapeKey(event: any): void;
|
|
39
39
|
getPrimaryActionButtonType(): "primary" | "danger";
|
|
40
|
-
getSecondaryActionButtonType(): "
|
|
40
|
+
getSecondaryActionButtonType(): "danger" | "secondary";
|
|
41
41
|
onClickOut(event: any): void;
|
|
42
42
|
open(): void;
|
|
43
43
|
private handleFocus;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.11.0",
|
|
4
4
|
"tag": "next",
|
|
5
5
|
"description": "PO UI - Components",
|
|
6
6
|
"author": "PO UI",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@po-ui/style": "6.
|
|
25
|
-
"@po-ui/ng-schematics": "6.
|
|
24
|
+
"@po-ui/style": "6.11.0",
|
|
25
|
+
"@po-ui/ng-schematics": "6.11.0",
|
|
26
26
|
"tslib": "^2.3.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@angular/platform-browser": "^13.0.2",
|
|
35
35
|
"@angular/platform-browser-dynamic": "^13.0.2",
|
|
36
36
|
"@angular/router": "^13.0.2",
|
|
37
|
-
"@po-ui/style": "6.
|
|
37
|
+
"@po-ui/style": "6.11.0",
|
|
38
38
|
"rxjs": "~7.4.0",
|
|
39
39
|
"zone.js": "~0.11.4"
|
|
40
40
|
},
|
|
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', '6.
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '6.11.0');
|
|
22
22
|
// install packages
|
|
23
23
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
24
24
|
};
|
|
@@ -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('6.
|
|
13
|
+
updatePackageJson('6.11.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)('6.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('6.11.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)('6.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('6.11.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)('6.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('6.11.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)('6.
|
|
8
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('6.11.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
9
9
|
}
|
|
10
10
|
exports.default = default_1;
|
|
11
11
|
function postUpdate() {
|
|
Binary file
|