@po-ui/ng-components 22.0.0-rc.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-B6drxxln.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-B6drxxln.mjs.map → po-ui-ng-components-po-chart-modal-table.component-DREfx0T_.mjs.map} +1 -1
- package/fesm2022/po-ui-ng-components.mjs +2895 -1477
- 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-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/po-item-list/po-item-list.component.d.ts +1 -0
- package/lib/components/po-listbox/po-listbox.component.d.ts +1 -0
- 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 +4 -4
- package/po-ui-ng-components-22.0.0-rc.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/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 +17922 -17137
- package/po-ui-ng-components-22.0.0-rc.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
|
}
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -81,6 +81,7 @@ export declare class PoListBoxComponent extends PoListBoxBaseComponent implement
|
|
|
81
81
|
private getSelectedItem;
|
|
82
82
|
scrollToAndSelectCurrentItem(): void;
|
|
83
83
|
protected onListboxFocusIn(event: FocusEvent): void;
|
|
84
|
+
private focusFirstOptionWhenNoneActive;
|
|
84
85
|
protected checkInfiniteScroll(): void;
|
|
85
86
|
protected getSizeLoading(): "xs" | "sm" | "md";
|
|
86
87
|
protected getTextLoading(): "" | " ";
|
package/lib/po.module.d.ts
CHANGED
|
@@ -3,12 +3,5 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const poThemeDefaultAAA: {
|
|
5
5
|
perComponent: {};
|
|
6
|
-
onRoot: {
|
|
7
|
-
'--font-family': string;
|
|
8
|
-
'--font-family-theme': string;
|
|
9
|
-
'--font-family-theme-bold': string;
|
|
10
|
-
'--font-family-theme-extra-light': string;
|
|
11
|
-
'--font-family-heading': string;
|
|
12
|
-
'--font-family-code': string;
|
|
13
|
-
};
|
|
6
|
+
onRoot: {};
|
|
14
7
|
};
|
package/lib/services/po-theme/helpers/deprecated/accessibilities/po-theme-default-aa.constant.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated v24.x.x use `poThemeDefaultAA`
|
|
3
|
+
*
|
|
4
|
+
* Define estilos específicos por componente e onRoot para temas de acessibilidade AA.
|
|
5
|
+
*
|
|
6
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultAA`, do novo tema padrão.
|
|
7
|
+
*/
|
|
8
|
+
export declare const poThemeDefaultAA: {
|
|
9
|
+
perComponent: {};
|
|
10
|
+
onRoot: {
|
|
11
|
+
'--outline-width': string;
|
|
12
|
+
'--outline-width-focus-visible': string;
|
|
13
|
+
'--font-family': string;
|
|
14
|
+
'--font-family-theme': string;
|
|
15
|
+
'--font-family-theme-bold': string;
|
|
16
|
+
'--font-family-theme-extra-light': string;
|
|
17
|
+
'--font-family-heading': string;
|
|
18
|
+
'--font-family-code': string;
|
|
19
|
+
};
|
|
20
|
+
};
|
package/lib/services/po-theme/helpers/deprecated/accessibilities/po-theme-default-aaa.constant.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated v24.x.x use `poThemeDefaultAAA`
|
|
3
|
+
*
|
|
4
|
+
* Define estilos específicos por componente e onRoot para temas de acessibilidade AAA.
|
|
5
|
+
*
|
|
6
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultAAA`, do novo tema padrão.
|
|
7
|
+
*/
|
|
8
|
+
export declare const poThemeDefaultAAA: {
|
|
9
|
+
perComponent: {};
|
|
10
|
+
onRoot: {
|
|
11
|
+
'--font-family': string;
|
|
12
|
+
'--font-family-theme': string;
|
|
13
|
+
'--font-family-theme-bold': string;
|
|
14
|
+
'--font-family-theme-extra-light': string;
|
|
15
|
+
'--font-family-heading': string;
|
|
16
|
+
'--font-family-code': string;
|
|
17
|
+
};
|
|
18
|
+
};
|
package/lib/services/po-theme/helpers/deprecated/accessibilities/po-theme-density.constant.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const poThemeDensity: {
|
|
2
|
+
small: {
|
|
3
|
+
'--default-spacing-0': string;
|
|
4
|
+
'--default-spacing-xs': string;
|
|
5
|
+
'--default-spacing-sm': string;
|
|
6
|
+
'--default-spacing-md': string;
|
|
7
|
+
'--default-spacing-lg': string;
|
|
8
|
+
'--default-spacing-xl': string;
|
|
9
|
+
'--default-line-height-xs': string;
|
|
10
|
+
'--default-spacing-squish-xs': string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PoThemeTokens } from '../../interfaces/po-theme-tokens.interface';
|
|
2
|
+
import { PoTheme } from '../../interfaces/po-theme.interface';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated v24.x.x use `poThemeDefaultLight`
|
|
5
|
+
*
|
|
6
|
+
* Tokens de tema padrão para temas claros.
|
|
7
|
+
*
|
|
8
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultLight`, do novo tema padrão.
|
|
9
|
+
*/
|
|
10
|
+
declare const poThemeDefaultLight: PoThemeTokens;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated v24.x.x use `poThemeDefaultDark`
|
|
13
|
+
*
|
|
14
|
+
* Tokens de tema padrão para o tema escuro.
|
|
15
|
+
*
|
|
16
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultDark`, do novo tema padrão.
|
|
17
|
+
*/
|
|
18
|
+
declare const poThemeDefaultDark: PoThemeTokens;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated v24.x.x use `poThemeDefault`
|
|
21
|
+
*
|
|
22
|
+
* Tema padrão.
|
|
23
|
+
*
|
|
24
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefault`, do novo tema padrão.
|
|
25
|
+
*/
|
|
26
|
+
declare const poThemeDefault: PoTheme;
|
|
27
|
+
export { poThemeDefault, poThemeDefaultDark, poThemeDefaultLight };
|
package/lib/services/po-theme/helpers/deprecated/types/po-theme-dark-defaults-AA.constant.d.ts
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { PoThemeColorCategorical } from '../../../interfaces/po-theme-color.interface';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated v24.x.x use `poThemeDefaultCategoricalsDarkAA`
|
|
4
|
+
*
|
|
5
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultCategoricalsDarkAA`, do novo tema padrão.
|
|
6
|
+
*/
|
|
7
|
+
declare const poThemeDefaultCategoricalsDarkAA: PoThemeColorCategorical;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated v24.x.x use `poThemeDefaultCategoricalsOverlayDarkAA`
|
|
10
|
+
*
|
|
11
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultCategoricalsOverlayDarkAA`, do novo tema padrão.
|
|
12
|
+
*/
|
|
13
|
+
declare const poThemeDefaultCategoricalsOverlayDarkAA: PoThemeColorCategorical;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated v24.x.x use `poThemeDefaultDarkValuesAA`
|
|
16
|
+
*
|
|
17
|
+
* Define estilos específicos por componente e onRoot para temas escuros.
|
|
18
|
+
*
|
|
19
|
+
* > Essa constante pertence ao tema padrão anterior, está **depreciada** e será removida na versão `24.x.x`. Recomendamos utilizar `poThemeDefaultDarkValuesAA`, do novo tema padrão.
|
|
20
|
+
*/
|
|
21
|
+
declare const poThemeDefaultDarkValuesAA: {
|
|
22
|
+
perComponent: {
|
|
23
|
+
'.po-tab-border-active': {
|
|
24
|
+
'background-color': string;
|
|
25
|
+
};
|
|
26
|
+
'po-overlay': {
|
|
27
|
+
'--color-overlay': string;
|
|
28
|
+
};
|
|
29
|
+
'po-modal': {
|
|
30
|
+
'--color-overlay': string;
|
|
31
|
+
};
|
|
32
|
+
'po-toaster': {
|
|
33
|
+
'--color-icon': string;
|
|
34
|
+
'--color-icon-warning': string;
|
|
35
|
+
};
|
|
36
|
+
'po-badge': {
|
|
37
|
+
'--color': string;
|
|
38
|
+
};
|
|
39
|
+
'po-badge[p-status=warning]': {
|
|
40
|
+
'--color': string;
|
|
41
|
+
};
|
|
42
|
+
'po-button': {
|
|
43
|
+
'--color-glow-ring': string;
|
|
44
|
+
};
|
|
45
|
+
'po-link': {
|
|
46
|
+
'--text-color-visited': string;
|
|
47
|
+
};
|
|
48
|
+
'po-rich-text-body .po-rich-text-body:focus-visible, po-info .po-info-link:focus-visible, po-list-view a.po-list-view-title-link:focus-visible, po-stepper-circle .po-stepper-circle:focus-visible': {
|
|
49
|
+
'border-color': string;
|
|
50
|
+
'outline-color': string;
|
|
51
|
+
'outline-width': string;
|
|
52
|
+
'outline-style': string;
|
|
53
|
+
'outline-offset': string;
|
|
54
|
+
};
|
|
55
|
+
'po-container': {
|
|
56
|
+
'--background': string;
|
|
57
|
+
};
|
|
58
|
+
'div.po-lookup-filter-content input.po-input, input.po-input, po-datepicker, po-datepicker-range, po-decimal, po-email, po-input, po-login, po-lookup, po-number, po-password, po-url, po-combo, po-search, po-select, po-multiselect, po-timepicker': {
|
|
59
|
+
'--background-disabled': string;
|
|
60
|
+
};
|
|
61
|
+
'po-input input:-webkit-autofill, po-datepicker input:-webkit-autofill, po-datepicker-range input:-webkit-autofill, po-decimal input:-webkit-autofill, po-email input:-webkit-autofill, po-input input:-webkit-autofill, po-login input:-webkit-autofill, po-lookup input:-webkit-autofill, po-number input:-webkit-autofill, po-password input:-webkit-autofill, po-url input:-webkit-autofill, po-combo input:-webkit-autofill': {
|
|
62
|
+
'-webkit-background-clip': string;
|
|
63
|
+
'-webkit-text-fill-color': string;
|
|
64
|
+
transition: string;
|
|
65
|
+
'box-shadow': string;
|
|
66
|
+
};
|
|
67
|
+
'po-overlay, po-page-slide': {
|
|
68
|
+
'--color-overlay': string;
|
|
69
|
+
};
|
|
70
|
+
'po-select': {
|
|
71
|
+
'--color-hover': string;
|
|
72
|
+
};
|
|
73
|
+
'.po-listbox-group-header .po-tag': {
|
|
74
|
+
color: string;
|
|
75
|
+
'background-color': string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
onRoot: {
|
|
79
|
+
'--color-caption-categorical-01': string;
|
|
80
|
+
'--color-caption-categorical-02': string;
|
|
81
|
+
'--color-caption-categorical-03': string;
|
|
82
|
+
'--color-caption-categorical-04': string;
|
|
83
|
+
'--color-caption-categorical-05': string;
|
|
84
|
+
'--color-caption-categorical-06': string;
|
|
85
|
+
'--color-caption-categorical-07': string;
|
|
86
|
+
'--color-caption-categorical-08': string;
|
|
87
|
+
'--color-caption-categorical-overlay-01': string;
|
|
88
|
+
'--color-caption-categorical-overlay-02': string;
|
|
89
|
+
'--color-caption-categorical-overlay-03': string;
|
|
90
|
+
'--color-caption-categorical-overlay-04': string;
|
|
91
|
+
'--color-caption-categorical-overlay-05': string;
|
|
92
|
+
'--color-caption-categorical-overlay-06': string;
|
|
93
|
+
'--color-caption-categorical-overlay-07': string;
|
|
94
|
+
'--color-caption-categorical-overlay-08': string;
|
|
95
|
+
'--font-family': string;
|
|
96
|
+
'--font-family-theme': string;
|
|
97
|
+
'--font-family-theme-bold': string;
|
|
98
|
+
'--font-family-theme-extra-light': string;
|
|
99
|
+
'--font-family-heading': string;
|
|
100
|
+
'--font-family-code': string;
|
|
101
|
+
'--color-neutral': string;
|
|
102
|
+
'--color-secondary': string;
|
|
103
|
+
'--color-secondary-light-20': string;
|
|
104
|
+
'--color-secondary-light-40': string;
|
|
105
|
+
'--color-secondary-dark-20': string;
|
|
106
|
+
'--color-secondary-dark-40': string;
|
|
107
|
+
'--color-secondary-dark-80': string;
|
|
108
|
+
'--color-black-alpha-10': string;
|
|
109
|
+
'--color-black-alpha-15': string;
|
|
110
|
+
'--color-black-alpha-30': string;
|
|
111
|
+
'--color-po-user-guide-overlay': string;
|
|
112
|
+
'--color-primary-light-80': string;
|
|
113
|
+
'--color-primary-light-95': string;
|
|
114
|
+
'--color-primary-alpha-50': string;
|
|
115
|
+
'--color-primary-dark-20': string;
|
|
116
|
+
'--color-primary-dark-40': string;
|
|
117
|
+
'--color-secondary-dark-60-alpha-70': string;
|
|
118
|
+
'--color-tertiary-light-90': string;
|
|
119
|
+
'--color-tertiary-dark-5': string;
|
|
120
|
+
'--color-page-background-color-page': string;
|
|
121
|
+
'--color-toolbar-color-badge-text': string;
|
|
122
|
+
'--shadow-popover-box-shadow': string;
|
|
123
|
+
'--shadow-popover-box-shadow-arrow': string;
|
|
124
|
+
'--color-calendar-background-color-box-background-range': string;
|
|
125
|
+
'--color-stepper-circle-disabled': string;
|
|
126
|
+
'--color-stepper-bar-disabled': string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
export { poThemeDefaultCategoricalsDarkAA, poThemeDefaultCategoricalsOverlayDarkAA, poThemeDefaultDarkValuesAA };
|