@po-ui/ng-components 19.29.0 → 19.31.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 -2450
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/components.module.d.ts +3 -2
- package/lib/components/index.d.ts +1 -0
- package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts +3 -3
- package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +40 -2
- package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +26 -2
- package/lib/components/po-field/po-checkbox/po-checkbox.module.d.ts +3 -1
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +37 -1
- 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 +39 -1
- 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 +39 -1
- 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 +39 -1
- 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 +7 -1
- package/lib/components/po-field/po-field-container/po-field-container.component.d.ts +23 -3
- package/lib/components/po-field/po-field-container/po-field-container.module.d.ts +2 -1
- package/lib/components/po-field/po-field.model.d.ts +23 -1
- package/lib/components/po-field/po-field.module.d.ts +2 -1
- package/lib/components/po-field/po-input/po-input-base.component.d.ts +53 -2
- 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 +39 -1
- 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 +39 -1
- 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 +39 -1
- 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 +39 -1
- 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 +48 -3
- package/lib/components/po-field/po-switch/po-switch.component.d.ts +32 -1
- package/lib/components/po-field/po-switch/po-switch.module.d.ts +2 -1
- package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +39 -1
- 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 +39 -1
- 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 +112 -0
- package/lib/components/po-helper/po-helper.component.d.ts +52 -0
- package/lib/components/po-helper/po-helper.module.d.ts +16 -0
- package/lib/components/po-label/po-label.component.d.ts +14 -1
- package/lib/components/po-label/po-label.module.d.ts +2 -1
- package/lib/components/po-popover/po-popover.component.d.ts +5 -3
- package/lib/components/po-table/interfaces/po-table-column.interface.d.ts +10 -10
- 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-19.31.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.29.0.tgz +0 -0
|
@@ -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
|
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* @docsExtends PoDatepickerBaseComponent
|
|
@@ -45,6 +46,7 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
45
46
|
id: string;
|
|
46
47
|
visible: boolean;
|
|
47
48
|
literals: any;
|
|
49
|
+
helperSettings: PoHelperOptions;
|
|
48
50
|
eventListenerFunction: () => void;
|
|
49
51
|
eventResizeListener: () => void;
|
|
50
52
|
private clickListener;
|
|
@@ -95,6 +97,8 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
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
|
|
100
104
|
* #datepicker
|
|
@@ -104,6 +108,16 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
104
108
|
* ></po-datepicker>
|
|
105
109
|
* ```
|
|
106
110
|
* ```
|
|
111
|
+
* // Exemplo com p-label e p-helper
|
|
112
|
+
* <po-datepicker
|
|
113
|
+
* #datepicker
|
|
114
|
+
* ...
|
|
115
|
+
* p-label="Label do datepicker"
|
|
116
|
+
* [p-helper]="helperOptions"
|
|
117
|
+
* (p-keydown)="onKeyDown($event, datepicker)"
|
|
118
|
+
* ></po-datepicker>
|
|
119
|
+
* ```
|
|
120
|
+
* ```
|
|
107
121
|
* ...
|
|
108
122
|
* onKeyDown(event: KeyboardEvent, inp: PoDatepickerComponent): void {
|
|
109
123
|
* if (event.code === 'F9') {
|
|
@@ -133,6 +147,10 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
133
147
|
private shouldHandleTab;
|
|
134
148
|
private focusCalendar;
|
|
135
149
|
onCalendarKeyDown(event: KeyboardEvent): void;
|
|
150
|
+
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
151
|
+
hideAdditionalHelp: boolean;
|
|
152
|
+
helperSettings?: any;
|
|
153
|
+
};
|
|
136
154
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoDatepickerComponent, never>;
|
|
137
155
|
static ɵcmp: i0.ɵɵComponentDeclaration<PoDatepickerComponent, "po-datepicker", never, { "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; }, {}, never, never, false, never>;
|
|
138
156
|
}
|
|
@@ -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
|
import * as i0 from "@angular/core";
|
|
9
10
|
/**
|
|
10
11
|
* @description
|
|
@@ -54,6 +55,9 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
54
55
|
additionalHelpEventTrigger: string | undefined;
|
|
55
56
|
name: string;
|
|
56
57
|
/**
|
|
58
|
+
*
|
|
59
|
+
* @deprecated v23.x.x use `p-helper`
|
|
60
|
+
*
|
|
57
61
|
* @optional
|
|
58
62
|
*
|
|
59
63
|
* @description
|
|
@@ -61,6 +65,8 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
61
65
|
* Se o evento `p-additional-help` estiver definido, o tooltip não será exibido.
|
|
62
66
|
* **Como boa prática, indica-se utilizar um texto com até 140 caracteres.**
|
|
63
67
|
* > Requer um recuo mínimo de 8px se o componente estiver próximo à lateral da tela.
|
|
68
|
+
*
|
|
69
|
+
* > 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.
|
|
64
70
|
*/
|
|
65
71
|
additionalHelpTooltip?: string;
|
|
66
72
|
/**
|
|
@@ -131,11 +137,16 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
131
137
|
*/
|
|
132
138
|
fieldErrorMessage: string;
|
|
133
139
|
/**
|
|
140
|
+
*
|
|
141
|
+
* @deprecated v23.x.x use `p-helper`
|
|
142
|
+
*
|
|
134
143
|
* @optional
|
|
135
144
|
*
|
|
136
145
|
* @description
|
|
137
146
|
* Evento disparado ao clicar no ícone de ajuda adicional.
|
|
138
147
|
* Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
|
|
148
|
+
*
|
|
149
|
+
* > 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.
|
|
139
150
|
*/
|
|
140
151
|
additionalHelp: EventEmitter<any>;
|
|
141
152
|
/**
|
|
@@ -151,6 +162,33 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
151
162
|
* @default `false`
|
|
152
163
|
*/
|
|
153
164
|
errorLimit: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* @Input
|
|
167
|
+
*
|
|
168
|
+
* @optional
|
|
169
|
+
*
|
|
170
|
+
* @description
|
|
171
|
+
*
|
|
172
|
+
* Define as opções do componente de ajuda (po-helper) que será exibido ao lado do label.
|
|
173
|
+
*
|
|
174
|
+
* > Caso o `p-label` não esteja definido, o componente po-helper não será exibido.
|
|
175
|
+
* Ao configurar esta propriedade, o antigo ícone de ajuda adicional (`p-additional-help-tooltip` e `p-additional-help`) será ignorado.
|
|
176
|
+
*/
|
|
177
|
+
poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
|
|
178
|
+
/**
|
|
179
|
+
* @Input
|
|
180
|
+
*
|
|
181
|
+
* @optional
|
|
182
|
+
*
|
|
183
|
+
* @description
|
|
184
|
+
*
|
|
185
|
+
* Habilita a quebra automática do texto da propriedade `p-label`. Quando `p-label-text-wrap` for verdadeiro, o texto que excede
|
|
186
|
+
* o espaço disponível é transferido para a próxima linha em pontos apropriados para uma
|
|
187
|
+
* leitura clara.
|
|
188
|
+
*
|
|
189
|
+
* @default `false`
|
|
190
|
+
*/
|
|
191
|
+
labelTextWrap: import("@angular/core").InputSignal<boolean>;
|
|
154
192
|
/**
|
|
155
193
|
* @optional
|
|
156
194
|
*
|
|
@@ -379,7 +417,7 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
379
417
|
protected abstract resetDateRangeInputValidation(): void;
|
|
380
418
|
protected abstract updateScreenByModel(dateRange: PoDatepickerRange): any;
|
|
381
419
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoDatepickerRangeBaseComponent, never>;
|
|
382
|
-
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; }; "size": { "alias": "p-size"; "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>;
|
|
420
|
+
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; }; "poHelperComponent": { "alias": "p-helper"; "required": false; "isSignal": true; }; "labelTextWrap": { "alias": "p-label-text-wrap"; "required": false; "isSignal": true; }; "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; }; "size": { "alias": "p-size"; "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>;
|
|
383
421
|
static ngAcceptInputType_appendBox: any;
|
|
384
422
|
static ngAcceptInputType_autoFocus: any;
|
|
385
423
|
}
|
|
@@ -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
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* @docsExtends PoDatepickerRangeBaseComponent
|
|
@@ -40,6 +41,7 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
40
41
|
iconCalendar: ElementRef;
|
|
41
42
|
calendarPicker: ElementRef;
|
|
42
43
|
isCalendarVisible: boolean;
|
|
44
|
+
helperSettings: PoHelperOptions;
|
|
43
45
|
private clickListener;
|
|
44
46
|
private eventResizeListener;
|
|
45
47
|
private poDatepickerRangeElement;
|
|
@@ -96,6 +98,8 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
96
98
|
* Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
|
|
97
99
|
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
98
100
|
*
|
|
101
|
+
* > Exibe ou oculta o conteúdo do componente `po-helper` quando o componente estiver com foco e com label visível.
|
|
102
|
+
*
|
|
99
103
|
* ```
|
|
100
104
|
* <po-datepicker-range
|
|
101
105
|
* #datepickerRange
|
|
@@ -105,6 +109,16 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
105
109
|
* ></po-datepicker-range>
|
|
106
110
|
* ```
|
|
107
111
|
* ```
|
|
112
|
+
* // Exemplo com p-label e p-helper
|
|
113
|
+
* <po-datepicker-range
|
|
114
|
+
* #datepickerRange
|
|
115
|
+
* ...
|
|
116
|
+
* p-label="Label do datepickerRange
|
|
117
|
+
* [p-helper]="helperOptions"
|
|
118
|
+
* (p-keydown)="onKeyDown($event, datepickerRange)"
|
|
119
|
+
* ></po-datepicker-range>
|
|
120
|
+
* ```
|
|
121
|
+
* ```
|
|
108
122
|
* ...
|
|
109
123
|
* onKeyDown(event: KeyboardEvent, inp: PoDatepickerRangeComponent): void {
|
|
110
124
|
* if (event.code === 'F9') {
|
|
@@ -116,6 +130,10 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
116
130
|
showAdditionalHelp(): boolean;
|
|
117
131
|
toggleCalendar(): void;
|
|
118
132
|
updateScreenByModel(model: PoDatepickerRange): void;
|
|
133
|
+
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
134
|
+
hideAdditionalHelp: boolean;
|
|
135
|
+
helperSettings?: any;
|
|
136
|
+
};
|
|
119
137
|
private applyFocusOnDatePickerRangeField;
|
|
120
138
|
private formatDate;
|
|
121
139
|
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
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
*
|
|
@@ -59,6 +60,7 @@ export declare class PoDecimalComponent extends PoInputBaseComponent implements
|
|
|
59
60
|
private thousandSeparator;
|
|
60
61
|
private valueBeforeChange;
|
|
61
62
|
private subscriptionValidator;
|
|
63
|
+
helperSettings: PoHelperOptions;
|
|
62
64
|
private regex;
|
|
63
65
|
get autocomplete(): "on" | "off";
|
|
64
66
|
/**
|
|
@@ -148,6 +150,10 @@ export declare class PoDecimalComponent extends PoInputBaseComponent implements
|
|
|
148
150
|
writeValueModel(value: any): void;
|
|
149
151
|
getErrorPatternMessage(): string;
|
|
150
152
|
private addZeroBefore;
|
|
153
|
+
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
154
|
+
hideAdditionalHelp: boolean;
|
|
155
|
+
helperSettings?: any;
|
|
156
|
+
};
|
|
151
157
|
private containsComma;
|
|
152
158
|
private containsMoreThanOneDecimalSeparator;
|
|
153
159
|
private controlChangeEmitter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { AbstractControl } from '@angular/forms';
|
|
3
3
|
import { PoInputGeneric } from '../po-input-generic/po-input-generic';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -26,7 +26,7 @@ import * as i0 from "@angular/core";
|
|
|
26
26
|
* <file name="sample-po-email-newsletter/sample-po-email-newsletter.component.ts"> </file>
|
|
27
27
|
* </example>
|
|
28
28
|
*/
|
|
29
|
-
export declare class PoEmailComponent extends PoInputGeneric implements AfterViewInit, OnDestroy {
|
|
29
|
+
export declare class PoEmailComponent extends PoInputGeneric implements AfterViewInit, OnDestroy, OnInit {
|
|
30
30
|
id: string;
|
|
31
31
|
icon: string;
|
|
32
32
|
type: string;
|
|
@@ -34,6 +34,7 @@ export declare class PoEmailComponent extends PoInputGeneric implements AfterVie
|
|
|
34
34
|
mask: string;
|
|
35
35
|
private listener;
|
|
36
36
|
constructor();
|
|
37
|
+
ngOnInit(): void;
|
|
37
38
|
ngAfterViewInit(): void;
|
|
38
39
|
ngOnDestroy(): void;
|
|
39
40
|
extraValidation(c: AbstractControl): {
|
|
@@ -12,6 +12,7 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
export declare class PoFieldContainerBottomComponent implements OnChanges {
|
|
13
13
|
poTooltip: PoTooltipDirective;
|
|
14
14
|
/** Texto exibido no tooltip do ícone de ajuda adicional. */
|
|
15
|
+
/** @deprecated v23.x.x */
|
|
15
16
|
additionalHelpTooltip?: string;
|
|
16
17
|
/** Define se o tooltip será inserido no `body` em vez do componente. */
|
|
17
18
|
appendBox: boolean;
|
|
@@ -31,10 +32,15 @@ export declare class PoFieldContainerBottomComponent implements OnChanges {
|
|
|
31
32
|
/** Exibe o ícone de ajuda adicional. */
|
|
32
33
|
showAdditionalHelpIcon: boolean;
|
|
33
34
|
/** Evento disparado ao clicar no ícone de ajuda adicional. */
|
|
35
|
+
/** @deprecated v23.x.x */
|
|
34
36
|
additionalHelp: EventEmitter<any>;
|
|
37
|
+
/** Propriedade para controlar a visibilidade do additionalHelp de acordo com a visibilidade do p-label do field.
|
|
38
|
+
* Caso o p-label esteja visível, o additionalHelp não será exibido.
|
|
39
|
+
**/
|
|
40
|
+
hideAdditionalHelpByLabel: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
35
41
|
private isInitialChange;
|
|
36
42
|
ngOnChanges(changes: SimpleChanges): void;
|
|
37
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoFieldContainerBottomComponent, 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>;
|
|
44
|
+
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; }; "hideAdditionalHelpByLabel": { "alias": "p-hide-additional-help-by-label"; "required": false; "isSignal": true; }; }, { "additionalHelp": "p-additional-help"; }, never, never, false, never>;
|
|
39
45
|
static ngAcceptInputType_appendBox: any;
|
|
40
46
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { PoHelperComponent, PoHelperOptions } from '../../po-helper';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
4
5
|
* @docsPrivate
|
|
@@ -6,6 +7,9 @@ import * as i0 from "@angular/core";
|
|
|
6
7
|
* Componente de uso interno, responsável por atribuir uma label para o campo
|
|
7
8
|
*/
|
|
8
9
|
export declare class PoFieldContainerComponent implements OnInit, OnChanges {
|
|
10
|
+
private readonly cdr;
|
|
11
|
+
labelEl: ElementRef<HTMLElement>;
|
|
12
|
+
helperEl?: PoHelperComponent;
|
|
9
13
|
/** Indica se o campo será desabilitado. */
|
|
10
14
|
disabled: boolean;
|
|
11
15
|
/** Identificador do campo */
|
|
@@ -14,8 +18,23 @@ export declare class PoFieldContainerComponent implements OnInit, OnChanges {
|
|
|
14
18
|
label?: string;
|
|
15
19
|
/** Texto de apoio do campo. */
|
|
16
20
|
help: string;
|
|
21
|
+
/** Configurações do ícone de ajuda adicional vínculado ao label. */
|
|
22
|
+
poHelperComponent: import("@angular/core").InputSignal<PoHelperOptions>;
|
|
23
|
+
/** Define se o componente helper estará visível através das ações customizadas */
|
|
24
|
+
showHelperComponent: import("@angular/core").InputSignal<boolean>;
|
|
25
|
+
/**
|
|
26
|
+
* @optional
|
|
27
|
+
*
|
|
28
|
+
* Habilita a quebra automática do texto do componente po-label. Quando ativada, o texto que excede
|
|
29
|
+
* o espaço disponível é transferido para a próxima linha em pontos apropriados para uma
|
|
30
|
+
* leitura clara.
|
|
31
|
+
*
|
|
32
|
+
* @default `false`
|
|
33
|
+
*/
|
|
34
|
+
textWrap: import("@angular/core").InputSignal<boolean>;
|
|
17
35
|
literals: object;
|
|
18
36
|
requirement: string;
|
|
37
|
+
showTip: boolean;
|
|
19
38
|
private _optional;
|
|
20
39
|
private _required;
|
|
21
40
|
/** Indica se o campo será opcional. */
|
|
@@ -26,10 +45,11 @@ export declare class PoFieldContainerComponent implements OnInit, OnChanges {
|
|
|
26
45
|
get required(): boolean;
|
|
27
46
|
/** Define se a indicação de campo obrigatório será exibida. */
|
|
28
47
|
showRequired: boolean;
|
|
29
|
-
constructor();
|
|
48
|
+
constructor(cdr: ChangeDetectorRef);
|
|
30
49
|
ngOnInit(): void;
|
|
31
50
|
ngOnChanges(changes: SimpleChanges): void;
|
|
32
51
|
private setRequirement;
|
|
52
|
+
handleLabelTooltip(): void;
|
|
33
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoFieldContainerComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoFieldContainerComponent, "po-field-container", never, { "disabled": { "alias": "p-disabled"; "required": false; }; "id": { "alias": "p-id"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoFieldContainerComponent, "po-field-container", never, { "disabled": { "alias": "p-disabled"; "required": false; }; "id": { "alias": "p-id"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "poHelperComponent": { "alias": "p-helper"; "required": false; "isSignal": true; }; "showHelperComponent": { "alias": "p-show-helper"; "required": false; "isSignal": true; }; "textWrap": { "alias": "p-text-wrap"; "required": false; "isSignal": true; }; "optional": { "alias": "p-optional"; "required": false; }; "required": { "alias": "p-required"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
35
55
|
}
|
|
@@ -5,6 +5,7 @@ import * as i3 from "@angular/common";
|
|
|
5
5
|
import * as i4 from "../../po-label/po-label.module";
|
|
6
6
|
import * as i5 from "../../po-icon/po-icon.module";
|
|
7
7
|
import * as i6 from "../../../directives/po-tooltip/po-tooltip.module";
|
|
8
|
+
import * as i7 from "../../po-helper/po-helper.module";
|
|
8
9
|
/**
|
|
9
10
|
* @description
|
|
10
11
|
*
|
|
@@ -12,6 +13,6 @@ import * as i6 from "../../../directives/po-tooltip/po-tooltip.module";
|
|
|
12
13
|
*/
|
|
13
14
|
export declare class PoFieldContainerModule {
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoFieldContainerModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoFieldContainerModule, [typeof i1.PoFieldContainerBottomComponent, typeof i2.PoFieldContainerComponent], [typeof i3.CommonModule, typeof i4.PoLabelModule, typeof i5.PoIconModule, typeof i6.PoTooltipModule], [typeof i1.PoFieldContainerBottomComponent, typeof i2.PoFieldContainerComponent]>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoFieldContainerModule, [typeof i1.PoFieldContainerBottomComponent, typeof i2.PoFieldContainerComponent], [typeof i3.CommonModule, typeof i4.PoLabelModule, typeof i5.PoIconModule, typeof i6.PoTooltipModule, typeof i7.PoHelperModule], [typeof i1.PoFieldContainerBottomComponent, typeof i2.PoFieldContainerComponent]>;
|
|
16
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<PoFieldContainerModule>;
|
|
17
18
|
}
|
|
@@ -5,6 +5,9 @@ export declare abstract class PoFieldModel<T> implements ControlValueAccessor {
|
|
|
5
5
|
private readonly cd;
|
|
6
6
|
additionalHelpEventTrigger: string | undefined;
|
|
7
7
|
/**
|
|
8
|
+
*
|
|
9
|
+
* @deprecated v23.x.x use `p-helper`
|
|
10
|
+
*
|
|
8
11
|
* @optional
|
|
9
12
|
*
|
|
10
13
|
* @description
|
|
@@ -12,6 +15,8 @@ export declare abstract class PoFieldModel<T> implements ControlValueAccessor {
|
|
|
12
15
|
* Se o evento `p-additional-help` estiver definido, o tooltip não será exibido.
|
|
13
16
|
* **Como boa prática, indica-se utilizar um texto com até 140 caracteres.**
|
|
14
17
|
* > Requer um recuo mínimo de 8px se o componente estiver próximo à lateral da tela.
|
|
18
|
+
*
|
|
19
|
+
* > 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.
|
|
15
20
|
*/
|
|
16
21
|
additionalHelpTooltip?: string;
|
|
17
22
|
/**
|
|
@@ -45,11 +50,16 @@ export declare abstract class PoFieldModel<T> implements ControlValueAccessor {
|
|
|
45
50
|
*/
|
|
46
51
|
disabled: boolean;
|
|
47
52
|
/**
|
|
53
|
+
*
|
|
54
|
+
* @deprecated v23.x.x use `p-helper`
|
|
55
|
+
*
|
|
48
56
|
* @optional
|
|
49
57
|
*
|
|
50
58
|
* @description
|
|
51
59
|
* Evento disparado ao clicar no ícone de ajuda adicional.
|
|
52
60
|
* Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
|
|
61
|
+
*
|
|
62
|
+
* > 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.
|
|
53
63
|
*/
|
|
54
64
|
additionalHelp: EventEmitter<any>;
|
|
55
65
|
/**
|
|
@@ -84,6 +94,8 @@ export declare abstract class PoFieldModel<T> implements ControlValueAccessor {
|
|
|
84
94
|
* Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
|
|
85
95
|
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
86
96
|
*
|
|
97
|
+
* > Exibe ou oculta o conteúdo do componente `po-helper` quando o componente estiver com foco e com label visível.
|
|
98
|
+
*
|
|
87
99
|
* ```
|
|
88
100
|
* <po-nome-component
|
|
89
101
|
* #component
|
|
@@ -93,6 +105,16 @@ export declare abstract class PoFieldModel<T> implements ControlValueAccessor {
|
|
|
93
105
|
* ></po-nome-component>
|
|
94
106
|
* ```
|
|
95
107
|
* ```
|
|
108
|
+
* // Exemplo com p-label e p-helper
|
|
109
|
+
* <po-nome-component
|
|
110
|
+
* #component
|
|
111
|
+
* ...
|
|
112
|
+
* p-label="Label do component"
|
|
113
|
+
* [p-helper]="helperOptions"
|
|
114
|
+
* (p-keydown)="onKeyDown($event, component)"
|
|
115
|
+
* ></po-nome-component>
|
|
116
|
+
* ```
|
|
117
|
+
* ```
|
|
96
118
|
* ...
|
|
97
119
|
* onKeyDown(event: KeyboardEvent, inp: PoNomeDoComponente): void {
|
|
98
120
|
* if (event.code === 'F9') {
|
|
@@ -103,7 +125,7 @@ export declare abstract class PoFieldModel<T> implements ControlValueAccessor {
|
|
|
103
125
|
*/
|
|
104
126
|
showAdditionalHelp(): boolean;
|
|
105
127
|
showAdditionalHelpIcon(): boolean;
|
|
106
|
-
|
|
128
|
+
protected isAdditionalHelpEventTriggered(): boolean;
|
|
107
129
|
protected updateModel(value: T): void;
|
|
108
130
|
abstract onWriteValue(value: T): void;
|
|
109
131
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoFieldModel<any>, never>;
|
|
@@ -54,6 +54,7 @@ import * as i52 from "../po-label/po-label.module";
|
|
|
54
54
|
import * as i53 from "../po-listbox/po-listbox.module";
|
|
55
55
|
import * as i54 from "./po-switch/po-switch.module";
|
|
56
56
|
import * as i55 from "../po-tag/po-tag.module";
|
|
57
|
+
import * as i56 from "../po-helper/po-helper.module";
|
|
57
58
|
/**
|
|
58
59
|
* @description
|
|
59
60
|
*
|
|
@@ -66,6 +67,6 @@ import * as i55 from "../po-tag/po-tag.module";
|
|
|
66
67
|
*/
|
|
67
68
|
export declare class PoFieldModule {
|
|
68
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoFieldModule, never>;
|
|
69
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PoFieldModule, [typeof i1.PoComboComponent, typeof i2.PoComboOptionTemplateDirective, typeof i3.PoMultiselectOptionTemplateDirective, typeof i4.PoDecimalComponent, typeof i5.PoDatepickerRangeComponent, typeof i6.PoEmailComponent, typeof i7.PoInputComponent, typeof i8.PoLoginComponent, typeof i9.PoLookupComponent, typeof i10.PoLookupModalComponent, typeof i11.PoMultiselectComponent, typeof i12.PoMultiselectDropdownComponent, typeof i13.PoNumberComponent, typeof i14.PoPasswordComponent, typeof i15.PoRichTextBodyComponent, typeof i16.PoRichTextComponent, typeof i17.PoRichTextImageModalComponent, typeof i18.PoRichTextLinkModalComponent, typeof i19.PoRichTextToolbarComponent, typeof i20.PoSelectComponent, typeof i21.PoTextareaComponent, typeof i22.PoUploadComponent, typeof i23.PoUploadDragDropComponent, typeof i24.PoUploadDragDropDirective, typeof i25.PoUploadDragDropAreaOverlayComponent, typeof i26.PoUploadDragDropAreaComponent, typeof i27.PoUploadFileRestrictionsComponent, typeof i28.PoUrlComponent], [typeof i29.CommonModule, typeof i30.FormsModule, typeof i30.FormsModule, typeof i31.OverlayModule, typeof i32.PoButtonGroupModule, typeof i33.PoButtonModule, typeof i34.PoCleanModule, typeof i35.PoCalendarModule, typeof i36.PoCheckboxGroupModule, typeof i37.PoRadioGroupModule, typeof i38.PoContainerModule, typeof i39.PoDatepickerModule, typeof i40.PoDisclaimerGroupModule, typeof i41.PoDisclaimerModule, typeof i42.PoFieldContainerModule, typeof i43.PoLoadingModule, typeof i44.PoModalModule, typeof i45.PoProgressModule, typeof i46.PoServicesModule, typeof i47.PoTableModule, typeof i48.PoTooltipModule, typeof i49.PoIconModule, typeof i50.PoCheckboxModule, typeof i51.PoRadioModule, typeof i52.PoLabelModule, typeof i53.PoListBoxModule, typeof i54.PoSwitchModule, typeof i55.PoTagModule], [typeof i36.PoCheckboxGroupModule, typeof i37.PoRadioGroupModule, typeof i34.PoCleanModule, typeof i39.PoDatepickerModule, typeof i1.PoComboComponent, typeof i2.PoComboOptionTemplateDirective, typeof i3.PoMultiselectOptionTemplateDirective, typeof i4.PoDecimalComponent, typeof i5.PoDatepickerRangeComponent, typeof i6.PoEmailComponent, typeof i42.PoFieldContainerModule, typeof i7.PoInputComponent, typeof i8.PoLoginComponent, typeof i9.PoLookupComponent, typeof i10.PoLookupModalComponent, typeof i11.PoMultiselectComponent, typeof i13.PoNumberComponent, typeof i14.PoPasswordComponent, typeof i16.PoRichTextComponent, typeof i20.PoSelectComponent, typeof i21.PoTextareaComponent, typeof i22.PoUploadComponent, typeof i28.PoUrlComponent, typeof i50.PoCheckboxModule, typeof i51.PoRadioModule, typeof i52.PoLabelModule, typeof i54.PoSwitchModule, typeof i55.PoTagModule]>;
|
|
70
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PoFieldModule, [typeof i1.PoComboComponent, typeof i2.PoComboOptionTemplateDirective, typeof i3.PoMultiselectOptionTemplateDirective, typeof i4.PoDecimalComponent, typeof i5.PoDatepickerRangeComponent, typeof i6.PoEmailComponent, typeof i7.PoInputComponent, typeof i8.PoLoginComponent, typeof i9.PoLookupComponent, typeof i10.PoLookupModalComponent, typeof i11.PoMultiselectComponent, typeof i12.PoMultiselectDropdownComponent, typeof i13.PoNumberComponent, typeof i14.PoPasswordComponent, typeof i15.PoRichTextBodyComponent, typeof i16.PoRichTextComponent, typeof i17.PoRichTextImageModalComponent, typeof i18.PoRichTextLinkModalComponent, typeof i19.PoRichTextToolbarComponent, typeof i20.PoSelectComponent, typeof i21.PoTextareaComponent, typeof i22.PoUploadComponent, typeof i23.PoUploadDragDropComponent, typeof i24.PoUploadDragDropDirective, typeof i25.PoUploadDragDropAreaOverlayComponent, typeof i26.PoUploadDragDropAreaComponent, typeof i27.PoUploadFileRestrictionsComponent, typeof i28.PoUrlComponent], [typeof i29.CommonModule, typeof i30.FormsModule, typeof i30.FormsModule, typeof i31.OverlayModule, typeof i32.PoButtonGroupModule, typeof i33.PoButtonModule, typeof i34.PoCleanModule, typeof i35.PoCalendarModule, typeof i36.PoCheckboxGroupModule, typeof i37.PoRadioGroupModule, typeof i38.PoContainerModule, typeof i39.PoDatepickerModule, typeof i40.PoDisclaimerGroupModule, typeof i41.PoDisclaimerModule, typeof i42.PoFieldContainerModule, typeof i43.PoLoadingModule, typeof i44.PoModalModule, typeof i45.PoProgressModule, typeof i46.PoServicesModule, typeof i47.PoTableModule, typeof i48.PoTooltipModule, typeof i49.PoIconModule, typeof i50.PoCheckboxModule, typeof i51.PoRadioModule, typeof i52.PoLabelModule, typeof i53.PoListBoxModule, typeof i54.PoSwitchModule, typeof i55.PoTagModule, typeof i56.PoHelperModule], [typeof i36.PoCheckboxGroupModule, typeof i37.PoRadioGroupModule, typeof i34.PoCleanModule, typeof i39.PoDatepickerModule, typeof i1.PoComboComponent, typeof i2.PoComboOptionTemplateDirective, typeof i3.PoMultiselectOptionTemplateDirective, typeof i4.PoDecimalComponent, typeof i5.PoDatepickerRangeComponent, typeof i6.PoEmailComponent, typeof i42.PoFieldContainerModule, typeof i7.PoInputComponent, typeof i8.PoLoginComponent, typeof i9.PoLookupComponent, typeof i10.PoLookupModalComponent, typeof i11.PoMultiselectComponent, typeof i13.PoNumberComponent, typeof i14.PoPasswordComponent, typeof i16.PoRichTextComponent, typeof i20.PoSelectComponent, typeof i21.PoTextareaComponent, typeof i22.PoUploadComponent, typeof i28.PoUrlComponent, typeof i50.PoCheckboxModule, typeof i51.PoRadioModule, typeof i52.PoLabelModule, typeof i54.PoSwitchModule, typeof i55.PoTagModule]>;
|
|
70
71
|
static ɵinj: i0.ɵɵInjectorDeclaration<PoFieldModule>;
|
|
71
72
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
|
|
3
3
|
import { ErrorAsyncProperties } from '../shared/interfaces/error-async-properties.interface';
|
|
4
|
+
import { PoHelperOptions } from '../../po-helper';
|
|
5
|
+
import { PoFieldContainerComponent } from '../po-field-container';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
/**
|
|
6
8
|
* @description
|
|
@@ -51,8 +53,12 @@ import * as i0 from "@angular/core";
|
|
|
51
53
|
*/
|
|
52
54
|
export declare abstract class PoInputBaseComponent implements ControlValueAccessor, Validator, OnDestroy {
|
|
53
55
|
protected cd?: ChangeDetectorRef;
|
|
56
|
+
fieldContainer?: PoFieldContainerComponent;
|
|
54
57
|
additionalHelpEventTrigger: string | undefined;
|
|
55
58
|
/**
|
|
59
|
+
*
|
|
60
|
+
* @deprecated v23.x.x use `p-helper`
|
|
61
|
+
*
|
|
56
62
|
* @optional
|
|
57
63
|
*
|
|
58
64
|
* @description
|
|
@@ -60,6 +66,8 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
|
|
|
60
66
|
* Se o evento `p-additional-help` estiver definido, o tooltip não será exibido.
|
|
61
67
|
* **Como boa prática, indica-se utilizar um texto com até 140 caracteres.**
|
|
62
68
|
* > Requer um recuo mínimo de 8px se o componente estiver próximo à lateral da tela.
|
|
69
|
+
*
|
|
70
|
+
* > 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
71
|
*/
|
|
64
72
|
additionalHelpTooltip?: string;
|
|
65
73
|
/**
|
|
@@ -222,11 +230,16 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
|
|
|
222
230
|
set maskNoLengthValidation(value: boolean);
|
|
223
231
|
get maskNoLengthValidation(): boolean;
|
|
224
232
|
/**
|
|
233
|
+
*
|
|
234
|
+
* @deprecated v23.x.x use `p-helper`
|
|
235
|
+
*
|
|
225
236
|
* @optional
|
|
226
237
|
*
|
|
227
238
|
* @description
|
|
228
239
|
* Evento disparado ao clicar no ícone de ajuda adicional.
|
|
229
240
|
* Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
|
|
241
|
+
*
|
|
242
|
+
* > 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.
|
|
230
243
|
*/
|
|
231
244
|
additionalHelp: EventEmitter<any>;
|
|
232
245
|
/**
|
|
@@ -408,6 +421,33 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
|
|
|
408
421
|
*/
|
|
409
422
|
maskFormatModel?: boolean;
|
|
410
423
|
set setMaskFormatModel(maskFormatModel: string);
|
|
424
|
+
/**
|
|
425
|
+
* @Input
|
|
426
|
+
*
|
|
427
|
+
* @optional
|
|
428
|
+
*
|
|
429
|
+
* @description
|
|
430
|
+
*
|
|
431
|
+
* Define as opções do componente de ajuda (po-helper) que será exibido ao lado do label.
|
|
432
|
+
*
|
|
433
|
+
* > Caso o `p-label` não esteja definido, o componente po-helper não será exibido.
|
|
434
|
+
* Ao configurar esta propriedade, o antigo ícone de ajuda adicional (`p-additional-help-tooltip` e `p-additional-help`) será ignorado.
|
|
435
|
+
*/
|
|
436
|
+
poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
|
|
437
|
+
/**
|
|
438
|
+
* @Input
|
|
439
|
+
*
|
|
440
|
+
* @optional
|
|
441
|
+
*
|
|
442
|
+
* @description
|
|
443
|
+
*
|
|
444
|
+
* Habilita a quebra automática do texto da propriedade `p-label`. Quando `p-label-text-wrap` for verdadeiro, o texto que excede
|
|
445
|
+
* o espaço disponível é transferido para a próxima linha em pontos apropriados para uma
|
|
446
|
+
* leitura clara.
|
|
447
|
+
*
|
|
448
|
+
* @default `false`
|
|
449
|
+
*/
|
|
450
|
+
labelTextWrap: import("@angular/core").InputSignal<boolean>;
|
|
411
451
|
constructor(cd?: ChangeDetectorRef);
|
|
412
452
|
ngOnDestroy(): void;
|
|
413
453
|
callOnChange(value: any): void;
|
|
@@ -424,6 +464,7 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
|
|
|
424
464
|
* Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
|
|
425
465
|
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
426
466
|
*
|
|
467
|
+
* > Exibe ou oculta o conteúdo do componente `po-helper` quando o componente estiver com foco e com label visível.
|
|
427
468
|
* ```
|
|
428
469
|
* <po-nome-component
|
|
429
470
|
* #component
|
|
@@ -433,6 +474,16 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
|
|
|
433
474
|
* ></po-nome-component>
|
|
434
475
|
* ```
|
|
435
476
|
* ```
|
|
477
|
+
* // Exemplo com p-label e p-helper
|
|
478
|
+
* <po-nome-component
|
|
479
|
+
* #component
|
|
480
|
+
* ...
|
|
481
|
+
* p-label="Label do componente"
|
|
482
|
+
* [p-helper]="helperOptions"
|
|
483
|
+
* (p-keydown)="onKeyDown($event, component)"
|
|
484
|
+
* ></po-nome-component>
|
|
485
|
+
* ```
|
|
486
|
+
* ```
|
|
436
487
|
* ...
|
|
437
488
|
* onKeyDown(event: KeyboardEvent, inp: PoNomeDoComponente): void {
|
|
438
489
|
* if (event.code === 'F9') {
|
|
@@ -448,7 +499,7 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
|
|
|
448
499
|
};
|
|
449
500
|
writeValue(value: any): void;
|
|
450
501
|
protected validateModel(): void;
|
|
451
|
-
|
|
502
|
+
protected isAdditionalHelpEventTriggered(): boolean;
|
|
452
503
|
private validatePatternOnWriteValue;
|
|
453
504
|
/**
|
|
454
505
|
* Função que atribui foco ao componente.
|
|
@@ -474,7 +525,7 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
|
|
|
474
525
|
};
|
|
475
526
|
abstract getScreenValue(): string;
|
|
476
527
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoInputBaseComponent, never>;
|
|
477
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoInputBaseComponent, 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; }; "icon": { "alias": "p-icon"; "required": false; }; "emitAllChanges": { "alias": "p-emit-all-changes"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "name": { "alias": "name"; "required": false; }; "errorAsyncProperties": { "alias": "p-error-async-properties"; "required": false; }; "errorPattern": { "alias": "p-error-pattern"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "showErrorMessageRequired": { "alias": "p-required-field-error-message"; "required": false; }; "upperCase": { "alias": "p-upper-case"; "required": false; }; "maskNoLengthValidation": { "alias": "p-mask-no-length-validation"; "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; }; "size": { "alias": "p-size"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "setClean": { "alias": "p-clean"; "required": false; }; "setPattern": { "alias": "p-pattern"; "required": false; }; "maxlength": { "alias": "p-maxlength"; "required": false; }; "minlength": { "alias": "p-minlength"; "required": false; }; "setMask": { "alias": "p-mask"; "required": false; }; "setMaskFormatModel": { "alias": "p-mask-format-model"; "required": false; }; }, { "additionalHelp": "p-additional-help"; "blur": "p-blur"; "enter": "p-enter"; "change": "p-change"; "changeModel": "p-change-model"; "keydown": "p-keydown"; }, never, never, true, never>;
|
|
528
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoInputBaseComponent, 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; }; "icon": { "alias": "p-icon"; "required": false; }; "emitAllChanges": { "alias": "p-emit-all-changes"; "required": false; }; "label": { "alias": "p-label"; "required": false; }; "help": { "alias": "p-help"; "required": false; }; "name": { "alias": "name"; "required": false; }; "errorAsyncProperties": { "alias": "p-error-async-properties"; "required": false; }; "errorPattern": { "alias": "p-error-pattern"; "required": false; }; "errorLimit": { "alias": "p-error-limit"; "required": false; }; "optional": { "alias": "p-optional"; "required": false; }; "showErrorMessageRequired": { "alias": "p-required-field-error-message"; "required": false; }; "upperCase": { "alias": "p-upper-case"; "required": false; }; "maskNoLengthValidation": { "alias": "p-mask-no-length-validation"; "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; }; "size": { "alias": "p-size"; "required": false; }; "showRequired": { "alias": "p-show-required"; "required": false; }; "setClean": { "alias": "p-clean"; "required": false; }; "setPattern": { "alias": "p-pattern"; "required": false; }; "maxlength": { "alias": "p-maxlength"; "required": false; }; "minlength": { "alias": "p-minlength"; "required": false; }; "setMask": { "alias": "p-mask"; "required": false; }; "setMaskFormatModel": { "alias": "p-mask-format-model"; "required": false; }; "poHelperComponent": { "alias": "p-helper"; "required": false; "isSignal": true; }; "labelTextWrap": { "alias": "p-label-text-wrap"; "required": false; "isSignal": true; }; }, { "additionalHelp": "p-additional-help"; "blur": "p-blur"; "enter": "p-enter"; "change": "p-change"; "changeModel": "p-change-model"; "keydown": "p-keydown"; }, never, never, true, never>;
|
|
478
529
|
static ngAcceptInputType_appendBox: any;
|
|
479
530
|
static ngAcceptInputType_autoFocus: any;
|
|
480
531
|
static ngAcceptInputType_emitAllChanges: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { AbstractControl } from '@angular/forms';
|
|
3
3
|
import { PoInputGeneric } from '../po-input-generic/po-input-generic';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -22,10 +22,11 @@ import * as i0 from "@angular/core";
|
|
|
22
22
|
* <file name="sample-po-input-reactive-form/sample-po-input-reactive-form.component.ts"> </file>
|
|
23
23
|
* </example>
|
|
24
24
|
*/
|
|
25
|
-
export declare class PoInputComponent extends PoInputGeneric {
|
|
25
|
+
export declare class PoInputComponent extends PoInputGeneric implements OnInit {
|
|
26
26
|
inp: ElementRef;
|
|
27
27
|
id: string;
|
|
28
28
|
constructor();
|
|
29
|
+
ngOnInit(): void;
|
|
29
30
|
extraValidation(c: AbstractControl): {
|
|
30
31
|
[key: string]: any;
|
|
31
32
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy } 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
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare abstract class PoInputGeneric extends PoInputBaseComponent implements AfterViewInit, OnDestroy {
|
|
6
7
|
inputEl: ElementRef;
|
|
@@ -8,6 +9,7 @@ export declare abstract class PoInputGeneric extends PoInputBaseComponent implem
|
|
|
8
9
|
el: ElementRef;
|
|
9
10
|
valueBeforeChange: any;
|
|
10
11
|
timeoutChange: any;
|
|
12
|
+
helperSettings: PoHelperOptions;
|
|
11
13
|
private subscriptionValidator;
|
|
12
14
|
get autocomplete(): string;
|
|
13
15
|
constructor(el: ElementRef, cd?: ChangeDetectorRef);
|
|
@@ -38,6 +40,10 @@ export declare abstract class PoInputGeneric extends PoInputBaseComponent implem
|
|
|
38
40
|
abstract extraValidation(c: AbstractControl): {
|
|
39
41
|
[key: string]: any;
|
|
40
42
|
};
|
|
43
|
+
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
44
|
+
hideAdditionalHelp: boolean;
|
|
45
|
+
helperSettings?: any;
|
|
46
|
+
};
|
|
41
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoInputGeneric, never>;
|
|
42
48
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PoInputGeneric, never, never, {}, {}, never, never, true, never>;
|
|
43
49
|
}
|