@po-ui/ng-components 20.8.0 → 20.10.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 +117 -136
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/index.d.ts +59 -31
- package/lib/components/po-button/po-button-base.component.d.ts +3 -2
- package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +0 -1
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +0 -1
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +0 -1
- package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +0 -1
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +0 -1
- package/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.d.ts +8 -15
- package/lib/components/po-field/po-field.model.d.ts +0 -1
- package/lib/components/po-field/po-input/po-input-base.component.d.ts +0 -1
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +4 -1
- package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +1 -3
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +4 -1
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +0 -2
- package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +0 -1
- package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +0 -1
- package/lib/components/po-field/po-upload/po-upload.component.d.ts +0 -1
- package/lib/components/po-modal/po-modal-action.interface.d.ts +44 -0
- package/package.json +4 -4
- package/po-ui-ng-components-20.10.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/v16/index.js +1 -1
- package/schematics/ng-update/v17/index.js +1 -1
- package/schematics/ng-update/v18/index.js +2 -2
- package/schematics/ng-update/v19/index.js +2 -2
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v20/index.js +2 -2
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/po-ui-ng-components-20.8.0.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -2751,11 +2751,12 @@ declare class PoButtonBaseComponent {
|
|
|
2751
2751
|
* @description
|
|
2752
2752
|
* Ícone exibido ao lado esquerdo do label do botão.
|
|
2753
2753
|
*
|
|
2754
|
-
* É possível usar qualquer um dos ícones da [Biblioteca de ícones](https://po-ui.io/icons)
|
|
2754
|
+
* É possível usar qualquer um dos ícones da [Biblioteca de ícones](https://po-ui.io/icons), conforme exemplo:
|
|
2755
2755
|
* ```
|
|
2756
2756
|
* <po-button p-icon="an an-user" p-label="PO button"></po-button>
|
|
2757
2757
|
* ```
|
|
2758
|
-
* Também é possível utilizar outras fontes de ícones, por exemplo a biblioteca *Font Awesome*,
|
|
2758
|
+
* Também é possível utilizar outras fontes de ícones, por exemplo a biblioteca *Font Awesome*, desde que a biblioteca
|
|
2759
|
+
* esteja carregada no projeto:
|
|
2759
2760
|
* ```
|
|
2760
2761
|
* <po-button p-icon="fa fa-podcast" p-label="PO button"></po-button>
|
|
2761
2762
|
* ```
|
|
@@ -3704,7 +3705,6 @@ declare class PoCheckboxComponent extends PoCheckboxBaseComponent implements Aft
|
|
|
3704
3705
|
* ```
|
|
3705
3706
|
*/
|
|
3706
3707
|
showAdditionalHelp(): boolean;
|
|
3707
|
-
showAdditionalHelpIcon(): boolean;
|
|
3708
3708
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
3709
3709
|
hideAdditionalHelp: boolean;
|
|
3710
3710
|
helperSettings?: any;
|
|
@@ -3792,9 +3792,7 @@ declare class PoDirectivesModule {
|
|
|
3792
3792
|
*/
|
|
3793
3793
|
declare class PoFieldContainerBottomComponent implements OnChanges {
|
|
3794
3794
|
poTooltip: PoTooltipDirective;
|
|
3795
|
-
|
|
3796
|
-
/** @deprecated v23.x.x */
|
|
3797
|
-
additionalHelpTooltip?: string;
|
|
3795
|
+
helperEl?: PoHelperComponent;
|
|
3798
3796
|
/** Define se o tooltip será inserido no `body` em vez do componente. */
|
|
3799
3797
|
appendBox: boolean;
|
|
3800
3798
|
disabled: boolean;
|
|
@@ -3807,24 +3805,18 @@ declare class PoFieldContainerBottomComponent implements OnChanges {
|
|
|
3807
3805
|
* Limita a exibição da mensagem de erro a duas linhas e exibe um tooltip com o texto completo.
|
|
3808
3806
|
*/
|
|
3809
3807
|
errorLimit: boolean;
|
|
3808
|
+
/** Texto de apoio do campo. */
|
|
3810
3809
|
help?: string;
|
|
3811
|
-
/** Ativa a exibição da ajuda adicional. */
|
|
3812
|
-
showAdditionalHelp: boolean;
|
|
3813
|
-
/** Exibe o ícone de ajuda adicional. */
|
|
3814
|
-
showAdditionalHelpIcon: boolean;
|
|
3815
3810
|
/** Define o tamanho do componente. */
|
|
3816
3811
|
size?: string;
|
|
3817
|
-
/**
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
* Caso o p-label esteja visível, o additionalHelp não será exibido.
|
|
3822
|
-
**/
|
|
3823
|
-
hideAdditionalHelpByLabel: i0.InputSignalWithTransform<boolean, unknown>;
|
|
3812
|
+
/** Configurações do ícone de ajuda adicional vínculado ao label. */
|
|
3813
|
+
poHelperComponent: i0.InputSignal<PoHelperOptions>;
|
|
3814
|
+
/** Define se o componente helper estará visível através das ações customizadas */
|
|
3815
|
+
showHelperComponent: i0.InputSignal<boolean>;
|
|
3824
3816
|
private isInitialChange;
|
|
3825
3817
|
ngOnChanges(changes: SimpleChanges): void;
|
|
3826
3818
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoFieldContainerBottomComponent, never>;
|
|
3827
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoFieldContainerBottomComponent, "po-field-container-bottom", never, { "
|
|
3819
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoFieldContainerBottomComponent, "po-field-container-bottom", never, { "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; }; "size": { "alias": "p-size"; "required": false; }; "poHelperComponent": { "alias": "p-helper"; "required": false; "isSignal": true; }; "showHelperComponent": { "alias": "p-show-helper"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
3828
3820
|
static ngAcceptInputType_appendBox: any;
|
|
3829
3821
|
}
|
|
3830
3822
|
|
|
@@ -4915,6 +4907,49 @@ interface PoModalAction {
|
|
|
4915
4907
|
danger?: boolean;
|
|
4916
4908
|
/** Desabilita o botão impossibilitando que sua ação seja executada. */
|
|
4917
4909
|
disabled?: boolean;
|
|
4910
|
+
/**
|
|
4911
|
+
* Ícone exibido ao lado esquerdo do label do botão.
|
|
4912
|
+
*
|
|
4913
|
+
* É possível usar qualquer um dos ícones da [Biblioteca de ícones](https://po-ui.io/icons), conforme exemplo:
|
|
4914
|
+
* ```
|
|
4915
|
+
* modalAction: PoModalAction = {
|
|
4916
|
+
* action: () => {},
|
|
4917
|
+
* label: 'Botão com ícone PO',
|
|
4918
|
+
* icon: 'an an-user'
|
|
4919
|
+
* };
|
|
4920
|
+
* ```
|
|
4921
|
+
* Também é possível utilizar outras fontes de ícones, por exemplo a biblioteca *Font Awesome*, desde que a biblioteca
|
|
4922
|
+
* esteja carregada no projeto:
|
|
4923
|
+
* ```
|
|
4924
|
+
* modalAction: PoModalAction = {
|
|
4925
|
+
* action: () => {},
|
|
4926
|
+
* label: 'Botão com ícone Font Awesome',
|
|
4927
|
+
* icon: 'fa fa-user'
|
|
4928
|
+
* };
|
|
4929
|
+
* ```
|
|
4930
|
+
* Outra opção seria a customização do ícone através do `TemplateRef`, conforme exemplo abaixo:
|
|
4931
|
+
* ```
|
|
4932
|
+
* // Template HTML
|
|
4933
|
+
* <ng-template #customIcon>
|
|
4934
|
+
* <span class="fa fa-user"></span>
|
|
4935
|
+
* </ng-template>
|
|
4936
|
+
*
|
|
4937
|
+
* // Componente TypeScript
|
|
4938
|
+
* @ViewChild('customIcon', { static: true }) customIcon: TemplateRef<void>;
|
|
4939
|
+
*
|
|
4940
|
+
* modalAction: PoModalAction = {
|
|
4941
|
+
* action: () => {},
|
|
4942
|
+
* label: 'Botão com ícone customizado',
|
|
4943
|
+
* };
|
|
4944
|
+
*
|
|
4945
|
+
* // Atribuição do TemplateRef à propriedade icon após a inicialização da view
|
|
4946
|
+
* ngAfterViewInit() {
|
|
4947
|
+
* this.modalAction.icon = this.customIcon;
|
|
4948
|
+
* }
|
|
4949
|
+
* ```
|
|
4950
|
+
* > Para o ícone enquadrar corretamente, deve-se utilizar `font-size: inherit` caso o ícone utilizado não aplique-o.
|
|
4951
|
+
*/
|
|
4952
|
+
icon?: string | TemplateRef<void>;
|
|
4918
4953
|
/** Rótulo do botão. */
|
|
4919
4954
|
label: string;
|
|
4920
4955
|
/** Habilita um estado de carregamento ao botão, desabilitando-o e exibindo um ícone de carregamento à esquerda de seu rótulo. */
|
|
@@ -8692,7 +8727,6 @@ declare class PoCheckboxGroupComponent extends PoCheckboxGroupBaseComponent impl
|
|
|
8692
8727
|
* ```
|
|
8693
8728
|
*/
|
|
8694
8729
|
showAdditionalHelp(): boolean;
|
|
8695
|
-
showAdditionalHelpIcon(): boolean;
|
|
8696
8730
|
trackByFn(index: any): any;
|
|
8697
8731
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
8698
8732
|
hideAdditionalHelp: boolean;
|
|
@@ -9192,7 +9226,6 @@ declare abstract class PoFieldModel<T> implements ControlValueAccessor {
|
|
|
9192
9226
|
* ```
|
|
9193
9227
|
*/
|
|
9194
9228
|
showAdditionalHelp(helperHtmlElement?: PoHelperComponent, poHelperComponent?: string | PoHelperOptions): boolean;
|
|
9195
|
-
showAdditionalHelpIcon(): boolean;
|
|
9196
9229
|
protected isAdditionalHelpEventTriggered(): boolean;
|
|
9197
9230
|
protected updateModel(value: T): void;
|
|
9198
9231
|
abstract onWriteValue(value: T): void;
|
|
@@ -12878,7 +12911,6 @@ declare class PoComboComponent extends PoComboBaseComponent implements AfterView
|
|
|
12878
12911
|
wasClickedOnToggle(event: MouseEvent): void;
|
|
12879
12912
|
isValidCharacterToSearch(keyCode: any): boolean;
|
|
12880
12913
|
searchOnEnterOrArrow(event: any, value: string): void;
|
|
12881
|
-
showAdditionalHelpIcon(): boolean;
|
|
12882
12914
|
showMoreInfiniteScroll(): void;
|
|
12883
12915
|
clearAndFocus(): void;
|
|
12884
12916
|
updateCacheOptions(): void;
|
|
@@ -13503,7 +13535,6 @@ declare class PoDatepickerComponent extends PoDatepickerBaseComponent implements
|
|
|
13503
13535
|
isValidDateIso(value: string): boolean;
|
|
13504
13536
|
isValidExtendedIso(value: any): boolean;
|
|
13505
13537
|
hasOverlayClass(element: any): any;
|
|
13506
|
-
showAdditionalHelpIcon(): boolean;
|
|
13507
13538
|
verifyErrorAsync(value: any): void;
|
|
13508
13539
|
verifyMobile(): RegExpMatchArray;
|
|
13509
13540
|
private closeCalendar;
|
|
@@ -14065,7 +14096,6 @@ declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseComponent
|
|
|
14065
14096
|
onKeydown(event?: any): void;
|
|
14066
14097
|
onKeyup(event: any): void;
|
|
14067
14098
|
resetDateRangeInputValidation(): void;
|
|
14068
|
-
showAdditionalHelpIcon(): boolean;
|
|
14069
14099
|
/**
|
|
14070
14100
|
* Método que exibe `p-helper` ou executa a ação definida em `p-helper{eventOnClick}` ou em `p-additionalHelp`.
|
|
14071
14101
|
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
@@ -14615,7 +14645,6 @@ declare abstract class PoInputBaseComponent implements ControlValueAccessor, Val
|
|
|
14615
14645
|
registerOnChange(func: any): void;
|
|
14616
14646
|
registerOnTouched(func: any): void;
|
|
14617
14647
|
registerOnValidatorChange(fn: () => void): void;
|
|
14618
|
-
showAdditionalHelpIcon(): boolean;
|
|
14619
14648
|
/**
|
|
14620
14649
|
* Método que exibe `p-helper` ou executa a ação definida em `p-helper{eventOnClick}` ou em `p-additionalHelp`.
|
|
14621
14650
|
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
@@ -15575,6 +15604,7 @@ declare abstract class PoLookupBaseComponent implements ControlValueAccessor, On
|
|
|
15575
15604
|
private readonly language;
|
|
15576
15605
|
private _size?;
|
|
15577
15606
|
private _spacing;
|
|
15607
|
+
inputEl: ElementRef;
|
|
15578
15608
|
additionalHelpEventTrigger: string | undefined;
|
|
15579
15609
|
/**
|
|
15580
15610
|
*
|
|
@@ -16001,6 +16031,7 @@ declare abstract class PoLookupBaseComponent implements ControlValueAccessor, On
|
|
|
16001
16031
|
protected oldValueToModel: any;
|
|
16002
16032
|
protected onTouched: any;
|
|
16003
16033
|
protected resizeListener: () => void;
|
|
16034
|
+
protected isExpandedHeight: boolean;
|
|
16004
16035
|
private _disabled?;
|
|
16005
16036
|
private _fieldLabel;
|
|
16006
16037
|
private _filterService;
|
|
@@ -16136,6 +16167,7 @@ declare abstract class PoLookupBaseComponent implements ControlValueAccessor, On
|
|
|
16136
16167
|
private setService;
|
|
16137
16168
|
private setControl;
|
|
16138
16169
|
private initializeColumn;
|
|
16170
|
+
private updateLookupInputHeight;
|
|
16139
16171
|
abstract setViewValue(value: any, object: any): void;
|
|
16140
16172
|
abstract openLookup(): void;
|
|
16141
16173
|
abstract setDisclaimers(a: any): any;
|
|
@@ -16247,7 +16279,6 @@ declare class PoLookupComponent extends PoLookupBaseComponent implements AfterVi
|
|
|
16247
16279
|
private renderer;
|
|
16248
16280
|
private cd;
|
|
16249
16281
|
private el;
|
|
16250
|
-
inputEl: ElementRef;
|
|
16251
16282
|
helperEl?: PoHelperComponent;
|
|
16252
16283
|
initialized: boolean;
|
|
16253
16284
|
timeoutResize: any;
|
|
@@ -16329,7 +16360,6 @@ declare class PoLookupComponent extends PoLookupBaseComponent implements AfterVi
|
|
|
16329
16360
|
* ```
|
|
16330
16361
|
*/
|
|
16331
16362
|
showAdditionalHelp(): boolean;
|
|
16332
|
-
showAdditionalHelpIcon(): boolean;
|
|
16333
16363
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
16334
16364
|
hideAdditionalHelp: boolean;
|
|
16335
16365
|
helperSettings?: any;
|
|
@@ -16531,6 +16561,7 @@ declare class PoMultiselectFilterService implements PoMultiselectFilter {
|
|
|
16531
16561
|
*/
|
|
16532
16562
|
declare abstract class PoMultiselectBaseComponent implements ControlValueAccessor, OnInit, Validator {
|
|
16533
16563
|
protected cd?: ChangeDetectorRef;
|
|
16564
|
+
inputElement: ElementRef;
|
|
16534
16565
|
additionalHelpEventTrigger: string | undefined;
|
|
16535
16566
|
/**
|
|
16536
16567
|
*
|
|
@@ -16733,6 +16764,7 @@ declare abstract class PoMultiselectBaseComponent implements ControlValueAccesso
|
|
|
16733
16764
|
protected clickOutListener: () => void;
|
|
16734
16765
|
protected resizeListener: () => void;
|
|
16735
16766
|
protected getObjectsByValuesSubscription: Subscription;
|
|
16767
|
+
protected isExpandedHeight: boolean;
|
|
16736
16768
|
private _filterService?;
|
|
16737
16769
|
private _debounceTime?;
|
|
16738
16770
|
private _disabled?;
|
|
@@ -17013,6 +17045,7 @@ declare abstract class PoMultiselectBaseComponent implements ControlValueAccesso
|
|
|
17013
17045
|
private getValueWrite;
|
|
17014
17046
|
private setLabelsAndValuesOptions;
|
|
17015
17047
|
private validateModel;
|
|
17048
|
+
private updateInputHeight;
|
|
17016
17049
|
abstract applyFilter(value?: string): Observable<Array<PoMultiselectOption | any>>;
|
|
17017
17050
|
abstract updateVisibleItems(): void;
|
|
17018
17051
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoMultiselectBaseComponent, never>;
|
|
@@ -17076,7 +17109,6 @@ declare class PoMultiselectComponent extends PoMultiselectBaseComponent implemen
|
|
|
17076
17109
|
dropdownElement: ElementRef;
|
|
17077
17110
|
dropdown: any;
|
|
17078
17111
|
iconElement: ElementRef;
|
|
17079
|
-
inputElement: ElementRef;
|
|
17080
17112
|
outerContainer: ElementRef;
|
|
17081
17113
|
helperEl?: PoHelperComponent;
|
|
17082
17114
|
literalsTag: any;
|
|
@@ -17163,7 +17195,6 @@ declare class PoMultiselectComponent extends PoMultiselectBaseComponent implemen
|
|
|
17163
17195
|
* ```
|
|
17164
17196
|
*/
|
|
17165
17197
|
showAdditionalHelp(): boolean;
|
|
17166
|
-
showAdditionalHelpIcon(): boolean;
|
|
17167
17198
|
wasClickedOnToggle(event: MouseEvent): void;
|
|
17168
17199
|
applyFilter(value?: string): Observable<Array<PoMultiselectOption | any>>;
|
|
17169
17200
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
@@ -17723,7 +17754,6 @@ declare class PoRadioGroupComponent extends PoRadioGroupBaseComponent implements
|
|
|
17723
17754
|
* ```
|
|
17724
17755
|
*/
|
|
17725
17756
|
showAdditionalHelp(): boolean;
|
|
17726
|
-
showAdditionalHelpIcon(): boolean;
|
|
17727
17757
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
17728
17758
|
hideAdditionalHelp: boolean;
|
|
17729
17759
|
helperSettings?: any;
|
|
@@ -19529,7 +19559,6 @@ declare class PoUploadComponent extends PoUploadBaseComponent implements AfterVi
|
|
|
19529
19559
|
* ```
|
|
19530
19560
|
*/
|
|
19531
19561
|
showAdditionalHelp(): boolean;
|
|
19532
|
-
showAdditionalHelpIcon(): boolean;
|
|
19533
19562
|
stopUpload(file: PoUploadFile): void;
|
|
19534
19563
|
trackByFn(index: any, file: PoUploadFile): string;
|
|
19535
19564
|
uploadFiles(files: Array<PoUploadFile>): void;
|
|
@@ -20637,7 +20666,6 @@ declare class PoTextareaComponent extends PoTextareaBaseComponent implements Aft
|
|
|
20637
20666
|
* ```
|
|
20638
20667
|
*/
|
|
20639
20668
|
showAdditionalHelp(): boolean;
|
|
20640
|
-
showAdditionalHelpIcon(): boolean;
|
|
20641
20669
|
private isAdditionalHelpEventTriggered;
|
|
20642
20670
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
20643
20671
|
hideAdditionalHelp: boolean;
|
|
@@ -84,11 +84,12 @@ export declare class PoButtonBaseComponent {
|
|
|
84
84
|
* @description
|
|
85
85
|
* Ícone exibido ao lado esquerdo do label do botão.
|
|
86
86
|
*
|
|
87
|
-
* É possível usar qualquer um dos ícones da [Biblioteca de ícones](https://po-ui.io/icons)
|
|
87
|
+
* É possível usar qualquer um dos ícones da [Biblioteca de ícones](https://po-ui.io/icons), conforme exemplo:
|
|
88
88
|
* ```
|
|
89
89
|
* <po-button p-icon="an an-user" p-label="PO button"></po-button>
|
|
90
90
|
* ```
|
|
91
|
-
* Também é possível utilizar outras fontes de ícones, por exemplo a biblioteca *Font Awesome*,
|
|
91
|
+
* Também é possível utilizar outras fontes de ícones, por exemplo a biblioteca *Font Awesome*, desde que a biblioteca
|
|
92
|
+
* esteja carregada no projeto:
|
|
92
93
|
* ```
|
|
93
94
|
* <po-button p-icon="fa fa-podcast" p-label="PO button"></po-button>
|
|
94
95
|
* ```
|
|
@@ -82,7 +82,6 @@ export declare class PoCheckboxComponent extends PoCheckboxBaseComponent impleme
|
|
|
82
82
|
* ```
|
|
83
83
|
*/
|
|
84
84
|
showAdditionalHelp(): boolean;
|
|
85
|
-
showAdditionalHelpIcon(): boolean;
|
|
86
85
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
87
86
|
hideAdditionalHelp: boolean;
|
|
88
87
|
helperSettings?: any;
|
|
@@ -81,7 +81,6 @@ export declare class PoCheckboxGroupComponent extends PoCheckboxGroupBaseCompone
|
|
|
81
81
|
* ```
|
|
82
82
|
*/
|
|
83
83
|
showAdditionalHelp(): boolean;
|
|
84
|
-
showAdditionalHelpIcon(): boolean;
|
|
85
84
|
trackByFn(index: any): any;
|
|
86
85
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
87
86
|
hideAdditionalHelp: boolean;
|
|
@@ -159,7 +159,6 @@ export declare class PoComboComponent extends PoComboBaseComponent implements Af
|
|
|
159
159
|
wasClickedOnToggle(event: MouseEvent): void;
|
|
160
160
|
isValidCharacterToSearch(keyCode: any): boolean;
|
|
161
161
|
searchOnEnterOrArrow(event: any, value: string): void;
|
|
162
|
-
showAdditionalHelpIcon(): boolean;
|
|
163
162
|
showMoreInfiniteScroll(): void;
|
|
164
163
|
clearAndFocus(): void;
|
|
165
164
|
updateCacheOptions(): void;
|
|
@@ -123,7 +123,6 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
123
123
|
isValidDateIso(value: string): boolean;
|
|
124
124
|
isValidExtendedIso(value: any): boolean;
|
|
125
125
|
hasOverlayClass(element: any): any;
|
|
126
|
-
showAdditionalHelpIcon(): boolean;
|
|
127
126
|
verifyErrorAsync(value: any): void;
|
|
128
127
|
verifyMobile(): RegExpMatchArray;
|
|
129
128
|
private closeCalendar;
|
|
@@ -92,7 +92,6 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
92
92
|
onKeydown(event?: any): void;
|
|
93
93
|
onKeyup(event: any): void;
|
|
94
94
|
resetDateRangeInputValidation(): void;
|
|
95
|
-
showAdditionalHelpIcon(): boolean;
|
|
96
95
|
/**
|
|
97
96
|
* Método que exibe `p-helper` ou executa a ação definida em `p-helper{eventOnClick}` ou em `p-additionalHelp`.
|
|
98
97
|
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { PoTooltipDirective } from '../../../../directives';
|
|
3
|
+
import { PoHelperComponent, PoHelperOptions } from '../../../po-helper';
|
|
3
4
|
/**
|
|
4
5
|
* @docsPrivate
|
|
5
6
|
*
|
|
@@ -10,9 +11,7 @@ import { PoTooltipDirective } from '../../../../directives';
|
|
|
10
11
|
*/
|
|
11
12
|
export declare class PoFieldContainerBottomComponent implements OnChanges {
|
|
12
13
|
poTooltip: PoTooltipDirective;
|
|
13
|
-
|
|
14
|
-
/** @deprecated v23.x.x */
|
|
15
|
-
additionalHelpTooltip?: string;
|
|
14
|
+
helperEl?: PoHelperComponent;
|
|
16
15
|
/** Define se o tooltip será inserido no `body` em vez do componente. */
|
|
17
16
|
appendBox: boolean;
|
|
18
17
|
disabled: boolean;
|
|
@@ -25,20 +24,14 @@ export declare class PoFieldContainerBottomComponent implements OnChanges {
|
|
|
25
24
|
* Limita a exibição da mensagem de erro a duas linhas e exibe um tooltip com o texto completo.
|
|
26
25
|
*/
|
|
27
26
|
errorLimit: boolean;
|
|
27
|
+
/** Texto de apoio do campo. */
|
|
28
28
|
help?: string;
|
|
29
|
-
/** Ativa a exibição da ajuda adicional. */
|
|
30
|
-
showAdditionalHelp: boolean;
|
|
31
|
-
/** Exibe o ícone de ajuda adicional. */
|
|
32
|
-
showAdditionalHelpIcon: boolean;
|
|
33
29
|
/** Define o tamanho do componente. */
|
|
34
30
|
size?: string;
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
* Caso o p-label esteja visível, o additionalHelp não será exibido.
|
|
40
|
-
**/
|
|
41
|
-
hideAdditionalHelpByLabel: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
31
|
+
/** Configurações do ícone de ajuda adicional vínculado ao label. */
|
|
32
|
+
poHelperComponent: import("@angular/core").InputSignal<PoHelperOptions>;
|
|
33
|
+
/** Define se o componente helper estará visível através das ações customizadas */
|
|
34
|
+
showHelperComponent: import("@angular/core").InputSignal<boolean>;
|
|
42
35
|
private isInitialChange;
|
|
43
36
|
ngOnChanges(changes: SimpleChanges): void;
|
|
44
37
|
}
|
|
@@ -114,7 +114,6 @@ export declare abstract class PoFieldModel<T> implements ControlValueAccessor {
|
|
|
114
114
|
* ```
|
|
115
115
|
*/
|
|
116
116
|
showAdditionalHelp(helperHtmlElement?: PoHelperComponent, poHelperComponent?: string | PoHelperOptions): boolean;
|
|
117
|
-
showAdditionalHelpIcon(): boolean;
|
|
118
117
|
protected isAdditionalHelpEventTriggered(): boolean;
|
|
119
118
|
protected updateModel(value: T): void;
|
|
120
119
|
abstract onWriteValue(value: T): void;
|
|
@@ -457,7 +457,6 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
|
|
|
457
457
|
registerOnChange(func: any): void;
|
|
458
458
|
registerOnTouched(func: any): void;
|
|
459
459
|
registerOnValidatorChange(fn: () => void): void;
|
|
460
|
-
showAdditionalHelpIcon(): boolean;
|
|
461
460
|
/**
|
|
462
461
|
* Método que exibe `p-helper` ou executa a ação definida em `p-helper{eventOnClick}` ou em `p-additionalHelp`.
|
|
463
462
|
* Para isso, será necessário configurar uma tecla de atalho utilizando o evento `p-keydown`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, EventEmitter, Injector, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, Injector, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
4
|
import { PoLanguageService } from '../../../services/po-language/po-language.service';
|
|
@@ -39,6 +39,7 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
|
|
|
39
39
|
private readonly language;
|
|
40
40
|
private _size?;
|
|
41
41
|
private _spacing;
|
|
42
|
+
inputEl: ElementRef;
|
|
42
43
|
additionalHelpEventTrigger: string | undefined;
|
|
43
44
|
/**
|
|
44
45
|
*
|
|
@@ -465,6 +466,7 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
|
|
|
465
466
|
protected oldValueToModel: any;
|
|
466
467
|
protected onTouched: any;
|
|
467
468
|
protected resizeListener: () => void;
|
|
469
|
+
protected isExpandedHeight: boolean;
|
|
468
470
|
private _disabled?;
|
|
469
471
|
private _fieldLabel;
|
|
470
472
|
private _filterService;
|
|
@@ -600,6 +602,7 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
|
|
|
600
602
|
private setService;
|
|
601
603
|
private setControl;
|
|
602
604
|
private initializeColumn;
|
|
605
|
+
private updateLookupInputHeight;
|
|
603
606
|
abstract setViewValue(value: any, object: any): void;
|
|
604
607
|
abstract openLookup(): void;
|
|
605
608
|
abstract setDisclaimers(a: any): any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, DoCheck,
|
|
1
|
+
import { AfterViewInit, DoCheck, OnDestroy, OnInit, SimpleChanges, OnChanges } from '@angular/core';
|
|
2
2
|
import { PoTableColumnSpacing } from '../../po-table';
|
|
3
3
|
import { PoLookupBaseComponent } from './po-lookup-base.component';
|
|
4
4
|
import { PoHelperComponent } from '../../po-helper';
|
|
@@ -95,7 +95,6 @@ export declare class PoLookupComponent extends PoLookupBaseComponent implements
|
|
|
95
95
|
private renderer;
|
|
96
96
|
private cd;
|
|
97
97
|
private el;
|
|
98
|
-
inputEl: ElementRef;
|
|
99
98
|
helperEl?: PoHelperComponent;
|
|
100
99
|
initialized: boolean;
|
|
101
100
|
timeoutResize: any;
|
|
@@ -177,7 +176,6 @@ export declare class PoLookupComponent extends PoLookupBaseComponent implements
|
|
|
177
176
|
* ```
|
|
178
177
|
*/
|
|
179
178
|
showAdditionalHelp(): boolean;
|
|
180
|
-
showAdditionalHelpIcon(): boolean;
|
|
181
179
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
182
180
|
hideAdditionalHelp: boolean;
|
|
183
181
|
helperSettings?: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
|
|
3
3
|
import { Observable, Subject, Subscription } from 'rxjs';
|
|
4
4
|
import { PoLanguageService } from '../../../services/po-language/po-language.service';
|
|
@@ -72,6 +72,7 @@ export declare const poMultiselectLiteralsDefault: {
|
|
|
72
72
|
*/
|
|
73
73
|
export declare abstract class PoMultiselectBaseComponent implements ControlValueAccessor, OnInit, Validator {
|
|
74
74
|
protected cd?: ChangeDetectorRef;
|
|
75
|
+
inputElement: ElementRef;
|
|
75
76
|
additionalHelpEventTrigger: string | undefined;
|
|
76
77
|
/**
|
|
77
78
|
*
|
|
@@ -274,6 +275,7 @@ export declare abstract class PoMultiselectBaseComponent implements ControlValue
|
|
|
274
275
|
protected clickOutListener: () => void;
|
|
275
276
|
protected resizeListener: () => void;
|
|
276
277
|
protected getObjectsByValuesSubscription: Subscription;
|
|
278
|
+
protected isExpandedHeight: boolean;
|
|
277
279
|
private _filterService?;
|
|
278
280
|
private _debounceTime?;
|
|
279
281
|
private _disabled?;
|
|
@@ -554,6 +556,7 @@ export declare abstract class PoMultiselectBaseComponent implements ControlValue
|
|
|
554
556
|
private getValueWrite;
|
|
555
557
|
private setLabelsAndValuesOptions;
|
|
556
558
|
private validateModel;
|
|
559
|
+
private updateInputHeight;
|
|
557
560
|
abstract applyFilter(value?: string): Observable<Array<PoMultiselectOption | any>>;
|
|
558
561
|
abstract updateVisibleItems(): void;
|
|
559
562
|
}
|
|
@@ -57,7 +57,6 @@ export declare class PoMultiselectComponent extends PoMultiselectBaseComponent i
|
|
|
57
57
|
dropdownElement: ElementRef;
|
|
58
58
|
dropdown: any;
|
|
59
59
|
iconElement: ElementRef;
|
|
60
|
-
inputElement: ElementRef;
|
|
61
60
|
outerContainer: ElementRef;
|
|
62
61
|
helperEl?: PoHelperComponent;
|
|
63
62
|
literalsTag: any;
|
|
@@ -144,7 +143,6 @@ export declare class PoMultiselectComponent extends PoMultiselectBaseComponent i
|
|
|
144
143
|
* ```
|
|
145
144
|
*/
|
|
146
145
|
showAdditionalHelp(): boolean;
|
|
147
|
-
showAdditionalHelpIcon(): boolean;
|
|
148
146
|
wasClickedOnToggle(event: MouseEvent): void;
|
|
149
147
|
applyFilter(value?: string): Observable<Array<PoMultiselectOption | any>>;
|
|
150
148
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
@@ -97,7 +97,6 @@ export declare class PoRadioGroupComponent extends PoRadioGroupBaseComponent imp
|
|
|
97
97
|
* ```
|
|
98
98
|
*/
|
|
99
99
|
showAdditionalHelp(): boolean;
|
|
100
|
-
showAdditionalHelpIcon(): boolean;
|
|
101
100
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
102
101
|
hideAdditionalHelp: boolean;
|
|
103
102
|
helperSettings?: any;
|
|
@@ -92,7 +92,6 @@ export declare class PoTextareaComponent extends PoTextareaBaseComponent impleme
|
|
|
92
92
|
* ```
|
|
93
93
|
*/
|
|
94
94
|
showAdditionalHelp(): boolean;
|
|
95
|
-
showAdditionalHelpIcon(): boolean;
|
|
96
95
|
private isAdditionalHelpEventTriggered;
|
|
97
96
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
98
97
|
hideAdditionalHelp: boolean;
|
|
@@ -145,7 +145,6 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
|
|
|
145
145
|
* ```
|
|
146
146
|
*/
|
|
147
147
|
showAdditionalHelp(): boolean;
|
|
148
|
-
showAdditionalHelpIcon(): boolean;
|
|
149
148
|
stopUpload(file: PoUploadFile): void;
|
|
150
149
|
trackByFn(index: any, file: PoUploadFile): string;
|
|
151
150
|
uploadFiles(files: Array<PoUploadFile>): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
1
2
|
/**
|
|
2
3
|
* @usedBy PoModalComponent
|
|
3
4
|
*
|
|
@@ -16,6 +17,49 @@ export interface PoModalAction {
|
|
|
16
17
|
danger?: boolean;
|
|
17
18
|
/** Desabilita o botão impossibilitando que sua ação seja executada. */
|
|
18
19
|
disabled?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Ícone exibido ao lado esquerdo do label do botão.
|
|
22
|
+
*
|
|
23
|
+
* É possível usar qualquer um dos ícones da [Biblioteca de ícones](https://po-ui.io/icons), conforme exemplo:
|
|
24
|
+
* ```
|
|
25
|
+
* modalAction: PoModalAction = {
|
|
26
|
+
* action: () => {},
|
|
27
|
+
* label: 'Botão com ícone PO',
|
|
28
|
+
* icon: 'an an-user'
|
|
29
|
+
* };
|
|
30
|
+
* ```
|
|
31
|
+
* Também é possível utilizar outras fontes de ícones, por exemplo a biblioteca *Font Awesome*, desde que a biblioteca
|
|
32
|
+
* esteja carregada no projeto:
|
|
33
|
+
* ```
|
|
34
|
+
* modalAction: PoModalAction = {
|
|
35
|
+
* action: () => {},
|
|
36
|
+
* label: 'Botão com ícone Font Awesome',
|
|
37
|
+
* icon: 'fa fa-user'
|
|
38
|
+
* };
|
|
39
|
+
* ```
|
|
40
|
+
* Outra opção seria a customização do ícone através do `TemplateRef`, conforme exemplo abaixo:
|
|
41
|
+
* ```
|
|
42
|
+
* // Template HTML
|
|
43
|
+
* <ng-template #customIcon>
|
|
44
|
+
* <span class="fa fa-user"></span>
|
|
45
|
+
* </ng-template>
|
|
46
|
+
*
|
|
47
|
+
* // Componente TypeScript
|
|
48
|
+
* @ViewChild('customIcon', { static: true }) customIcon: TemplateRef<void>;
|
|
49
|
+
*
|
|
50
|
+
* modalAction: PoModalAction = {
|
|
51
|
+
* action: () => {},
|
|
52
|
+
* label: 'Botão com ícone customizado',
|
|
53
|
+
* };
|
|
54
|
+
*
|
|
55
|
+
* // Atribuição do TemplateRef à propriedade icon após a inicialização da view
|
|
56
|
+
* ngAfterViewInit() {
|
|
57
|
+
* this.modalAction.icon = this.customIcon;
|
|
58
|
+
* }
|
|
59
|
+
* ```
|
|
60
|
+
* > Para o ícone enquadrar corretamente, deve-se utilizar `font-size: inherit` caso o ícone utilizado não aplique-o.
|
|
61
|
+
*/
|
|
62
|
+
icon?: string | TemplateRef<void>;
|
|
19
63
|
/** Rótulo do botão. */
|
|
20
64
|
label: string;
|
|
21
65
|
/** Habilita um estado de carregamento ao botão, desabilitando-o e exibindo um ícone de carregamento à esquerda de seu rótulo. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@po-ui/ng-components",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.10.0",
|
|
4
4
|
"description": "PO UI - Components",
|
|
5
5
|
"author": "PO UI",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@angular/cdk": "~20.0.3",
|
|
25
|
-
"@po-ui/style": "20.
|
|
26
|
-
"@po-ui/ng-schematics": "20.
|
|
25
|
+
"@po-ui/style": "20.10.0",
|
|
26
|
+
"@po-ui/ng-schematics": "20.10.0",
|
|
27
27
|
"echarts": "^5.6.0",
|
|
28
28
|
"tslib": "^2.3.0"
|
|
29
29
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@angular/platform-browser-dynamic": "^20",
|
|
39
39
|
"@angular/router": "^20",
|
|
40
40
|
"@angular-devkit/schematics": "^20",
|
|
41
|
-
"@po-ui/style": "20.
|
|
41
|
+
"@po-ui/style": "20.10.0",
|
|
42
42
|
"rxjs": "~7.8.1",
|
|
43
43
|
"zone.js": "~0.15.0"
|
|
44
44
|
},
|
|
Binary file
|
|
@@ -18,7 +18,7 @@ function default_1(options) {
|
|
|
18
18
|
}
|
|
19
19
|
function addPoPackageAndInstall() {
|
|
20
20
|
return (tree, context) => {
|
|
21
|
-
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '20.
|
|
21
|
+
(0, package_config_1.addPackageToPackageJson)(tree, '@po-ui/ng-components', '20.10.0');
|
|
22
22
|
// install packages
|
|
23
23
|
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
24
24
|
};
|
|
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.10.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
@@ -11,7 +11,7 @@ const changes_1 = require("./changes");
|
|
|
11
11
|
const httpClientModuleName = 'HttpClientModule';
|
|
12
12
|
const httpClientModuleSourcePath = '@angular/common/http';
|
|
13
13
|
function default_1() {
|
|
14
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.
|
|
14
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.10.0', changes_1.updateDepedenciesVersion), createUpgradeRule(), postUpdate()]);
|
|
15
15
|
}
|
|
16
16
|
function postUpdate() {
|
|
17
17
|
return (_, context) => {
|
|
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.10.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|
|
@@ -6,7 +6,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
6
6
|
const package_config_1 = require("@po-ui/ng-schematics/package-config");
|
|
7
7
|
const changes_1 = require("./changes");
|
|
8
8
|
function default_1() {
|
|
9
|
-
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.
|
|
9
|
+
return (0, schematics_1.chain)([(0, package_config_1.updatePackageJson)('20.10.0', changes_1.updateDepedenciesVersion), postUpdate()]);
|
|
10
10
|
}
|
|
11
11
|
function postUpdate() {
|
|
12
12
|
return (_, context) => {
|