@po-ui/ng-components 19.31.0 → 19.33.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 +3765 -2740
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-breadcrumb/po-breadcrumb-base.component.d.ts +16 -1
- package/lib/components/po-chart/interfaces/po-chart-serie.interface.d.ts +3 -2
- package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts +18 -5
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.d.ts +2 -2
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.d.ts +16 -1
- package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +6 -8
- package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +3 -12
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +6 -8
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +7 -12
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group.module.d.ts +2 -1
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +6 -8
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +5 -12
- package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +5 -7
- package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +7 -14
- package/lib/components/po-field/po-datepicker/po-datepicker.module.d.ts +2 -1
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +5 -7
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +4 -12
- package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +3 -4
- package/lib/components/po-field/po-email/po-email.component.d.ts +3 -3
- package/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.d.ts +3 -1
- package/lib/components/po-field/po-field-container/po-field-container.component.d.ts +3 -1
- package/lib/components/po-field/po-field.model.d.ts +7 -16
- package/lib/components/po-field/po-field.module.d.ts +6 -5
- package/lib/components/po-field/po-input/po-input-base.component.d.ts +12 -19
- package/lib/components/po-field/po-input/po-input.component.d.ts +3 -3
- package/lib/components/po-field/po-input-generic/po-input-generic.d.ts +0 -2
- package/lib/components/po-field/po-login/po-login.component.d.ts +3 -1
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +6 -8
- package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.d.ts +1 -1
- package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +8 -14
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +6 -8
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +4 -12
- package/lib/components/po-field/po-number/po-number.component.d.ts +3 -2
- package/lib/components/po-field/po-password/po-password.component.d.ts +3 -1
- package/lib/components/po-field/po-radio/po-radio.component.d.ts +11 -1
- package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +6 -8
- package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +7 -12
- package/lib/components/po-field/po-radio-group/po-radio-group.module.d.ts +2 -1
- package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +6 -8
- package/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.d.ts +1 -2
- package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +4 -10
- package/lib/components/po-field/po-select/po-select.component.d.ts +7 -14
- package/lib/components/po-field/po-switch/po-switch.component.d.ts +33 -6
- package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +6 -8
- package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +7 -12
- 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 +119 -10
- 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 +33 -15
- package/lib/components/po-field/po-url/po-url.component.d.ts +3 -2
- package/lib/components/po-helper/po-helper-base.component.d.ts +12 -1
- package/lib/components/po-helper/po-helper.component.d.ts +1 -0
- package/lib/components/po-info/po-info-base.component.d.ts +16 -1
- package/lib/components/po-loading/po-loading-base.component.d.ts +7 -4
- package/lib/components/po-page/po-page-default/po-page-default-base.component.d.ts +9 -8
- package/lib/components/po-page/po-page-detail/po-page-detail-base.component.d.ts +14 -0
- package/lib/components/po-page/po-page-edit/po-page-edit-base.component.d.ts +14 -0
- package/lib/components/po-page/po-page-header/po-page-header-base.component.d.ts +3 -1
- package/lib/components/po-page/po-page-list/po-page-list-base.component.d.ts +14 -0
- package/lib/components/po-popover/po-popover-base.component.d.ts +13 -1
- package/lib/components/po-popover/po-popover.component.d.ts +11 -0
- package/lib/components/po-search/po-search-base.component.d.ts +17 -1
- package/lib/components/po-search/po-search.component.d.ts +1 -1
- package/lib/components/po-table/enums/po-table-spacing.enum.d.ts +1 -1
- package/lib/components/po-tag/po-tag-base.component.d.ts +1 -0
- package/lib/enums/po-density-mode.enum.d.ts +14 -0
- package/lib/enums/po-field-size.enum.d.ts +5 -3
- package/lib/services/po-theme/helpers/accessibilities/po-theme-density.constant.d.ts +12 -0
- package/lib/services/po-theme/po-theme.module.d.ts +1 -1
- package/lib/services/po-theme/po-theme.service.d.ts +39 -11
- package/lib/utils/util.d.ts +9 -2
- package/package.json +4 -4
- package/po-ui-ng-components-19.33.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.31.0.tgz +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
|
|
3
3
|
import { PoLanguageService } from '../../../services/po-language/po-language.service';
|
|
4
|
+
import { PoModalAction } from '../../po-modal';
|
|
4
5
|
import { PoProgressAction } from '../../po-progress';
|
|
5
6
|
import { PoUploadFileRestrictions } from './interfaces/po-upload-file-restriction.interface';
|
|
6
7
|
import { PoUploadLiterals } from './interfaces/po-upload-literals.interface';
|
|
@@ -27,6 +28,44 @@ export declare const poUploadLiteralsDefault: {
|
|
|
27
28
|
* - Função de sucesso que será disparada quando os arquivos forem enviados com sucesso.
|
|
28
29
|
* - Função de erro que será disparada quando houver erro no envio dos arquivos.
|
|
29
30
|
* - Permite habilitar uma área onde os arquivos podem ser arrastados.
|
|
31
|
+
*
|
|
32
|
+
* #### Tokens customizáveis
|
|
33
|
+
*
|
|
34
|
+
* É possível alterar o estilo do componente usando os seguintes tokens (CSS):
|
|
35
|
+
*
|
|
36
|
+
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
37
|
+
*
|
|
38
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
39
|
+
* |----------------------------------------|-------------------------------------------------------|---------------------------------------------------|
|
|
40
|
+
* | **TEXT SUPPORT** | | |
|
|
41
|
+
* | `--font-family-text-support` | Família tipográfica usada no texto de suporte | `var(--font-family-theme)` |
|
|
42
|
+
* | `--text-color-text-support` | Cor da fonte no texto de suporte | `var(--color-neutral-dark-90)` |
|
|
43
|
+
* | **UPLOAD CONTENT** | | |
|
|
44
|
+
* | `--background-color-content` | Cor de fundo | `var(--color-neutral-light-10)` |
|
|
45
|
+
* | `--border-color-content` | Cor da borda | `var(--color-neutral-light-20)` |
|
|
46
|
+
* | `--border-radius-content` | Contém o valor do raio dos cantos do elemento | `var(--border-radius-md)` |
|
|
47
|
+
* | `--text-color-file-name` | Cor do texto do nome do arquivo | `var(--color-neutral-dark-90)` |
|
|
48
|
+
* | `--font-family-file-name` | Família tipográfica usada no texto do arquivo | `var(--font-family-theme)` |
|
|
49
|
+
* | `--text-color-info-bar` | Cor do texto de informação | `var(--color-neutral-mid-60)` |
|
|
50
|
+
* | `--font-family-info-bar` | Família tipográfica usada no texto de informação | `var(--font-family-theme)` |
|
|
51
|
+
* | **ERROR STATE** | | |
|
|
52
|
+
* | `--background-color-content-error` | Cor de fundo do container de erro | `var(--color-neutral-light-00)` |
|
|
53
|
+
* | `--border-color-content-error` | Cor da borda do container de erro | `var(--color-feedback-negative-base)` |
|
|
54
|
+
* | `--text-color-error` | Cor do texto do container de erro | `var(--color-feedback-negative-dark)` |
|
|
55
|
+
* | `--color-icon-error` | Cor do ícone no estado de erro | `var(--color-feedback-negative-base)` |
|
|
56
|
+
* | `--font-family-error` | Família tipográfica usada no texto de erro | `var(--font-family-theme)` |
|
|
57
|
+
* | **UPLOADED STATE** | | |
|
|
58
|
+
* | `--background-color-content-uploaded` | Cor de fundo do container com status de enviado | `var(--color-neutral-light-00)` |
|
|
59
|
+
* | `--border-color-content-uploaded` | Cor da borda do container com status de enviado | `var(--color-neutral-light-20)` |
|
|
60
|
+
* | **INTERACTIVE STATE** | | |
|
|
61
|
+
* | `--text-color-file-name-interactive` | Cor do texto do nome do arquivo quando interativo | `var(--color-action-default)` |
|
|
62
|
+
* | **THUMBNAIL** | | |
|
|
63
|
+
* | `--color-icon-thumbnail` | Cor do ícone na thumbnail | `var(--color-action-default)` |
|
|
64
|
+
* | `--border-width-thumbnail` | Tamanho da fonte na thumbnail | `var(--border-width-sm)` |
|
|
65
|
+
* | `--border-radius-thumbnail` | Contém o valor do raio dos cantos na thumbnail | `var(--border-radius-md)` |
|
|
66
|
+
* | `--background-color-thumbnail` | Cor de fundo na thumbnail | `var(--color-neutral-light-05)` |
|
|
67
|
+
* | **Focused** | | |
|
|
68
|
+
* | `--outline-color-focused` | Cor do outline do estado de focus | `var(--color-action-focus)` |
|
|
30
69
|
*/
|
|
31
70
|
export declare abstract class PoUploadBaseComponent implements ControlValueAccessor, Validator {
|
|
32
71
|
protected uploadService: PoUploadService;
|
|
@@ -39,8 +78,7 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
|
|
|
39
78
|
* @optional
|
|
40
79
|
*
|
|
41
80
|
* @description
|
|
42
|
-
* Exibe um ícone de ajuda adicional
|
|
43
|
-
* Se o evento `p-additional-help` estiver definido, o tooltip não será exibido.
|
|
81
|
+
* Exibe um ícone de ajuda adicional, com o texto desta propriedade sendo passado para o popover do componente `po-helper`.
|
|
44
82
|
* **Como boa prática, indica-se utilizar um texto com até 140 caracteres.**
|
|
45
83
|
* > Requer um recuo mínimo de 8px se o componente estiver próximo à lateral da tela.
|
|
46
84
|
*
|
|
@@ -52,11 +90,11 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
|
|
|
52
90
|
*
|
|
53
91
|
* @description
|
|
54
92
|
*
|
|
55
|
-
* Define que o
|
|
93
|
+
* Define que o popover (`p-helper`) será incluído no body da página e não dentro do componente. Essa
|
|
56
94
|
* opção pode ser necessária em cenários com containers que possuem scroll ou overflow escondido, garantindo o
|
|
57
95
|
* posicionamento correto do tooltip próximo ao elemento.
|
|
58
96
|
*
|
|
59
|
-
* > Quando utilizado com `p-
|
|
97
|
+
* > Quando utilizado com `p-helper`, leitores de tela como o NVDA podem não ler o conteúdo do popover.
|
|
60
98
|
*
|
|
61
99
|
* @default `false`
|
|
62
100
|
*/
|
|
@@ -129,6 +167,19 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
|
|
|
129
167
|
* @default `false`
|
|
130
168
|
*/
|
|
131
169
|
optional: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* @optional
|
|
172
|
+
*
|
|
173
|
+
* @description
|
|
174
|
+
*
|
|
175
|
+
* Exibe a pré-visualização de imagens ao anexá-las.
|
|
176
|
+
*
|
|
177
|
+
* > Propriedade funciona apenas em arquivos de formato de imagem (`.png`, `.jpg`, `.jpeg` e `.gif`).
|
|
178
|
+
* Será ignorada em outros tipos de arquivo.
|
|
179
|
+
*
|
|
180
|
+
* @default `true`
|
|
181
|
+
*/
|
|
182
|
+
showThumbnail: boolean;
|
|
132
183
|
/** Objeto que contém os cabeçalhos que será enviado na requisição dos arquivos. */
|
|
133
184
|
headers: {
|
|
134
185
|
[name: string]: string | Array<string>;
|
|
@@ -156,10 +207,10 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
|
|
|
156
207
|
*
|
|
157
208
|
* @description
|
|
158
209
|
*
|
|
159
|
-
* Define as opções do componente de ajuda (po-helper) que será exibido ao lado do label
|
|
210
|
+
* Define as opções do componente de ajuda (po-helper) que será exibido ao lado do label quando a propriedade `p-label` for definida, ou, ao lado do componente na ausência da propriedade `p-label`.
|
|
211
|
+
* > Para mais informações acesse: https://po-ui.io/documentation/po-helper.
|
|
160
212
|
*
|
|
161
|
-
* >
|
|
162
|
-
* Ao configurar esta propriedade, o antigo ícone de ajuda adicional (`p-additional-help-tooltip` e `p-additional-help`) será ignorado.
|
|
213
|
+
* > Ao configurar esta propriedade, o antigo ícone de ajuda adicional (`p-additional-help-tooltip` e `p-additional-help`) será ignorado.
|
|
163
214
|
*/
|
|
164
215
|
poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
|
|
165
216
|
/**
|
|
@@ -184,7 +235,6 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
|
|
|
184
235
|
*
|
|
185
236
|
* @description
|
|
186
237
|
* Evento disparado ao clicar no ícone de ajuda adicional.
|
|
187
|
-
* Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
|
|
188
238
|
*
|
|
189
239
|
* > Essa propriedade está **depreciada** e será removida na versão `23.x.x`. Recomendamos utilizar a propriedade `p-helper` que oferece mais recursos e flexibilidade.
|
|
190
240
|
*/
|
|
@@ -227,6 +277,38 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
|
|
|
227
277
|
* ```
|
|
228
278
|
*/
|
|
229
279
|
customAction?: PoProgressAction;
|
|
280
|
+
/**
|
|
281
|
+
* @optional
|
|
282
|
+
*
|
|
283
|
+
* @description
|
|
284
|
+
*
|
|
285
|
+
* Define uma ou duas ações personalizadas do modal de pré-visualização, adicionando um botão ou dois botões no canto inferior direito
|
|
286
|
+
* do modal.
|
|
287
|
+
*
|
|
288
|
+
* A ação deve implementar a interface **PoModalAction**, permitindo configurar propriedades como:
|
|
289
|
+
* - `label`: Texto do botão.
|
|
290
|
+
* - `action`: Ícone a ser exibido no botão.
|
|
291
|
+
* - `danger`: Define a propriedade `p-danger` do botão.
|
|
292
|
+
* - `disabled`: Indica se o botão deve estar desabilitado.
|
|
293
|
+
* - `visible`: Indica se o botão deve estar visível.
|
|
294
|
+
*
|
|
295
|
+
* **Exemplo de uso:**
|
|
296
|
+
*
|
|
297
|
+
* ```html
|
|
298
|
+
* <po-upload
|
|
299
|
+
* [p-custom-modal-actions]="customActions"
|
|
300
|
+
* </po-upload>
|
|
301
|
+
* ```
|
|
302
|
+
*
|
|
303
|
+
* ```typescript
|
|
304
|
+
* customActions: Array<PoModalAction> = [
|
|
305
|
+
* { label: 'Confirmar', action: this.confirmModal.bind(this) },
|
|
306
|
+
* { label: 'Cancelar', action: this.closeModal.bind(this) }
|
|
307
|
+
*];
|
|
308
|
+
*
|
|
309
|
+
* ```
|
|
310
|
+
*/
|
|
311
|
+
customModalActions?: Array<PoModalAction>;
|
|
230
312
|
/**
|
|
231
313
|
* @optional
|
|
232
314
|
*
|
|
@@ -297,6 +379,33 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
|
|
|
297
379
|
* ```
|
|
298
380
|
*/
|
|
299
381
|
onUpload: EventEmitter<any>;
|
|
382
|
+
/**
|
|
383
|
+
* @optional
|
|
384
|
+
*
|
|
385
|
+
* @description
|
|
386
|
+
*
|
|
387
|
+
* Evento será disparado ao clicar no ícone de fechar.
|
|
388
|
+
* > Por parâmetro será passado o objeto do arquivo.
|
|
389
|
+
*/
|
|
390
|
+
onCancel: EventEmitter<any>;
|
|
391
|
+
/**
|
|
392
|
+
* @optional
|
|
393
|
+
*
|
|
394
|
+
* @description
|
|
395
|
+
*
|
|
396
|
+
* Evento será disparado ao abrir o modal de pré-visualização.
|
|
397
|
+
* > Por parâmetro será passado o objeto do arquivo.
|
|
398
|
+
*/
|
|
399
|
+
onOpenModalPreview: EventEmitter<any>;
|
|
400
|
+
/**
|
|
401
|
+
* @optional
|
|
402
|
+
*
|
|
403
|
+
* @description
|
|
404
|
+
*
|
|
405
|
+
* Evento será disparado ao clicar no ícone de remover.
|
|
406
|
+
* > Por parâmetro será passado o objeto do arquivo.
|
|
407
|
+
*/
|
|
408
|
+
onRemove: EventEmitter<any>;
|
|
300
409
|
/**
|
|
301
410
|
* @optional
|
|
302
411
|
*
|
|
@@ -548,10 +657,10 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
|
|
|
548
657
|
private setAllowedExtensions;
|
|
549
658
|
private initRestrictions;
|
|
550
659
|
private updateExistsFileInFiles;
|
|
551
|
-
abstract sendFeedback(): void;
|
|
660
|
+
abstract sendFeedback(file?: any): void;
|
|
552
661
|
abstract setDirectoryAttribute(value: boolean): any;
|
|
553
662
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoUploadBaseComponent, never>;
|
|
554
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoUploadBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "dragDropHeight": { "alias": "p-drag-drop-height"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "url": { "alias": "p-url"; "required": false; }; "name": { "alias": "name"; "required": false; }; "autoUpload": { "alias": "p-auto-upload"; "required": false; }; "disabledRemoveFile": { "alias": "p-disabled-remove-file"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "headers": { "alias": "p-headers"; "required": false; }; "requiredUrl": { "alias": "p-required-url"; "required": false; }; "poHelperComponent": { "alias": "p-helper"; "required": false; "isSignal": true; }; "labelTextWrap": { "alias": "p-label-text-wrap"; "required": false; "isSignal": true; }; "customAction": { "alias": "p-custom-action"; "required": false; }; "directory": { "alias": "p-directory"; "required": false; }; "dragDrop": { "alias": "p-drag-drop"; "required": false; }; "hideRestrictionsInfo": { "alias": "p-hide-restrictions-info"; "required": false; }; "hideSelectButton": { "alias": "p-hide-select-button"; "required": false; }; "hideSendButton": { "alias": "p-hide-send-button"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "fileRestrictions": { "alias": "p-restrictions"; "required": false; }; "formField": { "alias": "p-form-field"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "isMultiple": { "alias": "p-multiple"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "customActionClick": "p-custom-action-click"; "keydown": "p-keydown"; "onUpload": "p-upload"; "onError": "p-error"; "onSuccess": "p-success"; "ngModelChange": "ngModelChange"; }, never, never, true, never>;
|
|
663
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoUploadBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "dragDropHeight": { "alias": "p-drag-drop-height"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "url": { "alias": "p-url"; "required": false; }; "name": { "alias": "name"; "required": false; }; "autoUpload": { "alias": "p-auto-upload"; "required": false; }; "disabledRemoveFile": { "alias": "p-disabled-remove-file"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "showThumbnail": { "alias": "p-show-thumbnail"; "required": false; }; "headers": { "alias": "p-headers"; "required": false; }; "requiredUrl": { "alias": "p-required-url"; "required": false; }; "poHelperComponent": { "alias": "p-helper"; "required": false; "isSignal": true; }; "labelTextWrap": { "alias": "p-label-text-wrap"; "required": false; "isSignal": true; }; "customAction": { "alias": "p-custom-action"; "required": false; }; "customModalActions": { "alias": "p-custom-modal-actions"; "required": false; }; "directory": { "alias": "p-directory"; "required": false; }; "dragDrop": { "alias": "p-drag-drop"; "required": false; }; "hideRestrictionsInfo": { "alias": "p-hide-restrictions-info"; "required": false; }; "hideSelectButton": { "alias": "p-hide-select-button"; "required": false; }; "hideSendButton": { "alias": "p-hide-send-button"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "fileRestrictions": { "alias": "p-restrictions"; "required": false; }; "formField": { "alias": "p-form-field"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "isMultiple": { "alias": "p-multiple"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "customActionClick": "p-custom-action-click"; "keydown": "p-keydown"; "onUpload": "p-upload"; "onCancel": "p-cancel"; "onOpenModalPreview": "p-open-modal-preview"; "onRemove": "p-remove"; "onError": "p-error"; "onSuccess": "p-success"; "ngModelChange": "ngModelChange"; }, never, never, true, never>;
|
|
555
664
|
static ngAcceptInputType_appendBox: any;
|
|
556
665
|
static ngAcceptInputType_autoFocus: any;
|
|
557
666
|
static ngAcceptInputType_disabledRemoveFile: any;
|
|
@@ -8,6 +8,12 @@ export declare class PoUploadFile {
|
|
|
8
8
|
size: number;
|
|
9
9
|
displayName?: string;
|
|
10
10
|
percent?: number;
|
|
11
|
+
sizeNotAllowed?: boolean;
|
|
12
|
+
extensionNotAllowed?: boolean;
|
|
13
|
+
hideDoneContent?: boolean;
|
|
14
|
+
errorMessage?: string;
|
|
15
|
+
thumbnailUrl?: string;
|
|
16
|
+
imageError?: boolean;
|
|
11
17
|
constructor(file: any);
|
|
12
18
|
private getExtension;
|
|
13
19
|
private generateUUID;
|
|
@@ -1,9 +1,11 @@
|
|
|
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';
|
|
8
|
+
import { PoHelperComponent } from '../../po-helper';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
/**
|
|
9
11
|
* @docsExtends PoUploadBaseComponent
|
|
@@ -34,14 +36,21 @@ import * as i0 from "@angular/core";
|
|
|
34
36
|
* <file name="sample-po-upload-download/sample-po-upload-download.component.html"> </file>
|
|
35
37
|
* <file name="sample-po-upload-download/sample-po-upload-download.component.ts"> </file>
|
|
36
38
|
* </example>
|
|
39
|
+
*
|
|
40
|
+
* <example name="po-upload-preview" title="PO Upload - with Preview">
|
|
41
|
+
* <file name="sample-po-upload-preview/sample-po-upload-preview.component.html"> </file>
|
|
42
|
+
* <file name="sample-po-upload-preview/sample-po-upload-preview.component.ts"> </file>
|
|
43
|
+
* </example>
|
|
37
44
|
*/
|
|
38
|
-
export declare class PoUploadComponent extends PoUploadBaseComponent implements AfterViewInit {
|
|
45
|
+
export declare class PoUploadComponent extends PoUploadBaseComponent implements AfterViewInit, OnChanges {
|
|
39
46
|
renderer: Renderer2;
|
|
40
47
|
private i18nPipe;
|
|
41
48
|
private notification;
|
|
42
49
|
private inputFile;
|
|
43
50
|
private poUploadDragDropComponent;
|
|
44
51
|
uploadButton: PoButtonComponent;
|
|
52
|
+
modalComponent: PoModalComponent;
|
|
53
|
+
helperEl?: PoHelperComponent;
|
|
45
54
|
id: string;
|
|
46
55
|
infoByUploadStatus: {
|
|
47
56
|
[key: string]: {
|
|
@@ -54,6 +63,12 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
|
|
|
54
63
|
2: PoProgressStatus;
|
|
55
64
|
};
|
|
56
65
|
private calledByCleanInputValue;
|
|
66
|
+
protected modalPrimaryAction: PoModalAction;
|
|
67
|
+
protected modalSecondaryAction: PoModalAction;
|
|
68
|
+
protected errorMessage: string;
|
|
69
|
+
protected tooltipTitle: string;
|
|
70
|
+
protected modalImageUrl: string;
|
|
71
|
+
protected errorModalImage: boolean;
|
|
57
72
|
constructor();
|
|
58
73
|
get displayDragDrop(): boolean;
|
|
59
74
|
get displaySendButton(): boolean;
|
|
@@ -63,7 +78,8 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
|
|
|
63
78
|
get hasFileNotUploaded(): boolean;
|
|
64
79
|
get isDisabled(): boolean;
|
|
65
80
|
get maxFiles(): number;
|
|
66
|
-
cancel(file: PoUploadFile): void;
|
|
81
|
+
cancel(file: PoUploadFile, keydown?: KeyboardEvent): void;
|
|
82
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
67
83
|
ngAfterViewInit(): void;
|
|
68
84
|
/** Método responsável por **limpar** o(s) arquivo(s) selecionado(s). */
|
|
69
85
|
clear(): void;
|
|
@@ -89,30 +105,27 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
|
|
|
89
105
|
getAdditionalHelpTooltip(): string;
|
|
90
106
|
hasAnyFileUploading(files: Array<PoUploadFile>): boolean;
|
|
91
107
|
isAllowCancelEvent(status: PoUploadStatus): status is PoUploadStatus.Uploading | PoUploadStatus.Error | PoUploadStatus.None;
|
|
92
|
-
onBlur(): void;
|
|
93
108
|
onFileChange(event: any): void;
|
|
94
109
|
onFileChangeDragDrop(files: any): void;
|
|
95
110
|
onKeyDown(event: KeyboardEvent): void;
|
|
111
|
+
/**
|
|
112
|
+
* Método responsável por fechar o modal.
|
|
113
|
+
*/
|
|
114
|
+
closeModal(): void;
|
|
115
|
+
openModal(file: PoUploadFile, keydown?: KeyboardEvent): void;
|
|
96
116
|
removeFile(file: any): void;
|
|
97
117
|
/** Método responsável por **abrir** a janela para seleção de arquivo(s). */
|
|
98
118
|
selectFiles(): void;
|
|
99
|
-
sendFeedback(): void;
|
|
119
|
+
sendFeedback(file?: any): void;
|
|
100
120
|
/** Método responsável por **enviar** o(s) arquivo(s) selecionado(s). */
|
|
101
121
|
sendFiles(): void;
|
|
102
122
|
setDirectoryAttribute(canHandleDirectory: boolean): void;
|
|
103
123
|
/**
|
|
104
|
-
* Método que exibe `p-
|
|
124
|
+
* Método que exibe `p-helper` ou executa a ação definida em `p-helper{eventOnClick}` ou em `p-additionalHelp`.
|
|
105
125
|
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
106
126
|
*
|
|
107
|
-
* > Exibe ou oculta o conteúdo do componente `po-helper` quando o componente estiver com foco
|
|
108
|
-
*
|
|
109
|
-
* <po-upload
|
|
110
|
-
* #upload
|
|
111
|
-
* ...
|
|
112
|
-
* p-additional-help-tooltip="Mensagem de ajuda complementar"
|
|
113
|
-
* (p-keydown)="onKeyDown($event, upload)"
|
|
114
|
-
* ></po-upload>
|
|
115
|
-
* ```
|
|
127
|
+
* > Exibe ou oculta o conteúdo do componente `po-helper` quando o componente estiver com foco.
|
|
128
|
+
*
|
|
116
129
|
* ```
|
|
117
130
|
* //Exemplo com p-label e p-helper
|
|
118
131
|
* <po-upload
|
|
@@ -142,11 +155,16 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
|
|
|
142
155
|
hideAdditionalHelp: boolean;
|
|
143
156
|
helperSettings?: any;
|
|
144
157
|
};
|
|
158
|
+
protected actionIsDisabled(action: any): any;
|
|
159
|
+
protected isActionVisible(action: any): boolean;
|
|
160
|
+
protected onImageError(file: any): void;
|
|
161
|
+
protected showTooltipText(e: MouseEvent, text: string): void;
|
|
145
162
|
private cleanInputValue;
|
|
146
163
|
private isAdditionalHelpEventTriggered;
|
|
147
164
|
private isUploadButtonFocused;
|
|
148
165
|
private responseHandler;
|
|
149
166
|
private setPipeArguments;
|
|
167
|
+
private setPrimaryActionModal;
|
|
150
168
|
private stopUploadHandler;
|
|
151
169
|
private updateFiles;
|
|
152
170
|
private updateModel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { AbstractControl } from '@angular/forms';
|
|
3
3
|
import { PoInputGeneric } from '../po-input-generic/po-input-generic';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -27,7 +27,7 @@ import * as i0 from "@angular/core";
|
|
|
27
27
|
* </example>
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
|
-
export declare class PoUrlComponent extends PoInputGeneric implements AfterViewInit, OnDestroy {
|
|
30
|
+
export declare class PoUrlComponent extends PoInputGeneric implements AfterViewInit, OnDestroy, OnChanges {
|
|
31
31
|
id: string;
|
|
32
32
|
icon: string;
|
|
33
33
|
type: string;
|
|
@@ -37,6 +37,7 @@ export declare class PoUrlComponent extends PoInputGeneric implements AfterViewI
|
|
|
37
37
|
constructor();
|
|
38
38
|
ngAfterViewInit(): void;
|
|
39
39
|
ngOnDestroy(): void;
|
|
40
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
40
41
|
extraValidation(c: AbstractControl): {
|
|
41
42
|
[key: string]: any;
|
|
42
43
|
};
|
|
@@ -106,7 +106,18 @@ export declare class PoHelperBaseComponent {
|
|
|
106
106
|
* @default `false`
|
|
107
107
|
*/
|
|
108
108
|
disabled: import("@angular/core").InputSignal<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* @Input
|
|
111
|
+
*
|
|
112
|
+
* @optional
|
|
113
|
+
*
|
|
114
|
+
* @description
|
|
115
|
+
* Define que o popover será inserido no body da página em vez do elemento definido em `p-target`. Essa opção pode
|
|
116
|
+
* ser necessária em cenários com containers que possuem scroll ou overflow escondido, garantindo o posicionamento
|
|
117
|
+
* correto do conteúdo próximo ao elemento.
|
|
118
|
+
*/
|
|
119
|
+
appendBox: import("@angular/core").InputSignal<boolean>;
|
|
109
120
|
private transformHelper;
|
|
110
121
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoHelperBaseComponent, never>;
|
|
111
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoHelperBaseComponent, "po-helper-base", never, { "helper": { "alias": "p-helper"; "required": false; "isSignal": true; }; "size": { "alias": "p-size"; "required": false; "isSignal": true; }; "disabled": { "alias": "p-disabled"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
122
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoHelperBaseComponent, "po-helper-base", never, { "helper": { "alias": "p-helper"; "required": false; "isSignal": true; }; "size": { "alias": "p-size"; "required": false; "isSignal": true; }; "disabled": { "alias": "p-disabled"; "required": false; "isSignal": true; }; "appendBox": { "alias": "p-append-in-body"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
112
123
|
}
|
|
@@ -41,6 +41,7 @@ export declare class PoHelperComponent extends PoHelperBaseComponent implements
|
|
|
41
41
|
ngOnChanges(changes: SimpleChanges): void;
|
|
42
42
|
ngOnDestroy(): void;
|
|
43
43
|
openHelperPopover(): void;
|
|
44
|
+
helperIsVisible(): boolean;
|
|
44
45
|
closeHelperPopover(): void;
|
|
45
46
|
emitClick(event: MouseEvent): void;
|
|
46
47
|
onKeyDown(event: KeyboardEvent): void;
|
|
@@ -16,6 +16,7 @@ export declare class PoInfoBaseComponent {
|
|
|
16
16
|
readonly poInfoOrientation: typeof PoInfoOrientation;
|
|
17
17
|
private _labelSize;
|
|
18
18
|
private _orientation;
|
|
19
|
+
private _size?;
|
|
19
20
|
/**
|
|
20
21
|
* @optional
|
|
21
22
|
*
|
|
@@ -44,6 +45,20 @@ export declare class PoInfoBaseComponent {
|
|
|
44
45
|
*/
|
|
45
46
|
set orientation(value: PoInfoOrientation);
|
|
46
47
|
get orientation(): PoInfoOrientation;
|
|
48
|
+
/**
|
|
49
|
+
* @optional
|
|
50
|
+
*
|
|
51
|
+
* @description
|
|
52
|
+
*
|
|
53
|
+
* Define o tamanho do componente entre `small` ou `medium`.
|
|
54
|
+
*
|
|
55
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
56
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
57
|
+
*
|
|
58
|
+
* @default `medium`
|
|
59
|
+
*/
|
|
60
|
+
set size(value: string);
|
|
61
|
+
get size(): string;
|
|
47
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoInfoBaseComponent, never>;
|
|
48
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoInfoBaseComponent, never, never, { "label": { "alias": "p-label"; "required": false; }; "url": { "alias": "p-url"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; "labelSize": { "alias": "p-label-size"; "required": false; }; "orientation": { "alias": "p-orientation"; "required": false; }; }, {}, never, never, true, never>;
|
|
63
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoInfoBaseComponent, never, never, { "label": { "alias": "p-label"; "required": false; }; "url": { "alias": "p-url"; "required": false; }; "value": { "alias": "p-value"; "required": false; }; "labelSize": { "alias": "p-label-size"; "required": false; }; "orientation": { "alias": "p-orientation"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, {}, never, never, true, never>;
|
|
49
64
|
}
|
|
@@ -16,7 +16,7 @@ export declare const poLoadingLiteralsDefault: {
|
|
|
16
16
|
* ou aguardando a resposta de alguma requisição.
|
|
17
17
|
*/
|
|
18
18
|
export declare class PoLoadingBaseComponent {
|
|
19
|
-
|
|
19
|
+
protected languageService: PoLanguageService;
|
|
20
20
|
private _text?;
|
|
21
21
|
private _size?;
|
|
22
22
|
/**
|
|
@@ -26,14 +26,17 @@ export declare class PoLoadingBaseComponent {
|
|
|
26
26
|
get text(): string;
|
|
27
27
|
/**
|
|
28
28
|
* Define o tamanho do ícone.
|
|
29
|
-
*
|
|
30
|
-
* @default `lg`
|
|
31
|
-
*
|
|
32
29
|
* Valores válidos:
|
|
33
30
|
* - `xs`: 16px
|
|
34
31
|
* - `sm`: 24px
|
|
35
32
|
* - `md`: 32px
|
|
36
33
|
* - `lg`: 80px
|
|
34
|
+
*
|
|
35
|
+
* > Em nível de acessibilidade **AA**, caso o valor de `p-size` não seja definido, o valor padrão será `sm`
|
|
36
|
+
* > quando o valor padrão dos componentes for configurado como `small` no
|
|
37
|
+
* > [serviço de tema](https://po-ui.io/documentation/po-theme).
|
|
38
|
+
*
|
|
39
|
+
* @default `lg`
|
|
37
40
|
*/
|
|
38
41
|
set size(value: string);
|
|
39
42
|
get size(): string;
|
|
@@ -19,14 +19,15 @@ export declare const poPageDefaultLiteralsDefault: {
|
|
|
19
19
|
*
|
|
20
20
|
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
21
21
|
*
|
|
22
|
-
* | Propriedade
|
|
23
|
-
*
|
|
24
|
-
* | **
|
|
25
|
-
* | `--padding`
|
|
26
|
-
* | `--gap`
|
|
27
|
-
* | `--
|
|
28
|
-
* | `--
|
|
29
|
-
* |
|
|
22
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
23
|
+
* |---------------------|---------------------------------------------|---------------------------------------|
|
|
24
|
+
* | **Header** | | |
|
|
25
|
+
* | `--padding` | Espaçamento do header | `var(--spacing-xs) var(--spacing-md)` |
|
|
26
|
+
* | `--gap` | Espaçamento entre os breadcrumbs e o título | `var(--spacing-md)` |
|
|
27
|
+
* | `--gap-actions` | Espaçamento entre as ações | `var(--spacing-xs)` |
|
|
28
|
+
* | `--font-family` | Família tipográfica do título | `var(--font-family-theme)` |
|
|
29
|
+
* | **Content** | | |
|
|
30
|
+
* | `--padding-content` | Espaçamento do conteúdo | `var(--spacing-xs) var(--spacing-sm)` |
|
|
30
31
|
*/
|
|
31
32
|
export declare abstract class PoPageDefaultBaseComponent {
|
|
32
33
|
poPageContent: PoPageContentComponent;
|
|
@@ -15,6 +15,20 @@ export declare const poPageDetailLiteralsDefault: {
|
|
|
15
15
|
*
|
|
16
16
|
* O componente **po-page-detail** é utilizado como container principal para a tela de
|
|
17
17
|
* detalhamento de um registro, tendo a possibilidade de usar as ações de "Voltar", "Editar" e "Remover".
|
|
18
|
+
*
|
|
19
|
+
* #### Tokens customizáveis
|
|
20
|
+
*
|
|
21
|
+
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
22
|
+
*
|
|
23
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
24
|
+
* |---------------------|---------------------------------------------|---------------------------------------|
|
|
25
|
+
* | **Header** | | |
|
|
26
|
+
* | `--padding` | Espaçamento do header | `var(--spacing-xs) var(--spacing-md)` |
|
|
27
|
+
* | `--gap` | Espaçamento entre os breadcrumbs e o título | `var(--spacing-md)` |
|
|
28
|
+
* | `--gap-actions` | Espaçamento entre as ações | `var(--spacing-xs)` |
|
|
29
|
+
* | `--font-family` | Família tipográfica do título | `var(--font-family-theme)` |
|
|
30
|
+
* | **Content** | | |
|
|
31
|
+
* | `--padding-content` | Espaçamento do conteúdo | `var(--spacing-xs) var(--spacing-sm)` |
|
|
18
32
|
*/
|
|
19
33
|
export declare class PoPageDetailBaseComponent {
|
|
20
34
|
poPageContent: PoPageContentComponent;
|
|
@@ -19,6 +19,20 @@ export declare const poPageEditLiteralsDefault: {
|
|
|
19
19
|
* Os botões "Salvar" e "Salvar e Novo" podem ser habilitados/desabilitados utilizando a propriedade `p-disable-submit`.
|
|
20
20
|
* Esta propriedade pode ser utilizada para desabilitar os botões caso exista um formulário inválido na página ou alguma
|
|
21
21
|
* regra de negócio não tenha sido atendida.
|
|
22
|
+
*
|
|
23
|
+
* #### Tokens customizáveis
|
|
24
|
+
*
|
|
25
|
+
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
26
|
+
*
|
|
27
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
28
|
+
* |---------------------|---------------------------------------------|---------------------------------------|
|
|
29
|
+
* | **Header** | | |
|
|
30
|
+
* | `--padding` | Espaçamento do header | `var(--spacing-xs) var(--spacing-md)` |
|
|
31
|
+
* | `--gap` | Espaçamento entre os breadcrumbs e o título | `var(--spacing-md)` |
|
|
32
|
+
* | `--gap-actions` | Espaçamento entre as ações | `var(--spacing-xs)` |
|
|
33
|
+
* | `--font-family` | Família tipográfica do título | `var(--font-family-theme)` |
|
|
34
|
+
* | **Content** | | |
|
|
35
|
+
* | `--padding-content` | Espaçamento do conteúdo | `var(--spacing-xs) var(--spacing-sm)` |
|
|
22
36
|
*/
|
|
23
37
|
export declare class PoPageEditBaseComponent {
|
|
24
38
|
poPageContent: PoPageContentComponent;
|
|
@@ -11,6 +11,8 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
export declare class PoPageHeaderBaseComponent {
|
|
12
12
|
/** Título da página. */
|
|
13
13
|
title: string;
|
|
14
|
+
/** Define o tamanho dos componentes no header. */
|
|
15
|
+
size: string;
|
|
14
16
|
/** Subtítulo da página. */
|
|
15
17
|
subtitle: string;
|
|
16
18
|
private _breadcrumb;
|
|
@@ -18,5 +20,5 @@ export declare class PoPageHeaderBaseComponent {
|
|
|
18
20
|
set breadcrumb(value: PoBreadcrumb);
|
|
19
21
|
get breadcrumb(): PoBreadcrumb;
|
|
20
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoPageHeaderBaseComponent, never>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoPageHeaderBaseComponent, never, never, { "title": { "alias": "p-title"; "required": false; }; "subtitle": { "alias": "p-subtitle"; "required": false; }; "breadcrumb": { "alias": "p-breadcrumb"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoPageHeaderBaseComponent, never, never, { "title": { "alias": "p-title"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "subtitle": { "alias": "p-subtitle"; "required": false; }; "breadcrumb": { "alias": "p-breadcrumb"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
24
|
}
|
|
@@ -24,6 +24,20 @@ export declare const poPageListLiteralsDefault: {
|
|
|
24
24
|
*
|
|
25
25
|
* Para facilitar a manipulação e visualização dos filtros aplicados, é possível também utilizar o componente
|
|
26
26
|
* [`po-disclaimer-group`](/documentation/po-disclaimer-group).
|
|
27
|
+
*
|
|
28
|
+
* #### Tokens customizáveis
|
|
29
|
+
*
|
|
30
|
+
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
31
|
+
*
|
|
32
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
33
|
+
* |---------------------|---------------------------------------------|---------------------------------------|
|
|
34
|
+
* | **Header** | | |
|
|
35
|
+
* | `--padding` | Espaçamento do header | `var(--spacing-xs) var(--spacing-md)` |
|
|
36
|
+
* | `--gap` | Espaçamento entre os breadcrumbs e o título | `var(--spacing-md)` |
|
|
37
|
+
* | `--gap-actions` | Espaçamento entre as ações | `var(--spacing-xs)` |
|
|
38
|
+
* | `--font-family` | Família tipográfica do título | `var(--font-family-theme)` |
|
|
39
|
+
* | **Content** | | |
|
|
40
|
+
* | `--padding-content` | Espaçamento do conteúdo | `var(--spacing-xs) var(--spacing-sm)` |
|
|
27
41
|
*/
|
|
28
42
|
export declare abstract class PoPageListBaseComponent {
|
|
29
43
|
poPageContent: PoPageContentComponent;
|
|
@@ -141,7 +141,19 @@ export declare class PoPopoverBaseComponent {
|
|
|
141
141
|
*/
|
|
142
142
|
set trigger(value: string);
|
|
143
143
|
get trigger(): string;
|
|
144
|
+
/**
|
|
145
|
+
* @Input
|
|
146
|
+
*
|
|
147
|
+
* @optional
|
|
148
|
+
*
|
|
149
|
+
* @description
|
|
150
|
+
* Permite a inclusão de classes CSS customizadas ao componente.
|
|
151
|
+
*
|
|
152
|
+
* Exemplo: `p-custom-classes="minha-classe-1 minha-classe-2"`.
|
|
153
|
+
*
|
|
154
|
+
*/
|
|
155
|
+
customClasses: import("@angular/core").InputSignal<string>;
|
|
144
156
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoPopoverBaseComponent, never>;
|
|
145
|
-
static
|
|
157
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoPopoverBaseComponent, "po-popover-base", never, { "appendBox": { "alias": "p-append-in-body"; "required": false; }; "target": { "alias": "p-target"; "required": false; }; "title": { "alias": "p-title"; "required": false; }; "hideArrow": { "alias": "p-hide-arrow"; "required": false; }; "position": { "alias": "p-position"; "required": false; }; "trigger": { "alias": "p-trigger"; "required": false; }; "customClasses": { "alias": "p-custom-classes"; "required": false; "isSignal": true; }; }, { "closePopover": "p-close"; }, never, never, false, never>;
|
|
146
158
|
static ngAcceptInputType_appendBox: any;
|
|
147
159
|
}
|
|
@@ -32,7 +32,10 @@ export declare class PoPopoverComponent extends PoPopoverBaseComponent implement
|
|
|
32
32
|
timeoutResize: any;
|
|
33
33
|
targetElement: any;
|
|
34
34
|
afterViewInitWasCalled: boolean;
|
|
35
|
+
private keydownTargetListener?;
|
|
36
|
+
private keydownPopoverListener?;
|
|
35
37
|
eventListenerFunction: () => void;
|
|
38
|
+
private readonly tabbableSelector;
|
|
36
39
|
constructor(renderer: Renderer2, poControlPosition: PoControlPositionService, cd: ChangeDetectorRef);
|
|
37
40
|
ngOnChanges(changes: SimpleChanges): void;
|
|
38
41
|
ngAfterViewInit(): void;
|
|
@@ -50,6 +53,14 @@ export declare class PoPopoverComponent extends PoPopoverBaseComponent implement
|
|
|
50
53
|
private initEventListenerFunction;
|
|
51
54
|
private removeListeners;
|
|
52
55
|
private setElementsControlPosition;
|
|
56
|
+
private focusOnTarget;
|
|
57
|
+
private focusOnFirstFocusable;
|
|
58
|
+
private attachPopoverKeydown;
|
|
59
|
+
private isVisible;
|
|
60
|
+
private getTabbablesIn;
|
|
61
|
+
private getDocumentTabbables;
|
|
62
|
+
private focusNextAfterTarget;
|
|
63
|
+
private focusPrevBeforeTarget;
|
|
53
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoPopoverComponent, never>;
|
|
54
65
|
static ɵcmp: i0.ɵɵComponentDeclaration<PoPopoverComponent, "po-popover", never, {}, {}, never, ["*"], false, never>;
|
|
55
66
|
}
|