@po-ui/ng-components 19.2.0 → 19.3.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 +1265 -507
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-button/po-button-base.component.d.ts +2 -1
- package/lib/components/po-button/po-button.component.d.ts +1 -0
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-field.interface.d.ts +5 -12
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.d.ts +2 -0
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.d.ts +31 -0
- package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +11 -1
- package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +22 -0
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +18 -9
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +25 -1
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +10 -1
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +22 -0
- package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +9 -1
- package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +24 -0
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +11 -1
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +22 -0
- package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +1 -0
- package/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.d.ts +9 -3
- package/lib/components/po-field/po-field.model.d.ts +32 -1
- package/lib/components/po-field/po-input/po-input-base.component.d.ts +32 -1
- package/lib/components/po-field/po-input-generic/po-input-generic.d.ts +1 -0
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +10 -1
- package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +24 -0
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +18 -9
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +22 -0
- package/lib/components/po-field/po-radio/po-radio.component.d.ts +2 -1
- package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +18 -9
- package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +25 -0
- package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +10 -1
- package/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.d.ts +2 -1
- package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +23 -0
- package/lib/components/po-field/po-select/po-select.component.d.ts +22 -0
- package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +18 -9
- package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +23 -0
- package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +10 -1
- package/lib/components/po-field/po-upload/po-upload.component.d.ts +27 -1
- package/lib/components/po-table/po-table.component.d.ts +1 -0
- package/lib/directives/po-tooltip/po-tooltip.directive.d.ts +1 -0
- package/lib/services/po-i18n/index.d.ts +1 -0
- package/lib/services/po-i18n/interfaces/po-i18n-config-context.interface.d.ts +18 -0
- package/lib/services/po-i18n/interfaces/po-i18n-config.interface.d.ts +2 -1
- package/lib/services/po-i18n/po-i18n-config-injection-token.d.ts +1 -1
- package/lib/services/po-i18n/po-i18n.module.d.ts +1 -2
- package/lib/services/po-i18n/po-i18n.service.d.ts +2 -1
- package/package.json +4 -4
- package/po-ui-ng-components-19.3.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/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-19.2.0.tgz +0 -0
|
@@ -109,6 +109,7 @@ export declare class PoButtonBaseComponent {
|
|
|
109
109
|
* @default `PoButtonType.Button`
|
|
110
110
|
*/
|
|
111
111
|
type?: PoButtonType;
|
|
112
|
+
blur: EventEmitter<any>;
|
|
112
113
|
/** Ação que será executada quando o usuário clicar sobre o `po-button`. */
|
|
113
114
|
click: EventEmitter<null>;
|
|
114
115
|
private _danger?;
|
|
@@ -197,6 +198,6 @@ export declare class PoButtonBaseComponent {
|
|
|
197
198
|
*/
|
|
198
199
|
ariaLabel?: string;
|
|
199
200
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoButtonBaseComponent, never>;
|
|
200
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoButtonBaseComponent, never, never, { "label": { "alias": "p-label"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "type": { "alias": "p-type"; "required": false; }; "loading": { "alias": "p-loading"; "required": false; }; "danger": { "alias": "p-danger"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "kind": { "alias": "p-kind"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "ariaLabel": { "alias": "p-aria-label"; "required": false; }; }, { "click": "p-click"; }, never, never, true, never>;
|
|
201
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoButtonBaseComponent, never, never, { "label": { "alias": "p-label"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "type": { "alias": "p-type"; "required": false; }; "loading": { "alias": "p-loading"; "required": false; }; "danger": { "alias": "p-danger"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; "kind": { "alias": "p-kind"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "ariaLabel": { "alias": "p-aria-label"; "required": false; }; }, { "blur": "p-blur"; "click": "p-click"; }, never, never, true, never>;
|
|
201
202
|
static ngAcceptInputType_danger: any;
|
|
202
203
|
}
|
|
@@ -21,20 +21,12 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
21
21
|
/**
|
|
22
22
|
* Evento disparado ao clicar no ícone de ajuda adicional.
|
|
23
23
|
* Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
|
|
24
|
-
*
|
|
25
|
-
* **Componentes compatíveis:** `po-checkbox`, `po-checkbox-group`, `po-combo`, `po-datepicker`, `po-datepicker-range`,
|
|
26
|
-
* `po-decimal`, `po-email`, `po-input`, `po-login`, `po-lookup`, `po-multiselect`, `po-number`, `po-password`,
|
|
27
|
-
* `po-radio-group`, `po-rich-text`, `po-select`, `po-switch`, `po-textarea`, `po-upload`, `po-url`.
|
|
28
24
|
*/
|
|
29
25
|
additionalHelp?: Function;
|
|
30
26
|
/**
|
|
31
27
|
* Exibe um ícone de ajuda adicional ao `p-help`, com o texto desta propriedade no tooltip.
|
|
32
28
|
* Se o evento `p-additional-help` estiver definido, o tooltip não será exibido.
|
|
33
29
|
* **Como boa prática, indica-se utilizar um texto com até 140 caracteres.**
|
|
34
|
-
*
|
|
35
|
-
* **Componentes compatíveis:** `po-checkbox`, `po-checkbox-group`, `po-combo`, `po-datepicker`, `po-datepicker-range`,
|
|
36
|
-
* `po-decimal`, `po-email`, `po-input`, `po-login`, `po-lookup`, `po-multiselect`, `po-number`, `po-password`,
|
|
37
|
-
* `po-radio-group`, `po-rich-text`, `po-select`, `po-switch`, `po-textarea`, `po-upload`, `po-url`.
|
|
38
30
|
*/
|
|
39
31
|
additionalHelpTooltip?: string;
|
|
40
32
|
/**
|
|
@@ -44,10 +36,6 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
44
36
|
*
|
|
45
37
|
* > O uso dessa propriedade pode acarretar na perda sequencial da tabulação da página.
|
|
46
38
|
* Quando utilizado com `p-additional-help-tooltip`, leitores de tela como o NVDA podem não ler o conteúdo do tooltip.
|
|
47
|
-
*
|
|
48
|
-
* **Componentes compatíveis:** `po-checkbox`, `po-checkbox-group`, `po-combo`, `po-datepicker`, `po-datepicker-range`,
|
|
49
|
-
* `po-decimal`, `po-email`, `po-input`, `po-login`, `po-lookup`, `po-multiselect`, `po-number`, `po-password`,
|
|
50
|
-
* `po-radio-group`, `po-rich-text`, `po-select`, `po-switch`, `po-textarea`, `po-upload`, `po-url`.
|
|
51
39
|
*/
|
|
52
40
|
appendBox?: boolean;
|
|
53
41
|
/**
|
|
@@ -60,6 +48,11 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
60
48
|
* **Componentes compatíveis:** `po-radio-group`, `po-lookup`, `po-checkbox-group`.
|
|
61
49
|
*/
|
|
62
50
|
columns?: Array<PoLookupColumn> | number;
|
|
51
|
+
/**
|
|
52
|
+
* Função executada quando uma tecla é pressionada enquanto o foco está no componente.
|
|
53
|
+
* Retorna um objeto `KeyboardEvent` com informações sobre a tecla.
|
|
54
|
+
*/
|
|
55
|
+
keydown?: Function;
|
|
63
56
|
/** Define a obrigatoriedade do campo. */
|
|
64
57
|
required?: boolean;
|
|
65
58
|
/**
|
|
@@ -19,6 +19,7 @@ export declare class PoDynamicFormFieldsComponent extends PoDynamicFormFieldsBas
|
|
|
19
19
|
components: QueryList<{
|
|
20
20
|
name: string;
|
|
21
21
|
focus: () => void;
|
|
22
|
+
showAdditionalHelp: () => void;
|
|
22
23
|
}>;
|
|
23
24
|
private previousValue;
|
|
24
25
|
constructor(titleCasePipe: TitleCasePipe, validationService: PoDynamicFormValidationService, changes: ChangeDetectorRef, form: NgForm);
|
|
@@ -27,6 +28,7 @@ export declare class PoDynamicFormFieldsComponent extends PoDynamicFormFieldsBas
|
|
|
27
28
|
isDisabled(field: PoDynamicFormField): boolean;
|
|
28
29
|
onChangeField(visibleField: PoDynamicFormField, objectValue?: any): Promise<void>;
|
|
29
30
|
onChangeFieldModel(visibleField: PoDynamicFormField): void;
|
|
31
|
+
showAdditionalHelp(property: string): void;
|
|
30
32
|
updatePreviousValue(): void;
|
|
31
33
|
trackBy(index: any): any;
|
|
32
34
|
private applyFieldValidation;
|
|
@@ -36,8 +36,10 @@ export declare class PoDynamicFormComponent extends PoDynamicFormBaseComponent i
|
|
|
36
36
|
fieldsComponent: {
|
|
37
37
|
focus: (property: string) => void;
|
|
38
38
|
updatePreviousValue: () => void;
|
|
39
|
+
showAdditionalHelp: (property: string) => void;
|
|
39
40
|
};
|
|
40
41
|
disabledForm: boolean;
|
|
42
|
+
displayAdditionalHelp: boolean;
|
|
41
43
|
private _form;
|
|
42
44
|
private onLoadSubscription;
|
|
43
45
|
private sendFormSubscription;
|
|
@@ -78,6 +80,35 @@ export declare class PoDynamicFormComponent extends PoDynamicFormBaseComponent i
|
|
|
78
80
|
focus(property: string): void;
|
|
79
81
|
getObjectValue(): Observable<any>;
|
|
80
82
|
sendObjectValue(objectValue: any): void;
|
|
83
|
+
/**
|
|
84
|
+
* Método que exibe `additionalHelpTooltip` ou executa a ação definida em `additionalHelp`.
|
|
85
|
+
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `keydown`.
|
|
86
|
+
*
|
|
87
|
+
* ```
|
|
88
|
+
* import { PoDynamicModule } from '@po-ui/ng-components';
|
|
89
|
+
* ...
|
|
90
|
+
* @ViewChild('dynamicForm', { static: true }) dynamicForm: PoDynamicFormComponent;
|
|
91
|
+
*
|
|
92
|
+
* fields: Array<PoDynamicFormField> = [
|
|
93
|
+
* {
|
|
94
|
+
* property: 'name',
|
|
95
|
+
* ...
|
|
96
|
+
* help: 'Mensagem de ajuda.',
|
|
97
|
+
* additionalHelpTooltip: 'Mensagem de ajuda complementar.',
|
|
98
|
+
* keydown: this.onKeyDown.bind(this, 'name')
|
|
99
|
+
* },
|
|
100
|
+
* ]
|
|
101
|
+
*
|
|
102
|
+
* onKeyDown(property: string, event: KeyboardEvent): void {
|
|
103
|
+
* if (event.code === 'F9') {
|
|
104
|
+
* this.dynamicForm.showAdditionalHelp(property);
|
|
105
|
+
* }
|
|
106
|
+
* }
|
|
107
|
+
* ```
|
|
108
|
+
*
|
|
109
|
+
* @param { string } property Identificador da coluna.
|
|
110
|
+
*/
|
|
111
|
+
showAdditionalHelp(property: string): void;
|
|
81
112
|
validateForm(field: PoDynamicFormField): void;
|
|
82
113
|
private applyFormUpdatesOnLoad;
|
|
83
114
|
private applyFormValidation;
|
|
@@ -98,6 +98,7 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
|
|
|
98
98
|
* Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
|
|
99
99
|
*/
|
|
100
100
|
additionalHelp: EventEmitter<any>;
|
|
101
|
+
blur: EventEmitter<any>;
|
|
101
102
|
/**
|
|
102
103
|
* @optional
|
|
103
104
|
*
|
|
@@ -106,9 +107,18 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
|
|
|
106
107
|
* Evento disparado quando o valor do *checkbox* for alterado.
|
|
107
108
|
*/
|
|
108
109
|
change: EventEmitter<any>;
|
|
110
|
+
/**
|
|
111
|
+
* @optional
|
|
112
|
+
*
|
|
113
|
+
* @description
|
|
114
|
+
* Evento disparado quando uma tecla é pressionada enquanto o foco está no componente.
|
|
115
|
+
* Retorna um objeto `KeyboardEvent` com informações sobre a tecla.
|
|
116
|
+
*/
|
|
117
|
+
keydown: EventEmitter<KeyboardEvent>;
|
|
109
118
|
checkboxValue: boolean | null | string;
|
|
110
119
|
checkBoxRequired: boolean;
|
|
111
120
|
disabladTabindex: boolean;
|
|
121
|
+
displayAdditionalHelp: boolean;
|
|
112
122
|
id: string;
|
|
113
123
|
propagateChange: any;
|
|
114
124
|
onTouched: any;
|
|
@@ -149,7 +159,7 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
|
|
|
149
159
|
writeValue(value: any): void;
|
|
150
160
|
protected abstract changeModelValue(value: boolean | null): any;
|
|
151
161
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoCheckboxBaseComponent, never>;
|
|
152
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoCheckboxBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "name": { "alias": "name"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "checkboxValue": { "alias": "p-checkboxValue"; "required": false; }; "checkBoxRequired": { "alias": "p-required"; "required": false; }; "disabladTabindex": { "alias": "p-disabled-tabindex"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "change": "p-change"; }, never, never, true, never>;
|
|
162
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoCheckboxBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "name": { "alias": "name"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "checkboxValue": { "alias": "p-checkboxValue"; "required": false; }; "checkBoxRequired": { "alias": "p-required"; "required": false; }; "disabladTabindex": { "alias": "p-disabled-tabindex"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "blur": "p-blur"; "change": "p-change"; "keydown": "p-keydown"; }, never, never, true, never>;
|
|
153
163
|
static ngAcceptInputType_appendBox: any;
|
|
154
164
|
static ngAcceptInputType_autoFocus: any;
|
|
155
165
|
static ngAcceptInputType_checkBoxRequired: any;
|
|
@@ -53,6 +53,28 @@ export declare class PoCheckboxComponent extends PoCheckboxBaseComponent impleme
|
|
|
53
53
|
emitAdditionalHelp(): void;
|
|
54
54
|
getAdditionalHelpTooltip(): string;
|
|
55
55
|
onKeyDown(event: KeyboardEvent, value: boolean | string): void;
|
|
56
|
+
/**
|
|
57
|
+
* Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
|
|
58
|
+
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
59
|
+
*
|
|
60
|
+
* ```
|
|
61
|
+
* <po-checkbox
|
|
62
|
+
* #checkbox
|
|
63
|
+
* ...
|
|
64
|
+
* p-additional-help-tooltip="Mensagem de ajuda complementar"
|
|
65
|
+
* (p-keydown)="onKeyDown($event, checkbox)"
|
|
66
|
+
* ></po-checkbox>
|
|
67
|
+
* ```
|
|
68
|
+
* ```
|
|
69
|
+
* ...
|
|
70
|
+
* onKeyDown(event: KeyboardEvent, inp: PoCheckboxComponent): void {
|
|
71
|
+
* if (event.code === 'F9') {
|
|
72
|
+
* inp.showAdditionalHelp();
|
|
73
|
+
* }
|
|
74
|
+
* }
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
showAdditionalHelp(): boolean;
|
|
56
78
|
showAdditionalHelpIcon(): boolean;
|
|
57
79
|
protected changeModelValue(value: boolean | null | string): void;
|
|
58
80
|
private isAdditionalHelpEventTriggered;
|
|
@@ -101,14 +101,6 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
|
|
|
101
101
|
*
|
|
102
102
|
*/
|
|
103
103
|
fieldErrorMessage: string;
|
|
104
|
-
/**
|
|
105
|
-
* @optional
|
|
106
|
-
*
|
|
107
|
-
* @description
|
|
108
|
-
* Evento disparado ao clicar no ícone de ajuda adicional.
|
|
109
|
-
* Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
|
|
110
|
-
*/
|
|
111
|
-
additionalHelp: EventEmitter<any>;
|
|
112
104
|
/**
|
|
113
105
|
* @optional
|
|
114
106
|
*
|
|
@@ -138,6 +130,14 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
|
|
|
138
130
|
*
|
|
139
131
|
*/
|
|
140
132
|
ngModelChange: EventEmitter<any>;
|
|
133
|
+
/**
|
|
134
|
+
* @optional
|
|
135
|
+
*
|
|
136
|
+
* @description
|
|
137
|
+
* Evento disparado ao clicar no ícone de ajuda adicional.
|
|
138
|
+
* Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
|
|
139
|
+
*/
|
|
140
|
+
additionalHelp: EventEmitter<any>;
|
|
141
141
|
/**
|
|
142
142
|
* @optional
|
|
143
143
|
*
|
|
@@ -146,9 +146,18 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
|
|
|
146
146
|
* Evento disparado ao alterar valor do campo
|
|
147
147
|
*/
|
|
148
148
|
change: EventEmitter<any>;
|
|
149
|
+
/**
|
|
150
|
+
* @optional
|
|
151
|
+
*
|
|
152
|
+
* @description
|
|
153
|
+
* Evento disparado quando uma tecla é pressionada enquanto o foco está no componente.
|
|
154
|
+
* Retorna um objeto `KeyboardEvent` com informações sobre a tecla.
|
|
155
|
+
*/
|
|
156
|
+
keydown: EventEmitter<KeyboardEvent>;
|
|
149
157
|
checkboxGroupOptionsView: Array<PoCheckboxGroupOptionView>;
|
|
150
158
|
checkedOptions: any;
|
|
151
159
|
checkedOptionsList: any;
|
|
160
|
+
displayAdditionalHelp: boolean;
|
|
152
161
|
mdColumns: number;
|
|
153
162
|
propagateChange: any;
|
|
154
163
|
validatorChange: any;
|
|
@@ -247,7 +256,7 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
|
|
|
247
256
|
private removeDuplicatedOptions;
|
|
248
257
|
private setCheckboxGroupOptionsView;
|
|
249
258
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoCheckboxGroupBaseComponent, never>;
|
|
250
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoCheckboxGroupBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "name": { "alias": "name"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "fieldErrorMessage": { "alias": "p-field-error-message"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "columns": { "alias": "p-columns"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "indeterminate": { "alias": "p-indeterminate"; "required": false; }; "options": { "alias": "p-options"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "
|
|
259
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoCheckboxGroupBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "name": { "alias": "name"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "fieldErrorMessage": { "alias": "p-field-error-message"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "columns": { "alias": "p-columns"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "indeterminate": { "alias": "p-indeterminate"; "required": false; }; "options": { "alias": "p-options"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; }, { "ngModelChange": "ngModelChange"; "additionalHelp": "p-additional-help"; "change": "p-change"; "keydown": "p-keydown"; }, never, never, true, never>;
|
|
251
260
|
static ngAcceptInputType_appendBox: any;
|
|
252
261
|
static ngAcceptInputType_autoFocus: any;
|
|
253
262
|
}
|
|
@@ -30,6 +30,7 @@ export declare class PoCheckboxGroupComponent extends PoCheckboxGroupBaseCompone
|
|
|
30
30
|
constructor(changeDetector: ChangeDetectorRef);
|
|
31
31
|
ngAfterViewChecked(): void;
|
|
32
32
|
ngAfterViewInit(): void;
|
|
33
|
+
onBlur(checkbox: PoCheckboxComponent): void;
|
|
33
34
|
emitAdditionalHelp(): void;
|
|
34
35
|
/**
|
|
35
36
|
* Função que atribui foco ao componente.
|
|
@@ -52,10 +53,33 @@ export declare class PoCheckboxGroupComponent extends PoCheckboxGroupBaseCompone
|
|
|
52
53
|
getAdditionalHelpTooltip(): string;
|
|
53
54
|
getErrorPattern(): string;
|
|
54
55
|
hasInvalidClass(): any;
|
|
55
|
-
onKeyDown(event: KeyboardEvent, option: PoCheckboxGroupOption): void;
|
|
56
|
+
onKeyDown(event: KeyboardEvent, option: PoCheckboxGroupOption, checkbox?: PoCheckboxComponent): void;
|
|
57
|
+
/**
|
|
58
|
+
* Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
|
|
59
|
+
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
* <po-checkbox-group
|
|
63
|
+
* #checkboxGroup
|
|
64
|
+
* ...
|
|
65
|
+
* p-additional-help-tooltip="Mensagem de ajuda complementar"
|
|
66
|
+
* (p-keydown)="onKeyDown($event, checkboxGroup)"
|
|
67
|
+
* ></po-checkbox-group>
|
|
68
|
+
* ```
|
|
69
|
+
* ```
|
|
70
|
+
* ...
|
|
71
|
+
* onKeyDown(event: KeyboardEvent, inp: PoCheckboxGroupComponent): void {
|
|
72
|
+
* if (event.code === 'F9') {
|
|
73
|
+
* inp.showAdditionalHelp();
|
|
74
|
+
* }
|
|
75
|
+
* }
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
showAdditionalHelp(): boolean;
|
|
56
79
|
showAdditionalHelpIcon(): boolean;
|
|
57
80
|
trackByFn(index: any): any;
|
|
58
81
|
private isAdditionalHelpEventTriggered;
|
|
82
|
+
private isCheckboxOptionFocused;
|
|
59
83
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoCheckboxGroupComponent, never>;
|
|
60
84
|
static ɵcmp: i0.ɵɵComponentDeclaration<PoCheckboxGroupComponent, "po-checkbox-group", never, {}, {}, never, never, false, never>;
|
|
61
85
|
}
|
|
@@ -258,6 +258,14 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
258
258
|
* > Pode-se optar pelo recebimento do objeto selecionado ao invés do model através da propriedade `p-emit-object-value`.
|
|
259
259
|
*/
|
|
260
260
|
change: EventEmitter<any>;
|
|
261
|
+
/**
|
|
262
|
+
* @optional
|
|
263
|
+
*
|
|
264
|
+
* @description
|
|
265
|
+
* Evento disparado quando uma tecla é pressionada enquanto o foco está no componente.
|
|
266
|
+
* Retorna um objeto `KeyboardEvent` com informações sobre a tecla.
|
|
267
|
+
*/
|
|
268
|
+
keydown: EventEmitter<KeyboardEvent>;
|
|
261
269
|
/**
|
|
262
270
|
* @optional
|
|
263
271
|
*
|
|
@@ -299,6 +307,7 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
299
307
|
page: number;
|
|
300
308
|
pageSize: number;
|
|
301
309
|
loading: boolean;
|
|
310
|
+
displayAdditionalHelp: boolean;
|
|
302
311
|
dynamicLabel: string;
|
|
303
312
|
dynamicValue: string;
|
|
304
313
|
shouldApplyFocus: boolean;
|
|
@@ -576,7 +585,7 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
576
585
|
abstract getInputValue(): string;
|
|
577
586
|
abstract initInputObservable(): void;
|
|
578
587
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoComboBaseComponent, never>;
|
|
579
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoComboBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "name": { "alias": "name"; "required": false; }; "filterService": { "alias": "p-filter-service"; "required": false; }; "infiniteScroll": { "alias": "p-infinite-scroll"; "required": false; }; "infiniteScrollDistance": { "alias": "p-infinite-scroll-distance"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "clean": { "alias": "p-clean"; "required": false; }; "emitObjectValue": { "alias": "p-emit-object-value"; "required": false; }; "disabledTabFilter": { "alias": "p-disabled-tab-filter"; "required": false; }; "removeInitialFilter": { "alias": "p-remove-initial-filter"; "required": false; }; "fieldErrorMessage": { "alias": "p-field-error-message"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "debounceTime": { "alias": "p-debounce-time"; "required": false; }; "disabledInitFilter": { "alias": "p-disabled-init-filter"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "filterMinlength": { "alias": "p-filter-minlength"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "changeOnEnter": { "alias": "p-change-on-enter"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "sort": { "alias": "p-sort"; "required": false; }; "options": { "alias": "p-options"; "required": false; }; "filterMode": { "alias": "p-filter-mode"; "required": false; }; "filterParams": { "alias": "p-filter-params"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "cache": { "alias": "p-cache"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "change": "p-change"; "ngModelChange": "ngModelChange"; "inputChange": "p-input-change"; }, never, never, true, never>;
|
|
588
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoComboBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "name": { "alias": "name"; "required": false; }; "filterService": { "alias": "p-filter-service"; "required": false; }; "infiniteScroll": { "alias": "p-infinite-scroll"; "required": false; }; "infiniteScrollDistance": { "alias": "p-infinite-scroll-distance"; "required": false; }; "icon": { "alias": "p-icon"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "clean": { "alias": "p-clean"; "required": false; }; "emitObjectValue": { "alias": "p-emit-object-value"; "required": false; }; "disabledTabFilter": { "alias": "p-disabled-tab-filter"; "required": false; }; "removeInitialFilter": { "alias": "p-remove-initial-filter"; "required": false; }; "fieldErrorMessage": { "alias": "p-field-error-message"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "debounceTime": { "alias": "p-debounce-time"; "required": false; }; "disabledInitFilter": { "alias": "p-disabled-init-filter"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "filterMinlength": { "alias": "p-filter-minlength"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "changeOnEnter": { "alias": "p-change-on-enter"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "sort": { "alias": "p-sort"; "required": false; }; "options": { "alias": "p-options"; "required": false; }; "filterMode": { "alias": "p-filter-mode"; "required": false; }; "filterParams": { "alias": "p-filter-params"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "cache": { "alias": "p-cache"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "change": "p-change"; "keydown": "p-keydown"; "ngModelChange": "ngModelChange"; "inputChange": "p-input-change"; }, never, never, true, never>;
|
|
580
589
|
static ngAcceptInputType_autoFocus: any;
|
|
581
590
|
static ngAcceptInputType_clean: any;
|
|
582
591
|
static ngAcceptInputType_emitObjectValue: any;
|
|
@@ -132,6 +132,28 @@ export declare class PoComboComponent extends PoComboBaseComponent implements Af
|
|
|
132
132
|
cleanListbox(): void;
|
|
133
133
|
getInputValue(): any;
|
|
134
134
|
setInputValue(value: string): void;
|
|
135
|
+
/**
|
|
136
|
+
* Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
|
|
137
|
+
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
138
|
+
*
|
|
139
|
+
* ```
|
|
140
|
+
* <po-combo
|
|
141
|
+
* #combo
|
|
142
|
+
* ...
|
|
143
|
+
* p-additional-help-tooltip="Mensagem de ajuda complementar"
|
|
144
|
+
* (p-keydown)="onKeyDown($event, combo)"
|
|
145
|
+
* ></po-combo>
|
|
146
|
+
* ```
|
|
147
|
+
* ```
|
|
148
|
+
* ...
|
|
149
|
+
* onKeyDown(event: KeyboardEvent, inp: PoComboComponent): void {
|
|
150
|
+
* if (event.code === 'F9') {
|
|
151
|
+
* inp.showAdditionalHelp();
|
|
152
|
+
* }
|
|
153
|
+
* }
|
|
154
|
+
* ```
|
|
155
|
+
*/
|
|
156
|
+
showAdditionalHelp(): boolean;
|
|
135
157
|
wasClickedOnToggle(event: MouseEvent): void;
|
|
136
158
|
isValidCharacterToSearch(keyCode: any): boolean;
|
|
137
159
|
searchOnEnterOrArrow(event: any, value: string): void;
|
|
@@ -186,6 +186,14 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
186
186
|
* Evento disparado ao alterar valor do campo.
|
|
187
187
|
*/
|
|
188
188
|
onchange: EventEmitter<any>;
|
|
189
|
+
/**
|
|
190
|
+
* @optional
|
|
191
|
+
*
|
|
192
|
+
* @description
|
|
193
|
+
* Evento disparado quando uma tecla é pressionada enquanto o foco está no componente.
|
|
194
|
+
* Retorna um objeto `KeyboardEvent` com informações sobre a tecla.
|
|
195
|
+
*/
|
|
196
|
+
keydown: EventEmitter<KeyboardEvent>;
|
|
189
197
|
offset: number;
|
|
190
198
|
protected firstStart: boolean;
|
|
191
199
|
protected hour: string;
|
|
@@ -346,7 +354,7 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
346
354
|
abstract writeValue(value: any): void;
|
|
347
355
|
abstract refreshValue(value: Date): void;
|
|
348
356
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoDatepickerBaseComponent, never>;
|
|
349
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoDatepickerBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "errorAsync": { "alias": "p-error-async"; "required": false; }; "name": { "alias": "name"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "errorPattern": { "alias": "p-error-pattern"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "showErrorMessageRequired": { "alias": "p-required-field-error-message"; "required": false; }; "noAutocomplete": { "alias": "p-no-autocomplete"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "setDisabled": { "alias": "p-disabled"; "required": false; }; "setReadonly": { "alias": "p-readonly"; "required": false; }; "setRequired": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "setClean": { "alias": "p-clean"; "required": false; }; "minDate": { "alias": "p-min-date"; "required": false; }; "maxDate": { "alias": "p-max-date"; "required": false; }; "format": { "alias": "p-format"; "required": false; }; "isoFormat": { "alias": "p-iso-format"; "required": false; }; "locale": { "alias": "p-locale"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "onblur": "p-blur"; "onchange": "p-change"; }, never, never, true, never>;
|
|
357
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoDatepickerBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "errorAsync": { "alias": "p-error-async"; "required": false; }; "name": { "alias": "name"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "errorPattern": { "alias": "p-error-pattern"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "showErrorMessageRequired": { "alias": "p-required-field-error-message"; "required": false; }; "noAutocomplete": { "alias": "p-no-autocomplete"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "setDisabled": { "alias": "p-disabled"; "required": false; }; "setReadonly": { "alias": "p-readonly"; "required": false; }; "setRequired": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "setClean": { "alias": "p-clean"; "required": false; }; "minDate": { "alias": "p-min-date"; "required": false; }; "maxDate": { "alias": "p-max-date"; "required": false; }; "format": { "alias": "p-format"; "required": false; }; "isoFormat": { "alias": "p-iso-format"; "required": false; }; "locale": { "alias": "p-locale"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "onblur": "p-blur"; "onchange": "p-change"; "keydown": "p-keydown"; }, never, never, true, never>;
|
|
350
358
|
static ngAcceptInputType_autoFocus: any;
|
|
351
359
|
static ngAcceptInputType_appendBox: any;
|
|
352
360
|
}
|
|
@@ -45,6 +45,7 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
45
45
|
label?: string;
|
|
46
46
|
/** Texto de apoio do campo. */
|
|
47
47
|
help?: string;
|
|
48
|
+
displayAdditionalHelp: boolean;
|
|
48
49
|
el: ElementRef;
|
|
49
50
|
hour: string;
|
|
50
51
|
id: string;
|
|
@@ -92,9 +93,32 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
92
93
|
clear(): void;
|
|
93
94
|
eventOnBlur($event: any): void;
|
|
94
95
|
eventOnClick($event: any): void;
|
|
96
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
95
97
|
onKeyPress(event: any): void;
|
|
96
98
|
formatToDate(value: Date): string;
|
|
97
99
|
refreshValue(value: Date): void;
|
|
100
|
+
/**
|
|
101
|
+
* Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
|
|
102
|
+
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
103
|
+
*
|
|
104
|
+
* ```
|
|
105
|
+
* <po-datepicker
|
|
106
|
+
* #datepicker
|
|
107
|
+
* ...
|
|
108
|
+
* p-additional-help-tooltip="Mensagem de ajuda complementar"
|
|
109
|
+
* (p-keydown)="onKeyDown($event, datepicker)"
|
|
110
|
+
* ></po-datepicker>
|
|
111
|
+
* ```
|
|
112
|
+
* ```
|
|
113
|
+
* ...
|
|
114
|
+
* onKeyDown(event: KeyboardEvent, inp: PoDatepickerComponent): void {
|
|
115
|
+
* if (event.code === 'F9') {
|
|
116
|
+
* inp.showAdditionalHelp();
|
|
117
|
+
* }
|
|
118
|
+
* }
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
showAdditionalHelp(): boolean;
|
|
98
122
|
writeValue(value: any): void;
|
|
99
123
|
isValidDateIso(value: string): boolean;
|
|
100
124
|
isValidExtendedIso(value: any): boolean;
|
|
@@ -52,6 +52,7 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
52
52
|
protected poDateService: PoDateService;
|
|
53
53
|
private languageService;
|
|
54
54
|
additionalHelpEventTrigger: string | undefined;
|
|
55
|
+
name: string;
|
|
55
56
|
/**
|
|
56
57
|
* @optional
|
|
57
58
|
*
|
|
@@ -158,8 +159,17 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
158
159
|
* Evento disparado ao alterar valor do campo.
|
|
159
160
|
*/
|
|
160
161
|
onChange: EventEmitter<any>;
|
|
162
|
+
/**
|
|
163
|
+
* @optional
|
|
164
|
+
*
|
|
165
|
+
* @description
|
|
166
|
+
* Evento disparado quando uma tecla é pressionada enquanto o foco está no componente.
|
|
167
|
+
* Retorna um objeto `KeyboardEvent` com informações sobre a tecla.
|
|
168
|
+
*/
|
|
169
|
+
keydown: EventEmitter<KeyboardEvent>;
|
|
161
170
|
errorMessage: string;
|
|
162
171
|
dateRange: PoDatepickerRange;
|
|
172
|
+
displayAdditionalHelp: boolean;
|
|
163
173
|
protected format: any;
|
|
164
174
|
protected isDateRangeInputFormatValid: boolean;
|
|
165
175
|
protected isStartDateRangeInputValid: boolean;
|
|
@@ -352,7 +362,7 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
352
362
|
protected abstract resetDateRangeInputValidation(): void;
|
|
353
363
|
protected abstract updateScreenByModel(dateRange: PoDatepickerRange): any;
|
|
354
364
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoDatepickerRangeBaseComponent, never>;
|
|
355
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoDatepickerRangeBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "fieldErrorMessage": { "alias": "p-field-error-message"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "clean": { "alias": "p-clean"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "endDate": { "alias": "p-end-date"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "minDate": { "alias": "p-min-date"; "required": false; }; "maxDate": { "alias": "p-max-date"; "required": false; }; "noAutocomplete": { "alias": "p-no-autocomplete"; "required": false; }; "readonly": { "alias": "p-readonly"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "startDate": { "alias": "p-start-date"; "required": false; }; "locale": { "alias": "p-locale"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "onChange": "p-change"; }, never, never, true, never>;
|
|
365
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoDatepickerRangeBaseComponent, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "name": { "alias": "name"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "autoFocus": { "alias": "p-auto-focus"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "fieldErrorMessage": { "alias": "p-field-error-message"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "clean": { "alias": "p-clean"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "endDate": { "alias": "p-end-date"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "minDate": { "alias": "p-min-date"; "required": false; }; "maxDate": { "alias": "p-max-date"; "required": false; }; "noAutocomplete": { "alias": "p-no-autocomplete"; "required": false; }; "readonly": { "alias": "p-readonly"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "startDate": { "alias": "p-start-date"; "required": false; }; "locale": { "alias": "p-locale"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "onChange": "p-change"; "keydown": "p-keydown"; }, never, never, true, never>;
|
|
356
366
|
static ngAcceptInputType_appendBox: any;
|
|
357
367
|
static ngAcceptInputType_autoFocus: any;
|
|
358
368
|
}
|
|
@@ -96,6 +96,28 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
96
96
|
onKeyup(event: any): void;
|
|
97
97
|
resetDateRangeInputValidation(): void;
|
|
98
98
|
showAdditionalHelpIcon(): boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
|
|
101
|
+
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
102
|
+
*
|
|
103
|
+
* ```
|
|
104
|
+
* <po-datepicker-range
|
|
105
|
+
* #datepickerRange
|
|
106
|
+
* ...
|
|
107
|
+
* p-additional-help-tooltip="Mensagem de ajuda complementar"
|
|
108
|
+
* (p-keydown)="onKeyDown($event, datepickerRange)"
|
|
109
|
+
* ></po-datepicker-range>
|
|
110
|
+
* ```
|
|
111
|
+
* ```
|
|
112
|
+
* ...
|
|
113
|
+
* onKeyDown(event: KeyboardEvent, inp: PoDatepickerRangeComponent): void {
|
|
114
|
+
* if (event.code === 'F9') {
|
|
115
|
+
* inp.showAdditionalHelp();
|
|
116
|
+
* }
|
|
117
|
+
* }
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
showAdditionalHelp(): boolean;
|
|
99
121
|
toggleCalendar(): void;
|
|
100
122
|
updateScreenByModel(model: PoDatepickerRange): void;
|
|
101
123
|
private applyFocusOnDatePickerRangeField;
|
|
@@ -144,6 +144,7 @@ export declare class PoDecimalComponent extends PoInputBaseComponent implements
|
|
|
144
144
|
onFocus(event: FocusEvent): void;
|
|
145
145
|
onInput(event: any): void;
|
|
146
146
|
onInputKeyboardAndroid(event: any): any;
|
|
147
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
147
148
|
onKeyPress(event: KeyboardEvent): void;
|
|
148
149
|
setPaddingInput(): void;
|
|
149
150
|
writeValueModel(value: any): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { PoTooltipDirective } from '../../../../directives';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
4
5
|
* @docsPrivate
|
|
@@ -8,7 +9,8 @@ import * as i0 from "@angular/core";
|
|
|
8
9
|
* Componente de uso interno, responsável por gerar uma margem inferior nos componentes que utilizam o po-field-container.
|
|
9
10
|
* Essa margem inferior pode conter uma mensagem de erro.
|
|
10
11
|
*/
|
|
11
|
-
export declare class PoFieldContainerBottomComponent {
|
|
12
|
+
export declare class PoFieldContainerBottomComponent implements OnChanges {
|
|
13
|
+
poTooltip: PoTooltipDirective;
|
|
12
14
|
/** Texto exibido no tooltip do ícone de ajuda adicional. */
|
|
13
15
|
additionalHelpTooltip?: string;
|
|
14
16
|
/** Define se o tooltip será inserido no `body` em vez do componente. */
|
|
@@ -24,11 +26,15 @@ export declare class PoFieldContainerBottomComponent {
|
|
|
24
26
|
*/
|
|
25
27
|
errorLimit: boolean;
|
|
26
28
|
help?: string;
|
|
29
|
+
/** Ativa a exibição da ajuda adicional. */
|
|
30
|
+
showAdditionalHelp: boolean;
|
|
27
31
|
/** Exibe o ícone de ajuda adicional. */
|
|
28
32
|
showAdditionalHelpIcon: boolean;
|
|
29
33
|
/** Evento disparado ao clicar no ícone de ajuda adicional. */
|
|
30
34
|
additionalHelp: EventEmitter<any>;
|
|
35
|
+
private isInitialChange;
|
|
36
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
31
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoFieldContainerBottomComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoFieldContainerBottomComponent, "po-field-container-bottom", never, { "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "errorPattern": { "alias": "p-error-pattern"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "showAdditionalHelpIcon": { "alias": "p-show-additional-help-icon"; "required": false; }; }, { "additionalHelp": "p-additional-help"; }, never, never, false, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoFieldContainerBottomComponent, "po-field-container-bottom", never, { "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "errorPattern": { "alias": "p-error-pattern"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "showAdditionalHelp": { "alias": "p-show-additional-help"; "required": false; }; "showAdditionalHelpIcon": { "alias": "p-show-additional-help-icon"; "required": false; }; }, { "additionalHelp": "p-additional-help"; }, never, never, false, never>;
|
|
33
39
|
static ngAcceptInputType_appendBox: any;
|
|
34
40
|
}
|
|
@@ -59,6 +59,15 @@ export declare abstract class PoFieldModel<T> implements ControlValueAccessor {
|
|
|
59
59
|
* Evento disparado ao alterar valor do campo.
|
|
60
60
|
*/
|
|
61
61
|
change: EventEmitter<T>;
|
|
62
|
+
/**
|
|
63
|
+
* @optional
|
|
64
|
+
*
|
|
65
|
+
* @description
|
|
66
|
+
* Evento disparado quando uma tecla é pressionada enquanto o foco está no componente.
|
|
67
|
+
* Retorna um objeto `KeyboardEvent` com informações sobre a tecla.
|
|
68
|
+
*/
|
|
69
|
+
keydown: EventEmitter<KeyboardEvent>;
|
|
70
|
+
displayAdditionalHelp: boolean;
|
|
62
71
|
value: T;
|
|
63
72
|
protected onTouched: any;
|
|
64
73
|
private propagateChange;
|
|
@@ -70,12 +79,34 @@ export declare abstract class PoFieldModel<T> implements ControlValueAccessor {
|
|
|
70
79
|
emitAdditionalHelp(): void;
|
|
71
80
|
emitChange(value: any): void;
|
|
72
81
|
getAdditionalHelpTooltip(): string;
|
|
82
|
+
/**
|
|
83
|
+
* Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
|
|
84
|
+
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
85
|
+
*
|
|
86
|
+
* ```
|
|
87
|
+
* <po-nome-component
|
|
88
|
+
* #component
|
|
89
|
+
* ...
|
|
90
|
+
* p-additional-help-tooltip="Mensagem de ajuda complementar"
|
|
91
|
+
* (p-keydown)="onKeyDown($event, component)"
|
|
92
|
+
* ></po-nome-component>
|
|
93
|
+
* ```
|
|
94
|
+
* ```
|
|
95
|
+
* ...
|
|
96
|
+
* onKeyDown(event: KeyboardEvent, inp: PoNomeDoComponente): void {
|
|
97
|
+
* if (event.code === 'F9') {
|
|
98
|
+
* inp.showAdditionalHelp();
|
|
99
|
+
* }
|
|
100
|
+
* }
|
|
101
|
+
* ```
|
|
102
|
+
*/
|
|
103
|
+
showAdditionalHelp(): boolean;
|
|
73
104
|
showAdditionalHelpIcon(): boolean;
|
|
74
105
|
private isAdditionalHelpEventTriggered;
|
|
75
106
|
protected updateModel(value: T): void;
|
|
76
107
|
abstract onWriteValue(value: T): void;
|
|
77
108
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoFieldModel<any>, never>;
|
|
78
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoFieldModel<any>, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "change": "p-change"; }, never, never, true, never>;
|
|
109
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoFieldModel<any>, never, never, { "additionalHelpEventTrigger": { "alias": "additionalHelpEventTrigger"; "required": false; }; "additionalHelpTooltip": { "alias": "p-additional-help-tooltip"; "required": false; }; "appendBox": { "alias": "p-append-in-body"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "change": "p-change"; "keydown": "p-keydown"; }, never, never, true, never>;
|
|
79
110
|
static ngAcceptInputType_appendBox: any;
|
|
80
111
|
static ngAcceptInputType_disabled: any;
|
|
81
112
|
}
|