@po-ui/ng-components 20.3.0 → 20.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/fesm2022/po-ui-ng-components.mjs +3715 -2451
  2. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  3. package/index.d.ts +2447 -1399
  4. package/lib/components/index.d.ts +1 -0
  5. package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +39 -1
  6. package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +26 -2
  7. package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +36 -0
  8. package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +16 -0
  9. package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +38 -0
  10. package/lib/components/po-field/po-combo/po-combo.component.d.ts +17 -0
  11. package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +38 -0
  12. package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +18 -0
  13. package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +38 -0
  14. package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +18 -0
  15. package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +6 -0
  16. package/lib/components/po-field/po-email/po-email.component.d.ts +3 -2
  17. package/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.d.ts +6 -0
  18. package/lib/components/po-field/po-field-container/po-field-container.component.d.ts +22 -2
  19. package/lib/components/po-field/po-field.model.d.ts +23 -1
  20. package/lib/components/po-field/po-input/po-input-base.component.d.ts +52 -1
  21. package/lib/components/po-field/po-input/po-input.component.d.ts +3 -2
  22. package/lib/components/po-field/po-input-generic/po-input-generic.d.ts +6 -0
  23. package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +38 -0
  24. package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +18 -0
  25. package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +38 -0
  26. package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +18 -0
  27. package/lib/components/po-field/po-number/po-number.component.d.ts +3 -1
  28. package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +38 -0
  29. package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +17 -0
  30. package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +38 -0
  31. package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +16 -0
  32. package/lib/components/po-field/po-select/po-select.component.d.ts +47 -2
  33. package/lib/components/po-field/po-switch/po-switch.component.d.ts +31 -0
  34. package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +38 -0
  35. package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +16 -0
  36. package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +38 -0
  37. package/lib/components/po-field/po-upload/po-upload.component.d.ts +15 -0
  38. package/lib/components/po-helper/index.d.ts +3 -0
  39. package/lib/components/po-helper/interfaces/po-helper.interface.d.ts +87 -0
  40. package/lib/components/po-helper/po-helper-base.component.d.ts +109 -0
  41. package/lib/components/po-helper/po-helper.component.d.ts +49 -0
  42. package/lib/components/po-helper/po-helper.module.d.ts +6 -0
  43. package/lib/components/po-label/po-label.component.d.ts +13 -0
  44. package/lib/components/po-popover/po-popover.component.d.ts +5 -3
  45. package/lib/services/po-theme/po-theme.service.d.ts +1 -0
  46. package/lib/utils/util.d.ts +23 -0
  47. package/package.json +4 -4
  48. package/po-ui-ng-components-20.4.0.tgz +0 -0
  49. package/schematics/ng-add/index.js +1 -1
  50. package/schematics/ng-update/v14/index.js +1 -1
  51. package/schematics/ng-update/v15/index.js +1 -1
  52. package/schematics/ng-update/v16/index.js +1 -1
  53. package/schematics/ng-update/v17/index.js +1 -1
  54. package/schematics/ng-update/v18/index.js +2 -2
  55. package/schematics/ng-update/v19/index.js +2 -2
  56. package/schematics/ng-update/v2/index.js +1 -1
  57. package/schematics/ng-update/v20/index.js +2 -2
  58. package/schematics/ng-update/v3/index.js +1 -1
  59. package/schematics/ng-update/v4/index.js +1 -1
  60. package/schematics/ng-update/v5/index.js +1 -1
  61. package/schematics/ng-update/v6/index.js +1 -1
  62. package/po-ui-ng-components-20.3.0.tgz +0 -0
@@ -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
  /**
@@ -25,7 +25,7 @@ import { PoInputGeneric } from '../po-input-generic/po-input-generic';
25
25
  * <file name="sample-po-email-newsletter/sample-po-email-newsletter.component.ts"> </file>
26
26
  * </example>
27
27
  */
