@po-ui/ng-components 20.4.0 → 20.6.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 +400 -74
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/index.d.ts +180 -19
- package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts +11 -3
- package/lib/components/po-field/po-upload/interfaces/po-upload-literals.interface.d.ts +14 -0
- package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +112 -1
- package/lib/components/po-field/po-upload/po-upload-file.d.ts +6 -0
- package/lib/components/po-field/po-upload/po-upload.component.d.ts +28 -4
- package/lib/components/po-table/interfaces/po-table-column.interface.d.ts +10 -10
- package/package.json +4 -4
- package/po-ui-ng-components-20.6.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.4.0.tgz +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { AfterViewInit, Renderer2 } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { PoProgressStatus } from '../../po-progress/enums/po-progress-status.enum';
|
|
3
3
|
import { PoButtonComponent } from './../../po-button/po-button.component';
|
|
4
|
+
import { PoModalAction, PoModalComponent } from '../../po-modal';
|
|
4
5
|
import { PoUploadBaseComponent } from './po-upload-base.component';
|
|
5
6
|
import { PoUploadFile } from './po-upload-file';
|
|
6
7
|
import { PoUploadStatus } from './po-upload-status.enum';
|
|
@@ -33,14 +34,20 @@ import { PoUploadStatus } from './po-upload-status.enum';
|
|
|
33
34
|
* <file name="sample-po-upload-download/sample-po-upload-download.component.html"> </file>
|
|
34
35
|
* <file name="sample-po-upload-download/sample-po-upload-download.component.ts"> </file>
|
|
35
36
|
* </example>
|
|
37
|
+
*
|
|
38
|
+
* <example name="po-upload-preview" title="PO Upload - with Preview">
|
|
39
|
+
* <file name="sample-po-upload-preview/sample-po-upload-preview.component.html"> </file>
|
|
40
|
+
* <file name="sample-po-upload-preview/sample-po-upload-preview.component.ts"> </file>
|
|
41
|
+
* </example>
|
|
36
42
|
*/
|
|
37
|
-
export declare class PoUploadComponent extends PoUploadBaseComponent implements AfterViewInit {
|
|
43
|
+
export declare class PoUploadComponent extends PoUploadBaseComponent implements AfterViewInit, OnChanges {
|
|
38
44
|
renderer: Renderer2;
|
|
39
45
|
private i18nPipe;
|
|
40
46
|
private notification;
|
|
41
47
|
private inputFile;
|
|
42
48
|
private poUploadDragDropComponent;
|
|
43
49
|
uploadButton: PoButtonComponent;
|
|
50
|
+
modalComponent: PoModalComponent;
|
|
44
51
|
id: string;
|
|
45
52
|
infoByUploadStatus: {
|
|
46
53
|
[key: string]: {
|
|
@@ -53,6 +60,12 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
|
|
|
53
60
|
2: PoProgressStatus;
|
|
54
61
|
};
|
|
55
62
|
private calledByCleanInputValue;
|
|
63
|
+
protected modalPrimaryAction: PoModalAction;
|
|
64
|
+
protected modalSecondaryAction: PoModalAction;
|
|
65
|
+
protected errorMessage: string;
|
|
66
|
+
protected tooltipTitle: string;
|
|
67
|
+
protected modalImageUrl: string;
|
|
68
|
+
protected errorModalImage: boolean;
|
|
56
69
|
constructor();
|
|
57
70
|
get displayDragDrop(): boolean;
|
|
58
71
|
get displaySendButton(): boolean;
|
|
@@ -62,7 +75,8 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
|
|
|
62
75
|
get hasFileNotUploaded(): boolean;
|
|
63
76
|
get isDisabled(): boolean;
|
|
64
77
|
get maxFiles(): number;
|
|
65
|
-
cancel(file: PoUploadFile): void;
|
|
78
|
+
cancel(file: PoUploadFile, keydown?: KeyboardEvent): void;
|
|
79
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
66
80
|
ngAfterViewInit(): void;
|
|
67
81
|
/** Método responsável por **limpar** o(s) arquivo(s) selecionado(s). */
|
|
68
82
|
clear(): void;
|
|
@@ -92,10 +106,15 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
|
|
|
92
106
|
onFileChange(event: any): void;
|
|
93
107
|
onFileChangeDragDrop(files: any): void;
|
|
94
108
|
onKeyDown(event: KeyboardEvent): void;
|
|
109
|
+
/**
|
|
110
|
+
* Método responsável por fechar o modal.
|
|
111
|
+
*/
|
|
112
|
+
closeModal(): void;
|
|
113
|
+
openModal(file: PoUploadFile, keydown?: KeyboardEvent): void;
|
|
95
114
|
removeFile(file: any): void;
|
|
96
115
|
/** Método responsável por **abrir** a janela para seleção de arquivo(s). */
|
|
97
116
|
selectFiles(): void;
|
|
98
|
-
sendFeedback(): void;
|
|
117
|
+
sendFeedback(file?: any): void;
|
|
99
118
|
/** Método responsável por **enviar** o(s) arquivo(s) selecionado(s). */
|
|
100
119
|
sendFiles(): void;
|
|
101
120
|
setDirectoryAttribute(canHandleDirectory: boolean): void;
|
|
@@ -141,11 +160,16 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
|
|
|
141
160
|
hideAdditionalHelp: boolean;
|
|
142
161
|
helperSettings?: any;
|
|
143
162
|
};
|
|
163
|
+
protected actionIsDisabled(action: any): any;
|
|
164
|
+
protected isActionVisible(action: any): boolean;
|
|
165
|
+
protected onImageError(file: any): void;
|
|
166
|
+
protected showTooltipText(e: MouseEvent, text: string): void;
|
|
144
167
|
private cleanInputValue;
|
|
145
168
|
private isAdditionalHelpEventTriggered;
|
|
146
169
|
private isUploadButtonFocused;
|
|
147
170
|
private responseHandler;
|
|
148
171
|
private setPipeArguments;
|
|
172
|
+
private setPrimaryActionModal;
|
|
149
173
|
private stopUploadHandler;
|
|
150
174
|
private updateFiles;
|
|
151
175
|
private updateModel;
|
|
@@ -90,16 +90,16 @@ export interface PoTableColumn {
|
|
|
90
90
|
*/
|
|
91
91
|
disabled?: Function;
|
|
92
92
|
/**
|
|
93
|
-
* Formato de exibição do valor da coluna
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* 'HH:mm:ss'
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
93
|
+
* Formato de exibição do valor da coluna.
|
|
94
|
+
*
|
|
95
|
+
* | Formatação | Type da Coluna | Descrição | Exemplos |
|
|
96
|
+
* |------------|-----------------|-----------|----------|
|
|
97
|
+
* | Monetário | `currency` | Formato para valores monetários. Informe o código da moeda (ISO 4217). | `'BRL'`, `'USD'`, `'EUR'`, `'RUB'` |
|
|
98
|
+
* | Data | `date` | Aceita apenas os caracteres de dia(dd), mês(MM) e ano (yyyy ou yy), caso não seja informado um formato o mesmo será 'dd/MM/yyyy' | `'dd/MM/yyyy'`, `'dd-MM-yy'`, `'mm/dd/yyyy'` |
|
|
99
|
+
* | Hora | `time` | Aceita apenas os caracteres de hora(HH), minutos(mm), segundos(ss) e milisegundos(f-ffffff), os milisegundos são opcionais, caso não seja informado um formato o mesmo será 'HH:mm:ss' | `'HH:mm'`, `'HH:mm:ss.ffffff'`, `'HH:mm:ss.ff'`, `'mm:ss.fff'` |
|
|
100
|
+
* | Número | `number` | Aceita um valor seguindo o padrão [**DecimalPipe**](https://angular.dev/api/common/DecimalPipe) para formatação, e caso não seja informado, o número será exibido na sua forma original. | `'1.2-5'` (ex.: `50` → `50.00`) |
|
|
101
|
+
*
|
|
102
|
+
* Observação: caso não seja informado um formato, o valor será exibido em sua forma original.
|
|
103
103
|
*/
|
|
104
104
|
format?: string;
|
|
105
105
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.6.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.6.0",
|
|
26
|
+
"@po-ui/ng-schematics": "20.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.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.6.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
Binary file
|