@po-ui/ng-components 21.26.0 → 21.27.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 +10 -5
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-header/interfaces/po-header-action-tool.interface.d.ts +32 -0
- package/lib/components/po-header/interfaces/po-header-user.interface.d.ts +28 -0
- package/lib/components/po-popup/po-popup-base.component.d.ts +1 -0
- package/package.json +4 -4
- package/po-ui-ng-components-21.27.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/v21/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/types/po-ui-ng-components.d.ts +62 -1
- package/po-ui-ng-components-21.26.0.tgz +0 -0
|
@@ -91,6 +91,38 @@ export interface PoHeaderActionTool {
|
|
|
91
91
|
*
|
|
92
92
|
*/
|
|
93
93
|
link?: string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @optional
|
|
97
|
+
*
|
|
98
|
+
* @description
|
|
99
|
+
*
|
|
100
|
+
* Função executada quando o popup ou popover da ação é aberto.
|
|
101
|
+
*
|
|
102
|
+
* Esse evento é disparado toda vez que o usuário clica no botão da ação e o popup (quando há `items`)
|
|
103
|
+
* ou o popover (quando há `popover`) é exibido.
|
|
104
|
+
*
|
|
105
|
+
* O callback recebe como parâmetro o `label` da ação que disparou o evento.
|
|
106
|
+
*
|
|
107
|
+
* Exemplo: `onOpen: (label) => console.log('Aberto:', label)`
|
|
108
|
+
*/
|
|
109
|
+
onOpen?: (label?: string) => void;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @optional
|
|
113
|
+
*
|
|
114
|
+
* @description
|
|
115
|
+
*
|
|
116
|
+
* Função executada quando o popup ou popover da ação é fechado.
|
|
117
|
+
*
|
|
118
|
+
* Esse evento é disparado toda vez que o popup (quando há `items`) ou o popover (quando há `popover`)
|
|
119
|
+
* é ocultado, seja por clique fora do elemento ou por ação programática.
|
|
120
|
+
*
|
|
121
|
+
* O callback recebe como parâmetro o `label` da ação que disparou o evento.
|
|
122
|
+
*
|
|
123
|
+
* Exemplo: `onClose: (label) => console.log('Fechado:', label)`
|
|
124
|
+
*/
|
|
125
|
+
onClose?: (label?: string) => void;
|
|
94
126
|
$selected?: any;
|
|
95
127
|
}
|
|
96
128
|
/**
|
|
@@ -71,4 +71,32 @@ export interface PoHeaderUser {
|
|
|
71
71
|
*
|
|
72
72
|
*/
|
|
73
73
|
items?: Array<PoHeaderActionToolItem>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @optional
|
|
77
|
+
*
|
|
78
|
+
* @description
|
|
79
|
+
*
|
|
80
|
+
* Função executada quando o popup ou popover da seção de Customer é aberto.
|
|
81
|
+
*
|
|
82
|
+
* Esse evento é disparado toda vez que o usuário clica no botão da seção de Customer e o popup
|
|
83
|
+
* (quando há `items`) ou o popover (quando há `popover`) é exibido.
|
|
84
|
+
*
|
|
85
|
+
* Exemplo: `onOpen: this.onOpenNotifications.bind(this)`
|
|
86
|
+
*/
|
|
87
|
+
onOpen?: Function;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @optional
|
|
91
|
+
*
|
|
92
|
+
* @description
|
|
93
|
+
*
|
|
94
|
+
* Função executada quando o popup ou popover da seção de Customer é fechado.
|
|
95
|
+
*
|
|
96
|
+
* Esse evento é disparado toda vez que o popup (quando há `items`) ou o popover (quando há `popover`)
|
|
97
|
+
* é ocultado, seja por clique fora do elemento ou por ação programática.
|
|
98
|
+
*
|
|
99
|
+
* Exemplo: `onClose: this.onCloseNotifications.bind(this)`
|
|
100
|
+
*/
|
|
101
|
+
onClose?: Function;
|
|
74
102
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.27.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": "~21.2.14",
|
|
25
|
-
"@po-ui/style": "21.
|
|
26
|
-
"@po-ui/ng-schematics": "21.
|
|
25
|
+
"@po-ui/style": "21.27.0",
|
|
26
|
+
"@po-ui/ng-schematics": "21.27.0",
|
|
27
27
|
"driver.js": "~1.4.0",
|
|
28
28
|
"echarts": "^6.1.0",
|
|
29
29
|
"tslib": "^2.6.2"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@angular/platform-browser-dynamic": "^21",
|
|
40
40
|
"@angular/router": "^21",
|
|
41
41
|
"@angular-devkit/schematics": "^21",
|
|
42
|
-
"@po-ui/style": "21.
|
|
42
|
+
"@po-ui/style": "21.27.0",
|
|
43
43
|
"rxjs": "~7.8.1",
|
|
44
44
|
"zone.js": "~0.15.0"
|
|
45
45
|
},
|
|
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', '21.
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '21.27.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)('21.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.27.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)('21.
|
|
14
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.27.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)('21.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.27.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)('21.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.27.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)('21.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.27.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('21.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('21.27.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)('21.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.27.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('21.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('21.27.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('21.
|
|
13
|
+
updatePackageJson('21.27.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)('21.
|
|
43
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.27.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
return (0, schematics_1.chain)([
|
|
47
|
-
(0, package_config_1.updatePackageJson)('21.
|
|
47
|
+
(0, package_config_1.updatePackageJson)('21.27.0', changes_1.updateDepedenciesVersion),
|
|
48
48
|
addImportOnly(options, [IconsDictionaryName, poIconDictionary], poModuleSourcePath),
|
|
49
49
|
addProviderToAppModule(options, newProviderDictionary),
|
|
50
50
|
updateAppConfigFileRule(),
|
|
@@ -9,7 +9,7 @@ const project_1 = require("@po-ui/ng-schematics/project");
|
|
|
9
9
|
const changes_1 = require("./changes");
|
|
10
10
|
function main() {
|
|
11
11
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
12
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.
|
|
12
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.27.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
function default_1() {
|
|
@@ -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)('21.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.27.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)('21.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.27.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)('21.
|
|
10
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.27.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)('21.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('21.27.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
@@ -4282,8 +4282,9 @@ declare class PoPopupBaseComponent {
|
|
|
4282
4282
|
get target(): any;
|
|
4283
4283
|
closeEvent: EventEmitter<any>;
|
|
4284
4284
|
clickItem: EventEmitter<any>;
|
|
4285
|
+
openEvent: EventEmitter<any>;
|
|
4285
4286
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoPopupBaseComponent, never>;
|
|
4286
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoPopupBaseComponent, never, never, { "templateIcon": { "alias": "p-template-icon"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "hideArrow": { "alias": "p-hide-arrow"; "required": false; }; "isCornerAlign": { "alias": "p-is-corner-align"; "required": false; }; "position": { "alias": "p-position"; "required": false; }; "customPositions": { "alias": "p-custom-positions"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "target": { "alias": "p-target"; "required": false; }; }, { "closeEvent": "p-close"; "clickItem": "p-click-item"; }, never, never, true, never>;
|
|
4287
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoPopupBaseComponent, never, never, { "templateIcon": { "alias": "p-template-icon"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "hideArrow": { "alias": "p-hide-arrow"; "required": false; }; "isCornerAlign": { "alias": "p-is-corner-align"; "required": false; }; "position": { "alias": "p-position"; "required": false; }; "customPositions": { "alias": "p-custom-positions"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "target": { "alias": "p-target"; "required": false; }; }, { "closeEvent": "p-close"; "clickItem": "p-click-item"; "openEvent": "p-open"; }, never, never, true, never>;
|
|
4287
4288
|
}
|
|
4288
4289
|
|
|
4289
4290
|
/**
|
|
@@ -38977,6 +38978,38 @@ interface PoHeaderActionTool {
|
|
|
38977
38978
|
*
|
|
38978
38979
|
*/
|
|
38979
38980
|
link?: string;
|
|
38981
|
+
/**
|
|
38982
|
+
*
|
|
38983
|
+
* @optional
|
|
38984
|
+
*
|
|
38985
|
+
* @description
|
|
38986
|
+
*
|
|
38987
|
+
* Função executada quando o popup ou popover da ação é aberto.
|
|
38988
|
+
*
|
|
38989
|
+
* Esse evento é disparado toda vez que o usuário clica no botão da ação e o popup (quando há `items`)
|
|
38990
|
+
* ou o popover (quando há `popover`) é exibido.
|
|
38991
|
+
*
|
|
38992
|
+
* O callback recebe como parâmetro o `label` da ação que disparou o evento.
|
|
38993
|
+
*
|
|
38994
|
+
* Exemplo: `onOpen: (label) => console.log('Aberto:', label)`
|
|
38995
|
+
*/
|
|
38996
|
+
onOpen?: (label?: string) => void;
|
|
38997
|
+
/**
|
|
38998
|
+
*
|
|
38999
|
+
* @optional
|
|
39000
|
+
*
|
|
39001
|
+
* @description
|
|
39002
|
+
*
|
|
39003
|
+
* Função executada quando o popup ou popover da ação é fechado.
|
|
39004
|
+
*
|
|
39005
|
+
* Esse evento é disparado toda vez que o popup (quando há `items`) ou o popover (quando há `popover`)
|
|
39006
|
+
* é ocultado, seja por clique fora do elemento ou por ação programática.
|
|
39007
|
+
*
|
|
39008
|
+
* O callback recebe como parâmetro o `label` da ação que disparou o evento.
|
|
39009
|
+
*
|
|
39010
|
+
* Exemplo: `onClose: (label) => console.log('Fechado:', label)`
|
|
39011
|
+
*/
|
|
39012
|
+
onClose?: (label?: string) => void;
|
|
38980
39013
|
$selected?: any;
|
|
38981
39014
|
}
|
|
38982
39015
|
/**
|
|
@@ -39177,6 +39210,34 @@ interface PoHeaderUser {
|
|
|
39177
39210
|
*
|
|
39178
39211
|
*/
|
|
39179
39212
|
items?: Array<PoHeaderActionToolItem>;
|
|
39213
|
+
/**
|
|
39214
|
+
*
|
|
39215
|
+
* @optional
|
|
39216
|
+
*
|
|
39217
|
+
* @description
|
|
39218
|
+
*
|
|
39219
|
+
* Função executada quando o popup ou popover da seção de Customer é aberto.
|
|
39220
|
+
*
|
|
39221
|
+
* Esse evento é disparado toda vez que o usuário clica no botão da seção de Customer e o popup
|
|
39222
|
+
* (quando há `items`) ou o popover (quando há `popover`) é exibido.
|
|
39223
|
+
*
|
|
39224
|
+
* Exemplo: `onOpen: this.onOpenNotifications.bind(this)`
|
|
39225
|
+
*/
|
|
39226
|
+
onOpen?: Function;
|
|
39227
|
+
/**
|
|
39228
|
+
*
|
|
39229
|
+
* @optional
|
|
39230
|
+
*
|
|
39231
|
+
* @description
|
|
39232
|
+
*
|
|
39233
|
+
* Função executada quando o popup ou popover da seção de Customer é fechado.
|
|
39234
|
+
*
|
|
39235
|
+
* Esse evento é disparado toda vez que o popup (quando há `items`) ou o popover (quando há `popover`)
|
|
39236
|
+
* é ocultado, seja por clique fora do elemento ou por ação programática.
|
|
39237
|
+
*
|
|
39238
|
+
* Exemplo: `onClose: this.onCloseNotifications.bind(this)`
|
|
39239
|
+
*/
|
|
39240
|
+
onClose?: Function;
|
|
39180
39241
|
}
|
|
39181
39242
|
|
|
39182
39243
|
/**
|
|
Binary file
|