@po-ui/ng-components 19.22.0 → 19.23.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 +389 -78
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-button/enums/po-button-kind.enum.d.ts +2 -2
- package/lib/components/po-popup/po-popup-action.interface.d.ts +2 -1
- package/lib/components/po-tag/po-tag-base.component.d.ts +3 -1
- package/lib/components/po-widget/index.d.ts +1 -0
- package/lib/components/po-widget/literals/po-widget-language.d.ts +7 -0
- package/lib/components/po-widget/literals/po-widget-literals.d.ts +22 -0
- package/lib/components/po-widget/po-widget-base.component.d.ts +185 -37
- package/lib/components/po-widget/po-widget.component.d.ts +29 -7
- package/lib/components/po-widget/po-widget.module.d.ts +5 -1
- package/package.json +4 -4
- package/po-ui-ng-components-19.23.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.22.0.tgz +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @usedBy PoButtonComponent
|
|
2
|
+
* @usedBy PoButtonComponent, PoWidgetComponent
|
|
3
3
|
*
|
|
4
4
|
* @description
|
|
5
5
|
*
|
|
6
|
-
* Estilos
|
|
6
|
+
* Estilos disponíveis do button.
|
|
7
7
|
*/
|
|
8
8
|
export declare enum PoButtonKind {
|
|
9
9
|
/** Estilo primário, usado para ações principais que requerem maior destaque. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
2
|
/**
|
|
3
|
-
* @usedBy PoPopupComponent
|
|
3
|
+
* @usedBy PoPopupComponent, PoWidgetComponent
|
|
4
4
|
*
|
|
5
5
|
* @description
|
|
6
6
|
*
|
|
@@ -95,4 +95,5 @@ export interface PoPopupAction {
|
|
|
95
95
|
*
|
|
96
96
|
*/
|
|
97
97
|
visible?: boolean | Function;
|
|
98
|
+
$id?: string;
|
|
98
99
|
}
|
|
@@ -259,6 +259,7 @@ export declare class PoTagBaseComponent {
|
|
|
259
259
|
*/
|
|
260
260
|
set type(value: PoTagType);
|
|
261
261
|
get type(): PoTagType;
|
|
262
|
+
forceIcon: boolean;
|
|
262
263
|
/**
|
|
263
264
|
* @optional
|
|
264
265
|
*
|
|
@@ -290,7 +291,8 @@ export declare class PoTagBaseComponent {
|
|
|
290
291
|
get literals(): PoTagLiterals;
|
|
291
292
|
constructor(languageService: PoLanguageService);
|
|
292
293
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoTagBaseComponent, never>;
|
|
293
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoTagBaseComponent, never, never, { "label": { "alias": "p-label"; "required": false; }; "removable": { "alias": "p-removable"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; "appendInBody": { "alias": "p-append-in-body"; "required": false; }; "color": { "alias": "p-color"; "required": false; }; "textColor": { "alias": "p-text-color"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "orientation": { "alias": "p-orientation"; "required": false; }; "type": { "alias": "p-type"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; }, { "click": "p-click"; "remove": "p-close"; }, never, never, true, never>;
|
|
294
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoTagBaseComponent, never, never, { "label": { "alias": "p-label"; "required": false; }; "removable": { "alias": "p-removable"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; "appendInBody": { "alias": "p-append-in-body"; "required": false; }; "color": { "alias": "p-color"; "required": false; }; "textColor": { "alias": "p-text-color"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "orientation": { "alias": "p-orientation"; "required": false; }; "type": { "alias": "p-type"; "required": false; }; "forceIcon": { "alias": "p-force-icon"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; }, { "click": "p-click"; "remove": "p-close"; }, never, never, true, never>;
|
|
294
295
|
static ngAcceptInputType_removable: any;
|
|
295
296
|
static ngAcceptInputType_disabled: any;
|
|
297
|
+
static ngAcceptInputType_forceIcon: any;
|
|
296
298
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface PoWidgetLiterals {
|
|
2
|
+
/**
|
|
3
|
+
* @usedBy PoWidgetComponent
|
|
4
|
+
*
|
|
5
|
+
* @optional
|
|
6
|
+
*
|
|
7
|
+
* @description
|
|
8
|
+
*
|
|
9
|
+
* help: Texto exibido na ação de ajuda.
|
|
10
|
+
*/
|
|
11
|
+
help?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @usedBy PoWidgetComponent
|
|
14
|
+
*
|
|
15
|
+
* @optional
|
|
16
|
+
*
|
|
17
|
+
* @description
|
|
18
|
+
*
|
|
19
|
+
* configuration: help: Texto exibido na ação de configuração.
|
|
20
|
+
*/
|
|
21
|
+
configuration?: string;
|
|
22
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { PoThemeService } from '../../services';
|
|
3
|
+
import { PoPopupAction } from '../po-popup';
|
|
4
|
+
import { PoTagType } from '../po-tag';
|
|
2
5
|
import * as i0 from "@angular/core";
|
|
3
6
|
/**
|
|
4
7
|
*
|
|
@@ -13,6 +16,10 @@ import * as i0 from "@angular/core";
|
|
|
13
16
|
* Para controlar sua largura, é possível utilizar o [Grid System](/guides/grid-system) para um maior
|
|
14
17
|
* controle de seu redimensionamento, assim possibilitando o tratamento para diferentes resoluções.
|
|
15
18
|
*
|
|
19
|
+
* #### Boas práticas
|
|
20
|
+
*
|
|
21
|
+
* Utilize um tamanho mínimo de largura de aproximadamente `18.75rem` no componente.
|
|
22
|
+
*
|
|
16
23
|
* #### Acessibilidade tratada no componente
|
|
17
24
|
*
|
|
18
25
|
* Algumas diretrizes de acessibilidade já são tratadas no componente, internamente, e não podem ser alteradas. São elas:
|
|
@@ -27,35 +34,174 @@ import * as i0 from "@angular/core";
|
|
|
27
34
|
*
|
|
28
35
|
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
29
36
|
*
|
|
30
|
-
* | Propriedade | Descrição | Valor Padrão
|
|
31
|
-
*
|
|
32
|
-
* | **Default Values** | |
|
|
33
|
-
* | `--
|
|
34
|
-
* | `--
|
|
35
|
-
* | `--
|
|
36
|
-
* | `--
|
|
37
|
-
* | `--
|
|
38
|
-
* | `--
|
|
39
|
-
* |
|
|
40
|
-
* | `--
|
|
41
|
-
* | `--border-
|
|
42
|
-
* |
|
|
43
|
-
* | `--border-color
|
|
44
|
-
* | `--
|
|
45
|
-
* |
|
|
46
|
-
* |
|
|
47
|
-
* | `--
|
|
37
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
38
|
+
* |----------------------------------------------|------------------------------------------------------------------|-----------------------------------------------------------------------------|
|
|
39
|
+
* | **Default Values** | | |
|
|
40
|
+
* | `--font-family` | Família tipográfica usada | `var(--font-family-theme) ` |
|
|
41
|
+
* | `--font-size` | Tamanho da fonte | `var(--font-size-sm)` |
|
|
42
|
+
* | `--font-weight` | Peso da fonte | `var(--font-weight-bold)` |
|
|
43
|
+
* | `--font-color` | Cor da fonte | `var(--color-neutral-dark-95)` |
|
|
44
|
+
* | `--padding` - `@deprecated 21.x.x` | Preenchimento do componente | `1rem` |
|
|
45
|
+
* | `--padding-header` | Preenchimento do header | `var(--spacing-sm) var(--spacing-sm) var(--spacing-xs) var(--spacing-sm)` |
|
|
46
|
+
* | `--padding-body` | Preenchimento do body | `var(--spacing-xs) var(--spacing-sm) var(--spacing-xs) var(--spacing-sm)` |
|
|
47
|
+
* | `--padding-footer` | Preenchimento do footer | `var(--spacing-xs) var(--spacing-sm) var(--spacing-sm) var(--spacing-sm)` |
|
|
48
|
+
* | `--border-radius` | Contém o valor do raio dos cantos do elemento | `var(--border-radius-md)` |
|
|
49
|
+
* | `--border-width` | Contém o valor da largura dos cantos do elemento | `var(--border-width-sm)` |
|
|
50
|
+
* | `--border-color` | Cor da borda | `var(--color-neutral-light-20)` |
|
|
51
|
+
* | `--background` | Cor de background | `var(--color-neutral-light-00)` |
|
|
52
|
+
* | `--shadow` | Contém o valor da sombra do elemento | `var(--shadow-md)` |
|
|
53
|
+
* | **Hover** | | |
|
|
54
|
+
* | `--border-color-hover` | Cor da borda no estado hover | `var(--color-brand-01-dark)` |
|
|
55
|
+
* | **Focused** | | |
|
|
56
|
+
* | `--color-focused` | Cor principal no estado de focus | `var(--color-action-default)` |
|
|
57
|
+
* | `--outline-color-focused` | Cor do outline do estado de focus | `var(--color-action-focus)` |
|
|
48
58
|
*
|
|
49
59
|
*/
|
|
50
60
|
export declare abstract class PoWidgetBaseComponent {
|
|
61
|
+
protected poThemeService: PoThemeService;
|
|
62
|
+
private _size?;
|
|
51
63
|
/** Descrição da segunda ação. */
|
|
64
|
+
/**
|
|
65
|
+
* @optional
|
|
66
|
+
*
|
|
67
|
+
* @description
|
|
68
|
+
* Define o label e exibe a ação secundária no footer do componente.
|
|
69
|
+
*
|
|
70
|
+
* > Exibida apenas quando `p-primary-label` estiver definida.
|
|
71
|
+
*/
|
|
52
72
|
secondaryLabel?: string;
|
|
53
73
|
/**
|
|
54
74
|
* @optional
|
|
55
75
|
*
|
|
56
76
|
* @description
|
|
57
77
|
*
|
|
58
|
-
*
|
|
78
|
+
* Caso verdadeiro o botão da ação `p-primary-label` ativará o modo `danger`.
|
|
79
|
+
*
|
|
80
|
+
* > Incompatível com o tipo **tertiary** da propriedade `p-kind-primary-action`.
|
|
81
|
+
*
|
|
82
|
+
* @default `false`
|
|
83
|
+
*/
|
|
84
|
+
dangerPrimaryAction: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* @optional
|
|
87
|
+
*
|
|
88
|
+
* @description
|
|
89
|
+
*
|
|
90
|
+
* Caso verdadeiro o botão da ação `p-secondary-label` ativará o modo `danger`.
|
|
91
|
+
*
|
|
92
|
+
* > Incompatível com o tipo **tertiary** da propriedade `p-kind-primary-action`.
|
|
93
|
+
*
|
|
94
|
+
* @default `false`
|
|
95
|
+
*/
|
|
96
|
+
dangerSecondaryAction: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* @optional
|
|
99
|
+
*
|
|
100
|
+
* @description
|
|
101
|
+
*
|
|
102
|
+
* Define o estilo do botão da ação `p-primary-label`, conforme o enum `PoButtonKind`.
|
|
103
|
+
*
|
|
104
|
+
* @default `tertiary`
|
|
105
|
+
*/
|
|
106
|
+
kindPrimaryAction?: string;
|
|
107
|
+
/**
|
|
108
|
+
* @optional
|
|
109
|
+
*
|
|
110
|
+
* @description
|
|
111
|
+
*
|
|
112
|
+
* Define o estilo do botão da ação `p-secondary-label`, conforme o enum `PoButtonKind`.
|
|
113
|
+
*
|
|
114
|
+
* @default `tertiary`
|
|
115
|
+
*/
|
|
116
|
+
kindSecondaryAction?: string;
|
|
117
|
+
/**
|
|
118
|
+
* @optional
|
|
119
|
+
*
|
|
120
|
+
* @description
|
|
121
|
+
*
|
|
122
|
+
* Label da tag exibida no header.
|
|
123
|
+
*
|
|
124
|
+
* > Quando a tag atingir uma largura máxima de 15rem (240px), será truncado com reticências.
|
|
125
|
+
* O conteúdo completo poderá ser visualizado ao passar o mouse sobre a tag, por meio do tooltip.
|
|
126
|
+
*/
|
|
127
|
+
tagLabel?: string;
|
|
128
|
+
/**
|
|
129
|
+
* @optional
|
|
130
|
+
*
|
|
131
|
+
* @description
|
|
132
|
+
*
|
|
133
|
+
* Define o tipo da `p-tag`, conforme o enum **PoTagType**.
|
|
134
|
+
*
|
|
135
|
+
* Valores válidos:
|
|
136
|
+
* - `success`: cor verde utilizada para simbolizar sucesso ou êxito.
|
|
137
|
+
* - `warning`: cor amarela que representa aviso ou advertência.
|
|
138
|
+
* - `danger`: cor vermelha para erro ou aviso crítico.
|
|
139
|
+
* - `info`: cor azul claro que caracteriza conteúdo informativo.
|
|
140
|
+
* - `neutral`: cor cinza claro para uso geral.
|
|
141
|
+
*
|
|
142
|
+
* @default `success`
|
|
143
|
+
*/
|
|
144
|
+
tagType: PoTagType | string;
|
|
145
|
+
/**
|
|
146
|
+
* @optional
|
|
147
|
+
*
|
|
148
|
+
* @description
|
|
149
|
+
*
|
|
150
|
+
* Define o ícone exibido ao lado do label da `p-tag`.
|
|
151
|
+
*
|
|
152
|
+
* É possível usar qualquer um dos ícones da [Biblioteca de ícones PO UI](https://po-ui.io/icons), conforme exemplo:
|
|
153
|
+
* ```
|
|
154
|
+
* <po-widget p-tag-icon="an an-user"></po-widget>
|
|
155
|
+
* ```
|
|
156
|
+
* Também é possível utilizar outras fontes de ícones, por exemplo a biblioteca *Font Awesome*, desde que a biblioteca
|
|
157
|
+
* esteja carregada no projeto:
|
|
158
|
+
* ```
|
|
159
|
+
* <po-widget p-tag-icon="fa fa-podcast"></po-widget>
|
|
160
|
+
* ```
|
|
161
|
+
*
|
|
162
|
+
* Outra opção seria a customização do ícone através do `TemplateRef`, conforme exemplo abaixo:
|
|
163
|
+
* ```
|
|
164
|
+
* <po-widget [p-tag-icon]="template"></po-widget>
|
|
165
|
+
*
|
|
166
|
+
* <ng-template #template>
|
|
167
|
+
* <i class="fa fa-podcast" style="font-size: inherit;"></i>
|
|
168
|
+
* </ng-template>
|
|
169
|
+
* ```
|
|
170
|
+
* > Para o ícone enquadrar corretamente, deve-se utilizar `font-size: inherit` caso o ícone utilizado não aplique-o.
|
|
171
|
+
*/
|
|
172
|
+
tagIcon: string | TemplateRef<void>;
|
|
173
|
+
/**
|
|
174
|
+
* @optional
|
|
175
|
+
*
|
|
176
|
+
* @description
|
|
177
|
+
*
|
|
178
|
+
* Lista de ações exibidas no header do componente.
|
|
179
|
+
* As propriedades das ações seguem a interface `PoPopupAction`.
|
|
180
|
+
*/
|
|
181
|
+
actions: Array<PoPopupAction>;
|
|
182
|
+
/**
|
|
183
|
+
* @optional
|
|
184
|
+
*
|
|
185
|
+
* @description
|
|
186
|
+
*
|
|
187
|
+
* Define o tamanho dos botões do componente:
|
|
188
|
+
* - `small`: altura de 32px (disponível apenas para acessibilidade AA).
|
|
189
|
+
* - `medium`: altura de 44px.
|
|
190
|
+
*
|
|
191
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
192
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
193
|
+
*
|
|
194
|
+
* @default `medium`
|
|
195
|
+
*/
|
|
196
|
+
set size(value: string);
|
|
197
|
+
get size(): string;
|
|
198
|
+
/**
|
|
199
|
+
* @optional
|
|
200
|
+
*
|
|
201
|
+
* @description
|
|
202
|
+
*
|
|
203
|
+
* Evento disparado quando o usuário clicar no componente.
|
|
204
|
+
* > Quando este evento está em uso, uma sombra (shadow) é aplicada automaticamente ao componente.
|
|
59
205
|
*/
|
|
60
206
|
click: EventEmitter<MouseEvent | KeyboardEvent>;
|
|
61
207
|
/**
|
|
@@ -63,7 +209,7 @@ export declare abstract class PoWidgetBaseComponent {
|
|
|
63
209
|
*
|
|
64
210
|
* @description
|
|
65
211
|
*
|
|
66
|
-
*
|
|
212
|
+
* Evento disparado quando a propriedade `p-disabled` for alterada.
|
|
67
213
|
*/
|
|
68
214
|
onDisabled: EventEmitter<any>;
|
|
69
215
|
/**
|
|
@@ -71,7 +217,7 @@ export declare abstract class PoWidgetBaseComponent {
|
|
|
71
217
|
*
|
|
72
218
|
* @description
|
|
73
219
|
*
|
|
74
|
-
*
|
|
220
|
+
* Evento disparado ao clicar na ação `p-primary-label`.
|
|
75
221
|
*/
|
|
76
222
|
primaryAction: EventEmitter<any>;
|
|
77
223
|
/**
|
|
@@ -79,21 +225,21 @@ export declare abstract class PoWidgetBaseComponent {
|
|
|
79
225
|
*
|
|
80
226
|
* @description
|
|
81
227
|
*
|
|
82
|
-
*
|
|
228
|
+
* Evento disparado ao clicar na ação `p-secondary-label`.
|
|
83
229
|
*/
|
|
84
230
|
secondaryAction: EventEmitter<any>;
|
|
85
231
|
/**
|
|
86
232
|
* @optional
|
|
87
233
|
*
|
|
88
234
|
* @description
|
|
89
|
-
*
|
|
235
|
+
* Evento disparado ao clicar em **Configurações** incluído no menu de ações do header.
|
|
90
236
|
*/
|
|
91
237
|
setting: EventEmitter<any>;
|
|
92
238
|
/**
|
|
93
239
|
* @optional
|
|
94
240
|
*
|
|
95
241
|
* @description
|
|
96
|
-
*
|
|
242
|
+
* Evento disparado ao clicar no título definido em `p-title`.
|
|
97
243
|
*/
|
|
98
244
|
titleAction: EventEmitter<any>;
|
|
99
245
|
containerHeight?: string;
|
|
@@ -111,7 +257,7 @@ export declare abstract class PoWidgetBaseComponent {
|
|
|
111
257
|
*
|
|
112
258
|
* @description
|
|
113
259
|
*
|
|
114
|
-
*
|
|
260
|
+
* Define uma imagem de fundo.
|
|
115
261
|
* > Se a imagem escolhida intervir na legibilidade do texto contido no `p-widget`,
|
|
116
262
|
* pode-se utilizar a propriedade `p-primary` em conjunto para que os textos fiquem na cor branca.
|
|
117
263
|
*
|
|
@@ -123,7 +269,7 @@ export declare abstract class PoWidgetBaseComponent {
|
|
|
123
269
|
*
|
|
124
270
|
* @description
|
|
125
271
|
*
|
|
126
|
-
* Desabilita
|
|
272
|
+
* Desabilita o componente.
|
|
127
273
|
*
|
|
128
274
|
* @default `false`
|
|
129
275
|
*/
|
|
@@ -134,9 +280,7 @@ export declare abstract class PoWidgetBaseComponent {
|
|
|
134
280
|
*
|
|
135
281
|
* @description
|
|
136
282
|
*
|
|
137
|
-
* Define a altura do
|
|
138
|
-
* A altura mínima para o `po-widget` depende do que será exibido através das propriedades `p-primary-label`,
|
|
139
|
-
* `p-setting`, `p-help` e `p-title`.
|
|
283
|
+
* Define a altura do componente.
|
|
140
284
|
* > Caso não seja informado valor, a propriedade irá assumir o tamanho do conteúdo.
|
|
141
285
|
*/
|
|
142
286
|
set height(value: number);
|
|
@@ -146,7 +290,7 @@ export declare abstract class PoWidgetBaseComponent {
|
|
|
146
290
|
*
|
|
147
291
|
* @description
|
|
148
292
|
*
|
|
149
|
-
* Link de ajuda
|
|
293
|
+
* Link de ajuda incluído no menu de ações do header.
|
|
150
294
|
*/
|
|
151
295
|
set help(value: string);
|
|
152
296
|
get help(): string;
|
|
@@ -156,7 +300,8 @@ export declare abstract class PoWidgetBaseComponent {
|
|
|
156
300
|
*
|
|
157
301
|
* @description
|
|
158
302
|
*
|
|
159
|
-
* Desabilita a sombra do
|
|
303
|
+
* Desabilita a sombra do componente quando o mesmo for clicável.
|
|
304
|
+
* > A sombra é exibida por padrão apenas quando o evento `p-click` está definido.
|
|
160
305
|
*
|
|
161
306
|
* @default `true`
|
|
162
307
|
*/
|
|
@@ -178,9 +323,8 @@ export declare abstract class PoWidgetBaseComponent {
|
|
|
178
323
|
*
|
|
179
324
|
* @description
|
|
180
325
|
*
|
|
181
|
-
*
|
|
326
|
+
* Define o label e exibe a ação primária no footer do componente.
|
|
182
327
|
*
|
|
183
|
-
* @default `false`
|
|
184
328
|
*/
|
|
185
329
|
set primaryLabel(value: string);
|
|
186
330
|
get primaryLabel(): string;
|
|
@@ -189,13 +333,17 @@ export declare abstract class PoWidgetBaseComponent {
|
|
|
189
333
|
*
|
|
190
334
|
* @description
|
|
191
335
|
*
|
|
192
|
-
* Título do
|
|
336
|
+
* Título do componente.
|
|
193
337
|
*
|
|
194
|
-
*
|
|
338
|
+
* > Quando o conteúdo exceder o espaço disponível, o texto será truncado com reticências. O conteúdo completo poderá
|
|
339
|
+
* ser visualizado ao passar o mouse sobre a tag, por meio do tooltip.
|
|
195
340
|
*/
|
|
196
341
|
set title(value: string);
|
|
197
342
|
get title(): string;
|
|
343
|
+
constructor(poThemeService: PoThemeService);
|
|
198
344
|
abstract setHeight(height: number): any;
|
|
199
345
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoWidgetBaseComponent, never>;
|
|
200
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoWidgetBaseComponent, never, never, { "secondaryLabel": { "alias": "p-secondary-label"; "required": false; }; "background": { "alias": "p-background"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "height": { "alias": "p-height"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "noShadow": { "alias": "p-no-shadow"; "required": false; }; "primary": { "alias": "p-primary"; "required": false; }; "primaryLabel": { "alias": "p-primary-label"; "required": false; }; "title": { "alias": "p-title"; "required": false; }; }, { "click": "p-click"; "onDisabled": "p-on-disabled"; "primaryAction": "p-primary-action"; "secondaryAction": "p-secondary-action"; "setting": "p-setting"; "titleAction": "p-title-action"; }, never, never, true, never>;
|
|
346
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoWidgetBaseComponent, never, never, { "secondaryLabel": { "alias": "p-secondary-label"; "required": false; }; "dangerPrimaryAction": { "alias": "p-danger-primary-action"; "required": false; }; "dangerSecondaryAction": { "alias": "p-danger-secondary-action"; "required": false; }; "kindPrimaryAction": { "alias": "p-kind-primary-action"; "required": false; }; "kindSecondaryAction": { "alias": "p-kind-secondary-action"; "required": false; }; "tagLabel": { "alias": "p-tag"; "required": false; }; "tagType": { "alias": "p-tag-type"; "required": false; }; "tagIcon": { "alias": "p-tag-icon"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "background": { "alias": "p-background"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "height": { "alias": "p-height"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "noShadow": { "alias": "p-no-shadow"; "required": false; }; "primary": { "alias": "p-primary"; "required": false; }; "primaryLabel": { "alias": "p-primary-label"; "required": false; }; "title": { "alias": "p-title"; "required": false; }; }, { "click": "p-click"; "onDisabled": "p-on-disabled"; "primaryAction": "p-primary-action"; "secondaryAction": "p-secondary-action"; "setting": "p-setting"; "titleAction": "p-title-action"; }, never, never, true, never>;
|
|
347
|
+
static ngAcceptInputType_dangerPrimaryAction: any;
|
|
348
|
+
static ngAcceptInputType_dangerSecondaryAction: any;
|
|
201
349
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { OnInit, ViewContainerRef } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { PoLanguageService, PoThemeService } from '../../services';
|
|
3
|
+
import { PoButtonComponent } from '../po-button';
|
|
4
|
+
import { PoPopupComponent } from '../po-popup';
|
|
2
5
|
import { PoWidgetBaseComponent } from './po-widget-base.component';
|
|
3
6
|
import * as i0 from "@angular/core";
|
|
4
7
|
/**
|
|
@@ -27,19 +30,38 @@ import * as i0 from "@angular/core";
|
|
|
27
30
|
* </example>
|
|
28
31
|
*
|
|
29
32
|
*/
|
|
30
|
-
export declare class PoWidgetComponent extends PoWidgetBaseComponent implements OnInit {
|
|
33
|
+
export declare class PoWidgetComponent extends PoWidgetBaseComponent implements OnInit, OnChanges, AfterViewInit {
|
|
34
|
+
protected cd: ChangeDetectorRef;
|
|
35
|
+
protected poTheme: PoThemeService;
|
|
36
|
+
popupTarget: any;
|
|
37
|
+
literals: any;
|
|
38
|
+
hasContent: boolean;
|
|
39
|
+
poPopupComponent: PoPopupComponent;
|
|
40
|
+
buttonPopUp: PoButtonComponent;
|
|
41
|
+
wrapperInfo: ElementRef;
|
|
42
|
+
wrapperTitle: ElementRef;
|
|
43
|
+
tagElement: ElementRef;
|
|
44
|
+
contentContainer: ElementRef<HTMLElement>;
|
|
31
45
|
get showTitleAction(): boolean;
|
|
32
|
-
constructor(viewRef: ViewContainerRef);
|
|
46
|
+
constructor(viewRef: ViewContainerRef, languageService: PoLanguageService, cd: ChangeDetectorRef, poTheme: PoThemeService);
|
|
47
|
+
ngAfterViewInit(): void;
|
|
48
|
+
get a11Level(): import("../../services").PoThemeA11yEnum;
|
|
49
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
33
50
|
ngOnInit(): void;
|
|
34
51
|
hasTitleHelpOrSetting(): boolean;
|
|
35
52
|
onClick(event: MouseEvent): void;
|
|
36
53
|
onKeyDown(event: KeyboardEvent): void;
|
|
37
|
-
openHelp(
|
|
38
|
-
runPrimaryAction(
|
|
39
|
-
runSecondaryAction(
|
|
54
|
+
openHelp(): void;
|
|
55
|
+
runPrimaryAction(): void;
|
|
56
|
+
runSecondaryAction(): void;
|
|
40
57
|
runTitleAction(event: MouseEvent): void;
|
|
41
58
|
setHeight(height: number): void;
|
|
42
|
-
settingOutput(
|
|
59
|
+
settingOutput(): void;
|
|
60
|
+
togglePopup(targetRef: any, event: any): void;
|
|
61
|
+
showTooltip(): boolean;
|
|
62
|
+
closePopUp(): void;
|
|
63
|
+
private checkDefaultActions;
|
|
64
|
+
private updateContent;
|
|
43
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoWidgetComponent, never>;
|
|
44
66
|
static ɵcmp: i0.ɵɵComponentDeclaration<PoWidgetComponent, "po-widget", never, {}, {}, never, ["*"], false, never>;
|
|
45
67
|
}
|
|
@@ -3,6 +3,10 @@ import * as i1 from "./po-widget.component";
|
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "../po-container/po-container.module";
|
|
5
5
|
import * as i4 from "../po-icon/po-icon.module";
|
|
6
|
+
import * as i5 from "../po-tag/po-tag.module";
|
|
7
|
+
import * as i6 from "../po-button/po-button.module";
|
|
8
|
+
import * as i7 from "../po-popup/po-popup.module";
|
|
9
|
+
import * as i8 from "../../directives/po-tooltip/po-tooltip.module";
|
|
6
10
|
/**
|
|
7
11
|
* @description
|
|
8
12
|
*
|
|
@@ -10,6 +14,6 @@ import * as i4 from "../po-icon/po-icon.module";
|
|
|
10
14
|
*/
|
|
11
15
|
export declare class PoWidgetModule {
|
|
12
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoWidgetModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoWidgetModule, [typeof i1.PoWidgetComponent], [typeof i2.CommonModule, typeof i3.PoContainerModule, typeof i4.PoIconModule], [typeof i1.PoWidgetComponent]>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoWidgetModule, [typeof i1.PoWidgetComponent], [typeof i2.CommonModule, typeof i3.PoContainerModule, typeof i4.PoIconModule, typeof i5.PoTagModule, typeof i6.PoButtonModule, typeof i7.PoPopupModule, typeof i8.PoTooltipModule], [typeof i1.PoWidgetComponent]>;
|
|
14
18
|
static ɵinj: i0.ɵɵInjectorDeclaration<PoWidgetModule>;
|
|
15
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.23.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.23.0",
|
|
26
|
+
"@po-ui/ng-schematics": "19.23.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.23.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.23.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.23.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.23.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.23.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.23.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.23.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.23.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.23.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.23.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.23.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.23.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
11
11
|
}
|
|
12
12
|
function postUpdate() {
|
|
13
13
|
return (_, context) => {
|