28
- export declare class PoEmailComponent extends PoInputGeneric implements AfterViewInit, OnDestroy {
28
+ export declare class PoEmailComponent extends PoInputGeneric implements AfterViewInit, OnDestroy, OnInit {
29
29
  id: string;
30
30
  icon: string;
31
31
  type: string;
@@ -33,6 +33,7 @@ export declare class PoEmailComponent extends PoInputGeneric implements AfterVie
33
33
  mask: string;
34
34
  private listener;
35
35
  constructor();
36
+ ngOnInit(): void;
36
37
  ngAfterViewInit(): void;
37
38
  ngOnDestroy(): void;
38
39
  extraValidation(c: AbstractControl): {
@@ -11,6 +11,7 @@ import { PoTooltipDirective } from '../../../../directives';
11
11
  export declare class PoFieldContainerBottomComponent implements OnChanges {
12
12
  poTooltip: PoTooltipDirective;
13
13
  /** Texto exibido no tooltip do ícone de ajuda adicional. */
14
+ /** @deprecated v23.x.x */
14
15
  additionalHelpTooltip?: string;
15
16
  /** Define se o tooltip será inserido no `body` em vez do componente. */
16
17
  appendBox: boolean;
@@ -30,7 +31,12 @@ export declare class PoFieldContainerBottomComponent implements OnChanges {
30
31
  /** Exibe o ícone de ajuda adicional. */
31
32
  showAdditionalHelpIcon: boolean;
32
33
  /** Evento disparado ao clicar no ícone de ajuda adicional. */
34
+ /** @deprecated v23.x.x */
33
35
  additionalHelp: EventEmitter<any>;
36
+ /** Propriedade para controlar a visibilidade do additionalHelp de acordo com a visibilidade do p-label do field.
37
+ * Caso o p-label esteja visível, o additionalHelp não será exibido.
38
+ **/
39
+ hideAdditionalHelpByLabel: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
34
40
  private isInitialChange;
35
41
  ngOnChanges(changes: SimpleChanges): void;
36
42
  }
@@ -1,10 +1,14 @@
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
  /**
3
4
  * @docsPrivate
4
5
  *
5
6
  * Componente de uso interno, responsável por atribuir uma label para o campo
6
7
  */
7
8
  export declare class PoFieldContainerComponent implements OnInit, OnChanges {
9
+ private readonly cdr;
10
+ labelEl: ElementRef<HTMLElement>;
11
+ helperEl?: PoHelperComponent;
8
12
  /** Indica se o campo será desabilitado. */
9
13
  disabled: boolean;
10
14
  /** Identificador do campo */
@@ -13,8 +17,23 @@ export declare class PoFieldContainerComponent implements OnInit, OnChanges {
13
17
  label?: string;
14
18
  /** Texto de apoio do campo. */
15
19
  help: string;
20
+ /** Configurações do ícone de ajuda adicional vínculado ao label. */
21
+ poHelperComponent: import("@angular/core").InputSignal<PoHelperOptions>;
22
+ /** Define se o componente helper estará visível através das ações customizadas */
23
+ showHelperComponent: import("@angular/core").InputSignal<boolean>;
24
+ /**
25
+ * @optional
26
+ *
27
+ * Habilita a quebra automática do texto do componente po-label. Quando ativada, o texto que excede
28
+ * o espaço disponível é transferido para a próxima linha em pontos apropriados para uma
29
+ * leitura clara.
30
+ *
31
+ * @default `false`
32
+ */
33
+ textWrap: import("@angular/core").InputSignal<boolean>;
16
34
  literals: object;
17
35
  requirement: string;
36
+ showTip: boolean;
18
37
  private _optional;
19
38
  private _required;
20
39
  /** Indica se o campo será opcional. */
@@ -25,8 +44,9 @@ export declare class PoFieldContainerComponent implements OnInit, OnChanges {
25
44
  get required(): boolean;
26
45
  /** Define se a indicação de campo obrigatório será exibida. */
27
46
  showRequired: boolean;
28
- constructor();
47
+ constructor(cdr: ChangeDetectorRef);
29
48
  ngOnInit(): void;
30
49
  ngOnChanges(changes: SimpleChanges): void;
31
50
  private setRequirement;
51
+ handleLabelTooltip(): void;
32
52
  }
@@ -4,6 +4,9 @@ export declare abstract class PoFieldModel<T> implements ControlValueAccessor {
4
4
  private readonly cd;
5
5
  additionalHelpEventTrigger: string | undefined;
6
6
  /**
7
+ *
8
+ * @deprecated v23.x.x use `p-helper`
9
+ *
7
10
  * @optional
8
11
  *
9
12
  * @description
@@ -11,6 +14,8 @@ export declare abstract class PoFieldModel<T> implements ControlValueAccessor {
11
14
  * Se o evento `p-additional-help` estiver definido, o tooltip não será exibido.
12
15
  * **Como boa prática, indica-se utilizar um texto com até 140 caracteres.**
13
16
  * > Requer um recuo mínimo de 8px se o componente estiver próximo à lateral da tela.
17
+ *
18
+ * > 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.
14
19
  */
15
20
  additionalHelpTooltip?: string;
16
21
  /**
@@ -44,11 +49,16 @@ export declare abstract class PoFieldModel<T> implements ControlValueAccessor {
44
49
  */
45
50
  disabled: boolean;
46
51
  /**
52
+ *
53
+ * @deprecated v23.x.x use `p-helper`
54
+ *
47
55
  * @optional
48
56
  *
49
57
  * @description
50
58
  * Evento disparado ao clicar no ícone de ajuda adicional.
51
59
  * Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
60
+ *
61
+ * > 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.
52
62
  */
53
63
  additionalHelp: EventEmitter<any>;
54
64
  /**
@@ -83,6 +93,8 @@ export declare abstract class PoFieldModel<T> implements ControlValueAccessor {
83
93
  * Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
84
94
  * Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
85
95
  *
96
+ * > Exibe ou oculta o conteúdo do componente `po-helper` quando o componente estiver com foco e com label visível.
97
+ *
86
98
  * ```
87
99
  * <po-nome-component
88
100
  * #component
@@ -92,6 +104,16 @@ export declare abstract class PoFieldModel<T> implements ControlValueAccessor {
92
104
  * ></po-nome-component>
93
105
  * ```
94
106
  * ```
107
+ * // Exemplo com p-label e p-helper
108
+ * <po-nome-component
109
+ * #component
110
+ * ...
111
+ * p-label="Label do component"
112
+ * [p-helper]="helperOptions"
113
+ * (p-keydown)="onKeyDown($event, component)"
114
+ * ></po-nome-component>
115
+ * ```
116
+ * ```
95
117
  * ...
96
118
  * onKeyDown(event: KeyboardEvent, inp: PoNomeDoComponente): void {
97
119
  * if (event.code === 'F9') {
@@ -102,7 +124,7 @@ export declare abstract class PoFieldModel<T> implements ControlValueAccessor {
102
124
  */
103
125
  showAdditionalHelp(): boolean;
104
126
  showAdditionalHelpIcon(): boolean;
105
- private isAdditionalHelpEventTriggered;
127
+ protected isAdditionalHelpEventTriggered(): boolean;
106
128
  protected updateModel(value: T): void;
107
129
  abstract onWriteValue(value: T): void;
108
130
  }
@@ -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
  /**
5
7
  * @description
6
8
  *
@@ -50,8 +52,12 @@ import { ErrorAsyncProperties } from '../shared/interfaces/error-async-propertie
50
52
  */
51
53
  export declare abstract class PoInputBaseComponent implements ControlValueAccessor, Validator, OnDestroy {
52
54
  protected cd?: ChangeDetectorRef;
55
+ fieldContainer?: PoFieldContainerComponent;
53
56
  additionalHelpEventTrigger: string | undefined;
54
57
  /**
58
+ *
59
+ * @deprecated v23.x.x use `p-helper`
60
+ *
55
61
  * @optional
56
62
  *
57
63
  * @description
@@ -59,6 +65,8 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
59
65
  * Se o evento `p-additional-help` estiver definido, o tooltip não será exibido.
60
66
  * **Como boa prática, indica-se utilizar um texto com até 140 caracteres.**
61
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.
62
70
  */
63
71
  additionalHelpTooltip?: string;
64
72
  /**
@@ -221,11 +229,16 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
221
229
  set maskNoLengthValidation(value: boolean);
222
230
  get maskNoLengthValidation(): boolean;
223
231
  /**
232
+ *
233
+ * @deprecated v23.x.x use `p-helper`
234
+ *
224
235
  * @optional
225
236
  *
226
237
  * @description
227
238
  * Evento disparado ao clicar no ícone de ajuda adicional.
228
239
  * Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
240
+ *
241
+ * > 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.
229
242
  */
230
243
  additionalHelp: EventEmitter<any>;
231
244
  /**
@@ -407,6 +420,33 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
407
420
  */
408
421
  maskFormatModel?: boolean;
409
422
  set setMaskFormatModel(maskFormatModel: string);
423
+ /**
424
+ * @Input
425
+ *
426
+ * @optional
427
+ *
428
+ * @description
429
+ *
430
+ * Define as opções do componente de ajuda (po-helper) que será exibido ao lado do label.
431
+ *
432
+ * > Caso o `p-label` não esteja definido, o componente po-helper não será exibido.
433
+ * Ao configurar esta propriedade, o antigo ícone de ajuda adicional (`p-additional-help-tooltip` e `p-additional-help`) será ignorado.
434
+ */
435
+ poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
436
+ /**
437
+ * @Input
438
+ *
439
+ * @optional
440
+ *
441
+ * @description
442
+ *
443
+ * Habilita a quebra automática do texto da propriedade `p-label`. Quando `p-label-text-wrap` for verdadeiro, o texto que excede
444
+ * o espaço disponível é transferido para a próxima linha em pontos apropriados para uma
445
+ * leitura clara.
446
+ *
447
+ * @default `false`
448
+ */
449
+ labelTextWrap: import("@angular/core").InputSignal<boolean>;
410
450
  constructor(cd?: ChangeDetectorRef);
411
451
  ngOnDestroy(): void;
412
452
  callOnChange(value: any): void;
@@ -423,6 +463,7 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
423
463
  * Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
424
464
  * Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
425
465
  *
466
+ * > Exibe ou oculta o conteúdo do componente `po-helper` quando o componente estiver com foco e com label visível.
426
467
  * ```
427
468
  * <po-nome-component
428
469
  * #component
@@ -432,6 +473,16 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
432
473
  * ></po-nome-component>
433
474
  * ```
434
475
  * ```
476
+ * // Exemplo com p-label e p-helper
477
+ * <po-nome-component
478
+ * #component
479
+ * ...
480
+ * p-label="Label do componente"
481
+ * [p-helper]="helperOptions"
482
+ * (p-keydown)="onKeyDown($event, component)"
483
+ * ></po-nome-component>
484
+ * ```
485
+ * ```
435
486
  * ...
436
487
  * onKeyDown(event: KeyboardEvent, inp: PoNomeDoComponente): void {
437
488
  * if (event.code === 'F9') {
@@ -447,7 +498,7 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
447
498
  };
448
499
  writeValue(value: any): void;
449
500
  protected validateModel(): void;
450
- private isAdditionalHelpEventTriggered;
501
+ protected isAdditionalHelpEventTriggered(): boolean;
451
502
  private validatePatternOnWriteValue;
452
503
  /**
453
504
  * Função que atribui foco ao componente.
@@ -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
  /**
@@ -21,10 +21,11 @@ import { PoInputGeneric } from '../po-input-generic/po-input-generic';
21
21
  * <file name="sample-po-input-reactive-form/sample-po-input-reactive-form.component.ts"> </file>
22
22
  * </example>
23
23
  */
24
- export declare class PoInputComponent extends PoInputGeneric {
24
+ export declare class PoInputComponent extends PoInputGeneric implements OnInit {
25
25
  inp: ElementRef;
26
26
  id: string;
27
27
  constructor();
28
+ ngOnInit(): void;
28
29
  extraValidation(c: AbstractControl): {
29
30
  [key: string]: any;
30
31
  };
@@ -1,12 +1,14 @@
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
  export declare abstract class PoInputGeneric extends PoInputBaseComponent implements AfterViewInit, OnDestroy {
5
6
  inputEl: ElementRef;
6
7
  type: string;
7
8
  el: ElementRef;
8
9
  valueBeforeChange: any;
9
10
  timeoutChange: any;
11
+ helperSettings: PoHelperOptions;
10
12
  private subscriptionValidator;
11
13
  get autocomplete(): string;
12
14
  constructor(el: ElementRef, cd?: ChangeDetectorRef);
@@ -37,4 +39,8 @@ export declare abstract class PoInputGeneric extends PoInputBaseComponent implem
37
39
  abstract extraValidation(c: AbstractControl): {
38
40
  [key: string]: any;
39
41
  };
42
+ setHelper(label?: string, additionalHelpTooltip?: string): {
43
+ hideAdditionalHelp: boolean;
44
+ helperSettings?: any;
45
+ };
40
46
  }
@@ -8,6 +8,7 @@ import { PoLookupFilter } from './interfaces/po-lookup-filter.interface';
8
8
  import { PoLookupLiterals } from './interfaces/po-lookup-literals.interface';
9
9
  import { PoLookupFilterService } from './services/po-lookup-filter.service';
10
10
  import { PoLookupModalService } from './services/po-lookup-modal.service';
11
+ import { PoHelperOptions } from '../../po-helper';
11
12
  export declare const poLookupLiteralsDefault: {
12
13
  en: PoLookupLiterals;
13
14
  es: PoLookupLiterals;
@@ -40,6 +41,9 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
40
41
  private _spacing;
41
42
  additionalHelpEventTrigger: string | undefined;
42
43
  /**
44
+ *
45
+ * @deprecated v23.x.x use `p-helper`
46
+ *
43
47
  * @optional
44
48
  *
45
49
  * @description
@@ -47,6 +51,8 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
47
51
  * Se o evento `p-additional-help` estiver definido, o tooltip não será exibido.
48
52
  * **Como boa prática, indica-se utilizar um texto com até 140 caracteres.**
49
53
  * > Requer um recuo mínimo de 8px se o componente estiver próximo à lateral da tela.
54
+ *
55
+ * > 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.
50
56
  */
51
57
  additionalHelpTooltip?: string;
52
58
  /**
@@ -361,11 +367,43 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
361
367
  */
362
368
  virtualScroll?: boolean;
363
369
  /**
370
+ * @Input
371
+ *
372
+ * @optional
373
+ *
374
+ * @description
375
+ *
376
+ * Define as opções do componente de ajuda (po-helper) que será exibido ao lado do label.
377
+ *
378
+ * > Caso o `p-label` não esteja definido, o componente po-helper não será exibido.
379
+ * Ao configurar esta propriedade, o antigo ícone de ajuda adicional (`p-additional-help-tooltip` e `p-additional-help`) será ignorado.
380
+ */
381
+ poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
382
+ /**
383
+ * @Input
384
+ *
385
+ * @optional
386
+ *
387
+ * @description
388
+ *
389
+ * Habilita a quebra automática do texto da propriedade `p-label`. Quando `p-label-text-wrap` for verdadeiro, o texto que excede
390
+ * o espaço disponível é transferido para a próxima linha em pontos apropriados para uma
391
+ * leitura clara.
392
+ *
393
+ * @default `false`
394
+ */
395
+ labelTextWrap: import("@angular/core").InputSignal<boolean>;
396
+ /**
397
+ *
398
+ * @deprecated v23.x.x use `p-helper`
399
+ *
364
400
  * @optional
365
401
  *
366
402
  * @description
367
403
  * Evento disparado ao clicar no ícone de ajuda adicional.
368
404
  * Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
405
+ *
406
+ * > 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.
369
407
  */
370
408
  additionalHelp: EventEmitter<any>;
371
409
  /**
@@ -1,6 +1,7 @@
1
1
  import { AfterViewInit, DoCheck, ElementRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { PoTableColumnSpacing } from '../../po-table';
3
3
  import { PoLookupBaseComponent } from './po-lookup-base.component';
4
+ import { PoHelperOptions } from '../../po-helper';
4
5
  /**
5
6
  * @docsExtends PoLookupBaseComponent
6
7
  *
@@ -102,6 +103,7 @@ export declare class PoLookupComponent extends PoLookupBaseComponent implements
102
103
  disclaimers: any[];
103
104
  visibleDisclaimers: any[];
104
105
  id: string;
106
+ helperSettings: PoHelperOptions;
105
107
  private modalSubscription;
106
108
  private isCalculateVisibleItems;
107
109
  get autocomplete(): "off" | "on";
@@ -148,9 +150,11 @@ export declare class PoLookupComponent extends PoLookupBaseComponent implements
148
150
  calculateVisibleItems(): void;
149
151
  onKeyDown(event: KeyboardEvent): void;
150
152
  /**
153
+ *
151
154
  * Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
152
155
  * Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
153
156
  *
157
+ * > Exibe ou oculta o conteúdo do componente `po-helper` quando o componente estiver com foco e com label visível.
154
158
  * ```
155
159
  * <po-lookup
156
160
  * #lookup
@@ -160,6 +164,16 @@ export declare class PoLookupComponent extends PoLookupBaseComponent implements
160
164
  * ></po-lookup>
161
165
  * ```
162
166
  * ```
167
+ * // Exemplo com p-label e p-helper
168
+ * <po-lookup
169
+ * #lookup
170
+ * ...
171
+ * p-label="Label do lookup"
172
+ * [p-helper]="helperOptions"
173
+ * (p-keydown)="onKeyDown($event, lookup)"
174
+ * ></po-lookup>
175
+ * ```
176
+ * ```
163
177
  * ...
164
178
  * onKeyDown(event: KeyboardEvent, inp: PoLookupComponent): void {
165
179
  * if (event.code === 'F9') {
@@ -170,6 +184,10 @@ export declare class PoLookupComponent extends PoLookupBaseComponent implements
170
184
  */
171
185
  showAdditionalHelp(): boolean;
172
186
  showAdditionalHelpIcon(): boolean;
187
+ setHelper(label?: string, additionalHelpTooltip?: string): {
188
+ hideAdditionalHelp: boolean;
189
+ helperSettings?: any;
190
+ };
173
191
  protected getDefaultSpacing(): PoTableColumnSpacing;
174
192
  private isAdditionalHelpEventTriggered;
175
193
  private isAllowedOpenModal;
@@ -7,6 +7,7 @@ import { PoMultiselectFilter } from './interfaces/po-multiselect-filter.interfac
7
7
  import { PoMultiselectLiterals } from './interfaces/po-multiselect-literals.interface';
8
8
  import { PoMultiselectOption } from './interfaces/po-multiselect-option.interface';
9
9
  import { PoMultiselectFilterService } from './po-multiselect-filter.service';
10
+ import { PoHelperOptions } from '../../po-helper';
10
11
  export declare const poMultiselectLiteralsDefault: {
11
12
  en: PoMultiselectLiterals;
12
13
  es: PoMultiselectLiterals;
@@ -73,6 +74,9 @@ export declare abstract class PoMultiselectBaseComponent implements ControlValue
73
74
  protected cd?: ChangeDetectorRef;
74
75
  additionalHelpEventTrigger: string | undefined;
75
76
  /**
77
+ *
78
+ * @deprecated v23.x.x use `p-helper`
79
+ *
76
80
  * @optional
77
81
  *
78
82
  * @description
@@ -80,6 +84,8 @@ export declare abstract class PoMultiselectBaseComponent implements ControlValue
80
84
  * Se o evento `p-additional-help` estiver definido, o tooltip não será exibido.
81
85
  * **Como boa prática, indica-se utilizar um texto com até 140 caracteres.**
82
86
  * > Requer um recuo mínimo de 8px se o componente estiver próximo à lateral da tela.
87
+ *
88
+ * > 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.
83
89
  */
84
90
  additionalHelpTooltip?: string;
85
91
  /**
@@ -169,11 +175,16 @@ export declare abstract class PoMultiselectBaseComponent implements ControlValue
169
175
  */
170
176
  errorLimit: boolean;
171
177
  /**
178
+ *
179
+ * @deprecated v23.x.x use `p-helper`
180
+ *
172
181
  * @optional
173
182
  *
174
183
  * @description
175
184
  * Evento disparado ao clicar no ícone de ajuda adicional.
176
185
  * Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
186
+ *
187
+ * > 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.
177
188
  */
178
189
  additionalHelp: EventEmitter<any>;
179
190
  /**
@@ -225,6 +236,33 @@ export declare abstract class PoMultiselectBaseComponent implements ControlValue
225
236
  * @default `bottom`
226
237
  */
227
238
  listboxControlPosition: 'top' | 'bottom';
239
+ /**
240
+ * @Input
241
+ *
242
+ * @optional
243
+ *
244
+ * @description
245
+ *
246
+ * Define as opções do componente de ajuda (po-helper) que será exibido ao lado do label.
247
+ *
248
+ * > Caso o `p-label` não esteja definido, o componente po-helper não será exibido.
249
+ * Ao configurar esta propriedade, o antigo ícone de ajuda adicional (`p-additional-help-tooltip` e `p-additional-help`) será ignorado.
250
+ */
251
+ poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
252
+ /**
253
+ * @Input
254
+ *
255
+ * @optional
256
+ *
257
+ * @description
258
+ *
259
+ * Habilita a quebra automática do texto da propriedade `p-label`. Quando `p-label-text-wrap` for verdadeiro, o texto que excede
260
+ * o espaço disponível é transferido para a próxima linha em pontos apropriados para uma
261
+ * leitura clara.
262
+ *
263
+ * @default `false`
264
+ */
265
+ labelTextWrap: import("@angular/core").InputSignal<boolean>;
228
266
  selectedOptions: Array<PoMultiselectOption | any>;
229
267
  visibleOptionsDropdown: Array<PoMultiselectOption | any>;
230
268
  visibleTags: any[];
@@ -4,6 +4,7 @@ import { PoMultiselectOption } from './interfaces/po-multiselect-option.interfac
4
4
  import { PoMultiselectBaseComponent } from './po-multiselect-base.component';
5
5
  import { PoMultiselectFilterService } from './po-multiselect-filter.service';
6
6
  import { PoMultiselectOptionTemplateDirective } from './po-multiselect-option-template/po-multiselect-option-template.directive';
7
+ import { PoHelperOptions } from '../../po-helper';
7
8
  /**
8
9
  * @docsExtends PoMultiselectBaseComponent
9
10
  *
@@ -66,6 +67,7 @@ export declare class PoMultiselectComponent extends PoMultiselectBaseComponent i
66
67
  timeoutResize: any;
67
68
  visibleElement: boolean;
68
69
  containerWidth: number;
70
+ helperSettings: PoHelperOptions;
69
71
  private subscription;
70
72
  private enterCloseTag;
71
73
  private initCalculateItems;
@@ -120,6 +122,8 @@ export declare class PoMultiselectComponent extends PoMultiselectBaseComponent i
120
122
  * Método que exibe `p-additionalHelpTooltip` ou executa a ação definida em `p-additionalHelp`.
121
123
  * Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
122
124
  *
125
+ * > Exibe ou oculta o conteúdo do componente `po-helper` quando o componente estiver com foco e com label visível.
126
+ *
123
127
  * ```
124
128
  * <po-multiselect
125
129
  * #multiselect
@@ -129,6 +133,16 @@ export declare class PoMultiselectComponent extends PoMultiselectBaseComponent i
129
133
  * ></po-multiselect>
130
134
  * ```
131
135
  * ```
136
+ * // Exemplo com p-label e p-helper
137
+ * <po-multiselect
138
+ * #multiselect
139
+ * ...
140
+ * p-label="Label do multiselect"
141
+ * [p-helper]="helperOptions"
142
+ * (p-keydown)="onKeyDown($event, multiselect)"
143
+ * ></po-multiselect>
144
+ * ```
145
+ * ```
132
146
  * ...
133
147
  * onKeyDown(event: KeyboardEvent, inp: PoMultiselectComponent): void {
134
148
  * if (event.code === 'F9') {
@@ -141,6 +155,10 @@ export declare class PoMultiselectComponent extends PoMultiselectBaseComponent i
141
155
  showAdditionalHelpIcon(): boolean;
142
156
  wasClickedOnToggle(event: MouseEvent): void;
143
157
  applyFilter(value?: string): Observable<Array<PoMultiselectOption | any>>;
158
+ setHelper(label?: string, additionalHelpTooltip?: string): {
159
+ hideAdditionalHelp: boolean;
160
+ helperSettings?: any;
161
+ };
144
162
  private applyFilterInFirstClick;
145
163
  private setOptionsByApplyFilter;
146
164
  private adjustContainerPosition;
@@ -1,3 +1,4 @@
1
+ import { AfterViewInit } from '@angular/core';
1
2
  import { AbstractControl } from '@angular/forms';
2
3
  import { PoNumberBaseComponent } from './po-number-base.component';
3
4
  /**
@@ -26,7 +27,7 @@ import { PoNumberBaseComponent } from './po-number-base.component';
26
27
  * <file name="sample-po-number-calculate/sample-po-number-calculate.component.ts"> </file>
27
28
  * </example>
28
29
  */
29
- export declare class PoNumberComponent extends PoNumberBaseComponent {
30
+ export declare class PoNumberComponent extends PoNumberBaseComponent implements AfterViewInit {
30
31
  /**
31
32
  * @optional
32
33
  *
@@ -52,6 +53,7 @@ export declare class PoNumberComponent extends PoNumberBaseComponent {
52
53
  id: string;
53
54
  constructor();
54
55
  onWheel(event: Event): void;
56
+ ngAfterViewInit(): void;
55
57
  extraValidation(abstractControl: AbstractControl): {
56
58
  [key: string]: any;
57
59
  };
@@ -1,6 +1,7 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
3
3
  import { PoRadioGroupOption } from './po-radio-group-option.interface';
4
+ import { PoHelperOptions } from '../../po-helper';
4
5
  /**
5
6
  * @description
6
7
  *
@@ -52,6 +53,9 @@ import { PoRadioGroupOption } from './po-radio-group-option.interface';
52
53
  export declare abstract class PoRadioGroupBaseComponent implements ControlValueAccessor, Validator {
53
54
  additionalHelpEventTrigger: string | undefined;
54
55
  /**
56
+ *
57
+ * @deprecated v23.x.x use `p-helper`
58
+ *
55
59
  * @optional
56
60
  *
57
61
  * @description
@@ -59,6 +63,8 @@ export declare abstract class PoRadioGroupBaseComponent implements ControlValueA
59
63
  * Se o evento `p-additional-help` estiver definido, o tooltip não será exibido.
60
64
  * **Como boa prática, indica-se utilizar um texto com até 140 caracteres.**
61
65
  * > Requer um recuo mínimo de 8px se o componente estiver próximo à lateral da tela.
66
+ *
67
+ * > 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.
62
68
  */
63
69
  additionalHelpTooltip?: string;
64
70
  /**
@@ -128,11 +134,43 @@ export declare abstract class PoRadioGroupBaseComponent implements ControlValueA
128
134
  */
129
135
  errorLimit: boolean;
130
136
  /**
137
+ * @Input
138
+ *
139
+ * @optional
140
+ *
141
+ * @description
142
+ *
143
+ * Define as opções do componente de ajuda (po-helper) que será exibido ao lado do label.
144
+ *
145
+ * > Caso o `p-label` não esteja definido, o componente po-helper não será exibido.
146
+ * Ao configurar esta propriedade, o antigo ícone de ajuda adicional (`p-additional-help-tooltip` e `p-additional-help`) será ignorado.
147
+ */
148
+ poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
149
+ /**
150
+ * @Input
151
+ *
152
+ * @optional
153
+ *
154
+ * @description
155
+ *
156
+ * Habilita a quebra automática do texto da propriedade `p-label`. Quando `p-label-text-wrap` for verdadeiro, o texto que excede
157
+ * o espaço disponível é transferido para a próxima linha em pontos apropriados para uma
158
+ * leitura clara.
159
+ *
160
+ * @default `false`
161
+ */
162
+ labelTextWrap: import("@angular/core").InputSignal<boolean>;
163
+ /**
164
+ *
165
+ * @deprecated v23.x.x use `p-helper`
166
+ *
131
167
  * @optional
132
168
  *
133
169
  * @description
134
170
  * Evento disparado ao clicar no ícone de ajuda adicional.
135
171
  * Este evento ativa automaticamente a exibição do ícone de ajuda adicional ao `p-help`.
172
+ *
173
+ * > Essa propriedade está **depreciada** e será removida na versão `23.x.x`. Recomendamos utilizar a propriedade `p-helper` que oferece mais recursos e flexibilidade.
136
174
  */
137
175
  additionalHelp: EventEmitter<any>;
138
176
  /**