@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,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, ElementRef, TemplateRef, OnInit, OnDestroy, Renderer2, QueryList, OnChanges, ChangeDetectorRef, SimpleChanges, AfterViewInit, Type, ViewContainerRef, DoCheck, AfterViewChecked, IterableDiffers, ComponentFactoryResolver, ApplicationRef, Injector, ComponentRef, PipeTransform,
|
|
2
|
+
import { EventEmitter, ElementRef, TemplateRef, OnInit, OnDestroy, Renderer2, QueryList, OnChanges, ChangeDetectorRef, SimpleChanges, AfterViewInit, WritableSignal, Type, ViewContainerRef, DoCheck, AfterViewChecked, IterableDiffers, ComponentFactoryResolver, ApplicationRef, Injector, ComponentRef, PipeTransform, InjectionToken, ModuleWithProviders, RendererFactory2, AfterContentInit, AnimationCallbackEvent, SimpleChange } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/common';
|
|
4
4
|
import { DecimalPipe, TitleCasePipe, CurrencyPipe, DatePipe } from '@angular/common';
|
|
5
5
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
6
|
-
import * as
|
|
6
|
+
import * as i11 from '@angular/cdk/listbox';
|
|
7
7
|
import { CdkListbox, CdkOption } from '@angular/cdk/listbox';
|
|
8
8
|
import * as rxjs from 'rxjs';
|
|
9
9
|
import { Observable, Subject, Subscription } from 'rxjs';
|
|
@@ -1929,6 +1929,12 @@ interface PoListBoxLiterals {
|
|
|
1929
1929
|
/** Texto do checkbox para selecionar todos os itens. */
|
|
1930
1930
|
selectAll?: string;
|
|
1931
1931
|
footerActionListbox?: string;
|
|
1932
|
+
/** Mensagem exibida quando o carregamento assíncrono de um subnível falha. */
|
|
1933
|
+
subItemsErrorMessage?: string;
|
|
1934
|
+
/** Texto acessível anunciado durante o carregamento assíncrono de um subnível. */
|
|
1935
|
+
subItemsLoading?: string;
|
|
1936
|
+
/** Texto do botão para tentar novamente o carregamento de um subnível. */
|
|
1937
|
+
retry?: string;
|
|
1932
1938
|
}
|
|
1933
1939
|
|
|
1934
1940
|
/**
|
|
@@ -2038,12 +2044,13 @@ declare class PoListBoxBaseComponent {
|
|
|
2038
2044
|
clickTab: EventEmitter<any>;
|
|
2039
2045
|
changeStateTabs: EventEmitter<any>;
|
|
2040
2046
|
clickItem: EventEmitter<any>;
|
|
2047
|
+
subItemsLoad: EventEmitter<any>;
|
|
2041
2048
|
footerActionListboxEvent: EventEmitter<any>;
|
|
2042
2049
|
constructor(languageService: PoLanguageService);
|
|
2043
2050
|
protected onThemeChange(): void;
|
|
2044
2051
|
private applySizeBasedOnA11y;
|
|
2045
2052
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoListBoxBaseComponent, never>;
|
|
2046
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoListBoxBaseComponent, never, never, { "listboxSubitems": { "alias": "p-listbox-subitems"; "required": false; }; "visible": { "alias": "p-visible"; "required": false; "isSignal": true; }; "type": { "alias": "p-type"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "isTabs": { "alias": "p-is-tabs"; "required": false; }; "param": { "alias": "p-param"; "required": false; }; "checkboxAllValue": { "alias": "p-checkboxAllValue"; "required": false; }; "selectedOptions": { "alias": "p-selected-options"; "required": false; }; "selectedOption": { "alias": "p-selected-option"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "literalSearch": { "alias": "p-literal-search"; "required": false; }; "fieldValueSearch": { "alias": "p-field-value-search"; "required": false; }; "hideSearch": { "alias": "p-hide-search"; "required": false; }; "hideSelectAll": { "alias": "p-hide-select-all"; "required": false; }; "multiselectTemplate": { "alias": "p-multiselect-template"; "required": false; }; "template": { "alias": "p-template"; "required": false; }; "placeholderSearch": { "alias": "p-placeholder-search"; "required": false; }; "searchValue": { "alias": "p-search-value"; "required": false; }; "isServerSearching": { "alias": "p-is-searching"; "required": false; }; "infiniteLoading": { "alias": "p-infinite-loading"; "required": false; }; "infiniteScroll": { "alias": "p-infinite-scroll"; "required": false; }; "cache": { "alias": "p-cache"; "required": false; }; "infiniteScrollDistance": { "alias": "p-infinite-scroll-distance"; "required": false; }; "filterMode": { "alias": "p-filter-mode"; "required": false; }; "isFiltering": { "alias": "p-filtering"; "required": false; }; "shouldMarkLetters": { "alias": "p-should-mark-letter"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "compareCache": { "alias": "p-compare-cache"; "required": false; }; "comboService": { "alias": "p-combo-service"; "required": false; }; "containerWidth": { "alias": "p-container-width"; "required": false; }; "keysLabel": { "alias": "p-keys-label"; "required": false; }; "footerActionListbox": { "alias": "p-footer-action-listbox"; "required": false; }; "placeholderListbox": { "alias": "p-placeholder-listbox"; "required": false; }; "separator": { "alias": "p-separator"; "required": false; }; }, { "changeSearch": "p-change-search"; "selectItem": "p-select-item"; "closeEvent": "p-close"; "change": "p-change"; "selectCombo": "p-selectcombo-item"; "changeAll": "p-change-all"; "UpdateInfiniteScroll": "p-update-infinite-scroll"; "activatedTab": "p-activated-tabs"; "clickTab": "p-click-tabs"; "changeStateTabs": "p-change-state-tabs"; "clickItem": "p-click-item"; "footerActionListboxEvent": "p-footer-action-listbox-event"; }, never, never, true, never>;
|
|
2053
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoListBoxBaseComponent, never, never, { "listboxSubitems": { "alias": "p-listbox-subitems"; "required": false; }; "visible": { "alias": "p-visible"; "required": false; "isSignal": true; }; "type": { "alias": "p-type"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "isTabs": { "alias": "p-is-tabs"; "required": false; }; "param": { "alias": "p-param"; "required": false; }; "checkboxAllValue": { "alias": "p-checkboxAllValue"; "required": false; }; "selectedOptions": { "alias": "p-selected-options"; "required": false; }; "selectedOption": { "alias": "p-selected-option"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "literalSearch": { "alias": "p-literal-search"; "required": false; }; "fieldValueSearch": { "alias": "p-field-value-search"; "required": false; }; "hideSearch": { "alias": "p-hide-search"; "required": false; }; "hideSelectAll": { "alias": "p-hide-select-all"; "required": false; }; "multiselectTemplate": { "alias": "p-multiselect-template"; "required": false; }; "template": { "alias": "p-template"; "required": false; }; "placeholderSearch": { "alias": "p-placeholder-search"; "required": false; }; "searchValue": { "alias": "p-search-value"; "required": false; }; "isServerSearching": { "alias": "p-is-searching"; "required": false; }; "infiniteLoading": { "alias": "p-infinite-loading"; "required": false; }; "infiniteScroll": { "alias": "p-infinite-scroll"; "required": false; }; "cache": { "alias": "p-cache"; "required": false; }; "infiniteScrollDistance": { "alias": "p-infinite-scroll-distance"; "required": false; }; "filterMode": { "alias": "p-filter-mode"; "required": false; }; "isFiltering": { "alias": "p-filtering"; "required": false; }; "shouldMarkLetters": { "alias": "p-should-mark-letter"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "compareCache": { "alias": "p-compare-cache"; "required": false; }; "comboService": { "alias": "p-combo-service"; "required": false; }; "containerWidth": { "alias": "p-container-width"; "required": false; }; "keysLabel": { "alias": "p-keys-label"; "required": false; }; "footerActionListbox": { "alias": "p-footer-action-listbox"; "required": false; }; "placeholderListbox": { "alias": "p-placeholder-listbox"; "required": false; }; "separator": { "alias": "p-separator"; "required": false; }; }, { "changeSearch": "p-change-search"; "selectItem": "p-select-item"; "closeEvent": "p-close"; "change": "p-change"; "selectCombo": "p-selectcombo-item"; "changeAll": "p-change-all"; "UpdateInfiniteScroll": "p-update-infinite-scroll"; "activatedTab": "p-activated-tabs"; "clickTab": "p-click-tabs"; "changeStateTabs": "p-change-state-tabs"; "clickItem": "p-click-item"; "subItemsLoad": "p-sub-items-load"; "footerActionListboxEvent": "p-footer-action-listbox-event"; }, never, never, true, never>;
|
|
2047
2054
|
static ngAcceptInputType_isTabs: any;
|
|
2048
2055
|
static ngAcceptInputType_isServerSearching: any;
|
|
2049
2056
|
static ngAcceptInputType_infiniteLoading: any;
|
|
@@ -2161,7 +2168,29 @@ interface PoPopupAction {
|
|
|
2161
2168
|
*
|
|
2162
2169
|
* @description
|
|
2163
2170
|
*
|
|
2164
|
-
* Define
|
|
2171
|
+
* Define os subitens de um agrupador, criando menus aninhados.
|
|
2172
|
+
*
|
|
2173
|
+
* Aceita dois formatos:
|
|
2174
|
+
*
|
|
2175
|
+
* **Estático** – um *array* de `PoPopupAction` carregado imediatamente:
|
|
2176
|
+
*
|
|
2177
|
+
* ```
|
|
2178
|
+
* { label: 'Relatórios', subItems: [{ label: 'Mensal' }, { label: 'Anual' }] }
|
|
2179
|
+
* ```
|
|
2180
|
+
*
|
|
2181
|
+
* **Assíncrono (lazy loading)** – uma função que recebe o item agrupador e retorna um
|
|
2182
|
+
* `Observable<Array<PoPopupAction>>`. A requisição é disparada **apenas** no momento da expansão
|
|
2183
|
+
* (clique ou atalho de teclado), exibindo placeholders com `po-skeleton` enquanto os dados são carregados:
|
|
2184
|
+
*
|
|
2185
|
+
* ```
|
|
2186
|
+
* {
|
|
2187
|
+
* label: 'Relatórios',
|
|
2188
|
+
* subItems: (item) => this.reportService.getReports(item)
|
|
2189
|
+
* }
|
|
2190
|
+
* ```
|
|
2191
|
+
*
|
|
2192
|
+
* > No formato assíncrono, o resultado é armazenado em cache após o primeiro carregamento bem-sucedido.
|
|
2193
|
+
* Em caso de falha, é exibida uma mensagem com a opção de tentar novamente.
|
|
2165
2194
|
*
|
|
2166
2195
|
* Ao definir esta propriedade, o item exibirá um ícone indicador de subnível.
|
|
2167
2196
|
* Recomenda-se utilizar no máximo três níveis hierárquicos para garantir a usabilidade.
|
|
@@ -2172,7 +2201,7 @@ interface PoPopupAction {
|
|
|
2172
2201
|
*
|
|
2173
2202
|
* > Em subníveis aninhados, o `icon` do agrupador é substituído pelo indicador de navegação (seta).
|
|
2174
2203
|
*/
|
|
2175
|
-
subItems?: Array<PoPopupAction
|
|
2204
|
+
subItems?: Array<PoPopupAction> | ((item: PoPopupAction) => Observable<Array<PoPopupAction>>);
|
|
2176
2205
|
$subItemTemplate?: TemplateRef<any>;
|
|
2177
2206
|
}
|
|
2178
2207
|
|
|
@@ -2194,6 +2223,15 @@ declare class PoListBoxComponent extends PoListBoxBaseComponent implements OnIni
|
|
|
2194
2223
|
element: ElementRef<any>;
|
|
2195
2224
|
currentItems: Array<PoDropdownAction>;
|
|
2196
2225
|
currentGroup: PoDropdownAction | null;
|
|
2226
|
+
readonly subItemsLoading: WritableSignal<Record<string, boolean>>;
|
|
2227
|
+
readonly subItemsError: WritableSignal<Record<string, boolean>>;
|
|
2228
|
+
readonly subItemsSkeletonPlaceholders: number[];
|
|
2229
|
+
rootLazyLoad?: () => Observable<Array<PoDropdownAction>>;
|
|
2230
|
+
rootItemsLoad: EventEmitter<void>;
|
|
2231
|
+
private readonly loadedSubItems;
|
|
2232
|
+
private lastLoadedGroup;
|
|
2233
|
+
private rootLoaded;
|
|
2234
|
+
private readonly destroySubItems$;
|
|
2197
2235
|
private readonly navigationStack;
|
|
2198
2236
|
private readonly renderer;
|
|
2199
2237
|
private readonly router;
|
|
@@ -2214,12 +2252,28 @@ declare class PoListBoxComponent extends PoListBoxBaseComponent implements OnIni
|
|
|
2214
2252
|
ngOnChanges(changes?: SimpleChanges): void;
|
|
2215
2253
|
ngOnDestroy(): void;
|
|
2216
2254
|
openGroup(group: PoDropdownAction, event?: MouseEvent | KeyboardEvent): void;
|
|
2255
|
+
private loadSubItemsAsync;
|
|
2256
|
+
retrySubItems(event?: MouseEvent | KeyboardEvent): void;
|
|
2257
|
+
loadRootItemsAsync(): void;
|
|
2258
|
+
retryRootItems(event?: MouseEvent | KeyboardEvent): void;
|
|
2259
|
+
isRootLoading(): boolean;
|
|
2260
|
+
isRootError(): boolean;
|
|
2261
|
+
isSubItemsLoading(group: PoDropdownAction | null): boolean;
|
|
2262
|
+
isSubItemsError(group: PoDropdownAction | null): boolean;
|
|
2263
|
+
isFunction(value: unknown): boolean;
|
|
2264
|
+
isGroupItem(item: PoDropdownAction): boolean;
|
|
2265
|
+
private getGroupKey;
|
|
2266
|
+
private setSubItemsState;
|
|
2267
|
+
private clearSubItemsState;
|
|
2268
|
+
private focusGroupHeader;
|
|
2217
2269
|
goBack(event: MouseEvent | KeyboardEvent): void;
|
|
2218
2270
|
onKeydownGoBack(event: KeyboardEvent, currentGroup?: PoDropdownAction): void;
|
|
2219
2271
|
protected onKeydownTemplate(event: KeyboardEvent): void;
|
|
2220
|
-
onSelectItem(itemListAction:
|
|
2272
|
+
onSelectItem(itemListAction: any, event?: MouseEvent | KeyboardEvent): void | Promise<boolean>;
|
|
2221
2273
|
onSelectAllCheckboxKeyDown(event: KeyboardEvent): void;
|
|
2222
|
-
onKeyDown(itemListAction:
|
|
2274
|
+
onKeyDown(itemListAction: any, event?: KeyboardEvent): void;
|
|
2275
|
+
private handleArrowRightKey;
|
|
2276
|
+
private handleEnterOrSpaceKey;
|
|
2223
2277
|
checkboxClicked({ option, selected }: {
|
|
2224
2278
|
option: any;
|
|
2225
2279
|
selected: any;
|
|
@@ -2253,7 +2307,7 @@ declare class PoListBoxComponent extends PoListBoxBaseComponent implements OnIni
|
|
|
2253
2307
|
formatItemList(item: any): string;
|
|
2254
2308
|
handleFooterActionListbox(): void;
|
|
2255
2309
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoListBoxComponent, never>;
|
|
2256
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoListBoxComponent, "po-listbox", never, {}, {}, never, ["[p-popup-header-template]"], false, 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>;
|
|
2257
2311
|
}
|
|
2258
2312
|
|
|
2259
2313
|
/**
|
|
@@ -4406,9 +4460,337 @@ declare class PoCheckboxModule {
|
|
|
4406
4460
|
static ɵinj: i0.ɵɵInjectorDeclaration<PoCheckboxModule>;
|
|
4407
4461
|
}
|
|
4408
4462
|
|
|
4463
|
+
/**
|
|
4464
|
+
* @usedBy PoSkeletonComponent
|
|
4465
|
+
*
|
|
4466
|
+
* @description
|
|
4467
|
+
*
|
|
4468
|
+
* Define os tipos de animação do componente `po-skeleton`.
|
|
4469
|
+
*/
|
|
4470
|
+
declare enum PoSkeletonAnimation {
|
|
4471
|
+
/** Sem animação */
|
|
4472
|
+
none = "none",
|
|
4473
|
+
/** Animação de pulsação */
|
|
4474
|
+
pulse = "pulse",
|
|
4475
|
+
/** Animação de brilho deslizante */
|
|
4476
|
+
shimmer = "shimmer"
|
|
4477
|
+
}
|
|
4478
|
+
|
|
4479
|
+
/**
|
|
4480
|
+
* @usedBy PoSkeletonComponent
|
|
4481
|
+
*
|
|
4482
|
+
* @description
|
|
4483
|
+
*
|
|
4484
|
+
* Define os tamanhos disponíveis para o componente `po-skeleton`.
|
|
4485
|
+
*/
|
|
4486
|
+
declare enum PoSkeletonSize {
|
|
4487
|
+
/** Tamanho extra pequeno */
|
|
4488
|
+
xs = "xs",
|
|
4489
|
+
/** Tamanho pequeno */
|
|
4490
|
+
sm = "sm",
|
|
4491
|
+
/** Tamanho médio */
|
|
4492
|
+
md = "md",
|
|
4493
|
+
/** Tamanho grande */
|
|
4494
|
+
lg = "lg",
|
|
4495
|
+
/** Tamanho extra grande */
|
|
4496
|
+
xl = "xl",
|
|
4497
|
+
/** Tamanho extra extra grande */
|
|
4498
|
+
xxl = "2xl"
|
|
4499
|
+
}
|
|
4500
|
+
|
|
4501
|
+
/**
|
|
4502
|
+
* @usedBy PoSkeletonComponent
|
|
4503
|
+
*
|
|
4504
|
+
* @description
|
|
4505
|
+
*
|
|
4506
|
+
* Define os tipos visuais disponíveis para o componente `po-skeleton`.
|
|
4507
|
+
*/
|
|
4508
|
+
declare enum PoSkeletonType {
|
|
4509
|
+
/** Tipo padrão com cor neutra clara */
|
|
4510
|
+
normal = "normal",
|
|
4511
|
+
/** Tipo primário com cor neutra média */
|
|
4512
|
+
primary = "primary",
|
|
4513
|
+
/** Tipo de conteúdo com fundo branco */
|
|
4514
|
+
content = "content"
|
|
4515
|
+
}
|
|
4516
|
+
|
|
4517
|
+
/**
|
|
4518
|
+
* @usedBy PoSkeletonComponent
|
|
4519
|
+
*
|
|
4520
|
+
* @description
|
|
4521
|
+
*
|
|
4522
|
+
* Define as variantes visuais do componente `po-skeleton`.
|
|
4523
|
+
*/
|
|
4524
|
+
declare enum PoSkeletonVariant {
|
|
4525
|
+
/** Variante para simular texto */
|
|
4526
|
+
text = "text",
|
|
4527
|
+
/** Variante retangular (largura maior que altura) */
|
|
4528
|
+
rectangle = "rectangle",
|
|
4529
|
+
/** Variante quadrada (largura igual à altura) */
|
|
4530
|
+
square = "square",
|
|
4531
|
+
/** Variante circular */
|
|
4532
|
+
circle = "circle"
|
|
4533
|
+
}
|
|
4534
|
+
|
|
4535
|
+
/**
|
|
4536
|
+
* @description
|
|
4537
|
+
*
|
|
4538
|
+
* O componente `po-skeleton` é utilizado para exibir placeholders durante o carregamento de conteúdo,
|
|
4539
|
+
* melhorando a experiência do usuário ao indicar que a informação está sendo processada.
|
|
4540
|
+
*
|
|
4541
|
+
* Ele oferece diferentes variantes visuais (texto, retângulo, círculo) e animações (pulse, shimmer)
|
|
4542
|
+
* para simular diversos tipos de conteúdo em estado de carregamento.
|
|
4543
|
+
*
|
|
4544
|
+
* #### Tokens customizáveis
|
|
4545
|
+
*
|
|
4546
|
+
* É possível alterar o estilo do componente usando os seguintes tokens (CSS):
|
|
4547
|
+
*
|
|
4548
|
+
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
4549
|
+
*
|
|
4550
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
4551
|
+
* |----------------------------------------|------------------------------------------------------|---------------------------------|
|
|
4552
|
+
* | **Cores** | | |
|
|
4553
|
+
* | `--color` | Cor de fundo do skeleton (tipo normal) | `var(--color-neutral-light-20)` |
|
|
4554
|
+
* | `--color-primary` | Cor de fundo do skeleton (tipo primary) | `var(--color-neutral-mid-40)` |
|
|
4555
|
+
* | `--color-content` | Cor de fundo do skeleton (tipo content) | `var(--color-neutral-light-00)` |
|
|
4556
|
+
* | `--shimmer-highlight` | Cor de destaque do shimmer (tipo normal) | `var(--color-neutral-light-30)` |
|
|
4557
|
+
* | `--shimmer-highlight-primary` | Cor de destaque do shimmer (tipo primary) | `var(--color-neutral-light-20)` |
|
|
4558
|
+
* | `--shimmer-highlight-content` | Cor de destaque do shimmer (tipo content) | `var(--color-neutral-light-05)` |
|
|
4559
|
+
* | **Espaçamento** | | |
|
|
4560
|
+
* | `--margin-bottom` | Margem inferior do skeleton | `var(--spacing-xs)` |
|
|
4561
|
+
* | **Bordas** | | |
|
|
4562
|
+
* | `--border-radius` | Raio da borda do skeleton | `var(--border-radius-md)` |
|
|
4563
|
+
* | `--border-radius-text` | Raio da borda para a variante text | `var(--border-radius-md)` |
|
|
4564
|
+
* | `--border-radius-primary` | Raio da borda do skeleton (tipo primary) | `var(--border-radius-md)` |
|
|
4565
|
+
* | `--border-radius-content` | Raio da borda do skeleton (tipo content) | `var(--border-radius-lg)` |
|
|
4566
|
+
* | **Transições** | | |
|
|
4567
|
+
* | `--transition-property` | Propriedade CSS da transição | `all` |
|
|
4568
|
+
* | `--transition-duration` | Duração da transição de cor | `var(--duration-moderate)` |
|
|
4569
|
+
* | `--transition-timing` | Função de temporização da transição/animação | `var(--timing-continuous)` |
|
|
4570
|
+
* | **Animações** | | |
|
|
4571
|
+
* | `--animation-duration-pulse` | Duração da animação de pulsação | `var(--duration-very-slow)` |
|
|
4572
|
+
* | `--animation-duration-shimmer` | Duração da animação de brilho deslizante | `var(--duration-ultra-slow)` |
|
|
4573
|
+
*
|
|
4574
|
+
*/
|
|
4575
|
+
declare class PoSkeletonBaseComponent {
|
|
4576
|
+
/**
|
|
4577
|
+
* @optional
|
|
4578
|
+
*
|
|
4579
|
+
* @description
|
|
4580
|
+
*
|
|
4581
|
+
* Define a variante visual do skeleton.
|
|
4582
|
+
*
|
|
4583
|
+
* Valores válidos:
|
|
4584
|
+
* - `text`: Simula uma linha de texto (altura padrão: 1em)
|
|
4585
|
+
* - `rectangle`: Forma retangular (proporção 3:1 por padrão)
|
|
4586
|
+
* - `square`: Forma quadrada (largura e altura iguais)
|
|
4587
|
+
* - `circle`: Forma circular (largura e altura iguais)
|
|
4588
|
+
*
|
|
4589
|
+
* @default `text`
|
|
4590
|
+
*/
|
|
4591
|
+
variant: i0.InputSignal<PoSkeletonVariant>;
|
|
4592
|
+
/**
|
|
4593
|
+
* @optional
|
|
4594
|
+
*
|
|
4595
|
+
* @description
|
|
4596
|
+
*
|
|
4597
|
+
* Define o tipo visual do skeleton, alterando sua cor de fundo.
|
|
4598
|
+
*
|
|
4599
|
+
* Valores válidos:
|
|
4600
|
+
* - `normal`: Cor neutra clara (padrão)
|
|
4601
|
+
* - `primary`: Cor neutra média
|
|
4602
|
+
* - `content`: Fundo branco
|
|
4603
|
+
*
|
|
4604
|
+
* @default `normal`
|
|
4605
|
+
*/
|
|
4606
|
+
type: i0.InputSignal<PoSkeletonType>;
|
|
4607
|
+
/**
|
|
4608
|
+
* @optional
|
|
4609
|
+
*
|
|
4610
|
+
* @description
|
|
4611
|
+
*
|
|
4612
|
+
* Define o tipo de animação do skeleton.
|
|
4613
|
+
*
|
|
4614
|
+
* Valores válidos:
|
|
4615
|
+
* - `none`: Sem animação
|
|
4616
|
+
* - `pulse`: Animação de pulsação
|
|
4617
|
+
* - `shimmer`: Animação de brilho deslizante
|
|
4618
|
+
*
|
|
4619
|
+
* @default `shimmer`
|
|
4620
|
+
*/
|
|
4621
|
+
animation: i0.InputSignal<PoSkeletonAnimation>;
|
|
4622
|
+
/**
|
|
4623
|
+
* @optional
|
|
4624
|
+
*
|
|
4625
|
+
* @description
|
|
4626
|
+
*
|
|
4627
|
+
* Define o tamanho do skeleton para as variantes pré-definidas (`rectangle`, `square`, `circle`).
|
|
4628
|
+
*
|
|
4629
|
+
* Valores válidos:
|
|
4630
|
+
* - `xs`: Extra pequeno (24px para square/circle, 72px x 24px para rectangle)
|
|
4631
|
+
* - `sm`: Pequeno (32px para square/circle, 96px x 32px para rectangle)
|
|
4632
|
+
* - `md`: Médio (48px para square/circle, 144px x 48px para rectangle)
|
|
4633
|
+
* - `lg`: Grande (64px para square/circle, 192px x 64px para rectangle)
|
|
4634
|
+
* - `xl`: Extra grande (96px para square/circle, 288px x 96px para rectangle)
|
|
4635
|
+
* - `2xl`: Extra extra grande (144px para square/circle, 432px x 144px para rectangle)
|
|
4636
|
+
*
|
|
4637
|
+
* Esta propriedade é ignorada quando `p-width` ou `p-height` são definidos explicitamente.
|
|
4638
|
+
*
|
|
4639
|
+
* @default `md`
|
|
4640
|
+
*/
|
|
4641
|
+
size: i0.InputSignal<PoSkeletonSize>;
|
|
4642
|
+
/**
|
|
4643
|
+
* @optional
|
|
4644
|
+
*
|
|
4645
|
+
* @description
|
|
4646
|
+
*
|
|
4647
|
+
* Define a largura do skeleton.
|
|
4648
|
+
* Aceita valores CSS válidos (px, %, em, rem).
|
|
4649
|
+
*
|
|
4650
|
+
* Quando definido, sobrescreve a largura padrão da variante.
|
|
4651
|
+
*
|
|
4652
|
+
* @default `100%` para variante `text`, tamanho baseado em `p-size` para outras variantes
|
|
4653
|
+
*/
|
|
4654
|
+
width: i0.InputSignal<string>;
|
|
4655
|
+
/**
|
|
4656
|
+
* @optional
|
|
4657
|
+
*
|
|
4658
|
+
* @description
|
|
4659
|
+
*
|
|
4660
|
+
* Define a altura do skeleton.
|
|
4661
|
+
* Aceita valores CSS válidos (px, %, em, rem).
|
|
4662
|
+
*
|
|
4663
|
+
* Quando definido, sobrescreve a altura padrão da variante.
|
|
4664
|
+
*/
|
|
4665
|
+
height: i0.InputSignal<string>;
|
|
4666
|
+
/**
|
|
4667
|
+
* @optional
|
|
4668
|
+
*
|
|
4669
|
+
* @description
|
|
4670
|
+
*
|
|
4671
|
+
* Define o raio da borda do skeleton.
|
|
4672
|
+
* Aceita valores CSS válidos (px, %, em, rem).
|
|
4673
|
+
*
|
|
4674
|
+
* Esta propriedade sobrescreve o border-radius padrão de cada variante.
|
|
4675
|
+
*/
|
|
4676
|
+
borderRadius: i0.InputSignal<string>;
|
|
4677
|
+
/**
|
|
4678
|
+
* @optional
|
|
4679
|
+
*
|
|
4680
|
+
* @description
|
|
4681
|
+
*
|
|
4682
|
+
* Define a descrição acessível do conteúdo que está sendo carregado.
|
|
4683
|
+
*
|
|
4684
|
+
* Este texto será anunciado por leitores de tela, garantindo que usuários de tecnologias assistivas
|
|
4685
|
+
* sejam informados sobre o estado de carregamento.
|
|
4686
|
+
*
|
|
4687
|
+
* **Quando usar:**
|
|
4688
|
+
* - Use em **skeletons únicos** ou no **primeiro skeleton de um grupo** com descrição contextual
|
|
4689
|
+
* - Evite usar em múltiplos skeletons dentro da mesma área sem contexto, para não causar repetição excessiva
|
|
4690
|
+
*
|
|
4691
|
+
* **Exemplos de uso:**
|
|
4692
|
+
*
|
|
4693
|
+
* ```html
|
|
4694
|
+
* <!-- ✅ BOM: Skeleton único com contexto -->
|
|
4695
|
+
* <po-skeleton p-aria-label="Carregando perfil do usuário"></po-skeleton>
|
|
4696
|
+
*
|
|
4697
|
+
* <!-- ✅ BOM: Grupo de skeletons - apenas o primeiro anuncia -->
|
|
4698
|
+
* <po-skeleton p-aria-label="Carregando lista de produtos"></po-skeleton>
|
|
4699
|
+
* <po-skeleton p-type="primary"></po-skeleton>
|
|
4700
|
+
* <po-skeleton p-variant="circle"></po-skeleton>
|
|
4701
|
+
*
|
|
4702
|
+
* <!-- ❌ EVITE: Múltiplos skeletons com a mesma label -->
|
|
4703
|
+
* <po-skeleton p-aria-label="Carregando"></po-skeleton> <!-- "Carregando" -->
|
|
4704
|
+
* <po-skeleton p-aria-label="Carregando"></po-skeleton> <!-- "Carregando" -->
|
|
4705
|
+
* <po-skeleton p-aria-label="Carregando"></po-skeleton> <!-- "Carregando" (repetitivo!) -->
|
|
4706
|
+
* ```
|
|
4707
|
+
*
|
|
4708
|
+
* > **Boas práticas de acessibilidade:**
|
|
4709
|
+
* > - Forneça contexto específico na label para que os usuários entendam o que está carregando
|
|
4710
|
+
*
|
|
4711
|
+
* > - Em casos complexos, considere usar um único `<div role="status">` para todo o grupo
|
|
4712
|
+
* > de skeletons, ao invés de múltiplas labels idênticas, para evitar repetição excessiva de anúncios
|
|
4713
|
+
*/
|
|
4714
|
+
ariaLabel: i0.InputSignal<string>;
|
|
4715
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoSkeletonBaseComponent, never>;
|
|
4716
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoSkeletonBaseComponent, never, never, { "variant": { "alias": "p-variant"; "required": false; "isSignal": true; }; "type": { "alias": "p-type"; "required": false; "isSignal": true; }; "animation": { "alias": "p-animation"; "required": false; "isSignal": true; }; "size": { "alias": "p-size"; "required": false; "isSignal": true; }; "width": { "alias": "p-width"; "required": false; "isSignal": true; }; "height": { "alias": "p-height"; "required": false; "isSignal": true; }; "borderRadius": { "alias": "p-border-radius"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "p-aria-label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
4717
|
+
}
|
|
4718
|
+
|
|
4719
|
+
/**
|
|
4720
|
+
* @docsExtends PoSkeletonBaseComponent
|
|
4721
|
+
*
|
|
4722
|
+
* @example
|
|
4723
|
+
*
|
|
4724
|
+
* <example name="po-skeleton-basic" title="PO Skeleton Basic">
|
|
4725
|
+
* <file name="sample-po-skeleton-basic/sample-po-skeleton-basic.component.html"> </file>
|
|
4726
|
+
* <file name="sample-po-skeleton-basic/sample-po-skeleton-basic.component.ts"> </file>
|
|
4727
|
+
* </example>
|
|
4728
|
+
*
|
|
4729
|
+
* <example name="po-skeleton-labs" title="PO Skeleton Labs">
|
|
4730
|
+
* <file name="sample-po-skeleton-labs/sample-po-skeleton-labs.component.html"> </file>
|
|
4731
|
+
* <file name="sample-po-skeleton-labs/sample-po-skeleton-labs.component.ts"> </file>
|
|
4732
|
+
* </example>
|
|
4733
|
+
*
|
|
4734
|
+
* <example name="po-skeleton-credit-card" title="PO Skeleton - Credit Card">
|
|
4735
|
+
* <file name="sample-po-skeleton-credit-card/sample-po-skeleton-credit-card.component.html"> </file>
|
|
4736
|
+
* <file name="sample-po-skeleton-credit-card/sample-po-skeleton-credit-card.component.ts"> </file>
|
|
4737
|
+
* <file name="sample-po-skeleton-credit-card/sample-po-skeleton-credit-card.component.css"> </file>
|
|
4738
|
+
* </example>
|
|
4739
|
+
*
|
|
4740
|
+
* <example name="po-skeleton-widget-card" title="PO Skeleton - Widget Card">
|
|
4741
|
+
* <file name="sample-po-skeleton-widget-card/sample-po-skeleton-widget-card.component.html"> </file>
|
|
4742
|
+
* <file name="sample-po-skeleton-widget-card/sample-po-skeleton-widget-card.component.ts"> </file>
|
|
4743
|
+
* <file name="sample-po-skeleton-widget-card/sample-po-skeleton-widget-card.component.css"> </file>
|
|
4744
|
+
* </example>
|
|
4745
|
+
*
|
|
4746
|
+
* <example name="po-skeleton-user-profile" title="PO Skeleton - User Profile">
|
|
4747
|
+
* <file name="sample-po-skeleton-user-profile/sample-po-skeleton-user-profile.component.html"> </file>
|
|
4748
|
+
* <file name="sample-po-skeleton-user-profile/sample-po-skeleton-user-profile.component.ts"> </file>
|
|
4749
|
+
* <file name="sample-po-skeleton-user-profile/sample-po-skeleton-user-profile.component.css"> </file>
|
|
4750
|
+
* </example>
|
|
4751
|
+
*
|
|
4752
|
+
* <example name="po-skeleton-social-post" title="PO Skeleton - Social Post">
|
|
4753
|
+
* <file name="sample-po-skeleton-social-post/sample-po-skeleton-social-post.component.html"> </file>
|
|
4754
|
+
* <file name="sample-po-skeleton-social-post/sample-po-skeleton-social-post.component.ts"> </file>
|
|
4755
|
+
* <file name="sample-po-skeleton-social-post/sample-po-skeleton-social-post.component.css"> </file>
|
|
4756
|
+
* </example>
|
|
4757
|
+
*
|
|
4758
|
+
* <example name="po-skeleton-article" title="PO Skeleton - Article">
|
|
4759
|
+
* <file name="sample-po-skeleton-article/sample-po-skeleton-article.component.html"> </file>
|
|
4760
|
+
* <file name="sample-po-skeleton-article/sample-po-skeleton-article.component.ts"> </file>
|
|
4761
|
+
* <file name="sample-po-skeleton-article/sample-po-skeleton-article.component.css"> </file>
|
|
4762
|
+
* </example>
|
|
4763
|
+
*/
|
|
4764
|
+
declare class PoSkeletonComponent extends PoSkeletonBaseComponent {
|
|
4765
|
+
private readonly sizeMap;
|
|
4766
|
+
private readonly defaultTextDimensions;
|
|
4767
|
+
private readonly defaultBorderRadius;
|
|
4768
|
+
computedStyles: i0.Signal<{
|
|
4769
|
+
[key: string]: string;
|
|
4770
|
+
}>;
|
|
4771
|
+
computedClasses: i0.Signal<{
|
|
4772
|
+
[x: string]: boolean;
|
|
4773
|
+
'po-skeleton': boolean;
|
|
4774
|
+
}>;
|
|
4775
|
+
private getDimensions;
|
|
4776
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoSkeletonComponent, never>;
|
|
4777
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoSkeletonComponent, "po-skeleton", never, {}, {}, never, never, false, never>;
|
|
4778
|
+
}
|
|
4779
|
+
|
|
4780
|
+
/**
|
|
4781
|
+
* @description
|
|
4782
|
+
*
|
|
4783
|
+
* Módulo do componente po-skeleton.
|
|
4784
|
+
*/
|
|
4785
|
+
declare class PoSkeletonModule {
|
|
4786
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoSkeletonModule, never>;
|
|
4787
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoSkeletonModule, [typeof PoSkeletonComponent], [typeof i2.CommonModule], [typeof PoSkeletonComponent]>;
|
|
4788
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PoSkeletonModule>;
|
|
4789
|
+
}
|
|
4790
|
+
|
|
4409
4791
|
declare class PoListBoxModule {
|
|
4410
4792
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoListBoxModule, never>;
|
|
4411
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoListBoxModule, [typeof PoListBoxComponent, typeof PoItemListComponent, typeof PoSearchListComponent], [typeof i2.CommonModule, typeof PoCheckboxModule, typeof PoIconModule, typeof PoLoadingModule, typeof PoTagModule, typeof
|
|
4793
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoListBoxModule, [typeof PoListBoxComponent, typeof PoItemListComponent, typeof PoSearchListComponent], [typeof i2.CommonModule, typeof PoButtonModule, typeof PoCheckboxModule, typeof PoIconModule, typeof PoLoadingModule, typeof PoSkeletonModule, typeof PoTagModule, typeof i11.CdkListboxModule], [typeof PoListBoxComponent]>;
|
|
4412
4794
|
static ɵinj: i0.ɵɵInjectorDeclaration<PoListBoxModule>;
|
|
4413
4795
|
}
|
|
4414
4796
|
|
|
@@ -4490,10 +4872,16 @@ declare class PoPopupBaseComponent {
|
|
|
4490
4872
|
private _position?;
|
|
4491
4873
|
private _size?;
|
|
4492
4874
|
private _target;
|
|
4875
|
+
rootLazyLoad?: () => Observable<Array<PoPopupAction>>;
|
|
4493
4876
|
get computedListboxSubitems(): boolean;
|
|
4494
4877
|
templateIcon: boolean;
|
|
4495
|
-
/**
|
|
4496
|
-
|
|
4878
|
+
/**
|
|
4879
|
+
* 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.
|
|
4883
|
+
*/
|
|
4884
|
+
set actions(value: Array<PoPopupAction> | (() => Observable<Array<PoPopupAction>>));
|
|
4497
4885
|
get actions(): Array<PoPopupAction>;
|
|
4498
4886
|
/**
|
|
4499
4887
|
* @optional
|
|
@@ -4620,11 +5008,56 @@ declare class PoPopupBaseComponent {
|
|
|
4620
5008
|
*/
|
|
4621
5009
|
set target(value: any);
|
|
4622
5010
|
get target(): any;
|
|
5011
|
+
/**
|
|
5012
|
+
* @optional
|
|
5013
|
+
*
|
|
5014
|
+
* @description
|
|
5015
|
+
*
|
|
5016
|
+
* Evento disparado ao fechar o popup.
|
|
5017
|
+
*/
|
|
4623
5018
|
closeEvent: EventEmitter<any>;
|
|
4624
|
-
|
|
5019
|
+
/**
|
|
5020
|
+
* @optional
|
|
5021
|
+
*
|
|
5022
|
+
* @description
|
|
5023
|
+
*
|
|
5024
|
+
* Evento disparado a cada clique em um item do menu.
|
|
5025
|
+
*
|
|
5026
|
+
* Recebe o item clicado (`PoPopupAction`).
|
|
5027
|
+
*
|
|
5028
|
+
* > Não é disparado para a ação interna de voltar (`goBack`).
|
|
5029
|
+
*/
|
|
5030
|
+
clickItem: EventEmitter<PoPopupAction>;
|
|
5031
|
+
/**
|
|
5032
|
+
* @optional
|
|
5033
|
+
*
|
|
5034
|
+
* @description
|
|
5035
|
+
*
|
|
5036
|
+
* Evento disparado ao abrir o popup.
|
|
5037
|
+
*/
|
|
4625
5038
|
openEvent: EventEmitter<any>;
|
|
5039
|
+
/**
|
|
5040
|
+
* @optional
|
|
5041
|
+
*
|
|
5042
|
+
* @description
|
|
5043
|
+
*
|
|
5044
|
+
* Evento disparado no momento em que a requisição assíncrona de um subnível é iniciada
|
|
5045
|
+
* (quando `subItems` é definido como função que retorna um `Observable`).
|
|
5046
|
+
*
|
|
5047
|
+
* Recebe o item agrupador (`PoPopupAction`) que originou o carregamento.
|
|
5048
|
+
*/
|
|
5049
|
+
subItemsLoad: EventEmitter<PoPopupAction>;
|
|
5050
|
+
/**
|
|
5051
|
+
* @optional
|
|
5052
|
+
*
|
|
5053
|
+
* @description
|
|
5054
|
+
*
|
|
5055
|
+
* Evento disparado no momento em que a requisição assíncrona do nível raiz é iniciada
|
|
5056
|
+
* (quando `p-actions` é definido como função que retorna um `Observable`).
|
|
5057
|
+
*/
|
|
5058
|
+
rootItemsLoad: EventEmitter<void>;
|
|
4626
5059
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoPopupBaseComponent, never>;
|
|
4627
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoPopupBaseComponent, never, never, { "templateIcon": { "alias": "p-template-icon"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "hideArrow": { "alias": "p-hide-arrow"; "required": false; }; "isCornerAlign": { "alias": "p-is-corner-align"; "required": false; }; "position": { "alias": "p-position"; "required": false; }; "customPositions": { "alias": "p-custom-positions"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "target": { "alias": "p-target"; "required": false; }; }, { "closeEvent": "p-close"; "clickItem": "p-click-item"; "openEvent": "p-open"; }, never, never, true, never>;
|
|
5060
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoPopupBaseComponent, never, never, { "templateIcon": { "alias": "p-template-icon"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "hideArrow": { "alias": "p-hide-arrow"; "required": false; }; "isCornerAlign": { "alias": "p-is-corner-align"; "required": false; }; "position": { "alias": "p-position"; "required": false; }; "customPositions": { "alias": "p-custom-positions"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "target": { "alias": "p-target"; "required": false; }; }, { "closeEvent": "p-close"; "clickItem": "p-click-item"; "openEvent": "p-open"; "subItemsLoad": "p-sub-items-load"; "rootItemsLoad": "p-root-items-load"; }, never, never, true, never>;
|
|
4628
5061
|
}
|
|
4629
5062
|
|
|
4630
5063
|
/**
|
|
@@ -4666,7 +5099,10 @@ declare class PoPopupComponent extends PoPopupBaseComponent implements AfterView
|
|
|
4666
5099
|
*
|
|
4667
5100
|
* > Por padrão, este comportamento é acionado somente ao clicar fora do componente ou em determinada ação / url.
|
|
4668
5101
|
*/
|
|
4669
|
-
close(
|
|
5102
|
+
close(closeEvent?: {
|
|
5103
|
+
reason?: string;
|
|
5104
|
+
origin?: string;
|
|
5105
|
+
}): void;
|
|
4670
5106
|
onActionClick(popupAction: PoPopupAction): void | Promise<boolean>;
|
|
4671
5107
|
/**
|
|
4672
5108
|
* Abre o componente *popup*.
|
|
@@ -4687,7 +5123,9 @@ declare class PoPopupComponent extends PoPopupBaseComponent implements AfterView
|
|
|
4687
5123
|
protected checkAllActionIsInvisible(): boolean;
|
|
4688
5124
|
private clickedOutDisabledItem;
|
|
4689
5125
|
private clickedOutHeaderTemplate;
|
|
5126
|
+
private isEventInsideElement;
|
|
4690
5127
|
private clickedOutTarget;
|
|
5128
|
+
private clickedOutPopup;
|
|
4691
5129
|
private closePopupOnClickout;
|
|
4692
5130
|
private elementContains;
|
|
4693
5131
|
private hasContentToShow;
|
|
@@ -4697,6 +5135,7 @@ declare class PoPopupComponent extends PoPopupBaseComponent implements AfterView
|
|
|
4697
5135
|
private removeListeners;
|
|
4698
5136
|
private setPosition;
|
|
4699
5137
|
private validateInitialContent;
|
|
5138
|
+
private focusTarget;
|
|
4700
5139
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoPopupComponent, never>;
|
|
4701
5140
|
static ɵcmp: i0.ɵɵComponentDeclaration<PoPopupComponent, "po-popup", never, {}, {}, never, ["[p-popup-header-template]"], false, never>;
|
|
4702
5141
|
}
|
|
@@ -9662,6 +10101,7 @@ declare abstract class PoNotificationBaseService {
|
|
|
9662
10101
|
* @param {PoNotification | string} notification Objeto PoNotification com os dados da notificação
|
|
9663
10102
|
*/
|
|
9664
10103
|
private buildToaster;
|
|
10104
|
+
private getMessage;
|
|
9665
10105
|
/**
|
|
9666
10106
|
* @docsPrivate
|
|
9667
10107
|
*
|
|
@@ -14010,9 +14450,14 @@ declare class PoDropdownBaseComponent {
|
|
|
14010
14450
|
private _size?;
|
|
14011
14451
|
private _initialSize?;
|
|
14012
14452
|
private _position;
|
|
14013
|
-
/**
|
|
14014
|
-
|
|
14015
|
-
|
|
14453
|
+
/**
|
|
14454
|
+
* 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
|
+
*/
|
|
14459
|
+
set actions(value: Array<PoDropdownAction> | (() => Observable<Array<PoDropdownAction>>));
|
|
14460
|
+
get actions(): Array<PoDropdownAction> | (() => Observable<Array<PoDropdownAction>>);
|
|
14016
14461
|
/**
|
|
14017
14462
|
* @optional
|
|
14018
14463
|
*
|
|
@@ -14067,11 +14512,41 @@ declare class PoDropdownBaseComponent {
|
|
|
14067
14512
|
*/
|
|
14068
14513
|
set position(value: string);
|
|
14069
14514
|
get position(): string;
|
|
14515
|
+
/**
|
|
14516
|
+
* @optional
|
|
14517
|
+
*
|
|
14518
|
+
* @description
|
|
14519
|
+
*
|
|
14520
|
+
* Evento disparado a qualquer clique em um item do menu do dropdown.
|
|
14521
|
+
*
|
|
14522
|
+
* Recebe o item clicado (`PoDropdownAction`).
|
|
14523
|
+
*/
|
|
14524
|
+
clickItem: EventEmitter<PoDropdownAction>;
|
|
14525
|
+
/**
|
|
14526
|
+
* @optional
|
|
14527
|
+
*
|
|
14528
|
+
* @description
|
|
14529
|
+
*
|
|
14530
|
+
* Evento disparado no momento em que a requisição assíncrona de um subnível é iniciada
|
|
14531
|
+
* (quando `subItems` é definido como função que retorna um `Observable`).
|
|
14532
|
+
*
|
|
14533
|
+
* Recebe o item agrupador (`PoDropdownAction`) que originou o carregamento.
|
|
14534
|
+
*/
|
|
14535
|
+
subItemsLoad: EventEmitter<PoDropdownAction>;
|
|
14536
|
+
/**
|
|
14537
|
+
* @optional
|
|
14538
|
+
*
|
|
14539
|
+
* @description
|
|
14540
|
+
*
|
|
14541
|
+
* Evento disparado no momento em que a requisição assíncrona do nível raiz é iniciada
|
|
14542
|
+
* (quando `p-actions` é definido como função que retorna um `Observable`).
|
|
14543
|
+
*/
|
|
14544
|
+
rootItemsLoad: EventEmitter<void>;
|
|
14070
14545
|
get popupCustomPositions(): Array<string>;
|
|
14071
14546
|
protected onThemeChange(): void;
|
|
14072
14547
|
private applySizeBasedOnA11y;
|
|
14073
14548
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoDropdownBaseComponent, never>;
|
|
14074
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoDropdownBaseComponent, never, never, { "label": { "alias": "p-label"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "position": { "alias": "p-position"; "required": false; }; }, {}, never, never, true, never>;
|
|
14549
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoDropdownBaseComponent, never, never, { "label": { "alias": "p-label"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "position": { "alias": "p-position"; "required": false; }; }, { "clickItem": "p-click-item"; "subItemsLoad": "p-sub-items-load"; "rootItemsLoad": "p-root-items-load"; }, never, never, true, never>;
|
|
14075
14550
|
}
|
|
14076
14551
|
|
|
14077
14552
|
/**
|
|
@@ -14089,6 +14564,11 @@ declare class PoDropdownBaseComponent {
|
|
|
14089
14564
|
* <file name="sample-po-dropdown-subitems/sample-po-dropdown-subitems.component.ts"> </file>
|
|
14090
14565
|
* </example>
|
|
14091
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
|
+
*
|
|
14092
14572
|
* <example name="po-dropdown-labs" title="PO Dropdown Labs" >
|
|
14093
14573
|
* <file name="sample-po-dropdown-labs/sample-po-dropdown-labs.component.html"> </file>
|
|
14094
14574
|
* <file name="sample-po-dropdown-labs/sample-po-dropdown-labs.component.ts"> </file>
|
|
@@ -14108,6 +14588,8 @@ declare class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
|
14108
14588
|
private resizeListener;
|
|
14109
14589
|
onKeyDown(event: any): void;
|
|
14110
14590
|
toggleDropdown(): void;
|
|
14591
|
+
onPopupClose(): void;
|
|
14592
|
+
private isEventInsideElement;
|
|
14111
14593
|
private checkClickArea;
|
|
14112
14594
|
private hideDropdown;
|
|
14113
14595
|
private initializeListeners;
|
|
@@ -23485,6 +23967,32 @@ declare class PoLoginComponent extends PoInputGeneric implements OnChanges {
|
|
|
23485
23967
|
static ɵcmp: i0.ɵɵComponentDeclaration<PoLoginComponent, "po-login", never, { "noAutocomplete": { "alias": "p-no-autocomplete"; "required": false; }; }, {}, never, never, false, never>;
|
|
23486
23968
|
}
|
|
23487
23969
|
|
|
23970
|
+
/**
|
|
23971
|
+
* @docsExtends PoDynamicFormField
|
|
23972
|
+
*
|
|
23973
|
+
* @usedBy PoLookupComponent
|
|
23974
|
+
*
|
|
23975
|
+
* @ignoreExtendedDescription
|
|
23976
|
+
*
|
|
23977
|
+
* @description
|
|
23978
|
+
*
|
|
23979
|
+
* Interface para definição das propriedades dos campos de entrada que serão criados dinamicamente na busca avançada.
|
|
23980
|
+
*/
|
|
23981
|
+
interface PoLookupAdvancedFilter extends PoDynamicFormField {
|
|
23982
|
+
/**
|
|
23983
|
+
* @optional
|
|
23984
|
+
*
|
|
23985
|
+
* @description
|
|
23986
|
+
*
|
|
23987
|
+
* Define um valor inicial para um filtro de busca avançada.
|
|
23988
|
+
*
|
|
23989
|
+
* O valor será atribuído ao campo correspondente à propriedade `property` na primeira abertura da janela de
|
|
23990
|
+
* busca avançada. Após o usuário aplicar o filtro, os campos passam a ser preenchidos com os valores filtrados,
|
|
23991
|
+
* preservando as alterações realizadas.
|
|
23992
|
+
*/
|
|
23993
|
+
initValue?: any;
|
|
23994
|
+
}
|
|
23995
|
+
|
|
23488
23996
|
/**
|
|
23489
23997
|
* @usedBy PoLookupComponent
|
|
23490
23998
|
*
|
|
@@ -23688,14 +24196,6 @@ interface PoLookupLiterals {
|
|
|
23688
24196
|
clean?: string;
|
|
23689
24197
|
}
|
|
23690
24198
|
|
|
23691
|
-
/**
|
|
23692
|
-
* @docsExtends PoDynamicFormField
|
|
23693
|
-
*
|
|
23694
|
-
* @usedBy PoLookupComponent
|
|
23695
|
-
*/
|
|
23696
|
-
interface PoLookupAdvancedFilter extends PoDynamicFormField {
|
|
23697
|
-
}
|
|
23698
|
-
|
|
23699
24199
|
/**
|
|
23700
24200
|
* @usedBy
|
|
23701
24201
|
*
|
|
@@ -23887,6 +24387,7 @@ declare abstract class PoLookupModalBaseComponent implements OnDestroy, OnInit {
|
|
|
23887
24387
|
disclaimer: PoDisclaimer;
|
|
23888
24388
|
disclaimerGroup: PoDisclaimerGroup;
|
|
23889
24389
|
isAdvancedFilter: boolean;
|
|
24390
|
+
isAdvancedFilterApplied: boolean;
|
|
23890
24391
|
primaryActionAdvancedFilter: PoModalAction;
|
|
23891
24392
|
secondaryActionAdvancedFilter: PoModalAction;
|
|
23892
24393
|
selecteds: Array<any>;
|
|
@@ -23965,6 +24466,8 @@ declare class PoLookupModalComponent extends PoLookupModalBaseComponent implemen
|
|
|
23965
24466
|
onAdvancedFilter(): void;
|
|
23966
24467
|
private setTableHeight;
|
|
23967
24468
|
private setupModalAdvancedFilter;
|
|
24469
|
+
private getInitialValuesFromFilter;
|
|
24470
|
+
private getValuesFromDisclaimers;
|
|
23968
24471
|
private createDynamicForm;
|
|
23969
24472
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoLookupModalComponent, never>;
|
|
23970
24473
|
static ɵcmp: i0.ɵɵComponentDeclaration<PoLookupModalComponent, "po-lookup-modal", never, {}, {}, never, never, false, never>;
|
|
@@ -24267,6 +24770,20 @@ declare abstract class PoLookupBaseComponent implements ControlValueAccessor, On
|
|
|
24267
24770
|
* url + ?page=1&pageSize=20&name=Tony%20Stark,Peter%20Parker,Gohan
|
|
24268
24771
|
* ```
|
|
24269
24772
|
*
|
|
24773
|
+
* Também é possível definir um valor inicial para os campos da busca avançada através da propriedade `initValue`,
|
|
24774
|
+
* que será atribuído ao campo na primeira abertura da janela de busca avançada. Após o usuário aplicar o filtro,
|
|
24775
|
+
* os campos são preenchidos com os valores filtrados:
|
|
24776
|
+
*
|
|
24777
|
+
* ```
|
|
24778
|
+
* advancedFilters: Array<PoLookupAdvancedFilter> = [
|
|
24779
|
+
* { property: 'nickname', label: 'Apelido' },
|
|
24780
|
+
* { property: 'active', label: 'Ativo', initValue: false, options: [
|
|
24781
|
+
* { label: 'Sim', value: true },
|
|
24782
|
+
* { label: 'Não', value: false }
|
|
24783
|
+
* ]}
|
|
24784
|
+
* ];
|
|
24785
|
+
* ```
|
|
24786
|
+
*
|
|
24270
24787
|
*/
|
|
24271
24788
|
advancedFilters: Array<PoLookupAdvancedFilter>;
|
|
24272
24789
|
/**
|
|
@@ -24816,6 +25333,12 @@ declare abstract class PoLookupBaseComponent implements ControlValueAccessor, On
|
|
|
24816
25333
|
* <file name="sample-po-lookup.service.ts"> </file>
|
|
24817
25334
|
* </example>
|
|
24818
25335
|
*
|
|
25336
|
+
* <example name="po-lookup-advanced-filter" title="PO Lookup - Advanced Filter">
|
|
25337
|
+
* <file name="sample-po-lookup-advanced-filter/sample-po-lookup-advanced-filter.component.html"> </file>
|
|
25338
|
+
* <file name="sample-po-lookup-advanced-filter/sample-po-lookup-advanced-filter.component.ts"> </file>
|
|
25339
|
+
* <file name="sample-po-lookup.service.ts"> </file>
|
|
25340
|
+
* </example>
|
|
25341
|
+
*
|
|
24819
25342
|
* <example name="po-lookup-sw-films" title="PO Lookup - Star Wars films">
|
|
24820
25343
|
* <file name="sample-po-lookup-sw-films/sample-po-lookup-sw-films.component.html"> </file>
|
|
24821
25344
|
* <file name="sample-po-lookup-sw-films/sample-po-lookup-sw-films.component.ts"> </file>
|
|
@@ -33310,6 +33833,30 @@ declare class PoGridModule {
|
|
|
33310
33833
|
static ɵinj: i0.ɵɵInjectorDeclaration<PoGridModule>;
|
|
33311
33834
|
}
|
|
33312
33835
|
|
|
33836
|
+
/**
|
|
33837
|
+
* @docsPrivate
|
|
33838
|
+
*
|
|
33839
|
+
* @usedBy PoWidgetComponent
|
|
33840
|
+
*
|
|
33841
|
+
* @description
|
|
33842
|
+
*
|
|
33843
|
+
* Interface de uso **interno**, para o `po-list-view`, que descreve a coluna de seleção
|
|
33844
|
+
* (checkbox/radio) exibida à esquerda do conteúdo do `po-widget`.
|
|
33845
|
+
*
|
|
33846
|
+
*/
|
|
33847
|
+
interface PoWidgetSelection {
|
|
33848
|
+
/**
|
|
33849
|
+
* Tipo do controle de seleção:
|
|
33850
|
+
* - `single`: exibe um `po-radio`.
|
|
33851
|
+
* - `multiple`: exibe um `po-checkbox`.
|
|
33852
|
+
*/
|
|
33853
|
+
type: 'single' | 'multiple';
|
|
33854
|
+
/** Indica se o item está selecionado. */
|
|
33855
|
+
selected?: boolean;
|
|
33856
|
+
/** Callback executado quando a seleção muda. Recebe o novo estado (`boolean`). */
|
|
33857
|
+
change?: (selected: boolean) => void;
|
|
33858
|
+
}
|
|
33859
|
+
|
|
33313
33860
|
/**
|
|
33314
33861
|
* @description
|
|
33315
33862
|
*
|
|
@@ -33327,6 +33874,93 @@ declare class PoGridModule {
|
|
|
33327
33874
|
interface PoListViewAction extends PoPopupAction {
|
|
33328
33875
|
}
|
|
33329
33876
|
|
|
33877
|
+
/**
|
|
33878
|
+
* @usedBy PoListViewComponent
|
|
33879
|
+
*
|
|
33880
|
+
* @description
|
|
33881
|
+
*
|
|
33882
|
+
* Define o modo de exibição do detalhe do item do `po-list-view`, utilizado em conjunto com a
|
|
33883
|
+
* diretiva [`p-list-view-detail-template`](/documentation/po-list-view-detail-template).
|
|
33884
|
+
*/
|
|
33885
|
+
declare enum PoListViewDetailDisplay {
|
|
33886
|
+
/** Expande os detalhes abaixo do item (padrão). */
|
|
33887
|
+
Inline = "inline",
|
|
33888
|
+
/** Exibe os detalhes dentro de um `po-modal`. */
|
|
33889
|
+
Modal = "modal"
|
|
33890
|
+
}
|
|
33891
|
+
|
|
33892
|
+
/**
|
|
33893
|
+
* @usedBy PoListViewComponent
|
|
33894
|
+
*
|
|
33895
|
+
* @description
|
|
33896
|
+
*
|
|
33897
|
+
* Mapeia as chaves do objeto dos itens (`p-items`) para as áreas visuais do componente.
|
|
33898
|
+
*/
|
|
33899
|
+
interface PoListViewFieldProperties {
|
|
33900
|
+
/** Chave com o título do item. */
|
|
33901
|
+
title?: string;
|
|
33902
|
+
/** Chave com o subtítulo do item. */
|
|
33903
|
+
subtitle?: string;
|
|
33904
|
+
/**
|
|
33905
|
+
* Chave com o *link* do título do item.
|
|
33906
|
+
*
|
|
33907
|
+
* > Compatível com a propriedade `title`. Incompatível com o evento `p-item-click`.
|
|
33908
|
+
*/
|
|
33909
|
+
link?: string;
|
|
33910
|
+
/**
|
|
33911
|
+
* Chave correspondente ao avatar do item.
|
|
33912
|
+
*
|
|
33913
|
+
* O valor mapeado suporta quatro formatos distintos:
|
|
33914
|
+
*
|
|
33915
|
+
* - **String (URL):** Renderiza o `po-avatar` com a imagem especificada.
|
|
33916
|
+
* ```
|
|
33917
|
+
* { avatar: '[https://url-da-imagem.png](https://url-da-imagem.png)' }
|
|
33918
|
+
* ```
|
|
33919
|
+
*
|
|
33920
|
+
* - **Objeto com `icon`:** Renderiza um ícone circular com tamanho fixo. Aceita as seguintes propriedades:
|
|
33921
|
+
* - `icon` (obrigatória).
|
|
33922
|
+
* - `color` e `backgroundColor`: aceitam qualquer formato de cor CSS (Hex, RGB, nomes, etc.).
|
|
33923
|
+
* ```
|
|
33924
|
+
* { avatar: { icon: 'an an-shield-warning', color: '#dc2626', backgroundColor: '#fee2e2' } }
|
|
33925
|
+
* ```
|
|
33926
|
+
*
|
|
33927
|
+
* - **Objeto com `progress`:** Renderiza o `po-progress-circle`. Aceita as seguintes propriedades:
|
|
33928
|
+
* - `progress` (number): Valor de 0 a 100.
|
|
33929
|
+
* - `indeterminate` (boolean): Animação de carregamento contínuo (ignora `progress`).
|
|
33930
|
+
* - `showPercentage` (boolean): Exibe a porcentagem centralizada.
|
|
33931
|
+
* - `status` (string): `'default'`, `'success'` ou `'error'`.
|
|
33932
|
+
* - `size` (string) e `radius` (number): `'medium'`, `'large'` ou medida exata do raio em *pixels*.
|
|
33933
|
+
* - `ariaLabel` (string): Rótulo para acessibilidade.
|
|
33934
|
+
* ```
|
|
33935
|
+
* { avatar: { progress: 65, showPercentage: true, size: 'large', radius: 40 } }
|
|
33936
|
+
* ```
|
|
33937
|
+
*
|
|
33938
|
+
* - **Objeto com `customTemplate`:** Renderiza um fragmento customizado referenciado via `TemplateRef`.
|
|
33939
|
+
* ```
|
|
33940
|
+
* { avatar: { customTemplate: myTemplateRef } }
|
|
33941
|
+
* ```
|
|
33942
|
+
*/
|
|
33943
|
+
avatar?: string;
|
|
33944
|
+
/** Chave booleana que aplica destaque visual ao item. */
|
|
33945
|
+
highlighted?: string;
|
|
33946
|
+
/**
|
|
33947
|
+
* Objeto da `tag` do item.
|
|
33948
|
+
*
|
|
33949
|
+
* Aceita as seguintes propriedades:
|
|
33950
|
+
*
|
|
33951
|
+
* - **`value`** (string): Chave com o texto da *tag*.
|
|
33952
|
+
* - **`type`** (string): Chave com o tipo da *tag* (`success`, `warning`, `danger`, `info`, `neutral`). Caso não informado, utiliza `success` como padrão.
|
|
33953
|
+
*
|
|
33954
|
+
* ```
|
|
33955
|
+
* { tag: { value: 'status', type: 'statusType' } }
|
|
33956
|
+
* ```
|
|
33957
|
+
*/
|
|
33958
|
+
tag?: {
|
|
33959
|
+
value?: string;
|
|
33960
|
+
type?: string;
|
|
33961
|
+
};
|
|
33962
|
+
}
|
|
33963
|
+
|
|
33330
33964
|
/**
|
|
33331
33965
|
* @usedBy PoListViewComponent
|
|
33332
33966
|
*
|
|
@@ -33335,6 +33969,8 @@ interface PoListViewAction extends PoPopupAction {
|
|
|
33335
33969
|
* Interface para definição das literais usadas no `po-list-view`.
|
|
33336
33970
|
*/
|
|
33337
33971
|
interface PoListViewLiterals {
|
|
33972
|
+
/** Título padrão do `po-modal` de detalhes, exibido quando `p-detail-display` é `modal`. */
|
|
33973
|
+
detailModalTitle?: string;
|
|
33338
33974
|
/** Rótulo do botão que oculta os detalhes do item. */
|
|
33339
33975
|
hideDetails?: string;
|
|
33340
33976
|
/** Rótulo do botão que deve carregar mais resultados. */
|
|
@@ -33350,27 +33986,104 @@ interface PoListViewLiterals {
|
|
|
33350
33986
|
/**
|
|
33351
33987
|
* @description
|
|
33352
33988
|
*
|
|
33353
|
-
*
|
|
33354
|
-
*
|
|
33355
|
-
*
|
|
33356
|
-
*
|
|
33989
|
+
* O componente `po-list-view` é responsável por renderizar de forma dinâmica uma lista de dados baseada em um *array* de
|
|
33990
|
+
* objetos, adaptando-se às necessidades visuais de cada interface.
|
|
33991
|
+
*
|
|
33992
|
+
* Cada item da lista é construído internamente utilizando a estrutura de um `po-widget`, assegurando consistência visual.
|
|
33993
|
+
* Para layouts complexos, o componente oferece flexibilidade através das diretivas
|
|
33994
|
+
* de templates **[p-list-view-content-template](/documentation/po-list-view-content-template)** e
|
|
33995
|
+
* **[p-list-view-detail-template](/documentation/po-list-view-detail-template)** para customização do conteúdo e exibição
|
|
33996
|
+
* de informações adicionais.
|
|
33997
|
+
*
|
|
33998
|
+
* A interação com o componente pode ser realizada com o *mouse* ou pelo teclado. A navegação entre os elementos
|
|
33999
|
+
* interativos é feita utilizando a tecla `TAB`. Os elementos que recebem foco ao navegar incluem:
|
|
34000
|
+
* - O próprio item (quando a propriedade de clique estiver ativa);
|
|
34001
|
+
* - Título do item (quando configurado como *link*);
|
|
34002
|
+
* - Ações do item configuradas em `p-actions`;
|
|
34003
|
+
* - Botão de controle de detalhes (para expandir ou abrir modal);
|
|
34004
|
+
* - Colunas de seleção (única ou múltipla);
|
|
34005
|
+
* - Botão de carregar mais resultados (`p-show-more`).
|
|
34006
|
+
*
|
|
34007
|
+
* A execução das ações focadas ou a marcação de itens nas colunas de seleção é realizada com as teclas `Enter` ou
|
|
34008
|
+
* `Espaço`.
|
|
34009
|
+
*
|
|
34010
|
+
* #### Tokens customizáveis
|
|
34011
|
+
*
|
|
34012
|
+
* É possível alterar o estilo do componente usando os seguintes tokens (CSS):
|
|
34013
|
+
*
|
|
34014
|
+
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
34015
|
+
*
|
|
34016
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
34017
|
+
* |------------------------------------------------|--------------------------------------------------------|--------------------------------------------------------------|
|
|
34018
|
+
* | **Título** | | |
|
|
34019
|
+
* | `--title-color` | Cor do título do item | `var(--title-color)` |
|
|
34020
|
+
* | `--title-font-family` | Família tipográfica do título | `var(--font-family-theme)` |
|
|
34021
|
+
* | `--title-font-size` | Tamanho da fonte do título | `var(--font-size-default)` |
|
|
34022
|
+
* | `--title-line-height` | Altura da linha do título | `var(--line-height-md)` |
|
|
34023
|
+
* | `--title-color-hover` | Cor do título no estado hover | `var(--color-action-hover)` |
|
|
34024
|
+
* | `--title-color-selected` | Cor do título quando o item está selecionado | `var(--color-action-focus)` |
|
|
34025
|
+
* | **Subtítulo (Support Message)** | | |
|
|
34026
|
+
* | `--support-message-color` | Cor da mensagem de apoio | `var(--color-neutral-dark-80)` |
|
|
34027
|
+
* | `--support-message-font-family` | Família tipográfica da mensagem de apoio | `var(--font-family-theme)` |
|
|
34028
|
+
* | `--support-message-font-size` | Tamanho da fonte da mensagem de apoio | `var(--font-size-sm)` |
|
|
34029
|
+
* | `--support-message-line-height` | Altura da linha da mensagem de apoio | `var(--line-height-none)` |
|
|
34030
|
+
* | `--support-message-color-selected` | Cor da mensagem de apoio quando o item está selecionado| `var(--color-action-focus)` |
|
|
34031
|
+
* | **Item - Normal** | | |
|
|
34032
|
+
* | `--list-item-background` | Cor de fundo do item | `var(--list-item-background)` |
|
|
34033
|
+
* | `--list-item-border-color` | Cor da borda do item | `var(--list-item-border-color)` |
|
|
34034
|
+
* | `--list-item-border-width` | Largura da borda do item | `var(--border-width-sm)` |
|
|
34035
|
+
* | `--list-item-border-radius` | Raio de arredondamento dos cantos do item | `var(--border-radius-md)` |
|
|
34036
|
+
* | `--list-item-shadow` | Sombra base do item | `var(--shadow-md)` |
|
|
34037
|
+
* | **Item - Selecionado** | | |
|
|
34038
|
+
* | `--list-item-background-selected` | Cor de fundo do item selecionado | `var(--color-brand-01-lightest)` |
|
|
34039
|
+
* | `--list-item-border-color-selected` | Cor da borda do item selecionado | `var(--color-action-default)` |
|
|
34040
|
+
* | **Item - Hover** | | |
|
|
34041
|
+
* | `--list-item-border-color-hover` | Cor da borda do item no estado hover | `var(--color-action-hover)` |
|
|
34042
|
+
* | `--list-item-shadow-hover` | Sombra do item no estado hover | `var(--shadow-lg)` |
|
|
34043
|
+
* | **Item - Focus** | | |
|
|
34044
|
+
* | `--list-item-color-focused` | Cor da borda do item no estado focus | `var(--color-action-default)` |
|
|
34045
|
+
* | `--list-item-outline-color-focused` | Cor do outline do item no estado focus | `var(--color-action-focus)` |
|
|
34046
|
+
* | **Destaque (Highlighted)** | | |
|
|
34047
|
+
* | `--list-item-background-highlighted` | Cor de fundo do item destacado | `var(--color-brand-01-lightest)` |
|
|
34048
|
+
* | **Motion** | | |
|
|
34049
|
+
* | `--list-item-transition-duration` | Duração da transição do item | `var(--duration-normal)` |
|
|
34050
|
+
* | `--list-item-transition-property` | Propriedades CSS animadas | `all` |
|
|
34051
|
+
* | `--list-item-transition-timing` | Curva de aceleração da transição | `var(--timing-standard, var(--timing-standart, ease))` |
|
|
33357
34052
|
*
|
|
33358
|
-
* O componente disponibiliza uma área específica para exibição informações adicionais,
|
|
33359
|
-
* através da diretiva **[p-list-view-detail-template](/documentation/po-list-view-detail-template)**.
|
|
33360
34053
|
*/
|
|
33361
34054
|
declare class PoListViewBaseComponent {
|
|
33362
|
-
/**
|
|
34055
|
+
/**
|
|
34056
|
+
* @deprecated v23.x.x use `p-field-properties`
|
|
34057
|
+
*
|
|
34058
|
+
* @optional
|
|
34059
|
+
*
|
|
34060
|
+
* @description
|
|
34061
|
+
*
|
|
34062
|
+
* Chave do objeto (`p-items`) com o *link* do título do item.
|
|
34063
|
+
*
|
|
34064
|
+
* > Essa propriedade está depreciada e será removida na versão 23.x.x. Recomendamos utilizar a propriedade
|
|
34065
|
+
* `p-field-properties`.
|
|
34066
|
+
*/
|
|
33363
34067
|
propertyLink?: string;
|
|
33364
|
-
/** Recebe uma propriedade que será utilizada para recuperar o valor do objeto que será exibido como o título de cada item. */
|
|
33365
|
-
propertyTitle?: string;
|
|
33366
34068
|
/**
|
|
34069
|
+
* @deprecated v23.x.x use `p-field-properties`
|
|
34070
|
+
*
|
|
33367
34071
|
* @optional
|
|
33368
34072
|
*
|
|
33369
34073
|
* @description
|
|
33370
34074
|
*
|
|
33371
|
-
*
|
|
34075
|
+
* Chave do objeto (`p-items`) com o título do item.
|
|
34076
|
+
*
|
|
34077
|
+
* > Essa propriedade está depreciada e será removida na versão 23.x.x. Recomendamos utilizar a propriedade
|
|
34078
|
+
* `p-field-properties`.
|
|
34079
|
+
*/
|
|
34080
|
+
propertyTitle?: string;
|
|
34081
|
+
/**
|
|
34082
|
+
* @optional
|
|
34083
|
+
*
|
|
34084
|
+
* @description
|
|
33372
34085
|
*
|
|
33373
|
-
*
|
|
34086
|
+
* Ação executada ao clicar no botão de carregar mais resultados.
|
|
33374
34087
|
*/
|
|
33375
34088
|
showMore: EventEmitter<any>;
|
|
33376
34089
|
/**
|
|
@@ -33379,8 +34092,12 @@ declare class PoListViewBaseComponent {
|
|
|
33379
34092
|
* @description
|
|
33380
34093
|
*
|
|
33381
34094
|
* Ação que será executada ao clicar no título.
|
|
34095
|
+
* Retorna o item da lista clicado.
|
|
34096
|
+
*
|
|
34097
|
+
* > Compatível com o título configurado como *link* (`PoListViewFieldProperties.link` ou `p-property-link`):
|
|
34098
|
+
* ao clicar, o evento é emitido e, havendo *link*, a navegação também é realizada.
|
|
33382
34099
|
*
|
|
33383
|
-
*
|
|
34100
|
+
* > Incompatível com o evento `p-item-click`.
|
|
33384
34101
|
*/
|
|
33385
34102
|
titleAction: EventEmitter<any>;
|
|
33386
34103
|
/**
|
|
@@ -33388,11 +34105,23 @@ declare class PoListViewBaseComponent {
|
|
|
33388
34105
|
*
|
|
33389
34106
|
* @description
|
|
33390
34107
|
*
|
|
33391
|
-
* Ação que será executada ao
|
|
34108
|
+
* Ação que será executada ao expandir os detalhes do item.
|
|
34109
|
+
* Retorna o item da lista clicado.
|
|
33392
34110
|
*
|
|
33393
|
-
*
|
|
34111
|
+
* > Incompatível com o evento `p-item-click`.
|
|
33394
34112
|
*/
|
|
33395
34113
|
showDetail: EventEmitter<any>;
|
|
34114
|
+
/**
|
|
34115
|
+
* @optional
|
|
34116
|
+
*
|
|
34117
|
+
* @description
|
|
34118
|
+
*
|
|
34119
|
+
* Ação que será executada ao clicar no item da lista. Quando definida, torna o item clicável.
|
|
34120
|
+
* Retorna o item da lista clicado.
|
|
34121
|
+
*
|
|
34122
|
+
* > O evento é desabilitado caso o item possua duas ou mais ações visíveis (`p-actions`).
|
|
34123
|
+
*/
|
|
34124
|
+
itemClick: EventEmitter<any>;
|
|
33396
34125
|
popupTarget: any;
|
|
33397
34126
|
selectAll: boolean;
|
|
33398
34127
|
showHeader: boolean;
|
|
@@ -33405,6 +34134,7 @@ declare class PoListViewBaseComponent {
|
|
|
33405
34134
|
private _literals;
|
|
33406
34135
|
private _select;
|
|
33407
34136
|
private _showMoreDisabled;
|
|
34137
|
+
private _singleSelect;
|
|
33408
34138
|
private readonly language;
|
|
33409
34139
|
/**
|
|
33410
34140
|
* @optional
|
|
@@ -33412,6 +34142,7 @@ declare class PoListViewBaseComponent {
|
|
|
33412
34142
|
* @description
|
|
33413
34143
|
*
|
|
33414
34144
|
* Lista de ações que serão exibidas no componente.
|
|
34145
|
+
* As propriedades das ações seguem a interface `PoPopupAction`.
|
|
33415
34146
|
*/
|
|
33416
34147
|
set actions(value: Array<PoListViewAction>);
|
|
33417
34148
|
get actions(): Array<PoListViewAction>;
|
|
@@ -33420,7 +34151,7 @@ declare class PoListViewBaseComponent {
|
|
|
33420
34151
|
*
|
|
33421
34152
|
* @description
|
|
33422
34153
|
*
|
|
33423
|
-
* Define o
|
|
34154
|
+
* Define o dimensionamento geral dos elementos no template.
|
|
33424
34155
|
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
33425
34156
|
* - `medium`: aplica a medida medium de cada componente.
|
|
33426
34157
|
*
|
|
@@ -33436,20 +34167,65 @@ declare class PoListViewBaseComponent {
|
|
|
33436
34167
|
*
|
|
33437
34168
|
* @description
|
|
33438
34169
|
*
|
|
33439
|
-
* Define a altura do `
|
|
34170
|
+
* Define a altura da lista em *px*, desconsiderando o espaço do botão `p-show-more`.
|
|
34171
|
+
*
|
|
34172
|
+
* > Caso não seja informado valor, a propriedade irá assumir o tamanho do conteúdo.
|
|
33440
34173
|
*/
|
|
33441
34174
|
set height(height: number);
|
|
33442
34175
|
get height(): number;
|
|
33443
34176
|
/**
|
|
34177
|
+
* @optional
|
|
34178
|
+
*
|
|
33444
34179
|
* @description
|
|
33445
34180
|
*
|
|
33446
|
-
*
|
|
34181
|
+
* Habilita a seleção de itens na lista.
|
|
34182
|
+
*
|
|
34183
|
+
* Por padrão, renderiza um *checkbox* para seleção múltipla. Caso a propriedade `p-single-select` esteja habilitada,
|
|
34184
|
+
* renderiza um botão *radio* para seleção única.
|
|
34185
|
+
*
|
|
34186
|
+
* Ao utilizar esta propriedade, todos os itens recebem a propriedade dinâmica `$selected` para identificar o seu estado
|
|
34187
|
+
* de seleção. Por exemplo:
|
|
34188
|
+
*
|
|
34189
|
+
* ```
|
|
34190
|
+
* item.$selected
|
|
34191
|
+
*
|
|
34192
|
+
* // ou
|
|
34193
|
+
*
|
|
34194
|
+
* item['$selected']
|
|
34195
|
+
* ```
|
|
33447
34196
|
*
|
|
33448
34197
|
* @default `false`
|
|
33449
34198
|
*/
|
|
33450
34199
|
set hideSelectAll(hideSelectAll: boolean);
|
|
33451
34200
|
get hideSelectAll(): boolean;
|
|
33452
|
-
/**
|
|
34201
|
+
/**
|
|
34202
|
+
* @description
|
|
34203
|
+
*
|
|
34204
|
+
* Lista de itens que serão exibidos no componente.
|
|
34205
|
+
*
|
|
34206
|
+
* A renderização dos dados depende do mapeamento das chaves dos objetos através da propriedade `p-field-properties`.
|
|
34207
|
+
*
|
|
34208
|
+
* Exemplo de uso:
|
|
34209
|
+
*
|
|
34210
|
+
* ```
|
|
34211
|
+
* const listItems = [
|
|
34212
|
+
* { name: 'John Doe', job: 'Developer' },
|
|
34213
|
+
* { name: 'Jane Smith', job: 'Designer' }
|
|
34214
|
+
* ];
|
|
34215
|
+
*
|
|
34216
|
+
* const listMapping = {
|
|
34217
|
+
* title: 'name',
|
|
34218
|
+
* subtitle: 'job'
|
|
34219
|
+
* };
|
|
34220
|
+
* ```
|
|
34221
|
+
*
|
|
34222
|
+
* ```
|
|
34223
|
+
* <po-list-view
|
|
34224
|
+
* [p-items]="listItems"
|
|
34225
|
+
* [p-field-properties]="listMapping">
|
|
34226
|
+
* </po-list-view>
|
|
34227
|
+
* ```
|
|
34228
|
+
*/
|
|
33453
34229
|
set items(value: Array<any>);
|
|
33454
34230
|
get items(): Array<any>;
|
|
33455
34231
|
/**
|
|
@@ -33457,9 +34233,9 @@ declare class PoListViewBaseComponent {
|
|
|
33457
34233
|
*
|
|
33458
34234
|
* @description
|
|
33459
34235
|
*
|
|
33460
|
-
* Objeto com as literais usadas no
|
|
34236
|
+
* Objeto com as literais usadas no po-list-view, permitindo personalizar os textos exibidos no componente.
|
|
33461
34237
|
*
|
|
33462
|
-
*
|
|
34238
|
+
* Exemplo de uso:
|
|
33463
34239
|
*
|
|
33464
34240
|
* ```
|
|
33465
34241
|
* const customLiterals: PoListViewLiterals = {
|
|
@@ -33470,16 +34246,6 @@ declare class PoListViewBaseComponent {
|
|
|
33470
34246
|
* };
|
|
33471
34247
|
* ```
|
|
33472
34248
|
*
|
|
33473
|
-
* Ou passando apenas as literais que deseja customizar:
|
|
33474
|
-
*
|
|
33475
|
-
* ```
|
|
33476
|
-
* const customLiterals: PoListViewLiterals = {
|
|
33477
|
-
* showDetail: 'Mostrar mais detalhes'
|
|
33478
|
-
* };
|
|
33479
|
-
* ```
|
|
33480
|
-
*
|
|
33481
|
-
* E para carregar as literais customizadas, basta apenas passar o objeto para o componente.
|
|
33482
|
-
*
|
|
33483
34249
|
* ```
|
|
33484
34250
|
* <po-list-view
|
|
33485
34251
|
* [p-literals]="customLiterals">
|
|
@@ -33496,8 +34262,8 @@ declare class PoListViewBaseComponent {
|
|
|
33496
34262
|
*
|
|
33497
34263
|
* @description
|
|
33498
34264
|
*
|
|
33499
|
-
* Habilita um *checkbox* para cada item da lista. Todos os items possuem a propriedade dinâmica `$selected` para
|
|
33500
|
-
* item está selecionado, por exemplo:
|
|
34265
|
+
* Habilita um *checkbox* para cada item da lista. Todos os items possuem a propriedade dinâmica `$selected` para
|
|
34266
|
+
* identificar se o item está selecionado, por exemplo:
|
|
33501
34267
|
*
|
|
33502
34268
|
* ```
|
|
33503
34269
|
* item.$selected
|
|
@@ -33516,7 +34282,110 @@ declare class PoListViewBaseComponent {
|
|
|
33516
34282
|
*
|
|
33517
34283
|
* @description
|
|
33518
34284
|
*
|
|
33519
|
-
*
|
|
34285
|
+
* Define que somente um item da lista pode ser selecionado quando a seleção estiver habilitada
|
|
34286
|
+
* através da propriedade `p-select`.
|
|
34287
|
+
*
|
|
34288
|
+
* > Quando habilitado, a opção "Selecionar todos" é ocultada.
|
|
34289
|
+
*
|
|
34290
|
+
* @default `false`
|
|
34291
|
+
*/
|
|
34292
|
+
set singleSelect(value: boolean);
|
|
34293
|
+
get singleSelect(): boolean;
|
|
34294
|
+
get isSingleSelection(): boolean;
|
|
34295
|
+
/**
|
|
34296
|
+
* @optional
|
|
34297
|
+
*
|
|
34298
|
+
* @description
|
|
34299
|
+
*
|
|
34300
|
+
* Define como o detalhe do item (diretiva `p-list-view-detail-template`) será exibido:
|
|
34301
|
+
* A utilização desta propriedade renderiza um botão de ação (como "Exibir detalhes" ou "Ver detalhes") no rodapé do item
|
|
34302
|
+
* para controlar a visualização do conteúdo.
|
|
34303
|
+
*
|
|
34304
|
+
* Valores válidos:
|
|
34305
|
+
* - `inline`: expande o conteúdo do detalhe abaixo do item.
|
|
34306
|
+
* - `modal`: exibe o conteúdo do detalhe no corpo de um `po-modal`.
|
|
34307
|
+
*
|
|
34308
|
+
* > Incompatível com o evento `p-item-click`.
|
|
34309
|
+
*
|
|
34310
|
+
* @default `inline`
|
|
34311
|
+
*/
|
|
34312
|
+
detailDisplay: i0.InputSignalWithTransform<PoListViewDetailDisplay, string>;
|
|
34313
|
+
get isDetailModal(): boolean;
|
|
34314
|
+
/**
|
|
34315
|
+
* @optional
|
|
34316
|
+
*
|
|
34317
|
+
* @description
|
|
34318
|
+
*
|
|
34319
|
+
* Define o posicionamento da *tag* (`PoListViewFieldProperties.tag.value`) em relação ao título dentro do item:
|
|
34320
|
+
* - `right`: ao lado direito do título.
|
|
34321
|
+
* - `top`: acima do título.
|
|
34322
|
+
* - `bottom`: abaixo do título.
|
|
34323
|
+
*
|
|
34324
|
+
* @default `bottom`
|
|
34325
|
+
*/
|
|
34326
|
+
tagPosition: i0.InputSignal<string>;
|
|
34327
|
+
/**
|
|
34328
|
+
* @optional
|
|
34329
|
+
*
|
|
34330
|
+
* @description
|
|
34331
|
+
*
|
|
34332
|
+
* Consolida, em um único objeto tipado ([`PoListViewFieldProperties`](/documentation/po-list-view#fieldProperties)),
|
|
34333
|
+
* o mapeamento entre as propriedades do item e as áreas visuais do componente (título, subtítulo,
|
|
34334
|
+
* link, avatar, destaque e tag).
|
|
34335
|
+
*
|
|
34336
|
+
* ```
|
|
34337
|
+
* <po-list-view
|
|
34338
|
+
* [p-field-properties]="{
|
|
34339
|
+
* title: 'name',
|
|
34340
|
+
* subtitle: 'jobDescription',
|
|
34341
|
+
* link: 'url',
|
|
34342
|
+
* avatar: 'avatar',
|
|
34343
|
+
* highlighted: 'unread',
|
|
34344
|
+
* tag: { value: 'hireStatus', type: 'hireTagType' }
|
|
34345
|
+
* }">
|
|
34346
|
+
* </po-list-view>
|
|
34347
|
+
* ```
|
|
34348
|
+
*/
|
|
34349
|
+
fieldProperties: i0.InputSignal<PoListViewFieldProperties>;
|
|
34350
|
+
protected get resolvedPropertyTitle(): string;
|
|
34351
|
+
protected get resolvedPropertyLink(): string;
|
|
34352
|
+
protected get resolvedPropertySubtitle(): string;
|
|
34353
|
+
protected get resolvedPropertyHighlighted(): string;
|
|
34354
|
+
protected get resolvedPropertyAvatar(): string;
|
|
34355
|
+
protected get resolvedPropertyTag(): string;
|
|
34356
|
+
protected get resolvedPropertyTagType(): string;
|
|
34357
|
+
/**
|
|
34358
|
+
* @optional
|
|
34359
|
+
*
|
|
34360
|
+
* @description
|
|
34361
|
+
*
|
|
34362
|
+
* Define o tamanho do avatar do tipo **imagem** (URL).
|
|
34363
|
+
*
|
|
34364
|
+
* Valores válidos:
|
|
34365
|
+
* - `xs` (24x24)
|
|
34366
|
+
* - `sm` (32x32)
|
|
34367
|
+
* - `md` (64x64)
|
|
34368
|
+
* - `lg` (96x96)
|
|
34369
|
+
* - `xl` (144x144)
|
|
34370
|
+
*
|
|
34371
|
+
* > Incompatível com os demais tipos de avatar (icon, progress, customTemplate).
|
|
34372
|
+
*
|
|
34373
|
+
* @default `md`
|
|
34374
|
+
*/
|
|
34375
|
+
avatarSize: i0.InputSignal<string>;
|
|
34376
|
+
/**
|
|
34377
|
+
* @docsPrivate
|
|
34378
|
+
*
|
|
34379
|
+
* Aplica a classe de host `po-list-view-widget-mode` permanentemente, habilitando via CSS (po-style) o visual do
|
|
34380
|
+
* componente.
|
|
34381
|
+
*/
|
|
34382
|
+
readonly widgetModeVisualClass = true;
|
|
34383
|
+
/**
|
|
34384
|
+
* @optional
|
|
34385
|
+
*
|
|
34386
|
+
* @description
|
|
34387
|
+
*
|
|
34388
|
+
* Indica que o botão *Carregar Mais Resultados* (`p-show-more`) será desabilitado.
|
|
33520
34389
|
*/
|
|
33521
34390
|
set showMoreDisabled(value: boolean);
|
|
33522
34391
|
get showMoreDisabled(): boolean;
|
|
@@ -33528,11 +34397,11 @@ declare class PoListViewBaseComponent {
|
|
|
33528
34397
|
selectListItem(row: any): void;
|
|
33529
34398
|
protected onThemeChange(): void;
|
|
33530
34399
|
private applySizeBasedOnA11y;
|
|
33531
|
-
|
|
34400
|
+
protected deleteInternalAttrs(item: any): any;
|
|
33532
34401
|
private checkIfItemsAreSelected;
|
|
33533
34402
|
private showMainHeader;
|
|
33534
34403
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoListViewBaseComponent, never>;
|
|
33535
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoListViewBaseComponent, never, never, { "propertyLink": { "alias": "p-property-link"; "required": false; }; "propertyTitle": { "alias": "p-property-title"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "componentsSize": { "alias": "p-components-size"; "required": false; }; "height": { "alias": "p-height"; "required": false; }; "hideSelectAll": { "alias": "p-hide-select-all"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "select": { "alias": "p-select"; "required": false; }; "showMoreDisabled": { "alias": "p-show-more-disabled"; "required": false; }; }, { "showMore": "p-show-more"; "titleAction": "p-title-action"; "showDetail": "p-show-detail"; }, never, never, true, never>;
|
|
34404
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoListViewBaseComponent, never, never, { "propertyLink": { "alias": "p-property-link"; "required": false; }; "propertyTitle": { "alias": "p-property-title"; "required": false; }; "actions": { "alias": "p-actions"; "required": false; }; "componentsSize": { "alias": "p-components-size"; "required": false; }; "height": { "alias": "p-height"; "required": false; }; "hideSelectAll": { "alias": "p-hide-select-all"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "select": { "alias": "p-select"; "required": false; }; "singleSelect": { "alias": "p-single-select"; "required": false; }; "detailDisplay": { "alias": "p-detail-display"; "required": false; "isSignal": true; }; "tagPosition": { "alias": "p-tag-position"; "required": false; "isSignal": true; }; "fieldProperties": { "alias": "p-field-properties"; "required": false; "isSignal": true; }; "avatarSize": { "alias": "p-avatar-size"; "required": false; "isSignal": true; }; "showMoreDisabled": { "alias": "p-show-more-disabled"; "required": false; }; }, { "showMore": "p-show-more"; "titleAction": "p-title-action"; "showDetail": "p-show-detail"; "itemClick": "p-item-click"; }, never, never, true, never>;
|
|
33536
34405
|
}
|
|
33537
34406
|
|
|
33538
34407
|
/**
|
|
@@ -33678,6 +34547,12 @@ declare class PoListViewContentTemplateDirective {
|
|
|
33678
34547
|
* ...
|
|
33679
34548
|
*
|
|
33680
34549
|
* ```
|
|
34550
|
+
*
|
|
34551
|
+
* > O modo de exibição do detalhe é definido pela propriedade
|
|
34552
|
+
* [`p-detail-display`](/documentation/po-list-view) do `po-list-view`, que utiliza os valores do
|
|
34553
|
+
* enum `PoListViewDetailDisplay`:
|
|
34554
|
+
* - `inline`: expande o conteúdo do detalhe abaixo do item (padrão);
|
|
34555
|
+
* - `modal`: exibe o conteúdo do detalhe no corpo de um `po-modal`.
|
|
33681
34556
|
*/
|
|
33682
34557
|
declare class PoListViewDetailTemplateDirective {
|
|
33683
34558
|
templateRef: TemplateRef<any>;
|
|
@@ -33706,6 +34581,11 @@ declare class PoListViewDetailTemplateDirective {
|
|
|
33706
34581
|
* <file name="sample-po-list-view-basic/sample-po-list-view-basic.component.ts"> </file>
|
|
33707
34582
|
* </example>
|
|
33708
34583
|
*
|
|
34584
|
+
* <example name="po-list-view-field-properties" title="PO List View - Field Properties">
|
|
34585
|
+
* <file name="sample-po-list-view-field-properties/sample-po-list-view-field-properties.component.html"> </file>
|
|
34586
|
+
* <file name="sample-po-list-view-field-properties/sample-po-list-view-field-properties.component.ts"> </file>
|
|
34587
|
+
* </example>
|
|
34588
|
+
*
|
|
33709
34589
|
* <example name="po-list-view-labs" title="PO List View Labs">
|
|
33710
34590
|
* <file name="sample-po-list-view-labs/sample-po-list-view-labs.component.html"> </file>
|
|
33711
34591
|
* <file name="sample-po-list-view-labs/sample-po-list-view-labs.component.ts"> </file>
|
|
@@ -33717,27 +34597,86 @@ declare class PoListViewDetailTemplateDirective {
|
|
|
33717
34597
|
* <file name="sample-po-list-view-hiring-processes/sample-po-list-view-hiring-processes.service.ts"> </file>
|
|
33718
34598
|
* </example>
|
|
33719
34599
|
*/
|
|
33720
|
-
declare class PoListViewComponent extends PoListViewBaseComponent implements AfterContentInit, DoCheck {
|
|
34600
|
+
declare class PoListViewComponent extends PoListViewBaseComponent implements AfterContentInit, DoCheck, AfterViewChecked {
|
|
33721
34601
|
private readonly changeDetector;
|
|
34602
|
+
private readonly router;
|
|
34603
|
+
private readonly elementRef;
|
|
34604
|
+
private readonly renderer;
|
|
33722
34605
|
listViewContentTemplate: PoListViewContentTemplateDirective;
|
|
33723
34606
|
listViewDetailTemplate: PoListViewDetailTemplateDirective;
|
|
34607
|
+
private readonly avatarProgressTemplate;
|
|
34608
|
+
private readonly avatarIconTemplate;
|
|
34609
|
+
private readonly avatarImageTemplate;
|
|
33724
34610
|
poPopupComponent: PoPopupComponent;
|
|
34611
|
+
protected detailModal: PoModalComponent;
|
|
33725
34612
|
popupActions: Array<PoListViewAction>;
|
|
34613
|
+
protected detailModalItem: any;
|
|
34614
|
+
protected detailModalIndex: number;
|
|
33726
34615
|
private readonly differ;
|
|
34616
|
+
private readonly widgetActionsCache;
|
|
34617
|
+
private cachedActionsRef;
|
|
33727
34618
|
constructor();
|
|
33728
34619
|
get hasContentTemplate(): boolean;
|
|
33729
34620
|
get hasDetailTemplate(): boolean;
|
|
33730
34621
|
get displayShowMoreButton(): boolean;
|
|
33731
34622
|
get titleHasAction(): boolean;
|
|
34623
|
+
protected isTitleClickable(item: any): boolean;
|
|
34624
|
+
protected isItemClickable(item: any): boolean;
|
|
34625
|
+
protected isCardFocusable(item: any): boolean;
|
|
34626
|
+
private isSelectionControlClick;
|
|
34627
|
+
protected onItemClick(item: any, event: MouseEvent): void;
|
|
34628
|
+
protected onItemKeyDown(item: any, event: KeyboardEvent): void;
|
|
34629
|
+
protected onTitleKeyDown(item: any, event: KeyboardEvent): void;
|
|
34630
|
+
private updateTitleFocusableElements;
|
|
34631
|
+
private updateTitleAccessibility;
|
|
34632
|
+
private bindTitleFocus;
|
|
34633
|
+
private unbindTitleFocus;
|
|
34634
|
+
private updateSelectionControlsBinding;
|
|
34635
|
+
private updateSelectionControlTabindex;
|
|
34636
|
+
private updateRadioSelectionBinding;
|
|
34637
|
+
private handleSingleSelectionEvent;
|
|
34638
|
+
private updateCheckboxSelectionBinding;
|
|
34639
|
+
private handleCheckboxSelectionEvent;
|
|
34640
|
+
private isConfirmKey;
|
|
34641
|
+
private unbindControlHandler;
|
|
34642
|
+
protected stopPropagation(event?: Event | null): void;
|
|
34643
|
+
protected onAdvancedArrowClick(item: any): void;
|
|
34644
|
+
protected onTitleClick(item: any): void;
|
|
33732
34645
|
ngAfterContentInit(): void;
|
|
33733
34646
|
ngDoCheck(): void;
|
|
34647
|
+
ngAfterViewChecked(): void;
|
|
33734
34648
|
checkTitleType(item: any): "externalLink" | "internalLink" | "noLink";
|
|
33735
34649
|
getItemTitle(item: any): any;
|
|
33736
34650
|
hasItems(): boolean;
|
|
33737
34651
|
returnBooleanValue(listViewAction: PoListViewAction, item: any, property: string): any;
|
|
33738
|
-
trackBy(index:
|
|
34652
|
+
trackBy(item: any, index: number): any;
|
|
34653
|
+
selectListItem(row: any): void;
|
|
34654
|
+
protected onMultipleSelectionChange(item: any, value: boolean): void;
|
|
34655
|
+
private syncSingleSelectionVisualState;
|
|
34656
|
+
private ensureSingleSelectionConsistency;
|
|
34657
|
+
protected onMultipleSelectionKeydown(item: any, event: KeyboardEvent): void;
|
|
34658
|
+
protected getSelectionConfig(item: any): PoWidgetSelection | undefined;
|
|
34659
|
+
onClickAction(listViewAction: PoListViewAction, item: any): void;
|
|
34660
|
+
protected getItemActionType(item: any): 'advanced' | 'multiple' | 'none';
|
|
34661
|
+
protected getItemTag(item: any): string | undefined;
|
|
34662
|
+
protected getItemTagType(item: any): string;
|
|
34663
|
+
protected getItemSubtitle(item: any): string | undefined;
|
|
34664
|
+
protected getItemHighlighted(item: any): boolean;
|
|
34665
|
+
protected getItemAvatar(item: any): any;
|
|
34666
|
+
protected getAvatarType(item: any): string;
|
|
34667
|
+
protected onAvatarImageError(wrapper?: HTMLElement): void;
|
|
34668
|
+
protected onAvatarImageLoad(event: Event, wrapper?: HTMLElement): void;
|
|
34669
|
+
private hideInvalidAvatarIcons;
|
|
34670
|
+
private collapseAvatarContainer;
|
|
34671
|
+
private restoreAvatarContainer;
|
|
34672
|
+
private isIconGlyphEmpty;
|
|
34673
|
+
protected getAvatarData(item: any): any;
|
|
34674
|
+
protected getWidgetActions(item: any): Array<any>;
|
|
33739
34675
|
togglePopup(item: any, targetRef: HTMLElement): void;
|
|
33740
|
-
|
|
34676
|
+
protected animateDetailEnter(event: AnimationCallbackEvent, item: any): void;
|
|
34677
|
+
protected animateDetailLeave(event: AnimationCallbackEvent): void;
|
|
34678
|
+
protected openDetailModal(item: any, index: number): void;
|
|
34679
|
+
protected onCloseDetailModal(): void;
|
|
33741
34680
|
protected getVisibleActions(item: any): Array<PoListViewAction>;
|
|
33742
34681
|
private checkItemsChange;
|
|
33743
34682
|
private initShowDetail;
|
|
@@ -33746,314 +34685,85 @@ declare class PoListViewComponent extends PoListViewBaseComponent implements Aft
|
|
|
33746
34685
|
}
|
|
33747
34686
|
|
|
33748
34687
|
/**
|
|
33749
|
-
* @
|
|
33750
|
-
*
|
|
33751
|
-
* Módulo do componente `po-list-view`.
|
|
33752
|
-
*
|
|
33753
|
-
* > Para o correto funcionamento do componente `po-list-view`, deve ser importado o módulo `BrowserAnimationsModule` no
|
|
33754
|
-
* > módulo principal da sua aplicação.
|
|
33755
|
-
*
|
|
33756
|
-
* Módulo da aplicação:
|
|
33757
|
-
* ```
|
|
33758
|
-
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
33759
|
-
* import { PoModule } from '@po-ui/ng-components';
|
|
33760
|
-
* ...
|
|
33761
|
-
*
|
|
33762
|
-
* @NgModule({
|
|
33763
|
-
* imports: [
|
|
33764
|
-
* BrowserModule,
|
|
33765
|
-
* BrowserAnimationsModule,
|
|
33766
|
-
* ...
|
|
33767
|
-
* PoModule
|
|
33768
|
-
* ],
|
|
33769
|
-
* declarations: [
|
|
33770
|
-
* AppComponent,
|
|
33771
|
-
* ...
|
|
33772
|
-
* ],
|
|
33773
|
-
* providers: [],
|
|
33774
|
-
* bootstrap: [AppComponent]
|
|
33775
|
-
* })
|
|
33776
|
-
* export class AppModule { }
|
|
33777
|
-
* ```
|
|
33778
|
-
*
|
|
33779
|
-
* Em aplicações Standalone, utilize a seguinte configuração para o bootstrap:
|
|
33780
|
-
*
|
|
33781
|
-
* ```
|
|
33782
|
-
* import { bootstrapApplication } from '@angular/platform-browser';
|
|
33783
|
-
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
33784
|
-
* import { AppComponent } from './app.component';
|
|
33785
|
-
*
|
|
33786
|
-
* bootstrapApplication(AppComponent, {
|
|
33787
|
-
* providers: [importProvidersFrom(BrowserAnimationsModule)]
|
|
33788
|
-
* }).catch(err => console.error(err));
|
|
33789
|
-
* ```
|
|
33790
|
-
*/
|
|
33791
|
-
declare class PoListViewModule {
|
|
33792
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoListViewModule, never>;
|
|
33793
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoListViewModule, [typeof PoListViewComponent, typeof PoListViewContentTemplateDirective, typeof PoListViewDetailTemplateDirective], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.RouterModule, typeof PoButtonModule, typeof PoIconModule, typeof PoPopupModule, typeof PoCheckboxModule, typeof PoContainerModule], [typeof PoListViewComponent, typeof PoListViewContentTemplateDirective, typeof PoListViewDetailTemplateDirective]>;
|
|
33794
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PoListViewModule>;
|
|
33795
|
-
}
|
|
33796
|
-
|
|
33797
|
-
declare class PoLogoComponent {
|
|
33798
|
-
poLanguageService: PoLanguageService;
|
|
33799
|
-
readonly literals: any;
|
|
33800
|
-
private _logo?;
|
|
33801
|
-
private _logoAlt;
|
|
33802
|
-
private _link;
|
|
33803
|
-
/**
|
|
33804
|
-
* Define uma classe para o elemento `img` do componente.
|
|
33805
|
-
*
|
|
33806
|
-
* > **Importante**
|
|
33807
|
-
* > A classe deve ser definida apenas quando houver necessidade de ajustar o componente dentro de outro componente.
|
|
33808
|
-
*
|
|
33809
|
-
*/
|
|
33810
|
-
className: string;
|
|
33811
|
-
/**
|
|
33812
|
-
* Define se o componente terá o elemento âncora para uma rota específica.
|
|
33813
|
-
*
|
|
33814
|
-
* > Caso seja definido como false, o componente apenas renderizará o elemento `img`.
|
|
33815
|
-
* > Caso seja definido como true, a rota será `./`.
|
|
33816
|
-
* > Caso seja definido como string, a rota será a string passada.
|
|
33817
|
-
*
|
|
33818
|
-
* @default `true`
|
|
33819
|
-
*/
|
|
33820
|
-
set link(value: boolean | string);
|
|
33821
|
-
get link(): boolean | string;
|
|
33822
|
-
/**
|
|
33823
|
-
* Definie o caminho para a imagem, que será exibida como logomarca.
|
|
33824
|
-
*
|
|
33825
|
-
*/
|
|
33826
|
-
set logo(value: string);
|
|
33827
|
-
get logo(): string;
|
|
33828
|
-
/**
|
|
33829
|
-
* Define o texto alternativo para a logomarca.
|
|
33830
|
-
*
|
|
33831
|
-
* > **Importante**
|
|
33832
|
-
* > Caso esta propriedade não seja definida o texto padrão será "Logomarca início".
|
|
33833
|
-
*/
|
|
33834
|
-
set logoAlt(value: string);
|
|
33835
|
-
get logoAlt(): string;
|
|
33836
|
-
constructor(poLanguageService: PoLanguageService);
|
|
33837
|
-
private maxLength;
|
|
33838
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoLogoComponent, never>;
|
|
33839
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoLogoComponent, "po-logo", never, { "className": { "alias": "p-class"; "required": false; }; "link": { "alias": "p-link"; "required": false; }; "logo": { "alias": "p-logo"; "required": false; }; "logoAlt": { "alias": "p-logo-alt"; "required": false; }; }, {}, never, never, false, never>;
|
|
33840
|
-
}
|
|
33841
|
-
|
|
33842
|
-
declare class PoLogoModule {
|
|
33843
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoLogoModule, never>;
|
|
33844
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoLogoModule, [typeof PoLogoComponent], [typeof i2.CommonModule], [typeof PoLogoComponent]>;
|
|
33845
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PoLogoModule>;
|
|
33846
|
-
}
|
|
33847
|
-
|
|
33848
|
-
/**
|
|
33849
|
-
* @usedBy PoMenuComponent
|
|
33850
|
-
*
|
|
33851
|
-
* @description
|
|
33852
|
-
*
|
|
33853
|
-
* Interface do objeto que deve conter na coleção de itens filtrados no componente `po-menu`.
|
|
33854
|
-
*/
|
|
33855
|
-
interface PoMenuItemFiltered {
|
|
33856
|
-
/** Texto do item de menu. */
|
|
33857
|
-
label: string;
|
|
33858
|
-
/** *Link* para redirecionamento no clique do item do menu, podendo ser um *link* interno ou externo. */
|
|
33859
|
-
link: string;
|
|
33860
|
-
/** Ação a ser executada quando o item de menu for clicado. */
|
|
33861
|
-
action: () => void;
|
|
33862
|
-
}
|
|
33863
|
-
|
|
33864
|
-
/**
|
|
33865
|
-
* @usedBy PoMenuComponent
|
|
34688
|
+
* @usedBy PoWidgetComponent
|
|
33866
34689
|
*
|
|
33867
34690
|
* @description
|
|
33868
34691
|
*
|
|
33869
|
-
* Interface do
|
|
34692
|
+
* Interface para definição do avatar no `po-widget`.
|
|
33870
34693
|
*/
|
|
33871
|
-
interface
|
|
34694
|
+
interface PoWidgetAvatar {
|
|
33872
34695
|
/**
|
|
33873
|
-
*
|
|
33874
|
-
*
|
|
33875
|
-
*
|
|
33876
|
-
* @param {string} search Valor informado no campo de busca dos itens de menus.
|
|
33877
|
-
* @param {any} params Valor informado através da propriedade `p-params`.
|
|
34696
|
+
* Fonte da imagem que pode ser um caminho local (`./assets/images/logo-black-small.png`)
|
|
34697
|
+
* ou um servidor externo (`https://po-ui.io/assets/images/logo-black-small.png`).
|
|
33878
34698
|
*/
|
|
33879
|
-
|
|
33880
|
-
}
|
|
33881
|
-
|
|
33882
|
-
/**
|
|
33883
|
-
* @usedBy PoMenuComponent
|
|
33884
|
-
*
|
|
33885
|
-
* @description
|
|
33886
|
-
*
|
|
33887
|
-
* Interface do *badge* utilizado no `po-menu`.
|
|
33888
|
-
*/
|
|
33889
|
-
interface PoMenuItemBadge {
|
|
34699
|
+
src?: string;
|
|
33890
34700
|
/**
|
|
33891
34701
|
* @optional
|
|
33892
34702
|
*
|
|
33893
34703
|
* @description
|
|
33894
34704
|
*
|
|
33895
|
-
*
|
|
33896
|
-
*
|
|
33897
|
-
* <span class="dot po-color-01"></span> `color-01`
|
|
33898
|
-
*
|
|
33899
|
-
* <span class="dot po-color-02"></span> `color-02`
|
|
33900
|
-
*
|
|
33901
|
-
* <span class="dot po-color-03"></span> `color-03`
|
|
33902
|
-
*
|
|
33903
|
-
* <span class="dot po-color-04"></span> `color-04`
|
|
33904
|
-
*
|
|
33905
|
-
* <span class="dot po-color-05"></span> `color-05`
|
|
33906
|
-
*
|
|
33907
|
-
* <span class="dot po-color-06"></span> `color-06`
|
|
33908
|
-
*
|
|
33909
|
-
* <span class="dot po-color-07"></span> `color-07`
|
|
33910
|
-
*
|
|
33911
|
-
* <span class="dot po-color-08"></span> `color-08`
|
|
33912
|
-
*
|
|
33913
|
-
* <span class="dot po-color-09"></span> `color-09`
|
|
33914
|
-
*
|
|
33915
|
-
* <span class="dot po-color-10"></span> `color-10`
|
|
33916
|
-
*
|
|
33917
|
-
* <span class="dot po-color-11"></span> `color-11`
|
|
34705
|
+
* Tamanho de exibição do componente `po-avatar`.
|
|
33918
34706
|
*
|
|
33919
|
-
*
|
|
34707
|
+
* Valores válidos:
|
|
34708
|
+
* - `xs` (24x24)
|
|
34709
|
+
* - `sm` (32x32)
|
|
34710
|
+
* - `md` (64x64)
|
|
34711
|
+
* - `lg` (96x96)
|
|
34712
|
+
* - `xl` (144x144)
|
|
33920
34713
|
*
|
|
33921
|
-
* @default `
|
|
34714
|
+
* @default `md`
|
|
33922
34715
|
*/
|
|
33923
|
-
|
|
34716
|
+
size?: string;
|
|
33924
34717
|
/**
|
|
33925
|
-
*
|
|
34718
|
+
* Permite a criação de template customizado para o avatar
|
|
33926
34719
|
*
|
|
33927
|
-
*
|
|
34720
|
+
* ```
|
|
34721
|
+
* <po-widget
|
|
34722
|
+
* [p-avatar]="{ customTemplate: customAvatar }"
|
|
34723
|
+
* />
|
|
34724
|
+
*
|
|
34725
|
+
* <ng-template #customAvatar>
|
|
34726
|
+
* ...
|
|
34727
|
+
* </ng-template>
|
|
34728
|
+
* ```
|
|
33928
34729
|
*/
|
|
33929
|
-
|
|
33930
|
-
}
|
|
33931
|
-
|
|
33932
|
-
/**
|
|
33933
|
-
* @usedBy PoMenuComponent
|
|
33934
|
-
*
|
|
33935
|
-
* @description
|
|
33936
|
-
*
|
|
33937
|
-
* Interface para os itens de menu do componente po-menu.
|
|
33938
|
-
*
|
|
33939
|
-
*/
|
|
33940
|
-
interface PoMenuItem {
|
|
34730
|
+
customTemplate?: TemplateRef<any>;
|
|
33941
34731
|
/**
|
|
33942
34732
|
* @optional
|
|
33943
34733
|
*
|
|
33944
34734
|
* @description
|
|
33945
34735
|
*
|
|
33946
|
-
*
|
|
33947
|
-
*
|
|
33948
|
-
* Ao adicioná-lo em um subitem (filho) todos os itens ascendentes (pai) serão marcados com um ponto vermelho.
|
|
33949
|
-
*
|
|
33950
|
-
* > O `po-badge` só será exibido caso o item do menu não possua `subItems` e seu valor seja maior ou igual a 0.
|
|
33951
|
-
*/
|
|
33952
|
-
badge?: PoMenuItemBadge;
|
|
33953
|
-
/** Texto do item de menu. */
|
|
33954
|
-
label: string;
|
|
33955
|
-
/** Link para redirecionamento no click do item do menu, podendo ser um link interno ou externo. */
|
|
33956
|
-
link?: string;
|
|
33957
|
-
/** Ação personalizada para clique do item de menu. */
|
|
33958
|
-
action?: Function;
|
|
33959
|
-
/**
|
|
33960
|
-
* É possível usar qualquer um dos ícones da [Biblioteca de ícones](https://po-ui.io/icons). conforme exemplo abaixo:
|
|
33961
|
-
* ```
|
|
33962
|
-
* <po-menu
|
|
33963
|
-
* [p-menus]="[{ link: '/', label: 'PO ICON', icon: 'an an-newspaper' }]">
|
|
33964
|
-
* </po-menu>
|
|
33965
|
-
* ```
|
|
33966
|
-
*
|
|
33967
|
-
* Também é possível utilizar outras fontes de ícones, por exemplo a biblioteca Font Awesome, da seguinte forma:
|
|
33968
|
-
* ```
|
|
33969
|
-
* <po-menu
|
|
33970
|
-
* [p-menus]="[{ link: '/', label: 'FA ICON', icon: 'fa fa-podcast' }]">
|
|
33971
|
-
* </po-menu>
|
|
33972
|
-
* ```
|
|
33973
|
-
*
|
|
33974
|
-
* Outra opção seria a customização do ícone através do `TemplateRef`, conforme exemplo abaixo:
|
|
33975
|
-
* component.html:
|
|
33976
|
-
* ```
|
|
33977
|
-
* <ng-template #iconTemplate>
|
|
33978
|
-
* <ion-icon name="heart"></ion-icon>
|
|
33979
|
-
* </ng-template>
|
|
33980
|
-
*
|
|
33981
|
-
* <po-menu [p-menus]="myProperty"></po-menu>
|
|
33982
|
-
* ```
|
|
33983
|
-
* component.ts:
|
|
33984
|
-
* ```
|
|
33985
|
-
* @ViewChild('iconTemplate', { static: true } ) iconTemplate : TemplateRef<void>;
|
|
34736
|
+
* Define a largura em porcentagem do `customTemplate`.
|
|
33986
34737
|
*
|
|
33987
|
-
*
|
|
33988
|
-
* {
|
|
33989
|
-
* link: '/',
|
|
33990
|
-
* label: 'Icon',
|
|
33991
|
-
* icon: this.iconTemplate
|
|
33992
|
-
* }
|
|
33993
|
-
* ];
|
|
33994
|
-
* ```
|
|
33995
|
-
* > São exibidos apenas no primeiro nível de menu e serão visíveis apenas se todos os itens de primeiro nível possuírem ícones.
|
|
33996
|
-
* O menu colapsado também aparecerá somente se todos os itens de primeiro nível de menu possuírem ícones e textos curtos.
|
|
33997
|
-
*/
|
|
33998
|
-
icon?: string | TemplateRef<void>;
|
|
33999
|
-
/**
|
|
34000
|
-
* Texto curto exibido através de um tooltip para o item que aparece quando o menu estiver colapsado.
|
|
34001
|
-
* Se colapsado, aparecerá somente se todos os itens de primeiro nível de menu que possuírem ícones e textos curtos.
|
|
34738
|
+
* O valor máximo aceito é `50%`.
|
|
34002
34739
|
*/
|
|
34003
|
-
|
|
34004
|
-
/** Lista de sub-items, criando novos níveis dentro do menu. O número máximo de níveis do menu é igual a 4. */
|
|
34005
|
-
subItems?: Array<PoMenuItem>;
|
|
34006
|
-
id?: string;
|
|
34007
|
-
level?: any;
|
|
34008
|
-
badgeAlert?: any;
|
|
34009
|
-
type?: any;
|
|
34010
|
-
}
|
|
34011
|
-
|
|
34012
|
-
declare class PoMenuGlobalService {
|
|
34013
|
-
private readonly applicationMenu;
|
|
34014
|
-
private readonly menus;
|
|
34015
|
-
private readonly removedApplicationMenu;
|
|
34016
|
-
private readonly menuId;
|
|
34017
|
-
private readonly menuChanges;
|
|
34018
|
-
receiveApplicationMenu$: Observable<PoMenuComponent>;
|
|
34019
|
-
receiveMenus$: Observable<PoMenuItem[]>;
|
|
34020
|
-
receiveId$: Observable<string>;
|
|
34021
|
-
receiveOnChange$: Observable<PoMenuItem[]>;
|
|
34022
|
-
receiveRemovedApplicationMenu$: Observable<string>;
|
|
34023
|
-
sendApplicationMenu(menu: PoMenuComponent): void;
|
|
34024
|
-
sendMenus(menus: Array<PoMenuItem>): void;
|
|
34025
|
-
sendId(id: string): void;
|
|
34026
|
-
sendChanges(menus: Array<PoMenuItem>): void;
|
|
34027
|
-
sendRemovedApplicationMenu(id: string): void;
|
|
34028
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoMenuGlobalService, never>;
|
|
34029
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PoMenuGlobalService>;
|
|
34740
|
+
widthCustomTemplate?: string;
|
|
34030
34741
|
}
|
|
34031
34742
|
|
|
34032
34743
|
/**
|
|
34033
|
-
* @docsPrivate
|
|
34034
34744
|
*
|
|
34035
34745
|
* @description
|
|
34036
34746
|
*
|
|
34037
|
-
*
|
|
34038
|
-
*
|
|
34039
|
-
*/
|
|
34040
|
-
declare class PoMenuService implements PoMenuFilter {
|
|
34041
|
-
private readonly http;
|
|
34042
|
-
private _url;
|
|
34043
|
-
get url(): string;
|
|
34044
|
-
configProperties(url: string): void;
|
|
34045
|
-
getFilteredData(search: string, params?: any): Observable<Array<PoMenuItemFiltered>>;
|
|
34046
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoMenuService, never>;
|
|
34047
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PoMenuService>;
|
|
34048
|
-
}
|
|
34049
|
-
|
|
34050
|
-
/**
|
|
34051
|
-
* @description
|
|
34747
|
+
* O componente `po-widget` é recomendado para exibição de *dashboards*, podendo ser utilizado
|
|
34748
|
+
* para incluir vários tipos de conteúdo como: gráficos, tabelas, grids e imagens.
|
|
34052
34749
|
*
|
|
34053
|
-
*
|
|
34750
|
+
* Além da exibição de conteúdos, este componente possibilita adicionar ações e um link
|
|
34751
|
+
* para ajuda, como também possibilita ser utilizado com ou sem sombra.
|
|
34054
34752
|
*
|
|
34055
|
-
*
|
|
34056
|
-
*
|
|
34753
|
+
* Para controlar sua largura, é possível utilizar o [Grid System](/guides/grid-system) para um maior
|
|
34754
|
+
* controle de seu redimensionamento, assim possibilitando o tratamento para diferentes resoluções.
|
|
34755
|
+
*
|
|
34756
|
+
* #### Boas práticas
|
|
34757
|
+
*
|
|
34758
|
+
* Utilize um tamanho mínimo de largura de aproximadamente `18.75rem` no componente.
|
|
34759
|
+
*
|
|
34760
|
+
* #### Acessibilidade tratada no componente
|
|
34761
|
+
*
|
|
34762
|
+
* Algumas diretrizes de acessibilidade já são tratadas no componente, internamente, e não podem ser alteradas. São elas:
|
|
34763
|
+
* - Utiliza medidas relativas, para se adequar às preferências e necessidades de quem for utilizar o sistema.
|
|
34764
|
+
* - Desenvolvido com uso de controles padrões HTML, o que permite a identificação na interface por tecnologias assistivas. (WCAG [4.1.2: Name, Role, Value](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value))
|
|
34765
|
+
* - O foco é visível e possui uma espessura superior a 2 pixels CSS, não ficando escondido por outros elementos da tela. (WCAG [2.4.12: Focus Appearance](https://www.w3.org/WAI/WCAG22/Understanding/focus-appearance-enhanced))
|
|
34766
|
+
* - Quando selecionável, prevê interação por teclado, podendo ser selecionado através da tecla space (WCAG [2.4.1 - Keyboard](https://www.w3.org/WAI/WCAG21/Understanding/keyboard))
|
|
34057
34767
|
*
|
|
34058
34768
|
* #### Tokens customizáveis
|
|
34059
34769
|
*
|
|
@@ -34061,190 +34771,918 @@ declare class PoMenuService implements PoMenuFilter {
|
|
|
34061
34771
|
*
|
|
34062
34772
|
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
34063
34773
|
*
|
|
34064
|
-
* | Propriedade
|
|
34065
|
-
*
|
|
34066
|
-
* | **Default Values**
|
|
34067
|
-
* | `--
|
|
34068
|
-
* | `--
|
|
34069
|
-
* | `--
|
|
34070
|
-
* |
|
|
34071
|
-
* | `--
|
|
34072
|
-
* | `--
|
|
34073
|
-
* | `--
|
|
34074
|
-
* | `--
|
|
34075
|
-
* | `--
|
|
34076
|
-
* |
|
|
34077
|
-
* | `--
|
|
34078
|
-
* | `--
|
|
34079
|
-
* | `--
|
|
34080
|
-
* | `--
|
|
34081
|
-
* |
|
|
34082
|
-
* | `--
|
|
34083
|
-
* | **
|
|
34084
|
-
* | `--color-
|
|
34085
|
-
* | `--
|
|
34086
|
-
* | **Focused** | | |
|
|
34087
|
-
* | `--outline-color-focused` | Cor do outline do estado de focus | `var(--color-action-focus)` |
|
|
34088
|
-
* | **Pressed** | | |
|
|
34089
|
-
* | `--background-color-pressed` | Cor de background no estado de pressionado | `var(--color-brand-01-light)` |
|
|
34090
|
-
* | **Actived** | | |
|
|
34091
|
-
* | `--background-color-actived` | Cor de background no estado actived | `var(--color-brand-01-darkest)` |
|
|
34092
|
-
* | `--color-actived` | Cor principal no estado actived | `var(--color-brand-01-lighter)` |
|
|
34093
|
-
* | **Font** | | |
|
|
34094
|
-
* | `--font-weight-lvl0` | Peso da fonte bold | `var(--font-weight-bold)` |
|
|
34095
|
-
* | `--font-weight-lvl1` | Peso da fonte | `var(--font-weight-normal)` |
|
|
34774
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
34775
|
+
* |----------------------------------------------|------------------------------------------------------------------|-----------------------------------------------------------------------------|
|
|
34776
|
+
* | **Default Values** | | |
|
|
34777
|
+
* | `--font-family` | Família tipográfica usada | `var(--font-family-theme) ` |
|
|
34778
|
+
* | `--font-size` | Tamanho da fonte | `var(--font-size-sm)` |
|
|
34779
|
+
* | `--font-weight` | Peso da fonte | `var(--font-weight-bold)` |
|
|
34780
|
+
* | `--font-color` | Cor da fonte | `var(--color-neutral-dark-95)` |
|
|
34781
|
+
* | `--padding` - `@deprecated 21.x.x` | Preenchimento do componente | `1rem` |
|
|
34782
|
+
* | `--padding-header` | Preenchimento do header | `var(--spacing-sm) var(--spacing-sm) var(--spacing-xs) var(--spacing-sm)` |
|
|
34783
|
+
* | `--padding-body` | Preenchimento do body | `var(--spacing-xs) var(--spacing-sm) var(--spacing-xs) var(--spacing-sm)` |
|
|
34784
|
+
* | `--padding-avatar` | Preenchimento do avatar | `var(--spacing-sm) 0 var(--spacing-xs) var(--spacing-sm)` |
|
|
34785
|
+
* | `--padding-footer` | Preenchimento do footer | `var(--spacing-xs) var(--spacing-sm) var(--spacing-sm) var(--spacing-sm)` |
|
|
34786
|
+
* | `--border-radius` | Contém o valor do raio dos cantos do elemento | `var(--border-radius-md)` |
|
|
34787
|
+
* | `--border-width` | Contém o valor da largura dos cantos do elemento | `var(--border-width-sm)` |
|
|
34788
|
+
* | `--border-color` | Cor da borda | `var(--color-neutral-light-20)` |
|
|
34789
|
+
* | `--background` | Cor de background | `var(--color-neutral-light-00)` |
|
|
34790
|
+
* | `--shadow` | Contém o valor da sombra do elemento | `var(--shadow-md)` |
|
|
34791
|
+
* | **Hover** | | |
|
|
34792
|
+
* | `--border-color-hover` | Cor da borda no estado hover | `var(--color-action-hover)` |
|
|
34793
|
+
* | **Focused** | | |
|
|
34794
|
+
* | `--color-focused` | Cor principal no estado de focus | `var(--color-action-default)` |
|
|
34795
|
+
* | `--outline-color-focused` | Cor do outline do estado de focus | `var(--color-action-focus)` |
|
|
34096
34796
|
*
|
|
34097
|
-
* <br>
|
|
34098
34797
|
*/
|
|
34099
|
-
declare
|
|
34100
|
-
|
|
34101
|
-
|
|
34102
|
-
|
|
34103
|
-
allowIcons: boolean;
|
|
34104
|
-
allowCollapseMenu: boolean;
|
|
34105
|
-
allowCollapseHover: boolean;
|
|
34106
|
-
filteredItems: any;
|
|
34107
|
-
filterService: PoMenuFilter;
|
|
34108
|
-
readonly literals: any;
|
|
34109
|
-
private _collapsed;
|
|
34110
|
-
private _componentsSize;
|
|
34111
|
-
private _initialComponentsSize;
|
|
34112
|
-
private _filter;
|
|
34113
|
-
private _searchTreeItems;
|
|
34114
|
-
private _level;
|
|
34115
|
-
private readonly _maxLevel;
|
|
34116
|
-
private _menus;
|
|
34117
|
-
private _params;
|
|
34118
|
-
private _service;
|
|
34119
|
-
private _logoLink;
|
|
34120
|
-
private _menuId;
|
|
34798
|
+
declare class PoWidgetBaseComponent {
|
|
34799
|
+
private _size?;
|
|
34800
|
+
private _initialSize?;
|
|
34801
|
+
/** Descrição da segunda ação. */
|
|
34121
34802
|
/**
|
|
34122
34803
|
* @optional
|
|
34123
34804
|
*
|
|
34124
34805
|
* @description
|
|
34806
|
+
* Define o label e exibe a ação secundária no footer do componente.
|
|
34125
34807
|
*
|
|
34126
|
-
*
|
|
34127
|
-
*
|
|
34128
|
-
* @default `false`
|
|
34808
|
+
* > Exibida apenas quando `p-primary-label` estiver definida.
|
|
34129
34809
|
*/
|
|
34130
|
-
|
|
34810
|
+
secondaryLabel?: string;
|
|
34131
34811
|
/**
|
|
34132
34812
|
* @optional
|
|
34133
34813
|
*
|
|
34134
34814
|
* @description
|
|
34135
34815
|
*
|
|
34136
|
-
*
|
|
34816
|
+
* Caso verdadeiro o botão da ação `p-primary-label` ativará o modo `danger`.
|
|
34137
34817
|
*
|
|
34138
|
-
*
|
|
34139
|
-
*
|
|
34140
|
-
*
|
|
34818
|
+
* > Incompatível com o tipo **tertiary** da propriedade `p-kind-primary-action`.
|
|
34819
|
+
*
|
|
34820
|
+
* @default `false`
|
|
34141
34821
|
*/
|
|
34142
|
-
|
|
34822
|
+
dangerPrimaryAction: boolean;
|
|
34143
34823
|
/**
|
|
34144
34824
|
* @optional
|
|
34145
34825
|
*
|
|
34146
34826
|
* @description
|
|
34147
34827
|
*
|
|
34148
|
-
*
|
|
34149
|
-
*
|
|
34150
|
-
* > Utilize esta propriedade para iniciar o menu colapsado.
|
|
34151
|
-
*
|
|
34152
|
-
* > Ao utilizar os métodos [`colapse`](documentation/po-menu#colapseMethod), [`expand`](documentation/po-menu#expandMethod) e
|
|
34153
|
-
* [`toggle`](documentation/po-menu#toggleMethod) o valor desta propriedade não é alterado.
|
|
34154
|
-
*
|
|
34155
|
-
* **Importante:**
|
|
34828
|
+
* Caso verdadeiro o botão da ação `p-secondary-label` ativará o modo `danger`.
|
|
34156
34829
|
*
|
|
34157
|
-
* >
|
|
34830
|
+
* > Incompatível com o tipo **tertiary** da propriedade `p-kind-primary-action`.
|
|
34158
34831
|
*
|
|
34159
34832
|
* @default `false`
|
|
34160
34833
|
*/
|
|
34161
|
-
|
|
34162
|
-
get collapsed(): boolean;
|
|
34834
|
+
dangerSecondaryAction: boolean;
|
|
34163
34835
|
/**
|
|
34164
34836
|
* @optional
|
|
34165
34837
|
*
|
|
34166
34838
|
* @description
|
|
34167
34839
|
*
|
|
34168
|
-
* Define o
|
|
34169
|
-
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
34170
|
-
* - `medium`: aplica a medida medium de cada componente.
|
|
34171
|
-
*
|
|
34172
|
-
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
34173
|
-
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
34840
|
+
* Define o estilo do botão da ação `p-primary-label`, conforme o enum `PoButtonKind`.
|
|
34174
34841
|
*
|
|
34175
|
-
* @default `
|
|
34842
|
+
* @default `tertiary`
|
|
34176
34843
|
*/
|
|
34177
|
-
|
|
34178
|
-
get componentsSize(): string;
|
|
34179
|
-
/** Lista dos itens do menu. Se o valor estiver indefinido ou inválido, será inicializado como um array vazio. */
|
|
34180
|
-
set menus(menus: Array<PoMenuItem>);
|
|
34181
|
-
get menus(): Array<PoMenuItem>;
|
|
34182
|
-
get maxLevel(): number;
|
|
34844
|
+
kindPrimaryAction?: string;
|
|
34183
34845
|
/**
|
|
34184
34846
|
* @optional
|
|
34185
34847
|
*
|
|
34186
34848
|
* @description
|
|
34187
34849
|
*
|
|
34188
|
-
*
|
|
34189
|
-
* A pesquisa é realizada em todos os níveis do menu e busca apenas pelos itens que contém uma ação e/ou link definidos,
|
|
34190
|
-
* ou também, pode ser realizada através de um serviço definido na propriedade `p-service`.
|
|
34191
|
-
*
|
|
34192
|
-
* > O campo de pesquisa é desabilitado se o menu estiver colapsado.
|
|
34850
|
+
* Define o estilo do botão da ação `p-secondary-label`, conforme o enum `PoButtonKind`.
|
|
34193
34851
|
*
|
|
34194
|
-
* @default `
|
|
34852
|
+
* @default `tertiary`
|
|
34195
34853
|
*/
|
|
34196
|
-
|
|
34197
|
-
get filter(): boolean;
|
|
34854
|
+
kindSecondaryAction?: string;
|
|
34198
34855
|
/**
|
|
34199
34856
|
* @optional
|
|
34200
34857
|
*
|
|
34201
34858
|
* @description
|
|
34202
34859
|
*
|
|
34203
|
-
*
|
|
34204
|
-
* Isso pode ser útil quando se deseja encontrar rapidamente categorias ou seções do menu.
|
|
34205
|
-
*
|
|
34206
|
-
* > É necessário que a propriedade `p-filter` esteja habilitada.
|
|
34860
|
+
* Label da tag exibida no header.
|
|
34207
34861
|
*
|
|
34208
|
-
*
|
|
34862
|
+
* > Quando a tag atingir uma largura máxima de 15rem (240px), será truncado com reticências.
|
|
34863
|
+
* O conteúdo completo poderá ser visualizado ao passar o mouse sobre a tag, por meio do tooltip.
|
|
34209
34864
|
*/
|
|
34210
|
-
|
|
34211
|
-
get searchTreeItems(): boolean;
|
|
34865
|
+
tagLabel?: string;
|
|
34212
34866
|
/**
|
|
34213
34867
|
* @optional
|
|
34214
34868
|
*
|
|
34215
34869
|
* @description
|
|
34216
34870
|
*
|
|
34217
|
-
*
|
|
34218
|
-
* menu quando realizar uma busca. Caso haja a necessidade de customização, pode ser informado um
|
|
34219
|
-
* serviço implementando a interface `PoMenuFilter`.
|
|
34220
|
-
*
|
|
34221
|
-
* Caso utilizada uma URL, o serviço deve retornar os dados conforme o
|
|
34222
|
-
* [Guia de implementação de APIs](https://po-ui.io/guides/api) do PO UI.
|
|
34223
|
-
*
|
|
34224
|
-
* Quando utilizada uma URL de serviço, será realizado um *GET* na URL informada, passando o valor digitado
|
|
34225
|
-
* no parâmetro `search`, veja exemplo:
|
|
34226
|
-
*
|
|
34227
|
-
* > O filtro no serviço será realizado caso contenha no mínimo três caracteres no campo de busca, por exemplo `tot`.
|
|
34228
|
-
*
|
|
34229
|
-
* ```
|
|
34230
|
-
* <po-menu p-service="/api/v1/fnd/menu">
|
|
34231
|
-
* </po-menu>
|
|
34871
|
+
* Define o tipo da `p-tag`, conforme o enum **PoTagType**.
|
|
34232
34872
|
*
|
|
34233
|
-
*
|
|
34234
|
-
*
|
|
34873
|
+
* Valores válidos:
|
|
34874
|
+
* - `success`: cor verde utilizada para simbolizar sucesso ou êxito.
|
|
34875
|
+
* - `warning`: cor amarela que representa aviso ou advertência.
|
|
34876
|
+
* - `danger`: cor vermelha para erro ou aviso crítico.
|
|
34877
|
+
* - `info`: cor azul claro que caracteriza conteúdo informativo.
|
|
34878
|
+
* - `neutral`: cor cinza claro para uso geral.
|
|
34235
34879
|
*
|
|
34236
|
-
*
|
|
34880
|
+
* @default `success`
|
|
34237
34881
|
*/
|
|
34238
|
-
|
|
34239
|
-
get service(): string | PoMenuFilter;
|
|
34882
|
+
tagType: PoTagType | string;
|
|
34240
34883
|
/**
|
|
34241
34884
|
* @optional
|
|
34242
34885
|
*
|
|
34243
34886
|
* @description
|
|
34244
34887
|
*
|
|
34245
|
-
*
|
|
34888
|
+
* Define o ícone exibido ao lado do label da `p-tag`.
|
|
34246
34889
|
*
|
|
34247
|
-
*
|
|
34890
|
+
* É possível usar qualquer um dos ícones da [Biblioteca de ícones PO UI](https://po-ui.io/icons), conforme exemplo:
|
|
34891
|
+
* ```
|
|
34892
|
+
* <po-widget p-tag-icon="an an-user"></po-widget>
|
|
34893
|
+
* ```
|
|
34894
|
+
* Também é possível utilizar outras fontes de ícones, por exemplo a biblioteca *Font Awesome*, desde que a biblioteca
|
|
34895
|
+
* esteja carregada no projeto:
|
|
34896
|
+
* ```
|
|
34897
|
+
* <po-widget p-tag-icon="fa fa-podcast"></po-widget>
|
|
34898
|
+
* ```
|
|
34899
|
+
*
|
|
34900
|
+
* Outra opção seria a customização do ícone através do `TemplateRef`, conforme exemplo abaixo:
|
|
34901
|
+
* ```
|
|
34902
|
+
* <po-widget [p-tag-icon]="template"></po-widget>
|
|
34903
|
+
*
|
|
34904
|
+
* <ng-template #template>
|
|
34905
|
+
* <i class="fa fa-podcast" style="font-size: inherit;"></i>
|
|
34906
|
+
* </ng-template>
|
|
34907
|
+
* ```
|
|
34908
|
+
* > Para o ícone enquadrar corretamente, deve-se utilizar `font-size: inherit` caso o ícone utilizado não aplique-o.
|
|
34909
|
+
*/
|
|
34910
|
+
tagIcon: string | TemplateRef<void>;
|
|
34911
|
+
/**
|
|
34912
|
+
* @optional
|
|
34913
|
+
*
|
|
34914
|
+
* @description
|
|
34915
|
+
* Define o posicionamento da `po-tag` no cabeçalho do Widget:
|
|
34916
|
+
* - `right`: posicionada no canto superior direito do cabeçalho.
|
|
34917
|
+
* - `top`: posicionada à esquerda, acima do título (quando houver).
|
|
34918
|
+
* - `bottom`: posicionada à esquerda, abaixo do título (quando houver).
|
|
34919
|
+
*
|
|
34920
|
+
* @default `right`
|
|
34921
|
+
*/
|
|
34922
|
+
tagPosition: i0.InputSignalWithTransform<string, string>;
|
|
34923
|
+
/**
|
|
34924
|
+
* @optional
|
|
34925
|
+
*
|
|
34926
|
+
* @description
|
|
34927
|
+
*
|
|
34928
|
+
* Lista de ações exibidas no header do componente.
|
|
34929
|
+
* As propriedades das ações seguem a interface `PoPopupAction`.
|
|
34930
|
+
*/
|
|
34931
|
+
actions: Array<PoPopupAction>;
|
|
34932
|
+
/**
|
|
34933
|
+
* @optional
|
|
34934
|
+
*
|
|
34935
|
+
* @description
|
|
34936
|
+
*
|
|
34937
|
+
* Define o tamanho dos botões do componente:
|
|
34938
|
+
* - `small`: altura de 32px (disponível apenas para acessibilidade AA).
|
|
34939
|
+
* - `medium`: altura de 44px.
|
|
34940
|
+
*
|
|
34941
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
34942
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
34943
|
+
*
|
|
34944
|
+
* @default `medium`
|
|
34945
|
+
*/
|
|
34946
|
+
set size(value: string);
|
|
34947
|
+
get size(): string;
|
|
34948
|
+
/**
|
|
34949
|
+
* @optional
|
|
34950
|
+
*
|
|
34951
|
+
* @description
|
|
34952
|
+
*
|
|
34953
|
+
* Define o avatar a ser exibido à esquerda no Widget.
|
|
34954
|
+
*/
|
|
34955
|
+
avatar: i0.InputSignalWithTransform<PoWidgetAvatar, PoWidgetAvatar>;
|
|
34956
|
+
/**
|
|
34957
|
+
* @docsPrivate
|
|
34958
|
+
*
|
|
34959
|
+
* @description
|
|
34960
|
+
*
|
|
34961
|
+
* Uso **interno** do `po-list-view`. Define um subtítulo exibido no header,
|
|
34962
|
+
* abaixo do título.
|
|
34963
|
+
*/
|
|
34964
|
+
subtitle: i0.InputSignal<string>;
|
|
34965
|
+
/**
|
|
34966
|
+
* @docsPrivate
|
|
34967
|
+
*
|
|
34968
|
+
* @description
|
|
34969
|
+
*
|
|
34970
|
+
* Uso **interno** do `po-list-view`. Habilita e configura a coluna de seleção
|
|
34971
|
+
* (checkbox/radio) à esquerda do conteúdo.
|
|
34972
|
+
*/
|
|
34973
|
+
selection: i0.InputSignal<PoWidgetSelection>;
|
|
34974
|
+
/**
|
|
34975
|
+
* @docsPrivate
|
|
34976
|
+
*
|
|
34977
|
+
* @description
|
|
34978
|
+
*
|
|
34979
|
+
* Uso **interno** do `po-list-view`. Template renderizado como coluna de ação à
|
|
34980
|
+
* direita do conteúdo, centralizado verticalmente (em vez do header).
|
|
34981
|
+
*/
|
|
34982
|
+
actionTemplate: i0.InputSignal<TemplateRef<any>>;
|
|
34983
|
+
/**
|
|
34984
|
+
* @optional
|
|
34985
|
+
*
|
|
34986
|
+
* @description
|
|
34987
|
+
*
|
|
34988
|
+
* Evento disparado quando o usuário clicar no componente.
|
|
34989
|
+
* > Quando este evento está em uso, uma sombra (shadow) é aplicada automaticamente ao componente.
|
|
34990
|
+
*/
|
|
34991
|
+
click: EventEmitter<MouseEvent | KeyboardEvent>;
|
|
34992
|
+
/**
|
|
34993
|
+
* @optional
|
|
34994
|
+
*
|
|
34995
|
+
* @description
|
|
34996
|
+
*
|
|
34997
|
+
* Evento disparado quando a propriedade `p-disabled` for alterada.
|
|
34998
|
+
*/
|
|
34999
|
+
onDisabled: EventEmitter<any>;
|
|
35000
|
+
/**
|
|
35001
|
+
* @optional
|
|
35002
|
+
*
|
|
35003
|
+
* @description
|
|
35004
|
+
*
|
|
35005
|
+
* Evento disparado ao clicar na ação `p-primary-label`.
|
|
35006
|
+
*/
|
|
35007
|
+
primaryAction: EventEmitter<any>;
|
|
35008
|
+
/**
|
|
35009
|
+
* @optional
|
|
35010
|
+
*
|
|
35011
|
+
* @description
|
|
35012
|
+
*
|
|
35013
|
+
* Evento disparado ao clicar na ação `p-secondary-label`.
|
|
35014
|
+
*/
|
|
35015
|
+
secondaryAction: EventEmitter<any>;
|
|
35016
|
+
/**
|
|
35017
|
+
* @optional
|
|
35018
|
+
*
|
|
35019
|
+
* @description
|
|
35020
|
+
* Evento disparado ao clicar em **Configurações** incluído no menu de ações do header.
|
|
35021
|
+
*/
|
|
35022
|
+
setting: EventEmitter<any>;
|
|
35023
|
+
/**
|
|
35024
|
+
* @optional
|
|
35025
|
+
*
|
|
35026
|
+
* @description
|
|
35027
|
+
* Evento disparado ao clicar no título definido em `p-title`.
|
|
35028
|
+
*/
|
|
35029
|
+
titleAction: EventEmitter<any>;
|
|
35030
|
+
containerHeight?: string;
|
|
35031
|
+
id: string;
|
|
35032
|
+
private _background?;
|
|
35033
|
+
private _disabled?;
|
|
35034
|
+
private _height?;
|
|
35035
|
+
private _help?;
|
|
35036
|
+
private _noShadow?;
|
|
35037
|
+
private _primary?;
|
|
35038
|
+
private _primaryLabel?;
|
|
35039
|
+
private _title?;
|
|
35040
|
+
/**
|
|
35041
|
+
* @optional
|
|
35042
|
+
*
|
|
35043
|
+
* @description
|
|
35044
|
+
*
|
|
35045
|
+
* Define uma imagem de fundo.
|
|
35046
|
+
* > Se a imagem escolhida intervir na legibilidade do texto contido no `p-widget`,
|
|
35047
|
+
* pode-se utilizar a propriedade `p-primary` em conjunto para que os textos fiquem na cor branca.
|
|
35048
|
+
*
|
|
35049
|
+
*/
|
|
35050
|
+
set background(value: string);
|
|
35051
|
+
get background(): string;
|
|
35052
|
+
/**
|
|
35053
|
+
* @optional
|
|
35054
|
+
*
|
|
35055
|
+
* @description
|
|
35056
|
+
*
|
|
35057
|
+
* Desabilita o componente.
|
|
35058
|
+
*
|
|
35059
|
+
* @default `false`
|
|
35060
|
+
*/
|
|
35061
|
+
set disabled(value: boolean);
|
|
35062
|
+
get disabled(): boolean;
|
|
35063
|
+
/**
|
|
35064
|
+
* @optional
|
|
35065
|
+
*
|
|
35066
|
+
* @description
|
|
35067
|
+
*
|
|
35068
|
+
* Define a altura do componente.
|
|
35069
|
+
* > Caso não seja informado valor, a propriedade irá assumir o tamanho do conteúdo.
|
|
35070
|
+
*/
|
|
35071
|
+
set height(value: number);
|
|
35072
|
+
get height(): number;
|
|
35073
|
+
/**
|
|
35074
|
+
* @optional
|
|
35075
|
+
*
|
|
35076
|
+
* @description
|
|
35077
|
+
*
|
|
35078
|
+
* Link de ajuda incluído no menu de ações do header.
|
|
35079
|
+
*/
|
|
35080
|
+
set help(value: string);
|
|
35081
|
+
get help(): string;
|
|
35082
|
+
/**
|
|
35083
|
+
*
|
|
35084
|
+
* @optional
|
|
35085
|
+
*
|
|
35086
|
+
* @description
|
|
35087
|
+
*
|
|
35088
|
+
* Desabilita a sombra do componente quando o mesmo for clicável.
|
|
35089
|
+
* > A sombra é exibida por padrão apenas quando o evento `p-click` está definido.
|
|
35090
|
+
*
|
|
35091
|
+
* @default `true`
|
|
35092
|
+
*/
|
|
35093
|
+
set noShadow(value: boolean);
|
|
35094
|
+
get noShadow(): boolean;
|
|
35095
|
+
/**
|
|
35096
|
+
* @optional
|
|
35097
|
+
*
|
|
35098
|
+
* @description
|
|
35099
|
+
*
|
|
35100
|
+
* Opção para que o `po-widget` fique em destaque.
|
|
35101
|
+
*
|
|
35102
|
+
* @default `false`
|
|
35103
|
+
*/
|
|
35104
|
+
set primary(value: boolean);
|
|
35105
|
+
get primary(): boolean;
|
|
35106
|
+
/**
|
|
35107
|
+
* @optional
|
|
35108
|
+
*
|
|
35109
|
+
* @description
|
|
35110
|
+
*
|
|
35111
|
+
* Define o label e exibe a ação primária no footer do componente.
|
|
35112
|
+
*
|
|
35113
|
+
*/
|
|
35114
|
+
set primaryLabel(value: string);
|
|
35115
|
+
get primaryLabel(): string;
|
|
35116
|
+
/**
|
|
35117
|
+
* @optional
|
|
35118
|
+
*
|
|
35119
|
+
* @description
|
|
35120
|
+
*
|
|
35121
|
+
* Título do componente.
|
|
35122
|
+
*
|
|
35123
|
+
* > Quando o conteúdo exceder o espaço disponível, o texto será truncado com reticências. O conteúdo completo poderá
|
|
35124
|
+
* ser visualizado ao passar o mouse sobre a tag, por meio do tooltip.
|
|
35125
|
+
*/
|
|
35126
|
+
set title(value: string);
|
|
35127
|
+
get title(): string;
|
|
35128
|
+
protected onThemeChange(): void;
|
|
35129
|
+
private applySizeBasedOnA11y;
|
|
35130
|
+
private transformAvatar;
|
|
35131
|
+
private transformTagPosition;
|
|
35132
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoWidgetBaseComponent, never>;
|
|
35133
|
+
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; }; "tagPosition": { "alias": "p-tag-position"; "required": false; "isSignal": true; }; "actions": { "alias": "p-actions"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "avatar": { "alias": "p-avatar"; "required": false; "isSignal": true; }; "subtitle": { "alias": "p-subtitle"; "required": false; "isSignal": true; }; "selection": { "alias": "p-selection"; "required": false; "isSignal": true; }; "actionTemplate": { "alias": "p-action-template"; "required": false; "isSignal": true; }; "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>;
|
|
35134
|
+
static ngAcceptInputType_dangerPrimaryAction: any;
|
|
35135
|
+
static ngAcceptInputType_dangerSecondaryAction: any;
|
|
35136
|
+
}
|
|
35137
|
+
|
|
35138
|
+
/**
|
|
35139
|
+
* @docsExtends PoWidgetBaseComponent
|
|
35140
|
+
*
|
|
35141
|
+
* @example
|
|
35142
|
+
*
|
|
35143
|
+
* <example name="po-widget-basic" title="PO Widget Basic">
|
|
35144
|
+
* <file name="sample-po-widget-basic/sample-po-widget-basic.component.html"> </file>
|
|
35145
|
+
* <file name="sample-po-widget-basic/sample-po-widget-basic.component.ts"> </file>
|
|
35146
|
+
* </example>
|
|
35147
|
+
*
|
|
35148
|
+
* <example name="po-widget-labs" title="PO Widget Labs">
|
|
35149
|
+
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.html"> </file>
|
|
35150
|
+
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.ts"> </file>
|
|
35151
|
+
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.css"> </file>
|
|
35152
|
+
* </example>
|
|
35153
|
+
*
|
|
35154
|
+
* <example name="po-widget-finance-dashboard" title="PO Widget - Finance dashboard">
|
|
35155
|
+
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.html"> </file>
|
|
35156
|
+
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.ts"> </file>
|
|
35157
|
+
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.css"> </file>
|
|
35158
|
+
* </example>
|
|
35159
|
+
*
|
|
35160
|
+
* <example name="po-widget-card" title="PO Widget - Card">
|
|
35161
|
+
* <file name="sample-po-widget-card/sample-po-widget-card.component.html"> </file>
|
|
35162
|
+
* <file name="sample-po-widget-card/sample-po-widget-card.component.ts"> </file>
|
|
35163
|
+
* </example>
|
|
35164
|
+
*
|
|
35165
|
+
*/
|
|
35166
|
+
declare class PoWidgetComponent extends PoWidgetBaseComponent implements OnInit, OnChanges, AfterViewInit {
|
|
35167
|
+
protected cd: ChangeDetectorRef;
|
|
35168
|
+
protected poTheme: PoThemeService;
|
|
35169
|
+
popupTarget: any;
|
|
35170
|
+
literals: any;
|
|
35171
|
+
hasContent: boolean;
|
|
35172
|
+
poPopupComponent: PoPopupComponent;
|
|
35173
|
+
buttonPopUp: PoButtonComponent;
|
|
35174
|
+
wrapperInfo: ElementRef;
|
|
35175
|
+
wrapperTitle: ElementRef;
|
|
35176
|
+
tagElement: ElementRef;
|
|
35177
|
+
contentContainer: ElementRef<HTMLElement>;
|
|
35178
|
+
get showTitleAction(): boolean;
|
|
35179
|
+
avatarSrc: i0.Signal<string>;
|
|
35180
|
+
avatarSize: i0.Signal<string>;
|
|
35181
|
+
avatarCustomTemplate: i0.Signal<i0.TemplateRef<any>>;
|
|
35182
|
+
avatarWidthCustomTemplate: i0.Signal<string>;
|
|
35183
|
+
constructor();
|
|
35184
|
+
ngAfterViewInit(): void;
|
|
35185
|
+
get a11Level(): PoThemeA11yEnum;
|
|
35186
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
35187
|
+
ngOnInit(): void;
|
|
35188
|
+
hasTitleHelpOrSetting(): boolean;
|
|
35189
|
+
onClick(event: MouseEvent): void;
|
|
35190
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
35191
|
+
/**
|
|
35192
|
+
* @docsPrivate
|
|
35193
|
+
*
|
|
35194
|
+
* Uso interno (po-list-view): propaga a mudança da coluna de seleção.
|
|
35195
|
+
*/
|
|
35196
|
+
protected onSelectionChange(selected: boolean): void;
|
|
35197
|
+
openHelp(): void;
|
|
35198
|
+
runPrimaryAction(): void;
|
|
35199
|
+
runSecondaryAction(): void;
|
|
35200
|
+
runTitleAction(event: MouseEvent): void;
|
|
35201
|
+
setHeight(height: number): void;
|
|
35202
|
+
settingOutput(): void;
|
|
35203
|
+
togglePopup(targetRef: any, event: any): void;
|
|
35204
|
+
showTooltip(): boolean;
|
|
35205
|
+
closePopUp(): void;
|
|
35206
|
+
private checkDefaultActions;
|
|
35207
|
+
private updateContent;
|
|
35208
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoWidgetComponent, never>;
|
|
35209
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoWidgetComponent, "po-widget", never, {}, {}, never, ["*"], false, never>;
|
|
35210
|
+
}
|
|
35211
|
+
|
|
35212
|
+
/**
|
|
35213
|
+
* @description
|
|
35214
|
+
*
|
|
35215
|
+
* Módulo do componente po-widget
|
|
35216
|
+
*/
|
|
35217
|
+
declare class PoWidgetModule {
|
|
35218
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoWidgetModule, never>;
|
|
35219
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoWidgetModule, [typeof PoWidgetComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof PoAvatarModule, typeof PoButtonModule, typeof PoCheckboxModule, typeof PoContainerModule, typeof PoIconModule, typeof PoPopupModule, typeof PoRadioModule, typeof PoTagModule, typeof PoTooltipModule], [typeof PoWidgetComponent]>;
|
|
35220
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PoWidgetModule>;
|
|
35221
|
+
}
|
|
35222
|
+
|
|
35223
|
+
/**
|
|
35224
|
+
* @description
|
|
35225
|
+
*
|
|
35226
|
+
* Módulo do componente `po-list-view`.
|
|
35227
|
+
*
|
|
35228
|
+
*/
|
|
35229
|
+
declare class PoListViewModule {
|
|
35230
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoListViewModule, never>;
|
|
35231
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoListViewModule, [typeof PoListViewComponent, typeof PoListViewContentTemplateDirective, typeof PoListViewDetailTemplateDirective], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.RouterModule, typeof PoButtonModule, typeof PoIconModule, typeof PoPopupModule, typeof PoModalModule, typeof PoCheckboxModule, typeof PoRadioModule, typeof PoContainerModule, typeof PoWidgetModule, typeof PoProgressCircleComponent], [typeof PoListViewComponent, typeof PoListViewContentTemplateDirective, typeof PoListViewDetailTemplateDirective]>;
|
|
35232
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PoListViewModule>;
|
|
35233
|
+
}
|
|
35234
|
+
|
|
35235
|
+
declare class PoLogoComponent {
|
|
35236
|
+
poLanguageService: PoLanguageService;
|
|
35237
|
+
readonly literals: any;
|
|
35238
|
+
private _logo?;
|
|
35239
|
+
private _logoAlt;
|
|
35240
|
+
private _link;
|
|
35241
|
+
/**
|
|
35242
|
+
* Define uma classe para o elemento `img` do componente.
|
|
35243
|
+
*
|
|
35244
|
+
* > **Importante**
|
|
35245
|
+
* > A classe deve ser definida apenas quando houver necessidade de ajustar o componente dentro de outro componente.
|
|
35246
|
+
*
|
|
35247
|
+
*/
|
|
35248
|
+
className: string;
|
|
35249
|
+
/**
|
|
35250
|
+
* Define se o componente terá o elemento âncora para uma rota específica.
|
|
35251
|
+
*
|
|
35252
|
+
* > Caso seja definido como false, o componente apenas renderizará o elemento `img`.
|
|
35253
|
+
* > Caso seja definido como true, a rota será `./`.
|
|
35254
|
+
* > Caso seja definido como string, a rota será a string passada.
|
|
35255
|
+
*
|
|
35256
|
+
* @default `true`
|
|
35257
|
+
*/
|
|
35258
|
+
set link(value: boolean | string);
|
|
35259
|
+
get link(): boolean | string;
|
|
35260
|
+
/**
|
|
35261
|
+
* Definie o caminho para a imagem, que será exibida como logomarca.
|
|
35262
|
+
*
|
|
35263
|
+
*/
|
|
35264
|
+
set logo(value: string);
|
|
35265
|
+
get logo(): string;
|
|
35266
|
+
/**
|
|
35267
|
+
* Define o texto alternativo para a logomarca.
|
|
35268
|
+
*
|
|
35269
|
+
* > **Importante**
|
|
35270
|
+
* > Caso esta propriedade não seja definida o texto padrão será "Logomarca início".
|
|
35271
|
+
*/
|
|
35272
|
+
set logoAlt(value: string);
|
|
35273
|
+
get logoAlt(): string;
|
|
35274
|
+
constructor(poLanguageService: PoLanguageService);
|
|
35275
|
+
private maxLength;
|
|
35276
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoLogoComponent, never>;
|
|
35277
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoLogoComponent, "po-logo", never, { "className": { "alias": "p-class"; "required": false; }; "link": { "alias": "p-link"; "required": false; }; "logo": { "alias": "p-logo"; "required": false; }; "logoAlt": { "alias": "p-logo-alt"; "required": false; }; }, {}, never, never, false, never>;
|
|
35278
|
+
}
|
|
35279
|
+
|
|
35280
|
+
declare class PoLogoModule {
|
|
35281
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoLogoModule, never>;
|
|
35282
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoLogoModule, [typeof PoLogoComponent], [typeof i2.CommonModule], [typeof PoLogoComponent]>;
|
|
35283
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PoLogoModule>;
|
|
35284
|
+
}
|
|
35285
|
+
|
|
35286
|
+
/**
|
|
35287
|
+
* @usedBy PoMenuComponent
|
|
35288
|
+
*
|
|
35289
|
+
* @description
|
|
35290
|
+
*
|
|
35291
|
+
* Interface do objeto que deve conter na coleção de itens filtrados no componente `po-menu`.
|
|
35292
|
+
*/
|
|
35293
|
+
interface PoMenuItemFiltered {
|
|
35294
|
+
/** Texto do item de menu. */
|
|
35295
|
+
label: string;
|
|
35296
|
+
/** *Link* para redirecionamento no clique do item do menu, podendo ser um *link* interno ou externo. */
|
|
35297
|
+
link: string;
|
|
35298
|
+
/** Ação a ser executada quando o item de menu for clicado. */
|
|
35299
|
+
action: () => void;
|
|
35300
|
+
}
|
|
35301
|
+
|
|
35302
|
+
/**
|
|
35303
|
+
* @usedBy PoMenuComponent
|
|
35304
|
+
*
|
|
35305
|
+
* @description
|
|
35306
|
+
*
|
|
35307
|
+
* Interface do serviço utilizado no componente `po-menu`.
|
|
35308
|
+
*/
|
|
35309
|
+
interface PoMenuFilter {
|
|
35310
|
+
/**
|
|
35311
|
+
* Método responsável por retornar um *Observable* que retorne uma lista de objetos que seguem a interface `PoMenuItemFiltered`.
|
|
35312
|
+
* Será informado por parâmetro o valor a ser pesquisado e as informações adicionais preenchidas através da propriedade `p-params`.
|
|
35313
|
+
*
|
|
35314
|
+
* @param {string} search Valor informado no campo de busca dos itens de menus.
|
|
35315
|
+
* @param {any} params Valor informado através da propriedade `p-params`.
|
|
35316
|
+
*/
|
|
35317
|
+
getFilteredData(search: string, params?: any): Observable<Array<PoMenuItemFiltered>>;
|
|
35318
|
+
}
|
|
35319
|
+
|
|
35320
|
+
/**
|
|
35321
|
+
* @usedBy PoMenuComponent
|
|
35322
|
+
*
|
|
35323
|
+
* @description
|
|
35324
|
+
*
|
|
35325
|
+
* Interface do *badge* utilizado no `po-menu`.
|
|
35326
|
+
*/
|
|
35327
|
+
interface PoMenuItemBadge {
|
|
35328
|
+
/**
|
|
35329
|
+
* @optional
|
|
35330
|
+
*
|
|
35331
|
+
* @description
|
|
35332
|
+
*
|
|
35333
|
+
* Define a cor do *badge* e aceita os valores:
|
|
35334
|
+
*
|
|
35335
|
+
* <span class="dot po-color-01"></span> `color-01`
|
|
35336
|
+
*
|
|
35337
|
+
* <span class="dot po-color-02"></span> `color-02`
|
|
35338
|
+
*
|
|
35339
|
+
* <span class="dot po-color-03"></span> `color-03`
|
|
35340
|
+
*
|
|
35341
|
+
* <span class="dot po-color-04"></span> `color-04`
|
|
35342
|
+
*
|
|
35343
|
+
* <span class="dot po-color-05"></span> `color-05`
|
|
35344
|
+
*
|
|
35345
|
+
* <span class="dot po-color-06"></span> `color-06`
|
|
35346
|
+
*
|
|
35347
|
+
* <span class="dot po-color-07"></span> `color-07`
|
|
35348
|
+
*
|
|
35349
|
+
* <span class="dot po-color-08"></span> `color-08`
|
|
35350
|
+
*
|
|
35351
|
+
* <span class="dot po-color-09"></span> `color-09`
|
|
35352
|
+
*
|
|
35353
|
+
* <span class="dot po-color-10"></span> `color-10`
|
|
35354
|
+
*
|
|
35355
|
+
* <span class="dot po-color-11"></span> `color-11`
|
|
35356
|
+
*
|
|
35357
|
+
* <span class="dot po-color-12"></span> `color-12`
|
|
35358
|
+
*
|
|
35359
|
+
* @default `color-07`
|
|
35360
|
+
*/
|
|
35361
|
+
color?: string;
|
|
35362
|
+
/**
|
|
35363
|
+
* @description
|
|
35364
|
+
*
|
|
35365
|
+
* Número exibido no *badge*, caso o mesmo seja maior que **9** o mesmo exibe **9+**.
|
|
35366
|
+
*/
|
|
35367
|
+
value: number;
|
|
35368
|
+
}
|
|
35369
|
+
|
|
35370
|
+
/**
|
|
35371
|
+
* @usedBy PoMenuComponent
|
|
35372
|
+
*
|
|
35373
|
+
* @description
|
|
35374
|
+
*
|
|
35375
|
+
* Interface para os itens de menu do componente po-menu.
|
|
35376
|
+
*
|
|
35377
|
+
*/
|
|
35378
|
+
interface PoMenuItem {
|
|
35379
|
+
/**
|
|
35380
|
+
* @optional
|
|
35381
|
+
*
|
|
35382
|
+
* @description
|
|
35383
|
+
*
|
|
35384
|
+
* Badge do item de menu.
|
|
35385
|
+
*
|
|
35386
|
+
* Ao adicioná-lo em um subitem (filho) todos os itens ascendentes (pai) serão marcados com um ponto vermelho.
|
|
35387
|
+
*
|
|
35388
|
+
* > O `po-badge` só será exibido caso o item do menu não possua `subItems` e seu valor seja maior ou igual a 0.
|
|
35389
|
+
*/
|
|
35390
|
+
badge?: PoMenuItemBadge;
|
|
35391
|
+
/** Texto do item de menu. */
|
|
35392
|
+
label: string;
|
|
35393
|
+
/** Link para redirecionamento no click do item do menu, podendo ser um link interno ou externo. */
|
|
35394
|
+
link?: string;
|
|
35395
|
+
/** Ação personalizada para clique do item de menu. */
|
|
35396
|
+
action?: Function;
|
|
35397
|
+
/**
|
|
35398
|
+
* É possível usar qualquer um dos ícones da [Biblioteca de ícones](https://po-ui.io/icons). conforme exemplo abaixo:
|
|
35399
|
+
* ```
|
|
35400
|
+
* <po-menu
|
|
35401
|
+
* [p-menus]="[{ link: '/', label: 'PO ICON', icon: 'an an-newspaper' }]">
|
|
35402
|
+
* </po-menu>
|
|
35403
|
+
* ```
|
|
35404
|
+
*
|
|
35405
|
+
* Também é possível utilizar outras fontes de ícones, por exemplo a biblioteca Font Awesome, da seguinte forma:
|
|
35406
|
+
* ```
|
|
35407
|
+
* <po-menu
|
|
35408
|
+
* [p-menus]="[{ link: '/', label: 'FA ICON', icon: 'fa fa-podcast' }]">
|
|
35409
|
+
* </po-menu>
|
|
35410
|
+
* ```
|
|
35411
|
+
*
|
|
35412
|
+
* Outra opção seria a customização do ícone através do `TemplateRef`, conforme exemplo abaixo:
|
|
35413
|
+
* component.html:
|
|
35414
|
+
* ```
|
|
35415
|
+
* <ng-template #iconTemplate>
|
|
35416
|
+
* <ion-icon name="heart"></ion-icon>
|
|
35417
|
+
* </ng-template>
|
|
35418
|
+
*
|
|
35419
|
+
* <po-menu [p-menus]="myProperty"></po-menu>
|
|
35420
|
+
* ```
|
|
35421
|
+
* component.ts:
|
|
35422
|
+
* ```
|
|
35423
|
+
* @ViewChild('iconTemplate', { static: true } ) iconTemplate : TemplateRef<void>;
|
|
35424
|
+
*
|
|
35425
|
+
* myProperty = [
|
|
35426
|
+
* {
|
|
35427
|
+
* link: '/',
|
|
35428
|
+
* label: 'Icon',
|
|
35429
|
+
* icon: this.iconTemplate
|
|
35430
|
+
* }
|
|
35431
|
+
* ];
|
|
35432
|
+
* ```
|
|
35433
|
+
* > São exibidos apenas no primeiro nível de menu e serão visíveis apenas se todos os itens de primeiro nível possuírem ícones.
|
|
35434
|
+
* O menu colapsado também aparecerá somente se todos os itens de primeiro nível de menu possuírem ícones e textos curtos.
|
|
35435
|
+
*/
|
|
35436
|
+
icon?: string | TemplateRef<void>;
|
|
35437
|
+
/**
|
|
35438
|
+
* Texto curto exibido através de um tooltip para o item que aparece quando o menu estiver colapsado.
|
|
35439
|
+
* Se colapsado, aparecerá somente se todos os itens de primeiro nível de menu que possuírem ícones e textos curtos.
|
|
35440
|
+
*/
|
|
35441
|
+
shortLabel?: string;
|
|
35442
|
+
/** Lista de sub-items, criando novos níveis dentro do menu. O número máximo de níveis do menu é igual a 4. */
|
|
35443
|
+
subItems?: Array<PoMenuItem>;
|
|
35444
|
+
id?: string;
|
|
35445
|
+
level?: any;
|
|
35446
|
+
badgeAlert?: any;
|
|
35447
|
+
type?: any;
|
|
35448
|
+
}
|
|
35449
|
+
|
|
35450
|
+
declare class PoMenuGlobalService {
|
|
35451
|
+
private readonly applicationMenu;
|
|
35452
|
+
private readonly menus;
|
|
35453
|
+
private readonly removedApplicationMenu;
|
|
35454
|
+
private readonly menuId;
|
|
35455
|
+
private readonly menuChanges;
|
|
35456
|
+
receiveApplicationMenu$: Observable<PoMenuComponent>;
|
|
35457
|
+
receiveMenus$: Observable<PoMenuItem[]>;
|
|
35458
|
+
receiveId$: Observable<string>;
|
|
35459
|
+
receiveOnChange$: Observable<PoMenuItem[]>;
|
|
35460
|
+
receiveRemovedApplicationMenu$: Observable<string>;
|
|
35461
|
+
sendApplicationMenu(menu: PoMenuComponent): void;
|
|
35462
|
+
sendMenus(menus: Array<PoMenuItem>): void;
|
|
35463
|
+
sendId(id: string): void;
|
|
35464
|
+
sendChanges(menus: Array<PoMenuItem>): void;
|
|
35465
|
+
sendRemovedApplicationMenu(id: string): void;
|
|
35466
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoMenuGlobalService, never>;
|
|
35467
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PoMenuGlobalService>;
|
|
35468
|
+
}
|
|
35469
|
+
|
|
35470
|
+
/**
|
|
35471
|
+
* @docsPrivate
|
|
35472
|
+
*
|
|
35473
|
+
* @description
|
|
35474
|
+
*
|
|
35475
|
+
* Serviço que implementa a interface `PoMenuFilter`, utilizado para fazer requisições ao serviço informado pelo usuário,
|
|
35476
|
+
* caso for uma URL, no componente `po-menu`.
|
|
35477
|
+
*/
|
|
35478
|
+
declare class PoMenuService implements PoMenuFilter {
|
|
35479
|
+
private readonly http;
|
|
35480
|
+
private _url;
|
|
35481
|
+
get url(): string;
|
|
35482
|
+
configProperties(url: string): void;
|
|
35483
|
+
getFilteredData(search: string, params?: any): Observable<Array<PoMenuItemFiltered>>;
|
|
35484
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoMenuService, never>;
|
|
35485
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PoMenuService>;
|
|
35486
|
+
}
|
|
35487
|
+
|
|
35488
|
+
/**
|
|
35489
|
+
* @description
|
|
35490
|
+
*
|
|
35491
|
+
* Este é um componente de menu lateral que é utilizado para navegação nas páginas de uma aplicação.
|
|
35492
|
+
*
|
|
35493
|
+
* O componente po-menu recebe uma lista de objetos do tipo `MenuItem` com as informações dos itens de menu como
|
|
35494
|
+
* textos, links para redirecionamento, ações, até 4 níveis de menu e ícones para o primeiro nível de menu.
|
|
35495
|
+
*
|
|
35496
|
+
* #### Tokens customizáveis
|
|
35497
|
+
*
|
|
35498
|
+
* É possível alterar o estilo do componente usando os seguintes tokens (CSS):
|
|
35499
|
+
*
|
|
35500
|
+
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
35501
|
+
*
|
|
35502
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
35503
|
+
* |----------------------------------------|-------------------------------------------------------|-------------------------------------------------|
|
|
35504
|
+
* | **Default Values** | | |
|
|
35505
|
+
* | `--border-radius` | Contém o valor do raio dos cantos do elemento | `var(--border-radius-md)` |
|
|
35506
|
+
* | `--border-color` | Cor da borda | `var(--color-neutral-light-20)` |
|
|
35507
|
+
* | `--background-color` | Cor de background | `Var(----color-neutral-light-05)` |
|
|
35508
|
+
* | **Menu Footer** | | |
|
|
35509
|
+
* | `--color` | Cor principla do menu footer | `var(--color-action-default)` |
|
|
35510
|
+
* | `--font-size` | Tamanho da fonte | `var(--font-size-default)` |
|
|
35511
|
+
* | `--line-height` | Tamanho da label | `var(--line-height-md)` |
|
|
35512
|
+
* | `--outline-color-focused` | Cor do outline do estado de focus | `var(--color-action-focus)` |
|
|
35513
|
+
* | `--font-weight-lvl0` | Peso da fonte | `var(--font-weight-bold)` |
|
|
35514
|
+
* | **po-menu-item** | | |
|
|
35515
|
+
* | `--font-family` | Família tipográfica usada | `var(--font-family-theme)` |
|
|
35516
|
+
* | `--font-size` | Tamanho da fonte | `var(--font-size-default)` |
|
|
35517
|
+
* | `--line-height` | Tamanho da label | `var(--line-height-md)` |
|
|
35518
|
+
* | `--border-radius` | Contém o valor do raio dos cantos do elemento | `var(--border-radius-md)` |
|
|
35519
|
+
* | `--color` | Cor principal do item | `var(--color-action-default)` |
|
|
35520
|
+
* | `--background-color` | Cor do background | `transparent` |
|
|
35521
|
+
* | **Hover** | | |
|
|
35522
|
+
* | `--color-hover` | Cor principal no estado hover | `var(--color-brand-01-darkest)` |
|
|
35523
|
+
* | `--background-color-hover` | Cor de background no estado hover | `var(--color-brand-01-lighter)` |
|
|
35524
|
+
* | **Focused** | | |
|
|
35525
|
+
* | `--outline-color-focused` | Cor do outline do estado de focus | `var(--color-action-focus)` |
|
|
35526
|
+
* | **Pressed** | | |
|
|
35527
|
+
* | `--background-color-pressed` | Cor de background no estado de pressionado | `var(--color-brand-01-light)` |
|
|
35528
|
+
* | **Actived** | | |
|
|
35529
|
+
* | `--background-color-actived` | Cor de background no estado actived | `var(--color-brand-01-darkest)` |
|
|
35530
|
+
* | `--color-actived` | Cor principal no estado actived | `var(--color-brand-01-lighter)` |
|
|
35531
|
+
* | **Font** | | |
|
|
35532
|
+
* | `--font-weight-lvl0` | Peso da fonte bold | `var(--font-weight-bold)` |
|
|
35533
|
+
* | `--font-weight-lvl1` | Peso da fonte | `var(--font-weight-normal)` |
|
|
35534
|
+
*
|
|
35535
|
+
* <br>
|
|
35536
|
+
*/
|
|
35537
|
+
declare abstract class PoMenuBaseComponent {
|
|
35538
|
+
menuGlobalService: PoMenuGlobalService;
|
|
35539
|
+
menuService: PoMenuService;
|
|
35540
|
+
languageService: PoLanguageService;
|
|
35541
|
+
allowIcons: boolean;
|
|
35542
|
+
allowCollapseMenu: boolean;
|
|
35543
|
+
allowCollapseHover: boolean;
|
|
35544
|
+
filteredItems: any;
|
|
35545
|
+
filterService: PoMenuFilter;
|
|
35546
|
+
readonly literals: any;
|
|
35547
|
+
private _collapsed;
|
|
35548
|
+
private _componentsSize;
|
|
35549
|
+
private _initialComponentsSize;
|
|
35550
|
+
private _filter;
|
|
35551
|
+
private _searchTreeItems;
|
|
35552
|
+
private _level;
|
|
35553
|
+
private readonly _maxLevel;
|
|
35554
|
+
private _menus;
|
|
35555
|
+
private _params;
|
|
35556
|
+
private _service;
|
|
35557
|
+
private _logoLink;
|
|
35558
|
+
private _menuId;
|
|
35559
|
+
/**
|
|
35560
|
+
* @optional
|
|
35561
|
+
*
|
|
35562
|
+
* @description
|
|
35563
|
+
*
|
|
35564
|
+
* Expande e Colapsa (retrai) o menu automaticamente.
|
|
35565
|
+
*
|
|
35566
|
+
* @default `false`
|
|
35567
|
+
*/
|
|
35568
|
+
automaticToggle: boolean;
|
|
35569
|
+
/**
|
|
35570
|
+
* @optional
|
|
35571
|
+
*
|
|
35572
|
+
* @description
|
|
35573
|
+
*
|
|
35574
|
+
* Evento emitido toda vez que o estado do menu muda, enviando `true` quando expandido e `false` quando colapsado.
|
|
35575
|
+
*
|
|
35576
|
+
* ```html
|
|
35577
|
+
* <po-menu (p-toggle)="onMenuToggle($event)"></po-menu>
|
|
35578
|
+
* ```
|
|
35579
|
+
*/
|
|
35580
|
+
toggleChange: i0.OutputEmitterRef<boolean>;
|
|
35581
|
+
/**
|
|
35582
|
+
* @optional
|
|
35583
|
+
*
|
|
35584
|
+
* @description
|
|
35585
|
+
*
|
|
35586
|
+
* Colapsa (retrai) o menu e caso receba o valor `false` expande o menu.
|
|
35587
|
+
*
|
|
35588
|
+
* > Utilize esta propriedade para iniciar o menu colapsado.
|
|
35589
|
+
*
|
|
35590
|
+
* > Ao utilizar os métodos [`colapse`](documentation/po-menu#colapseMethod), [`expand`](documentation/po-menu#expandMethod) e
|
|
35591
|
+
* [`toggle`](documentation/po-menu#toggleMethod) o valor desta propriedade não é alterado.
|
|
35592
|
+
*
|
|
35593
|
+
* **Importante:**
|
|
35594
|
+
*
|
|
35595
|
+
* > O menu será colapsado/expandido apenas se todos os itens de menu tiverem valor nas propriedades `icon` e `shortLabel`.
|
|
35596
|
+
*
|
|
35597
|
+
* @default `false`
|
|
35598
|
+
*/
|
|
35599
|
+
set collapsed(collapsed: boolean);
|
|
35600
|
+
get collapsed(): boolean;
|
|
35601
|
+
/**
|
|
35602
|
+
* @optional
|
|
35603
|
+
*
|
|
35604
|
+
* @description
|
|
35605
|
+
*
|
|
35606
|
+
* Define o tamanho dos componentes de formulário no menu:
|
|
35607
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
35608
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
35609
|
+
*
|
|
35610
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
35611
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
35612
|
+
*
|
|
35613
|
+
* @default `medium`
|
|
35614
|
+
*/
|
|
35615
|
+
set componentsSize(value: string);
|
|
35616
|
+
get componentsSize(): string;
|
|
35617
|
+
/** Lista dos itens do menu. Se o valor estiver indefinido ou inválido, será inicializado como um array vazio. */
|
|
35618
|
+
set menus(menus: Array<PoMenuItem>);
|
|
35619
|
+
get menus(): Array<PoMenuItem>;
|
|
35620
|
+
get maxLevel(): number;
|
|
35621
|
+
/**
|
|
35622
|
+
* @optional
|
|
35623
|
+
*
|
|
35624
|
+
* @description
|
|
35625
|
+
*
|
|
35626
|
+
* Habilita um campo para pesquisa no menu.
|
|
35627
|
+
* A pesquisa é realizada em todos os níveis do menu e busca apenas pelos itens que contém uma ação e/ou link definidos,
|
|
35628
|
+
* ou também, pode ser realizada através de um serviço definido na propriedade `p-service`.
|
|
35629
|
+
*
|
|
35630
|
+
* > O campo de pesquisa é desabilitado se o menu estiver colapsado.
|
|
35631
|
+
*
|
|
35632
|
+
* @default `false`
|
|
35633
|
+
*/
|
|
35634
|
+
set filter(filter: boolean);
|
|
35635
|
+
get filter(): boolean;
|
|
35636
|
+
/**
|
|
35637
|
+
* @optional
|
|
35638
|
+
*
|
|
35639
|
+
* @description
|
|
35640
|
+
*
|
|
35641
|
+
* Quando ativado, a pesquisa também retornará itens agrupadores além dos itens que contêm uma ação e/ou link definidos.
|
|
35642
|
+
* Isso pode ser útil quando se deseja encontrar rapidamente categorias ou seções do menu.
|
|
35643
|
+
*
|
|
35644
|
+
* > É necessário que a propriedade `p-filter` esteja habilitada.
|
|
35645
|
+
*
|
|
35646
|
+
* @default `false`
|
|
35647
|
+
*/
|
|
35648
|
+
set searchTreeItems(searchTreeItems: boolean);
|
|
35649
|
+
get searchTreeItems(): boolean;
|
|
35650
|
+
/**
|
|
35651
|
+
* @optional
|
|
35652
|
+
*
|
|
35653
|
+
* @description
|
|
35654
|
+
*
|
|
35655
|
+
* Nesta propriedade deve ser informada a URL do serviço em que será utilizado para realizar o filtro de itens do
|
|
35656
|
+
* menu quando realizar uma busca. Caso haja a necessidade de customização, pode ser informado um
|
|
35657
|
+
* serviço implementando a interface `PoMenuFilter`.
|
|
35658
|
+
*
|
|
35659
|
+
* Caso utilizada uma URL, o serviço deve retornar os dados conforme o
|
|
35660
|
+
* [Guia de implementação de APIs](https://po-ui.io/guides/api) do PO UI.
|
|
35661
|
+
*
|
|
35662
|
+
* Quando utilizada uma URL de serviço, será realizado um *GET* na URL informada, passando o valor digitado
|
|
35663
|
+
* no parâmetro `search`, veja exemplo:
|
|
35664
|
+
*
|
|
35665
|
+
* > O filtro no serviço será realizado caso contenha no mínimo três caracteres no campo de busca, por exemplo `tot`.
|
|
35666
|
+
*
|
|
35667
|
+
* ```
|
|
35668
|
+
* <po-menu p-service="/api/v1/fnd/menu">
|
|
35669
|
+
* </po-menu>
|
|
35670
|
+
*
|
|
35671
|
+
* Requisição: GET /api/v1/fnd/menu?search=contas
|
|
35672
|
+
* ```
|
|
35673
|
+
*
|
|
35674
|
+
* > É necessário que propriedade `p-filter` esteja habilitada.
|
|
35675
|
+
*/
|
|
35676
|
+
set service(value: string | PoMenuFilter);
|
|
35677
|
+
get service(): string | PoMenuFilter;
|
|
35678
|
+
/**
|
|
35679
|
+
* @optional
|
|
35680
|
+
*
|
|
35681
|
+
* @description
|
|
35682
|
+
*
|
|
35683
|
+
* Deve ser informado um objeto que deseja-se utilizar na requisição de filtro dos itens de menu.
|
|
35684
|
+
*
|
|
35685
|
+
* Caso utilizado um serviço customizado, implementando a interface `PoMenuFilter`, o valor desta propriedade
|
|
34248
35686
|
* será passado como parâmetro, na função `getFilteredData`.
|
|
34249
35687
|
*
|
|
34250
35688
|
* Quando utilizada uma URL de serviço, será realizado um *GET* na URL informada, passando os valores informados
|
|
@@ -38468,863 +39906,140 @@ declare class PoToolbarModule {
|
|
|
38468
39906
|
* @usedBy PoTreeViewComponent
|
|
38469
39907
|
*
|
|
38470
39908
|
* @description
|
|
38471
|
-
*
|
|
38472
|
-
* Interface para definição dos itens do componente `po-tree-view`.
|
|
38473
|
-
*/
|
|
38474
|
-
interface PoTreeViewItem {
|
|
38475
|
-
/** Desabilita a selecão do item. */
|
|
38476
|
-
/** Texto de exibição do item. */
|
|
38477
|
-
label: string;
|
|
38478
|
-
/** Valor do item que poderá ser utilizado como referência para sua identificação. */
|
|
38479
|
-
value: string | number;
|
|
38480
|
-
/** Expande o item. */
|
|
38481
|
-
expanded?: boolean;
|
|
38482
|
-
/**
|
|
38483
|
-
* Marca o item como selecionado.
|
|
38484
|
-
*
|
|
38485
|
-
* > Caso o item que conter `subItems` for selecionado, os seus itens filhos serão também selecionados.
|
|
38486
|
-
*/
|
|
38487
|
-
selected?: boolean | null;
|
|
38488
|
-
/**
|
|
38489
|
-
* Permite ativar/desativar a seleção do item
|
|
38490
|
-
*/
|
|
38491
|
-
isSelectable?: boolean | null;
|
|
38492
|
-
/** Lista de itens do próximo nível, e assim consecutivamente até que se atinja o quarto nível. */
|
|
38493
|
-
subItems?: Array<PoTreeViewItem>;
|
|
38494
|
-
}
|
|
38495
|
-
|
|
38496
|
-
/**
|
|
38497
|
-
* @description
|
|
38498
|
-
*
|
|
38499
|
-
* O componente fornece um modelo de visualização em árvore, possibilitando a visualização das informações de maneira
|
|
38500
|
-
* hierárquica, desta forma sendo possível utilizar até 4 níveis.
|
|
38501
|
-
*
|
|
38502
|
-
* Nele é possível navegar entre os itens através da tecla *tab*, permitindo expandir ou colapsar o item em foco
|
|
38503
|
-
* por meio das teclas *enter* e *space*.
|
|
38504
|
-
*
|
|
38505
|
-
* Além da navegação, o componente possibilita também a seleção dos itens do primeiro ao último nível, tanto de forma parcial como completa.
|
|
38506
|
-
*
|
|
38507
|
-
* O componente também possui eventos disparados ao marcar/desmarcar e expandir/colapsar os itens.
|
|
38508
|
-
*/
|
|
38509
|
-
declare class PoTreeViewBaseComponent {
|
|
38510
|
-
/**
|
|
38511
|
-
* @optional
|
|
38512
|
-
*
|
|
38513
|
-
* @description
|
|
38514
|
-
*
|
|
38515
|
-
* Ação que será disparada ao colapsar um item.
|
|
38516
|
-
*
|
|
38517
|
-
* > Como parâmetro o componente envia o item colapsado.
|
|
38518
|
-
*/
|
|
38519
|
-
collapsed: EventEmitter<PoTreeViewItem>;
|
|
38520
|
-
/**
|
|
38521
|
-
* @optional
|
|
38522
|
-
*
|
|
38523
|
-
* @description
|
|
38524
|
-
*
|
|
38525
|
-
* Ação que será disparada ao expandir um item.
|
|
38526
|
-
*
|
|
38527
|
-
* > Como parâmetro o componente envia o item expandido.
|
|
38528
|
-
*/
|
|
38529
|
-
expanded: EventEmitter<PoTreeViewItem>;
|
|
38530
|
-
/**
|
|
38531
|
-
* @optional
|
|
38532
|
-
*
|
|
38533
|
-
* @description
|
|
38534
|
-
*
|
|
38535
|
-
* Ação que será disparada ao selecionar um item.
|
|
38536
|
-
*
|
|
38537
|
-
* > Como parâmetro o componente envia o item selecionado.
|
|
38538
|
-
*/
|
|
38539
|
-
selected: EventEmitter<PoTreeViewItem>;
|
|
38540
|
-
/**
|
|
38541
|
-
* @optional
|
|
38542
|
-
*
|
|
38543
|
-
* @description
|
|
38544
|
-
*
|
|
38545
|
-
* Ação que será disparada ao desfazer a seleção de um item.
|
|
38546
|
-
*
|
|
38547
|
-
* > Como parâmetro o componente envia o item que foi desmarcado.
|
|
38548
|
-
*/
|
|
38549
|
-
unselected: EventEmitter<PoTreeViewItem>;
|
|
38550
|
-
private _componentsSize;
|
|
38551
|
-
private _initialComponentsSize;
|
|
38552
|
-
private _items;
|
|
38553
|
-
private _selectable;
|
|
38554
|
-
private _maxLevel;
|
|
38555
|
-
private _singleSelect;
|
|
38556
|
-
selectedValue: string | number;
|
|
38557
|
-
/**
|
|
38558
|
-
* @optional
|
|
38559
|
-
*
|
|
38560
|
-
* @description
|
|
38561
|
-
*
|
|
38562
|
-
* Define o tamanho dos componentes de formulário:
|
|
38563
|
-
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
38564
|
-
* - `medium`: aplica a medida medium de cada componente.
|
|
38565
|
-
*
|
|
38566
|
-
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
38567
|
-
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
38568
|
-
*
|
|
38569
|
-
* @default `medium`
|
|
38570
|
-
*/
|
|
38571
|
-
set componentsSize(value: string);
|
|
38572
|
-
get componentsSize(): string;
|
|
38573
|
-
/**
|
|
38574
|
-
* Lista de itens do tipo `PoTreeViewItem` que será renderizada pelo componente.
|
|
38575
|
-
*/
|
|
38576
|
-
inputedItems: Array<PoTreeViewItem>;
|
|
38577
|
-
set items(value: Array<PoTreeViewItem>);
|
|
38578
|
-
get items(): Array<PoTreeViewItem>;
|
|
38579
|
-
/**
|
|
38580
|
-
* @optional
|
|
38581
|
-
*
|
|
38582
|
-
* @description
|
|
38583
|
-
*
|
|
38584
|
-
* Habilita uma caixa de seleção para selecionar e/ou desmarcar um item da lista.
|
|
38585
|
-
*
|
|
38586
|
-
* @default false
|
|
38587
|
-
*/
|
|
38588
|
-
set selectable(value: boolean);
|
|
38589
|
-
get selectable(): boolean;
|
|
38590
|
-
/**
|
|
38591
|
-
* @optional
|
|
38592
|
-
*
|
|
38593
|
-
* @description
|
|
38594
|
-
*
|
|
38595
|
-
* Habilita a seleção para item único atráves de po-radio.
|
|
38596
|
-
*
|
|
38597
|
-
* @default false
|
|
38598
|
-
*/
|
|
38599
|
-
set singleSelect(value: boolean);
|
|
38600
|
-
get singleSelect(): boolean;
|
|
38601
|
-
/**
|
|
38602
|
-
* @optional
|
|
38603
|
-
*
|
|
38604
|
-
* @description
|
|
38605
|
-
*
|
|
38606
|
-
* Define o máximo de níveis para o tree-view.
|
|
38607
|
-
*
|
|
38608
|
-
* > O valor padrão é 4
|
|
38609
|
-
*
|
|
38610
|
-
* @default 4
|
|
38611
|
-
*/
|
|
38612
|
-
set maxLevel(value: number);
|
|
38613
|
-
get maxLevel(): number;
|
|
38614
|
-
protected onThemeChange(): void;
|
|
38615
|
-
protected emitExpanded(treeViewItem: PoTreeViewItem): void;
|
|
38616
|
-
protected emitSelected(treeViewItem: PoTreeViewItem): void;
|
|
38617
|
-
private addChildItemInParent;
|
|
38618
|
-
private addItem;
|
|
38619
|
-
private selectAllItems;
|
|
38620
|
-
private selectItemBySubItems;
|
|
38621
|
-
private everyItemSelected;
|
|
38622
|
-
private expandParentItem;
|
|
38623
|
-
private getItemsByMaxLevel;
|
|
38624
|
-
private getItemsWithParentSelected;
|
|
38625
|
-
private updateItemsOnSelect;
|
|
38626
|
-
private applySizeBasedOnA11y;
|
|
38627
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewBaseComponent, never>;
|
|
38628
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoTreeViewBaseComponent, never, never, { "componentsSize": { "alias": "p-components-size"; "required": false; }; "inputedItems": { "alias": "p-items"; "required": false; }; "selectable": { "alias": "p-selectable"; "required": false; }; "singleSelect": { "alias": "p-single-select"; "required": false; }; "maxLevel": { "alias": "p-max-level"; "required": false; }; }, { "collapsed": "p-collapsed"; "expanded": "p-expanded"; "selected": "p-selected"; "unselected": "p-unselected"; }, never, never, true, never>;
|
|
38629
|
-
}
|
|
38630
|
-
|
|
38631
|
-
/**
|
|
38632
|
-
* @docsExtends PoTreeViewBaseComponent
|
|
38633
|
-
*
|
|
38634
|
-
* @example
|
|
38635
|
-
*
|
|
38636
|
-
* <example name="po-tree-view-basic" title="PO Tree View Basic">
|
|
38637
|
-
* <file name="sample-po-tree-view-basic/sample-po-tree-view-basic.component.html"> </file>
|
|
38638
|
-
* <file name="sample-po-tree-view-basic/sample-po-tree-view-basic.component.ts"> </file>
|
|
38639
|
-
* </example>
|
|
38640
|
-
*
|
|
38641
|
-
* <example name="po-tree-view-labs" title="PO Tree View Labs">
|
|
38642
|
-
* <file name="sample-po-tree-view-labs/sample-po-tree-view-labs.component.html"> </file>
|
|
38643
|
-
* <file name="sample-po-tree-view-labs/sample-po-tree-view-labs.component.ts"> </file>
|
|
38644
|
-
* </example>
|
|
38645
|
-
*
|
|
38646
|
-
* <example name="po-tree-view-folder-structure" title="PO Tree View - Folder Structure">
|
|
38647
|
-
* <file name="sample-po-tree-view-folder-structure/sample-po-tree-view-folder-structure.component.html"> </file>
|
|
38648
|
-
* <file name="sample-po-tree-view-folder-structure/sample-po-tree-view-folder-structure.component.ts"> </file>
|
|
38649
|
-
* </example>
|
|
38650
|
-
*
|
|
38651
|
-
* <example name="po-tree-view-supermarket" title="PO Tree View - Supermarket">
|
|
38652
|
-
* <file name="sample-po-tree-view-supermarket/sample-po-tree-view-supermarket.component.html"> </file>
|
|
38653
|
-
* <file name="sample-po-tree-view-supermarket/sample-po-tree-view-supermarket.component.ts"> </file>
|
|
38654
|
-
* </example>
|
|
38655
|
-
*/
|
|
38656
|
-
declare class PoTreeViewComponent extends PoTreeViewBaseComponent implements OnInit, OnChanges {
|
|
38657
|
-
private readonly treeViewService;
|
|
38658
|
-
get hasItems(): boolean;
|
|
38659
|
-
ngOnInit(): void;
|
|
38660
|
-
ngOnChanges(changes?: SimpleChanges): void;
|
|
38661
|
-
trackByFunction(index: number): number;
|
|
38662
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewComponent, never>;
|
|
38663
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoTreeViewComponent, "po-tree-view", never, {}, {}, never, never, false, never>;
|
|
38664
|
-
}
|
|
38665
|
-
|
|
38666
|
-
declare class PoTreeViewItemComponent {
|
|
38667
|
-
private readonly treeViewService;
|
|
38668
|
-
componentsSize: string;
|
|
38669
|
-
item: PoTreeViewItem;
|
|
38670
|
-
selectable: boolean;
|
|
38671
|
-
singleSelect: boolean;
|
|
38672
|
-
selectedValue: string | number;
|
|
38673
|
-
get hasSubItems(): boolean;
|
|
38674
|
-
onClick(event: MouseEvent): void;
|
|
38675
|
-
onSelect(selectedItem: PoTreeViewItem): void;
|
|
38676
|
-
trackByFunction(index: number): number;
|
|
38677
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewItemComponent, never>;
|
|
38678
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoTreeViewItemComponent, "po-tree-view-item", never, { "componentsSize": { "alias": "p-components-size"; "required": false; }; "item": { "alias": "p-item"; "required": false; }; "selectable": { "alias": "p-selectable"; "required": false; }; "singleSelect": { "alias": "p-single-select"; "required": false; }; "selectedValue": { "alias": "p-selected-value"; "required": false; }; }, {}, never, never, false, never>;
|
|
38679
|
-
}
|
|
38680
|
-
|
|
38681
|
-
declare class PoTreeViewItemHeaderComponent {
|
|
38682
|
-
inputCheckbox: any;
|
|
38683
|
-
componentsSize: string;
|
|
38684
|
-
item: PoTreeViewItem;
|
|
38685
|
-
selectable: boolean;
|
|
38686
|
-
singleSelect: boolean;
|
|
38687
|
-
expanded: EventEmitter<MouseEvent>;
|
|
38688
|
-
selected: EventEmitter<any>;
|
|
38689
|
-
selectedValue: string | number;
|
|
38690
|
-
idRadio: string;
|
|
38691
|
-
get hasSubItems(): boolean;
|
|
38692
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewItemHeaderComponent, never>;
|
|
38693
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoTreeViewItemHeaderComponent, "po-tree-view-item-header", never, { "componentsSize": { "alias": "p-components-size"; "required": false; }; "item": { "alias": "p-item"; "required": false; }; "selectable": { "alias": "p-selectable"; "required": false; }; "singleSelect": { "alias": "p-single-select"; "required": false; }; "selectedValue": { "alias": "p-selected-value"; "required": false; }; }, { "expanded": "p-expanded"; "selected": "p-selected"; }, never, never, false, never>;
|
|
38694
|
-
}
|
|
38695
|
-
|
|
38696
|
-
/**
|
|
38697
|
-
* @description
|
|
38698
|
-
*
|
|
38699
|
-
* Módulo do componente `po-tree-view`.
|
|
38700
|
-
*
|
|
38701
|
-
* > Para o correto funcionamento do componente `po-tree-view`, deve ser importado o módulo `BrowserAnimationsModule` no
|
|
38702
|
-
* > módulo principal da sua aplicação.
|
|
38703
|
-
*
|
|
38704
|
-
* Módulo da aplicação:
|
|
38705
|
-
* ```
|
|
38706
|
-
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
38707
|
-
* import { PoModule } from '@po-ui/ng-components';
|
|
38708
|
-
* ...
|
|
38709
|
-
*
|
|
38710
|
-
* @NgModule({
|
|
38711
|
-
* imports: [
|
|
38712
|
-
* BrowserModule,
|
|
38713
|
-
* BrowserAnimationsModule,
|
|
38714
|
-
* ...
|
|
38715
|
-
* PoModule
|
|
38716
|
-
* ],
|
|
38717
|
-
* declarations: [
|
|
38718
|
-
* AppComponent,
|
|
38719
|
-
* ...
|
|
38720
|
-
* ],
|
|
38721
|
-
* providers: [],
|
|
38722
|
-
* bootstrap: [AppComponent]
|
|
38723
|
-
* })
|
|
38724
|
-
* export class AppModule { }
|
|
38725
|
-
* ```
|
|
38726
|
-
*
|
|
38727
|
-
* Em aplicações Standalone, utilize a seguinte configuração para o bootstrap:
|
|
38728
|
-
*
|
|
38729
|
-
* ```
|
|
38730
|
-
* import { bootstrapApplication } from '@angular/platform-browser';
|
|
38731
|
-
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
38732
|
-
* import { AppComponent } from './app.component';
|
|
38733
|
-
*
|
|
38734
|
-
* bootstrapApplication(AppComponent, {
|
|
38735
|
-
* providers: [importProvidersFrom(BrowserAnimationsModule)]
|
|
38736
|
-
* }).catch(err => console.error(err));
|
|
38737
|
-
* ```
|
|
38738
|
-
*/
|
|
38739
|
-
declare class PoTreeViewModule {
|
|
38740
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewModule, never>;
|
|
38741
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoTreeViewModule, [typeof PoTreeViewComponent, typeof PoTreeViewItemComponent, typeof PoTreeViewItemHeaderComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof PoContainerModule, typeof PoFieldModule, typeof PoIconModule], [typeof PoTreeViewComponent]>;
|
|
38742
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PoTreeViewModule>;
|
|
38743
|
-
}
|
|
38744
|
-
|
|
38745
|
-
/**
|
|
38746
|
-
* @usedBy PoWidgetComponent
|
|
38747
|
-
*
|
|
38748
|
-
* @description
|
|
38749
|
-
*
|
|
38750
|
-
* Interface para definição do avatar no `po-widget`.
|
|
38751
|
-
*/
|
|
38752
|
-
interface PoWidgetAvatar {
|
|
38753
|
-
/**
|
|
38754
|
-
* Fonte da imagem que pode ser um caminho local (`./assets/images/logo-black-small.png`)
|
|
38755
|
-
* ou um servidor externo (`https://po-ui.io/assets/images/logo-black-small.png`).
|
|
38756
|
-
*/
|
|
38757
|
-
src?: string;
|
|
38758
|
-
/**
|
|
38759
|
-
* @optional
|
|
38760
|
-
*
|
|
38761
|
-
* @description
|
|
38762
|
-
*
|
|
38763
|
-
* Tamanho de exibição do componente `po-avatar`.
|
|
38764
|
-
*
|
|
38765
|
-
* Valores válidos:
|
|
38766
|
-
* - `xs` (24x24)
|
|
38767
|
-
* - `sm` (32x32)
|
|
38768
|
-
* - `md` (64x64)
|
|
38769
|
-
* - `lg` (96x96)
|
|
38770
|
-
* - `xl` (144x144)
|
|
38771
|
-
*
|
|
38772
|
-
* @default `md`
|
|
38773
|
-
*/
|
|
38774
|
-
size?: string;
|
|
38775
|
-
/**
|
|
38776
|
-
* Permite a criação de template customizado para o avatar
|
|
38777
|
-
*
|
|
38778
|
-
* ```
|
|
38779
|
-
* <po-widget
|
|
38780
|
-
* [p-avatar]="{ customTemplate: customAvatar }"
|
|
38781
|
-
* />
|
|
38782
|
-
*
|
|
38783
|
-
* <ng-template #customAvatar>
|
|
38784
|
-
* ...
|
|
38785
|
-
* </ng-template>
|
|
38786
|
-
* ```
|
|
38787
|
-
*/
|
|
38788
|
-
customTemplate?: TemplateRef<any>;
|
|
38789
|
-
/**
|
|
38790
|
-
* @optional
|
|
38791
|
-
*
|
|
38792
|
-
* @description
|
|
38793
|
-
*
|
|
38794
|
-
* Define a largura em porcentagem do `customTemplate`.
|
|
38795
|
-
*
|
|
38796
|
-
* O valor máximo aceito é `50%`.
|
|
38797
|
-
*/
|
|
38798
|
-
widthCustomTemplate?: string;
|
|
38799
|
-
}
|
|
38800
|
-
|
|
38801
|
-
/**
|
|
38802
|
-
*
|
|
38803
|
-
* @description
|
|
38804
|
-
*
|
|
38805
|
-
* O componente `po-widget` é recomendado para exibição de *dashboards*, podendo ser utilizado
|
|
38806
|
-
* para incluir vários tipos de conteúdo como: gráficos, tabelas, grids e imagens.
|
|
38807
|
-
*
|
|
38808
|
-
* Além da exibição de conteúdos, este componente possibilita adicionar ações e um link
|
|
38809
|
-
* para ajuda, como também possibilita ser utilizado com ou sem sombra.
|
|
38810
|
-
*
|
|
38811
|
-
* Para controlar sua largura, é possível utilizar o [Grid System](/guides/grid-system) para um maior
|
|
38812
|
-
* controle de seu redimensionamento, assim possibilitando o tratamento para diferentes resoluções.
|
|
38813
|
-
*
|
|
38814
|
-
* #### Boas práticas
|
|
38815
|
-
*
|
|
38816
|
-
* Utilize um tamanho mínimo de largura de aproximadamente `18.75rem` no componente.
|
|
38817
|
-
*
|
|
38818
|
-
* #### Acessibilidade tratada no componente
|
|
38819
|
-
*
|
|
38820
|
-
* Algumas diretrizes de acessibilidade já são tratadas no componente, internamente, e não podem ser alteradas. São elas:
|
|
38821
|
-
* - Utiliza medidas relativas, para se adequar às preferências e necessidades de quem for utilizar o sistema.
|
|
38822
|
-
* - Desenvolvido com uso de controles padrões HTML, o que permite a identificação na interface por tecnologias assistivas. (WCAG [4.1.2: Name, Role, Value](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value))
|
|
38823
|
-
* - O foco é visível e possui uma espessura superior a 2 pixels CSS, não ficando escondido por outros elementos da tela. (WCAG [2.4.12: Focus Appearance](https://www.w3.org/WAI/WCAG22/Understanding/focus-appearance-enhanced))
|
|
38824
|
-
* - Quando selecionável, prevê interação por teclado, podendo ser selecionado através da tecla space (WCAG [2.4.1 - Keyboard](https://www.w3.org/WAI/WCAG21/Understanding/keyboard))
|
|
38825
|
-
*
|
|
38826
|
-
* #### Tokens customizáveis
|
|
38827
|
-
*
|
|
38828
|
-
* É possível alterar o estilo do componente usando os seguintes tokens (CSS):
|
|
38829
|
-
*
|
|
38830
|
-
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
38831
|
-
*
|
|
38832
|
-
* | Propriedade | Descrição | Valor Padrão |
|
|
38833
|
-
* |----------------------------------------------|------------------------------------------------------------------|-----------------------------------------------------------------------------|
|
|
38834
|
-
* | **Default Values** | | |
|
|
38835
|
-
* | `--font-family` | Família tipográfica usada | `var(--font-family-theme) ` |
|
|
38836
|
-
* | `--font-size` | Tamanho da fonte | `var(--font-size-sm)` |
|
|
38837
|
-
* | `--font-weight` | Peso da fonte | `var(--font-weight-bold)` |
|
|
38838
|
-
* | `--font-color` | Cor da fonte | `var(--color-neutral-dark-95)` |
|
|
38839
|
-
* | `--padding` - `@deprecated 21.x.x` | Preenchimento do componente | `1rem` |
|
|
38840
|
-
* | `--padding-header` | Preenchimento do header | `var(--spacing-sm) var(--spacing-sm) var(--spacing-xs) var(--spacing-sm)` |
|
|
38841
|
-
* | `--padding-body` | Preenchimento do body | `var(--spacing-xs) var(--spacing-sm) var(--spacing-xs) var(--spacing-sm)` |
|
|
38842
|
-
* | `--padding-avatar` | Preenchimento do avatar | `var(--spacing-sm) 0 var(--spacing-xs) var(--spacing-sm)` |
|
|
38843
|
-
* | `--padding-footer` | Preenchimento do footer | `var(--spacing-xs) var(--spacing-sm) var(--spacing-sm) var(--spacing-sm)` |
|
|
38844
|
-
* | `--border-radius` | Contém o valor do raio dos cantos do elemento | `var(--border-radius-md)` |
|
|
38845
|
-
* | `--border-width` | Contém o valor da largura dos cantos do elemento | `var(--border-width-sm)` |
|
|
38846
|
-
* | `--border-color` | Cor da borda | `var(--color-neutral-light-20)` |
|
|
38847
|
-
* | `--background` | Cor de background | `var(--color-neutral-light-00)` |
|
|
38848
|
-
* | `--shadow` | Contém o valor da sombra do elemento | `var(--shadow-md)` |
|
|
38849
|
-
* | **Hover** | | |
|
|
38850
|
-
* | `--border-color-hover` | Cor da borda no estado hover | `var(--color-action-hover)` |
|
|
38851
|
-
* | **Focused** | | |
|
|
38852
|
-
* | `--color-focused` | Cor principal no estado de focus | `var(--color-action-default)` |
|
|
38853
|
-
* | `--outline-color-focused` | Cor do outline do estado de focus | `var(--color-action-focus)` |
|
|
38854
|
-
*
|
|
38855
|
-
*/
|
|
38856
|
-
declare class PoWidgetBaseComponent {
|
|
38857
|
-
private _size?;
|
|
38858
|
-
private _initialSize?;
|
|
38859
|
-
/** Descrição da segunda ação. */
|
|
38860
|
-
/**
|
|
38861
|
-
* @optional
|
|
38862
|
-
*
|
|
38863
|
-
* @description
|
|
38864
|
-
* Define o label e exibe a ação secundária no footer do componente.
|
|
38865
|
-
*
|
|
38866
|
-
* > Exibida apenas quando `p-primary-label` estiver definida.
|
|
38867
|
-
*/
|
|
38868
|
-
secondaryLabel?: string;
|
|
38869
|
-
/**
|
|
38870
|
-
* @optional
|
|
38871
|
-
*
|
|
38872
|
-
* @description
|
|
38873
|
-
*
|
|
38874
|
-
* Caso verdadeiro o botão da ação `p-primary-label` ativará o modo `danger`.
|
|
38875
|
-
*
|
|
38876
|
-
* > Incompatível com o tipo **tertiary** da propriedade `p-kind-primary-action`.
|
|
38877
|
-
*
|
|
38878
|
-
* @default `false`
|
|
38879
|
-
*/
|
|
38880
|
-
dangerPrimaryAction: boolean;
|
|
38881
|
-
/**
|
|
38882
|
-
* @optional
|
|
38883
|
-
*
|
|
38884
|
-
* @description
|
|
38885
|
-
*
|
|
38886
|
-
* Caso verdadeiro o botão da ação `p-secondary-label` ativará o modo `danger`.
|
|
38887
|
-
*
|
|
38888
|
-
* > Incompatível com o tipo **tertiary** da propriedade `p-kind-primary-action`.
|
|
38889
|
-
*
|
|
38890
|
-
* @default `false`
|
|
38891
|
-
*/
|
|
38892
|
-
dangerSecondaryAction: boolean;
|
|
38893
|
-
/**
|
|
38894
|
-
* @optional
|
|
38895
|
-
*
|
|
38896
|
-
* @description
|
|
38897
|
-
*
|
|
38898
|
-
* Define o estilo do botão da ação `p-primary-label`, conforme o enum `PoButtonKind`.
|
|
38899
|
-
*
|
|
38900
|
-
* @default `tertiary`
|
|
38901
|
-
*/
|
|
38902
|
-
kindPrimaryAction?: string;
|
|
38903
|
-
/**
|
|
38904
|
-
* @optional
|
|
38905
|
-
*
|
|
38906
|
-
* @description
|
|
38907
|
-
*
|
|
38908
|
-
* Define o estilo do botão da ação `p-secondary-label`, conforme o enum `PoButtonKind`.
|
|
38909
|
-
*
|
|
38910
|
-
* @default `tertiary`
|
|
38911
|
-
*/
|
|
38912
|
-
kindSecondaryAction?: string;
|
|
38913
|
-
/**
|
|
38914
|
-
* @optional
|
|
38915
|
-
*
|
|
38916
|
-
* @description
|
|
38917
|
-
*
|
|
38918
|
-
* Label da tag exibida no header.
|
|
38919
|
-
*
|
|
38920
|
-
* > Quando a tag atingir uma largura máxima de 15rem (240px), será truncado com reticências.
|
|
38921
|
-
* O conteúdo completo poderá ser visualizado ao passar o mouse sobre a tag, por meio do tooltip.
|
|
38922
|
-
*/
|
|
38923
|
-
tagLabel?: string;
|
|
38924
|
-
/**
|
|
38925
|
-
* @optional
|
|
38926
|
-
*
|
|
38927
|
-
* @description
|
|
38928
|
-
*
|
|
38929
|
-
* Define o tipo da `p-tag`, conforme o enum **PoTagType**.
|
|
38930
|
-
*
|
|
38931
|
-
* Valores válidos:
|
|
38932
|
-
* - `success`: cor verde utilizada para simbolizar sucesso ou êxito.
|
|
38933
|
-
* - `warning`: cor amarela que representa aviso ou advertência.
|
|
38934
|
-
* - `danger`: cor vermelha para erro ou aviso crítico.
|
|
38935
|
-
* - `info`: cor azul claro que caracteriza conteúdo informativo.
|
|
38936
|
-
* - `neutral`: cor cinza claro para uso geral.
|
|
38937
|
-
*
|
|
38938
|
-
* @default `success`
|
|
38939
|
-
*/
|
|
38940
|
-
tagType: PoTagType | string;
|
|
38941
|
-
/**
|
|
38942
|
-
* @optional
|
|
38943
|
-
*
|
|
38944
|
-
* @description
|
|
38945
|
-
*
|
|
38946
|
-
* Define o ícone exibido ao lado do label da `p-tag`.
|
|
38947
|
-
*
|
|
38948
|
-
* É possível usar qualquer um dos ícones da [Biblioteca de ícones PO UI](https://po-ui.io/icons), conforme exemplo:
|
|
38949
|
-
* ```
|
|
38950
|
-
* <po-widget p-tag-icon="an an-user"></po-widget>
|
|
38951
|
-
* ```
|
|
38952
|
-
* Também é possível utilizar outras fontes de ícones, por exemplo a biblioteca *Font Awesome*, desde que a biblioteca
|
|
38953
|
-
* esteja carregada no projeto:
|
|
38954
|
-
* ```
|
|
38955
|
-
* <po-widget p-tag-icon="fa fa-podcast"></po-widget>
|
|
38956
|
-
* ```
|
|
38957
|
-
*
|
|
38958
|
-
* Outra opção seria a customização do ícone através do `TemplateRef`, conforme exemplo abaixo:
|
|
38959
|
-
* ```
|
|
38960
|
-
* <po-widget [p-tag-icon]="template"></po-widget>
|
|
38961
|
-
*
|
|
38962
|
-
* <ng-template #template>
|
|
38963
|
-
* <i class="fa fa-podcast" style="font-size: inherit;"></i>
|
|
38964
|
-
* </ng-template>
|
|
38965
|
-
* ```
|
|
38966
|
-
* > Para o ícone enquadrar corretamente, deve-se utilizar `font-size: inherit` caso o ícone utilizado não aplique-o.
|
|
38967
|
-
*/
|
|
38968
|
-
tagIcon: string | TemplateRef<void>;
|
|
38969
|
-
/**
|
|
38970
|
-
* @optional
|
|
38971
|
-
*
|
|
38972
|
-
* @description
|
|
38973
|
-
* Define o posicionamento da `po-tag` no cabeçalho do Widget:
|
|
38974
|
-
* - `right`: posicionada no canto superior direito do cabeçalho.
|
|
38975
|
-
* - `top`: posicionada à esquerda, acima do título (quando houver).
|
|
38976
|
-
* - `bottom`: posicionada à esquerda, abaixo do título (quando houver).
|
|
38977
|
-
*
|
|
38978
|
-
* @default `right`
|
|
38979
|
-
*/
|
|
38980
|
-
tagPosition: i0.InputSignalWithTransform<string, string>;
|
|
38981
|
-
/**
|
|
38982
|
-
* @optional
|
|
38983
|
-
*
|
|
38984
|
-
* @description
|
|
38985
|
-
*
|
|
38986
|
-
* Lista de ações exibidas no header do componente.
|
|
38987
|
-
* As propriedades das ações seguem a interface `PoPopupAction`.
|
|
38988
|
-
*/
|
|
38989
|
-
actions: Array<PoPopupAction>;
|
|
38990
|
-
/**
|
|
38991
|
-
* @optional
|
|
38992
|
-
*
|
|
38993
|
-
* @description
|
|
38994
|
-
*
|
|
38995
|
-
* Define o tamanho dos botões do componente:
|
|
38996
|
-
* - `small`: altura de 32px (disponível apenas para acessibilidade AA).
|
|
38997
|
-
* - `medium`: altura de 44px.
|
|
38998
|
-
*
|
|
38999
|
-
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
39000
|
-
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
39001
|
-
*
|
|
39002
|
-
* @default `medium`
|
|
39003
|
-
*/
|
|
39004
|
-
set size(value: string);
|
|
39005
|
-
get size(): string;
|
|
39006
|
-
/**
|
|
39007
|
-
* @optional
|
|
39008
|
-
*
|
|
39009
|
-
* @description
|
|
39010
|
-
*
|
|
39011
|
-
* Define o avatar a ser exibido à esquerda no Widget.
|
|
39012
|
-
*/
|
|
39013
|
-
avatar: i0.InputSignalWithTransform<PoWidgetAvatar, PoWidgetAvatar>;
|
|
39014
|
-
/**
|
|
39015
|
-
* @optional
|
|
39016
|
-
*
|
|
39017
|
-
* @description
|
|
39018
|
-
*
|
|
39019
|
-
* Evento disparado quando o usuário clicar no componente.
|
|
39020
|
-
* > Quando este evento está em uso, uma sombra (shadow) é aplicada automaticamente ao componente.
|
|
39021
|
-
*/
|
|
39022
|
-
click: EventEmitter<MouseEvent | KeyboardEvent>;
|
|
39909
|
+
*
|
|
39910
|
+
* Interface para definição dos itens do componente `po-tree-view`.
|
|
39911
|
+
*/
|
|
39912
|
+
interface PoTreeViewItem {
|
|
39023
39913
|
/**
|
|
39024
39914
|
* @optional
|
|
39025
39915
|
*
|
|
39026
39916
|
* @description
|
|
39027
39917
|
*
|
|
39028
|
-
*
|
|
39029
|
-
*/
|
|
39030
|
-
onDisabled: EventEmitter<any>;
|
|
39031
|
-
/**
|
|
39032
|
-
* @optional
|
|
39033
|
-
*
|
|
39034
|
-
* @description
|
|
39918
|
+
* Desabilita a interação com o item.
|
|
39035
39919
|
*
|
|
39036
|
-
*
|
|
39037
|
-
|
|
39038
|
-
primaryAction: EventEmitter<any>;
|
|
39039
|
-
/**
|
|
39040
|
-
* @optional
|
|
39920
|
+
* O estado é aplicado somente ao item em que a propriedade está configurada
|
|
39921
|
+
* e não é propagado para seus `subItems`.
|
|
39041
39922
|
*
|
|
39042
|
-
*
|
|
39923
|
+
* > Itens disabled que não possuem `subItems` são ignorados na navegação por teclado.
|
|
39924
|
+
* Itens disabled que possuem `subItems` continuam participando da navegação, permitindo expandir/recolher.
|
|
39043
39925
|
*
|
|
39044
|
-
*
|
|
39926
|
+
* @default `false`
|
|
39045
39927
|
*/
|
|
39046
|
-
|
|
39928
|
+
disabled?: boolean;
|
|
39047
39929
|
/**
|
|
39048
39930
|
* @optional
|
|
39049
39931
|
*
|
|
39050
39932
|
* @description
|
|
39051
|
-
* Evento disparado ao clicar em **Configurações** incluído no menu de ações do header.
|
|
39052
|
-
*/
|
|
39053
|
-
setting: EventEmitter<any>;
|
|
39054
|
-
/**
|
|
39055
|
-
* @optional
|
|
39056
39933
|
*
|
|
39057
|
-
*
|
|
39058
|
-
* Evento disparado ao clicar no título definido em `p-title`.
|
|
39059
|
-
*/
|
|
39060
|
-
titleAction: EventEmitter<any>;
|
|
39061
|
-
containerHeight?: string;
|
|
39062
|
-
id: string;
|
|
39063
|
-
private _background?;
|
|
39064
|
-
private _disabled?;
|
|
39065
|
-
private _height?;
|
|
39066
|
-
private _help?;
|
|
39067
|
-
private _noShadow?;
|
|
39068
|
-
private _primary?;
|
|
39069
|
-
private _primaryLabel?;
|
|
39070
|
-
private _title?;
|
|
39071
|
-
/**
|
|
39072
|
-
* @optional
|
|
39934
|
+
* Expande o item, exibindo seus `subItems`.
|
|
39073
39935
|
*
|
|
39074
|
-
*
|
|
39936
|
+
* Quando `true`, o item será renderizado no estado expandido.
|
|
39075
39937
|
*
|
|
39076
|
-
*
|
|
39077
|
-
* > Se a imagem escolhida intervir na legibilidade do texto contido no `p-widget`,
|
|
39078
|
-
* pode-se utilizar a propriedade `p-primary` em conjunto para que os textos fiquem na cor branca.
|
|
39938
|
+
* > Sem efeito em itens que não possuem `subItems`.
|
|
39079
39939
|
*
|
|
39940
|
+
* @default `false`
|
|
39080
39941
|
*/
|
|
39081
|
-
|
|
39082
|
-
get background(): string;
|
|
39942
|
+
expanded?: boolean;
|
|
39083
39943
|
/**
|
|
39084
39944
|
* @optional
|
|
39085
39945
|
*
|
|
39086
39946
|
* @description
|
|
39087
39947
|
*
|
|
39088
|
-
*
|
|
39948
|
+
* Permite ativar ou desativar a seleção do item.
|
|
39089
39949
|
*
|
|
39090
|
-
*
|
|
39950
|
+
* Quando `false`, o item não poderá ser selecionado pelo usuário.
|
|
39951
|
+
*
|
|
39952
|
+
* @deprecated v23.x.x use `disabled`
|
|
39091
39953
|
*/
|
|
39092
|
-
|
|
39093
|
-
get disabled(): boolean;
|
|
39954
|
+
isSelectable?: boolean | null;
|
|
39094
39955
|
/**
|
|
39095
|
-
* @optional
|
|
39096
|
-
*
|
|
39097
39956
|
* @description
|
|
39098
39957
|
*
|
|
39099
|
-
*
|
|
39100
|
-
*
|
|
39958
|
+
* Texto de exibição do item.
|
|
39959
|
+
*
|
|
39960
|
+
* O valor é utilizado como `aria-label` do nó e como referência na navegação por caractere do teclado.
|
|
39101
39961
|
*/
|
|
39102
|
-
|
|
39103
|
-
get height(): number;
|
|
39962
|
+
label: string;
|
|
39104
39963
|
/**
|
|
39105
39964
|
* @optional
|
|
39106
39965
|
*
|
|
39107
39966
|
* @description
|
|
39108
39967
|
*
|
|
39109
|
-
*
|
|
39110
|
-
*/
|
|
39111
|
-
set help(value: string);
|
|
39112
|
-
get help(): string;
|
|
39113
|
-
/**
|
|
39114
|
-
*
|
|
39115
|
-
* @optional
|
|
39968
|
+
* Marca o item como selecionado.
|
|
39116
39969
|
*
|
|
39117
|
-
*
|
|
39970
|
+
* > Caso o item que possuir `subItems` for selecionado, os seus itens filhos serão também selecionados.
|
|
39118
39971
|
*
|
|
39119
|
-
*
|
|
39120
|
-
*
|
|
39972
|
+
* Quando utilizado com `p-single-select`, apenas um item pode estar selecionado por vez.
|
|
39973
|
+
* Ao selecionar outro item, o anteriormente selecionado perde o estado.
|
|
39121
39974
|
*
|
|
39122
|
-
* @default `
|
|
39975
|
+
* @default `false`
|
|
39123
39976
|
*/
|
|
39124
|
-
|
|
39125
|
-
get noShadow(): boolean;
|
|
39977
|
+
selected?: boolean | null;
|
|
39126
39978
|
/**
|
|
39127
39979
|
* @optional
|
|
39128
39980
|
*
|
|
39129
39981
|
* @description
|
|
39130
39982
|
*
|
|
39131
|
-
*
|
|
39983
|
+
* Habilita a exibição de ícone no item.
|
|
39984
|
+
*
|
|
39985
|
+
* Quando `true`, exibe automaticamente:
|
|
39986
|
+
* - `an-folder-simple` para itens agrupadores (que possuem `subItems`).
|
|
39987
|
+
* - `an-file` para itens finais (sem `subItems`).
|
|
39988
|
+
*
|
|
39989
|
+
* > Não funciona em conjunto com `p-selectable`.
|
|
39990
|
+
* Quando `p-selectable` e `showIcon` estiverem configurados como `true`,
|
|
39991
|
+
* `p-selectable` terá precedência.
|
|
39132
39992
|
*
|
|
39133
39993
|
* @default `false`
|
|
39134
39994
|
*/
|
|
39135
|
-
|
|
39136
|
-
get primary(): boolean;
|
|
39995
|
+
showIcon?: boolean;
|
|
39137
39996
|
/**
|
|
39138
39997
|
* @optional
|
|
39139
39998
|
*
|
|
39140
39999
|
* @description
|
|
39141
40000
|
*
|
|
39142
|
-
*
|
|
40001
|
+
* Lista de itens do próximo nível, permitindo a construção hierárquica da árvore.
|
|
39143
40002
|
*
|
|
40003
|
+
* A estrutura pode ser aninhada recursivamente até o limite definido pela propriedade `p-max-level` do componente.
|
|
39144
40004
|
*/
|
|
39145
|
-
|
|
39146
|
-
get primaryLabel(): string;
|
|
40005
|
+
subItems?: Array<PoTreeViewItem>;
|
|
39147
40006
|
/**
|
|
39148
|
-
* @optional
|
|
39149
|
-
*
|
|
39150
40007
|
* @description
|
|
39151
40008
|
*
|
|
39152
|
-
*
|
|
40009
|
+
* Valor do item utilizado como referência para sua identificação.
|
|
39153
40010
|
*
|
|
39154
|
-
*
|
|
39155
|
-
* ser visualizado ao passar o mouse sobre a tag, por meio do tooltip.
|
|
40011
|
+
* Em modo `p-single-select`, este valor é utilizado para determinar qual item está atualmente selecionado.
|
|
39156
40012
|
*/
|
|
39157
|
-
|
|
39158
|
-
get title(): string;
|
|
39159
|
-
protected onThemeChange(): void;
|
|
39160
|
-
private applySizeBasedOnA11y;
|
|
39161
|
-
private transformAvatar;
|
|
39162
|
-
private transformTagPosition;
|
|
39163
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoWidgetBaseComponent, never>;
|
|
39164
|
-
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; }; "tagPosition": { "alias": "p-tag-position"; "required": false; "isSignal": true; }; "actions": { "alias": "p-actions"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "avatar": { "alias": "p-avatar"; "required": false; "isSignal": true; }; "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>;
|
|
39165
|
-
static ngAcceptInputType_dangerPrimaryAction: any;
|
|
39166
|
-
static ngAcceptInputType_dangerSecondaryAction: any;
|
|
39167
|
-
}
|
|
39168
|
-
|
|
39169
|
-
/**
|
|
39170
|
-
* @docsExtends PoWidgetBaseComponent
|
|
39171
|
-
*
|
|
39172
|
-
* @example
|
|
39173
|
-
*
|
|
39174
|
-
* <example name="po-widget-basic" title="PO Widget Basic">
|
|
39175
|
-
* <file name="sample-po-widget-basic/sample-po-widget-basic.component.html"> </file>
|
|
39176
|
-
* <file name="sample-po-widget-basic/sample-po-widget-basic.component.ts"> </file>
|
|
39177
|
-
* </example>
|
|
39178
|
-
*
|
|
39179
|
-
* <example name="po-widget-labs" title="PO Widget Labs">
|
|
39180
|
-
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.html"> </file>
|
|
39181
|
-
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.ts"> </file>
|
|
39182
|
-
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.css"> </file>
|
|
39183
|
-
* </example>
|
|
39184
|
-
*
|
|
39185
|
-
* <example name="po-widget-finance-dashboard" title="PO Widget - Finance dashboard">
|
|
39186
|
-
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.html"> </file>
|
|
39187
|
-
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.ts"> </file>
|
|
39188
|
-
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.css"> </file>
|
|
39189
|
-
* </example>
|
|
39190
|
-
*
|
|
39191
|
-
* <example name="po-widget-card" title="PO Widget - Card">
|
|
39192
|
-
* <file name="sample-po-widget-card/sample-po-widget-card.component.html"> </file>
|
|
39193
|
-
* <file name="sample-po-widget-card/sample-po-widget-card.component.ts"> </file>
|
|
39194
|
-
* </example>
|
|
39195
|
-
*
|
|
39196
|
-
*/
|
|
39197
|
-
declare class PoWidgetComponent extends PoWidgetBaseComponent implements OnInit, OnChanges, AfterViewInit {
|
|
39198
|
-
protected cd: ChangeDetectorRef;
|
|
39199
|
-
protected poTheme: PoThemeService;
|
|
39200
|
-
popupTarget: any;
|
|
39201
|
-
literals: any;
|
|
39202
|
-
hasContent: boolean;
|
|
39203
|
-
poPopupComponent: PoPopupComponent;
|
|
39204
|
-
buttonPopUp: PoButtonComponent;
|
|
39205
|
-
wrapperInfo: ElementRef;
|
|
39206
|
-
wrapperTitle: ElementRef;
|
|
39207
|
-
tagElement: ElementRef;
|
|
39208
|
-
contentContainer: ElementRef<HTMLElement>;
|
|
39209
|
-
get showTitleAction(): boolean;
|
|
39210
|
-
avatarSrc: i0.Signal<string>;
|
|
39211
|
-
avatarSize: i0.Signal<string>;
|
|
39212
|
-
avatarCustomTemplate: i0.Signal<i0.TemplateRef<any>>;
|
|
39213
|
-
avatarWidthCustomTemplate: i0.Signal<string>;
|
|
39214
|
-
constructor();
|
|
39215
|
-
ngAfterViewInit(): void;
|
|
39216
|
-
get a11Level(): PoThemeA11yEnum;
|
|
39217
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
39218
|
-
ngOnInit(): void;
|
|
39219
|
-
hasTitleHelpOrSetting(): boolean;
|
|
39220
|
-
onClick(event: MouseEvent): void;
|
|
39221
|
-
onKeyDown(event: KeyboardEvent): void;
|
|
39222
|
-
openHelp(): void;
|
|
39223
|
-
runPrimaryAction(): void;
|
|
39224
|
-
runSecondaryAction(): void;
|
|
39225
|
-
runTitleAction(event: MouseEvent): void;
|
|
39226
|
-
setHeight(height: number): void;
|
|
39227
|
-
settingOutput(): void;
|
|
39228
|
-
togglePopup(targetRef: any, event: any): void;
|
|
39229
|
-
showTooltip(): boolean;
|
|
39230
|
-
closePopUp(): void;
|
|
39231
|
-
private checkDefaultActions;
|
|
39232
|
-
private updateContent;
|
|
39233
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoWidgetComponent, never>;
|
|
39234
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoWidgetComponent, "po-widget", never, {}, {}, never, ["*"], false, never>;
|
|
39235
|
-
}
|
|
39236
|
-
|
|
39237
|
-
/**
|
|
39238
|
-
* @description
|
|
39239
|
-
*
|
|
39240
|
-
* Módulo do componente po-widget
|
|
39241
|
-
*/
|
|
39242
|
-
declare class PoWidgetModule {
|
|
39243
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoWidgetModule, never>;
|
|
39244
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoWidgetModule, [typeof PoWidgetComponent], [typeof i2.CommonModule, typeof PoAvatarModule, typeof PoButtonModule, typeof PoContainerModule, typeof PoIconModule, typeof PoPopupModule, typeof PoTagModule, typeof PoTooltipModule], [typeof PoWidgetComponent]>;
|
|
39245
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PoWidgetModule>;
|
|
39246
|
-
}
|
|
39247
|
-
|
|
39248
|
-
/**
|
|
39249
|
-
* @usedBy PoSkeletonComponent
|
|
39250
|
-
*
|
|
39251
|
-
* @description
|
|
39252
|
-
*
|
|
39253
|
-
* Define os tipos de animação do componente `po-skeleton`.
|
|
39254
|
-
*/
|
|
39255
|
-
declare enum PoSkeletonAnimation {
|
|
39256
|
-
/** Sem animação */
|
|
39257
|
-
none = "none",
|
|
39258
|
-
/** Animação de pulsação */
|
|
39259
|
-
pulse = "pulse",
|
|
39260
|
-
/** Animação de brilho deslizante */
|
|
39261
|
-
shimmer = "shimmer"
|
|
39262
|
-
}
|
|
39263
|
-
|
|
39264
|
-
/**
|
|
39265
|
-
* @usedBy PoSkeletonComponent
|
|
39266
|
-
*
|
|
39267
|
-
* @description
|
|
39268
|
-
*
|
|
39269
|
-
* Define os tamanhos disponíveis para o componente `po-skeleton`.
|
|
39270
|
-
*/
|
|
39271
|
-
declare enum PoSkeletonSize {
|
|
39272
|
-
/** Tamanho extra pequeno */
|
|
39273
|
-
xs = "xs",
|
|
39274
|
-
/** Tamanho pequeno */
|
|
39275
|
-
sm = "sm",
|
|
39276
|
-
/** Tamanho médio */
|
|
39277
|
-
md = "md",
|
|
39278
|
-
/** Tamanho grande */
|
|
39279
|
-
lg = "lg",
|
|
39280
|
-
/** Tamanho extra grande */
|
|
39281
|
-
xl = "xl",
|
|
39282
|
-
/** Tamanho extra extra grande */
|
|
39283
|
-
xxl = "2xl"
|
|
40013
|
+
value: string | number;
|
|
39284
40014
|
}
|
|
39285
40015
|
|
|
39286
40016
|
/**
|
|
39287
|
-
* @usedBy PoSkeletonComponent
|
|
39288
|
-
*
|
|
39289
40017
|
* @description
|
|
39290
40018
|
*
|
|
39291
|
-
*
|
|
39292
|
-
|
|
39293
|
-
declare enum PoSkeletonType {
|
|
39294
|
-
/** Tipo padrão com cor neutra clara */
|
|
39295
|
-
normal = "normal",
|
|
39296
|
-
/** Tipo primário com cor neutra média */
|
|
39297
|
-
primary = "primary",
|
|
39298
|
-
/** Tipo de conteúdo com fundo branco */
|
|
39299
|
-
content = "content"
|
|
39300
|
-
}
|
|
39301
|
-
|
|
39302
|
-
/**
|
|
39303
|
-
* @usedBy PoSkeletonComponent
|
|
39304
|
-
*
|
|
39305
|
-
* @description
|
|
40019
|
+
* O componente fornece um modelo de visualização em árvore, possibilitando a exibição de informações de maneira
|
|
40020
|
+
* hierárquica com suporte a múltiplos níveis (configurável via `p-max-level`).
|
|
39306
40021
|
*
|
|
39307
|
-
*
|
|
39308
|
-
|
|
39309
|
-
|
|
39310
|
-
|
|
39311
|
-
|
|
39312
|
-
|
|
39313
|
-
|
|
39314
|
-
/** Variante quadrada (largura igual à altura) */
|
|
39315
|
-
square = "square",
|
|
39316
|
-
/** Variante circular */
|
|
39317
|
-
circle = "circle"
|
|
39318
|
-
}
|
|
39319
|
-
|
|
39320
|
-
/**
|
|
39321
|
-
* @description
|
|
40022
|
+
* O componente permite:
|
|
40023
|
+
* - Navegação completa por teclado seguindo o padrão WAI-ARIA TreeView;
|
|
40024
|
+
* - Expansão e recolhimento de itens agrupadores;
|
|
40025
|
+
* - Seleção múltipla (checkbox) ou única (radio) dos itens;
|
|
40026
|
+
* - Exibição de ícones automáticos para agrupadores e itens finais;
|
|
40027
|
+
* - Estado desabilitado global ou individual por item;
|
|
40028
|
+
* - Execução de itens finais via clique ou teclado.
|
|
39322
40029
|
*
|
|
39323
|
-
*
|
|
39324
|
-
* melhorando a experiência do usuário ao indicar que a informação está sendo processada.
|
|
40030
|
+
* #### Navegação por teclado
|
|
39325
40031
|
*
|
|
39326
|
-
*
|
|
39327
|
-
*
|
|
40032
|
+
* | Tecla | Descrição |
|
|
40033
|
+
* |-----------------------|-----------------------------------------------------------------------------------------------------------|
|
|
40034
|
+
* | **Tab** | Entra no componente posicionando o foco no primeiro nó ativo. Ao pressionar novamente, sai do componente. |
|
|
40035
|
+
* | **ArrowDown** | Move o foco para o próximo nó visível. |
|
|
40036
|
+
* | **ArrowUp** | Move o foco para o nó visível anterior. |
|
|
40037
|
+
* | **ArrowRight** | Se colapsado, expande o nó. Se expandido, move o foco para o nó filho. |
|
|
40038
|
+
* | **ArrowLeft** | Se expandido, recolhe o nó. Se filho, move o foco para o nó pai. |
|
|
40039
|
+
* | **Home** | Move o foco para o primeiro nó visível. |
|
|
40040
|
+
* | **End** | Move o foco para o último nó visível. |
|
|
40041
|
+
* | **Enter / Space** | Com `p-selectable`: alterna a seleção do item. Sem `p-selectable`: executa o item final. |
|
|
40042
|
+
* | **Caractere** | Move o foco para o próximo nó cujo label inicia com o caractere pressionado (busca cíclica). |
|
|
39328
40043
|
*
|
|
39329
40044
|
* #### Tokens customizáveis
|
|
39330
40045
|
*
|
|
@@ -39332,245 +40047,301 @@ declare enum PoSkeletonVariant {
|
|
|
39332
40047
|
*
|
|
39333
40048
|
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
39334
40049
|
*
|
|
39335
|
-
* | Propriedade | Descrição
|
|
39336
|
-
*
|
|
39337
|
-
* | **
|
|
39338
|
-
* | `--color`
|
|
39339
|
-
* | `--color
|
|
39340
|
-
* | `--
|
|
39341
|
-
* | `--
|
|
39342
|
-
* | `--
|
|
39343
|
-
* | `--
|
|
39344
|
-
* | **
|
|
39345
|
-
* | `--
|
|
39346
|
-
* | **
|
|
39347
|
-
* | `--
|
|
39348
|
-
* |
|
|
39349
|
-
* | `--
|
|
39350
|
-
* |
|
|
39351
|
-
* |
|
|
39352
|
-
* | `--transition-property` | Propriedade CSS da transição | `all` |
|
|
39353
|
-
* | `--transition-duration` | Duração da transição de cor | `var(--duration-moderate)` |
|
|
39354
|
-
* | `--transition-timing` | Função de temporização da transição/animação | `var(--timing-continuous)` |
|
|
39355
|
-
* | **Animações** | | |
|
|
39356
|
-
* | `--animation-duration-pulse` | Duração da animação de pulsação | `var(--duration-very-slow)` |
|
|
39357
|
-
* | `--animation-duration-shimmer` | Duração da animação de brilho deslizante | `var(--duration-ultra-slow)` |
|
|
39358
|
-
*
|
|
40050
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
40051
|
+
* |----------------------------------------|-------------------------------------------------------|-------------------------------------------------|
|
|
40052
|
+
* | **Default** | | |
|
|
40053
|
+
* | `--background-color` | Cor de background do item | `var(--color-neutral-light-00)` |
|
|
40054
|
+
* | `--divider-color` | Cor do divider dos agrupadores de nível 0 | `var(--color-neutral-mid-40)` |
|
|
40055
|
+
* | `--font-family` | Família tipográfica | `var(--font-family-theme)` |
|
|
40056
|
+
* | `--font-size` | Tamanho da fonte | `var(--font-size-default)` |
|
|
40057
|
+
* | `--line-height` | Altura da linha | `var(--line-height-md)` |
|
|
40058
|
+
* | `--color` | Cor padrão do item | `var(--color-action-default)` |
|
|
40059
|
+
* | **Hover** | | |
|
|
40060
|
+
* | `--color-hover` | Cor do item em hover | `var(--color-action-hover)` |
|
|
40061
|
+
* | **Pressed** | | |
|
|
40062
|
+
* | `--color-pressed` | Cor do item em pressed | `var(--color-action-pressed)` |
|
|
40063
|
+
* | **Disabled** | | |
|
|
40064
|
+
* | `--color-disabled` | Cor do item desabilitado | `var(--color-action-disabled)` |
|
|
40065
|
+
* | **Selected** | | |
|
|
40066
|
+
* | `--title-color` | Cor do label quando selecionado | `var(--color-action-focus)` |
|
|
39359
40067
|
*/
|
|
39360
|
-
declare class
|
|
40068
|
+
declare class PoTreeViewBaseComponent {
|
|
39361
40069
|
/**
|
|
39362
40070
|
* @optional
|
|
39363
40071
|
*
|
|
39364
40072
|
* @description
|
|
39365
40073
|
*
|
|
39366
|
-
* Define
|
|
40074
|
+
* Define o tamanho dos componentes de formulário:
|
|
40075
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
40076
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
39367
40077
|
*
|
|
39368
|
-
*
|
|
39369
|
-
*
|
|
39370
|
-
* - `rectangle`: Forma retangular (proporção 3:1 por padrão)
|
|
39371
|
-
* - `square`: Forma quadrada (largura e altura iguais)
|
|
39372
|
-
* - `circle`: Forma circular (largura e altura iguais)
|
|
40078
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
40079
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
39373
40080
|
*
|
|
39374
|
-
* @default `
|
|
40081
|
+
* @default `medium`
|
|
39375
40082
|
*/
|
|
39376
|
-
|
|
40083
|
+
readonly componentsSizeInput: i0.InputSignal<string>;
|
|
39377
40084
|
/**
|
|
39378
40085
|
* @optional
|
|
39379
40086
|
*
|
|
39380
40087
|
* @description
|
|
39381
40088
|
*
|
|
39382
|
-
*
|
|
40089
|
+
* Desabilita o componente inteiro.
|
|
39383
40090
|
*
|
|
39384
|
-
*
|
|
39385
|
-
*
|
|
39386
|
-
* - `primary`: Cor neutra média
|
|
39387
|
-
* - `content`: Fundo branco
|
|
40091
|
+
* Quando `true`, todos os itens do tree-view serão exibidos no estado desabilitado,
|
|
40092
|
+
* independentemente do valor individual da propriedade `disabled` de cada item.
|
|
39388
40093
|
*
|
|
39389
|
-
*
|
|
40094
|
+
* > O botão de expansão/recolhimento (arrow) permanece interativo mesmo quando o componente está desabilitado.
|
|
40095
|
+
*
|
|
40096
|
+
* @default `false`
|
|
39390
40097
|
*/
|
|
39391
|
-
|
|
40098
|
+
readonly disabled: i0.InputSignalWithTransform<boolean, boolean>;
|
|
40099
|
+
/**
|
|
40100
|
+
* Lista de itens do tipo `PoTreeViewItem` que será renderizada pelo componente.
|
|
40101
|
+
*
|
|
40102
|
+
* > Consulte a documentação de `PoTreeViewItem` para detalhes sobre as propriedades disponíveis em cada item.
|
|
40103
|
+
*/
|
|
40104
|
+
readonly inputedItems: i0.InputSignal<PoTreeViewItem[]>;
|
|
39392
40105
|
/**
|
|
39393
40106
|
* @optional
|
|
39394
40107
|
*
|
|
39395
40108
|
* @description
|
|
39396
40109
|
*
|
|
39397
|
-
* Define o
|
|
40110
|
+
* Define o máximo de níveis para o tree-view.
|
|
39398
40111
|
*
|
|
39399
|
-
*
|
|
39400
|
-
* - `none`: Sem animação
|
|
39401
|
-
* - `pulse`: Animação de pulsação
|
|
39402
|
-
* - `shimmer`: Animação de brilho deslizante
|
|
40112
|
+
* > O valor padrão é 4
|
|
39403
40113
|
*
|
|
39404
|
-
* @default
|
|
40114
|
+
* @default 4
|
|
39405
40115
|
*/
|
|
39406
|
-
|
|
40116
|
+
readonly maxLevel: i0.InputSignalWithTransform<number, number>;
|
|
39407
40117
|
/**
|
|
39408
40118
|
* @optional
|
|
39409
40119
|
*
|
|
39410
40120
|
* @description
|
|
39411
40121
|
*
|
|
39412
|
-
*
|
|
39413
|
-
*
|
|
39414
|
-
* Valores válidos:
|
|
39415
|
-
* - `xs`: Extra pequeno (24px para square/circle, 72px x 24px para rectangle)
|
|
39416
|
-
* - `sm`: Pequeno (32px para square/circle, 96px x 32px para rectangle)
|
|
39417
|
-
* - `md`: Médio (48px para square/circle, 144px x 48px para rectangle)
|
|
39418
|
-
* - `lg`: Grande (64px para square/circle, 192px x 64px para rectangle)
|
|
39419
|
-
* - `xl`: Extra grande (96px para square/circle, 288px x 96px para rectangle)
|
|
39420
|
-
* - `2xl`: Extra extra grande (144px para square/circle, 432px x 144px para rectangle)
|
|
39421
|
-
*
|
|
39422
|
-
* Esta propriedade é ignorada quando `p-width` ou `p-height` são definidos explicitamente.
|
|
40122
|
+
* Remove a borda do container do componente.
|
|
39423
40123
|
*
|
|
39424
|
-
* @default
|
|
40124
|
+
* @default false
|
|
39425
40125
|
*/
|
|
39426
|
-
|
|
40126
|
+
readonly noBorder: i0.InputSignalWithTransform<boolean, boolean>;
|
|
39427
40127
|
/**
|
|
39428
40128
|
* @optional
|
|
39429
40129
|
*
|
|
39430
40130
|
* @description
|
|
39431
40131
|
*
|
|
39432
|
-
*
|
|
39433
|
-
* Aceita valores CSS válidos (px, %, em, rem).
|
|
40132
|
+
* Habilita uma caixa de seleção para selecionar e/ou desmarcar um item da lista.
|
|
39434
40133
|
*
|
|
39435
|
-
* Quando
|
|
40134
|
+
* > Quando habilitado, a propriedade `showIcon` dos itens não será aplicada.
|
|
39436
40135
|
*
|
|
39437
|
-
* @default
|
|
40136
|
+
* @default false
|
|
39438
40137
|
*/
|
|
39439
|
-
|
|
40138
|
+
readonly selectable: i0.InputSignalWithTransform<boolean, boolean>;
|
|
39440
40139
|
/**
|
|
39441
40140
|
* @optional
|
|
39442
40141
|
*
|
|
39443
40142
|
* @description
|
|
39444
40143
|
*
|
|
39445
|
-
*
|
|
39446
|
-
* Aceita valores CSS válidos (px, %, em, rem).
|
|
40144
|
+
* Habilita a seleção para item único atráves de po-radio.
|
|
39447
40145
|
*
|
|
39448
|
-
*
|
|
40146
|
+
* @default false
|
|
39449
40147
|
*/
|
|
39450
|
-
|
|
40148
|
+
readonly singleSelect: i0.InputSignalWithTransform<boolean, boolean>;
|
|
39451
40149
|
/**
|
|
39452
40150
|
* @optional
|
|
39453
40151
|
*
|
|
39454
40152
|
* @description
|
|
39455
40153
|
*
|
|
39456
|
-
*
|
|
39457
|
-
* Aceita valores CSS válidos (px, %, em, rem).
|
|
40154
|
+
* Ação que será disparada ao colapsar um item.
|
|
39458
40155
|
*
|
|
39459
|
-
*
|
|
40156
|
+
* > Como parâmetro o componente envia o item colapsado.
|
|
39460
40157
|
*/
|
|
39461
|
-
|
|
40158
|
+
readonly collapsed: i0.OutputEmitterRef<PoTreeViewItem>;
|
|
39462
40159
|
/**
|
|
39463
40160
|
* @optional
|
|
39464
40161
|
*
|
|
39465
40162
|
* @description
|
|
39466
40163
|
*
|
|
39467
|
-
*
|
|
40164
|
+
* Ação que será disparada ao expandir um item.
|
|
39468
40165
|
*
|
|
39469
|
-
*
|
|
39470
|
-
|
|
40166
|
+
* > Como parâmetro o componente envia o item expandido.
|
|
40167
|
+
*/
|
|
40168
|
+
readonly expanded: i0.OutputEmitterRef<PoTreeViewItem>;
|
|
40169
|
+
/**
|
|
40170
|
+
* @optional
|
|
39471
40171
|
*
|
|
39472
|
-
*
|
|
39473
|
-
* - Use em **skeletons únicos** ou no **primeiro skeleton de um grupo** com descrição contextual
|
|
39474
|
-
* - Evite usar em múltiplos skeletons dentro da mesma área sem contexto, para não causar repetição excessiva
|
|
40172
|
+
* @description
|
|
39475
40173
|
*
|
|
39476
|
-
*
|
|
40174
|
+
* Ação que será disparada ao selecionar um item.
|
|
39477
40175
|
*
|
|
39478
|
-
*
|
|
39479
|
-
|
|
39480
|
-
|
|
40176
|
+
* > Como parâmetro o componente envia o item selecionado.
|
|
40177
|
+
*/
|
|
40178
|
+
readonly selected: i0.OutputEmitterRef<PoTreeViewItem>;
|
|
40179
|
+
/**
|
|
40180
|
+
* @optional
|
|
39481
40181
|
*
|
|
39482
|
-
*
|
|
39483
|
-
* <po-skeleton p-aria-label="Carregando lista de produtos"></po-skeleton>
|
|
39484
|
-
* <po-skeleton p-type="primary"></po-skeleton>
|
|
39485
|
-
* <po-skeleton p-variant="circle"></po-skeleton>
|
|
40182
|
+
* @description
|
|
39486
40183
|
*
|
|
39487
|
-
*
|
|
39488
|
-
* <po-skeleton p-aria-label="Carregando"></po-skeleton> <!-- "Carregando" -->
|
|
39489
|
-
* <po-skeleton p-aria-label="Carregando"></po-skeleton> <!-- "Carregando" -->
|
|
39490
|
-
* <po-skeleton p-aria-label="Carregando"></po-skeleton> <!-- "Carregando" (repetitivo!) -->
|
|
39491
|
-
* ```
|
|
40184
|
+
* Ação que será disparada ao desfazer a seleção de um item.
|
|
39492
40185
|
*
|
|
39493
|
-
* >
|
|
39494
|
-
|
|
40186
|
+
* > Como parâmetro o componente envia o item que foi desmarcado.
|
|
40187
|
+
*/
|
|
40188
|
+
readonly unselected: i0.OutputEmitterRef<PoTreeViewItem>;
|
|
40189
|
+
/**
|
|
40190
|
+
* @optional
|
|
39495
40191
|
*
|
|
39496
|
-
*
|
|
39497
|
-
*
|
|
40192
|
+
* @description
|
|
40193
|
+
*
|
|
40194
|
+
* Ação que será disparada ao executar um item final (sem `subItems`).
|
|
40195
|
+
*
|
|
40196
|
+
* > Como parâmetro o componente envia o item executado.
|
|
39498
40197
|
*/
|
|
39499
|
-
|
|
39500
|
-
|
|
39501
|
-
|
|
40198
|
+
readonly activated: i0.OutputEmitterRef<PoTreeViewItem>;
|
|
40199
|
+
private _componentsSize;
|
|
40200
|
+
private _items;
|
|
40201
|
+
selectedValue: string | number;
|
|
40202
|
+
protected get componentsSize(): string;
|
|
40203
|
+
protected set items(value: Array<PoTreeViewItem>);
|
|
40204
|
+
protected get items(): Array<PoTreeViewItem>;
|
|
40205
|
+
constructor();
|
|
40206
|
+
protected onThemeChange(): void;
|
|
40207
|
+
protected emitExpanded(treeViewItem: PoTreeViewItem): void;
|
|
40208
|
+
protected emitSelected(treeViewItem: PoTreeViewItem): void;
|
|
40209
|
+
protected emitActivated(treeViewItem: PoTreeViewItem): void;
|
|
40210
|
+
private selectSingleFinalItem;
|
|
40211
|
+
private setSingleFinalSelection;
|
|
40212
|
+
private setSingleSelectionByValue;
|
|
40213
|
+
private getExpandedState;
|
|
40214
|
+
private applyExpandedState;
|
|
40215
|
+
private getSelectedState;
|
|
40216
|
+
private applySelectedState;
|
|
40217
|
+
private getLastSelectedFinalItemValue;
|
|
40218
|
+
private addChildItemInParent;
|
|
40219
|
+
private addItem;
|
|
40220
|
+
private selectAllItems;
|
|
40221
|
+
private selectItemBySubItems;
|
|
40222
|
+
private getSelectableSubItems;
|
|
40223
|
+
private everyItemSelected;
|
|
40224
|
+
private expandParentItem;
|
|
40225
|
+
private getItemsByMaxLevel;
|
|
40226
|
+
private getItemsWithParentSelected;
|
|
40227
|
+
private updateItemsOnSelect;
|
|
40228
|
+
private applySizeBasedOnA11y;
|
|
40229
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewBaseComponent, never>;
|
|
40230
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoTreeViewBaseComponent, never, never, { "componentsSizeInput": { "alias": "p-components-size"; "required": false; "isSignal": true; }; "disabled": { "alias": "p-disabled"; "required": false; "isSignal": true; }; "inputedItems": { "alias": "p-items"; "required": false; "isSignal": true; }; "maxLevel": { "alias": "p-max-level"; "required": false; "isSignal": true; }; "noBorder": { "alias": "p-no-border"; "required": false; "isSignal": true; }; "selectable": { "alias": "p-selectable"; "required": false; "isSignal": true; }; "singleSelect": { "alias": "p-single-select"; "required": false; "isSignal": true; }; }, { "collapsed": "p-collapsed"; "expanded": "p-expanded"; "selected": "p-selected"; "unselected": "p-unselected"; "activated": "p-activated"; }, never, never, true, never>;
|
|
39502
40231
|
}
|
|
39503
40232
|
|
|
39504
40233
|
/**
|
|
39505
|
-
* @docsExtends
|
|
40234
|
+
* @docsExtends PoTreeViewBaseComponent
|
|
39506
40235
|
*
|
|
39507
40236
|
* @example
|
|
39508
40237
|
*
|
|
39509
|
-
* <example name="po-
|
|
39510
|
-
* <file name="sample-po-
|
|
39511
|
-
* <file name="sample-po-
|
|
39512
|
-
* </example>
|
|
39513
|
-
*
|
|
39514
|
-
* <example name="po-skeleton-labs" title="PO Skeleton Labs">
|
|
39515
|
-
* <file name="sample-po-skeleton-labs/sample-po-skeleton-labs.component.html"> </file>
|
|
39516
|
-
* <file name="sample-po-skeleton-labs/sample-po-skeleton-labs.component.ts"> </file>
|
|
39517
|
-
* </example>
|
|
39518
|
-
*
|
|
39519
|
-
* <example name="po-skeleton-credit-card" title="PO Skeleton - Credit Card">
|
|
39520
|
-
* <file name="sample-po-skeleton-credit-card/sample-po-skeleton-credit-card.component.html"> </file>
|
|
39521
|
-
* <file name="sample-po-skeleton-credit-card/sample-po-skeleton-credit-card.component.ts"> </file>
|
|
39522
|
-
* <file name="sample-po-skeleton-credit-card/sample-po-skeleton-credit-card.component.css"> </file>
|
|
39523
|
-
* </example>
|
|
39524
|
-
*
|
|
39525
|
-
* <example name="po-skeleton-widget-card" title="PO Skeleton - Widget Card">
|
|
39526
|
-
* <file name="sample-po-skeleton-widget-card/sample-po-skeleton-widget-card.component.html"> </file>
|
|
39527
|
-
* <file name="sample-po-skeleton-widget-card/sample-po-skeleton-widget-card.component.ts"> </file>
|
|
39528
|
-
* <file name="sample-po-skeleton-widget-card/sample-po-skeleton-widget-card.component.css"> </file>
|
|
40238
|
+
* <example name="po-tree-view-basic" title="PO Tree View Basic">
|
|
40239
|
+
* <file name="sample-po-tree-view-basic/sample-po-tree-view-basic.component.html"> </file>
|
|
40240
|
+
* <file name="sample-po-tree-view-basic/sample-po-tree-view-basic.component.ts"> </file>
|
|
39529
40241
|
* </example>
|
|
39530
40242
|
*
|
|
39531
|
-
* <example name="po-
|
|
39532
|
-
* <file name="sample-po-
|
|
39533
|
-
* <file name="sample-po-
|
|
39534
|
-
* <file name="sample-po-skeleton-user-profile/sample-po-skeleton-user-profile.component.css"> </file>
|
|
40243
|
+
* <example name="po-tree-view-labs" title="PO Tree View Labs">
|
|
40244
|
+
* <file name="sample-po-tree-view-labs/sample-po-tree-view-labs.component.html"> </file>
|
|
40245
|
+
* <file name="sample-po-tree-view-labs/sample-po-tree-view-labs.component.ts"> </file>
|
|
39535
40246
|
* </example>
|
|
39536
40247
|
*
|
|
39537
|
-
* <example name="po-
|
|
39538
|
-
* <file name="sample-po-
|
|
39539
|
-
* <file name="sample-po-
|
|
39540
|
-
* <file name="sample-po-skeleton-social-post/sample-po-skeleton-social-post.component.css"> </file>
|
|
40248
|
+
* <example name="po-tree-view-folder-structure" title="PO Tree View - Folder Structure">
|
|
40249
|
+
* <file name="sample-po-tree-view-folder-structure/sample-po-tree-view-folder-structure.component.html"> </file>
|
|
40250
|
+
* <file name="sample-po-tree-view-folder-structure/sample-po-tree-view-folder-structure.component.ts"> </file>
|
|
39541
40251
|
* </example>
|
|
39542
40252
|
*
|
|
39543
|
-
* <example name="po-
|
|
39544
|
-
* <file name="sample-po-
|
|
39545
|
-
* <file name="sample-po-
|
|
39546
|
-
* <file name="sample-po-skeleton-article/sample-po-skeleton-article.component.css"> </file>
|
|
40253
|
+
* <example name="po-tree-view-supermarket" title="PO Tree View - Supermarket">
|
|
40254
|
+
* <file name="sample-po-tree-view-supermarket/sample-po-tree-view-supermarket.component.html"> </file>
|
|
40255
|
+
* <file name="sample-po-tree-view-supermarket/sample-po-tree-view-supermarket.component.ts"> </file>
|
|
39547
40256
|
* </example>
|
|
39548
40257
|
*/
|
|
39549
|
-
declare class
|
|
39550
|
-
private readonly
|
|
39551
|
-
private readonly
|
|
39552
|
-
private readonly
|
|
39553
|
-
|
|
39554
|
-
|
|
39555
|
-
|
|
39556
|
-
|
|
39557
|
-
|
|
39558
|
-
|
|
39559
|
-
|
|
39560
|
-
|
|
39561
|
-
|
|
39562
|
-
|
|
40258
|
+
declare class PoTreeViewComponent extends PoTreeViewBaseComponent implements OnInit, AfterViewInit {
|
|
40259
|
+
private readonly elementRef;
|
|
40260
|
+
private readonly destroyRef;
|
|
40261
|
+
private readonly treeViewService;
|
|
40262
|
+
private readonly keyboardService;
|
|
40263
|
+
private readonly languageService;
|
|
40264
|
+
private readonly changeDetector;
|
|
40265
|
+
protected readonly literals: any;
|
|
40266
|
+
protected ariaLiveMessage: string;
|
|
40267
|
+
protected get hasItems(): boolean;
|
|
40268
|
+
constructor();
|
|
40269
|
+
ngOnInit(): void;
|
|
40270
|
+
ngAfterViewInit(): void;
|
|
40271
|
+
protected onTreeFocus(event: FocusEvent): void;
|
|
40272
|
+
protected onTreeKeydown(event: KeyboardEvent): void;
|
|
40273
|
+
protected trackByFunction(index: number): number;
|
|
40274
|
+
private announce;
|
|
40275
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewComponent, never>;
|
|
40276
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoTreeViewComponent, "po-tree-view", never, {}, {}, never, never, false, never>;
|
|
40277
|
+
}
|
|
40278
|
+
|
|
40279
|
+
declare class PoTreeViewItemComponent {
|
|
40280
|
+
private readonly treeViewService;
|
|
40281
|
+
readonly componentsSize: i0.InputSignal<string>;
|
|
40282
|
+
readonly item: i0.InputSignal<PoTreeViewItem>;
|
|
40283
|
+
readonly level: i0.InputSignal<number>;
|
|
40284
|
+
readonly selectable: i0.InputSignal<boolean>;
|
|
40285
|
+
readonly selectedValue: i0.InputSignal<string | number>;
|
|
40286
|
+
readonly singleSelect: i0.InputSignal<boolean>;
|
|
40287
|
+
protected animateEnter(event: AnimationCallbackEvent): void;
|
|
40288
|
+
protected animateLeave(event: AnimationCallbackEvent): void;
|
|
40289
|
+
protected get hasSubItems(): boolean;
|
|
40290
|
+
protected onClick(): void;
|
|
40291
|
+
protected onSelect(selectedItem: PoTreeViewItem): void;
|
|
40292
|
+
protected onActivate(activatedItem: PoTreeViewItem): void;
|
|
40293
|
+
protected trackByFunction(index: number): number;
|
|
40294
|
+
private animateToggle;
|
|
40295
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewItemComponent, never>;
|
|
40296
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoTreeViewItemComponent, "[po-tree-view-item]", never, { "componentsSize": { "alias": "p-components-size"; "required": false; "isSignal": true; }; "item": { "alias": "p-item"; "required": false; "isSignal": true; }; "level": { "alias": "p-level"; "required": false; "isSignal": true; }; "selectable": { "alias": "p-selectable"; "required": false; "isSignal": true; }; "selectedValue": { "alias": "p-selected-value"; "required": false; "isSignal": true; }; "singleSelect": { "alias": "p-single-select"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
40297
|
+
}
|
|
40298
|
+
|
|
40299
|
+
declare class PoTreeViewItemContentComponent {
|
|
40300
|
+
private readonly keyboardService;
|
|
40301
|
+
private readonly languageService;
|
|
40302
|
+
protected readonly literals: any;
|
|
40303
|
+
protected inputCheckbox: any;
|
|
40304
|
+
protected lineElement: ElementRef<HTMLElement>;
|
|
40305
|
+
readonly componentsSize: i0.InputSignal<string>;
|
|
40306
|
+
readonly item: i0.InputSignal<PoTreeViewItem>;
|
|
40307
|
+
readonly level: i0.InputSignal<number>;
|
|
40308
|
+
readonly selectable: i0.InputSignal<boolean>;
|
|
40309
|
+
readonly selectedValue: i0.InputSignal<string | number>;
|
|
40310
|
+
readonly singleSelect: i0.InputSignal<boolean>;
|
|
40311
|
+
readonly expanded: i0.OutputEmitterRef<void>;
|
|
40312
|
+
readonly selected: i0.OutputEmitterRef<PoTreeViewItem>;
|
|
40313
|
+
readonly activated: i0.OutputEmitterRef<PoTreeViewItem>;
|
|
40314
|
+
protected idRadio: string;
|
|
40315
|
+
protected isLabelTruncated: boolean;
|
|
40316
|
+
protected get hasSubItems(): boolean;
|
|
40317
|
+
protected get expandIcon(): string;
|
|
40318
|
+
protected get isDisabled(): boolean;
|
|
40319
|
+
protected get isExpanded(): boolean;
|
|
40320
|
+
protected get isSelected(): boolean;
|
|
40321
|
+
protected get itemIcon(): string | undefined;
|
|
40322
|
+
protected onLineFocus(event: FocusEvent): void;
|
|
40323
|
+
protected onLineMouseEnter(event: MouseEvent): void;
|
|
40324
|
+
private updateLabelTruncation;
|
|
40325
|
+
protected onLineClick(event: MouseEvent): void;
|
|
40326
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
40327
|
+
private handleArrowRight;
|
|
40328
|
+
private handleArrowLeft;
|
|
40329
|
+
private handleSelect;
|
|
40330
|
+
private applyPressedState;
|
|
40331
|
+
private handleCharacterNavigation;
|
|
40332
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewItemContentComponent, never>;
|
|
40333
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoTreeViewItemContentComponent, "po-tree-view-item-content", never, { "componentsSize": { "alias": "p-components-size"; "required": false; "isSignal": true; }; "item": { "alias": "p-item"; "required": false; "isSignal": true; }; "level": { "alias": "p-level"; "required": false; "isSignal": true; }; "selectable": { "alias": "p-selectable"; "required": false; "isSignal": true; }; "selectedValue": { "alias": "p-selected-value"; "required": false; "isSignal": true; }; "singleSelect": { "alias": "p-single-select"; "required": false; "isSignal": true; }; }, { "expanded": "p-expanded"; "selected": "p-selected"; "activated": "p-activated"; }, never, never, false, never>;
|
|
39563
40334
|
}
|
|
39564
40335
|
|
|
39565
40336
|
/**
|
|
39566
40337
|
* @description
|
|
39567
40338
|
*
|
|
39568
|
-
* Módulo do componente po-
|
|
40339
|
+
* Módulo do componente `po-tree-view`.
|
|
39569
40340
|
*/
|
|
39570
|
-
declare class
|
|
39571
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
39572
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
39573
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
40341
|
+
declare class PoTreeViewModule {
|
|
40342
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewModule, never>;
|
|
40343
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoTreeViewModule, [typeof PoTreeViewComponent, typeof PoTreeViewItemComponent, typeof PoTreeViewItemContentComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof PoContainerModule, typeof PoFieldModule, typeof PoIconModule, typeof PoButtonModule, typeof PoDividerModule, typeof PoTooltipModule], [typeof PoTreeViewComponent]>;
|
|
40344
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PoTreeViewModule>;
|
|
39574
40345
|
}
|
|
39575
40346
|
|
|
39576
40347
|
/**
|
|
@@ -41088,5 +41859,5 @@ declare class PoHttpRequestInterceptorService implements HttpInterceptor {
|
|
|
41088
41859
|
static ɵprov: i0.ɵɵInjectableDeclaration<PoHttpRequestInterceptorService>;
|
|
41089
41860
|
}
|
|
41090
41861
|
|
|
41091
|
-
export { AnimaliaIconDictionary, ForceBooleanComponentEnum, ForceOptionComponentEnum, I18N_CONFIG, InputBoolean, InputRequired, LOADING_ICON_COMPONENT, PO_CALENDAR_DEFAULT_RANGE_PRESETS, PO_CONTROL_POSITIONS, PoAccordionComponent, PoAccordionItemComponent, PoAccordionModule, PoActiveOverlayModule, PoActiveOverlayService, PoAvatarComponent, PoAvatarModule, PoBadgeComponent, PoBadgeModule, PoBreadcrumbComponent, PoBreadcrumbModule, PoButtonComponent, PoButtonGroupComponent, PoButtonGroupModule, PoButtonGroupToggle, PoButtonKind, PoButtonModule, PoButtonSize, PoButtonType, PoCalendarComponent, PoCalendarMode, PoCalendarModule, PoChartComponent, PoChartLabelFormat, PoChartModule, PoChartType, PoCheckboxComponent, PoCheckboxGroupComponent, PoCheckboxGroupModule, PoCheckboxModule, PoCheckboxSize, PoCleanComponent, PoCleanModule, PoColorPaletteModule, PoColorPaletteService, PoComboComponent, PoComboFilterMode, PoComboModule, PoComboOptionTemplateDirective, PoComponentInjectorModule, PoComponentInjectorService, PoComponentsModule, PoContainerComponent, PoContainerModule, PoContextMenuComponent, PoContextMenuModule, PoContextTabButtonComponent, PoContextTabsComponent, PoContextTabsModule, PoControlPositionModule, PoDateService, PoDateTimeModule, PoDatepickerComponent, PoDatepickerIsoFormat, PoDatepickerModule, PoDatepickerRangeComponent, PoDatetimepickerComponent, PoDatetimepickerModule, PoDecimalComponent, PoDecimalFormatModule, PoDecimalFormatPipe, PoDialogComponent, PoDialogModule, PoDialogService, PoDialogType, PoDirectivesModule, PoDisclaimerComponent, PoDisclaimerGroupComponent, PoDisclaimerGroupModule, PoDisclaimerModule, PoDividerComponent, PoDividerModule, PoDividerSize, PoDragBaseDirective, PoDragDirective, PoDragDropModule, PoDropListBaseDirective, PoDropListDirective, PoDropdownComponent, PoDropdownModule, PoDynamicContainerComponent, PoDynamicFieldType, PoDynamicFormComponent, PoDynamicModule, PoDynamicSharedBase, PoDynamicViewComponent, PoEmailComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoFieldContainerModule, PoFieldModule, PoFilterChipBaseComponent, PoFilterChipComponent, PoFilterChipModule, PoGaugeComponent, PoGaugeModule, PoGridComponent, PoGridModule, PoGuardsModule, PoHeaderComponent, PoHeaderModule, PoHelperComponent, PoHelperModule, PoHttpInterceptorModule, PoHttpInterceptorService, PoHttpRequestInterceptorService, PoHttpRequestModule, PoI18nModule, PoI18nPipe, PoI18nService, PoIconComponent, PoIconModule, PoImageComponent, PoImageModule, PoInfoComponent, PoInfoModule, PoInfoOrientation, PoInputComponent, PoInterceptorsModule, PoItemListComponent, PoLabelComponent, PoLabelModule, PoLanguageModule, PoLanguageService, PoLinkComponent, PoLinkModule, PoListBoxComponent, PoListBoxModule, PoListViewComponent, PoListViewContentTemplateDirective, PoListViewDetailTemplateDirective, PoListViewModule, PoLoadingComponent, PoLoadingIconComponent, PoLoadingModule, PoLoadingOverlayComponent, PoLoginComponent, PoLogoComponent, PoLogoModule, PoLookupComponent, PoLookupModalComponent, PoMask, PoMediaQueryModule, PoMediaQueryService, PoMenuComponent, PoMenuGlobalService, PoMenuHeaderTemplateDirective, PoMenuModule, PoMenuPanelComponent, PoMenuPanelModule, PoModalComponent, PoModalFooterComponent, PoModalModule, PoModule, PoMultiselectComponent, PoMultiselectFilterMode, PoMultiselectOptionTemplateDirective, PoNavbarComponent, PoNavbarModule, PoNotificationModule, PoNotificationService, PoNumberComponent, PoOverlayComponent, PoOverlayModule, PoPageActionsLayout, PoPageDefaultComponent, PoPageDetailComponent, PoPageEditComponent, PoPageHeaderType, PoPageListComponent, PoPageModule, PoPageSlideComponent, PoPageSlideFooterComponent, PoPageSlideModule, PoPasswordComponent, PoPipesModule, PoPopoverComponent, PoPopoverModule, PoPopupComponent, PoPopupModule, PoProgressComponent, PoProgressModule, PoProgressShape, PoProgressSize, PoProgressStatus, PoRadioComponent, PoRadioGroupComponent, PoRadioGroupModule, PoRadioModule, PoRichTextComponent, PoRichTextToolbarActions, PoSearchAiComponent, PoSearchAiModule, PoSearchAiResponseType, PoSearchAiService, PoSearchComponent, PoSearchFilterMode, PoSearchListComponent, PoSearchModule, PoSelectComponent, PoServicesModule, PoSkeletonAnimation, PoSkeletonComponent, PoSkeletonModule, PoSkeletonSize, PoSkeletonType, PoSkeletonVariant, PoSlideComponent, PoSlideContentTemplateDirective, PoSlideModule, PoStepComponent, PoStepperComponent, PoStepperModule, PoStepperOrientation, PoStepperStatus, PoSwitchComponent, PoSwitchLabelPosition, PoSwitchModule, PoTabButtonComponent, PoTabComponent, PoTabDropdownComponent, PoTableCellTemplateDirective, PoTableColumnFrozenDirective, PoTableColumnSortType, PoTableColumnSpacing, PoTableColumnTemplateDirective, PoTableComponent, PoTableModule, PoTableRowTemplateArrowDirection, PoTableRowTemplateDirective, PoTabsComponent, PoTabsModule, PoTabsService, PoTagComponent, PoTagModule, PoTagOrientation, PoTagType, PoTextareaComponent, PoThemeA11yEnum, PoThemeModule, PoThemeService, PoThemeTypeEnum, PoTimeModule, PoTimePipe, PoTimepickerComponent, PoTimepickerModelFormat, PoTimepickerModule, PoTimerBaseComponent, PoTimerComponent, PoTimerFormat, PoTimerModule, PoToasterComponent, PoToasterMode, PoToasterModule, PoToasterOrientation, PoToasterType, PoToolbarComponent, PoToolbarModule, PoTooltipDirective, PoTooltipModule, PoTreeViewComponent, PoTreeViewModule, PoUploadComponent, PoUploadFile, PoUploadStatus, PoUrlComponent, PoUserGuideAlignment, PoUserGuideBaseService, PoUserGuideModule, PoUserGuidePosition, PoUserGuideService, PoWidgetComponent, PoWidgetModule, applyDecimalFormat, getFormatLimits, initializeLanguageDefault, insertGroupSeparatorsFromRight, mergePoI18nConfigs, parseDecimalFormat, poBreadcrumbLiterals, poChartLiteralsDefault, poDialogAlertLiteralsDefault, poDialogConfirmLiteralsDefault, poLanguageDefault, poLocaleDateSeparatorList, poLocaleDecimalSeparatorList, poLocaleDefault, poLocaleThousandSeparatorList, poLocales, poPageSlideLiteralsDefault, poSearchAiCompileFilter, poSearchAiFilterItems, poTabsLiterals, poThemeDefault, poThemeDefaultAA, poThemeDefaultAAA, poThemeDefaultActions, poThemeDefaultActionsDark, poThemeDefaultBrands, poThemeDefaultBrandsDark, poThemeDefaultCategoricals, poThemeDefaultCategoricalsAA, poThemeDefaultCategoricalsDark, poThemeDefaultCategoricalsDarkAA, poThemeDefaultCategoricalsOverlayDark, poThemeDefaultCategoricalsOverlayDarkAA, poThemeDefaultDark, poThemeDefaultDarkValues, poThemeDefaultDarkValuesAA, poThemeDefaultFeedback, poThemeDefaultFeedbackDark, poThemeDefaultLight, poThemeDefaultLightValues, poThemeDefaultLightValuesAA, poThemeDefaultNeutrals, poThemeDefaultNeutralsDark, poThemeDefaultOverlayCategoricals, poThemeDefaultOverlayCategoricalsAA, poToasterLiterals, poUserGuideLiteralsDefault, returnPoI18nService, validateAgainstFormat };
|
|
41092
|
-
export type { ErrorAsyncProperties, PoAccordionLiterals, PoBreadcrumb, PoBreadcrumbItem, PoButtonGroupItem, PoCalendarRangePreset, PoChartAxisOptions, PoChartDataLabel, PoChartHeaderOptions, PoChartLiterals, PoChartOptions, PoChartSerie, PoCheckboxGroupOption, PoComboFilter, PoComboLiterals, PoComboOption, PoComboOptionGroup, PoContextMenuItem, PoDateSeparator, PoDatepickerRange, PoDatepickerRangeLiterals, PoDecimalFormatParsed, PoDecimalFormatResult, PoDialogAlertLiterals, PoDialogAlertOptions, PoDialogConfirmLiterals, PoDialogConfirmOptions, PoDialogOptions, PoDisclaimer, PoDisclaimerGroup, PoDisclaimerGroupRemoveAction, PoDragEnterEvent, PoDraggableItem, PoDropEvent, PoDropdownAction, PoDynamicFormField, PoDynamicFormFieldChanged, PoDynamicFormFieldValidation, PoDynamicFormLoad, PoDynamicFormValidation, PoDynamicViewField, PoDynamicViewRequest, PoFilterChipSelectedChange, PoGaugeOptions, PoGaugeRanges, PoGridRowActions, PoHeaderActionPopoverAction, PoHeaderActionTool, PoHeaderActionToolItem, PoHeaderActions, PoHeaderBrand, PoHeaderLiterals, PoHeaderUser, PoHelperOptions, PoI18nConfig, PoI18nConfigContext, PoI18nConfigDefault, PoI18nLiterals, PoLanguage, PoListViewAction, PoListViewLiterals, PoLookupColumn, PoLookupFilter, PoLookupFilteredItemsParams, PoLookupLiterals, PoLookupResponseApi, PoMediaQueryTokens, PoMenuFilter, PoMenuItem, PoMenuItemBadge, PoMenuItemFiltered, PoMenuPanelItem, PoModalAction, PoMultiselectFilter, PoMultiselectLiterals, PoMultiselectOption, PoNavbarIconAction, PoNavbarItem, PoNotification, PoNumberSeparator, PoPage, PoPageAction, PoPageDefault, PoPageDefaultLiterals, PoPageDetailLiterals, PoPageEditLiterals, PoPageFilter, PoPageListLiterals, PoPageSlideSize, PoPopupAction, PoProgressAction, PoRadioGroupOption, PoResponseApi, PoRichTextToolbarButtonGroupItem, PoSearchAiColumn, PoSearchAiColumnInput, PoSearchAiError, PoSearchAiLiterals, PoSearchAiRequest, PoSearchAiResponse, PoSearchAiResult, PoSearchFilterSelect, PoSearchLiterals, PoSearchOption, PoSelectOption, PoSelectOptionGroup, PoSlideItem, PoStepperItem, PoTab, PoTableAction, PoTableBoolean, PoTableColumn, PoTableColumnIcon, PoTableColumnLabel, PoTableColumnSort, PoTableDetail, PoTableDetailColumn, PoTableLiterals, PoTableSearchAiField, PoTableSubtitleColumn, PoTagLiterals, PoTheme, PoThemeActive, PoThemeColor, PoThemeColorAction, PoThemeColorCategorical, PoThemeColorFeedback, PoThemeColorNeutral, PoThemeToken, PoThemeTokens, PoThemeType, PoToaster, PoToolbarAction, PoToolbarProfile, PoTreeViewItem, PoUploadFileRestrictions, PoUploadLiterals, PoUserGuideEndEvent, PoUserGuideLiterals, PoUserGuideOptions, PoUserGuideStartEvent, PoUserGuideStep, PoUserGuideStepChangeEvent, PoWidgetAvatar, PoWidgetLiterals, poThemeColorBrand };
|
|
41862
|
+
export { AnimaliaIconDictionary, ForceBooleanComponentEnum, ForceOptionComponentEnum, I18N_CONFIG, InputBoolean, InputRequired, LOADING_ICON_COMPONENT, PO_CALENDAR_DEFAULT_RANGE_PRESETS, PO_CONTROL_POSITIONS, PoAccordionComponent, PoAccordionItemComponent, PoAccordionModule, PoActiveOverlayModule, PoActiveOverlayService, PoAvatarComponent, PoAvatarModule, PoBadgeComponent, PoBadgeModule, PoBreadcrumbComponent, PoBreadcrumbModule, PoButtonComponent, PoButtonGroupComponent, PoButtonGroupModule, PoButtonGroupToggle, PoButtonKind, PoButtonModule, PoButtonSize, PoButtonType, PoCalendarComponent, PoCalendarMode, PoCalendarModule, PoChartComponent, PoChartLabelFormat, PoChartModule, PoChartType, PoCheckboxComponent, PoCheckboxGroupComponent, PoCheckboxGroupModule, PoCheckboxModule, PoCheckboxSize, PoCleanComponent, PoCleanModule, PoColorPaletteModule, PoColorPaletteService, PoComboComponent, PoComboFilterMode, PoComboModule, PoComboOptionTemplateDirective, PoComponentInjectorModule, PoComponentInjectorService, PoComponentsModule, PoContainerComponent, PoContainerModule, PoContextMenuComponent, PoContextMenuModule, PoContextTabButtonComponent, PoContextTabsComponent, PoContextTabsModule, PoControlPositionModule, PoDateService, PoDateTimeModule, PoDatepickerComponent, PoDatepickerIsoFormat, PoDatepickerModule, PoDatepickerRangeComponent, PoDatetimepickerComponent, PoDatetimepickerModule, PoDecimalComponent, PoDecimalFormatModule, PoDecimalFormatPipe, PoDialogComponent, PoDialogModule, PoDialogService, PoDialogType, PoDirectivesModule, PoDisclaimerComponent, PoDisclaimerGroupComponent, PoDisclaimerGroupModule, PoDisclaimerModule, PoDividerComponent, PoDividerModule, PoDividerSize, PoDragBaseDirective, PoDragDirective, PoDragDropModule, PoDropListBaseDirective, PoDropListDirective, PoDropdownComponent, PoDropdownModule, PoDynamicContainerComponent, PoDynamicFieldType, PoDynamicFormComponent, PoDynamicModule, PoDynamicSharedBase, PoDynamicViewComponent, PoEmailComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoFieldContainerModule, PoFieldModule, PoFilterChipBaseComponent, PoFilterChipComponent, PoFilterChipModule, PoGaugeComponent, PoGaugeModule, PoGridComponent, PoGridModule, PoGuardsModule, PoHeaderComponent, PoHeaderModule, PoHelperComponent, PoHelperModule, PoHttpInterceptorModule, PoHttpInterceptorService, PoHttpRequestInterceptorService, PoHttpRequestModule, PoI18nModule, PoI18nPipe, PoI18nService, PoIconComponent, PoIconModule, PoImageComponent, PoImageModule, PoInfoComponent, PoInfoModule, PoInfoOrientation, PoInputComponent, PoInterceptorsModule, PoItemListComponent, PoLabelComponent, PoLabelModule, PoLanguageModule, PoLanguageService, PoLinkComponent, PoLinkModule, PoListBoxComponent, PoListBoxModule, PoListViewComponent, PoListViewContentTemplateDirective, PoListViewDetailDisplay, PoListViewDetailTemplateDirective, PoListViewModule, PoLoadingComponent, PoLoadingIconComponent, PoLoadingModule, PoLoadingOverlayComponent, PoLoginComponent, PoLogoComponent, PoLogoModule, PoLookupComponent, PoLookupModalComponent, PoMask, PoMediaQueryModule, PoMediaQueryService, PoMenuComponent, PoMenuGlobalService, PoMenuHeaderTemplateDirective, PoMenuModule, PoMenuPanelComponent, PoMenuPanelModule, PoModalComponent, PoModalFooterComponent, PoModalModule, PoModule, PoMultiselectComponent, PoMultiselectFilterMode, PoMultiselectOptionTemplateDirective, PoNavbarComponent, PoNavbarModule, PoNotificationModule, PoNotificationService, PoNumberComponent, PoOverlayComponent, PoOverlayModule, PoPageActionsLayout, PoPageDefaultComponent, PoPageDetailComponent, PoPageEditComponent, PoPageHeaderType, PoPageListComponent, PoPageModule, PoPageSlideComponent, PoPageSlideFooterComponent, PoPageSlideModule, PoPasswordComponent, PoPipesModule, PoPopoverComponent, PoPopoverModule, PoPopupComponent, PoPopupModule, PoProgressComponent, PoProgressModule, PoProgressShape, PoProgressSize, PoProgressStatus, PoRadioComponent, PoRadioGroupComponent, PoRadioGroupModule, PoRadioModule, PoRichTextComponent, PoRichTextToolbarActions, PoSearchAiComponent, PoSearchAiModule, PoSearchAiResponseType, PoSearchAiService, PoSearchComponent, PoSearchFilterMode, PoSearchListComponent, PoSearchModule, PoSelectComponent, PoServicesModule, PoSkeletonAnimation, PoSkeletonComponent, PoSkeletonModule, PoSkeletonSize, PoSkeletonType, PoSkeletonVariant, PoSlideComponent, PoSlideContentTemplateDirective, PoSlideModule, PoStepComponent, PoStepperComponent, PoStepperModule, PoStepperOrientation, PoStepperStatus, PoSwitchComponent, PoSwitchLabelPosition, PoSwitchModule, PoTabButtonComponent, PoTabComponent, PoTabDropdownComponent, PoTableCellTemplateDirective, PoTableColumnFrozenDirective, PoTableColumnSortType, PoTableColumnSpacing, PoTableColumnTemplateDirective, PoTableComponent, PoTableModule, PoTableRowTemplateArrowDirection, PoTableRowTemplateDirective, PoTabsComponent, PoTabsModule, PoTabsService, PoTagComponent, PoTagModule, PoTagOrientation, PoTagType, PoTextareaComponent, PoThemeA11yEnum, PoThemeModule, PoThemeService, PoThemeTypeEnum, PoTimeModule, PoTimePipe, PoTimepickerComponent, PoTimepickerModelFormat, PoTimepickerModule, PoTimerBaseComponent, PoTimerComponent, PoTimerFormat, PoTimerModule, PoToasterComponent, PoToasterMode, PoToasterModule, PoToasterOrientation, PoToasterType, PoToolbarComponent, PoToolbarModule, PoTooltipDirective, PoTooltipModule, PoTreeViewComponent, PoTreeViewModule, PoUploadComponent, PoUploadFile, PoUploadStatus, PoUrlComponent, PoUserGuideAlignment, PoUserGuideBaseService, PoUserGuideModule, PoUserGuidePosition, PoUserGuideService, PoWidgetComponent, PoWidgetModule, applyDecimalFormat, getFormatLimits, initializeLanguageDefault, insertGroupSeparatorsFromRight, mergePoI18nConfigs, parseDecimalFormat, poBreadcrumbLiterals, poChartLiteralsDefault, poDialogAlertLiteralsDefault, poDialogConfirmLiteralsDefault, poLanguageDefault, poLocaleDateSeparatorList, poLocaleDecimalSeparatorList, poLocaleDefault, poLocaleThousandSeparatorList, poLocales, poPageSlideLiteralsDefault, poSearchAiCompileFilter, poSearchAiFilterItems, poTabsLiterals, poThemeDefault, poThemeDefaultAA, poThemeDefaultAAA, poThemeDefaultActions, poThemeDefaultActionsDark, poThemeDefaultBrands, poThemeDefaultBrandsDark, poThemeDefaultCategoricals, poThemeDefaultCategoricalsAA, poThemeDefaultCategoricalsDark, poThemeDefaultCategoricalsDarkAA, poThemeDefaultCategoricalsOverlayDark, poThemeDefaultCategoricalsOverlayDarkAA, poThemeDefaultDark, poThemeDefaultDarkValues, poThemeDefaultDarkValuesAA, poThemeDefaultFeedback, poThemeDefaultFeedbackDark, poThemeDefaultLight, poThemeDefaultLightValues, poThemeDefaultLightValuesAA, poThemeDefaultNeutrals, poThemeDefaultNeutralsDark, poThemeDefaultOverlayCategoricals, poThemeDefaultOverlayCategoricalsAA, poToasterLiterals, poUserGuideLiteralsDefault, returnPoI18nService, validateAgainstFormat };
|
|
41863
|
+
export type { ErrorAsyncProperties, PoAccordionLiterals, PoBreadcrumb, PoBreadcrumbItem, PoButtonGroupItem, PoCalendarRangePreset, PoChartAxisOptions, PoChartDataLabel, PoChartHeaderOptions, PoChartLiterals, PoChartOptions, PoChartSerie, PoCheckboxGroupOption, PoComboFilter, PoComboLiterals, PoComboOption, PoComboOptionGroup, PoContextMenuItem, PoDateSeparator, PoDatepickerRange, PoDatepickerRangeLiterals, PoDecimalFormatParsed, PoDecimalFormatResult, PoDialogAlertLiterals, PoDialogAlertOptions, PoDialogConfirmLiterals, PoDialogConfirmOptions, PoDialogOptions, PoDisclaimer, PoDisclaimerGroup, PoDisclaimerGroupRemoveAction, PoDragEnterEvent, PoDraggableItem, PoDropEvent, PoDropdownAction, PoDynamicFormField, PoDynamicFormFieldChanged, PoDynamicFormFieldValidation, PoDynamicFormLoad, PoDynamicFormValidation, PoDynamicViewField, PoDynamicViewRequest, PoFilterChipSelectedChange, PoGaugeOptions, PoGaugeRanges, PoGridRowActions, PoHeaderActionPopoverAction, PoHeaderActionTool, PoHeaderActionToolItem, PoHeaderActions, PoHeaderBrand, PoHeaderLiterals, PoHeaderUser, PoHelperOptions, PoI18nConfig, PoI18nConfigContext, PoI18nConfigDefault, PoI18nLiterals, PoLanguage, PoListViewAction, PoListViewFieldProperties, PoListViewLiterals, PoLookupAdvancedFilter, PoLookupColumn, PoLookupFilter, PoLookupFilteredItemsParams, PoLookupLiterals, PoLookupResponseApi, PoMediaQueryTokens, PoMenuFilter, PoMenuItem, PoMenuItemBadge, PoMenuItemFiltered, PoMenuPanelItem, PoModalAction, PoMultiselectFilter, PoMultiselectLiterals, PoMultiselectOption, PoNavbarIconAction, PoNavbarItem, PoNotification, PoNumberSeparator, PoPage, PoPageAction, PoPageDefault, PoPageDefaultLiterals, PoPageDetailLiterals, PoPageEditLiterals, PoPageFilter, PoPageListLiterals, PoPageSlideSize, PoPopupAction, PoProgressAction, PoRadioGroupOption, PoResponseApi, PoRichTextToolbarButtonGroupItem, PoSearchAiColumn, PoSearchAiColumnInput, PoSearchAiError, PoSearchAiLiterals, PoSearchAiRequest, PoSearchAiResponse, PoSearchAiResult, PoSearchFilterSelect, PoSearchLiterals, PoSearchOption, PoSelectOption, PoSelectOptionGroup, PoSlideItem, PoStepperItem, PoTab, PoTableAction, PoTableBoolean, PoTableColumn, PoTableColumnIcon, PoTableColumnLabel, PoTableColumnSort, PoTableDetail, PoTableDetailColumn, PoTableLiterals, PoTableSearchAiField, PoTableSubtitleColumn, PoTagLiterals, PoTheme, PoThemeActive, PoThemeColor, PoThemeColorAction, PoThemeColorCategorical, PoThemeColorFeedback, PoThemeColorNeutral, PoThemeToken, PoThemeTokens, PoThemeType, PoToaster, PoToolbarAction, PoToolbarProfile, PoTreeViewItem, PoUploadFileRestrictions, PoUploadLiterals, PoUserGuideEndEvent, PoUserGuideLiterals, PoUserGuideOptions, PoUserGuideStartEvent, PoUserGuideStep, PoUserGuideStepChangeEvent, PoWidgetAvatar, PoWidgetLiterals, poThemeColorBrand };
|