@po-ui/ng-components 20.3.0 → 20.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/po-ui-ng-components.mjs +3715 -2451
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/index.d.ts +2447 -1399
- package/lib/components/index.d.ts +1 -0
- package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +39 -1
- package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +26 -2
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +36 -0
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +16 -0
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +38 -0
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +17 -0
- package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +38 -0
- package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +18 -0
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +38 -0
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +18 -0
- package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +6 -0
- package/lib/components/po-field/po-email/po-email.component.d.ts +3 -2
- package/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.d.ts +6 -0
- package/lib/components/po-field/po-field-container/po-field-container.component.d.ts +22 -2
- package/lib/components/po-field/po-field.model.d.ts +23 -1
- package/lib/components/po-field/po-input/po-input-base.component.d.ts +52 -1
- package/lib/components/po-field/po-input/po-input.component.d.ts +3 -2
- package/lib/components/po-field/po-input-generic/po-input-generic.d.ts +6 -0
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +38 -0
- package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +18 -0
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +38 -0
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +18 -0
- package/lib/components/po-field/po-number/po-number.component.d.ts +3 -1
- package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +38 -0
- package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +17 -0
- package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +38 -0
- package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +16 -0
- package/lib/components/po-field/po-select/po-select.component.d.ts +47 -2
- package/lib/components/po-field/po-switch/po-switch.component.d.ts +31 -0
- package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +38 -0
- package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +16 -0
- package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +38 -0
- package/lib/components/po-field/po-upload/po-upload.component.d.ts +15 -0
- package/lib/components/po-helper/index.d.ts +3 -0
- package/lib/components/po-helper/interfaces/po-helper.interface.d.ts +87 -0
- package/lib/components/po-helper/po-helper-base.component.d.ts +109 -0
- package/lib/components/po-helper/po-helper.component.d.ts +49 -0
- package/lib/components/po-helper/po-helper.module.d.ts +6 -0
- package/lib/components/po-label/po-label.component.d.ts +13 -0
- package/lib/components/po-popover/po-popover.component.d.ts +5 -3
- package/lib/services/po-theme/po-theme.service.d.ts +1 -0
- package/lib/utils/util.d.ts +23 -0
- package/package.json +4 -4
- package/po-ui-ng-components-20.4.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/v16/index.js +1 -1
- package/schematics/ng-update/v17/index.js +1 -1
- package/schematics/ng-update/v18/index.js +2 -2
- package/schematics/ng-update/v19/index.js +2 -2
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v20/index.js +2 -2
- package/schematics/ng-update/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/po-ui-ng-components-20.3.0.tgz +0 -0
|
@@ -16,6 +16,7 @@ export * from './po-dynamic/index';
|
|
|
16
16
|
export * from './po-field/index';
|
|
17
17
|
export * from './po-gauge/index';
|
|
18
18
|
export * from './po-grid/index';
|
|
19
|
+
export * from './po-helper/index';
|
|
19
20
|
export * from './po-icon/index';
|
|
20
21
|
export * from './po-image/index';
|
|
21
22
|
export * from './po-info/index';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { PoHelperOptions } from '../../po-helper';
|
|
3
4
|
/**
|
|
4
5
|
* @description
|
|
5
6
|
*
|
|
@@ -45,6 +46,9 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
|
|
|
45
46
|
private readonly cd;
|
|
46
47
|
additionalHelpEventTrigger: string | undefined;
|
|
47
48
|
/**
|
|
49
|
+
*
|
|
50
|
+
* @deprecated v23.x.x use `p-helper`
|
|
51
|
+
*
|
|
48
52
|
* @optional
|
|
49
53
|
*
|
|
50
54
|
* @description
|
|
@@ -52,6 +56,8 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
|
|
|
52
56
|
* Se o evento `p-additional-help` estiver definido, o tooltip não será exibido.
|
|
53
57
|
* **Como boa prática, indica-se utilizar um texto com até 140 caracteres.**
|
|
54
58
|
* > Requer um recuo mínimo de 8px se o componente estiver próximo à lateral da tela.
|
|
59
|
+
*
|
|
60
|
+
* > Essa propriedade está **depreciada** e será removida na versão `23.x.x`. Recomendamos utilizar a propriedade `p-helper` que oferece mais recursos e flexibilidade.
|
|
55
61
|
*/
|
|
56
62
|
additionalHelpTooltip?: string;
|
|
57
63
|
/**
|
|
@@ -91,11 +97,16 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
|
|
|
91
97
|
/** Texto de exibição do *checkbox*. */
|
|
92
98
|
label?: string;
|
|
93
99
|
/**
|
|
100
|
+
*
|
|
101
|
+
* @deprecated v23.x.x use `p-helper`
|
|
102
|
+
*
|
|
94
103
|
* @optional
|
|
95
104
|
*
|
|
96
105
|
* @description
|
|
97
106
|
* Evento disparado ao clicar no ícone de ajuda adicional.
|
|
98
107
|
* Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
|
|
108
|
+
*
|
|
109
|
+
* > Essa propriedade está **depreciada** e será removida na versão `23.x.x`. Recomendamos utilizar a propriedade `p-helper` que oferece mais recursos e flexibilidade.
|
|
99
110
|
*/
|
|
100
111
|
additionalHelp: EventEmitter<any>;
|
|
101
112
|
/**
|
|
@@ -159,10 +170,37 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
|
|
|
159
170
|
*
|
|
160
171
|
*/
|
|
161
172
|
set size(value: string);
|
|
173
|
+
/**
|
|
174
|
+
* @Input
|
|
175
|
+
*
|
|
176
|
+
* @optional
|
|
177
|
+
*
|
|
178
|
+
* @description
|
|
179
|
+
*
|
|
180
|
+
* Define as opções do componente de ajuda (po-helper) que será exibido ao lado do label.
|
|
181
|
+
*
|
|
182
|
+
* > Caso o `p-label` não esteja definido, o componente po-helper não será exibido.
|
|
183
|
+
* Ao configurar esta propriedade, o antigo ícone de ajuda adicional (`p-additional-help-tooltip` e `p-additional-help`) será ignorado.
|
|
184
|
+
*/
|
|
185
|
+
poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
|
|
186
|
+
/**
|
|
187
|
+
* @Input
|
|
188
|
+
*
|
|
189
|
+
* @optional
|
|
190
|
+
*
|
|
191
|
+
* @description
|
|
192
|
+
*
|
|
193
|
+
* Habilita a quebra automática do texto da propriedade `p-label`. Quando `p-label-text-wrap` for verdadeiro, o texto que excede
|
|
194
|
+
* o espaço disponível é transferido para a próxima linha em pontos apropriados para uma
|
|
195
|
+
* leitura clara.
|
|
196
|
+
*
|
|
197
|
+
* @default `false`
|
|
198
|
+
*/
|
|
199
|
+
labelTextWrap: import("@angular/core").InputSignal<boolean>;
|
|
162
200
|
get size(): string;
|
|
163
201
|
constructor(cd: ChangeDetectorRef);
|
|
164
202
|
changeValue(): void;
|
|
165
|
-
checkOption(value: boolean | null | string): void;
|
|
203
|
+
checkOption(event: any, value: boolean | null | string): void;
|
|
166
204
|
setDisabledState(isDisabled: boolean): void;
|
|
167
205
|
registerOnChange(fn: any): void;
|
|
168
206
|
registerOnTouched(fn: any): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { PoCheckboxBaseComponent } from './po-checkbox-base.component';
|
|
3
|
+
import { PoHelperComponent, PoHelperOptions } from '../../po-helper';
|
|
3
4
|
/**
|
|
4
5
|
* @docsExtends PoCheckboxBaseComponent
|
|
5
6
|
*
|
|
@@ -20,10 +21,14 @@ import { PoCheckboxBaseComponent } from './po-checkbox-base.component';
|
|
|
20
21
|
* <file name="sample-po-checkbox-acceptance-term/sample-po-checkbox-acceptance-term.component.ts"> </file>
|
|
21
22
|
* </example>
|
|
22
23
|
*/
|
|
23
|
-
export declare class PoCheckboxComponent extends PoCheckboxBaseComponent implements AfterViewInit {
|
|
24
|
+
export declare class PoCheckboxComponent extends PoCheckboxBaseComponent implements AfterViewInit, OnChanges, OnInit {
|
|
24
25
|
private readonly changeDetector;
|
|
25
26
|
private _iconToken;
|
|
27
|
+
helperSettings: PoHelperOptions;
|
|
28
|
+
showTip: boolean;
|
|
26
29
|
checkboxLabel: ElementRef;
|
|
30
|
+
labelEl: ElementRef<HTMLElement>;
|
|
31
|
+
helperEl?: PoHelperComponent;
|
|
27
32
|
constructor();
|
|
28
33
|
/**
|
|
29
34
|
* Função que atribui foco ao *checkbox*.
|
|
@@ -47,6 +52,8 @@ export declare class PoCheckboxComponent extends PoCheckboxBaseComponent impleme
|
|
|
47
52
|
focus(): void;
|
|
48
53
|
onBlur(): void;
|
|
49
54
|
ngAfterViewInit(): void;
|
|
55
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
56
|
+
ngOnInit(): void;
|
|
50
57
|
emitAdditionalHelp(): void;
|
|
51
58
|
getAdditionalHelpTooltip(): string;
|
|
52
59
|
onKeyDown(event: KeyboardEvent, value: boolean | string): void;
|
|
@@ -54,6 +61,8 @@ export declare class PoCheckboxComponent extends PoCheckboxBaseComponent impleme
|
|
|
54
61
|
* Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
|
|
55
62
|
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
56
63
|
*
|
|
64
|
+
* > Exibe ou oculta o conteúdo do componente `po-helper` quando o componente estiver com foco e com label visível.
|
|
65
|
+
*
|
|
57
66
|
* ```
|
|
58
67
|
* <po-checkbox
|
|
59
68
|
* #checkbox
|
|
@@ -63,6 +72,16 @@ export declare class PoCheckboxComponent extends PoCheckboxBaseComponent impleme
|
|
|
63
72
|
* ></po-checkbox>
|
|
64
73
|
* ```
|
|
65
74
|
* ```
|
|
75
|
+
* //Exemplo com label e p-helper
|
|
76
|
+
* <po-checkbox
|
|
77
|
+
* #checkbox
|
|
78
|
+
* ...
|
|
79
|
+
* p-label="Label do checkbox"
|
|
80
|
+
* [p-helper]="helperOptions"
|
|
81
|
+
* (p-keydown)="onKeyDown($event, checkbox)"
|
|
82
|
+
* ></po-checkbox>
|
|
83
|
+
* ```
|
|
84
|
+
* ```
|
|
66
85
|
* ...
|
|
67
86
|
* onKeyDown(event: KeyboardEvent, inp: PoCheckboxComponent): void {
|
|
68
87
|
* if (event.code === 'F9') {
|
|
@@ -73,7 +92,12 @@ export declare class PoCheckboxComponent extends PoCheckboxBaseComponent impleme
|
|
|
73
92
|
*/
|
|
74
93
|
showAdditionalHelp(): boolean;
|
|
75
94
|
showAdditionalHelpIcon(): boolean;
|
|
95
|
+
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
96
|
+
hideAdditionalHelp: boolean;
|
|
97
|
+
helperSettings?: any;
|
|
98
|
+
};
|
|
76
99
|
protected changeModelValue(value: boolean | null | string): void;
|
|
77
100
|
private isAdditionalHelpEventTriggered;
|
|
101
|
+
handleLabelTooltip(): void;
|
|
78
102
|
get iconNameLib(): string;
|
|
79
103
|
}
|
|
@@ -2,6 +2,7 @@ import { EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
|
|
3
3
|
import { PoCheckboxGroupOptionView } from './interfaces/po-checkbox-group-option-view.interface';
|
|
4
4
|
import { PoCheckboxGroupOption } from './interfaces/po-checkbox-group-option.interface';
|
|
5
|
+
import { PoHelperOptions } from '../../po-helper';
|
|
5
6
|
/**
|
|
6
7
|
* @description
|
|
7
8
|
*
|
|
@@ -34,6 +35,9 @@ import { PoCheckboxGroupOption } from './interfaces/po-checkbox-group-option.int
|
|
|
34
35
|
export declare class PoCheckboxGroupBaseComponent implements ControlValueAccessor, Validator {
|
|
35
36
|
additionalHelpEventTrigger: string | undefined;
|
|
36
37
|
/**
|
|
38
|
+
*
|
|
39
|
+
* @deprecated v23.x.x use `p-helper`
|
|
40
|
+
*
|
|
37
41
|
* @optional
|
|
38
42
|
*
|
|
39
43
|
* @description
|
|
@@ -41,6 +45,8 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
|
|
|
41
45
|
* Se o evento `p-additional-help` estiver definido, o tooltip não será exibido.
|
|
42
46
|
* **Como boa prática, indica-se utilizar um texto com até 140 caracteres.**
|
|
43
47
|
* > Requer um recuo mínimo de 8px se o componente estiver próximo à lateral da tela.
|
|
48
|
+
*
|
|
49
|
+
* > Essa propriedade está **depreciada** e será removida na versão `23.x.x`. Recomendamos utilizar a propriedade `p-helper` que oferece mais recursos e flexibilidade.
|
|
44
50
|
*/
|
|
45
51
|
additionalHelpTooltip?: string;
|
|
46
52
|
/**
|
|
@@ -113,6 +119,32 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
|
|
|
113
119
|
* @default `false`
|
|
114
120
|
*/
|
|
115
121
|
errorLimit: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* @Input
|
|
124
|
+
*
|
|
125
|
+
* @optional
|
|
126
|
+
*
|
|
127
|
+
* @description
|
|
128
|
+
*
|
|
129
|
+
* Define as opções do componente de ajuda (po-helper) que será exibido ao lado do label.
|
|
130
|
+
*
|
|
131
|
+
* > Caso o `p-label` não esteja definido, o componente po-helper não será exibido.
|
|
132
|
+
* Ao configurar esta propriedade, o antigo ícone de ajuda adicional (`p-additional-help-tooltip` e `p-additional-help`) será ignorado.
|
|
133
|
+
*/
|
|
134
|
+
poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
|
|
135
|
+
/**
|
|
136
|
+
* @Input
|
|
137
|
+
*
|
|
138
|
+
* @optional
|
|
139
|
+
*
|
|
140
|
+
* @description
|
|
141
|
+
* Habilita a quebra automática do texto da propriedade `p-label`. Quando `p-label-text-wrap` for verdadeiro, o texto que excede
|
|
142
|
+
* o espaço disponível é transferido para a próxima linha em pontos apropriados para uma
|
|
143
|
+
* leitura clara.
|
|
144
|
+
*
|
|
145
|
+
* @default `false`
|
|
146
|
+
*/
|
|
147
|
+
labelTextWrap: import("@angular/core").InputSignal<boolean>;
|
|
116
148
|
/**
|
|
117
149
|
* @optional
|
|
118
150
|
*
|
|
@@ -130,11 +162,15 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
|
|
|
130
162
|
*/
|
|
131
163
|
ngModelChange: EventEmitter<any>;
|
|
132
164
|
/**
|
|
165
|
+
* @deprecated v23.x.x use `p-helper`
|
|
166
|
+
*
|
|
133
167
|
* @optional
|
|
134
168
|
*
|
|
135
169
|
* @description
|
|
136
170
|
* Evento disparado ao clicar no ícone de ajuda adicional.
|
|
137
171
|
* Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
|
|
172
|
+
*
|
|
173
|
+
* > Essa propriedade está **depreciada** e será removida na versão `23.x.x`. Recomendamos utilizar a propriedade `p-helper` que oferece mais recursos e flexibilidade.
|
|
138
174
|
*/
|
|
139
175
|
additionalHelp: EventEmitter<any>;
|
|
140
176
|
/**
|
|
@@ -56,6 +56,8 @@ export declare class PoCheckboxGroupComponent extends PoCheckboxGroupBaseCompone
|
|
|
56
56
|
* Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
|
|
57
57
|
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
58
58
|
*
|
|
59
|
+
* > Exibe ou oculta o conteúdo do componente `po-helper` quando o componente estiver com foco e com label visível.
|
|
60
|
+
*
|
|
59
61
|
* ```
|
|
60
62
|
* <po-checkbox-group
|
|
61
63
|
* #checkboxGroup
|
|
@@ -65,6 +67,16 @@ export declare class PoCheckboxGroupComponent extends PoCheckboxGroupBaseCompone
|
|
|
65
67
|
* ></po-checkbox-group>
|
|
66
68
|
* ```
|
|
67
69
|
* ```
|
|
70
|
+
* //Exemplo com p-label e p-helper
|
|
71
|
+
* <po-checkbox-group
|
|
72
|
+
* #checkboxGroup
|
|
73
|
+
* ...
|
|
74
|
+
* p-label="Label do checkbox"
|
|
75
|
+
* [p-helper]="helperOptions"
|
|
76
|
+
* (p-keydown)="onKeyDown($event, checkboxGroup)"
|
|
77
|
+
* ></po-checkbox-group>
|
|
78
|
+
* ```
|
|
79
|
+
* ```
|
|
68
80
|
* ...
|
|
69
81
|
* onKeyDown(event: KeyboardEvent, inp: PoCheckboxGroupComponent): void {
|
|
70
82
|
* if (event.code === 'F9') {
|
|
@@ -76,6 +88,10 @@ export declare class PoCheckboxGroupComponent extends PoCheckboxGroupBaseCompone
|
|
|
76
88
|
showAdditionalHelp(): boolean;
|
|
77
89
|
showAdditionalHelpIcon(): boolean;
|
|
78
90
|
trackByFn(index: any): any;
|
|
91
|
+
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
92
|
+
hideAdditionalHelp: boolean;
|
|
93
|
+
helperSettings?: any;
|
|
94
|
+
};
|
|
79
95
|
private isAdditionalHelpEventTriggered;
|
|
80
96
|
private isCheckboxOptionFocused;
|
|
81
97
|
}
|
|
@@ -8,6 +8,7 @@ import { PoComboLiterals } from './interfaces/po-combo-literals.interface';
|
|
|
8
8
|
import { PoComboOptionGroup } from './interfaces/po-combo-option-group.interface';
|
|
9
9
|
import { PoComboOption } from './interfaces/po-combo-option.interface';
|
|
10
10
|
import { PoComboFilterService } from './po-combo-filter.service';
|
|
11
|
+
import { PoHelperOptions } from '../../po-helper';
|
|
11
12
|
/**
|
|
12
13
|
* @description
|
|
13
14
|
*
|
|
@@ -66,6 +67,9 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
66
67
|
protected changeDetector: ChangeDetectorRef;
|
|
67
68
|
additionalHelpEventTrigger: string | undefined;
|
|
68
69
|
/**
|
|
70
|
+
*
|
|
71
|
+
* @deprecated v23.x.x use `p-helper`
|
|
72
|
+
*
|
|
69
73
|
* @optional
|
|
70
74
|
*
|
|
71
75
|
* @description
|
|
@@ -73,6 +77,8 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
73
77
|
* Se o evento `p-additional-help` estiver definido, o tooltip não será exibido.
|
|
74
78
|
* **Como boa prática, indica-se utilizar um texto com até 140 caracteres.**
|
|
75
79
|
* > Requer um recuo mínimo de 8px se o componente estiver próximo à lateral da tela.
|
|
80
|
+
*
|
|
81
|
+
* > Essa propriedade está **depreciada** e será removida na versão `23.x.x`. Recomendamos utilizar a propriedade `p-helper` que oferece mais recursos e flexibilidade.
|
|
76
82
|
*/
|
|
77
83
|
additionalHelpTooltip?: string;
|
|
78
84
|
/**
|
|
@@ -235,11 +241,16 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
235
241
|
*/
|
|
236
242
|
fieldErrorMessage: string;
|
|
237
243
|
/**
|
|
244
|
+
*
|
|
245
|
+
* @deprecated v23.x.x use `p-helper`
|
|
246
|
+
*
|
|
238
247
|
* @optional
|
|
239
248
|
*
|
|
240
249
|
* @description
|
|
241
250
|
* Evento disparado ao clicar no ícone de ajuda adicional.
|
|
242
251
|
* Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
|
|
252
|
+
*
|
|
253
|
+
* > Essa propriedade está **depreciada** e será removida na versão `23.x.x`. Recomendamos utilizar a propriedade `p-helper` que oferece mais recursos e flexibilidade.
|
|
243
254
|
*/
|
|
244
255
|
additionalHelp: EventEmitter<any>;
|
|
245
256
|
/**
|
|
@@ -317,6 +328,33 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
317
328
|
* @default `bottom`
|
|
318
329
|
*/
|
|
319
330
|
listboxControlPosition: 'top' | 'bottom';
|
|
331
|
+
/**
|
|
332
|
+
* @Input
|
|
333
|
+
*
|
|
334
|
+
* @optional
|
|
335
|
+
*
|
|
336
|
+
* @description
|
|
337
|
+
*
|
|
338
|
+
* Define as opções do componente de ajuda (po-helper) que será exibido ao lado do label.
|
|
339
|
+
*
|
|
340
|
+
* > Caso o `p-label` não esteja definido, o componente po-helper não será exibido.
|
|
341
|
+
* Ao configurar esta propriedade, o antigo ícone de ajuda adicional (`p-additional-help-tooltip` e `p-additional-help`) será ignorado.
|
|
342
|
+
*/
|
|
343
|
+
poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
|
|
344
|
+
/**
|
|
345
|
+
* @Input
|
|
346
|
+
*
|
|
347
|
+
* @optional
|
|
348
|
+
*
|
|
349
|
+
* @description
|
|
350
|
+
*
|
|
351
|
+
* Habilita a quebra automática do texto da propriedade `p-label`. Quando `p-label-text-wrap` for verdadeiro, o texto que excede
|
|
352
|
+
* o espaço disponível é transferido para a próxima linha em pontos apropriados para uma
|
|
353
|
+
* leitura clara.
|
|
354
|
+
*
|
|
355
|
+
* @default `false`
|
|
356
|
+
*/
|
|
357
|
+
labelTextWrap: import("@angular/core").InputSignal<boolean>;
|
|
320
358
|
cacheOptions: Array<any>;
|
|
321
359
|
defaultService: PoComboFilterService;
|
|
322
360
|
firstInWriteValue: boolean;
|
|
@@ -5,6 +5,7 @@ import { PoComboOption } from './interfaces/po-combo-option.interface';
|
|
|
5
5
|
import { PoComboBaseComponent } from './po-combo-base.component';
|
|
6
6
|
import { PoComboFilterService } from './po-combo-filter.service';
|
|
7
7
|
import { PoComboOptionTemplateDirective } from './po-combo-option-template/po-combo-option-template.directive';
|
|
8
|
+
import { PoHelperOptions } from '../../po-helper';
|
|
8
9
|
/**
|
|
9
10
|
* @docsExtends PoComboBaseComponent
|
|
10
11
|
*
|
|
@@ -74,6 +75,7 @@ export declare class PoComboComponent extends PoComboBaseComponent implements Af
|
|
|
74
75
|
shouldMarkLetters: boolean;
|
|
75
76
|
infiniteLoading: boolean;
|
|
76
77
|
containerWidth: number;
|
|
78
|
+
helperSettings: PoHelperOptions;
|
|
77
79
|
private _isServerSearching;
|
|
78
80
|
private lastKey;
|
|
79
81
|
private clickoutListener;
|
|
@@ -132,6 +134,7 @@ export declare class PoComboComponent extends PoComboBaseComponent implements Af
|
|
|
132
134
|
* Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
|
|
133
135
|
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
134
136
|
*
|
|
137
|
+
* > Exibe ou oculta o conteúdo do componente `po-helper` quando o componente estiver com foco e com label visível.
|
|
135
138
|
* ```
|
|
136
139
|
* <po-combo
|
|
137
140
|
* #combo
|
|
@@ -141,6 +144,16 @@ export declare class PoComboComponent extends PoComboBaseComponent implements Af
|
|
|
141
144
|
* ></po-combo>
|
|
142
145
|
* ```
|
|
143
146
|
* ```
|
|
147
|
+
* // Exemplo com p-label e p-helper
|
|
148
|
+
* <po-combo
|
|
149
|
+
* #combo
|
|
150
|
+
* ...
|
|
151
|
+
* p-label="Label do combo"
|
|
152
|
+
* [p-helper]="helperOptions"
|
|
153
|
+
* (p-keydown)="onKeyDown($event, combo)"
|
|
154
|
+
* ></po-combo>
|
|
155
|
+
* ```
|
|
156
|
+
* ```
|
|
144
157
|
* ...
|
|
145
158
|
* onKeyDown(event: KeyboardEvent, inp: PoComboComponent): void {
|
|
146
159
|
* if (event.code === 'F9') {
|
|
@@ -178,4 +191,8 @@ export declare class PoComboComponent extends PoComboBaseComponent implements Af
|
|
|
178
191
|
private focusItem;
|
|
179
192
|
private focusInput;
|
|
180
193
|
private shouldHandleTab;
|
|
194
|
+
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
195
|
+
hideAdditionalHelp: boolean;
|
|
196
|
+
helperSettings?: any;
|
|
197
|
+
};
|
|
181
198
|
}
|
|
@@ -4,6 +4,7 @@ import { PoMask } from '../po-input/po-mask';
|
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { PoLanguageService } from '../../../services/po-language/po-language.service';
|
|
6
6
|
import { PoDatepickerIsoFormat } from './enums/po-datepicker-iso-format.enum';
|
|
7
|
+
import { PoHelperOptions } from '../../po-helper';
|
|
7
8
|
/**
|
|
8
9
|
* @description
|
|
9
10
|
*
|
|
@@ -80,6 +81,9 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
80
81
|
protected cd: ChangeDetectorRef;
|
|
81
82
|
additionalHelpEventTrigger: string | undefined;
|
|
82
83
|
/**
|
|
84
|
+
*
|
|
85
|
+
* @deprecated v23.x.x use `p-helper`
|
|
86
|
+
*
|
|
83
87
|
* @optional
|
|
84
88
|
*
|
|
85
89
|
* @description
|
|
@@ -87,6 +91,9 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
87
91
|
* Se o evento `p-additional-help` estiver definido, o tooltip não será exibido.
|
|
88
92
|
* **Como boa prática, indica-se utilizar um texto com até 140 caracteres.**
|
|
89
93
|
* > Requer um recuo mínimo de 8px se o componente estiver próximo à lateral da tela.
|
|
94
|
+
*
|
|
95
|
+
* > Essa propriedade está **depreciada** e será removida na versão `23.x.x`. Recomendamos utilizar a propriedade `p-helper` que oferece mais recursos e flexibilidade.
|
|
96
|
+
*
|
|
90
97
|
*/
|
|
91
98
|
additionalHelpTooltip?: string;
|
|
92
99
|
/**
|
|
@@ -162,11 +169,15 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
162
169
|
*/
|
|
163
170
|
showErrorMessageRequired: boolean;
|
|
164
171
|
/**
|
|
172
|
+
* @deprecated v23.x.x use `p-helper`
|
|
173
|
+
*
|
|
165
174
|
* @optional
|
|
166
175
|
*
|
|
167
176
|
* @description
|
|
168
177
|
* Evento disparado ao clicar no ícone de ajuda adicional.
|
|
169
178
|
* Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
|
|
179
|
+
*
|
|
180
|
+
* > Essa propriedade está **depreciada** e será removida na versão `23.x.x`. Recomendamos utilizar a propriedade `p-helper` que oferece mais recursos e flexibilidade.
|
|
170
181
|
*/
|
|
171
182
|
additionalHelp: EventEmitter<any>;
|
|
172
183
|
/**
|
|
@@ -193,6 +204,33 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
193
204
|
* Retorna um objeto `KeyboardEvent` com informações sobre a tecla.
|
|
194
205
|
*/
|
|
195
206
|
keydown: EventEmitter<KeyboardEvent>;
|
|
207
|
+
/**
|
|
208
|
+
* @Input
|
|
209
|
+
*
|
|
210
|
+
* @optional
|
|
211
|
+
*
|
|
212
|
+
* @description
|
|
213
|
+
*
|
|
214
|
+
* Define as opções do componente de ajuda (po-helper) que será exibido ao lado do label.
|
|
215
|
+
*
|
|
216
|
+
* > Caso o `p-label` não esteja definido, o componente po-helper não será exibido.
|
|
217
|
+
* Ao configurar esta propriedade, o antigo ícone de ajuda adicional (`p-additional-help-tooltip` e `p-additional-help`) será ignorado.
|
|
218
|
+
*/
|
|
219
|
+
poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
|
|
220
|
+
/**
|
|
221
|
+
* @Input
|
|
222
|
+
*
|
|
223
|
+
* @optional
|
|
224
|
+
*
|
|
225
|
+
* @description
|
|
226
|
+
*
|
|
227
|
+
* Habilita a quebra automática do texto da propriedade `p-label`. Quando `p-label-text-wrap` for verdadeiro, o texto que excede
|
|
228
|
+
* o espaço disponível é transferido para a próxima linha em pontos apropriados para uma
|
|
229
|
+
* leitura clara.
|
|
230
|
+
*
|
|
231
|
+
* @default `false`
|
|
232
|
+
*/
|
|
233
|
+
labelTextWrap: import("@angular/core").InputSignal<boolean>;
|
|
196
234
|
offset: number;
|
|
197
235
|
protected firstStart: boolean;
|
|
198
236
|
protected hour: string;
|
|
@@ -2,6 +2,7 @@ import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import { PoButtonComponent } from '../../po-button/po-button.component';
|
|
3
3
|
import { PoCalendarComponent } from '../../po-calendar/po-calendar.component';
|
|
4
4
|
import { PoDatepickerBaseComponent } from './po-datepicker-base.component';
|
|
5
|
+
import { PoHelperOptions } from '../../po-helper';
|
|
5
6
|
/**
|
|
6
7
|
* @docsExtends PoDatepickerBaseComponent
|
|
7
8
|
*
|
|
@@ -44,6 +45,7 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
44
45
|
id: string;
|
|
45
46
|
visible: boolean;
|
|
46
47
|
literals: any;
|
|
48
|
+
helperSettings: PoHelperOptions;
|
|
47
49
|
eventListenerFunction: () => void;
|
|
48
50
|
eventResizeListener: () => void;
|
|
49
51
|
private clickListener;
|
|
@@ -94,6 +96,8 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
94
96
|
* Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
|
|
95
97
|
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
96
98
|
*
|
|
99
|
+
* > Exibe ou oculta o conteúdo do componente `po-helper` quando o componente estiver com foco e com label visível.
|
|
100
|
+
*
|
|
97
101
|
* ```
|
|
98
102
|
* <po-datepicker
|
|
99
103
|
* #datepicker
|
|
@@ -103,6 +107,16 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
103
107
|
* ></po-datepicker>
|
|
104
108
|
* ```
|
|
105
109
|
* ```
|
|
110
|
+
* // Exemplo com p-label e p-helper
|
|
111
|
+
* <po-datepicker
|
|
112
|
+
* #datepicker
|
|
113
|
+
* ...
|
|
114
|
+
* p-label="Label do datepicker"
|
|
115
|
+
* [p-helper]="helperOptions"
|
|
116
|
+
* (p-keydown)="onKeyDown($event, datepicker)"
|
|
117
|
+
* ></po-datepicker>
|
|
118
|
+
* ```
|
|
119
|
+
* ```
|
|
106
120
|
* ...
|
|
107
121
|
* onKeyDown(event: KeyboardEvent, inp: PoDatepickerComponent): void {
|
|
108
122
|
* if (event.code === 'F9') {
|
|
@@ -132,4 +146,8 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
132
146
|
private shouldHandleTab;
|
|
133
147
|
private focusCalendar;
|
|
134
148
|
onCalendarKeyDown(event: KeyboardEvent): void;
|
|
149
|
+
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
150
|
+
hideAdditionalHelp: boolean;
|
|
151
|
+
helperSettings?: any;
|
|
152
|
+
};
|
|
135
153
|
}
|
|
@@ -5,6 +5,7 @@ import { PoMask } from '../po-input/po-mask';
|
|
|
5
5
|
import { PoDateService } from './../../../services/po-date/po-date.service';
|
|
6
6
|
import { PoDatepickerRangeLiterals } from './interfaces/po-datepicker-range-literals.interface';
|
|
7
7
|
import { PoDatepickerRange } from './interfaces/po-datepicker-range.interface';
|
|
8
|
+
import { PoHelperOptions } from '../../po-helper';
|
|
8
9
|
/**
|
|
9
10
|
* @description
|
|
10
11
|
*
|
|
@@ -53,6 +54,9 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
53
54
|
additionalHelpEventTrigger: string | undefined;
|
|
54
55
|
name: string;
|
|
55
56
|
/**
|
|
57
|
+
*
|
|
58
|
+
* @deprecated v23.x.x use `p-helper`
|
|
59
|
+
*
|
|
56
60
|
* @optional
|
|
57
61
|
*
|
|
58
62
|
* @description
|
|
@@ -60,6 +64,8 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
60
64
|
* Se o evento `p-additional-help` estiver definido, o tooltip não será exibido.
|
|
61
65
|
* **Como boa prática, indica-se utilizar um texto com até 140 caracteres.**
|
|
62
66
|
* > Requer um recuo mínimo de 8px se o componente estiver próximo à lateral da tela.
|
|
67
|
+
*
|
|
68
|
+
* > Essa propriedade está **depreciada** e será removida na versão `23.x.x`. Recomendamos utilizar a propriedade `p-helper` que oferece mais recursos e flexibilidade.
|
|
63
69
|
*/
|
|
64
70
|
additionalHelpTooltip?: string;
|
|
65
71
|
/**
|
|
@@ -130,11 +136,16 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
130
136
|
*/
|
|
131
137
|
fieldErrorMessage: string;
|
|
132
138
|
/**
|
|
139
|
+
*
|
|
140
|
+
* @deprecated v23.x.x use `p-helper`
|
|
141
|
+
*
|
|
133
142
|
* @optional
|
|
134
143
|
*
|
|
135
144
|
* @description
|
|
136
145
|
* Evento disparado ao clicar no ícone de ajuda adicional.
|
|
137
146
|
* Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
|
|
147
|
+
*
|
|
148
|
+
* > Essa propriedade está **depreciada** e será removida na versão `23.x.x`. Recomendamos utilizar a propriedade `p-helper` que oferece mais recursos e flexibilidade.
|
|
138
149
|
*/
|
|
139
150
|
additionalHelp: EventEmitter<any>;
|
|
140
151
|
/**
|
|
@@ -150,6 +161,33 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
150
161
|
* @default `false`
|
|
151
162
|
*/
|
|
152
163
|
errorLimit: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* @Input
|
|
166
|
+
*
|
|
167
|
+
* @optional
|
|
168
|
+
*
|
|
169
|
+
* @description
|
|
170
|
+
*
|
|
171
|
+
* Define as opções do componente de ajuda (po-helper) que será exibido ao lado do label.
|
|
172
|
+
*
|
|
173
|
+
* > Caso o `p-label` não esteja definido, o componente po-helper não será exibido.
|
|
174
|
+
* Ao configurar esta propriedade, o antigo ícone de ajuda adicional (`p-additional-help-tooltip` e `p-additional-help`) será ignorado.
|
|
175
|
+
*/
|
|
176
|
+
poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
|
|
177
|
+
/**
|
|
178
|
+
* @Input
|
|
179
|
+
*
|
|
180
|
+
* @optional
|
|
181
|
+
*
|
|
182
|
+
* @description
|
|
183
|
+
*
|
|
184
|
+
* Habilita a quebra automática do texto da propriedade `p-label`. Quando `p-label-text-wrap` for verdadeiro, o texto que excede
|
|
185
|
+
* o espaço disponível é transferido para a próxima linha em pontos apropriados para uma
|
|
186
|
+
* leitura clara.
|
|
187
|
+
*
|
|
188
|
+
* @default `false`
|
|
189
|
+
*/
|
|
190
|
+
labelTextWrap: import("@angular/core").InputSignal<boolean>;
|
|
153
191
|
/**
|
|
154
192
|
* @optional
|
|
155
193
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { PoDatepickerRange } from './interfaces/po-datepicker-range.interface';
|
|
3
3
|
import { PoDatepickerRangeBaseComponent } from './po-datepicker-range-base.component';
|
|
4
|
+
import { PoHelperOptions } from '../../po-helper';
|
|
4
5
|
/**
|
|
5
6
|
* @docsExtends PoDatepickerRangeBaseComponent
|
|
6
7
|
*
|
|
@@ -39,6 +40,7 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
39
40
|
iconCalendar: ElementRef;
|
|
40
41
|
calendarPicker: ElementRef;
|
|
41
42
|
isCalendarVisible: boolean;
|
|
43
|
+
helperSettings: PoHelperOptions;
|
|
42
44
|
private clickListener;
|
|
43
45
|
private eventResizeListener;
|
|
44
46
|
private poDatepickerRangeElement;
|
|
@@ -95,6 +97,8 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
95
97
|
* Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
|
|
96
98
|
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
97
99
|
*
|
|
100
|
+
* > Exibe ou oculta o conteúdo do componente `po-helper` quando o componente estiver com foco e com label visível.
|
|
101
|
+
*
|
|
98
102
|
* ```
|
|
99
103
|
* <po-datepicker-range
|
|
100
104
|
* #datepickerRange
|
|
@@ -104,6 +108,16 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
104
108
|
* ></po-datepicker-range>
|
|
105
109
|
* ```
|
|
106
110
|
* ```
|
|
111
|
+
* // Exemplo com p-label e p-helper
|
|
112
|
+
* <po-datepicker-range
|
|
113
|
+
* #datepickerRange
|
|
114
|
+
* ...
|
|
115
|
+
* p-label="Label do datepickerRange
|
|
116
|
+
* [p-helper]="helperOptions"
|
|
117
|
+
* (p-keydown)="onKeyDown($event, datepickerRange)"
|
|
118
|
+
* ></po-datepicker-range>
|
|
119
|
+
* ```
|
|
120
|
+
* ```
|
|
107
121
|
* ...
|
|
108
122
|
* onKeyDown(event: KeyboardEvent, inp: PoDatepickerRangeComponent): void {
|
|
109
123
|
* if (event.code === 'F9') {
|
|
@@ -115,6 +129,10 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
115
129
|
showAdditionalHelp(): boolean;
|
|
116
130
|
toggleCalendar(): void;
|
|
117
131
|
updateScreenByModel(model: PoDatepickerRange): void;
|
|
132
|
+
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
133
|
+
hideAdditionalHelp: boolean;
|
|
134
|
+
helperSettings?: any;
|
|
135
|
+
};
|
|
118
136
|
private applyFocusOnDatePickerRangeField;
|
|
119
137
|
private formatDate;
|
|
120
138
|
private formatScreenToModel;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { AbstractControl } from '@angular/forms';
|
|
3
3
|
import { PoInputBaseComponent } from '../po-input/po-input-base.component';
|
|
4
|
+
import { PoHelperOptions } from '../../po-helper';
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
6
7
|
* @docsExtends PoInputBaseComponent
|
|
@@ -58,6 +59,7 @@ export declare class PoDecimalComponent extends PoInputBaseComponent implements
|
|
|
58
59
|
private thousandSeparator;
|
|
59
60
|
private valueBeforeChange;
|
|
60
61
|
private subscriptionValidator;
|
|
62
|
+
helperSettings: PoHelperOptions;
|
|
61
63
|
private regex;
|
|
62
64
|
get autocomplete(): "off" | "on";
|
|
63
65
|
/**
|
|
@@ -147,6 +149,10 @@ export declare class PoDecimalComponent extends PoInputBaseComponent implements
|
|
|
147
149
|
writeValueModel(value: any): void;
|
|
148
150
|
getErrorPatternMessage(): string;
|
|
149
151
|
private addZeroBefore;
|
|
152
|
+
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
153
|
+
hideAdditionalHelp: boolean;
|
|
154
|
+
helperSettings?: any;
|
|
155
|
+
};
|
|
150
156
|
private containsComma;
|
|
151
157
|
private containsMoreThanOneDecimalSeparator;
|
|
152
158
|
private controlChangeEmitter;
|