@po-ui/ng-components 21.33.0-beta.1 → 21.34.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 +197 -75
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-chart/po-chart-base.component.d.ts +1 -1
- package/lib/components/po-dropdown/po-dropdown-base.component.d.ts +12 -10
- package/lib/components/po-dropdown/po-dropdown.component.d.ts +11 -10
- package/lib/components/po-listbox/po-listbox.component.d.ts +3 -0
- package/lib/components/po-popup/po-popup-action.interface.d.ts +24 -18
- package/lib/components/po-popup/po-popup-base.component.d.ts +8 -24
- package/lib/components/po-popup/po-popup.component.d.ts +9 -0
- package/package.json +4 -4
- package/po-ui-ng-components-21.34.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/v16/index.js +1 -1
- package/schematics/ng-update/v17/index.js +1 -1
- package/schematics/ng-update/v18/index.js +2 -2
- package/schematics/ng-update/v19/index.js +2 -2
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v20/index.js +2 -2
- package/schematics/ng-update/v21/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/types/po-ui-ng-components.d.ts +69 -64
- package/po-ui-ng-components-21.33.0-beta.1.tgz +0 -0
|
@@ -2168,40 +2168,46 @@ interface PoPopupAction {
|
|
|
2168
2168
|
*
|
|
2169
2169
|
* @description
|
|
2170
2170
|
*
|
|
2171
|
-
* Define
|
|
2172
|
-
*
|
|
2173
|
-
* Aceita dois formatos:
|
|
2174
|
-
*
|
|
2175
|
-
* **Estático** – um *array* de `PoPopupAction` carregado imediatamente:
|
|
2171
|
+
* Define uma lista de subitens para criação de menus aninhados.
|
|
2176
2172
|
*
|
|
2177
2173
|
* ```
|
|
2178
2174
|
* { label: 'Relatórios', subItems: [{ label: 'Mensal' }, { label: 'Anual' }] }
|
|
2179
2175
|
* ```
|
|
2180
2176
|
*
|
|
2181
|
-
*
|
|
2182
|
-
*
|
|
2183
|
-
*
|
|
2177
|
+
* Ao definir esta propriedade, o item exibirá um ícone indicador de subnível.
|
|
2178
|
+
* Recomenda-se utilizar no máximo três níveis hierárquicos para garantir a usabilidade.
|
|
2179
|
+
*
|
|
2180
|
+
* > As propriedades `disabled`, `type` e `visible` não são aplicadas visualmente ao item agrupador.
|
|
2181
|
+
*
|
|
2182
|
+
* > Quando `url` é informada em um agrupador, o redirecionamento terá prioridade e os subitens não serão abertos.
|
|
2183
|
+
*
|
|
2184
|
+
* > Em subníveis aninhados, o `icon` do agrupador é substituído pelo indicador de navegação (seta).
|
|
2185
|
+
*/
|
|
2186
|
+
subItems?: Array<PoPopupAction>;
|
|
2187
|
+
/**
|
|
2188
|
+
* @optional
|
|
2189
|
+
*
|
|
2190
|
+
* @description
|
|
2191
|
+
*
|
|
2192
|
+
* Define o carregamento assíncrono (lazy loading) dos subitens de um agrupador.
|
|
2193
|
+
*
|
|
2194
|
+
* Recebe o item agrupador e retorna um `Observable<Array<PoPopupAction>>`. A requisição é disparada
|
|
2195
|
+
* **apenas** no momento da expansão (clique ou atalho de teclado), exibindo placeholders com `po-skeleton`
|
|
2196
|
+
* enquanto os dados são carregados:
|
|
2184
2197
|
*
|
|
2185
2198
|
* ```
|
|
2186
2199
|
* {
|
|
2187
2200
|
* label: 'Relatórios',
|
|
2188
|
-
*
|
|
2201
|
+
* subItemsLazy: (item) => this.reportService.getReports(item)
|
|
2189
2202
|
* }
|
|
2190
2203
|
* ```
|
|
2191
2204
|
*
|
|
2192
|
-
* >
|
|
2205
|
+
* > O resultado é armazenado em cache após o primeiro carregamento bem-sucedido.
|
|
2193
2206
|
* Em caso de falha, é exibida uma mensagem com a opção de tentar novamente.
|
|
2194
2207
|
*
|
|
2195
2208
|
* Ao definir esta propriedade, o item exibirá um ícone indicador de subnível.
|
|
2196
|
-
* Recomenda-se utilizar no máximo três níveis hierárquicos para garantir a usabilidade.
|
|
2197
|
-
*
|
|
2198
|
-
* > As propriedades `disabled`, `type` e `visible` não são aplicadas visualmente ao item agrupador.
|
|
2199
|
-
*
|
|
2200
|
-
* > Quando `url` é informada em um agrupador, o redirecionamento terá prioridade e os subitens não serão abertos.
|
|
2201
|
-
*
|
|
2202
|
-
* > Em subníveis aninhados, o `icon` do agrupador é substituído pelo indicador de navegação (seta).
|
|
2203
2209
|
*/
|
|
2204
|
-
|
|
2210
|
+
subItemsLazy?: (item: PoPopupAction) => Observable<Array<PoPopupAction>>;
|
|
2205
2211
|
$subItemTemplate?: TemplateRef<any>;
|
|
2206
2212
|
}
|
|
2207
2213
|
|
|
@@ -2228,6 +2234,7 @@ declare class PoListBoxComponent extends PoListBoxBaseComponent implements OnIni
|
|
|
2228
2234
|
readonly subItemsSkeletonPlaceholders: number[];
|
|
2229
2235
|
rootLazyLoad?: () => Observable<Array<PoDropdownAction>>;
|
|
2230
2236
|
rootItemsLoad: EventEmitter<void>;
|
|
2237
|
+
contentChange: EventEmitter<void>;
|
|
2231
2238
|
private readonly loadedSubItems;
|
|
2232
2239
|
private lastLoadedGroup;
|
|
2233
2240
|
private rootLoaded;
|
|
@@ -2253,6 +2260,7 @@ declare class PoListBoxComponent extends PoListBoxBaseComponent implements OnIni
|
|
|
2253
2260
|
ngOnDestroy(): void;
|
|
2254
2261
|
openGroup(group: PoDropdownAction, event?: MouseEvent | KeyboardEvent): void;
|
|
2255
2262
|
private loadSubItemsAsync;
|
|
2263
|
+
onRetryKeydown(event: KeyboardEvent, scope: 'root' | 'subItems'): void;
|
|
2256
2264
|
retrySubItems(event?: MouseEvent | KeyboardEvent): void;
|
|
2257
2265
|
loadRootItemsAsync(): void;
|
|
2258
2266
|
retryRootItems(event?: MouseEvent | KeyboardEvent): void;
|
|
@@ -2262,6 +2270,7 @@ declare class PoListBoxComponent extends PoListBoxBaseComponent implements OnIni
|
|
|
2262
2270
|
isSubItemsError(group: PoDropdownAction | null): boolean;
|
|
2263
2271
|
isFunction(value: unknown): boolean;
|
|
2264
2272
|
isGroupItem(item: PoDropdownAction): boolean;
|
|
2273
|
+
private hasSubItems;
|
|
2265
2274
|
private getGroupKey;
|
|
2266
2275
|
private setSubItemsState;
|
|
2267
2276
|
private clearSubItemsState;
|
|
@@ -2307,7 +2316,7 @@ declare class PoListBoxComponent extends PoListBoxBaseComponent implements OnIni
|
|
|
2307
2316
|
formatItemList(item: any): string;
|
|
2308
2317
|
handleFooterActionListbox(): void;
|
|
2309
2318
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoListBoxComponent, never>;
|
|
2310
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoListBoxComponent, "po-listbox", never, { "rootLazyLoad": { "alias": "p-root-lazy-load"; "required": false; }; }, { "rootItemsLoad": "p-root-items-load"; }, never, ["[p-popup-header-template]"], false, never>;
|
|
2319
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoListBoxComponent, "po-listbox", never, { "rootLazyLoad": { "alias": "p-root-lazy-load"; "required": false; }; }, { "rootItemsLoad": "p-root-items-load"; "contentChange": "p-content-change"; }, never, ["[p-popup-header-template]"], false, never>;
|
|
2311
2320
|
}
|
|
2312
2321
|
|
|
2313
2322
|
/**
|
|
@@ -4877,9 +4886,7 @@ declare class PoPopupBaseComponent {
|
|
|
4877
4886
|
templateIcon: boolean;
|
|
4878
4887
|
/**
|
|
4879
4888
|
* Lista de ações que serão exibidas no componente.
|
|
4880
|
-
*
|
|
4881
|
-
* Aceita um *array* de `PoPopupAction` (carregado imediatamente) ou uma função que retorna um
|
|
4882
|
-
* `Observable<Array<PoPopupAction>>`, carregando o nível raiz de forma assíncrona na abertura.
|
|
4889
|
+
* Aceita um *array* de `PoPopupAction`.
|
|
4883
4890
|
*/
|
|
4884
4891
|
set actions(value: Array<PoPopupAction> | (() => Observable<Array<PoPopupAction>>));
|
|
4885
4892
|
get actions(): Array<PoPopupAction>;
|
|
@@ -5008,13 +5015,6 @@ declare class PoPopupBaseComponent {
|
|
|
5008
5015
|
*/
|
|
5009
5016
|
set target(value: any);
|
|
5010
5017
|
get target(): any;
|
|
5011
|
-
/**
|
|
5012
|
-
* @optional
|
|
5013
|
-
*
|
|
5014
|
-
* @description
|
|
5015
|
-
*
|
|
5016
|
-
* Evento disparado ao fechar o popup.
|
|
5017
|
-
*/
|
|
5018
5018
|
closeEvent: EventEmitter<any>;
|
|
5019
5019
|
/**
|
|
5020
5020
|
* @optional
|
|
@@ -5022,29 +5022,21 @@ declare class PoPopupBaseComponent {
|
|
|
5022
5022
|
* @description
|
|
5023
5023
|
*
|
|
5024
5024
|
* Evento disparado a cada clique em um item do menu.
|
|
5025
|
-
*
|
|
5026
|
-
* Recebe o item clicado (`PoPopupAction`).
|
|
5025
|
+
* Retorna o item clicado (`PoDropdownAction`).
|
|
5027
5026
|
*
|
|
5028
5027
|
* > Não é disparado para a ação interna de voltar (`goBack`).
|
|
5029
5028
|
*/
|
|
5030
|
-
clickItem: EventEmitter<
|
|
5031
|
-
/**
|
|
5032
|
-
* @optional
|
|
5033
|
-
*
|
|
5034
|
-
* @description
|
|
5035
|
-
*
|
|
5036
|
-
* Evento disparado ao abrir o popup.
|
|
5037
|
-
*/
|
|
5029
|
+
clickItem: EventEmitter<any>;
|
|
5038
5030
|
openEvent: EventEmitter<any>;
|
|
5039
5031
|
/**
|
|
5040
5032
|
* @optional
|
|
5041
5033
|
*
|
|
5042
5034
|
* @description
|
|
5043
5035
|
*
|
|
5044
|
-
* Evento disparado no momento em que a requisição assíncrona de um subnível é iniciada
|
|
5045
|
-
*
|
|
5036
|
+
* Evento disparado no momento em que a requisição assíncrona de um subnível é iniciada.
|
|
5037
|
+
* Retorna o item agrupador (`PoPopupAction`) que originou o carregamento.
|
|
5046
5038
|
*
|
|
5047
|
-
*
|
|
5039
|
+
* > Compatível com a propriedade PoPopupAction.subItemsLazy
|
|
5048
5040
|
*/
|
|
5049
5041
|
subItemsLoad: EventEmitter<PoPopupAction>;
|
|
5050
5042
|
/**
|
|
@@ -5053,7 +5045,8 @@ declare class PoPopupBaseComponent {
|
|
|
5053
5045
|
* @description
|
|
5054
5046
|
*
|
|
5055
5047
|
* Evento disparado no momento em que a requisição assíncrona do nível raiz é iniciada
|
|
5056
|
-
*
|
|
5048
|
+
*
|
|
5049
|
+
* > Compatível com a propriedade PoPopupAction.subItemsLazy
|
|
5057
5050
|
*/
|
|
5058
5051
|
rootItemsLoad: EventEmitter<void>;
|
|
5059
5052
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoPopupBaseComponent, never>;
|
|
@@ -5092,6 +5085,8 @@ declare class PoPopupComponent extends PoPopupBaseComponent implements AfterView
|
|
|
5092
5085
|
changeDetector: ChangeDetectorRef;
|
|
5093
5086
|
popupRef: ElementRef;
|
|
5094
5087
|
listbox: ElementRef;
|
|
5088
|
+
private readonly popupOffset;
|
|
5089
|
+
private readonly viewportMargin;
|
|
5095
5090
|
poListBoxRef: PoListBoxComponent;
|
|
5096
5091
|
ngAfterViewInit(): void;
|
|
5097
5092
|
/**
|
|
@@ -5120,6 +5115,7 @@ declare class PoPopupComponent extends PoPopupBaseComponent implements AfterView
|
|
|
5120
5115
|
*/
|
|
5121
5116
|
toggle(param?: any): void;
|
|
5122
5117
|
onClickItem(item: any): void;
|
|
5118
|
+
onContentChange(): void;
|
|
5123
5119
|
protected checkAllActionIsInvisible(): boolean;
|
|
5124
5120
|
private clickedOutDisabledItem;
|
|
5125
5121
|
private clickedOutHeaderTemplate;
|
|
@@ -5134,6 +5130,12 @@ declare class PoPopupComponent extends PoPopupBaseComponent implements AfterView
|
|
|
5134
5130
|
private openUrl;
|
|
5135
5131
|
private removeListeners;
|
|
5136
5132
|
private setPosition;
|
|
5133
|
+
private resolvePositions;
|
|
5134
|
+
private getVerticalFirstPositions;
|
|
5135
|
+
private clampHeightToViewport;
|
|
5136
|
+
private getScrollableListboxElement;
|
|
5137
|
+
private isOpeningUp;
|
|
5138
|
+
private getStickyPositions;
|
|
5137
5139
|
private validateInitialContent;
|
|
5138
5140
|
private focusTarget;
|
|
5139
5141
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoPopupComponent, never>;
|
|
@@ -14446,18 +14448,18 @@ declare class PoDropdownBaseComponent {
|
|
|
14446
14448
|
icon: string;
|
|
14447
14449
|
open: boolean;
|
|
14448
14450
|
private _actions;
|
|
14451
|
+
private _rootLazyLoad?;
|
|
14449
14452
|
private _disabled;
|
|
14450
14453
|
private _size?;
|
|
14451
14454
|
private _initialSize?;
|
|
14452
14455
|
private _position;
|
|
14453
14456
|
/**
|
|
14454
14457
|
* Lista de ações que serão exibidas no componente.
|
|
14455
|
-
*
|
|
14456
|
-
* Aceita um *array* de `PoDropdownAction` (carregado imediatamente) ou uma função que retorna um
|
|
14457
|
-
* `Observable<Array<PoDropdownAction>>`, carregando o nível raiz de forma assíncrona na abertura.
|
|
14458
|
+
* Aceita um *array* de `PoDropdownAction`.
|
|
14458
14459
|
*/
|
|
14459
14460
|
set actions(value: Array<PoDropdownAction> | (() => Observable<Array<PoDropdownAction>>));
|
|
14460
|
-
get actions(): Array<PoDropdownAction
|
|
14461
|
+
get actions(): Array<PoDropdownAction>;
|
|
14462
|
+
get popupActions(): Array<PoDropdownAction> | (() => Observable<Array<PoDropdownAction>>);
|
|
14461
14463
|
/**
|
|
14462
14464
|
* @optional
|
|
14463
14465
|
*
|
|
@@ -14517,9 +14519,10 @@ declare class PoDropdownBaseComponent {
|
|
|
14517
14519
|
*
|
|
14518
14520
|
* @description
|
|
14519
14521
|
*
|
|
14520
|
-
* Evento disparado a
|
|
14522
|
+
* Evento disparado a cada clique em um item do menu.
|
|
14523
|
+
* Retorna o item clicado (`PoDropdownAction`).
|
|
14521
14524
|
*
|
|
14522
|
-
*
|
|
14525
|
+
* > Não é disparado para a ação interna de voltar (`goBack`).
|
|
14523
14526
|
*/
|
|
14524
14527
|
clickItem: EventEmitter<PoDropdownAction>;
|
|
14525
14528
|
/**
|
|
@@ -14527,10 +14530,10 @@ declare class PoDropdownBaseComponent {
|
|
|
14527
14530
|
*
|
|
14528
14531
|
* @description
|
|
14529
14532
|
*
|
|
14530
|
-
* Evento disparado no momento em que a requisição assíncrona de um subnível é iniciada
|
|
14531
|
-
*
|
|
14533
|
+
* Evento disparado no momento em que a requisição assíncrona de um subnível é iniciada.
|
|
14534
|
+
* Retorna o item agrupador (`PoDropdownAction`) que originou o carregamento.
|
|
14532
14535
|
*
|
|
14533
|
-
*
|
|
14536
|
+
* > Compatível com a propriedade PoPopupAction.subItemsLazy
|
|
14534
14537
|
*/
|
|
14535
14538
|
subItemsLoad: EventEmitter<PoDropdownAction>;
|
|
14536
14539
|
/**
|
|
@@ -14539,7 +14542,8 @@ declare class PoDropdownBaseComponent {
|
|
|
14539
14542
|
* @description
|
|
14540
14543
|
*
|
|
14541
14544
|
* Evento disparado no momento em que a requisição assíncrona do nível raiz é iniciada
|
|
14542
|
-
*
|
|
14545
|
+
*
|
|
14546
|
+
* > Compatível com a propriedade PoPopupAction.subItemsLazy
|
|
14543
14547
|
*/
|
|
14544
14548
|
rootItemsLoad: EventEmitter<void>;
|
|
14545
14549
|
get popupCustomPositions(): Array<string>;
|
|
@@ -14559,16 +14563,6 @@ declare class PoDropdownBaseComponent {
|
|
|
14559
14563
|
* <file name="sample-po-dropdown-basic/sample-po-dropdown-basic.component.ts"> </file>
|
|
14560
14564
|
* </example>
|
|
14561
14565
|
*
|
|
14562
|
-
* <example name="po-dropdown-subitems" title="PO Dropdown Subitems" >
|
|
14563
|
-
* <file name="sample-po-dropdown-subitems/sample-po-dropdown-subitems.component.html"> </file>
|
|
14564
|
-
* <file name="sample-po-dropdown-subitems/sample-po-dropdown-subitems.component.ts"> </file>
|
|
14565
|
-
* </example>
|
|
14566
|
-
*
|
|
14567
|
-
* <example name="po-dropdown-lazy-subitems" title="PO Dropdown Lazy Subitems" >
|
|
14568
|
-
* <file name="sample-po-dropdown-lazy-subitems/sample-po-dropdown-lazy-subitems.component.html"> </file>
|
|
14569
|
-
* <file name="sample-po-dropdown-lazy-subitems/sample-po-dropdown-lazy-subitems.component.ts"> </file>
|
|
14570
|
-
* </example>
|
|
14571
|
-
*
|
|
14572
14566
|
* <example name="po-dropdown-labs" title="PO Dropdown Labs" >
|
|
14573
14567
|
* <file name="sample-po-dropdown-labs/sample-po-dropdown-labs.component.html"> </file>
|
|
14574
14568
|
* <file name="sample-po-dropdown-labs/sample-po-dropdown-labs.component.ts"> </file>
|
|
@@ -14578,6 +14572,16 @@ declare class PoDropdownBaseComponent {
|
|
|
14578
14572
|
* <file name="sample-po-dropdown-social-network/sample-po-dropdown-social-network.component.html"> </file>
|
|
14579
14573
|
* <file name="sample-po-dropdown-social-network/sample-po-dropdown-social-network.component.ts"> </file>
|
|
14580
14574
|
* </example>
|
|
14575
|
+
*
|
|
14576
|
+
* <example name="po-dropdown-subitems" title="PO Dropdown Subitems" >
|
|
14577
|
+
* <file name="sample-po-dropdown-subitems/sample-po-dropdown-subitems.component.html"> </file>
|
|
14578
|
+
* <file name="sample-po-dropdown-subitems/sample-po-dropdown-subitems.component.ts"> </file>
|
|
14579
|
+
* </example>
|
|
14580
|
+
*
|
|
14581
|
+
* <example name="po-dropdown-lazy-subitems" title="PO Dropdown Lazy Subitems" >
|
|
14582
|
+
* <file name="sample-po-dropdown-lazy-subitems/sample-po-dropdown-lazy-subitems.component.html"> </file>
|
|
14583
|
+
* <file name="sample-po-dropdown-lazy-subitems/sample-po-dropdown-lazy-subitems.component.ts"> </file>
|
|
14584
|
+
* </example>
|
|
14581
14585
|
*/
|
|
14582
14586
|
declare class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
14583
14587
|
private readonly renderer;
|
|
@@ -14594,6 +14598,7 @@ declare class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
|
14594
14598
|
private hideDropdown;
|
|
14595
14599
|
private initializeListeners;
|
|
14596
14600
|
private readonly onScroll;
|
|
14601
|
+
private isScrollInsidePopup;
|
|
14597
14602
|
private isDropdownClosed;
|
|
14598
14603
|
private removeListeners;
|
|
14599
14604
|
private showDropdown;
|
|
@@ -16280,7 +16285,7 @@ declare abstract class PoChartBaseComponent implements OnInit {
|
|
|
16280
16285
|
* - Os marcadores (*bullets*) terão seu estilo ajustado.
|
|
16281
16286
|
* - As outras séries ficarão com opacidade reduzida ao passar o mouse sobre a série ativa.
|
|
16282
16287
|
*
|
|
16283
|
-
* > Disponível para gráficos do tipo `line` e `radar`.
|
|
16288
|
+
* > Disponível para gráficos do tipo `line`, `area`, `column`, `bar` e `radar`.
|
|
16284
16289
|
*
|
|
16285
16290
|
* #### Exemplo de utilização:
|
|
16286
16291
|
* ```typescript
|
|
Binary file
|