@po-ui/ng-components 21.16.0 → 21.17.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-po-chart-modal-table.component-C4GP9pZp.mjs → po-ui-ng-components-po-chart-modal-table.component-BkH0bb8j.mjs} +4 -4
- package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-C4GP9pZp.mjs.map → po-ui-ng-components-po-chart-modal-table.component-BkH0bb8j.mjs.map} +1 -1
- package/fesm2022/po-ui-ng-components.mjs +1430 -1263
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-helper/interfaces/po-helper.interface.d.ts +10 -5
- package/lib/components/po-helper/po-helper.component.d.ts +2 -0
- package/lib/components/po-page/po-page-default/po-page-default-base.component.d.ts +35 -1
- package/lib/components/po-page/po-page-detail/po-page-detail-base.component.d.ts +11 -1
- package/lib/components/po-page/po-page-edit/po-page-edit-base.component.d.ts +11 -1
- package/lib/components/po-page/po-page-header/po-page-header-base.component.d.ts +10 -2
- package/lib/components/po-page/po-page-list/po-page-list-base.component.d.ts +11 -1
- package/lib/components/po-popover/po-popover.component.d.ts +1 -0
- package/lib/utils/safe-text-parser.d.ts +23 -0
- package/package.json +4 -4
- package/po-ui-ng-components-21.17.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 +102 -14
- package/po-ui-ng-components-21.16.0.tgz +0 -0
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @usedBy PoHelperComponent
|
|
2
|
+
* @usedBy PoHelperComponent, PoPageDefaultComponent
|
|
3
3
|
*
|
|
4
4
|
* @description
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Permite customizar o conteúdo, título, tipo do ícone, modo de abertura do popover, ações customizadas e eventos.
|
|
9
|
-
*
|
|
6
|
+
* Interface para configuração das opções de ajuda (*helper*).
|
|
10
7
|
*/
|
|
11
8
|
export interface PoHelperOptions {
|
|
12
9
|
/**
|
|
@@ -25,6 +22,14 @@ export interface PoHelperOptions {
|
|
|
25
22
|
* @description
|
|
26
23
|
*
|
|
27
24
|
* Texto explicativo exibido no popover.
|
|
25
|
+
*
|
|
26
|
+
* Suporta formatação básica com as tags `<b>` (negrito), `<strong>` (negrito), `<i>` (itálico), `<em>` (itálico) e
|
|
27
|
+
* `<u>` (sublinhado).
|
|
28
|
+
*
|
|
29
|
+
* Exemplo:
|
|
30
|
+
* ```typescript
|
|
31
|
+
* content: 'Texto <b>importante</b> com <em>destaque</em> e <u>sublinhado</u>'
|
|
32
|
+
* ```
|
|
28
33
|
*/
|
|
29
34
|
content?: string;
|
|
30
35
|
/**
|
|
@@ -2,6 +2,7 @@ import { ElementRef, AfterViewInit, OnDestroy, OnChanges, SimpleChanges, ChangeD
|
|
|
2
2
|
import { PoHelperBaseComponent } from './po-helper-base.component';
|
|
3
3
|
import { PoPopoverComponent } from '../po-popover/po-popover.component';
|
|
4
4
|
import { PoButtonComponent } from '../po-button';
|
|
5
|
+
import { PoTextFragment } from '../../utils/safe-text-parser';
|
|
5
6
|
/**
|
|
6
7
|
* @docsExtends PoHelperBaseComponent
|
|
7
8
|
*
|
|
@@ -34,6 +35,7 @@ export declare class PoHelperComponent extends PoHelperBaseComponent implements
|
|
|
34
35
|
id: string;
|
|
35
36
|
private boundFocusIn;
|
|
36
37
|
private readonly poHelperLiterals;
|
|
38
|
+
protected readonly contentFragments: import("@angular/core").Signal<PoTextFragment[]>;
|
|
37
39
|
constructor(cdr: ChangeDetectorRef);
|
|
38
40
|
ngAfterViewInit(): void;
|
|
39
41
|
setPopoverPositionByScreen(): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PoLanguageService } from './../../../services/po-language/po-language.service';
|
|
2
2
|
import { PoBreadcrumb } from '../../po-breadcrumb/po-breadcrumb.interface';
|
|
3
|
+
import { PoHelperOptions } from '../../po-helper/interfaces/po-helper.interface';
|
|
3
4
|
import { PoPageAction } from '../interfaces/po-page-action.interface';
|
|
4
5
|
import { PoPageContentComponent } from '../po-page-content/po-page-content.component';
|
|
5
6
|
import { PoPageActionsLayout } from './enums/po-page-actions-layout.enum';
|
|
@@ -99,6 +100,30 @@ export declare abstract class PoPageDefaultBaseComponent {
|
|
|
99
100
|
*/
|
|
100
101
|
set componentsSize(value: string);
|
|
101
102
|
get componentsSize(): string;
|
|
103
|
+
/**
|
|
104
|
+
* @optional
|
|
105
|
+
*
|
|
106
|
+
* @description
|
|
107
|
+
*
|
|
108
|
+
* Define o conteúdo do po-helper informativo exibido ao lado do subtítulo da página.
|
|
109
|
+
*
|
|
110
|
+
* Quando não houver subtítulo (`p-subtitle`), o po-helper será exibido logo abaixo do título.
|
|
111
|
+
*
|
|
112
|
+
* Aceita uma string simples (exibida como conteúdo) ou um objeto do tipo `PoHelperOptions`
|
|
113
|
+
* para configuração avançada (título, conteúdo, tipo, ações).
|
|
114
|
+
*
|
|
115
|
+
* Exemplo de uso:
|
|
116
|
+
* ```html
|
|
117
|
+
* <po-page-default
|
|
118
|
+
* p-title="Cadastro"
|
|
119
|
+
* p-subtitle="Preencha os dados"
|
|
120
|
+
* [p-helper]="{ title: 'Ajuda', content: 'Informações sobre o cadastro' }"
|
|
121
|
+
* ></po-page-default>
|
|
122
|
+
* ```
|
|
123
|
+
*
|
|
124
|
+
* @default `info`
|
|
125
|
+
*/
|
|
126
|
+
helper: import("@angular/core").InputSignalWithTransform<string | PoHelperOptions, string | PoHelperOptions>;
|
|
102
127
|
/**
|
|
103
128
|
* @optional
|
|
104
129
|
*
|
|
@@ -169,7 +194,15 @@ export declare abstract class PoPageDefaultBaseComponent {
|
|
|
169
194
|
*
|
|
170
195
|
* Define um texto de apoio ou informações adicionais logo abaixo do título principal.
|
|
171
196
|
*
|
|
172
|
-
*
|
|
197
|
+
* Suporta formatação básica com as tags `<b>` (negrito), `<strong>` (negrito), `<i>` (itálico), `<em>` (itálico) e
|
|
198
|
+
* `<u>` (sublinhado).
|
|
199
|
+
*
|
|
200
|
+
* Exemplo:
|
|
201
|
+
* ```typescript
|
|
202
|
+
* subtitle = 'Texto <b>importante</b> com <em>destaque</em> e <u>sublinhado</u>';
|
|
203
|
+
* ```
|
|
204
|
+
*
|
|
205
|
+
* > Requer que `p-title` esteja definido.
|
|
173
206
|
*/
|
|
174
207
|
set subtitle(value: string);
|
|
175
208
|
get subtitle(): string;
|
|
@@ -186,6 +219,7 @@ export declare abstract class PoPageDefaultBaseComponent {
|
|
|
186
219
|
constructor(languageService: PoLanguageService);
|
|
187
220
|
protected onThemeChange(): void;
|
|
188
221
|
private applySizeBasedOnA11y;
|
|
222
|
+
private transformPageHelper;
|
|
189
223
|
abstract setDropdownActions(): any;
|
|
190
224
|
abstract getVisibleActions(): any;
|
|
191
225
|
}
|
|
@@ -133,7 +133,17 @@ export declare class PoPageDetailBaseComponent {
|
|
|
133
133
|
*
|
|
134
134
|
* @description
|
|
135
135
|
*
|
|
136
|
-
* Subtitulo do Header da página
|
|
136
|
+
* Subtitulo do Header da página.
|
|
137
|
+
*
|
|
138
|
+
* Suporta formatação básica com as tags `<b>` (negrito), `<strong>` (negrito), `<i>` (itálico), `<em>` (itálico) e
|
|
139
|
+
* `<u>` (sublinhado).
|
|
140
|
+
*
|
|
141
|
+
* Exemplo:
|
|
142
|
+
* ```typescript
|
|
143
|
+
* subtitle = 'Status: <b>Active</b> | Role: <i>Administrator</i>';
|
|
144
|
+
* ```
|
|
145
|
+
*
|
|
146
|
+
* > Requer que `p-title` esteja definido.
|
|
137
147
|
*/
|
|
138
148
|
subtitle: string;
|
|
139
149
|
constructor(languageService: PoLanguageService);
|
|
@@ -139,7 +139,17 @@ export declare class PoPageEditBaseComponent {
|
|
|
139
139
|
*
|
|
140
140
|
* @description
|
|
141
141
|
*
|
|
142
|
-
* Subtitulo do Header da página
|
|
142
|
+
* Subtitulo do Header da página.
|
|
143
|
+
*
|
|
144
|
+
* Suporta formatação básica com as tags `<b>` (negrito), `<strong>` (negrito), `<i>` (itálico), `<em>` (itálico) e
|
|
145
|
+
* `<u>` (sublinhado).
|
|
146
|
+
*
|
|
147
|
+
* Exemplo:
|
|
148
|
+
* ```typescript
|
|
149
|
+
* subtitle = 'Fields marked with <b>*</b> are <u>required</u>';
|
|
150
|
+
* ```
|
|
151
|
+
*
|
|
152
|
+
* > Requer que `p-title` esteja definido.
|
|
143
153
|
*/
|
|
144
154
|
subtitle: string;
|
|
145
155
|
constructor(languageService: PoLanguageService);
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { PoBreadcrumb } from '../../po-breadcrumb/po-breadcrumb.interface';
|
|
2
|
+
import { PoHelperOptions } from '../../po-helper/interfaces/po-helper.interface';
|
|
3
|
+
import { PoTextFragment } from '../../../utils/safe-text-parser';
|
|
2
4
|
/**
|
|
3
5
|
* @docsPrivate
|
|
4
6
|
*
|
|
@@ -10,14 +12,20 @@ import { PoBreadcrumb } from '../../po-breadcrumb/po-breadcrumb.interface';
|
|
|
10
12
|
export declare class PoPageHeaderBaseComponent {
|
|
11
13
|
/** Título da página. */
|
|
12
14
|
title: string;
|
|
15
|
+
/** Define o conteúdo do po-helper. */
|
|
16
|
+
helper: import("@angular/core").InputSignal<string | PoHelperOptions>;
|
|
13
17
|
/** Define o tamanho dos componentes no header. */
|
|
14
18
|
size: string;
|
|
15
|
-
/** Subtítulo da página. */
|
|
16
|
-
subtitle: string;
|
|
17
19
|
/** Define o tipo de header: `primary`, `secondary` ou `tertiary`. */
|
|
18
20
|
type: string;
|
|
19
21
|
private _breadcrumb;
|
|
22
|
+
private _subtitle;
|
|
23
|
+
private _subtitleFragments;
|
|
20
24
|
/** Objeto com propriedades do breadcrumb. */
|
|
21
25
|
set breadcrumb(value: PoBreadcrumb);
|
|
22
26
|
get breadcrumb(): PoBreadcrumb;
|
|
27
|
+
/** Subtítulo da página. */
|
|
28
|
+
set subtitle(value: string);
|
|
29
|
+
get subtitle(): string;
|
|
30
|
+
get subtitleFragments(): Array<PoTextFragment>;
|
|
23
31
|
}
|
|
@@ -149,7 +149,17 @@ export declare abstract class PoPageListBaseComponent {
|
|
|
149
149
|
*
|
|
150
150
|
* @description
|
|
151
151
|
*
|
|
152
|
-
* Subtitulo do Header da página
|
|
152
|
+
* Subtitulo do Header da página.
|
|
153
|
+
*
|
|
154
|
+
* Suporta formatação básica com as tags `<b>` (negrito), `<strong>` (negrito), `<i>` (itálico), `<em>` (itálico) e
|
|
155
|
+
* `<u>` (sublinhado).
|
|
156
|
+
*
|
|
157
|
+
* Exemplo:
|
|
158
|
+
* ```typescript
|
|
159
|
+
* subtitle = 'Manage <b>active</b> and <i>pending</i> processes';
|
|
160
|
+
* ```
|
|
161
|
+
*
|
|
162
|
+
* > Requer que `p-title` esteja definido.
|
|
153
163
|
*/
|
|
154
164
|
subtitle: string;
|
|
155
165
|
constructor(languageService: PoLanguageService);
|
|
@@ -46,6 +46,7 @@ export declare class PoPopoverComponent extends PoPopoverBaseComponent implement
|
|
|
46
46
|
close(): void;
|
|
47
47
|
debounceResize(): void;
|
|
48
48
|
open(): void;
|
|
49
|
+
private showPopover;
|
|
49
50
|
ensurePopoverPosition(): void;
|
|
50
51
|
setOpacity(value: number): void;
|
|
51
52
|
setPopoverPosition(): void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parser seguro de tags de formatação (`<b>`, `<strong>`, `<i>`, `<em>`, `<u>`).
|
|
3
|
+
* Não utiliza `innerHTML`. Tags fora da whitelist são removidas (proteção XSS).
|
|
4
|
+
*/
|
|
5
|
+
/** Fragmento de texto com flags de formatação. */
|
|
6
|
+
export interface PoTextFragment {
|
|
7
|
+
text: string;
|
|
8
|
+
bold: boolean;
|
|
9
|
+
italic: boolean;
|
|
10
|
+
underline: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** Tags de formatação suportadas. */
|
|
13
|
+
export type PoFormattingTag = 'b' | 'i' | 'u' | 'strong' | 'em';
|
|
14
|
+
/**
|
|
15
|
+
* Faz o parsing seguro de uma string com tags de formatação.
|
|
16
|
+
*
|
|
17
|
+
* O consumidor declara quais tags aceita via `allowedTags` (obrigatório).
|
|
18
|
+
* Tags não listadas são removidas. Tags aninhadas são suportadas.
|
|
19
|
+
*
|
|
20
|
+
* @param content String com possíveis tags de formatação.
|
|
21
|
+
* @param allowedTags Tags permitidas pelo consumidor.
|
|
22
|
+
*/
|
|
23
|
+
export declare function parseSafeText(content: string, allowedTags: Array<PoFormattingTag>): Array<PoTextFragment>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.17.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.4",
|
|
25
|
-
"@po-ui/style": "21.
|
|
26
|
-
"@po-ui/ng-schematics": "21.
|
|
25
|
+
"@po-ui/style": "21.17.0",
|
|
26
|
+
"@po-ui/ng-schematics": "21.17.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": "^21",
|
|
39
39
|
"@angular/router": "^21",
|
|
40
40
|
"@angular-devkit/schematics": "^21",
|
|
41
|
-
"@po-ui/style": "21.
|
|
41
|
+
"@po-ui/style": "21.17.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', '21.
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '21.17.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.17.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.17.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.17.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.17.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.17.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.17.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.17.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.17.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.17.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.17.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.17.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.17.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.17.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.17.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.17.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.17.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
@@ -2251,14 +2251,11 @@ declare class PoListBoxComponent extends PoListBoxBaseComponent implements OnIni
|
|
|
2251
2251
|
}
|
|
2252
2252
|
|
|
2253
2253
|
/**
|
|
2254
|
-
* @usedBy PoHelperComponent
|
|
2254
|
+
* @usedBy PoHelperComponent, PoPageDefaultComponent
|
|
2255
2255
|
*
|
|
2256
2256
|
* @description
|
|
2257
2257
|
*
|
|
2258
|
-
*
|
|
2259
|
-
*
|
|
2260
|
-
* Permite customizar o conteúdo, título, tipo do ícone, modo de abertura do popover, ações customizadas e eventos.
|
|
2261
|
-
*
|
|
2258
|
+
* Interface para configuração das opções de ajuda (*helper*).
|
|
2262
2259
|
*/
|
|
2263
2260
|
interface PoHelperOptions {
|
|
2264
2261
|
/**
|
|
@@ -2277,6 +2274,14 @@ interface PoHelperOptions {
|
|
|
2277
2274
|
* @description
|
|
2278
2275
|
*
|
|
2279
2276
|
* Texto explicativo exibido no popover.
|
|
2277
|
+
*
|
|
2278
|
+
* Suporta formatação básica com as tags `<b>` (negrito), `<strong>` (negrito), `<i>` (itálico), `<em>` (itálico) e
|
|
2279
|
+
* `<u>` (sublinhado).
|
|
2280
|
+
*
|
|
2281
|
+
* Exemplo:
|
|
2282
|
+
* ```typescript
|
|
2283
|
+
* content: 'Texto <b>importante</b> com <em>destaque</em> e <u>sublinhado</u>'
|
|
2284
|
+
* ```
|
|
2280
2285
|
*/
|
|
2281
2286
|
content?: string;
|
|
2282
2287
|
/**
|
|
@@ -2659,6 +2664,7 @@ declare class PoPopoverComponent extends PoPopoverBaseComponent implements After
|
|
|
2659
2664
|
close(): void;
|
|
2660
2665
|
debounceResize(): void;
|
|
2661
2666
|
open(): void;
|
|
2667
|
+
private showPopover;
|
|
2662
2668
|
ensurePopoverPosition(): void;
|
|
2663
2669
|
setOpacity(value: number): void;
|
|
2664
2670
|
setPopoverPosition(): void;
|
|
@@ -3310,6 +3316,18 @@ declare enum PoButtonSize {
|
|
|
3310
3316
|
Large = "large"
|
|
3311
3317
|
}
|
|
3312
3318
|
|
|
3319
|
+
/**
|
|
3320
|
+
* Parser seguro de tags de formatação (`<b>`, `<strong>`, `<i>`, `<em>`, `<u>`).
|
|
3321
|
+
* Não utiliza `innerHTML`. Tags fora da whitelist são removidas (proteção XSS).
|
|
3322
|
+
*/
|
|
3323
|
+
/** Fragmento de texto com flags de formatação. */
|
|
3324
|
+
interface PoTextFragment {
|
|
3325
|
+
text: string;
|
|
3326
|
+
bold: boolean;
|
|
3327
|
+
italic: boolean;
|
|
3328
|
+
underline: boolean;
|
|
3329
|
+
}
|
|
3330
|
+
|
|
3313
3331
|
/**
|
|
3314
3332
|
* @docsExtends PoHelperBaseComponent
|
|
3315
3333
|
*
|
|
@@ -3342,6 +3360,7 @@ declare class PoHelperComponent extends PoHelperBaseComponent implements AfterVi
|
|
|
3342
3360
|
id: string;
|
|
3343
3361
|
private boundFocusIn;
|
|
3344
3362
|
private readonly poHelperLiterals;
|
|
3363
|
+
protected readonly contentFragments: i0.Signal<PoTextFragment[]>;
|
|
3345
3364
|
constructor(cdr: ChangeDetectorRef);
|
|
3346
3365
|
ngAfterViewInit(): void;
|
|
3347
3366
|
setPopoverPositionByScreen(): void;
|
|
@@ -30051,6 +30070,30 @@ declare abstract class PoPageDefaultBaseComponent {
|
|
|
30051
30070
|
*/
|
|
30052
30071
|
set componentsSize(value: string);
|
|
30053
30072
|
get componentsSize(): string;
|
|
30073
|
+
/**
|
|
30074
|
+
* @optional
|
|
30075
|
+
*
|
|
30076
|
+
* @description
|
|
30077
|
+
*
|
|
30078
|
+
* Define o conteúdo do po-helper informativo exibido ao lado do subtítulo da página.
|
|
30079
|
+
*
|
|
30080
|
+
* Quando não houver subtítulo (`p-subtitle`), o po-helper será exibido logo abaixo do título.
|
|
30081
|
+
*
|
|
30082
|
+
* Aceita uma string simples (exibida como conteúdo) ou um objeto do tipo `PoHelperOptions`
|
|
30083
|
+
* para configuração avançada (título, conteúdo, tipo, ações).
|
|
30084
|
+
*
|
|
30085
|
+
* Exemplo de uso:
|
|
30086
|
+
* ```html
|
|
30087
|
+
* <po-page-default
|
|
30088
|
+
* p-title="Cadastro"
|
|
30089
|
+
* p-subtitle="Preencha os dados"
|
|
30090
|
+
* [p-helper]="{ title: 'Ajuda', content: 'Informações sobre o cadastro' }"
|
|
30091
|
+
* ></po-page-default>
|
|
30092
|
+
* ```
|
|
30093
|
+
*
|
|
30094
|
+
* @default `info`
|
|
30095
|
+
*/
|
|
30096
|
+
helper: i0.InputSignalWithTransform<string | PoHelperOptions, string | PoHelperOptions>;
|
|
30054
30097
|
/**
|
|
30055
30098
|
* @optional
|
|
30056
30099
|
*
|
|
@@ -30121,7 +30164,15 @@ declare abstract class PoPageDefaultBaseComponent {
|
|
|
30121
30164
|
*
|
|
30122
30165
|
* Define um texto de apoio ou informações adicionais logo abaixo do título principal.
|
|
30123
30166
|
*
|
|
30124
|
-
*
|
|
30167
|
+
* Suporta formatação básica com as tags `<b>` (negrito), `<strong>` (negrito), `<i>` (itálico), `<em>` (itálico) e
|
|
30168
|
+
* `<u>` (sublinhado).
|
|
30169
|
+
*
|
|
30170
|
+
* Exemplo:
|
|
30171
|
+
* ```typescript
|
|
30172
|
+
* subtitle = 'Texto <b>importante</b> com <em>destaque</em> e <u>sublinhado</u>';
|
|
30173
|
+
* ```
|
|
30174
|
+
*
|
|
30175
|
+
* > Requer que `p-title` esteja definido.
|
|
30125
30176
|
*/
|
|
30126
30177
|
set subtitle(value: string);
|
|
30127
30178
|
get subtitle(): string;
|
|
@@ -30138,10 +30189,11 @@ declare abstract class PoPageDefaultBaseComponent {
|
|
|
30138
30189
|
constructor(languageService: PoLanguageService);
|
|
30139
30190
|
protected onThemeChange(): void;
|
|
30140
30191
|
private applySizeBasedOnA11y;
|
|
30192
|
+
private transformPageHelper;
|
|
30141
30193
|
abstract setDropdownActions(): any;
|
|
30142
30194
|
abstract getVisibleActions(): any;
|
|
30143
30195
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoPageDefaultBaseComponent, never>;
|
|
30144
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoPageDefaultBaseComponent, never, never, { "actions": { "alias": "p-actions"; "required": false; }; "breadcrumb": { "alias": "p-breadcrumb"; "required": false; }; "componentsSize": { "alias": "p-components-size"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "pageActionsLayout": { "alias": "p-page-actions-layout"; "required": false; }; "pageHeaderType": { "alias": "p-page-header-type"; "required": false; }; "title": { "alias": "p-title"; "required": false; }; "subtitle": { "alias": "p-subtitle"; "required": false; }; }, { "back": "p-back"; }, never, never, true, never>;
|
|
30196
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoPageDefaultBaseComponent, never, never, { "actions": { "alias": "p-actions"; "required": false; }; "breadcrumb": { "alias": "p-breadcrumb"; "required": false; }; "componentsSize": { "alias": "p-components-size"; "required": false; }; "helper": { "alias": "p-helper"; "required": false; "isSignal": true; }; "literals": { "alias": "p-literals"; "required": false; }; "pageActionsLayout": { "alias": "p-page-actions-layout"; "required": false; }; "pageHeaderType": { "alias": "p-page-header-type"; "required": false; }; "title": { "alias": "p-title"; "required": false; }; "subtitle": { "alias": "p-subtitle"; "required": false; }; }, { "back": "p-back"; }, never, never, true, never>;
|
|
30145
30197
|
}
|
|
30146
30198
|
|
|
30147
30199
|
/**
|
|
@@ -30336,7 +30388,17 @@ declare class PoPageDetailBaseComponent {
|
|
|
30336
30388
|
*
|
|
30337
30389
|
* @description
|
|
30338
30390
|
*
|
|
30339
|
-
* Subtitulo do Header da página
|
|
30391
|
+
* Subtitulo do Header da página.
|
|
30392
|
+
*
|
|
30393
|
+
* Suporta formatação básica com as tags `<b>` (negrito), `<strong>` (negrito), `<i>` (itálico), `<em>` (itálico) e
|
|
30394
|
+
* `<u>` (sublinhado).
|
|
30395
|
+
*
|
|
30396
|
+
* Exemplo:
|
|
30397
|
+
* ```typescript
|
|
30398
|
+
* subtitle = 'Status: <b>Active</b> | Role: <i>Administrator</i>';
|
|
30399
|
+
* ```
|
|
30400
|
+
*
|
|
30401
|
+
* > Requer que `p-title` esteja definido.
|
|
30340
30402
|
*/
|
|
30341
30403
|
subtitle: string;
|
|
30342
30404
|
constructor(languageService: PoLanguageService);
|
|
@@ -30522,7 +30584,17 @@ declare class PoPageEditBaseComponent {
|
|
|
30522
30584
|
*
|
|
30523
30585
|
* @description
|
|
30524
30586
|
*
|
|
30525
|
-
* Subtitulo do Header da página
|
|
30587
|
+
* Subtitulo do Header da página.
|
|
30588
|
+
*
|
|
30589
|
+
* Suporta formatação básica com as tags `<b>` (negrito), `<strong>` (negrito), `<i>` (itálico), `<em>` (itálico) e
|
|
30590
|
+
* `<u>` (sublinhado).
|
|
30591
|
+
*
|
|
30592
|
+
* Exemplo:
|
|
30593
|
+
* ```typescript
|
|
30594
|
+
* subtitle = 'Fields marked with <b>*</b> are <u>required</u>';
|
|
30595
|
+
* ```
|
|
30596
|
+
*
|
|
30597
|
+
* > Requer que `p-title` esteja definido.
|
|
30526
30598
|
*/
|
|
30527
30599
|
subtitle: string;
|
|
30528
30600
|
constructor(languageService: PoLanguageService);
|
|
@@ -30574,18 +30646,24 @@ declare class PoPageEditComponent extends PoPageEditBaseComponent {
|
|
|
30574
30646
|
declare class PoPageHeaderBaseComponent {
|
|
30575
30647
|
/** Título da página. */
|
|
30576
30648
|
title: string;
|
|
30649
|
+
/** Define o conteúdo do po-helper. */
|
|
30650
|
+
helper: i0.InputSignal<string | PoHelperOptions>;
|
|
30577
30651
|
/** Define o tamanho dos componentes no header. */
|
|
30578
30652
|
size: string;
|
|
30579
|
-
/** Subtítulo da página. */
|
|
30580
|
-
subtitle: string;
|
|
30581
30653
|
/** Define o tipo de header: `primary`, `secondary` ou `tertiary`. */
|
|
30582
30654
|
type: string;
|
|
30583
30655
|
private _breadcrumb;
|
|
30656
|
+
private _subtitle;
|
|
30657
|
+
private _subtitleFragments;
|
|
30584
30658
|
/** Objeto com propriedades do breadcrumb. */
|
|
30585
30659
|
set breadcrumb(value: PoBreadcrumb);
|
|
30586
30660
|
get breadcrumb(): PoBreadcrumb;
|
|
30661
|
+
/** Subtítulo da página. */
|
|
30662
|
+
set subtitle(value: string);
|
|
30663
|
+
get subtitle(): string;
|
|
30664
|
+
get subtitleFragments(): Array<PoTextFragment>;
|
|
30587
30665
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoPageHeaderBaseComponent, never>;
|
|
30588
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoPageHeaderBaseComponent, never, never, { "title": { "alias": "p-title"; "required": false; }; "
|
|
30666
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoPageHeaderBaseComponent, never, never, { "title": { "alias": "p-title"; "required": false; }; "helper": { "alias": "p-helper"; "required": false; "isSignal": true; }; "size": { "alias": "p-size"; "required": false; }; "type": { "alias": "p-type"; "required": false; }; "breadcrumb": { "alias": "p-breadcrumb"; "required": false; }; "subtitle": { "alias": "p-subtitle"; "required": false; }; }, {}, never, never, true, never>;
|
|
30589
30667
|
}
|
|
30590
30668
|
|
|
30591
30669
|
/**
|
|
@@ -31691,7 +31769,17 @@ declare abstract class PoPageListBaseComponent {
|
|
|
31691
31769
|
*
|
|
31692
31770
|
* @description
|
|
31693
31771
|
*
|
|
31694
|
-
* Subtitulo do Header da página
|
|
31772
|
+
* Subtitulo do Header da página.
|
|
31773
|
+
*
|
|
31774
|
+
* Suporta formatação básica com as tags `<b>` (negrito), `<strong>` (negrito), `<i>` (itálico), `<em>` (itálico) e
|
|
31775
|
+
* `<u>` (sublinhado).
|
|
31776
|
+
*
|
|
31777
|
+
* Exemplo:
|
|
31778
|
+
* ```typescript
|
|
31779
|
+
* subtitle = 'Manage <b>active</b> and <i>pending</i> processes';
|
|
31780
|
+
* ```
|
|
31781
|
+
*
|
|
31782
|
+
* > Requer que `p-title` esteja definido.
|
|
31695
31783
|
*/
|
|
31696
31784
|
subtitle: string;
|
|
31697
31785
|
constructor(languageService: PoLanguageService);
|
|
@@ -31774,7 +31862,7 @@ declare class PoPageListComponent extends PoPageListBaseComponent implements Aft
|
|
|
31774
31862
|
*/
|
|
31775
31863
|
declare class PoPageModule {
|
|
31776
31864
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoPageModule, never>;
|
|
31777
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoPageModule, [typeof PoPageComponent, typeof PoPageContentComponent, typeof PoPageDefaultComponent, typeof PoPageDetailComponent, typeof PoPageEditComponent, typeof PoPageHeaderComponent, typeof PoPageListComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.RouterModule, typeof PoBreadcrumbModule, typeof PoButtonModule, typeof PoDisclaimerGroupModule, typeof PoDropdownModule, typeof PoFieldModule, typeof PoIconModule, typeof PoLanguageModule, typeof PoModalModule, typeof PoPageSlideModule], [typeof PoPageDefaultComponent, typeof PoPageDetailComponent, typeof PoPageEditComponent, typeof PoPageListComponent, typeof PoPageSlideComponent]>;
|
|
31865
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoPageModule, [typeof PoPageComponent, typeof PoPageContentComponent, typeof PoPageDefaultComponent, typeof PoPageDetailComponent, typeof PoPageEditComponent, typeof PoPageHeaderComponent, typeof PoPageListComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.RouterModule, typeof PoBreadcrumbModule, typeof PoButtonModule, typeof PoDisclaimerGroupModule, typeof PoDropdownModule, typeof PoFieldModule, typeof PoHelperModule, typeof PoIconModule, typeof PoLanguageModule, typeof PoModalModule, typeof PoPageSlideModule], [typeof PoPageDefaultComponent, typeof PoPageDetailComponent, typeof PoPageEditComponent, typeof PoPageListComponent, typeof PoPageSlideComponent]>;
|
|
31778
31866
|
static ɵinj: i0.ɵɵInjectorDeclaration<PoPageModule>;
|
|
31779
31867
|
}
|
|
31780
31868
|
|
|
Binary file
|