@po-ui/ng-components 21.31.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-yOf0a_2R.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-yOf0a_2R.mjs.map → po-ui-ng-components-po-chart-modal-table.component-B4RdhBpp.mjs.map} +1 -1
- package/fesm2022/po-ui-ng-components.mjs +5653 -3789
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-calendar/po-calendar-base.component.d.ts +3 -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-datepicker/po-datepicker-base.component.d.ts +3 -1
- package/lib/components/po-field/po-datetimepicker/po-datetimepicker.component.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 +2187 -1411
- 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.31.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
|
}
|
|
@@ -5913,7 +6352,9 @@ declare class PoCalendarBaseComponent {
|
|
|
5913
6352
|
set size(value: string);
|
|
5914
6353
|
get size(): string;
|
|
5915
6354
|
widthWithPresets?: boolean;
|
|
5916
|
-
yearRangeLimit
|
|
6355
|
+
set yearRangeLimit(value: number);
|
|
6356
|
+
get yearRangeLimit(): number;
|
|
6357
|
+
private _yearRangeLimit;
|
|
5917
6358
|
/**
|
|
5918
6359
|
* @optional
|
|
5919
6360
|
*
|
|
@@ -9660,6 +10101,7 @@ declare abstract class PoNotificationBaseService {
|
|
|
9660
10101
|
* @param {PoNotification | string} notification Objeto PoNotification com os dados da notificação
|
|
9661
10102
|
*/
|
|
9662
10103
|
private buildToaster;
|
|
10104
|
+
private getMessage;
|
|
9663
10105
|
/**
|
|
9664
10106
|
* @docsPrivate
|
|
9665
10107
|
*
|
|
@@ -14008,9 +14450,14 @@ declare class PoDropdownBaseComponent {
|
|
|
14008
14450
|
private _size?;
|
|
14009
14451
|
private _initialSize?;
|
|
14010
14452
|
private _position;
|
|
14011
|
-
/**
|
|
14012
|
-
|
|
14013
|
-
|
|
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>>);
|
|
14014
14461
|
/**
|
|
14015
14462
|
* @optional
|
|
14016
14463
|
*
|
|
@@ -14065,11 +14512,41 @@ declare class PoDropdownBaseComponent {
|
|
|
14065
14512
|
*/
|
|
14066
14513
|
set position(value: string);
|
|
14067
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>;
|
|
14068
14545
|
get popupCustomPositions(): Array<string>;
|
|
14069
14546
|
protected onThemeChange(): void;
|
|
14070
14547
|
private applySizeBasedOnA11y;
|
|
14071
14548
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoDropdownBaseComponent, never>;
|
|
14072
|
-
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>;
|
|
14073
14550
|
}
|
|
14074
14551
|
|
|
14075
14552
|
/**
|
|
@@ -14087,6 +14564,11 @@ declare class PoDropdownBaseComponent {
|
|
|
14087
14564
|
* <file name="sample-po-dropdown-subitems/sample-po-dropdown-subitems.component.ts"> </file>
|
|
14088
14565
|
* </example>
|
|
14089
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
|
+
*
|
|
14090
14572
|
* <example name="po-dropdown-labs" title="PO Dropdown Labs" >
|
|
14091
14573
|
* <file name="sample-po-dropdown-labs/sample-po-dropdown-labs.component.html"> </file>
|
|
14092
14574
|
* <file name="sample-po-dropdown-labs/sample-po-dropdown-labs.component.ts"> </file>
|
|
@@ -14106,6 +14588,8 @@ declare class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
|
14106
14588
|
private resizeListener;
|
|
14107
14589
|
onKeyDown(event: any): void;
|
|
14108
14590
|
toggleDropdown(): void;
|
|
14591
|
+
onPopupClose(): void;
|
|
14592
|
+
private isEventInsideElement;
|
|
14109
14593
|
private checkClickArea;
|
|
14110
14594
|
private hideDropdown;
|
|
14111
14595
|
private initializeListeners;
|
|
@@ -16765,7 +17249,9 @@ declare abstract class PoDatepickerBaseComponent implements ControlValueAccessor
|
|
|
16765
17249
|
*
|
|
16766
17250
|
* @default 150
|
|
16767
17251
|
*/
|
|
16768
|
-
yearRangeLimit
|
|
17252
|
+
set yearRangeLimit(value: number);
|
|
17253
|
+
get yearRangeLimit(): number;
|
|
17254
|
+
private _yearRangeLimit;
|
|
16769
17255
|
/**
|
|
16770
17256
|
*
|
|
16771
17257
|
* @deprecated v23.x.x use `p-helper`
|
|
@@ -22926,6 +23412,7 @@ declare class PoDatetimepickerComponent extends PoDatetimepickerBaseComponent im
|
|
|
22926
23412
|
onInputFocus(): void;
|
|
22927
23413
|
onPeriodBlur(): void;
|
|
22928
23414
|
eventOnBlur($event: any): void;
|
|
23415
|
+
private isBlurWithinPicker;
|
|
22929
23416
|
eventOnButtonKeydown(event: KeyboardEvent): void;
|
|
22930
23417
|
eventOnClick($event: any): void;
|
|
22931
23418
|
onFieldClick($event: any): void;
|
|
@@ -23480,6 +23967,32 @@ declare class PoLoginComponent extends PoInputGeneric implements OnChanges {
|
|
|
23480
23967
|
static ɵcmp: i0.ɵɵComponentDeclaration<PoLoginComponent, "po-login", never, { "noAutocomplete": { "alias": "p-no-autocomplete"; "required": false; }; }, {}, never, never, false, never>;
|
|
23481
23968
|
}
|
|
23482
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
|
+
|
|
23483
23996
|
/**
|
|
23484
23997
|
* @usedBy PoLookupComponent
|
|
23485
23998
|
*
|
|
@@ -23683,14 +24196,6 @@ interface PoLookupLiterals {
|
|
|
23683
24196
|
clean?: string;
|
|
23684
24197
|
}
|
|
23685
24198
|
|
|
23686
|
-
/**
|
|
23687
|
-
* @docsExtends PoDynamicFormField
|
|
23688
|
-
*
|
|
23689
|
-
* @usedBy PoLookupComponent
|
|
23690
|
-
*/
|
|
23691
|
-
interface PoLookupAdvancedFilter extends PoDynamicFormField {
|
|
23692
|
-
}
|
|
23693
|
-
|
|
23694
24199
|
/**
|
|
23695
24200
|
* @usedBy
|
|
23696
24201
|
*
|
|
@@ -23882,6 +24387,7 @@ declare abstract class PoLookupModalBaseComponent implements OnDestroy, OnInit {
|
|
|
23882
24387
|
disclaimer: PoDisclaimer;
|
|
23883
24388
|
disclaimerGroup: PoDisclaimerGroup;
|
|
23884
24389
|
isAdvancedFilter: boolean;
|
|
24390
|
+
isAdvancedFilterApplied: boolean;
|
|
23885
24391
|
primaryActionAdvancedFilter: PoModalAction;
|
|
23886
24392
|
secondaryActionAdvancedFilter: PoModalAction;
|
|
23887
24393
|
selecteds: Array<any>;
|
|
@@ -23960,6 +24466,8 @@ declare class PoLookupModalComponent extends PoLookupModalBaseComponent implemen
|
|
|
23960
24466
|
onAdvancedFilter(): void;
|
|
23961
24467
|
private setTableHeight;
|
|
23962
24468
|
private setupModalAdvancedFilter;
|
|
24469
|
+
private getInitialValuesFromFilter;
|
|
24470
|
+
private getValuesFromDisclaimers;
|
|
23963
24471
|
private createDynamicForm;
|
|
23964
24472
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoLookupModalComponent, never>;
|
|
23965
24473
|
static ɵcmp: i0.ɵɵComponentDeclaration<PoLookupModalComponent, "po-lookup-modal", never, {}, {}, never, never, false, never>;
|
|
@@ -24262,6 +24770,20 @@ declare abstract class PoLookupBaseComponent implements ControlValueAccessor, On
|
|
|
24262
24770
|
* url + ?page=1&pageSize=20&name=Tony%20Stark,Peter%20Parker,Gohan
|
|
24263
24771
|
* ```
|
|
24264
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
|
+
*
|
|
24265
24787
|
*/
|
|
24266
24788
|
advancedFilters: Array<PoLookupAdvancedFilter>;
|
|
24267
24789
|
/**
|
|
@@ -24811,6 +25333,12 @@ declare abstract class PoLookupBaseComponent implements ControlValueAccessor, On
|
|
|
24811
25333
|
* <file name="sample-po-lookup.service.ts"> </file>
|
|
24812
25334
|
* </example>
|
|
24813
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
|
+
*
|
|
24814
25342
|
* <example name="po-lookup-sw-films" title="PO Lookup - Star Wars films">
|
|
24815
25343
|
* <file name="sample-po-lookup-sw-films/sample-po-lookup-sw-films.component.html"> </file>
|
|
24816
25344
|
* <file name="sample-po-lookup-sw-films/sample-po-lookup-sw-films.component.ts"> </file>
|
|
@@ -33305,6 +33833,30 @@ declare class PoGridModule {
|
|
|
33305
33833
|
static ɵinj: i0.ɵɵInjectorDeclaration<PoGridModule>;
|
|
33306
33834
|
}
|
|
33307
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
|
+
|
|
33308
33860
|
/**
|
|
33309
33861
|
* @description
|
|
33310
33862
|
*
|
|
@@ -33322,6 +33874,93 @@ declare class PoGridModule {
|
|
|
33322
33874
|
interface PoListViewAction extends PoPopupAction {
|
|
33323
33875
|
}
|
|
33324
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
|
+
|
|
33325
33964
|
/**
|
|
33326
33965
|
* @usedBy PoListViewComponent
|
|
33327
33966
|
*
|
|
@@ -33330,6 +33969,8 @@ interface PoListViewAction extends PoPopupAction {
|
|
|
33330
33969
|
* Interface para definição das literais usadas no `po-list-view`.
|
|
33331
33970
|
*/
|
|
33332
33971
|
interface PoListViewLiterals {
|
|
33972
|
+
/** Título padrão do `po-modal` de detalhes, exibido quando `p-detail-display` é `modal`. */
|
|
33973
|
+
detailModalTitle?: string;
|
|
33333
33974
|
/** Rótulo do botão que oculta os detalhes do item. */
|
|
33334
33975
|
hideDetails?: string;
|
|
33335
33976
|
/** Rótulo do botão que deve carregar mais resultados. */
|
|
@@ -33345,27 +33986,104 @@ interface PoListViewLiterals {
|
|
|
33345
33986
|
/**
|
|
33346
33987
|
* @description
|
|
33347
33988
|
*
|
|
33348
|
-
*
|
|
33349
|
-
*
|
|
33350
|
-
*
|
|
33351
|
-
*
|
|
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))` |
|
|
33352
34052
|
*
|
|
33353
|
-
* O componente disponibiliza uma área específica para exibição informações adicionais,
|
|
33354
|
-
* através da diretiva **[p-list-view-detail-template](/documentation/po-list-view-detail-template)**.
|
|
33355
34053
|
*/
|
|
33356
34054
|
declare class PoListViewBaseComponent {
|
|
33357
|
-
/**
|
|
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
|
+
*/
|
|
33358
34067
|
propertyLink?: string;
|
|
33359
|
-
/** Recebe uma propriedade que será utilizada para recuperar o valor do objeto que será exibido como o título de cada item. */
|
|
33360
|
-
propertyTitle?: string;
|
|
33361
34068
|
/**
|
|
34069
|
+
* @deprecated v23.x.x use `p-field-properties`
|
|
34070
|
+
*
|
|
33362
34071
|
* @optional
|
|
33363
34072
|
*
|
|
33364
34073
|
* @description
|
|
33365
34074
|
*
|
|
33366
|
-
*
|
|
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
|
|
33367
34085
|
*
|
|
33368
|
-
*
|
|
34086
|
+
* Ação executada ao clicar no botão de carregar mais resultados.
|
|
33369
34087
|
*/
|
|
33370
34088
|
showMore: EventEmitter<any>;
|
|
33371
34089
|
/**
|
|
@@ -33374,8 +34092,12 @@ declare class PoListViewBaseComponent {
|
|
|
33374
34092
|
* @description
|
|
33375
34093
|
*
|
|
33376
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.
|
|
33377
34099
|
*
|
|
33378
|
-
*
|
|
34100
|
+
* > Incompatível com o evento `p-item-click`.
|
|
33379
34101
|
*/
|
|
33380
34102
|
titleAction: EventEmitter<any>;
|
|
33381
34103
|
/**
|
|
@@ -33383,11 +34105,23 @@ declare class PoListViewBaseComponent {
|
|
|
33383
34105
|
*
|
|
33384
34106
|
* @description
|
|
33385
34107
|
*
|
|
33386
|
-
* 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.
|
|
33387
34110
|
*
|
|
33388
|
-
*
|
|
34111
|
+
* > Incompatível com o evento `p-item-click`.
|
|
33389
34112
|
*/
|
|
33390
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>;
|
|
33391
34125
|
popupTarget: any;
|
|
33392
34126
|
selectAll: boolean;
|
|
33393
34127
|
showHeader: boolean;
|
|
@@ -33400,6 +34134,7 @@ declare class PoListViewBaseComponent {
|
|
|
33400
34134
|
private _literals;
|
|
33401
34135
|
private _select;
|
|
33402
34136
|
private _showMoreDisabled;
|
|
34137
|
+
private _singleSelect;
|
|
33403
34138
|
private readonly language;
|
|
33404
34139
|
/**
|
|
33405
34140
|
* @optional
|
|
@@ -33407,6 +34142,7 @@ declare class PoListViewBaseComponent {
|
|
|
33407
34142
|
* @description
|
|
33408
34143
|
*
|
|
33409
34144
|
* Lista de ações que serão exibidas no componente.
|
|
34145
|
+
* As propriedades das ações seguem a interface `PoPopupAction`.
|
|
33410
34146
|
*/
|
|
33411
34147
|
set actions(value: Array<PoListViewAction>);
|
|
33412
34148
|
get actions(): Array<PoListViewAction>;
|
|
@@ -33415,7 +34151,7 @@ declare class PoListViewBaseComponent {
|
|
|
33415
34151
|
*
|
|
33416
34152
|
* @description
|
|
33417
34153
|
*
|
|
33418
|
-
* Define o
|
|
34154
|
+
* Define o dimensionamento geral dos elementos no template.
|
|
33419
34155
|
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
33420
34156
|
* - `medium`: aplica a medida medium de cada componente.
|
|
33421
34157
|
*
|
|
@@ -33431,20 +34167,65 @@ declare class PoListViewBaseComponent {
|
|
|
33431
34167
|
*
|
|
33432
34168
|
* @description
|
|
33433
34169
|
*
|
|
33434
|
-
* 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.
|
|
33435
34173
|
*/
|
|
33436
34174
|
set height(height: number);
|
|
33437
34175
|
get height(): number;
|
|
33438
34176
|
/**
|
|
34177
|
+
* @optional
|
|
34178
|
+
*
|
|
33439
34179
|
* @description
|
|
33440
34180
|
*
|
|
33441
|
-
*
|
|
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
|
+
* ```
|
|
33442
34196
|
*
|
|
33443
34197
|
* @default `false`
|
|
33444
34198
|
*/
|
|
33445
34199
|
set hideSelectAll(hideSelectAll: boolean);
|
|
33446
34200
|
get hideSelectAll(): boolean;
|
|
33447
|
-
/**
|
|
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
|
+
*/
|
|
33448
34229
|
set items(value: Array<any>);
|
|
33449
34230
|
get items(): Array<any>;
|
|
33450
34231
|
/**
|
|
@@ -33452,9 +34233,9 @@ declare class PoListViewBaseComponent {
|
|
|
33452
34233
|
*
|
|
33453
34234
|
* @description
|
|
33454
34235
|
*
|
|
33455
|
-
* Objeto com as literais usadas no
|
|
34236
|
+
* Objeto com as literais usadas no po-list-view, permitindo personalizar os textos exibidos no componente.
|
|
33456
34237
|
*
|
|
33457
|
-
*
|
|
34238
|
+
* Exemplo de uso:
|
|
33458
34239
|
*
|
|
33459
34240
|
* ```
|
|
33460
34241
|
* const customLiterals: PoListViewLiterals = {
|
|
@@ -33465,16 +34246,6 @@ declare class PoListViewBaseComponent {
|
|
|
33465
34246
|
* };
|
|
33466
34247
|
* ```
|
|
33467
34248
|
*
|
|
33468
|
-
* Ou passando apenas as literais que deseja customizar:
|
|
33469
|
-
*
|
|
33470
|
-
* ```
|
|
33471
|
-
* const customLiterals: PoListViewLiterals = {
|
|
33472
|
-
* showDetail: 'Mostrar mais detalhes'
|
|
33473
|
-
* };
|
|
33474
|
-
* ```
|
|
33475
|
-
*
|
|
33476
|
-
* E para carregar as literais customizadas, basta apenas passar o objeto para o componente.
|
|
33477
|
-
*
|
|
33478
34249
|
* ```
|
|
33479
34250
|
* <po-list-view
|
|
33480
34251
|
* [p-literals]="customLiterals">
|
|
@@ -33491,8 +34262,8 @@ declare class PoListViewBaseComponent {
|
|
|
33491
34262
|
*
|
|
33492
34263
|
* @description
|
|
33493
34264
|
*
|
|
33494
|
-
* Habilita um *checkbox* para cada item da lista. Todos os items possuem a propriedade dinâmica `$selected` para
|
|
33495
|
-
* 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:
|
|
33496
34267
|
*
|
|
33497
34268
|
* ```
|
|
33498
34269
|
* item.$selected
|
|
@@ -33511,7 +34282,110 @@ declare class PoListViewBaseComponent {
|
|
|
33511
34282
|
*
|
|
33512
34283
|
* @description
|
|
33513
34284
|
*
|
|
33514
|
-
*
|
|
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.
|
|
33515
34389
|
*/
|
|
33516
34390
|
set showMoreDisabled(value: boolean);
|
|
33517
34391
|
get showMoreDisabled(): boolean;
|
|
@@ -33523,11 +34397,11 @@ declare class PoListViewBaseComponent {
|
|
|
33523
34397
|
selectListItem(row: any): void;
|
|
33524
34398
|
protected onThemeChange(): void;
|
|
33525
34399
|
private applySizeBasedOnA11y;
|
|
33526
|
-
|
|
34400
|
+
protected deleteInternalAttrs(item: any): any;
|
|
33527
34401
|
private checkIfItemsAreSelected;
|
|
33528
34402
|
private showMainHeader;
|
|
33529
34403
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoListViewBaseComponent, never>;
|
|
33530
|
-
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>;
|
|
33531
34405
|
}
|
|
33532
34406
|
|
|
33533
34407
|
/**
|
|
@@ -33673,6 +34547,12 @@ declare class PoListViewContentTemplateDirective {
|
|
|
33673
34547
|
* ...
|
|
33674
34548
|
*
|
|
33675
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`.
|
|
33676
34556
|
*/
|
|
33677
34557
|
declare class PoListViewDetailTemplateDirective {
|
|
33678
34558
|
templateRef: TemplateRef<any>;
|
|
@@ -33701,6 +34581,11 @@ declare class PoListViewDetailTemplateDirective {
|
|
|
33701
34581
|
* <file name="sample-po-list-view-basic/sample-po-list-view-basic.component.ts"> </file>
|
|
33702
34582
|
* </example>
|
|
33703
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
|
+
*
|
|
33704
34589
|
* <example name="po-list-view-labs" title="PO List View Labs">
|
|
33705
34590
|
* <file name="sample-po-list-view-labs/sample-po-list-view-labs.component.html"> </file>
|
|
33706
34591
|
* <file name="sample-po-list-view-labs/sample-po-list-view-labs.component.ts"> </file>
|
|
@@ -33712,27 +34597,86 @@ declare class PoListViewDetailTemplateDirective {
|
|
|
33712
34597
|
* <file name="sample-po-list-view-hiring-processes/sample-po-list-view-hiring-processes.service.ts"> </file>
|
|
33713
34598
|
* </example>
|
|
33714
34599
|
*/
|
|
33715
|
-
declare class PoListViewComponent extends PoListViewBaseComponent implements AfterContentInit, DoCheck {
|
|
34600
|
+
declare class PoListViewComponent extends PoListViewBaseComponent implements AfterContentInit, DoCheck, AfterViewChecked {
|
|
33716
34601
|
private readonly changeDetector;
|
|
34602
|
+
private readonly router;
|
|
34603
|
+
private readonly elementRef;
|
|
34604
|
+
private readonly renderer;
|
|
33717
34605
|
listViewContentTemplate: PoListViewContentTemplateDirective;
|
|
33718
34606
|
listViewDetailTemplate: PoListViewDetailTemplateDirective;
|
|
34607
|
+
private readonly avatarProgressTemplate;
|
|
34608
|
+
private readonly avatarIconTemplate;
|
|
34609
|
+
private readonly avatarImageTemplate;
|
|
33719
34610
|
poPopupComponent: PoPopupComponent;
|
|
34611
|
+
protected detailModal: PoModalComponent;
|
|
33720
34612
|
popupActions: Array<PoListViewAction>;
|
|
34613
|
+
protected detailModalItem: any;
|
|
34614
|
+
protected detailModalIndex: number;
|
|
33721
34615
|
private readonly differ;
|
|
34616
|
+
private readonly widgetActionsCache;
|
|
34617
|
+
private cachedActionsRef;
|
|
33722
34618
|
constructor();
|
|
33723
34619
|
get hasContentTemplate(): boolean;
|
|
33724
34620
|
get hasDetailTemplate(): boolean;
|
|
33725
34621
|
get displayShowMoreButton(): boolean;
|
|
33726
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;
|
|
33727
34645
|
ngAfterContentInit(): void;
|
|
33728
34646
|
ngDoCheck(): void;
|
|
34647
|
+
ngAfterViewChecked(): void;
|
|
33729
34648
|
checkTitleType(item: any): "externalLink" | "internalLink" | "noLink";
|
|
33730
34649
|
getItemTitle(item: any): any;
|
|
33731
34650
|
hasItems(): boolean;
|
|
33732
34651
|
returnBooleanValue(listViewAction: PoListViewAction, item: any, property: string): any;
|
|
33733
|
-
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>;
|
|
33734
34675
|
togglePopup(item: any, targetRef: HTMLElement): void;
|
|
33735
|
-
|
|
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;
|
|
33736
34680
|
protected getVisibleActions(item: any): Array<PoListViewAction>;
|
|
33737
34681
|
private checkItemsChange;
|
|
33738
34682
|
private initShowDetail;
|
|
@@ -33741,314 +34685,85 @@ declare class PoListViewComponent extends PoListViewBaseComponent implements Aft
|
|
|
33741
34685
|
}
|
|
33742
34686
|
|
|
33743
34687
|
/**
|
|
33744
|
-
* @
|
|
33745
|
-
*
|
|
33746
|
-
* Módulo do componente `po-list-view`.
|
|
33747
|
-
*
|
|
33748
|
-
* > Para o correto funcionamento do componente `po-list-view`, deve ser importado o módulo `BrowserAnimationsModule` no
|
|
33749
|
-
* > módulo principal da sua aplicação.
|
|
33750
|
-
*
|
|
33751
|
-
* Módulo da aplicação:
|
|
33752
|
-
* ```
|
|
33753
|
-
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
33754
|
-
* import { PoModule } from '@po-ui/ng-components';
|
|
33755
|
-
* ...
|
|
33756
|
-
*
|
|
33757
|
-
* @NgModule({
|
|
33758
|
-
* imports: [
|
|
33759
|
-
* BrowserModule,
|
|
33760
|
-
* BrowserAnimationsModule,
|
|
33761
|
-
* ...
|
|
33762
|
-
* PoModule
|
|
33763
|
-
* ],
|
|
33764
|
-
* declarations: [
|
|
33765
|
-
* AppComponent,
|
|
33766
|
-
* ...
|
|
33767
|
-
* ],
|
|
33768
|
-
* providers: [],
|
|
33769
|
-
* bootstrap: [AppComponent]
|
|
33770
|
-
* })
|
|
33771
|
-
* export class AppModule { }
|
|
33772
|
-
* ```
|
|
33773
|
-
*
|
|
33774
|
-
* Em aplicações Standalone, utilize a seguinte configuração para o bootstrap:
|
|
33775
|
-
*
|
|
33776
|
-
* ```
|
|
33777
|
-
* import { bootstrapApplication } from '@angular/platform-browser';
|
|
33778
|
-
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
33779
|
-
* import { AppComponent } from './app.component';
|
|
33780
|
-
*
|
|
33781
|
-
* bootstrapApplication(AppComponent, {
|
|
33782
|
-
* providers: [importProvidersFrom(BrowserAnimationsModule)]
|
|
33783
|
-
* }).catch(err => console.error(err));
|
|
33784
|
-
* ```
|
|
33785
|
-
*/
|
|
33786
|
-
declare class PoListViewModule {
|
|
33787
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoListViewModule, never>;
|
|
33788
|
-
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]>;
|
|
33789
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PoListViewModule>;
|
|
33790
|
-
}
|
|
33791
|
-
|
|
33792
|
-
declare class PoLogoComponent {
|
|
33793
|
-
poLanguageService: PoLanguageService;
|
|
33794
|
-
readonly literals: any;
|
|
33795
|
-
private _logo?;
|
|
33796
|
-
private _logoAlt;
|
|
33797
|
-
private _link;
|
|
33798
|
-
/**
|
|
33799
|
-
* Define uma classe para o elemento `img` do componente.
|
|
33800
|
-
*
|
|
33801
|
-
* > **Importante**
|
|
33802
|
-
* > A classe deve ser definida apenas quando houver necessidade de ajustar o componente dentro de outro componente.
|
|
33803
|
-
*
|
|
33804
|
-
*/
|
|
33805
|
-
className: string;
|
|
33806
|
-
/**
|
|
33807
|
-
* Define se o componente terá o elemento âncora para uma rota específica.
|
|
33808
|
-
*
|
|
33809
|
-
* > Caso seja definido como false, o componente apenas renderizará o elemento `img`.
|
|
33810
|
-
* > Caso seja definido como true, a rota será `./`.
|
|
33811
|
-
* > Caso seja definido como string, a rota será a string passada.
|
|
33812
|
-
*
|
|
33813
|
-
* @default `true`
|
|
33814
|
-
*/
|
|
33815
|
-
set link(value: boolean | string);
|
|
33816
|
-
get link(): boolean | string;
|
|
33817
|
-
/**
|
|
33818
|
-
* Definie o caminho para a imagem, que será exibida como logomarca.
|
|
33819
|
-
*
|
|
33820
|
-
*/
|
|
33821
|
-
set logo(value: string);
|
|
33822
|
-
get logo(): string;
|
|
33823
|
-
/**
|
|
33824
|
-
* Define o texto alternativo para a logomarca.
|
|
33825
|
-
*
|
|
33826
|
-
* > **Importante**
|
|
33827
|
-
* > Caso esta propriedade não seja definida o texto padrão será "Logomarca início".
|
|
33828
|
-
*/
|
|
33829
|
-
set logoAlt(value: string);
|
|
33830
|
-
get logoAlt(): string;
|
|
33831
|
-
constructor(poLanguageService: PoLanguageService);
|
|
33832
|
-
private maxLength;
|
|
33833
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoLogoComponent, never>;
|
|
33834
|
-
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>;
|
|
33835
|
-
}
|
|
33836
|
-
|
|
33837
|
-
declare class PoLogoModule {
|
|
33838
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoLogoModule, never>;
|
|
33839
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoLogoModule, [typeof PoLogoComponent], [typeof i2.CommonModule], [typeof PoLogoComponent]>;
|
|
33840
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PoLogoModule>;
|
|
33841
|
-
}
|
|
33842
|
-
|
|
33843
|
-
/**
|
|
33844
|
-
* @usedBy PoMenuComponent
|
|
33845
|
-
*
|
|
33846
|
-
* @description
|
|
33847
|
-
*
|
|
33848
|
-
* Interface do objeto que deve conter na coleção de itens filtrados no componente `po-menu`.
|
|
33849
|
-
*/
|
|
33850
|
-
interface PoMenuItemFiltered {
|
|
33851
|
-
/** Texto do item de menu. */
|
|
33852
|
-
label: string;
|
|
33853
|
-
/** *Link* para redirecionamento no clique do item do menu, podendo ser um *link* interno ou externo. */
|
|
33854
|
-
link: string;
|
|
33855
|
-
/** Ação a ser executada quando o item de menu for clicado. */
|
|
33856
|
-
action: () => void;
|
|
33857
|
-
}
|
|
33858
|
-
|
|
33859
|
-
/**
|
|
33860
|
-
* @usedBy PoMenuComponent
|
|
34688
|
+
* @usedBy PoWidgetComponent
|
|
33861
34689
|
*
|
|
33862
34690
|
* @description
|
|
33863
34691
|
*
|
|
33864
|
-
* Interface do
|
|
34692
|
+
* Interface para definição do avatar no `po-widget`.
|
|
33865
34693
|
*/
|
|
33866
|
-
interface
|
|
34694
|
+
interface PoWidgetAvatar {
|
|
33867
34695
|
/**
|
|
33868
|
-
*
|
|
33869
|
-
*
|
|
33870
|
-
*
|
|
33871
|
-
* @param {string} search Valor informado no campo de busca dos itens de menus.
|
|
33872
|
-
* @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`).
|
|
33873
34698
|
*/
|
|
33874
|
-
|
|
33875
|
-
}
|
|
33876
|
-
|
|
33877
|
-
/**
|
|
33878
|
-
* @usedBy PoMenuComponent
|
|
33879
|
-
*
|
|
33880
|
-
* @description
|
|
33881
|
-
*
|
|
33882
|
-
* Interface do *badge* utilizado no `po-menu`.
|
|
33883
|
-
*/
|
|
33884
|
-
interface PoMenuItemBadge {
|
|
34699
|
+
src?: string;
|
|
33885
34700
|
/**
|
|
33886
34701
|
* @optional
|
|
33887
34702
|
*
|
|
33888
34703
|
* @description
|
|
33889
34704
|
*
|
|
33890
|
-
*
|
|
33891
|
-
*
|
|
33892
|
-
* <span class="dot po-color-01"></span> `color-01`
|
|
33893
|
-
*
|
|
33894
|
-
* <span class="dot po-color-02"></span> `color-02`
|
|
33895
|
-
*
|
|
33896
|
-
* <span class="dot po-color-03"></span> `color-03`
|
|
33897
|
-
*
|
|
33898
|
-
* <span class="dot po-color-04"></span> `color-04`
|
|
33899
|
-
*
|
|
33900
|
-
* <span class="dot po-color-05"></span> `color-05`
|
|
33901
|
-
*
|
|
33902
|
-
* <span class="dot po-color-06"></span> `color-06`
|
|
33903
|
-
*
|
|
33904
|
-
* <span class="dot po-color-07"></span> `color-07`
|
|
33905
|
-
*
|
|
33906
|
-
* <span class="dot po-color-08"></span> `color-08`
|
|
33907
|
-
*
|
|
33908
|
-
* <span class="dot po-color-09"></span> `color-09`
|
|
33909
|
-
*
|
|
33910
|
-
* <span class="dot po-color-10"></span> `color-10`
|
|
33911
|
-
*
|
|
33912
|
-
* <span class="dot po-color-11"></span> `color-11`
|
|
34705
|
+
* Tamanho de exibição do componente `po-avatar`.
|
|
33913
34706
|
*
|
|
33914
|
-
*
|
|
34707
|
+
* Valores válidos:
|
|
34708
|
+
* - `xs` (24x24)
|
|
34709
|
+
* - `sm` (32x32)
|
|
34710
|
+
* - `md` (64x64)
|
|
34711
|
+
* - `lg` (96x96)
|
|
34712
|
+
* - `xl` (144x144)
|
|
33915
34713
|
*
|
|
33916
|
-
* @default `
|
|
34714
|
+
* @default `md`
|
|
33917
34715
|
*/
|
|
33918
|
-
|
|
34716
|
+
size?: string;
|
|
33919
34717
|
/**
|
|
33920
|
-
*
|
|
34718
|
+
* Permite a criação de template customizado para o avatar
|
|
33921
34719
|
*
|
|
33922
|
-
*
|
|
34720
|
+
* ```
|
|
34721
|
+
* <po-widget
|
|
34722
|
+
* [p-avatar]="{ customTemplate: customAvatar }"
|
|
34723
|
+
* />
|
|
34724
|
+
*
|
|
34725
|
+
* <ng-template #customAvatar>
|
|
34726
|
+
* ...
|
|
34727
|
+
* </ng-template>
|
|
34728
|
+
* ```
|
|
33923
34729
|
*/
|
|
33924
|
-
|
|
33925
|
-
}
|
|
33926
|
-
|
|
33927
|
-
/**
|
|
33928
|
-
* @usedBy PoMenuComponent
|
|
33929
|
-
*
|
|
33930
|
-
* @description
|
|
33931
|
-
*
|
|
33932
|
-
* Interface para os itens de menu do componente po-menu.
|
|
33933
|
-
*
|
|
33934
|
-
*/
|
|
33935
|
-
interface PoMenuItem {
|
|
34730
|
+
customTemplate?: TemplateRef<any>;
|
|
33936
34731
|
/**
|
|
33937
34732
|
* @optional
|
|
33938
34733
|
*
|
|
33939
34734
|
* @description
|
|
33940
34735
|
*
|
|
33941
|
-
*
|
|
33942
|
-
*
|
|
33943
|
-
* Ao adicioná-lo em um subitem (filho) todos os itens ascendentes (pai) serão marcados com um ponto vermelho.
|
|
33944
|
-
*
|
|
33945
|
-
* > O `po-badge` só será exibido caso o item do menu não possua `subItems` e seu valor seja maior ou igual a 0.
|
|
33946
|
-
*/
|
|
33947
|
-
badge?: PoMenuItemBadge;
|
|
33948
|
-
/** Texto do item de menu. */
|
|
33949
|
-
label: string;
|
|
33950
|
-
/** Link para redirecionamento no click do item do menu, podendo ser um link interno ou externo. */
|
|
33951
|
-
link?: string;
|
|
33952
|
-
/** Ação personalizada para clique do item de menu. */
|
|
33953
|
-
action?: Function;
|
|
33954
|
-
/**
|
|
33955
|
-
* É possível usar qualquer um dos ícones da [Biblioteca de ícones](https://po-ui.io/icons). conforme exemplo abaixo:
|
|
33956
|
-
* ```
|
|
33957
|
-
* <po-menu
|
|
33958
|
-
* [p-menus]="[{ link: '/', label: 'PO ICON', icon: 'an an-newspaper' }]">
|
|
33959
|
-
* </po-menu>
|
|
33960
|
-
* ```
|
|
33961
|
-
*
|
|
33962
|
-
* Também é possível utilizar outras fontes de ícones, por exemplo a biblioteca Font Awesome, da seguinte forma:
|
|
33963
|
-
* ```
|
|
33964
|
-
* <po-menu
|
|
33965
|
-
* [p-menus]="[{ link: '/', label: 'FA ICON', icon: 'fa fa-podcast' }]">
|
|
33966
|
-
* </po-menu>
|
|
33967
|
-
* ```
|
|
33968
|
-
*
|
|
33969
|
-
* Outra opção seria a customização do ícone através do `TemplateRef`, conforme exemplo abaixo:
|
|
33970
|
-
* component.html:
|
|
33971
|
-
* ```
|
|
33972
|
-
* <ng-template #iconTemplate>
|
|
33973
|
-
* <ion-icon name="heart"></ion-icon>
|
|
33974
|
-
* </ng-template>
|
|
33975
|
-
*
|
|
33976
|
-
* <po-menu [p-menus]="myProperty"></po-menu>
|
|
33977
|
-
* ```
|
|
33978
|
-
* component.ts:
|
|
33979
|
-
* ```
|
|
33980
|
-
* @ViewChild('iconTemplate', { static: true } ) iconTemplate : TemplateRef<void>;
|
|
34736
|
+
* Define a largura em porcentagem do `customTemplate`.
|
|
33981
34737
|
*
|
|
33982
|
-
*
|
|
33983
|
-
* {
|
|
33984
|
-
* link: '/',
|
|
33985
|
-
* label: 'Icon',
|
|
33986
|
-
* icon: this.iconTemplate
|
|
33987
|
-
* }
|
|
33988
|
-
* ];
|
|
33989
|
-
* ```
|
|
33990
|
-
* > 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.
|
|
33991
|
-
* O menu colapsado também aparecerá somente se todos os itens de primeiro nível de menu possuírem ícones e textos curtos.
|
|
33992
|
-
*/
|
|
33993
|
-
icon?: string | TemplateRef<void>;
|
|
33994
|
-
/**
|
|
33995
|
-
* Texto curto exibido através de um tooltip para o item que aparece quando o menu estiver colapsado.
|
|
33996
|
-
* 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%`.
|
|
33997
34739
|
*/
|
|
33998
|
-
|
|
33999
|
-
/** Lista de sub-items, criando novos níveis dentro do menu. O número máximo de níveis do menu é igual a 4. */
|
|
34000
|
-
subItems?: Array<PoMenuItem>;
|
|
34001
|
-
id?: string;
|
|
34002
|
-
level?: any;
|
|
34003
|
-
badgeAlert?: any;
|
|
34004
|
-
type?: any;
|
|
34005
|
-
}
|
|
34006
|
-
|
|
34007
|
-
declare class PoMenuGlobalService {
|
|
34008
|
-
private readonly applicationMenu;
|
|
34009
|
-
private readonly menus;
|
|
34010
|
-
private readonly removedApplicationMenu;
|
|
34011
|
-
private readonly menuId;
|
|
34012
|
-
private readonly menuChanges;
|
|
34013
|
-
receiveApplicationMenu$: Observable<PoMenuComponent>;
|
|
34014
|
-
receiveMenus$: Observable<PoMenuItem[]>;
|
|
34015
|
-
receiveId$: Observable<string>;
|
|
34016
|
-
receiveOnChange$: Observable<PoMenuItem[]>;
|
|
34017
|
-
receiveRemovedApplicationMenu$: Observable<string>;
|
|
34018
|
-
sendApplicationMenu(menu: PoMenuComponent): void;
|
|
34019
|
-
sendMenus(menus: Array<PoMenuItem>): void;
|
|
34020
|
-
sendId(id: string): void;
|
|
34021
|
-
sendChanges(menus: Array<PoMenuItem>): void;
|
|
34022
|
-
sendRemovedApplicationMenu(id: string): void;
|
|
34023
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoMenuGlobalService, never>;
|
|
34024
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PoMenuGlobalService>;
|
|
34740
|
+
widthCustomTemplate?: string;
|
|
34025
34741
|
}
|
|
34026
34742
|
|
|
34027
34743
|
/**
|
|
34028
|
-
* @docsPrivate
|
|
34029
34744
|
*
|
|
34030
34745
|
* @description
|
|
34031
34746
|
*
|
|
34032
|
-
*
|
|
34033
|
-
*
|
|
34034
|
-
*/
|
|
34035
|
-
declare class PoMenuService implements PoMenuFilter {
|
|
34036
|
-
private readonly http;
|
|
34037
|
-
private _url;
|
|
34038
|
-
get url(): string;
|
|
34039
|
-
configProperties(url: string): void;
|
|
34040
|
-
getFilteredData(search: string, params?: any): Observable<Array<PoMenuItemFiltered>>;
|
|
34041
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoMenuService, never>;
|
|
34042
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PoMenuService>;
|
|
34043
|
-
}
|
|
34044
|
-
|
|
34045
|
-
/**
|
|
34046
|
-
* @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.
|
|
34047
34749
|
*
|
|
34048
|
-
*
|
|
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.
|
|
34049
34752
|
*
|
|
34050
|
-
*
|
|
34051
|
-
*
|
|
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))
|
|
34052
34767
|
*
|
|
34053
34768
|
* #### Tokens customizáveis
|
|
34054
34769
|
*
|
|
@@ -34056,190 +34771,918 @@ declare class PoMenuService implements PoMenuFilter {
|
|
|
34056
34771
|
*
|
|
34057
34772
|
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
34058
34773
|
*
|
|
34059
|
-
* | Propriedade
|
|
34060
|
-
*
|
|
34061
|
-
* | **Default Values**
|
|
34062
|
-
* | `--
|
|
34063
|
-
* | `--
|
|
34064
|
-
* | `--
|
|
34065
|
-
* |
|
|
34066
|
-
* | `--
|
|
34067
|
-
* | `--
|
|
34068
|
-
* | `--
|
|
34069
|
-
* | `--
|
|
34070
|
-
* | `--
|
|
34071
|
-
* |
|
|
34072
|
-
* | `--
|
|
34073
|
-
* | `--
|
|
34074
|
-
* | `--
|
|
34075
|
-
* | `--
|
|
34076
|
-
* |
|
|
34077
|
-
* | `--
|
|
34078
|
-
* | **
|
|
34079
|
-
* | `--color-
|
|
34080
|
-
* | `--
|
|
34081
|
-
* | **Focused** | | |
|
|
34082
|
-
* | `--outline-color-focused` | Cor do outline do estado de focus | `var(--color-action-focus)` |
|
|
34083
|
-
* | **Pressed** | | |
|
|
34084
|
-
* | `--background-color-pressed` | Cor de background no estado de pressionado | `var(--color-brand-01-light)` |
|
|
34085
|
-
* | **Actived** | | |
|
|
34086
|
-
* | `--background-color-actived` | Cor de background no estado actived | `var(--color-brand-01-darkest)` |
|
|
34087
|
-
* | `--color-actived` | Cor principal no estado actived | `var(--color-brand-01-lighter)` |
|
|
34088
|
-
* | **Font** | | |
|
|
34089
|
-
* | `--font-weight-lvl0` | Peso da fonte bold | `var(--font-weight-bold)` |
|
|
34090
|
-
* | `--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)` |
|
|
34091
34796
|
*
|
|
34092
|
-
* <br>
|
|
34093
34797
|
*/
|
|
34094
|
-
declare
|
|
34095
|
-
|
|
34096
|
-
|
|
34097
|
-
|
|
34098
|
-
allowIcons: boolean;
|
|
34099
|
-
allowCollapseMenu: boolean;
|
|
34100
|
-
allowCollapseHover: boolean;
|
|
34101
|
-
filteredItems: any;
|
|
34102
|
-
filterService: PoMenuFilter;
|
|
34103
|
-
readonly literals: any;
|
|
34104
|
-
private _collapsed;
|
|
34105
|
-
private _componentsSize;
|
|
34106
|
-
private _initialComponentsSize;
|
|
34107
|
-
private _filter;
|
|
34108
|
-
private _searchTreeItems;
|
|
34109
|
-
private _level;
|
|
34110
|
-
private readonly _maxLevel;
|
|
34111
|
-
private _menus;
|
|
34112
|
-
private _params;
|
|
34113
|
-
private _service;
|
|
34114
|
-
private _logoLink;
|
|
34115
|
-
private _menuId;
|
|
34798
|
+
declare class PoWidgetBaseComponent {
|
|
34799
|
+
private _size?;
|
|
34800
|
+
private _initialSize?;
|
|
34801
|
+
/** Descrição da segunda ação. */
|
|
34116
34802
|
/**
|
|
34117
34803
|
* @optional
|
|
34118
34804
|
*
|
|
34119
34805
|
* @description
|
|
34806
|
+
* Define o label e exibe a ação secundária no footer do componente.
|
|
34120
34807
|
*
|
|
34121
|
-
*
|
|
34122
|
-
*
|
|
34123
|
-
* @default `false`
|
|
34808
|
+
* > Exibida apenas quando `p-primary-label` estiver definida.
|
|
34124
34809
|
*/
|
|
34125
|
-
|
|
34810
|
+
secondaryLabel?: string;
|
|
34126
34811
|
/**
|
|
34127
34812
|
* @optional
|
|
34128
34813
|
*
|
|
34129
34814
|
* @description
|
|
34130
34815
|
*
|
|
34131
|
-
*
|
|
34816
|
+
* Caso verdadeiro o botão da ação `p-primary-label` ativará o modo `danger`.
|
|
34132
34817
|
*
|
|
34133
|
-
*
|
|
34134
|
-
*
|
|
34135
|
-
*
|
|
34818
|
+
* > Incompatível com o tipo **tertiary** da propriedade `p-kind-primary-action`.
|
|
34819
|
+
*
|
|
34820
|
+
* @default `false`
|
|
34136
34821
|
*/
|
|
34137
|
-
|
|
34822
|
+
dangerPrimaryAction: boolean;
|
|
34138
34823
|
/**
|
|
34139
34824
|
* @optional
|
|
34140
34825
|
*
|
|
34141
34826
|
* @description
|
|
34142
34827
|
*
|
|
34143
|
-
*
|
|
34144
|
-
*
|
|
34145
|
-
* > Utilize esta propriedade para iniciar o menu colapsado.
|
|
34146
|
-
*
|
|
34147
|
-
* > Ao utilizar os métodos [`colapse`](documentation/po-menu#colapseMethod), [`expand`](documentation/po-menu#expandMethod) e
|
|
34148
|
-
* [`toggle`](documentation/po-menu#toggleMethod) o valor desta propriedade não é alterado.
|
|
34149
|
-
*
|
|
34150
|
-
* **Importante:**
|
|
34828
|
+
* Caso verdadeiro o botão da ação `p-secondary-label` ativará o modo `danger`.
|
|
34151
34829
|
*
|
|
34152
|
-
* >
|
|
34830
|
+
* > Incompatível com o tipo **tertiary** da propriedade `p-kind-primary-action`.
|
|
34153
34831
|
*
|
|
34154
34832
|
* @default `false`
|
|
34155
34833
|
*/
|
|
34156
|
-
|
|
34157
|
-
get collapsed(): boolean;
|
|
34834
|
+
dangerSecondaryAction: boolean;
|
|
34158
34835
|
/**
|
|
34159
34836
|
* @optional
|
|
34160
34837
|
*
|
|
34161
34838
|
* @description
|
|
34162
34839
|
*
|
|
34163
|
-
* Define o
|
|
34164
|
-
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
34165
|
-
* - `medium`: aplica a medida medium de cada componente.
|
|
34166
|
-
*
|
|
34167
|
-
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
34168
|
-
* 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`.
|
|
34169
34841
|
*
|
|
34170
|
-
* @default `
|
|
34842
|
+
* @default `tertiary`
|
|
34171
34843
|
*/
|
|
34172
|
-
|
|
34173
|
-
get componentsSize(): string;
|
|
34174
|
-
/** Lista dos itens do menu. Se o valor estiver indefinido ou inválido, será inicializado como um array vazio. */
|
|
34175
|
-
set menus(menus: Array<PoMenuItem>);
|
|
34176
|
-
get menus(): Array<PoMenuItem>;
|
|
34177
|
-
get maxLevel(): number;
|
|
34844
|
+
kindPrimaryAction?: string;
|
|
34178
34845
|
/**
|
|
34179
34846
|
* @optional
|
|
34180
34847
|
*
|
|
34181
34848
|
* @description
|
|
34182
34849
|
*
|
|
34183
|
-
*
|
|
34184
|
-
* 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,
|
|
34185
|
-
* ou também, pode ser realizada através de um serviço definido na propriedade `p-service`.
|
|
34186
|
-
*
|
|
34187
|
-
* > 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`.
|
|
34188
34851
|
*
|
|
34189
|
-
* @default `
|
|
34852
|
+
* @default `tertiary`
|
|
34190
34853
|
*/
|
|
34191
|
-
|
|
34192
|
-
get filter(): boolean;
|
|
34854
|
+
kindSecondaryAction?: string;
|
|
34193
34855
|
/**
|
|
34194
34856
|
* @optional
|
|
34195
34857
|
*
|
|
34196
34858
|
* @description
|
|
34197
34859
|
*
|
|
34198
|
-
*
|
|
34199
|
-
* Isso pode ser útil quando se deseja encontrar rapidamente categorias ou seções do menu.
|
|
34200
|
-
*
|
|
34201
|
-
* > É necessário que a propriedade `p-filter` esteja habilitada.
|
|
34860
|
+
* Label da tag exibida no header.
|
|
34202
34861
|
*
|
|
34203
|
-
*
|
|
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.
|
|
34204
34864
|
*/
|
|
34205
|
-
|
|
34206
|
-
get searchTreeItems(): boolean;
|
|
34865
|
+
tagLabel?: string;
|
|
34207
34866
|
/**
|
|
34208
34867
|
* @optional
|
|
34209
34868
|
*
|
|
34210
34869
|
* @description
|
|
34211
34870
|
*
|
|
34212
|
-
*
|
|
34213
|
-
* menu quando realizar uma busca. Caso haja a necessidade de customização, pode ser informado um
|
|
34214
|
-
* serviço implementando a interface `PoMenuFilter`.
|
|
34215
|
-
*
|
|
34216
|
-
* Caso utilizada uma URL, o serviço deve retornar os dados conforme o
|
|
34217
|
-
* [Guia de implementação de APIs](https://po-ui.io/guides/api) do PO UI.
|
|
34218
|
-
*
|
|
34219
|
-
* Quando utilizada uma URL de serviço, será realizado um *GET* na URL informada, passando o valor digitado
|
|
34220
|
-
* no parâmetro `search`, veja exemplo:
|
|
34221
|
-
*
|
|
34222
|
-
* > O filtro no serviço será realizado caso contenha no mínimo três caracteres no campo de busca, por exemplo `tot`.
|
|
34223
|
-
*
|
|
34224
|
-
* ```
|
|
34225
|
-
* <po-menu p-service="/api/v1/fnd/menu">
|
|
34226
|
-
* </po-menu>
|
|
34871
|
+
* Define o tipo da `p-tag`, conforme o enum **PoTagType**.
|
|
34227
34872
|
*
|
|
34228
|
-
*
|
|
34229
|
-
*
|
|
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.
|
|
34230
34879
|
*
|
|
34231
|
-
*
|
|
34880
|
+
* @default `success`
|
|
34232
34881
|
*/
|
|
34233
|
-
|
|
34234
|
-
get service(): string | PoMenuFilter;
|
|
34882
|
+
tagType: PoTagType | string;
|
|
34235
34883
|
/**
|
|
34236
34884
|
* @optional
|
|
34237
34885
|
*
|
|
34238
34886
|
* @description
|
|
34239
34887
|
*
|
|
34240
|
-
*
|
|
34888
|
+
* Define o ícone exibido ao lado do label da `p-tag`.
|
|
34241
34889
|
*
|
|
34242
|
-
*
|
|
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
|
|
34243
35686
|
* será passado como parâmetro, na função `getFilteredData`.
|
|
34244
35687
|
*
|
|
34245
35688
|
* Quando utilizada uma URL de serviço, será realizado um *GET* na URL informada, passando os valores informados
|
|
@@ -38463,863 +39906,140 @@ declare class PoToolbarModule {
|
|
|
38463
39906
|
* @usedBy PoTreeViewComponent
|
|
38464
39907
|
*
|
|
38465
39908
|
* @description
|
|
38466
|
-
*
|
|
38467
|
-
* Interface para definição dos itens do componente `po-tree-view`.
|
|
38468
|
-
*/
|
|
38469
|
-
interface PoTreeViewItem {
|
|
38470
|
-
/** Desabilita a selecão do item. */
|
|
38471
|
-
/** Texto de exibição do item. */
|
|
38472
|
-
label: string;
|
|
38473
|
-
/** Valor do item que poderá ser utilizado como referência para sua identificação. */
|
|
38474
|
-
value: string | number;
|
|
38475
|
-
/** Expande o item. */
|
|
38476
|
-
expanded?: boolean;
|
|
38477
|
-
/**
|
|
38478
|
-
* Marca o item como selecionado.
|
|
38479
|
-
*
|
|
38480
|
-
* > Caso o item que conter `subItems` for selecionado, os seus itens filhos serão também selecionados.
|
|
38481
|
-
*/
|
|
38482
|
-
selected?: boolean | null;
|
|
38483
|
-
/**
|
|
38484
|
-
* Permite ativar/desativar a seleção do item
|
|
38485
|
-
*/
|
|
38486
|
-
isSelectable?: boolean | null;
|
|
38487
|
-
/** Lista de itens do próximo nível, e assim consecutivamente até que se atinja o quarto nível. */
|
|
38488
|
-
subItems?: Array<PoTreeViewItem>;
|
|
38489
|
-
}
|
|
38490
|
-
|
|
38491
|
-
/**
|
|
38492
|
-
* @description
|
|
38493
|
-
*
|
|
38494
|
-
* O componente fornece um modelo de visualização em árvore, possibilitando a visualização das informações de maneira
|
|
38495
|
-
* hierárquica, desta forma sendo possível utilizar até 4 níveis.
|
|
38496
|
-
*
|
|
38497
|
-
* Nele é possível navegar entre os itens através da tecla *tab*, permitindo expandir ou colapsar o item em foco
|
|
38498
|
-
* por meio das teclas *enter* e *space*.
|
|
38499
|
-
*
|
|
38500
|
-
* 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.
|
|
38501
|
-
*
|
|
38502
|
-
* O componente também possui eventos disparados ao marcar/desmarcar e expandir/colapsar os itens.
|
|
38503
|
-
*/
|
|
38504
|
-
declare class PoTreeViewBaseComponent {
|
|
38505
|
-
/**
|
|
38506
|
-
* @optional
|
|
38507
|
-
*
|
|
38508
|
-
* @description
|
|
38509
|
-
*
|
|
38510
|
-
* Ação que será disparada ao colapsar um item.
|
|
38511
|
-
*
|
|
38512
|
-
* > Como parâmetro o componente envia o item colapsado.
|
|
38513
|
-
*/
|
|
38514
|
-
collapsed: EventEmitter<PoTreeViewItem>;
|
|
38515
|
-
/**
|
|
38516
|
-
* @optional
|
|
38517
|
-
*
|
|
38518
|
-
* @description
|
|
38519
|
-
*
|
|
38520
|
-
* Ação que será disparada ao expandir um item.
|
|
38521
|
-
*
|
|
38522
|
-
* > Como parâmetro o componente envia o item expandido.
|
|
38523
|
-
*/
|
|
38524
|
-
expanded: EventEmitter<PoTreeViewItem>;
|
|
38525
|
-
/**
|
|
38526
|
-
* @optional
|
|
38527
|
-
*
|
|
38528
|
-
* @description
|
|
38529
|
-
*
|
|
38530
|
-
* Ação que será disparada ao selecionar um item.
|
|
38531
|
-
*
|
|
38532
|
-
* > Como parâmetro o componente envia o item selecionado.
|
|
38533
|
-
*/
|
|
38534
|
-
selected: EventEmitter<PoTreeViewItem>;
|
|
38535
|
-
/**
|
|
38536
|
-
* @optional
|
|
38537
|
-
*
|
|
38538
|
-
* @description
|
|
38539
|
-
*
|
|
38540
|
-
* Ação que será disparada ao desfazer a seleção de um item.
|
|
38541
|
-
*
|
|
38542
|
-
* > Como parâmetro o componente envia o item que foi desmarcado.
|
|
38543
|
-
*/
|
|
38544
|
-
unselected: EventEmitter<PoTreeViewItem>;
|
|
38545
|
-
private _componentsSize;
|
|
38546
|
-
private _initialComponentsSize;
|
|
38547
|
-
private _items;
|
|
38548
|
-
private _selectable;
|
|
38549
|
-
private _maxLevel;
|
|
38550
|
-
private _singleSelect;
|
|
38551
|
-
selectedValue: string | number;
|
|
38552
|
-
/**
|
|
38553
|
-
* @optional
|
|
38554
|
-
*
|
|
38555
|
-
* @description
|
|
38556
|
-
*
|
|
38557
|
-
* Define o tamanho dos componentes de formulário:
|
|
38558
|
-
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
38559
|
-
* - `medium`: aplica a medida medium de cada componente.
|
|
38560
|
-
*
|
|
38561
|
-
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
38562
|
-
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
38563
|
-
*
|
|
38564
|
-
* @default `medium`
|
|
38565
|
-
*/
|
|
38566
|
-
set componentsSize(value: string);
|
|
38567
|
-
get componentsSize(): string;
|
|
38568
|
-
/**
|
|
38569
|
-
* Lista de itens do tipo `PoTreeViewItem` que será renderizada pelo componente.
|
|
38570
|
-
*/
|
|
38571
|
-
inputedItems: Array<PoTreeViewItem>;
|
|
38572
|
-
set items(value: Array<PoTreeViewItem>);
|
|
38573
|
-
get items(): Array<PoTreeViewItem>;
|
|
38574
|
-
/**
|
|
38575
|
-
* @optional
|
|
38576
|
-
*
|
|
38577
|
-
* @description
|
|
38578
|
-
*
|
|
38579
|
-
* Habilita uma caixa de seleção para selecionar e/ou desmarcar um item da lista.
|
|
38580
|
-
*
|
|
38581
|
-
* @default false
|
|
38582
|
-
*/
|
|
38583
|
-
set selectable(value: boolean);
|
|
38584
|
-
get selectable(): boolean;
|
|
38585
|
-
/**
|
|
38586
|
-
* @optional
|
|
38587
|
-
*
|
|
38588
|
-
* @description
|
|
38589
|
-
*
|
|
38590
|
-
* Habilita a seleção para item único atráves de po-radio.
|
|
38591
|
-
*
|
|
38592
|
-
* @default false
|
|
38593
|
-
*/
|
|
38594
|
-
set singleSelect(value: boolean);
|
|
38595
|
-
get singleSelect(): boolean;
|
|
38596
|
-
/**
|
|
38597
|
-
* @optional
|
|
38598
|
-
*
|
|
38599
|
-
* @description
|
|
38600
|
-
*
|
|
38601
|
-
* Define o máximo de níveis para o tree-view.
|
|
38602
|
-
*
|
|
38603
|
-
* > O valor padrão é 4
|
|
38604
|
-
*
|
|
38605
|
-
* @default 4
|
|
38606
|
-
*/
|
|
38607
|
-
set maxLevel(value: number);
|
|
38608
|
-
get maxLevel(): number;
|
|
38609
|
-
protected onThemeChange(): void;
|
|
38610
|
-
protected emitExpanded(treeViewItem: PoTreeViewItem): void;
|
|
38611
|
-
protected emitSelected(treeViewItem: PoTreeViewItem): void;
|
|
38612
|
-
private addChildItemInParent;
|
|
38613
|
-
private addItem;
|
|
38614
|
-
private selectAllItems;
|
|
38615
|
-
private selectItemBySubItems;
|
|
38616
|
-
private everyItemSelected;
|
|
38617
|
-
private expandParentItem;
|
|
38618
|
-
private getItemsByMaxLevel;
|
|
38619
|
-
private getItemsWithParentSelected;
|
|
38620
|
-
private updateItemsOnSelect;
|
|
38621
|
-
private applySizeBasedOnA11y;
|
|
38622
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewBaseComponent, never>;
|
|
38623
|
-
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>;
|
|
38624
|
-
}
|
|
38625
|
-
|
|
38626
|
-
/**
|
|
38627
|
-
* @docsExtends PoTreeViewBaseComponent
|
|
38628
|
-
*
|
|
38629
|
-
* @example
|
|
38630
|
-
*
|
|
38631
|
-
* <example name="po-tree-view-basic" title="PO Tree View Basic">
|
|
38632
|
-
* <file name="sample-po-tree-view-basic/sample-po-tree-view-basic.component.html"> </file>
|
|
38633
|
-
* <file name="sample-po-tree-view-basic/sample-po-tree-view-basic.component.ts"> </file>
|
|
38634
|
-
* </example>
|
|
38635
|
-
*
|
|
38636
|
-
* <example name="po-tree-view-labs" title="PO Tree View Labs">
|
|
38637
|
-
* <file name="sample-po-tree-view-labs/sample-po-tree-view-labs.component.html"> </file>
|
|
38638
|
-
* <file name="sample-po-tree-view-labs/sample-po-tree-view-labs.component.ts"> </file>
|
|
38639
|
-
* </example>
|
|
38640
|
-
*
|
|
38641
|
-
* <example name="po-tree-view-folder-structure" title="PO Tree View - Folder Structure">
|
|
38642
|
-
* <file name="sample-po-tree-view-folder-structure/sample-po-tree-view-folder-structure.component.html"> </file>
|
|
38643
|
-
* <file name="sample-po-tree-view-folder-structure/sample-po-tree-view-folder-structure.component.ts"> </file>
|
|
38644
|
-
* </example>
|
|
38645
|
-
*
|
|
38646
|
-
* <example name="po-tree-view-supermarket" title="PO Tree View - Supermarket">
|
|
38647
|
-
* <file name="sample-po-tree-view-supermarket/sample-po-tree-view-supermarket.component.html"> </file>
|
|
38648
|
-
* <file name="sample-po-tree-view-supermarket/sample-po-tree-view-supermarket.component.ts"> </file>
|
|
38649
|
-
* </example>
|
|
38650
|
-
*/
|
|
38651
|
-
declare class PoTreeViewComponent extends PoTreeViewBaseComponent implements OnInit, OnChanges {
|
|
38652
|
-
private readonly treeViewService;
|
|
38653
|
-
get hasItems(): boolean;
|
|
38654
|
-
ngOnInit(): void;
|
|
38655
|
-
ngOnChanges(changes?: SimpleChanges): void;
|
|
38656
|
-
trackByFunction(index: number): number;
|
|
38657
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewComponent, never>;
|
|
38658
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoTreeViewComponent, "po-tree-view", never, {}, {}, never, never, false, never>;
|
|
38659
|
-
}
|
|
38660
|
-
|
|
38661
|
-
declare class PoTreeViewItemComponent {
|
|
38662
|
-
private readonly treeViewService;
|
|
38663
|
-
componentsSize: string;
|
|
38664
|
-
item: PoTreeViewItem;
|
|
38665
|
-
selectable: boolean;
|
|
38666
|
-
singleSelect: boolean;
|
|
38667
|
-
selectedValue: string | number;
|
|
38668
|
-
get hasSubItems(): boolean;
|
|
38669
|
-
onClick(event: MouseEvent): void;
|
|
38670
|
-
onSelect(selectedItem: PoTreeViewItem): void;
|
|
38671
|
-
trackByFunction(index: number): number;
|
|
38672
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewItemComponent, never>;
|
|
38673
|
-
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>;
|
|
38674
|
-
}
|
|
38675
|
-
|
|
38676
|
-
declare class PoTreeViewItemHeaderComponent {
|
|
38677
|
-
inputCheckbox: any;
|
|
38678
|
-
componentsSize: string;
|
|
38679
|
-
item: PoTreeViewItem;
|
|
38680
|
-
selectable: boolean;
|
|
38681
|
-
singleSelect: boolean;
|
|
38682
|
-
expanded: EventEmitter<MouseEvent>;
|
|
38683
|
-
selected: EventEmitter<any>;
|
|
38684
|
-
selectedValue: string | number;
|
|
38685
|
-
idRadio: string;
|
|
38686
|
-
get hasSubItems(): boolean;
|
|
38687
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewItemHeaderComponent, never>;
|
|
38688
|
-
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>;
|
|
38689
|
-
}
|
|
38690
|
-
|
|
38691
|
-
/**
|
|
38692
|
-
* @description
|
|
38693
|
-
*
|
|
38694
|
-
* Módulo do componente `po-tree-view`.
|
|
38695
|
-
*
|
|
38696
|
-
* > Para o correto funcionamento do componente `po-tree-view`, deve ser importado o módulo `BrowserAnimationsModule` no
|
|
38697
|
-
* > módulo principal da sua aplicação.
|
|
38698
|
-
*
|
|
38699
|
-
* Módulo da aplicação:
|
|
38700
|
-
* ```
|
|
38701
|
-
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
38702
|
-
* import { PoModule } from '@po-ui/ng-components';
|
|
38703
|
-
* ...
|
|
38704
|
-
*
|
|
38705
|
-
* @NgModule({
|
|
38706
|
-
* imports: [
|
|
38707
|
-
* BrowserModule,
|
|
38708
|
-
* BrowserAnimationsModule,
|
|
38709
|
-
* ...
|
|
38710
|
-
* PoModule
|
|
38711
|
-
* ],
|
|
38712
|
-
* declarations: [
|
|
38713
|
-
* AppComponent,
|
|
38714
|
-
* ...
|
|
38715
|
-
* ],
|
|
38716
|
-
* providers: [],
|
|
38717
|
-
* bootstrap: [AppComponent]
|
|
38718
|
-
* })
|
|
38719
|
-
* export class AppModule { }
|
|
38720
|
-
* ```
|
|
38721
|
-
*
|
|
38722
|
-
* Em aplicações Standalone, utilize a seguinte configuração para o bootstrap:
|
|
38723
|
-
*
|
|
38724
|
-
* ```
|
|
38725
|
-
* import { bootstrapApplication } from '@angular/platform-browser';
|
|
38726
|
-
* import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
38727
|
-
* import { AppComponent } from './app.component';
|
|
38728
|
-
*
|
|
38729
|
-
* bootstrapApplication(AppComponent, {
|
|
38730
|
-
* providers: [importProvidersFrom(BrowserAnimationsModule)]
|
|
38731
|
-
* }).catch(err => console.error(err));
|
|
38732
|
-
* ```
|
|
38733
|
-
*/
|
|
38734
|
-
declare class PoTreeViewModule {
|
|
38735
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewModule, never>;
|
|
38736
|
-
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]>;
|
|
38737
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PoTreeViewModule>;
|
|
38738
|
-
}
|
|
38739
|
-
|
|
38740
|
-
/**
|
|
38741
|
-
* @usedBy PoWidgetComponent
|
|
38742
|
-
*
|
|
38743
|
-
* @description
|
|
38744
|
-
*
|
|
38745
|
-
* Interface para definição do avatar no `po-widget`.
|
|
38746
|
-
*/
|
|
38747
|
-
interface PoWidgetAvatar {
|
|
38748
|
-
/**
|
|
38749
|
-
* Fonte da imagem que pode ser um caminho local (`./assets/images/logo-black-small.png`)
|
|
38750
|
-
* ou um servidor externo (`https://po-ui.io/assets/images/logo-black-small.png`).
|
|
38751
|
-
*/
|
|
38752
|
-
src?: string;
|
|
38753
|
-
/**
|
|
38754
|
-
* @optional
|
|
38755
|
-
*
|
|
38756
|
-
* @description
|
|
38757
|
-
*
|
|
38758
|
-
* Tamanho de exibição do componente `po-avatar`.
|
|
38759
|
-
*
|
|
38760
|
-
* Valores válidos:
|
|
38761
|
-
* - `xs` (24x24)
|
|
38762
|
-
* - `sm` (32x32)
|
|
38763
|
-
* - `md` (64x64)
|
|
38764
|
-
* - `lg` (96x96)
|
|
38765
|
-
* - `xl` (144x144)
|
|
38766
|
-
*
|
|
38767
|
-
* @default `md`
|
|
38768
|
-
*/
|
|
38769
|
-
size?: string;
|
|
38770
|
-
/**
|
|
38771
|
-
* Permite a criação de template customizado para o avatar
|
|
38772
|
-
*
|
|
38773
|
-
* ```
|
|
38774
|
-
* <po-widget
|
|
38775
|
-
* [p-avatar]="{ customTemplate: customAvatar }"
|
|
38776
|
-
* />
|
|
38777
|
-
*
|
|
38778
|
-
* <ng-template #customAvatar>
|
|
38779
|
-
* ...
|
|
38780
|
-
* </ng-template>
|
|
38781
|
-
* ```
|
|
38782
|
-
*/
|
|
38783
|
-
customTemplate?: TemplateRef<any>;
|
|
38784
|
-
/**
|
|
38785
|
-
* @optional
|
|
38786
|
-
*
|
|
38787
|
-
* @description
|
|
38788
|
-
*
|
|
38789
|
-
* Define a largura em porcentagem do `customTemplate`.
|
|
38790
|
-
*
|
|
38791
|
-
* O valor máximo aceito é `50%`.
|
|
38792
|
-
*/
|
|
38793
|
-
widthCustomTemplate?: string;
|
|
38794
|
-
}
|
|
38795
|
-
|
|
38796
|
-
/**
|
|
38797
|
-
*
|
|
38798
|
-
* @description
|
|
38799
|
-
*
|
|
38800
|
-
* O componente `po-widget` é recomendado para exibição de *dashboards*, podendo ser utilizado
|
|
38801
|
-
* para incluir vários tipos de conteúdo como: gráficos, tabelas, grids e imagens.
|
|
38802
|
-
*
|
|
38803
|
-
* Além da exibição de conteúdos, este componente possibilita adicionar ações e um link
|
|
38804
|
-
* para ajuda, como também possibilita ser utilizado com ou sem sombra.
|
|
38805
|
-
*
|
|
38806
|
-
* Para controlar sua largura, é possível utilizar o [Grid System](/guides/grid-system) para um maior
|
|
38807
|
-
* controle de seu redimensionamento, assim possibilitando o tratamento para diferentes resoluções.
|
|
38808
|
-
*
|
|
38809
|
-
* #### Boas práticas
|
|
38810
|
-
*
|
|
38811
|
-
* Utilize um tamanho mínimo de largura de aproximadamente `18.75rem` no componente.
|
|
38812
|
-
*
|
|
38813
|
-
* #### Acessibilidade tratada no componente
|
|
38814
|
-
*
|
|
38815
|
-
* Algumas diretrizes de acessibilidade já são tratadas no componente, internamente, e não podem ser alteradas. São elas:
|
|
38816
|
-
* - Utiliza medidas relativas, para se adequar às preferências e necessidades de quem for utilizar o sistema.
|
|
38817
|
-
* - 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))
|
|
38818
|
-
* - 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))
|
|
38819
|
-
* - 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))
|
|
38820
|
-
*
|
|
38821
|
-
* #### Tokens customizáveis
|
|
38822
|
-
*
|
|
38823
|
-
* É possível alterar o estilo do componente usando os seguintes tokens (CSS):
|
|
38824
|
-
*
|
|
38825
|
-
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
38826
|
-
*
|
|
38827
|
-
* | Propriedade | Descrição | Valor Padrão |
|
|
38828
|
-
* |----------------------------------------------|------------------------------------------------------------------|-----------------------------------------------------------------------------|
|
|
38829
|
-
* | **Default Values** | | |
|
|
38830
|
-
* | `--font-family` | Família tipográfica usada | `var(--font-family-theme) ` |
|
|
38831
|
-
* | `--font-size` | Tamanho da fonte | `var(--font-size-sm)` |
|
|
38832
|
-
* | `--font-weight` | Peso da fonte | `var(--font-weight-bold)` |
|
|
38833
|
-
* | `--font-color` | Cor da fonte | `var(--color-neutral-dark-95)` |
|
|
38834
|
-
* | `--padding` - `@deprecated 21.x.x` | Preenchimento do componente | `1rem` |
|
|
38835
|
-
* | `--padding-header` | Preenchimento do header | `var(--spacing-sm) var(--spacing-sm) var(--spacing-xs) var(--spacing-sm)` |
|
|
38836
|
-
* | `--padding-body` | Preenchimento do body | `var(--spacing-xs) var(--spacing-sm) var(--spacing-xs) var(--spacing-sm)` |
|
|
38837
|
-
* | `--padding-avatar` | Preenchimento do avatar | `var(--spacing-sm) 0 var(--spacing-xs) var(--spacing-sm)` |
|
|
38838
|
-
* | `--padding-footer` | Preenchimento do footer | `var(--spacing-xs) var(--spacing-sm) var(--spacing-sm) var(--spacing-sm)` |
|
|
38839
|
-
* | `--border-radius` | Contém o valor do raio dos cantos do elemento | `var(--border-radius-md)` |
|
|
38840
|
-
* | `--border-width` | Contém o valor da largura dos cantos do elemento | `var(--border-width-sm)` |
|
|
38841
|
-
* | `--border-color` | Cor da borda | `var(--color-neutral-light-20)` |
|
|
38842
|
-
* | `--background` | Cor de background | `var(--color-neutral-light-00)` |
|
|
38843
|
-
* | `--shadow` | Contém o valor da sombra do elemento | `var(--shadow-md)` |
|
|
38844
|
-
* | **Hover** | | |
|
|
38845
|
-
* | `--border-color-hover` | Cor da borda no estado hover | `var(--color-action-hover)` |
|
|
38846
|
-
* | **Focused** | | |
|
|
38847
|
-
* | `--color-focused` | Cor principal no estado de focus | `var(--color-action-default)` |
|
|
38848
|
-
* | `--outline-color-focused` | Cor do outline do estado de focus | `var(--color-action-focus)` |
|
|
38849
|
-
*
|
|
38850
|
-
*/
|
|
38851
|
-
declare class PoWidgetBaseComponent {
|
|
38852
|
-
private _size?;
|
|
38853
|
-
private _initialSize?;
|
|
38854
|
-
/** Descrição da segunda ação. */
|
|
38855
|
-
/**
|
|
38856
|
-
* @optional
|
|
38857
|
-
*
|
|
38858
|
-
* @description
|
|
38859
|
-
* Define o label e exibe a ação secundária no footer do componente.
|
|
38860
|
-
*
|
|
38861
|
-
* > Exibida apenas quando `p-primary-label` estiver definida.
|
|
38862
|
-
*/
|
|
38863
|
-
secondaryLabel?: string;
|
|
38864
|
-
/**
|
|
38865
|
-
* @optional
|
|
38866
|
-
*
|
|
38867
|
-
* @description
|
|
38868
|
-
*
|
|
38869
|
-
* Caso verdadeiro o botão da ação `p-primary-label` ativará o modo `danger`.
|
|
38870
|
-
*
|
|
38871
|
-
* > Incompatível com o tipo **tertiary** da propriedade `p-kind-primary-action`.
|
|
38872
|
-
*
|
|
38873
|
-
* @default `false`
|
|
38874
|
-
*/
|
|
38875
|
-
dangerPrimaryAction: boolean;
|
|
38876
|
-
/**
|
|
38877
|
-
* @optional
|
|
38878
|
-
*
|
|
38879
|
-
* @description
|
|
38880
|
-
*
|
|
38881
|
-
* Caso verdadeiro o botão da ação `p-secondary-label` ativará o modo `danger`.
|
|
38882
|
-
*
|
|
38883
|
-
* > Incompatível com o tipo **tertiary** da propriedade `p-kind-primary-action`.
|
|
38884
|
-
*
|
|
38885
|
-
* @default `false`
|
|
38886
|
-
*/
|
|
38887
|
-
dangerSecondaryAction: boolean;
|
|
38888
|
-
/**
|
|
38889
|
-
* @optional
|
|
38890
|
-
*
|
|
38891
|
-
* @description
|
|
38892
|
-
*
|
|
38893
|
-
* Define o estilo do botão da ação `p-primary-label`, conforme o enum `PoButtonKind`.
|
|
38894
|
-
*
|
|
38895
|
-
* @default `tertiary`
|
|
38896
|
-
*/
|
|
38897
|
-
kindPrimaryAction?: string;
|
|
38898
|
-
/**
|
|
38899
|
-
* @optional
|
|
38900
|
-
*
|
|
38901
|
-
* @description
|
|
38902
|
-
*
|
|
38903
|
-
* Define o estilo do botão da ação `p-secondary-label`, conforme o enum `PoButtonKind`.
|
|
38904
|
-
*
|
|
38905
|
-
* @default `tertiary`
|
|
38906
|
-
*/
|
|
38907
|
-
kindSecondaryAction?: string;
|
|
38908
|
-
/**
|
|
38909
|
-
* @optional
|
|
38910
|
-
*
|
|
38911
|
-
* @description
|
|
38912
|
-
*
|
|
38913
|
-
* Label da tag exibida no header.
|
|
38914
|
-
*
|
|
38915
|
-
* > Quando a tag atingir uma largura máxima de 15rem (240px), será truncado com reticências.
|
|
38916
|
-
* O conteúdo completo poderá ser visualizado ao passar o mouse sobre a tag, por meio do tooltip.
|
|
38917
|
-
*/
|
|
38918
|
-
tagLabel?: string;
|
|
38919
|
-
/**
|
|
38920
|
-
* @optional
|
|
38921
|
-
*
|
|
38922
|
-
* @description
|
|
38923
|
-
*
|
|
38924
|
-
* Define o tipo da `p-tag`, conforme o enum **PoTagType**.
|
|
38925
|
-
*
|
|
38926
|
-
* Valores válidos:
|
|
38927
|
-
* - `success`: cor verde utilizada para simbolizar sucesso ou êxito.
|
|
38928
|
-
* - `warning`: cor amarela que representa aviso ou advertência.
|
|
38929
|
-
* - `danger`: cor vermelha para erro ou aviso crítico.
|
|
38930
|
-
* - `info`: cor azul claro que caracteriza conteúdo informativo.
|
|
38931
|
-
* - `neutral`: cor cinza claro para uso geral.
|
|
38932
|
-
*
|
|
38933
|
-
* @default `success`
|
|
38934
|
-
*/
|
|
38935
|
-
tagType: PoTagType | string;
|
|
38936
|
-
/**
|
|
38937
|
-
* @optional
|
|
38938
|
-
*
|
|
38939
|
-
* @description
|
|
38940
|
-
*
|
|
38941
|
-
* Define o ícone exibido ao lado do label da `p-tag`.
|
|
38942
|
-
*
|
|
38943
|
-
* É possível usar qualquer um dos ícones da [Biblioteca de ícones PO UI](https://po-ui.io/icons), conforme exemplo:
|
|
38944
|
-
* ```
|
|
38945
|
-
* <po-widget p-tag-icon="an an-user"></po-widget>
|
|
38946
|
-
* ```
|
|
38947
|
-
* Também é possível utilizar outras fontes de ícones, por exemplo a biblioteca *Font Awesome*, desde que a biblioteca
|
|
38948
|
-
* esteja carregada no projeto:
|
|
38949
|
-
* ```
|
|
38950
|
-
* <po-widget p-tag-icon="fa fa-podcast"></po-widget>
|
|
38951
|
-
* ```
|
|
38952
|
-
*
|
|
38953
|
-
* Outra opção seria a customização do ícone através do `TemplateRef`, conforme exemplo abaixo:
|
|
38954
|
-
* ```
|
|
38955
|
-
* <po-widget [p-tag-icon]="template"></po-widget>
|
|
38956
|
-
*
|
|
38957
|
-
* <ng-template #template>
|
|
38958
|
-
* <i class="fa fa-podcast" style="font-size: inherit;"></i>
|
|
38959
|
-
* </ng-template>
|
|
38960
|
-
* ```
|
|
38961
|
-
* > Para o ícone enquadrar corretamente, deve-se utilizar `font-size: inherit` caso o ícone utilizado não aplique-o.
|
|
38962
|
-
*/
|
|
38963
|
-
tagIcon: string | TemplateRef<void>;
|
|
38964
|
-
/**
|
|
38965
|
-
* @optional
|
|
38966
|
-
*
|
|
38967
|
-
* @description
|
|
38968
|
-
* Define o posicionamento da `po-tag` no cabeçalho do Widget:
|
|
38969
|
-
* - `right`: posicionada no canto superior direito do cabeçalho.
|
|
38970
|
-
* - `top`: posicionada à esquerda, acima do título (quando houver).
|
|
38971
|
-
* - `bottom`: posicionada à esquerda, abaixo do título (quando houver).
|
|
38972
|
-
*
|
|
38973
|
-
* @default `right`
|
|
38974
|
-
*/
|
|
38975
|
-
tagPosition: i0.InputSignalWithTransform<string, string>;
|
|
38976
|
-
/**
|
|
38977
|
-
* @optional
|
|
38978
|
-
*
|
|
38979
|
-
* @description
|
|
38980
|
-
*
|
|
38981
|
-
* Lista de ações exibidas no header do componente.
|
|
38982
|
-
* As propriedades das ações seguem a interface `PoPopupAction`.
|
|
38983
|
-
*/
|
|
38984
|
-
actions: Array<PoPopupAction>;
|
|
38985
|
-
/**
|
|
38986
|
-
* @optional
|
|
38987
|
-
*
|
|
38988
|
-
* @description
|
|
38989
|
-
*
|
|
38990
|
-
* Define o tamanho dos botões do componente:
|
|
38991
|
-
* - `small`: altura de 32px (disponível apenas para acessibilidade AA).
|
|
38992
|
-
* - `medium`: altura de 44px.
|
|
38993
|
-
*
|
|
38994
|
-
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
38995
|
-
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
38996
|
-
*
|
|
38997
|
-
* @default `medium`
|
|
38998
|
-
*/
|
|
38999
|
-
set size(value: string);
|
|
39000
|
-
get size(): string;
|
|
39001
|
-
/**
|
|
39002
|
-
* @optional
|
|
39003
|
-
*
|
|
39004
|
-
* @description
|
|
39005
|
-
*
|
|
39006
|
-
* Define o avatar a ser exibido à esquerda no Widget.
|
|
39007
|
-
*/
|
|
39008
|
-
avatar: i0.InputSignalWithTransform<PoWidgetAvatar, PoWidgetAvatar>;
|
|
39009
|
-
/**
|
|
39010
|
-
* @optional
|
|
39011
|
-
*
|
|
39012
|
-
* @description
|
|
39013
|
-
*
|
|
39014
|
-
* Evento disparado quando o usuário clicar no componente.
|
|
39015
|
-
* > Quando este evento está em uso, uma sombra (shadow) é aplicada automaticamente ao componente.
|
|
39016
|
-
*/
|
|
39017
|
-
click: EventEmitter<MouseEvent | KeyboardEvent>;
|
|
39909
|
+
*
|
|
39910
|
+
* Interface para definição dos itens do componente `po-tree-view`.
|
|
39911
|
+
*/
|
|
39912
|
+
interface PoTreeViewItem {
|
|
39018
39913
|
/**
|
|
39019
39914
|
* @optional
|
|
39020
39915
|
*
|
|
39021
39916
|
* @description
|
|
39022
39917
|
*
|
|
39023
|
-
*
|
|
39024
|
-
*/
|
|
39025
|
-
onDisabled: EventEmitter<any>;
|
|
39026
|
-
/**
|
|
39027
|
-
* @optional
|
|
39028
|
-
*
|
|
39029
|
-
* @description
|
|
39918
|
+
* Desabilita a interação com o item.
|
|
39030
39919
|
*
|
|
39031
|
-
*
|
|
39032
|
-
|
|
39033
|
-
primaryAction: EventEmitter<any>;
|
|
39034
|
-
/**
|
|
39035
|
-
* @optional
|
|
39920
|
+
* O estado é aplicado somente ao item em que a propriedade está configurada
|
|
39921
|
+
* e não é propagado para seus `subItems`.
|
|
39036
39922
|
*
|
|
39037
|
-
*
|
|
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.
|
|
39038
39925
|
*
|
|
39039
|
-
*
|
|
39926
|
+
* @default `false`
|
|
39040
39927
|
*/
|
|
39041
|
-
|
|
39928
|
+
disabled?: boolean;
|
|
39042
39929
|
/**
|
|
39043
39930
|
* @optional
|
|
39044
39931
|
*
|
|
39045
39932
|
* @description
|
|
39046
|
-
* Evento disparado ao clicar em **Configurações** incluído no menu de ações do header.
|
|
39047
|
-
*/
|
|
39048
|
-
setting: EventEmitter<any>;
|
|
39049
|
-
/**
|
|
39050
|
-
* @optional
|
|
39051
39933
|
*
|
|
39052
|
-
*
|
|
39053
|
-
* Evento disparado ao clicar no título definido em `p-title`.
|
|
39054
|
-
*/
|
|
39055
|
-
titleAction: EventEmitter<any>;
|
|
39056
|
-
containerHeight?: string;
|
|
39057
|
-
id: string;
|
|
39058
|
-
private _background?;
|
|
39059
|
-
private _disabled?;
|
|
39060
|
-
private _height?;
|
|
39061
|
-
private _help?;
|
|
39062
|
-
private _noShadow?;
|
|
39063
|
-
private _primary?;
|
|
39064
|
-
private _primaryLabel?;
|
|
39065
|
-
private _title?;
|
|
39066
|
-
/**
|
|
39067
|
-
* @optional
|
|
39934
|
+
* Expande o item, exibindo seus `subItems`.
|
|
39068
39935
|
*
|
|
39069
|
-
*
|
|
39936
|
+
* Quando `true`, o item será renderizado no estado expandido.
|
|
39070
39937
|
*
|
|
39071
|
-
*
|
|
39072
|
-
* > Se a imagem escolhida intervir na legibilidade do texto contido no `p-widget`,
|
|
39073
|
-
* 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`.
|
|
39074
39939
|
*
|
|
39940
|
+
* @default `false`
|
|
39075
39941
|
*/
|
|
39076
|
-
|
|
39077
|
-
get background(): string;
|
|
39942
|
+
expanded?: boolean;
|
|
39078
39943
|
/**
|
|
39079
39944
|
* @optional
|
|
39080
39945
|
*
|
|
39081
39946
|
* @description
|
|
39082
39947
|
*
|
|
39083
|
-
*
|
|
39948
|
+
* Permite ativar ou desativar a seleção do item.
|
|
39084
39949
|
*
|
|
39085
|
-
*
|
|
39950
|
+
* Quando `false`, o item não poderá ser selecionado pelo usuário.
|
|
39951
|
+
*
|
|
39952
|
+
* @deprecated v23.x.x use `disabled`
|
|
39086
39953
|
*/
|
|
39087
|
-
|
|
39088
|
-
get disabled(): boolean;
|
|
39954
|
+
isSelectable?: boolean | null;
|
|
39089
39955
|
/**
|
|
39090
|
-
* @optional
|
|
39091
|
-
*
|
|
39092
39956
|
* @description
|
|
39093
39957
|
*
|
|
39094
|
-
*
|
|
39095
|
-
*
|
|
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.
|
|
39096
39961
|
*/
|
|
39097
|
-
|
|
39098
|
-
get height(): number;
|
|
39962
|
+
label: string;
|
|
39099
39963
|
/**
|
|
39100
39964
|
* @optional
|
|
39101
39965
|
*
|
|
39102
39966
|
* @description
|
|
39103
39967
|
*
|
|
39104
|
-
*
|
|
39105
|
-
*/
|
|
39106
|
-
set help(value: string);
|
|
39107
|
-
get help(): string;
|
|
39108
|
-
/**
|
|
39109
|
-
*
|
|
39110
|
-
* @optional
|
|
39968
|
+
* Marca o item como selecionado.
|
|
39111
39969
|
*
|
|
39112
|
-
*
|
|
39970
|
+
* > Caso o item que possuir `subItems` for selecionado, os seus itens filhos serão também selecionados.
|
|
39113
39971
|
*
|
|
39114
|
-
*
|
|
39115
|
-
*
|
|
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.
|
|
39116
39974
|
*
|
|
39117
|
-
* @default `
|
|
39975
|
+
* @default `false`
|
|
39118
39976
|
*/
|
|
39119
|
-
|
|
39120
|
-
get noShadow(): boolean;
|
|
39977
|
+
selected?: boolean | null;
|
|
39121
39978
|
/**
|
|
39122
39979
|
* @optional
|
|
39123
39980
|
*
|
|
39124
39981
|
* @description
|
|
39125
39982
|
*
|
|
39126
|
-
*
|
|
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.
|
|
39127
39992
|
*
|
|
39128
39993
|
* @default `false`
|
|
39129
39994
|
*/
|
|
39130
|
-
|
|
39131
|
-
get primary(): boolean;
|
|
39995
|
+
showIcon?: boolean;
|
|
39132
39996
|
/**
|
|
39133
39997
|
* @optional
|
|
39134
39998
|
*
|
|
39135
39999
|
* @description
|
|
39136
40000
|
*
|
|
39137
|
-
*
|
|
40001
|
+
* Lista de itens do próximo nível, permitindo a construção hierárquica da árvore.
|
|
39138
40002
|
*
|
|
40003
|
+
* A estrutura pode ser aninhada recursivamente até o limite definido pela propriedade `p-max-level` do componente.
|
|
39139
40004
|
*/
|
|
39140
|
-
|
|
39141
|
-
get primaryLabel(): string;
|
|
40005
|
+
subItems?: Array<PoTreeViewItem>;
|
|
39142
40006
|
/**
|
|
39143
|
-
* @optional
|
|
39144
|
-
*
|
|
39145
40007
|
* @description
|
|
39146
40008
|
*
|
|
39147
|
-
*
|
|
40009
|
+
* Valor do item utilizado como referência para sua identificação.
|
|
39148
40010
|
*
|
|
39149
|
-
*
|
|
39150
|
-
* 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.
|
|
39151
40012
|
*/
|
|
39152
|
-
|
|
39153
|
-
get title(): string;
|
|
39154
|
-
protected onThemeChange(): void;
|
|
39155
|
-
private applySizeBasedOnA11y;
|
|
39156
|
-
private transformAvatar;
|
|
39157
|
-
private transformTagPosition;
|
|
39158
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoWidgetBaseComponent, never>;
|
|
39159
|
-
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>;
|
|
39160
|
-
static ngAcceptInputType_dangerPrimaryAction: any;
|
|
39161
|
-
static ngAcceptInputType_dangerSecondaryAction: any;
|
|
39162
|
-
}
|
|
39163
|
-
|
|
39164
|
-
/**
|
|
39165
|
-
* @docsExtends PoWidgetBaseComponent
|
|
39166
|
-
*
|
|
39167
|
-
* @example
|
|
39168
|
-
*
|
|
39169
|
-
* <example name="po-widget-basic" title="PO Widget Basic">
|
|
39170
|
-
* <file name="sample-po-widget-basic/sample-po-widget-basic.component.html"> </file>
|
|
39171
|
-
* <file name="sample-po-widget-basic/sample-po-widget-basic.component.ts"> </file>
|
|
39172
|
-
* </example>
|
|
39173
|
-
*
|
|
39174
|
-
* <example name="po-widget-labs" title="PO Widget Labs">
|
|
39175
|
-
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.html"> </file>
|
|
39176
|
-
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.ts"> </file>
|
|
39177
|
-
* <file name="sample-po-widget-labs/sample-po-widget-labs.component.css"> </file>
|
|
39178
|
-
* </example>
|
|
39179
|
-
*
|
|
39180
|
-
* <example name="po-widget-finance-dashboard" title="PO Widget - Finance dashboard">
|
|
39181
|
-
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.html"> </file>
|
|
39182
|
-
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.ts"> </file>
|
|
39183
|
-
* <file name="sample-po-widget-finance-dashboard/sample-po-widget-finance-dashboard.component.css"> </file>
|
|
39184
|
-
* </example>
|
|
39185
|
-
*
|
|
39186
|
-
* <example name="po-widget-card" title="PO Widget - Card">
|
|
39187
|
-
* <file name="sample-po-widget-card/sample-po-widget-card.component.html"> </file>
|
|
39188
|
-
* <file name="sample-po-widget-card/sample-po-widget-card.component.ts"> </file>
|
|
39189
|
-
* </example>
|
|
39190
|
-
*
|
|
39191
|
-
*/
|
|
39192
|
-
declare class PoWidgetComponent extends PoWidgetBaseComponent implements OnInit, OnChanges, AfterViewInit {
|
|
39193
|
-
protected cd: ChangeDetectorRef;
|
|
39194
|
-
protected poTheme: PoThemeService;
|
|
39195
|
-
popupTarget: any;
|
|
39196
|
-
literals: any;
|
|
39197
|
-
hasContent: boolean;
|
|
39198
|
-
poPopupComponent: PoPopupComponent;
|
|
39199
|
-
buttonPopUp: PoButtonComponent;
|
|
39200
|
-
wrapperInfo: ElementRef;
|
|
39201
|
-
wrapperTitle: ElementRef;
|
|
39202
|
-
tagElement: ElementRef;
|
|
39203
|
-
contentContainer: ElementRef<HTMLElement>;
|
|
39204
|
-
get showTitleAction(): boolean;
|
|
39205
|
-
avatarSrc: i0.Signal<string>;
|
|
39206
|
-
avatarSize: i0.Signal<string>;
|
|
39207
|
-
avatarCustomTemplate: i0.Signal<i0.TemplateRef<any>>;
|
|
39208
|
-
avatarWidthCustomTemplate: i0.Signal<string>;
|
|
39209
|
-
constructor();
|
|
39210
|
-
ngAfterViewInit(): void;
|
|
39211
|
-
get a11Level(): PoThemeA11yEnum;
|
|
39212
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
39213
|
-
ngOnInit(): void;
|
|
39214
|
-
hasTitleHelpOrSetting(): boolean;
|
|
39215
|
-
onClick(event: MouseEvent): void;
|
|
39216
|
-
onKeyDown(event: KeyboardEvent): void;
|
|
39217
|
-
openHelp(): void;
|
|
39218
|
-
runPrimaryAction(): void;
|
|
39219
|
-
runSecondaryAction(): void;
|
|
39220
|
-
runTitleAction(event: MouseEvent): void;
|
|
39221
|
-
setHeight(height: number): void;
|
|
39222
|
-
settingOutput(): void;
|
|
39223
|
-
togglePopup(targetRef: any, event: any): void;
|
|
39224
|
-
showTooltip(): boolean;
|
|
39225
|
-
closePopUp(): void;
|
|
39226
|
-
private checkDefaultActions;
|
|
39227
|
-
private updateContent;
|
|
39228
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoWidgetComponent, never>;
|
|
39229
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoWidgetComponent, "po-widget", never, {}, {}, never, ["*"], false, never>;
|
|
39230
|
-
}
|
|
39231
|
-
|
|
39232
|
-
/**
|
|
39233
|
-
* @description
|
|
39234
|
-
*
|
|
39235
|
-
* Módulo do componente po-widget
|
|
39236
|
-
*/
|
|
39237
|
-
declare class PoWidgetModule {
|
|
39238
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoWidgetModule, never>;
|
|
39239
|
-
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]>;
|
|
39240
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<PoWidgetModule>;
|
|
39241
|
-
}
|
|
39242
|
-
|
|
39243
|
-
/**
|
|
39244
|
-
* @usedBy PoSkeletonComponent
|
|
39245
|
-
*
|
|
39246
|
-
* @description
|
|
39247
|
-
*
|
|
39248
|
-
* Define os tipos de animação do componente `po-skeleton`.
|
|
39249
|
-
*/
|
|
39250
|
-
declare enum PoSkeletonAnimation {
|
|
39251
|
-
/** Sem animação */
|
|
39252
|
-
none = "none",
|
|
39253
|
-
/** Animação de pulsação */
|
|
39254
|
-
pulse = "pulse",
|
|
39255
|
-
/** Animação de brilho deslizante */
|
|
39256
|
-
shimmer = "shimmer"
|
|
39257
|
-
}
|
|
39258
|
-
|
|
39259
|
-
/**
|
|
39260
|
-
* @usedBy PoSkeletonComponent
|
|
39261
|
-
*
|
|
39262
|
-
* @description
|
|
39263
|
-
*
|
|
39264
|
-
* Define os tamanhos disponíveis para o componente `po-skeleton`.
|
|
39265
|
-
*/
|
|
39266
|
-
declare enum PoSkeletonSize {
|
|
39267
|
-
/** Tamanho extra pequeno */
|
|
39268
|
-
xs = "xs",
|
|
39269
|
-
/** Tamanho pequeno */
|
|
39270
|
-
sm = "sm",
|
|
39271
|
-
/** Tamanho médio */
|
|
39272
|
-
md = "md",
|
|
39273
|
-
/** Tamanho grande */
|
|
39274
|
-
lg = "lg",
|
|
39275
|
-
/** Tamanho extra grande */
|
|
39276
|
-
xl = "xl",
|
|
39277
|
-
/** Tamanho extra extra grande */
|
|
39278
|
-
xxl = "2xl"
|
|
40013
|
+
value: string | number;
|
|
39279
40014
|
}
|
|
39280
40015
|
|
|
39281
40016
|
/**
|
|
39282
|
-
* @usedBy PoSkeletonComponent
|
|
39283
|
-
*
|
|
39284
40017
|
* @description
|
|
39285
40018
|
*
|
|
39286
|
-
*
|
|
39287
|
-
|
|
39288
|
-
declare enum PoSkeletonType {
|
|
39289
|
-
/** Tipo padrão com cor neutra clara */
|
|
39290
|
-
normal = "normal",
|
|
39291
|
-
/** Tipo primário com cor neutra média */
|
|
39292
|
-
primary = "primary",
|
|
39293
|
-
/** Tipo de conteúdo com fundo branco */
|
|
39294
|
-
content = "content"
|
|
39295
|
-
}
|
|
39296
|
-
|
|
39297
|
-
/**
|
|
39298
|
-
* @usedBy PoSkeletonComponent
|
|
39299
|
-
*
|
|
39300
|
-
* @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`).
|
|
39301
40021
|
*
|
|
39302
|
-
*
|
|
39303
|
-
|
|
39304
|
-
|
|
39305
|
-
|
|
39306
|
-
|
|
39307
|
-
|
|
39308
|
-
|
|
39309
|
-
/** Variante quadrada (largura igual à altura) */
|
|
39310
|
-
square = "square",
|
|
39311
|
-
/** Variante circular */
|
|
39312
|
-
circle = "circle"
|
|
39313
|
-
}
|
|
39314
|
-
|
|
39315
|
-
/**
|
|
39316
|
-
* @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.
|
|
39317
40029
|
*
|
|
39318
|
-
*
|
|
39319
|
-
* melhorando a experiência do usuário ao indicar que a informação está sendo processada.
|
|
40030
|
+
* #### Navegação por teclado
|
|
39320
40031
|
*
|
|
39321
|
-
*
|
|
39322
|
-
*
|
|
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). |
|
|
39323
40043
|
*
|
|
39324
40044
|
* #### Tokens customizáveis
|
|
39325
40045
|
*
|
|
@@ -39327,245 +40047,301 @@ declare enum PoSkeletonVariant {
|
|
|
39327
40047
|
*
|
|
39328
40048
|
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
39329
40049
|
*
|
|
39330
|
-
* | Propriedade | Descrição
|
|
39331
|
-
*
|
|
39332
|
-
* | **
|
|
39333
|
-
* | `--color`
|
|
39334
|
-
* | `--color
|
|
39335
|
-
* | `--
|
|
39336
|
-
* | `--
|
|
39337
|
-
* | `--
|
|
39338
|
-
* | `--
|
|
39339
|
-
* | **
|
|
39340
|
-
* | `--
|
|
39341
|
-
* | **
|
|
39342
|
-
* | `--
|
|
39343
|
-
* |
|
|
39344
|
-
* | `--
|
|
39345
|
-
* |
|
|
39346
|
-
* |
|
|
39347
|
-
* | `--transition-property` | Propriedade CSS da transição | `all` |
|
|
39348
|
-
* | `--transition-duration` | Duração da transição de cor | `var(--duration-moderate)` |
|
|
39349
|
-
* | `--transition-timing` | Função de temporização da transição/animação | `var(--timing-continuous)` |
|
|
39350
|
-
* | **Animações** | | |
|
|
39351
|
-
* | `--animation-duration-pulse` | Duração da animação de pulsação | `var(--duration-very-slow)` |
|
|
39352
|
-
* | `--animation-duration-shimmer` | Duração da animação de brilho deslizante | `var(--duration-ultra-slow)` |
|
|
39353
|
-
*
|
|
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)` |
|
|
39354
40067
|
*/
|
|
39355
|
-
declare class
|
|
40068
|
+
declare class PoTreeViewBaseComponent {
|
|
39356
40069
|
/**
|
|
39357
40070
|
* @optional
|
|
39358
40071
|
*
|
|
39359
40072
|
* @description
|
|
39360
40073
|
*
|
|
39361
|
-
* 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.
|
|
39362
40077
|
*
|
|
39363
|
-
*
|
|
39364
|
-
*
|
|
39365
|
-
* - `rectangle`: Forma retangular (proporção 3:1 por padrão)
|
|
39366
|
-
* - `square`: Forma quadrada (largura e altura iguais)
|
|
39367
|
-
* - `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).
|
|
39368
40080
|
*
|
|
39369
|
-
* @default `
|
|
40081
|
+
* @default `medium`
|
|
39370
40082
|
*/
|
|
39371
|
-
|
|
40083
|
+
readonly componentsSizeInput: i0.InputSignal<string>;
|
|
39372
40084
|
/**
|
|
39373
40085
|
* @optional
|
|
39374
40086
|
*
|
|
39375
40087
|
* @description
|
|
39376
40088
|
*
|
|
39377
|
-
*
|
|
40089
|
+
* Desabilita o componente inteiro.
|
|
39378
40090
|
*
|
|
39379
|
-
*
|
|
39380
|
-
*
|
|
39381
|
-
* - `primary`: Cor neutra média
|
|
39382
|
-
* - `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.
|
|
39383
40093
|
*
|
|
39384
|
-
*
|
|
40094
|
+
* > O botão de expansão/recolhimento (arrow) permanece interativo mesmo quando o componente está desabilitado.
|
|
40095
|
+
*
|
|
40096
|
+
* @default `false`
|
|
39385
40097
|
*/
|
|
39386
|
-
|
|
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[]>;
|
|
39387
40105
|
/**
|
|
39388
40106
|
* @optional
|
|
39389
40107
|
*
|
|
39390
40108
|
* @description
|
|
39391
40109
|
*
|
|
39392
|
-
* Define o
|
|
40110
|
+
* Define o máximo de níveis para o tree-view.
|
|
39393
40111
|
*
|
|
39394
|
-
*
|
|
39395
|
-
* - `none`: Sem animação
|
|
39396
|
-
* - `pulse`: Animação de pulsação
|
|
39397
|
-
* - `shimmer`: Animação de brilho deslizante
|
|
40112
|
+
* > O valor padrão é 4
|
|
39398
40113
|
*
|
|
39399
|
-
* @default
|
|
40114
|
+
* @default 4
|
|
39400
40115
|
*/
|
|
39401
|
-
|
|
40116
|
+
readonly maxLevel: i0.InputSignalWithTransform<number, number>;
|
|
39402
40117
|
/**
|
|
39403
40118
|
* @optional
|
|
39404
40119
|
*
|
|
39405
40120
|
* @description
|
|
39406
40121
|
*
|
|
39407
|
-
*
|
|
39408
|
-
*
|
|
39409
|
-
* Valores válidos:
|
|
39410
|
-
* - `xs`: Extra pequeno (24px para square/circle, 72px x 24px para rectangle)
|
|
39411
|
-
* - `sm`: Pequeno (32px para square/circle, 96px x 32px para rectangle)
|
|
39412
|
-
* - `md`: Médio (48px para square/circle, 144px x 48px para rectangle)
|
|
39413
|
-
* - `lg`: Grande (64px para square/circle, 192px x 64px para rectangle)
|
|
39414
|
-
* - `xl`: Extra grande (96px para square/circle, 288px x 96px para rectangle)
|
|
39415
|
-
* - `2xl`: Extra extra grande (144px para square/circle, 432px x 144px para rectangle)
|
|
39416
|
-
*
|
|
39417
|
-
* Esta propriedade é ignorada quando `p-width` ou `p-height` são definidos explicitamente.
|
|
40122
|
+
* Remove a borda do container do componente.
|
|
39418
40123
|
*
|
|
39419
|
-
* @default
|
|
40124
|
+
* @default false
|
|
39420
40125
|
*/
|
|
39421
|
-
|
|
40126
|
+
readonly noBorder: i0.InputSignalWithTransform<boolean, boolean>;
|
|
39422
40127
|
/**
|
|
39423
40128
|
* @optional
|
|
39424
40129
|
*
|
|
39425
40130
|
* @description
|
|
39426
40131
|
*
|
|
39427
|
-
*
|
|
39428
|
-
* Aceita valores CSS válidos (px, %, em, rem).
|
|
40132
|
+
* Habilita uma caixa de seleção para selecionar e/ou desmarcar um item da lista.
|
|
39429
40133
|
*
|
|
39430
|
-
* Quando
|
|
40134
|
+
* > Quando habilitado, a propriedade `showIcon` dos itens não será aplicada.
|
|
39431
40135
|
*
|
|
39432
|
-
* @default
|
|
40136
|
+
* @default false
|
|
39433
40137
|
*/
|
|
39434
|
-
|
|
40138
|
+
readonly selectable: i0.InputSignalWithTransform<boolean, boolean>;
|
|
39435
40139
|
/**
|
|
39436
40140
|
* @optional
|
|
39437
40141
|
*
|
|
39438
40142
|
* @description
|
|
39439
40143
|
*
|
|
39440
|
-
*
|
|
39441
|
-
* Aceita valores CSS válidos (px, %, em, rem).
|
|
40144
|
+
* Habilita a seleção para item único atráves de po-radio.
|
|
39442
40145
|
*
|
|
39443
|
-
*
|
|
40146
|
+
* @default false
|
|
39444
40147
|
*/
|
|
39445
|
-
|
|
40148
|
+
readonly singleSelect: i0.InputSignalWithTransform<boolean, boolean>;
|
|
39446
40149
|
/**
|
|
39447
40150
|
* @optional
|
|
39448
40151
|
*
|
|
39449
40152
|
* @description
|
|
39450
40153
|
*
|
|
39451
|
-
*
|
|
39452
|
-
* Aceita valores CSS válidos (px, %, em, rem).
|
|
40154
|
+
* Ação que será disparada ao colapsar um item.
|
|
39453
40155
|
*
|
|
39454
|
-
*
|
|
40156
|
+
* > Como parâmetro o componente envia o item colapsado.
|
|
39455
40157
|
*/
|
|
39456
|
-
|
|
40158
|
+
readonly collapsed: i0.OutputEmitterRef<PoTreeViewItem>;
|
|
39457
40159
|
/**
|
|
39458
40160
|
* @optional
|
|
39459
40161
|
*
|
|
39460
40162
|
* @description
|
|
39461
40163
|
*
|
|
39462
|
-
*
|
|
40164
|
+
* Ação que será disparada ao expandir um item.
|
|
39463
40165
|
*
|
|
39464
|
-
*
|
|
39465
|
-
|
|
40166
|
+
* > Como parâmetro o componente envia o item expandido.
|
|
40167
|
+
*/
|
|
40168
|
+
readonly expanded: i0.OutputEmitterRef<PoTreeViewItem>;
|
|
40169
|
+
/**
|
|
40170
|
+
* @optional
|
|
39466
40171
|
*
|
|
39467
|
-
*
|
|
39468
|
-
* - Use em **skeletons únicos** ou no **primeiro skeleton de um grupo** com descrição contextual
|
|
39469
|
-
* - Evite usar em múltiplos skeletons dentro da mesma área sem contexto, para não causar repetição excessiva
|
|
40172
|
+
* @description
|
|
39470
40173
|
*
|
|
39471
|
-
*
|
|
40174
|
+
* Ação que será disparada ao selecionar um item.
|
|
39472
40175
|
*
|
|
39473
|
-
*
|
|
39474
|
-
|
|
39475
|
-
|
|
40176
|
+
* > Como parâmetro o componente envia o item selecionado.
|
|
40177
|
+
*/
|
|
40178
|
+
readonly selected: i0.OutputEmitterRef<PoTreeViewItem>;
|
|
40179
|
+
/**
|
|
40180
|
+
* @optional
|
|
39476
40181
|
*
|
|
39477
|
-
*
|
|
39478
|
-
* <po-skeleton p-aria-label="Carregando lista de produtos"></po-skeleton>
|
|
39479
|
-
* <po-skeleton p-type="primary"></po-skeleton>
|
|
39480
|
-
* <po-skeleton p-variant="circle"></po-skeleton>
|
|
40182
|
+
* @description
|
|
39481
40183
|
*
|
|
39482
|
-
*
|
|
39483
|
-
* <po-skeleton p-aria-label="Carregando"></po-skeleton> <!-- "Carregando" -->
|
|
39484
|
-
* <po-skeleton p-aria-label="Carregando"></po-skeleton> <!-- "Carregando" -->
|
|
39485
|
-
* <po-skeleton p-aria-label="Carregando"></po-skeleton> <!-- "Carregando" (repetitivo!) -->
|
|
39486
|
-
* ```
|
|
40184
|
+
* Ação que será disparada ao desfazer a seleção de um item.
|
|
39487
40185
|
*
|
|
39488
|
-
* >
|
|
39489
|
-
|
|
40186
|
+
* > Como parâmetro o componente envia o item que foi desmarcado.
|
|
40187
|
+
*/
|
|
40188
|
+
readonly unselected: i0.OutputEmitterRef<PoTreeViewItem>;
|
|
40189
|
+
/**
|
|
40190
|
+
* @optional
|
|
39490
40191
|
*
|
|
39491
|
-
*
|
|
39492
|
-
*
|
|
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.
|
|
39493
40197
|
*/
|
|
39494
|
-
|
|
39495
|
-
|
|
39496
|
-
|
|
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>;
|
|
39497
40231
|
}
|
|
39498
40232
|
|
|
39499
40233
|
/**
|
|
39500
|
-
* @docsExtends
|
|
40234
|
+
* @docsExtends PoTreeViewBaseComponent
|
|
39501
40235
|
*
|
|
39502
40236
|
* @example
|
|
39503
40237
|
*
|
|
39504
|
-
* <example name="po-
|
|
39505
|
-
* <file name="sample-po-
|
|
39506
|
-
* <file name="sample-po-
|
|
39507
|
-
* </example>
|
|
39508
|
-
*
|
|
39509
|
-
* <example name="po-skeleton-labs" title="PO Skeleton Labs">
|
|
39510
|
-
* <file name="sample-po-skeleton-labs/sample-po-skeleton-labs.component.html"> </file>
|
|
39511
|
-
* <file name="sample-po-skeleton-labs/sample-po-skeleton-labs.component.ts"> </file>
|
|
39512
|
-
* </example>
|
|
39513
|
-
*
|
|
39514
|
-
* <example name="po-skeleton-credit-card" title="PO Skeleton - Credit Card">
|
|
39515
|
-
* <file name="sample-po-skeleton-credit-card/sample-po-skeleton-credit-card.component.html"> </file>
|
|
39516
|
-
* <file name="sample-po-skeleton-credit-card/sample-po-skeleton-credit-card.component.ts"> </file>
|
|
39517
|
-
* <file name="sample-po-skeleton-credit-card/sample-po-skeleton-credit-card.component.css"> </file>
|
|
39518
|
-
* </example>
|
|
39519
|
-
*
|
|
39520
|
-
* <example name="po-skeleton-widget-card" title="PO Skeleton - Widget Card">
|
|
39521
|
-
* <file name="sample-po-skeleton-widget-card/sample-po-skeleton-widget-card.component.html"> </file>
|
|
39522
|
-
* <file name="sample-po-skeleton-widget-card/sample-po-skeleton-widget-card.component.ts"> </file>
|
|
39523
|
-
* <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>
|
|
39524
40241
|
* </example>
|
|
39525
40242
|
*
|
|
39526
|
-
* <example name="po-
|
|
39527
|
-
* <file name="sample-po-
|
|
39528
|
-
* <file name="sample-po-
|
|
39529
|
-
* <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>
|
|
39530
40246
|
* </example>
|
|
39531
40247
|
*
|
|
39532
|
-
* <example name="po-
|
|
39533
|
-
* <file name="sample-po-
|
|
39534
|
-
* <file name="sample-po-
|
|
39535
|
-
* <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>
|
|
39536
40251
|
* </example>
|
|
39537
40252
|
*
|
|
39538
|
-
* <example name="po-
|
|
39539
|
-
* <file name="sample-po-
|
|
39540
|
-
* <file name="sample-po-
|
|
39541
|
-
* <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>
|
|
39542
40256
|
* </example>
|
|
39543
40257
|
*/
|
|
39544
|
-
declare class
|
|
39545
|
-
private readonly
|
|
39546
|
-
private readonly
|
|
39547
|
-
private readonly
|
|
39548
|
-
|
|
39549
|
-
|
|
39550
|
-
|
|
39551
|
-
|
|
39552
|
-
|
|
39553
|
-
|
|
39554
|
-
|
|
39555
|
-
|
|
39556
|
-
|
|
39557
|
-
|
|
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>;
|
|
39558
40334
|
}
|
|
39559
40335
|
|
|
39560
40336
|
/**
|
|
39561
40337
|
* @description
|
|
39562
40338
|
*
|
|
39563
|
-
* Módulo do componente po-
|
|
40339
|
+
* Módulo do componente `po-tree-view`.
|
|
39564
40340
|
*/
|
|
39565
|
-
declare class
|
|
39566
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
39567
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
39568
|
-
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>;
|
|
39569
40345
|
}
|
|
39570
40346
|
|
|
39571
40347
|
/**
|
|
@@ -41083,5 +41859,5 @@ declare class PoHttpRequestInterceptorService implements HttpInterceptor {
|
|
|
41083
41859
|
static ɵprov: i0.ɵɵInjectableDeclaration<PoHttpRequestInterceptorService>;
|
|
41084
41860
|
}
|
|
41085
41861
|
|
|
41086
|
-
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 };
|
|
41087
|
-
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 };
|