@po-ui/ng-components 22.0.0-next.0 → 22.0.0-rc.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-BfgIJ-rf.mjs → po-ui-ng-components-po-chart-modal-table.component-DREfx0T_.mjs} +4 -4
- package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-BfgIJ-rf.mjs.map → po-ui-ng-components-po-chart-modal-table.component-DREfx0T_.mjs.map} +1 -1
- package/fesm2022/po-ui-ng-components.mjs +4806 -2873
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-button/enums/po-button-kind.enum.d.ts +7 -1
- package/lib/components/po-button/po-button-base.component.d.ts +27 -3
- package/lib/components/po-button/po-button.component.d.ts +2 -0
- package/lib/components/po-calendar/po-calendar-base.component.d.ts +5 -0
- package/lib/components/po-calendar/po-calendar-header/po-calendar-header.component.d.ts +2 -0
- package/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.d.ts +12 -0
- package/lib/components/po-calendar/po-calendar.component.d.ts +11 -0
- package/lib/components/po-chart/po-chart-base.component.d.ts +1 -1
- package/lib/components/po-dropdown/po-dropdown-base.component.d.ts +41 -2
- package/lib/components/po-dropdown/po-dropdown.component.d.ts +13 -5
- package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +15 -4
- package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +5 -0
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +3 -0
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +2 -0
- package/lib/components/po-field/po-datetimepicker/po-datetimepicker-base.component.d.ts +5 -0
- package/lib/components/po-field/po-datetimepicker/po-datetimepicker.component.d.ts +5 -0
- package/lib/components/po-listbox/interfaces/po-listbox-literals.interface.d.ts +6 -0
- package/lib/components/po-listbox/po-item-list/po-item-list.component.d.ts +1 -0
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +1 -0
- package/lib/components/po-listbox/po-listbox.component.d.ts +32 -5
- package/lib/components/po-popup/po-popup-action.interface.d.ts +29 -0
- package/lib/components/po-popup/po-popup-base.component.d.ts +38 -2
- package/lib/components/po-popup/po-popup.component.d.ts +16 -1
- package/lib/po.module.d.ts +2 -0
- package/lib/services/po-theme/helpers/accessibilities/po-theme-default-aaa.constant.d.ts +1 -8
- package/lib/services/po-theme/helpers/deprecated/accessibilities/po-theme-default-aa.constant.d.ts +20 -0
- package/lib/services/po-theme/helpers/deprecated/accessibilities/po-theme-default-aaa.constant.d.ts +18 -0
- package/lib/services/po-theme/helpers/deprecated/accessibilities/po-theme-density.constant.d.ts +12 -0
- package/lib/services/po-theme/helpers/deprecated/po-theme-poui.constant.d.ts +27 -0
- package/lib/services/po-theme/helpers/deprecated/types/po-theme-dark-defaults-AA.constant.d.ts +129 -0
- package/lib/services/po-theme/helpers/deprecated/types/po-theme-dark-defaults.constant.d.ts +167 -0
- package/lib/services/po-theme/helpers/deprecated/types/po-theme-light-defaults-AA.constant.d.ts +49 -0
- package/lib/services/po-theme/helpers/deprecated/types/po-theme-light-defaults.constant.d.ts +81 -0
- package/lib/services/po-theme/helpers/shared/base.constant.d.ts +137 -0
- package/lib/services/po-theme/helpers/types/po-theme-dark-defaults-AA.constant.d.ts +3 -4
- package/lib/services/po-theme/helpers/types/po-theme-dark-defaults.constant.d.ts +4 -4
- package/lib/services/po-theme/index.d.ts +8 -0
- package/lib/services/po-theme/interfaces/po-theme.interface.d.ts +15 -0
- package/lib/services/po-theme/po-theme.service.d.ts +57 -0
- package/lib/utils/po-picker-mouse-down-guard.d.ts +27 -0
- package/lib/utils/util.d.ts +16 -0
- package/package.json +5 -5
- package/po-ui-ng-components-22.0.0-rc.1.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-generate/sidemenu/index.js +5 -2
- package/schematics/ng-generate/sidemenu/index.js.map +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/v22/index.d.ts +20 -4
- package/schematics/ng-update/v22/index.js +37 -11
- package/schematics/ng-update/v22/index.js.map +1 -1
- package/schematics/ng-update/v22/migration-report.d.ts +36 -10
- package/schematics/ng-update/v22/migration-report.js +25 -11
- package/schematics/ng-update/v22/migration-report.js.map +1 -1
- package/schematics/ng-update/v22/theme-deprecated/changes.d.ts +24 -0
- package/schematics/ng-update/v22/theme-deprecated/changes.js +58 -0
- package/schematics/ng-update/v22/theme-deprecated/changes.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/index.d.ts +14 -0
- package/schematics/ng-update/v22/theme-deprecated/index.js +291 -0
- package/schematics/ng-update/v22/theme-deprecated/index.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/prompt.d.ts +49 -0
- package/schematics/ng-update/v22/theme-deprecated/prompt.js +59 -0
- package/schematics/ng-update/v22/theme-deprecated/prompt.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-bootstrap-migration.d.ts +25 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-bootstrap-migration.js +198 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-bootstrap-migration.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-style-migration.d.ts +23 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-style-migration.js +64 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-style-migration.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-ts-migration.d.ts +29 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-ts-migration.js +325 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-ts-migration.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/ts-utils.d.ts +58 -0
- package/schematics/ng-update/v22/theme-deprecated/ts-utils.js +112 -0
- package/schematics/ng-update/v22/theme-deprecated/ts-utils.js.map +1 -0
- 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 +18182 -17239
- package/po-ui-ng-components-22.0.0-next.0.tgz +0 -0
|
@@ -11,5 +11,11 @@ export declare enum PoButtonKind {
|
|
|
11
11
|
/** Estilo secundário, usado como padrão, para ações comuns. */
|
|
12
12
|
secondary = "secondary",
|
|
13
13
|
/** Estilo terciário, ideal para ações menos importantes, sem fundo preenchido. */
|
|
14
|
-
tertiary = "tertiary"
|
|
14
|
+
tertiary = "tertiary",
|
|
15
|
+
/**
|
|
16
|
+
* Estilo com brilho animado que percorre a borda do botão, usado para destacar uma chamada para ação.
|
|
17
|
+
*
|
|
18
|
+
* > Incompatível com a propriedade `p-danger`.
|
|
19
|
+
*/
|
|
20
|
+
glow = "glow"
|
|
15
21
|
}
|
|
@@ -63,6 +63,23 @@ import { PoButtonType } from './enums/po-button-type.enum';
|
|
|
63
63
|
* | `--text-color-disabled` | Cor do texto no estado disabled | `var(--color-neutral-dark-70)` |
|
|
64
64
|
* | `--color-disabled` | Cor principal no estado disabled | `var(--color-action-disabled)` |
|
|
65
65
|
* | `--background-color-disabled` | Cor de background no estado disabled | `var(--color-transparent)` |
|
|
66
|
+
* | **Glow** (`p-kind="glow"`) | | |
|
|
67
|
+
* | `--color-glow-highlight` | Cor do reflexo no estado hover | `var(--color-brand-01-light)` |
|
|
68
|
+
* | `--color-glow-ring` | Cor do brilho da borda e do brilho interno (hover) | `var(--color-neutral-light-00)` |
|
|
69
|
+
* | `--glow-animation-duration` | Duração de uma volta completa do brilho | `3200ms` |
|
|
70
|
+
* | `--glow-transition-duration` | Duração da transição entre estados | `var(--duration-extra-slow)` |
|
|
71
|
+
* | `--glow-transition-timing` | Curva de aceleração da transição entre estados | `var(--timing-exiting)` |
|
|
72
|
+
*
|
|
73
|
+
* > No estilo `glow`, o botão reutiliza os tokens `--color`, `--text-color`, `--color-hover`, `--color-pressed` e
|
|
74
|
+
* `--border-width`. O brilho percorre a borda com velocidade constante via `offset-path`. Em navegadores sem
|
|
75
|
+
* suporte a `offset-path` com formas básicas (Chrome < 116, Firefox < 122 e Safari < 18), é exibido um gradiente
|
|
76
|
+
* girando no centro do botão.
|
|
77
|
+
*
|
|
78
|
+
* > No estilo `glow`, a animação é interrompida quando o botão está desabilitado ou em carregamento,
|
|
79
|
+
* e também quando o sistema operacional do usuário solicita redução de movimento (`prefers-reduced-motion`).
|
|
80
|
+
*
|
|
81
|
+
* > No tema escuro, `--color-glow-ring` usa `var(--color-neutral-dark-95)`, para que o brilho
|
|
82
|
+
* continue claro apesar da inversão da escala neutra.
|
|
66
83
|
*
|
|
67
84
|
*/
|
|
68
85
|
export declare class PoButtonBaseComponent {
|
|
@@ -112,13 +129,16 @@ export declare class PoButtonBaseComponent {
|
|
|
112
129
|
blur: EventEmitter<any>;
|
|
113
130
|
/** Ação que será executada quando o usuário clicar sobre o `po-button`. */
|
|
114
131
|
click: EventEmitter<null>;
|
|
115
|
-
private _danger?;
|
|
116
132
|
private _disabled?;
|
|
117
133
|
private _loading?;
|
|
118
|
-
private _kind?;
|
|
119
134
|
private _size?;
|
|
120
135
|
private _initialSize?;
|
|
121
136
|
protected hasSize?: boolean;
|
|
137
|
+
private readonly kindState;
|
|
138
|
+
private readonly dangerState;
|
|
139
|
+
/** @docsPrivate */
|
|
140
|
+
readonly isGlow: import("@angular/core").Signal<boolean>;
|
|
141
|
+
private readonly isDanger;
|
|
122
142
|
/**
|
|
123
143
|
* @optional
|
|
124
144
|
*
|
|
@@ -139,7 +159,7 @@ export declare class PoButtonBaseComponent {
|
|
|
139
159
|
*
|
|
140
160
|
* Deve ser usado em ações irreversíveis que o usuário precisa ter cuidado ao executá-la, como a exclusão de um registro.
|
|
141
161
|
*
|
|
142
|
-
* > A propriedade `p-kind="tertiary"`
|
|
162
|
+
* > A propriedade será inativada ao utilizar `p-kind="tertiary"` ou `p-kind="glow"`.
|
|
143
163
|
*/
|
|
144
164
|
set danger(value: boolean);
|
|
145
165
|
get danger(): boolean;
|
|
@@ -152,6 +172,10 @@ export declare class PoButtonBaseComponent {
|
|
|
152
172
|
* - `primary`: destaca o botão, sendo recomendado para ações principais.
|
|
153
173
|
* - `secondary`: estilo padrão, ideal para ações secundárias.
|
|
154
174
|
* - `tertiary`: exibe o botão sem preenchimento no fundo, indicado para ações opcionais.
|
|
175
|
+
* - `glow`: exibe o botão em formato de pílula com um brilho animado percorrendo a borda, indicado para destacar
|
|
176
|
+
* uma chamada para ação. Deve ser usado com moderação, preferencialmente em apenas um botão por página.
|
|
177
|
+
*
|
|
178
|
+
* > O estilo `glow` é incompatível com a propriedade `p-danger`.
|
|
155
179
|
*
|
|
156
180
|
* @default `secondary`
|
|
157
181
|
*/
|
|
@@ -22,6 +22,8 @@ import { PoButtonBaseComponent } from './po-button-base.component';
|
|
|
22
22
|
*/
|
|
23
23
|
export declare class PoButtonComponent extends PoButtonBaseComponent {
|
|
24
24
|
elementRef: ElementRef;
|
|
25
|
+
/** @docsPrivate */
|
|
26
|
+
readonly glowTrail: ReadonlyArray<number>;
|
|
25
27
|
buttonElement: ElementRef;
|
|
26
28
|
constructor(elementRef: ElementRef);
|
|
27
29
|
onBlur(): void;
|
|
@@ -24,6 +24,11 @@ import { PoCalendarRangePreset } from './interfaces/po-calendar-range-preset.int
|
|
|
24
24
|
*
|
|
25
25
|
* **Importante:**
|
|
26
26
|
* - Datas fora do intervalo (`p-min-date` / `p-max-date`) aparecem desabilitadas sem alterar o *model*.
|
|
27
|
+
* - São aceitos anos entre 0000 e 9999. No seletor de ano do cabeçalho é possível digitar qualquer ano com
|
|
28
|
+
* 4 dígitos, mesmo que não esteja listado, e a navegação é bloqueada nos limites desse intervalo.
|
|
29
|
+
* - Datas no formato ISO (ex.: `'0050-05-10'`) com ano inferior a 100 são mantidas. Ao informar um objeto `Date`
|
|
30
|
+
* com ano inferior a 100, utilize o método [`setFullYear`](https://www.w3schools.com/jsref/jsref_setfullyear.asp),
|
|
31
|
+
* pois o [`new Date`](https://www.w3schools.com/js/js_dates.asp) converte esses anos para 19XX.
|
|
27
32
|
*
|
|
28
33
|
* #### Boas práticas
|
|
29
34
|
*
|
|
@@ -6,6 +6,8 @@ export declare class PoCalendarHeaderComponent implements OnInit, OnChanges {
|
|
|
6
6
|
readonly poCalendarLangService: PoCalendarLangService;
|
|
7
7
|
hidePrevious: boolean;
|
|
8
8
|
hideNext: boolean;
|
|
9
|
+
disablePrevious: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
disableNext: import("@angular/core").InputSignal<boolean>;
|
|
9
11
|
displayMonth: number;
|
|
10
12
|
displayYear: number;
|
|
11
13
|
displayMonthLabel: string;
|
|
@@ -55,6 +55,9 @@ export declare class PoCalendarWrapperComponent implements OnInit, OnChanges {
|
|
|
55
55
|
templateContext: any;
|
|
56
56
|
protected currentMonthNumber: number;
|
|
57
57
|
protected lastDisplay: string;
|
|
58
|
+
private displayYearOption;
|
|
59
|
+
private typedYearOption;
|
|
60
|
+
private readonly combosAwaitingFocusOut;
|
|
58
61
|
get monthLabel(): any;
|
|
59
62
|
get yearLabel(): any;
|
|
60
63
|
get isDayVisible(): boolean;
|
|
@@ -73,9 +76,14 @@ export declare class PoCalendarWrapperComponent implements OnInit, OnChanges {
|
|
|
73
76
|
month: number;
|
|
74
77
|
}): void;
|
|
75
78
|
private updateTemplateContext;
|
|
79
|
+
onYearInputChange(search: string, comboComponent?: any): void;
|
|
80
|
+
private getTypedYear;
|
|
81
|
+
private formatYearLabel;
|
|
76
82
|
updateDate(year: number, month: number, comboComponent?: any): void;
|
|
77
83
|
onComboBlur(comboComponent?: any): void;
|
|
84
|
+
private resetComboWithoutOptions;
|
|
78
85
|
private handleComboBlur;
|
|
86
|
+
private validateOnComboFocusOut;
|
|
79
87
|
private syncInputValue;
|
|
80
88
|
private applySelectedValue;
|
|
81
89
|
private ensureValidDisplay;
|
|
@@ -85,6 +93,10 @@ export declare class PoCalendarWrapperComponent implements OnInit, OnChanges {
|
|
|
85
93
|
private setInitialFocusedDay;
|
|
86
94
|
private ensureValidFocusedDay;
|
|
87
95
|
getDayTabIndex(day: Date, index: number): number;
|
|
96
|
+
get isPreviousMonthDisabled(): boolean;
|
|
97
|
+
get isNextMonthDisabled(): boolean;
|
|
98
|
+
isPreviousYearDisabled(step: number): boolean;
|
|
99
|
+
isNextYearDisabled(step: number): boolean;
|
|
88
100
|
onNextMonth(): void;
|
|
89
101
|
onPreviousMonth(): void;
|
|
90
102
|
updateYear(value: number): void;
|
|
@@ -34,6 +34,7 @@ export declare class PoCalendarComponent extends PoCalendarBaseComponent impleme
|
|
|
34
34
|
yearOptions: QueryList<PoButtonComponent>;
|
|
35
35
|
monthOptions: QueryList<PoButtonComponent>;
|
|
36
36
|
private readonly changeDetector;
|
|
37
|
+
private readonly elementRef;
|
|
37
38
|
private readonly poCalendarService;
|
|
38
39
|
private readonly poCalendarLangService;
|
|
39
40
|
hoverValue: Date;
|
|
@@ -67,6 +68,13 @@ export declare class PoCalendarComponent extends PoCalendarBaseComponent impleme
|
|
|
67
68
|
private getMonthOptions;
|
|
68
69
|
private getYearOptions;
|
|
69
70
|
private initializeYearAndMonthMode;
|
|
71
|
+
/**
|
|
72
|
+
* Centraliza na lista o ano selecionado, ou o ano atual quando não houver seleção, caso ele não esteja visível.
|
|
73
|
+
*/
|
|
74
|
+
scrollToSelectedYear(): void;
|
|
75
|
+
formatYearLabel(year: number): string;
|
|
76
|
+
private hasSelectedYear;
|
|
77
|
+
private updateDisplayYears;
|
|
70
78
|
getActivateDate(partType: any): any;
|
|
71
79
|
getValue(partType: any): any;
|
|
72
80
|
onSelectDate(selectedDate: any, partType?: any): void;
|
|
@@ -104,4 +112,7 @@ export declare class PoCalendarComponent extends PoCalendarBaseComponent impleme
|
|
|
104
112
|
private setMonth;
|
|
105
113
|
private setYear;
|
|
106
114
|
private writeDate;
|
|
115
|
+
private writeMonthYearDate;
|
|
116
|
+
private writeYearDate;
|
|
117
|
+
private parseYearValue;
|
|
107
118
|
}
|
|
@@ -149,7 +149,7 @@ export declare abstract class PoChartBaseComponent implements OnInit {
|
|
|
149
149
|
* - Os marcadores (*bullets*) terão seu estilo ajustado.
|
|
150
150
|
* - As outras séries ficarão com opacidade reduzida ao passar o mouse sobre a série ativa.
|
|
151
151
|
*
|
|
152
|
-
* > Disponível para gráficos do tipo `line` e `radar`.
|
|
152
|
+
* > Disponível para gráficos do tipo `line`, `area`, `column`, `bar` e `radar`.
|
|
153
153
|
*
|
|
154
154
|
* #### Exemplo de utilização:
|
|
155
155
|
* ```typescript
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
1
3
|
import { PoDropdownAction } from './po-dropdown-action.interface';
|
|
2
4
|
/**
|
|
3
5
|
* @description
|
|
@@ -64,13 +66,18 @@ export declare class PoDropdownBaseComponent {
|
|
|
64
66
|
icon: string;
|
|
65
67
|
open: boolean;
|
|
66
68
|
private _actions;
|
|
69
|
+
private _rootLazyLoad?;
|
|
67
70
|
private _disabled;
|
|
68
71
|
private _size?;
|
|
69
72
|
private _initialSize?;
|
|
70
73
|
private _position;
|
|
71
|
-
/**
|
|
72
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Lista de ações que serão exibidas no componente.
|
|
76
|
+
* Aceita um *array* de `PoDropdownAction`.
|
|
77
|
+
*/
|
|
78
|
+
set actions(value: Array<PoDropdownAction> | (() => Observable<Array<PoDropdownAction>>));
|
|
73
79
|
get actions(): Array<PoDropdownAction>;
|
|
80
|
+
get popupActions(): Array<PoDropdownAction> | (() => Observable<Array<PoDropdownAction>>);
|
|
74
81
|
/**
|
|
75
82
|
* @optional
|
|
76
83
|
*
|
|
@@ -125,6 +132,38 @@ export declare class PoDropdownBaseComponent {
|
|
|
125
132
|
*/
|
|
126
133
|
set position(value: string);
|
|
127
134
|
get position(): string;
|
|
135
|
+
/**
|
|
136
|
+
* @optional
|
|
137
|
+
*
|
|
138
|
+
* @description
|
|
139
|
+
*
|
|
140
|
+
* Evento disparado a cada clique em um item do menu.
|
|
141
|
+
* Retorna o item clicado (`PoDropdownAction`).
|
|
142
|
+
*
|
|
143
|
+
* > Não é disparado para a ação interna de voltar (`goBack`).
|
|
144
|
+
*/
|
|
145
|
+
clickItem: EventEmitter<PoDropdownAction>;
|
|
146
|
+
/**
|
|
147
|
+
* @optional
|
|
148
|
+
*
|
|
149
|
+
* @description
|
|
150
|
+
*
|
|
151
|
+
* Evento disparado no momento em que a requisição assíncrona de um subnível é iniciada.
|
|
152
|
+
* Retorna o item agrupador (`PoDropdownAction`) que originou o carregamento.
|
|
153
|
+
*
|
|
154
|
+
* > Compatível com a propriedade PoPopupAction.subItemsLazy
|
|
155
|
+
*/
|
|
156
|
+
subItemsLoad: EventEmitter<PoDropdownAction>;
|
|
157
|
+
/**
|
|
158
|
+
* @optional
|
|
159
|
+
*
|
|
160
|
+
* @description
|
|
161
|
+
*
|
|
162
|
+
* Evento disparado no momento em que a requisição assíncrona do nível raiz é iniciada
|
|
163
|
+
*
|
|
164
|
+
* > Compatível com a propriedade PoPopupAction.subItemsLazy
|
|
165
|
+
*/
|
|
166
|
+
rootItemsLoad: EventEmitter<void>;
|
|
128
167
|
get popupCustomPositions(): Array<string>;
|
|
129
168
|
protected onThemeChange(): void;
|
|
130
169
|
private applySizeBasedOnA11y;
|
|
@@ -10,11 +10,6 @@ import { PoDropdownBaseComponent } from './po-dropdown-base.component';
|
|
|
10
10
|
* <file name="sample-po-dropdown-basic/sample-po-dropdown-basic.component.ts"> </file>
|
|
11
11
|
* </example>
|
|
12
12
|
*
|
|
13
|
-
* <example name="po-dropdown-subitems" title="PO Dropdown Subitems" >
|
|
14
|
-
* <file name="sample-po-dropdown-subitems/sample-po-dropdown-subitems.component.html"> </file>
|
|
15
|
-
* <file name="sample-po-dropdown-subitems/sample-po-dropdown-subitems.component.ts"> </file>
|
|
16
|
-
* </example>
|
|
17
|
-
*
|
|
18
13
|
* <example name="po-dropdown-labs" title="PO Dropdown Labs" >
|
|
19
14
|
* <file name="sample-po-dropdown-labs/sample-po-dropdown-labs.component.html"> </file>
|
|
20
15
|
* <file name="sample-po-dropdown-labs/sample-po-dropdown-labs.component.ts"> </file>
|
|
@@ -24,6 +19,16 @@ import { PoDropdownBaseComponent } from './po-dropdown-base.component';
|
|
|
24
19
|
* <file name="sample-po-dropdown-social-network/sample-po-dropdown-social-network.component.html"> </file>
|
|
25
20
|
* <file name="sample-po-dropdown-social-network/sample-po-dropdown-social-network.component.ts"> </file>
|
|
26
21
|
* </example>
|
|
22
|
+
*
|
|
23
|
+
* <example name="po-dropdown-subitems" title="PO Dropdown Subitems" >
|
|
24
|
+
* <file name="sample-po-dropdown-subitems/sample-po-dropdown-subitems.component.html"> </file>
|
|
25
|
+
* <file name="sample-po-dropdown-subitems/sample-po-dropdown-subitems.component.ts"> </file>
|
|
26
|
+
* </example>
|
|
27
|
+
*
|
|
28
|
+
* <example name="po-dropdown-lazy-subitems" title="PO Dropdown Lazy Subitems" >
|
|
29
|
+
* <file name="sample-po-dropdown-lazy-subitems/sample-po-dropdown-lazy-subitems.component.html"> </file>
|
|
30
|
+
* <file name="sample-po-dropdown-lazy-subitems/sample-po-dropdown-lazy-subitems.component.ts"> </file>
|
|
31
|
+
* </example>
|
|
27
32
|
*/
|
|
28
33
|
export declare class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
29
34
|
private readonly renderer;
|
|
@@ -34,10 +39,13 @@ export declare class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
|
34
39
|
private resizeListener;
|
|
35
40
|
onKeyDown(event: any): void;
|
|
36
41
|
toggleDropdown(): void;
|
|
42
|
+
onPopupClose(): void;
|
|
43
|
+
private isEventInsideElement;
|
|
37
44
|
private checkClickArea;
|
|
38
45
|
private hideDropdown;
|
|
39
46
|
private initializeListeners;
|
|
40
47
|
private readonly onScroll;
|
|
48
|
+
private isScrollInsidePopup;
|
|
41
49
|
private isDropdownClosed;
|
|
42
50
|
private removeListeners;
|
|
43
51
|
private showDropdown;
|
|
@@ -30,8 +30,11 @@ import { PoHelperOptions } from '../../po-helper';
|
|
|
30
30
|
*
|
|
31
31
|
* **Importante:**
|
|
32
32
|
*
|
|
33
|
-
* -
|
|
34
|
-
*
|
|
33
|
+
* - São aceitas datas com ano entre 0000 e 9999. No calendário, além dos anos listados no seletor, é possível
|
|
34
|
+
* digitar qualquer ano com 4 dígitos.
|
|
35
|
+
* - Datas no formato ISO (ex.: `'0050-05-10'`) com ano inferior a 100 são mantidas. Ao informar um objeto `Date`
|
|
36
|
+
* com ano inferior a 100, utilize o método [`setFullYear`](https://www.w3schools.com/jsref/jsref_setfullyear.asp),
|
|
37
|
+
* pois o [`new Date`](https://www.w3schools.com/js/js_dates.asp) converte esses anos para 19XX.
|
|
35
38
|
* - Caso a data esteja inválida, o `model` receberá **'Data inválida'**.
|
|
36
39
|
* - Caso o `input` esteja passando um `[(ngModel)]`, mas não tenha um `name`, então irá ocorrer um erro
|
|
37
40
|
* do próprio Angular (`[ngModelOptions]="{standalone: true}"`).
|
|
@@ -90,8 +93,10 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
90
93
|
* Define o modo de operação do datepicker.
|
|
91
94
|
*
|
|
92
95
|
* Permite configurar o componente para seleção de:
|
|
93
|
-
* - Mês e ano (`month-year`);
|
|
94
|
-
* - Apenas ano (`year`).
|
|
96
|
+
* - Mês e ano (`month-year`), com o *model* no formato `mm/yyyy` (ex.: `'03/2025'`);
|
|
97
|
+
* - Apenas ano (`year`), com o *model* no formato `yyyy` (ex.: `'2025'`).
|
|
98
|
+
*
|
|
99
|
+
* > O ano é sempre representado com 4 dígitos, inclusive para anos inferiores a 1000 (ex.: `'03/0050'`).
|
|
95
100
|
*/
|
|
96
101
|
mode?: 'month-year' | 'year';
|
|
97
102
|
/**
|
|
@@ -101,6 +106,9 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
101
106
|
* O valor informado determina o intervalo de anos anterior e posterior
|
|
102
107
|
* à data corrente que será disponibilizado para seleção.
|
|
103
108
|
*
|
|
109
|
+
* > Caso o ano selecionado esteja fora desse intervalo, ele também é exibido na lista. Esta propriedade
|
|
110
|
+
* não se aplica ao seletor de ano do calendário padrão (sem `p-mode`).
|
|
111
|
+
*
|
|
104
112
|
* @default 150
|
|
105
113
|
*/
|
|
106
114
|
set yearRangeLimit(value: number);
|
|
@@ -495,6 +503,9 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
495
503
|
[key: string]: any;
|
|
496
504
|
};
|
|
497
505
|
private isMonthYearOrYearInvalid;
|
|
506
|
+
protected parseYearToken(value: string): number | null;
|
|
507
|
+
private convertStringToDate;
|
|
508
|
+
private convertMonthYearToDate;
|
|
498
509
|
private isDateRangeValidForMode;
|
|
499
510
|
private validateMonthYearRange;
|
|
500
511
|
private validateYearRange;
|
|
@@ -56,6 +56,7 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
56
56
|
eventListenerFunction: () => void;
|
|
57
57
|
eventResizeListener: () => void;
|
|
58
58
|
private clickListener;
|
|
59
|
+
private readonly mouseDownGuard;
|
|
59
60
|
private readonly dateRegex;
|
|
60
61
|
private readonly isoRegex;
|
|
61
62
|
private timeoutChange;
|
|
@@ -149,6 +150,7 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
149
150
|
private applyMonthYearValue;
|
|
150
151
|
private applyYearValue;
|
|
151
152
|
private parseMonthYearInput;
|
|
153
|
+
private isIncompleteZeroYear;
|
|
152
154
|
private syncCalendarMonthYear;
|
|
153
155
|
private syncCalendarYear;
|
|
154
156
|
private writeMonthYearValue;
|
|
@@ -157,6 +159,7 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
157
159
|
private isValidInputForMode;
|
|
158
160
|
private hasAttrCalendar;
|
|
159
161
|
private initializeListeners;
|
|
162
|
+
private isInsidePicker;
|
|
160
163
|
private isAdditionalHelpEventTriggered;
|
|
161
164
|
private isFocusOnFirstCombo;
|
|
162
165
|
private isFocusOnLastCombo;
|
|
@@ -168,6 +171,8 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
168
171
|
handleCleanKeyboardTab(event: KeyboardEvent): void;
|
|
169
172
|
private shouldHandleTab;
|
|
170
173
|
private focusCalendar;
|
|
174
|
+
private getCurrentMonthOption;
|
|
175
|
+
private getCurrentYearOption;
|
|
171
176
|
onCalendarKeyDown(event: KeyboardEvent): void;
|
|
172
177
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
173
178
|
hideAdditionalHelp: boolean;
|
|
@@ -44,6 +44,9 @@ import { PoCalendarRangePreset } from '../../po-calendar/interfaces/po-calendar-
|
|
|
44
44
|
*
|
|
45
45
|
* - Quando preenchidas a data inicial e final, a data inicial deve ser sempre menor ou igual a data final;
|
|
46
46
|
* - Ao passar uma data inválida via codificação, o valor será mantido no *model* e o `input` da tela aparecerá vazio;
|
|
47
|
+
* - Datas no formato ISO (ex.: `'0050-05-10'`) com ano inferior a 100 são mantidas. Ao informar um objeto `Date`
|
|
48
|
+
* com ano inferior a 100, utilize o método [`setFullYear`](https://www.w3schools.com/jsref/jsref_setfullyear.asp),
|
|
49
|
+
* pois o [`new Date`](https://www.w3schools.com/js/js_dates.asp) converte esses anos para 19XX;
|
|
47
50
|
* - Permite trabalhar com as duas datas separadamente através das propriedades `p-start-date` e `p-end-date` no lugar do
|
|
48
51
|
* `[(ngModel)]`, no entanto sem a validação do formulário;
|
|
49
52
|
* - Para a validação do formulário, utilize o `[(ngModel)]`.
|
|
@@ -52,6 +52,7 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
52
52
|
widthWithPresets: boolean;
|
|
53
53
|
private clickListener;
|
|
54
54
|
private eventResizeListener;
|
|
55
|
+
private readonly mouseDownGuard;
|
|
55
56
|
private readonly poDatepickerRangeElement;
|
|
56
57
|
private readonly MIN_CALENDAR_WIDTH_WITH_PRESETS;
|
|
57
58
|
get autocomplete(): "off" | "on";
|
|
@@ -178,5 +179,6 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
178
179
|
private updateModelByScreen;
|
|
179
180
|
private verifyFormattedDates;
|
|
180
181
|
private wasClickedOnPicker;
|
|
182
|
+
private isInsidePicker;
|
|
181
183
|
closeCalendar(): void;
|
|
182
184
|
}
|
|
@@ -32,6 +32,9 @@ import { PoTimerFormat } from '../../po-timer/enums/po-timer-format.enum';
|
|
|
32
32
|
* - O valor emitido no model inclui o offset do timezone local do navegador.
|
|
33
33
|
* - Ao receber um valor com timezone, o componente converte automaticamente para horário local.
|
|
34
34
|
* - Caso a data/hora esteja inválida, o `model` receberá a mensagem de erro localizada.
|
|
35
|
+
* - Datas no formato ISO (ex.: `'0050-05-10'`) com ano inferior a 100 são mantidas. Ao informar um objeto `Date`
|
|
36
|
+
* com ano inferior a 100, utilize o método [`setFullYear`](https://www.w3schools.com/jsref/jsref_setfullyear.asp),
|
|
37
|
+
* pois o [`new Date`](https://www.w3schools.com/js/js_dates.asp) converte esses anos para 19XX.
|
|
35
38
|
* - Caso o `input` esteja passando um `[(ngModel)]`, mas não tenha um `name`, então irá ocorrer um erro
|
|
36
39
|
* do próprio Angular (`[ngModelOptions]="{standalone: true}"`).
|
|
37
40
|
*
|
|
@@ -514,6 +517,8 @@ export declare abstract class PoDatetimepickerBaseComponent implements ControlVa
|
|
|
514
517
|
private timeToSeconds;
|
|
515
518
|
private resolveFormat;
|
|
516
519
|
private processStringValue;
|
|
520
|
+
private hasLocalOffsetWithSeconds;
|
|
521
|
+
private copyDateWithTime;
|
|
517
522
|
private normalizeTimePart;
|
|
518
523
|
private extractTimeFromDate;
|
|
519
524
|
private requiredFailed;
|
|
@@ -47,9 +47,12 @@ export declare class PoDatetimepickerComponent extends PoDatetimepickerBaseCompo
|
|
|
47
47
|
isInputFocused: boolean;
|
|
48
48
|
private clickListener;
|
|
49
49
|
private eventResizeListener;
|
|
50
|
+
private readonly mouseDownGuard;
|
|
50
51
|
private valueBeforeChange;
|
|
51
52
|
private hadValueOnOpen;
|
|
52
53
|
private isTodayPresetInProgress;
|
|
54
|
+
private lastSyncedCalendar;
|
|
55
|
+
private lastSyncedValue;
|
|
53
56
|
constructor();
|
|
54
57
|
ngAfterViewInit(): void;
|
|
55
58
|
ngOnDestroy(): void;
|
|
@@ -132,10 +135,12 @@ export declare class PoDatetimepickerComponent extends PoDatetimepickerBaseCompo
|
|
|
132
135
|
private normalizeTimeWithSeconds;
|
|
133
136
|
private syncDateFromInput;
|
|
134
137
|
private syncCalendarAndTimer;
|
|
138
|
+
private getSyncedValue;
|
|
135
139
|
private getExpectedInputLength;
|
|
136
140
|
private setCalendarPosition;
|
|
137
141
|
protected adjustCalendarPosition(): void;
|
|
138
142
|
private initializeListeners;
|
|
143
|
+
private isInsidePicker;
|
|
139
144
|
private removeListeners;
|
|
140
145
|
private readonly onScroll;
|
|
141
146
|
private setDialogPickerStyleDisplay;
|
|
@@ -15,4 +15,10 @@ export interface PoListBoxLiterals {
|
|
|
15
15
|
/** Texto do checkbox para selecionar todos os itens. */
|
|
16
16
|
selectAll?: string;
|
|
17
17
|
footerActionListbox?: string;
|
|
18
|
+
/** Mensagem exibida quando o carregamento assíncrono de um subnível falha. */
|
|
19
|
+
subItemsErrorMessage?: string;
|
|
20
|
+
/** Texto acessível anunciado durante o carregamento assíncrono de um subnível. */
|
|
21
|
+
subItemsLoading?: string;
|
|
22
|
+
/** Texto do botão para tentar novamente o carregamento de um subnível. */
|
|
23
|
+
retry?: string;
|
|
18
24
|
}
|
|
@@ -8,6 +8,7 @@ export declare class PoItemListComponent extends PoItemListBaseComponent impleme
|
|
|
8
8
|
selectedView: PoItemListOption;
|
|
9
9
|
protected param: any;
|
|
10
10
|
protected clickListener: () => void;
|
|
11
|
+
private lastSafeHtml;
|
|
11
12
|
private shouldUpdateSelected;
|
|
12
13
|
ngOnChanges(changes: SimpleChanges): void;
|
|
13
14
|
onCheckboxItem(): void;
|
|
@@ -75,6 +75,7 @@ export declare class PoListBoxBaseComponent {
|
|
|
75
75
|
clickTab: EventEmitter<any>;
|
|
76
76
|
changeStateTabs: EventEmitter<any>;
|
|
77
77
|
clickItem: EventEmitter<any>;
|
|
78
|
+
subItemsLoad: EventEmitter<any>;
|
|
78
79
|
footerActionListboxEvent: EventEmitter<any>;
|
|
79
80
|
constructor(languageService: PoLanguageService);
|
|
80
81
|
protected onThemeChange(): void;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges, WritableSignal } from '@angular/core';
|
|
2
2
|
import { CdkListbox, CdkOption } from '@angular/cdk/listbox';
|
|
3
3
|
import { PoListBoxBaseComponent } from './po-listbox-base.component';
|
|
4
|
-
import { PoItemListOptionGroup } from './po-item-list/interfaces/po-item-list-option-group.interface';
|
|
5
|
-
import { PoItemListOption } from './po-item-list/interfaces/po-item-list-option.interface';
|
|
6
4
|
import { PoSearchListComponent } from './po-search-list/po-search-list.component';
|
|
7
5
|
import { PoDropdownAction } from '../po-dropdown/po-dropdown-action.interface';
|
|
8
6
|
import { Observable } from 'rxjs';
|
|
@@ -10,6 +8,16 @@ export declare class PoListBoxComponent extends PoListBoxBaseComponent implement
|
|
|
10
8
|
element: ElementRef<any>;
|
|
11
9
|
currentItems: Array<PoDropdownAction>;
|
|
12
10
|
currentGroup: PoDropdownAction | null;
|
|
11
|
+
readonly subItemsLoading: WritableSignal<Record<string, boolean>>;
|
|
12
|
+
readonly subItemsError: WritableSignal<Record<string, boolean>>;
|
|
13
|
+
readonly subItemsSkeletonPlaceholders: number[];
|
|
14
|
+
rootLazyLoad?: () => Observable<Array<PoDropdownAction>>;
|
|
15
|
+
rootItemsLoad: EventEmitter<void>;
|
|
16
|
+
contentChange: EventEmitter<void>;
|
|
17
|
+
private readonly loadedSubItems;
|
|
18
|
+
private lastLoadedGroup;
|
|
19
|
+
private rootLoaded;
|
|
20
|
+
private readonly destroySubItems$;
|
|
13
21
|
private readonly navigationStack;
|
|
14
22
|
private readonly renderer;
|
|
15
23
|
private readonly router;
|
|
@@ -30,12 +38,30 @@ export declare class PoListBoxComponent extends PoListBoxBaseComponent implement
|
|
|
30
38
|
ngOnChanges(changes?: SimpleChanges): void;
|
|
31
39
|
ngOnDestroy(): void;
|
|
32
40
|
openGroup(group: PoDropdownAction, event?: MouseEvent | KeyboardEvent): void;
|
|
41
|
+
private loadSubItemsAsync;
|
|
42
|
+
onRetryKeydown(event: KeyboardEvent, scope: 'root' | 'subItems'): void;
|
|
43
|
+
retrySubItems(event?: MouseEvent | KeyboardEvent): void;
|
|
44
|
+
loadRootItemsAsync(): void;
|
|
45
|
+
retryRootItems(event?: MouseEvent | KeyboardEvent): void;
|
|
46
|
+
isRootLoading(): boolean;
|
|
47
|
+
isRootError(): boolean;
|
|
48
|
+
isSubItemsLoading(group: PoDropdownAction | null): boolean;
|
|
49
|
+
isSubItemsError(group: PoDropdownAction | null): boolean;
|
|
50
|
+
isFunction(value: unknown): boolean;
|
|
51
|
+
isGroupItem(item: PoDropdownAction): boolean;
|
|
52
|
+
private hasSubItems;
|
|
53
|
+
private getGroupKey;
|
|
54
|
+
private setSubItemsState;
|
|
55
|
+
private clearSubItemsState;
|
|
56
|
+
private focusGroupHeader;
|
|
33
57
|
goBack(event: MouseEvent | KeyboardEvent): void;
|
|
34
58
|
onKeydownGoBack(event: KeyboardEvent, currentGroup?: PoDropdownAction): void;
|
|
35
59
|
protected onKeydownTemplate(event: KeyboardEvent): void;
|
|
36
|
-
onSelectItem(itemListAction:
|
|
60
|
+
onSelectItem(itemListAction: any, event?: MouseEvent | KeyboardEvent): void | Promise<boolean>;
|
|
37
61
|
onSelectAllCheckboxKeyDown(event: KeyboardEvent): void;
|
|
38
|
-
onKeyDown(itemListAction:
|
|
62
|
+
onKeyDown(itemListAction: any, event?: KeyboardEvent): void;
|
|
63
|
+
private handleArrowRightKey;
|
|
64
|
+
private handleEnterOrSpaceKey;
|
|
39
65
|
checkboxClicked({ option, selected }: {
|
|
40
66
|
option: any;
|
|
41
67
|
selected: any;
|
|
@@ -55,6 +81,7 @@ export declare class PoListBoxComponent extends PoListBoxBaseComponent implement
|
|
|
55
81
|
private getSelectedItem;
|
|
56
82
|
scrollToAndSelectCurrentItem(): void;
|
|
57
83
|
protected onListboxFocusIn(event: FocusEvent): void;
|
|
84
|
+
private focusFirstOptionWhenNoneActive;
|
|
58
85
|
protected checkInfiniteScroll(): void;
|
|
59
86
|
protected getSizeLoading(): "xs" | "sm" | "md";
|
|
60
87
|
protected getTextLoading(): "" | " ";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
/**
|
|
3
4
|
* @usedBy PoPopupComponent, PoWidgetComponent
|
|
4
5
|
*
|
|
@@ -111,6 +112,10 @@ export interface PoPopupAction {
|
|
|
111
112
|
*
|
|
112
113
|
* Define uma lista de subitens para criação de menus aninhados.
|
|
113
114
|
*
|
|
115
|
+
* ```
|
|
116
|
+
* { label: 'Relatórios', subItems: [{ label: 'Mensal' }, { label: 'Anual' }] }
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
114
119
|
* Ao definir esta propriedade, o item exibirá um ícone indicador de subnível.
|
|
115
120
|
* Recomenda-se utilizar no máximo três níveis hierárquicos para garantir a usabilidade.
|
|
116
121
|
*
|
|
@@ -121,5 +126,29 @@ export interface PoPopupAction {
|
|
|
121
126
|
* > Em subníveis aninhados, o `icon` do agrupador é substituído pelo indicador de navegação (seta).
|
|
122
127
|
*/
|
|
123
128
|
subItems?: Array<PoPopupAction>;
|
|
129
|
+
/**
|
|
130
|
+
* @optional
|
|
131
|
+
*
|
|
132
|
+
* @description
|
|
133
|
+
*
|
|
134
|
+
* Define o carregamento assíncrono (lazy loading) dos subitens de um agrupador.
|
|
135
|
+
*
|
|
136
|
+
* Recebe o item agrupador e retorna um `Observable<Array<PoPopupAction>>`. A requisição é disparada
|
|
137
|
+
* **apenas** no momento da expansão (clique ou atalho de teclado), exibindo placeholders com `po-skeleton`
|
|
138
|
+
* enquanto os dados são carregados:
|
|
139
|
+
*
|
|
140
|
+
* ```
|
|
141
|
+
* {
|
|
142
|
+
* label: 'Relatórios',
|
|
143
|
+
* subItemsLazy: (item) => this.reportService.getReports(item)
|
|
144
|
+
* }
|
|
145
|
+
* ```
|
|
146
|
+
*
|
|
147
|
+
* > O resultado é armazenado em cache após o primeiro carregamento bem-sucedido.
|
|
148
|
+
* Em caso de falha, é exibida uma mensagem com a opção de tentar novamente.
|
|
149
|
+
*
|
|
150
|
+
* Ao definir esta propriedade, o item exibirá um ícone indicador de subnível.
|
|
151
|
+
*/
|
|
152
|
+
subItemsLazy?: (item: PoPopupAction) => Observable<Array<PoPopupAction>>;
|
|
124
153
|
$subItemTemplate?: TemplateRef<any>;
|
|
125
154
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import { PoPopupAction } from './po-popup-action.interface';
|
|
3
4
|
/**
|
|
4
5
|
* @description
|
|
@@ -78,10 +79,14 @@ export declare class PoPopupBaseComponent {
|
|
|
78
79
|
private _position?;
|
|
79
80
|
private _size?;
|
|
80
81
|
private _target;
|
|
82
|
+
rootLazyLoad?: () => Observable<Array<PoPopupAction>>;
|
|
81
83
|
get computedListboxSubitems(): boolean;
|
|
82
84
|
templateIcon: boolean;
|
|
83
|
-
/**
|
|
84
|
-
|
|
85
|
+
/**
|
|
86
|
+
* Lista de ações que serão exibidas no componente.
|
|
87
|
+
* Aceita um *array* de `PoPopupAction`.
|
|
88
|
+
*/
|
|
89
|
+
set actions(value: Array<PoPopupAction> | (() => Observable<Array<PoPopupAction>>));
|
|
85
90
|
get actions(): Array<PoPopupAction>;
|
|
86
91
|
/**
|
|
87
92
|
* @optional
|
|
@@ -209,6 +214,37 @@ export declare class PoPopupBaseComponent {
|
|
|
209
214
|
set target(value: any);
|
|
210
215
|
get target(): any;
|
|
211
216
|
closeEvent: EventEmitter<any>;
|
|
217
|
+
/**
|
|
218
|
+
* @optional
|
|
219
|
+
*
|
|
220
|
+
* @description
|
|
221
|
+
*
|
|
222
|
+
* Evento disparado a cada clique em um item do menu.
|
|
223
|
+
* Retorna o item clicado (`PoDropdownAction`).
|
|
224
|
+
*
|
|
225
|
+
* > Não é disparado para a ação interna de voltar (`goBack`).
|
|
226
|
+
*/
|
|
212
227
|
clickItem: EventEmitter<any>;
|
|
213
228
|
openEvent: EventEmitter<any>;
|
|
229
|
+
/**
|
|
230
|
+
* @optional
|
|
231
|
+
*
|
|
232
|
+
* @description
|
|
233
|
+
*
|
|
234
|
+
* Evento disparado no momento em que a requisição assíncrona de um subnível é iniciada.
|
|
235
|
+
* Retorna o item agrupador (`PoPopupAction`) que originou o carregamento.
|
|
236
|
+
*
|
|
237
|
+
* > Compatível com a propriedade PoPopupAction.subItemsLazy
|
|
238
|
+
*/
|
|
239
|
+
subItemsLoad: EventEmitter<PoPopupAction>;
|
|
240
|
+
/**
|
|
241
|
+
* @optional
|
|
242
|
+
*
|
|
243
|
+
* @description
|
|
244
|
+
*
|
|
245
|
+
* Evento disparado no momento em que a requisição assíncrona do nível raiz é iniciada
|
|
246
|
+
*
|
|
247
|
+
* > Compatível com a propriedade PoPopupAction.subItemsLazy
|
|
248
|
+
*/
|
|
249
|
+
rootItemsLoad: EventEmitter<void>;
|
|
214
250
|
}
|