@po-ui/ng-components 21.32.0 → 21.33.0-beta.1
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-DEB6M6ER.mjs → po-ui-ng-components-po-chart-modal-table.component-B4RdhBpp.mjs} +4 -4
- package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-DEB6M6ER.mjs.map → po-ui-ng-components-po-chart-modal-table.component-B4RdhBpp.mjs.map} +1 -1
- package/fesm2022/po-ui-ng-components.mjs +5633 -3798
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-dropdown/po-dropdown-base.component.d.ts +40 -3
- package/lib/components/po-dropdown/po-dropdown.component.d.ts +7 -0
- package/lib/components/po-field/index.d.ts +1 -0
- package/lib/components/po-field/po-lookup/interfaces/po-lookup-advanced-filter.interface.d.ts +18 -0
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +14 -0
- package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts +1 -0
- package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.d.ts +2 -0
- package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +6 -0
- package/lib/components/po-list-view/enums/po-list-view-detail-display.enum.d.ts +14 -0
- package/lib/components/po-list-view/index.d.ts +2 -0
- package/lib/components/po-list-view/interfaces/po-list-view-field-properties.interface.d.ts +71 -0
- package/lib/components/po-list-view/interfaces/po-list-view-literals.interface.d.ts +2 -0
- package/lib/components/po-list-view/po-list-view-base.component.d.ts +276 -34
- package/lib/components/po-list-view/po-list-view-detail-template/po-list-view-detail-template.directive.d.ts +6 -0
- package/lib/components/po-list-view/po-list-view.component.d.ts +70 -4
- package/lib/components/po-list-view/po-list-view.module.d.ts +0 -37
- package/lib/components/po-listbox/interfaces/po-listbox-literals.interface.d.ts +6 -0
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +1 -0
- package/lib/components/po-listbox/po-listbox.component.d.ts +28 -5
- package/lib/components/po-popup/po-popup-action.interface.d.ts +25 -2
- package/lib/components/po-popup/po-popup-base.component.d.ts +55 -3
- package/lib/components/po-popup/po-popup.component.d.ts +7 -1
- package/lib/components/po-tree-view/po-tree-view-base.component.d.ts +132 -51
- package/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.d.ts +15 -9
- package/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.interface.d.ts +92 -10
- package/lib/components/po-tree-view/po-tree-view-item-content/po-tree-view-item-content.component.d.ts +36 -0
- package/lib/components/po-tree-view/po-tree-view-item-content/po-tree-view-item-content.literals.d.ts +18 -0
- package/lib/components/po-tree-view/po-tree-view.component.d.ts +16 -5
- package/lib/components/po-tree-view/po-tree-view.literals.d.ts +26 -0
- package/lib/components/po-tree-view/po-tree-view.module.d.ts +0 -38
- package/lib/components/po-tree-view/services/po-tree-view-keyboard.service.d.ts +27 -0
- package/lib/components/po-tree-view/services/po-tree-view.service.d.ts +3 -0
- package/lib/components/po-widget/interfaces/po-widget-selection.interface.d.ts +23 -0
- package/lib/components/po-widget/po-widget-base.component.d.ts +28 -0
- package/lib/components/po-widget/po-widget.component.d.ts +6 -0
- package/lib/services/po-notification/po-notification-base.service.d.ts +1 -0
- package/package.json +4 -4
- package/po-ui-ng-components-21.33.0-beta.1.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 +2180 -1409
- package/lib/components/po-tree-view/po-tree-view-item-header/po-tree-view-item-header.component.d.ts +0 -14
- package/po-ui-ng-components-21.32.0.tgz +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
1
3
|
import { PoDropdownAction } from './po-dropdown-action.interface';
|
|
2
4
|
/**
|
|
3
5
|
* @description
|
|
@@ -68,9 +70,14 @@ export declare class PoDropdownBaseComponent {
|
|
|
68
70
|
private _size?;
|
|
69
71
|
private _initialSize?;
|
|
70
72
|
private _position;
|
|
71
|
-
/**
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
/**
|
|
74
|
+
* Lista de ações que serão exibidas no componente.
|
|
75
|
+
*
|
|
76
|
+
* Aceita um *array* de `PoDropdownAction` (carregado imediatamente) ou uma função que retorna um
|
|
77
|
+
* `Observable<Array<PoDropdownAction>>`, carregando o nível raiz de forma assíncrona na abertura.
|
|
78
|
+
*/
|
|
79
|
+
set actions(value: Array<PoDropdownAction> | (() => Observable<Array<PoDropdownAction>>));
|
|
80
|
+
get actions(): Array<PoDropdownAction> | (() => Observable<Array<PoDropdownAction>>);
|
|
74
81
|
/**
|
|
75
82
|
* @optional
|
|
76
83
|
*
|
|
@@ -125,6 +132,36 @@ export declare class PoDropdownBaseComponent {
|
|
|
125
132
|
*/
|
|
126
133
|
set position(value: string);
|
|
127
134
|
get position(): string;
|
|
135
|
+
/**
|
|
136
|
+
* @optional
|
|
137
|
+
*
|
|
138
|
+
* @description
|
|
139
|
+
*
|
|
140
|
+
* Evento disparado a qualquer clique em um item do menu do dropdown.
|
|
141
|
+
*
|
|
142
|
+
* Recebe o item clicado (`PoDropdownAction`).
|
|
143
|
+
*/
|
|
144
|
+
clickItem: EventEmitter<PoDropdownAction>;
|
|
145
|
+
/**
|
|
146
|
+
* @optional
|
|
147
|
+
*
|
|
148
|
+
* @description
|
|
149
|
+
*
|
|
150
|
+
* Evento disparado no momento em que a requisição assíncrona de um subnível é iniciada
|
|
151
|
+
* (quando `subItems` é definido como função que retorna um `Observable`).
|
|
152
|
+
*
|
|
153
|
+
* Recebe o item agrupador (`PoDropdownAction`) que originou o carregamento.
|
|
154
|
+
*/
|
|
155
|
+
subItemsLoad: EventEmitter<PoDropdownAction>;
|
|
156
|
+
/**
|
|
157
|
+
* @optional
|
|
158
|
+
*
|
|
159
|
+
* @description
|
|
160
|
+
*
|
|
161
|
+
* Evento disparado no momento em que a requisição assíncrona do nível raiz é iniciada
|
|
162
|
+
* (quando `p-actions` é definido como função que retorna um `Observable`).
|
|
163
|
+
*/
|
|
164
|
+
rootItemsLoad: EventEmitter<void>;
|
|
128
165
|
get popupCustomPositions(): Array<string>;
|
|
129
166
|
protected onThemeChange(): void;
|
|
130
167
|
private applySizeBasedOnA11y;
|
|
@@ -15,6 +15,11 @@ import { PoDropdownBaseComponent } from './po-dropdown-base.component';
|
|
|
15
15
|
* <file name="sample-po-dropdown-subitems/sample-po-dropdown-subitems.component.ts"> </file>
|
|
16
16
|
* </example>
|
|
17
17
|
*
|
|
18
|
+
* <example name="po-dropdown-lazy-subitems" title="PO Dropdown Lazy Subitems" >
|
|
19
|
+
* <file name="sample-po-dropdown-lazy-subitems/sample-po-dropdown-lazy-subitems.component.html"> </file>
|
|
20
|
+
* <file name="sample-po-dropdown-lazy-subitems/sample-po-dropdown-lazy-subitems.component.ts"> </file>
|
|
21
|
+
* </example>
|
|
22
|
+
*
|
|
18
23
|
* <example name="po-dropdown-labs" title="PO Dropdown Labs" >
|
|
19
24
|
* <file name="sample-po-dropdown-labs/sample-po-dropdown-labs.component.html"> </file>
|
|
20
25
|
* <file name="sample-po-dropdown-labs/sample-po-dropdown-labs.component.ts"> </file>
|
|
@@ -34,6 +39,8 @@ export declare class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
|
34
39
|
private resizeListener;
|
|
35
40
|
onKeyDown(event: any): void;
|
|
36
41
|
toggleDropdown(): void;
|
|
42
|
+
onPopupClose(): void;
|
|
43
|
+
private isEventInsideElement;
|
|
37
44
|
private checkClickArea;
|
|
38
45
|
private hideDropdown;
|
|
39
46
|
private initializeListeners;
|
|
@@ -35,6 +35,7 @@ export * from './po-search-ai/interfaces/po-search-ai-column.interface';
|
|
|
35
35
|
export * from './po-search-ai/interfaces/po-search-ai.interface';
|
|
36
36
|
export * from './po-search-ai/interfaces/po-search-ai-literals.interface';
|
|
37
37
|
export * from './po-login/po-login.component';
|
|
38
|
+
export * from './po-lookup/interfaces/po-lookup-advanced-filter.interface';
|
|
38
39
|
export * from './po-lookup/interfaces/po-lookup-column.interface';
|
|
39
40
|
export * from './po-lookup/interfaces/po-lookup-filter.interface';
|
|
40
41
|
export * from './po-lookup/interfaces/po-lookup-filtered-items-params.interface';
|
package/lib/components/po-field/po-lookup/interfaces/po-lookup-advanced-filter.interface.d.ts
CHANGED
|
@@ -3,6 +3,24 @@ import { PoDynamicFormField } from '../../../po-dynamic/po-dynamic-form/interfac
|
|
|
3
3
|
* @docsExtends PoDynamicFormField
|
|
4
4
|
*
|
|
5
5
|
* @usedBy PoLookupComponent
|
|
6
|
+
*
|
|
7
|
+
* @ignoreExtendedDescription
|
|
8
|
+
*
|
|
9
|
+
* @description
|
|
10
|
+
*
|
|
11
|
+
* Interface para definição das propriedades dos campos de entrada que serão criados dinamicamente na busca avançada.
|
|
6
12
|
*/
|
|
7
13
|
export interface PoLookupAdvancedFilter extends PoDynamicFormField {
|
|
14
|
+
/**
|
|
15
|
+
* @optional
|
|
16
|
+
*
|
|
17
|
+
* @description
|
|
18
|
+
*
|
|
19
|
+
* Define um valor inicial para um filtro de busca avançada.
|
|
20
|
+
*
|
|
21
|
+
* O valor será atribuído ao campo correspondente à propriedade `property` na primeira abertura da janela de
|
|
22
|
+
* busca avançada. Após o usuário aplicar o filtro, os campos passam a ser preenchidos com os valores filtrados,
|
|
23
|
+
* preservando as alterações realizadas.
|
|
24
|
+
*/
|
|
25
|
+
initValue?: any;
|
|
8
26
|
}
|
|
@@ -238,6 +238,20 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
|
|
|
238
238
|
* url + ?page=1&pageSize=20&name=Tony%20Stark,Peter%20Parker,Gohan
|
|
239
239
|
* ```
|
|
240
240
|
*
|
|
241
|
+
* Também é possível definir um valor inicial para os campos da busca avançada através da propriedade `initValue`,
|
|
242
|
+
* que será atribuído ao campo na primeira abertura da janela de busca avançada. Após o usuário aplicar o filtro,
|
|
243
|
+
* os campos são preenchidos com os valores filtrados:
|
|
244
|
+
*
|
|
245
|
+
* ```
|
|
246
|
+
* advancedFilters: Array<PoLookupAdvancedFilter> = [
|
|
247
|
+
* { property: 'nickname', label: 'Apelido' },
|
|
248
|
+
* { property: 'active', label: 'Ativo', initValue: false, options: [
|
|
249
|
+
* { label: 'Sim', value: true },
|
|
250
|
+
* { label: 'Não', value: false }
|
|
251
|
+
* ]}
|
|
252
|
+
* ];
|
|
253
|
+
* ```
|
|
254
|
+
*
|
|
241
255
|
*/
|
|
242
256
|
advancedFilters: Array<PoLookupAdvancedFilter>;
|
|
243
257
|
/**
|
package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts
CHANGED
|
@@ -130,6 +130,7 @@ export declare abstract class PoLookupModalBaseComponent implements OnDestroy, O
|
|
|
130
130
|
disclaimer: PoDisclaimer;
|
|
131
131
|
disclaimerGroup: PoDisclaimerGroup;
|
|
132
132
|
isAdvancedFilter: boolean;
|
|
133
|
+
isAdvancedFilterApplied: boolean;
|
|
133
134
|
primaryActionAdvancedFilter: PoModalAction;
|
|
134
135
|
secondaryActionAdvancedFilter: PoModalAction;
|
|
135
136
|
selecteds: Array<any>;
|
|
@@ -29,5 +29,7 @@ export declare class PoLookupModalComponent extends PoLookupModalBaseComponent i
|
|
|
29
29
|
onAdvancedFilter(): void;
|
|
30
30
|
private setTableHeight;
|
|
31
31
|
private setupModalAdvancedFilter;
|
|
32
|
+
private getInitialValuesFromFilter;
|
|
33
|
+
private getValuesFromDisclaimers;
|
|
32
34
|
private createDynamicForm;
|
|
33
35
|
}
|
|
@@ -94,6 +94,12 @@ import { PoHelperComponent } from '../../po-helper';
|
|
|
94
94
|
* <file name="sample-po-lookup.service.ts"> </file>
|
|
95
95
|
* </example>
|
|
96
96
|
*
|
|
97
|
+
* <example name="po-lookup-advanced-filter" title="PO Lookup - Advanced Filter">
|
|
98
|
+
* <file name="sample-po-lookup-advanced-filter/sample-po-lookup-advanced-filter.component.html"> </file>
|
|
99
|
+
* <file name="sample-po-lookup-advanced-filter/sample-po-lookup-advanced-filter.component.ts"> </file>
|
|
100
|
+
* <file name="sample-po-lookup.service.ts"> </file>
|
|
101
|
+
* </example>
|
|
102
|
+
*
|
|
97
103
|
* <example name="po-lookup-sw-films" title="PO Lookup - Star Wars films">
|
|
98
104
|
* <file name="sample-po-lookup-sw-films/sample-po-lookup-sw-films.component.html"> </file>
|
|
99
105
|
* <file name="sample-po-lookup-sw-films/sample-po-lookup-sw-films.component.ts"> </file>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @usedBy PoListViewComponent
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
*
|
|
6
|
+
* Define o modo de exibição do detalhe do item do `po-list-view`, utilizado em conjunto com a
|
|
7
|
+
* diretiva [`p-list-view-detail-template`](/documentation/po-list-view-detail-template).
|
|
8
|
+
*/
|
|
9
|
+
export declare enum PoListViewDetailDisplay {
|
|
10
|
+
/** Expande os detalhes abaixo do item (padrão). */
|
|
11
|
+
Inline = "inline",
|
|
12
|
+
/** Exibe os detalhes dentro de um `po-modal`. */
|
|
13
|
+
Modal = "modal"
|
|
14
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export * from './enums/po-list-view-detail-display.enum';
|
|
1
2
|
export * from './interfaces/po-list-view-action.interface';
|
|
3
|
+
export * from './interfaces/po-list-view-field-properties.interface';
|
|
2
4
|
export * from './interfaces/po-list-view-literals.interface';
|
|
3
5
|
export * from './po-list-view-content-template/po-list-view-content-template.directive';
|
|
4
6
|
export * from './po-list-view-detail-template/po-list-view-detail-template.directive';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @usedBy PoListViewComponent
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
*
|
|
6
|
+
* Mapeia as chaves do objeto dos itens (`p-items`) para as áreas visuais do componente.
|
|
7
|
+
*/
|
|
8
|
+
export interface PoListViewFieldProperties {
|
|
9
|
+
/** Chave com o título do item. */
|
|
10
|
+
title?: string;
|
|
11
|
+
/** Chave com o subtítulo do item. */
|
|
12
|
+
subtitle?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Chave com o *link* do título do item.
|
|
15
|
+
*
|
|
16
|
+
* > Compatível com a propriedade `title`. Incompatível com o evento `p-item-click`.
|
|
17
|
+
*/
|
|
18
|
+
link?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Chave correspondente ao avatar do item.
|
|
21
|
+
*
|
|
22
|
+
* O valor mapeado suporta quatro formatos distintos:
|
|
23
|
+
*
|
|
24
|
+
* - **String (URL):** Renderiza o `po-avatar` com a imagem especificada.
|
|
25
|
+
* ```
|
|
26
|
+
* { avatar: '[https://url-da-imagem.png](https://url-da-imagem.png)' }
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* - **Objeto com `icon`:** Renderiza um ícone circular com tamanho fixo. Aceita as seguintes propriedades:
|
|
30
|
+
* - `icon` (obrigatória).
|
|
31
|
+
* - `color` e `backgroundColor`: aceitam qualquer formato de cor CSS (Hex, RGB, nomes, etc.).
|
|
32
|
+
* ```
|
|
33
|
+
* { avatar: { icon: 'an an-shield-warning', color: '#dc2626', backgroundColor: '#fee2e2' } }
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* - **Objeto com `progress`:** Renderiza o `po-progress-circle`. Aceita as seguintes propriedades:
|
|
37
|
+
* - `progress` (number): Valor de 0 a 100.
|
|
38
|
+
* - `indeterminate` (boolean): Animação de carregamento contínuo (ignora `progress`).
|
|
39
|
+
* - `showPercentage` (boolean): Exibe a porcentagem centralizada.
|
|
40
|
+
* - `status` (string): `'default'`, `'success'` ou `'error'`.
|
|
41
|
+
* - `size` (string) e `radius` (number): `'medium'`, `'large'` ou medida exata do raio em *pixels*.
|
|
42
|
+
* - `ariaLabel` (string): Rótulo para acessibilidade.
|
|
43
|
+
* ```
|
|
44
|
+
* { avatar: { progress: 65, showPercentage: true, size: 'large', radius: 40 } }
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* - **Objeto com `customTemplate`:** Renderiza um fragmento customizado referenciado via `TemplateRef`.
|
|
48
|
+
* ```
|
|
49
|
+
* { avatar: { customTemplate: myTemplateRef } }
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
avatar?: string;
|
|
53
|
+
/** Chave booleana que aplica destaque visual ao item. */
|
|
54
|
+
highlighted?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Objeto da `tag` do item.
|
|
57
|
+
*
|
|
58
|
+
* Aceita as seguintes propriedades:
|
|
59
|
+
*
|
|
60
|
+
* - **`value`** (string): Chave com o texto da *tag*.
|
|
61
|
+
* - **`type`** (string): Chave com o tipo da *tag* (`success`, `warning`, `danger`, `info`, `neutral`). Caso não informado, utiliza `success` como padrão.
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
* { tag: { value: 'status', type: 'statusType' } }
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
tag?: {
|
|
68
|
+
value?: string;
|
|
69
|
+
type?: string;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* Interface para definição das literais usadas no `po-list-view`.
|
|
7
7
|
*/
|
|
8
8
|
export interface PoListViewLiterals {
|
|
9
|
+
/** Título padrão do `po-modal` de detalhes, exibido quando `p-detail-display` é `modal`. */
|
|
10
|
+
detailModalTitle?: string;
|
|
9
11
|
/** Rótulo do botão que oculta os detalhes do item. */
|
|
10
12
|
hideDetails?: string;
|
|
11
13
|
/** Rótulo do botão que deve carregar mais resultados. */
|