@po-ui/ng-components 21.2.0 → 21.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/po-ui-ng-components.mjs +18287 -16838
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-avatar/po-avatar-base.component.d.ts +1 -0
- package/lib/components/po-calendar/po-calendar-base.component.d.ts +126 -30
- package/lib/components/po-calendar/po-calendar-header/po-calendar-header.component.d.ts +24 -3
- package/lib/components/po-calendar/po-calendar-mode.enum.d.ts +2 -2
- package/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.d.ts +92 -32
- package/lib/components/po-calendar/po-calendar.component.d.ts +3 -0
- package/lib/components/po-calendar/services/po-calendar.lang.service.d.ts +11 -0
- package/lib/components/po-calendar/services/po-calendar.service.d.ts +5 -0
- package/lib/components/po-field/index.d.ts +1 -0
- package/lib/components/po-field/po-clean/po-clean-base.component.d.ts +1 -0
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +20 -5
- package/lib/components/po-field/po-combo/po-combo.module.d.ts +2 -0
- package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +13 -0
- package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +8 -2
- package/lib/components/po-field/po-datepicker/po-datepicker.literals.d.ts +4 -0
- package/lib/components/po-field/po-datepicker-range/interfaces/po-datepicker-range-literals.interface.d.ts +8 -0
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +23 -0
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +11 -2
- package/lib/components/po-field/po-input/po-input-base.component.d.ts +11 -10
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +13 -0
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +13 -0
- package/lib/components/po-field/po-select/po-select.component.d.ts +13 -0
- package/lib/components/po-field/po-switch/po-switch.component.d.ts +13 -0
- package/lib/components/po-search/po-search-base.component.d.ts +18 -1
- package/lib/components/po-table/po-table-base.component.d.ts +1 -0
- package/lib/components/po-table/po-table.component.d.ts +2 -2
- package/lib/components/po-widget/index.d.ts +1 -0
- package/lib/components/po-widget/interfaces/po-widget-avatar.interface.d.ts +56 -0
- package/lib/components/po-widget/po-widget-base.component.d.ts +30 -3
- package/lib/components/po-widget/po-widget.component.d.ts +6 -2
- package/lib/utils/design-tokens.d.ts +17 -0
- package/lib/utils/util.d.ts +16 -0
- package/package.json +4 -4
- package/po-ui-ng-components-21.4.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/v16/index.js +1 -1
- package/schematics/ng-update/v17/index.js +1 -1
- package/schematics/ng-update/v18/index.js +2 -2
- package/schematics/ng-update/v19/index.js +2 -2
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v20/index.js +2 -2
- package/schematics/ng-update/v21/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/types/po-ui-ng-components.d.ts +6695 -6251
- package/po-ui-ng-components-21.2.0.tgz +0 -0
|
@@ -35,6 +35,7 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
35
35
|
dialogPicker: ElementRef;
|
|
36
36
|
iconDatepicker: PoButtonComponent;
|
|
37
37
|
inputEl: ElementRef;
|
|
38
|
+
iconClean: ElementRef<HTMLElement>;
|
|
38
39
|
helperEl?: PoHelperComponent;
|
|
39
40
|
/** Rótulo do campo. */
|
|
40
41
|
label?: string;
|
|
@@ -55,6 +56,7 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
55
56
|
private valueBeforeChange;
|
|
56
57
|
private subscriptionValidator;
|
|
57
58
|
get autocomplete(): "off" | "on";
|
|
59
|
+
get dateInputValue(): string;
|
|
58
60
|
constructor();
|
|
59
61
|
onKeyup($event: any): void;
|
|
60
62
|
onKeydown($event?: any): void;
|
|
@@ -82,11 +84,13 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
82
84
|
focus(): void;
|
|
83
85
|
getAdditionalHelpTooltip(): string;
|
|
84
86
|
togglePicker(focusInput?: boolean): void;
|
|
85
|
-
|
|
87
|
+
closeCalendar(focusInput?: boolean): void;
|
|
88
|
+
dateSelected(event?: string): void;
|
|
86
89
|
wasClickedOnPicker(event: any): void;
|
|
87
90
|
hasInvalidClass(): boolean;
|
|
88
91
|
getErrorPattern(): string;
|
|
89
92
|
clear(): void;
|
|
93
|
+
clearAndFocus(): void;
|
|
90
94
|
eventOnBlur($event: any): void;
|
|
91
95
|
eventOnClick($event: any): void;
|
|
92
96
|
onKeyDown(event: KeyboardEvent): void;
|
|
@@ -125,15 +129,17 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
125
129
|
hasOverlayClass(element: any): any;
|
|
126
130
|
verifyErrorAsync(value: any): void;
|
|
127
131
|
verifyMobile(): RegExpMatchArray;
|
|
128
|
-
private closeCalendar;
|
|
129
132
|
private controlChangeEmitter;
|
|
130
133
|
private hasAttrCalendar;
|
|
131
134
|
private initializeListeners;
|
|
132
135
|
private isAdditionalHelpEventTriggered;
|
|
136
|
+
private isFocusOnFirstCombo;
|
|
137
|
+
private isFocusOnLastCombo;
|
|
133
138
|
private onScroll;
|
|
134
139
|
private removeListeners;
|
|
135
140
|
private setDialogPickerStyleDisplay;
|
|
136
141
|
private setCalendarPosition;
|
|
142
|
+
protected adjustCalendarPosition(): void;
|
|
137
143
|
handleCleanKeyboardTab(event: KeyboardEvent): void;
|
|
138
144
|
private shouldHandleTab;
|
|
139
145
|
private focusCalendar;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
export declare const PoDatepickerLiterals: {
|
|
2
2
|
en: {
|
|
3
3
|
open: string;
|
|
4
|
+
clean: string;
|
|
4
5
|
};
|
|
5
6
|
es: {
|
|
6
7
|
open: string;
|
|
8
|
+
clean: string;
|
|
7
9
|
};
|
|
8
10
|
pt: {
|
|
9
11
|
open: string;
|
|
12
|
+
clean: string;
|
|
10
13
|
};
|
|
11
14
|
ru: {
|
|
12
15
|
open: string;
|
|
16
|
+
clean: string;
|
|
13
17
|
};
|
|
14
18
|
};
|
|
@@ -14,4 +14,12 @@ export interface PoDatepickerRangeLiterals {
|
|
|
14
14
|
invalidDate?: string;
|
|
15
15
|
/** Data fora do período. */
|
|
16
16
|
dateOutOfPeriod?: string;
|
|
17
|
+
/** Abrir calendário. */
|
|
18
|
+
open?: string;
|
|
19
|
+
/** Data inicial. */
|
|
20
|
+
startDate?: string;
|
|
21
|
+
/** Data final. */
|
|
22
|
+
endDate?: string;
|
|
23
|
+
/** Limpar campo. */
|
|
24
|
+
clean?: string;
|
|
17
25
|
}
|
|
@@ -123,6 +123,15 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
123
123
|
* @default `false`
|
|
124
124
|
*/
|
|
125
125
|
optional: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* @optional
|
|
128
|
+
*
|
|
129
|
+
* @description
|
|
130
|
+
*
|
|
131
|
+
* Mensagem que aparecerá enquanto o campo não estiver preenchido.
|
|
132
|
+
*/
|
|
133
|
+
set placeholder(value: string | PoDatepickerRange);
|
|
134
|
+
get placeholder(): PoDatepickerRange;
|
|
126
135
|
/**
|
|
127
136
|
* @optional
|
|
128
137
|
*
|
|
@@ -220,9 +229,11 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
220
229
|
private _noAutocomplete?;
|
|
221
230
|
private _readonly;
|
|
222
231
|
private _required?;
|
|
232
|
+
private _loading?;
|
|
223
233
|
private _startDate?;
|
|
224
234
|
private _locale?;
|
|
225
235
|
private _size?;
|
|
236
|
+
private _placeholder;
|
|
226
237
|
private language;
|
|
227
238
|
private onChangeModel;
|
|
228
239
|
private validatorChange;
|
|
@@ -296,6 +307,17 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
296
307
|
*/
|
|
297
308
|
set literals(value: PoDatepickerRangeLiterals);
|
|
298
309
|
get literals(): PoDatepickerRangeLiterals;
|
|
310
|
+
/**
|
|
311
|
+
* @optional
|
|
312
|
+
*
|
|
313
|
+
* @description
|
|
314
|
+
* Exibe um ícone de carregamento no lado direito do campo para sinalizar que uma operação está em andamento.
|
|
315
|
+
*
|
|
316
|
+
* @default `false`
|
|
317
|
+
*/
|
|
318
|
+
set loading(value: boolean);
|
|
319
|
+
get loading(): boolean;
|
|
320
|
+
get isDisabled(): boolean;
|
|
299
321
|
/**
|
|
300
322
|
* @optional
|
|
301
323
|
*
|
|
@@ -393,6 +415,7 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
393
415
|
constructor(changeDetector: ChangeDetectorRef, poDateService: PoDateService, languageService: PoLanguageService);
|
|
394
416
|
ngOnDestroy(): void;
|
|
395
417
|
setDisabledState(isDisabled: boolean): void;
|
|
418
|
+
mapSizeToIcon(size: string): string;
|
|
396
419
|
registerOnChange(func: any): void;
|
|
397
420
|
registerOnTouched(func: any): void;
|
|
398
421
|
registerOnValidatorChange?(fn: () => void): void;
|
|
@@ -2,6 +2,7 @@ import { AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges
|
|
|
2
2
|
import { PoDatepickerRange } from './interfaces/po-datepicker-range.interface';
|
|
3
3
|
import { PoDatepickerRangeBaseComponent } from './po-datepicker-range-base.component';
|
|
4
4
|
import { PoHelperComponent } from '../../po-helper';
|
|
5
|
+
import { PoButtonComponent } from '../../po-button';
|
|
5
6
|
/**
|
|
6
7
|
* @docsExtends PoDatepickerRangeBaseComponent
|
|
7
8
|
*
|
|
@@ -37,9 +38,11 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
37
38
|
dateRangeField: ElementRef;
|
|
38
39
|
endDateInput: ElementRef;
|
|
39
40
|
startDateInput: ElementRef;
|
|
40
|
-
iconCalendar:
|
|
41
|
+
iconCalendar: PoButtonComponent;
|
|
41
42
|
calendarPicker: ElementRef;
|
|
42
43
|
helperEl?: PoHelperComponent;
|
|
44
|
+
iconClean: ElementRef<HTMLElement>;
|
|
45
|
+
id: string;
|
|
43
46
|
isCalendarVisible: boolean;
|
|
44
47
|
private clickListener;
|
|
45
48
|
private eventResizeListener;
|
|
@@ -62,6 +65,7 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
62
65
|
ngOnChanges(changes: SimpleChanges): void;
|
|
63
66
|
ngOnDestroy(): void;
|
|
64
67
|
clear(): void;
|
|
68
|
+
clearAndFocus(): void;
|
|
65
69
|
emitAdditionalHelp(): void;
|
|
66
70
|
eventOnClick($event: any): void;
|
|
67
71
|
/**
|
|
@@ -90,6 +94,8 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
90
94
|
}): void;
|
|
91
95
|
onFocus(event: any): void;
|
|
92
96
|
onKeydown(event?: any): void;
|
|
97
|
+
onKeyPress(event: any): void;
|
|
98
|
+
onKeydownDatepickerRange($event?: any): void;
|
|
93
99
|
onKeyup(event: any): void;
|
|
94
100
|
resetDateRangeInputValidation(): void;
|
|
95
101
|
/**
|
|
@@ -120,10 +126,12 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
120
126
|
showAdditionalHelp(): boolean;
|
|
121
127
|
toggleCalendar(): void;
|
|
122
128
|
updateScreenByModel(model: PoDatepickerRange): void;
|
|
129
|
+
onCalendarKeyDown(event: KeyboardEvent): void;
|
|
123
130
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
124
131
|
hideAdditionalHelp: boolean;
|
|
125
132
|
helperSettings?: any;
|
|
126
133
|
};
|
|
134
|
+
setCalendarPosition(): void;
|
|
127
135
|
private applyFocusOnDatePickerRangeField;
|
|
128
136
|
private formatDate;
|
|
129
137
|
private formatScreenToModel;
|
|
@@ -135,6 +143,7 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
135
143
|
private initializeListeners;
|
|
136
144
|
private isAdditionalHelpEventTriggered;
|
|
137
145
|
private isEqualBeforeValue;
|
|
146
|
+
private isFocusOnFirstCombo;
|
|
138
147
|
private isSetFocusOnBackspace;
|
|
139
148
|
private onScroll;
|
|
140
149
|
private removeFocusFromDatePickerRangeField;
|
|
@@ -143,7 +152,6 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
143
152
|
private setFocusAndPosition;
|
|
144
153
|
private focusOnElement;
|
|
145
154
|
private removeListeners;
|
|
146
|
-
private setCalendarPosition;
|
|
147
155
|
private setFocusOnArrowLeft;
|
|
148
156
|
private setFocusOnArrowRight;
|
|
149
157
|
private setFocusOnBackspace;
|
|
@@ -152,4 +160,5 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
152
160
|
private updateModelByScreen;
|
|
153
161
|
private verifyFormattedDates;
|
|
154
162
|
private wasClickedOnPicker;
|
|
163
|
+
closeCalendar(): void;
|
|
155
164
|
}
|
|
@@ -169,16 +169,6 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
|
|
|
169
169
|
* @default `false`
|
|
170
170
|
*/
|
|
171
171
|
errorLimit: boolean;
|
|
172
|
-
/**
|
|
173
|
-
* @optional
|
|
174
|
-
*
|
|
175
|
-
* @description
|
|
176
|
-
* Exibe um ícone de carregamento no lado direito do campo para sinalizar que uma operação está em andamento.
|
|
177
|
-
*
|
|
178
|
-
* @default `false`
|
|
179
|
-
*/
|
|
180
|
-
set loading(value: boolean);
|
|
181
|
-
get loading(): boolean;
|
|
182
172
|
/**
|
|
183
173
|
* @optional
|
|
184
174
|
*
|
|
@@ -342,6 +332,17 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
|
|
|
342
332
|
*/
|
|
343
333
|
disabled?: boolean;
|
|
344
334
|
set setDisabled(disabled: string);
|
|
335
|
+
/**
|
|
336
|
+
* @optional
|
|
337
|
+
*
|
|
338
|
+
* @description
|
|
339
|
+
* Exibe um ícone de carregamento no lado direito do campo para sinalizar que uma operação está em andamento.
|
|
340
|
+
*
|
|
341
|
+
* @default `false`
|
|
342
|
+
*/
|
|
343
|
+
set loading(value: boolean);
|
|
344
|
+
get loading(): boolean;
|
|
345
|
+
get isDisabled(): boolean;
|
|
345
346
|
/** Indica que o campo será somente leitura. */
|
|
346
347
|
readonly?: boolean;
|
|
347
348
|
set setReadonly(readonly: string);
|
|
@@ -470,6 +470,7 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
|
|
|
470
470
|
private _disabled?;
|
|
471
471
|
private _fieldLabel;
|
|
472
472
|
private _filterService;
|
|
473
|
+
private _loading;
|
|
473
474
|
private _noAutocomplete;
|
|
474
475
|
private _placeholder;
|
|
475
476
|
private _required?;
|
|
@@ -577,6 +578,17 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
|
|
|
577
578
|
*/
|
|
578
579
|
set disabled(disabled: boolean);
|
|
579
580
|
get disabled(): boolean;
|
|
581
|
+
/**
|
|
582
|
+
* @optional
|
|
583
|
+
*
|
|
584
|
+
* @description
|
|
585
|
+
* Exibe um ícone de carregamento no lado direito do campo para sinalizar que uma operação está em andamento.
|
|
586
|
+
*
|
|
587
|
+
* @default `false`
|
|
588
|
+
*/
|
|
589
|
+
set loading(value: boolean);
|
|
590
|
+
get loading(): boolean;
|
|
591
|
+
get isDisabled(): boolean;
|
|
580
592
|
constructor(defaultService: PoLookupFilterService, injector: Injector, poLookupModalService: PoLookupModalService, languageService: PoLanguageService);
|
|
581
593
|
ngOnDestroy(): void;
|
|
582
594
|
ngOnInit(): void;
|
|
@@ -589,6 +601,7 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
|
|
|
589
601
|
registerOnTouched(func: any): void;
|
|
590
602
|
selectValue(valueSelected: any): void;
|
|
591
603
|
callOnChange(value: any): void;
|
|
604
|
+
mapSizeToIcon(size: string): string;
|
|
592
605
|
searchById(value: any): void;
|
|
593
606
|
validate(abstractControl: AbstractControl): {
|
|
594
607
|
[key: string]: any;
|
|
@@ -282,6 +282,7 @@ export declare abstract class PoMultiselectBaseComponent implements ControlValue
|
|
|
282
282
|
private _filterMode?;
|
|
283
283
|
private _hideSearch?;
|
|
284
284
|
private _literals;
|
|
285
|
+
private _loading;
|
|
285
286
|
private _options;
|
|
286
287
|
private _required?;
|
|
287
288
|
private _sort?;
|
|
@@ -435,6 +436,17 @@ export declare abstract class PoMultiselectBaseComponent implements ControlValue
|
|
|
435
436
|
*/
|
|
436
437
|
set disabled(disabled: boolean);
|
|
437
438
|
get disabled(): boolean;
|
|
439
|
+
/**
|
|
440
|
+
* @optional
|
|
441
|
+
*
|
|
442
|
+
* @description
|
|
443
|
+
* Exibe um ícone de carregamento no lado direito do campo para sinalizar que uma operação está em andamento.
|
|
444
|
+
*
|
|
445
|
+
* @default `false`
|
|
446
|
+
*/
|
|
447
|
+
set loading(value: boolean);
|
|
448
|
+
get loading(): boolean;
|
|
449
|
+
get isDisabled(): boolean;
|
|
438
450
|
/**
|
|
439
451
|
* @optional
|
|
440
452
|
*
|
|
@@ -538,6 +550,7 @@ export declare abstract class PoMultiselectBaseComponent implements ControlValue
|
|
|
538
550
|
eventChange(selectedOptions: any): void;
|
|
539
551
|
getValuesFromOptions(selectedOptions: Array<PoMultiselectOption | any>): any[];
|
|
540
552
|
getLabelByValue(value: any): any;
|
|
553
|
+
mapSizeToIcon(size: string): string;
|
|
541
554
|
searchByLabel(search: string, options: Array<PoMultiselectOption | any>, filterMode: PoMultiselectFilterMode): void;
|
|
542
555
|
compareMethod(search: string, option: PoMultiselectOption, filterMode: PoMultiselectFilterMode): any;
|
|
543
556
|
startsWith(search: string, option: PoMultiselectOption): any;
|
|
@@ -123,6 +123,7 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
|
|
|
123
123
|
protected onModelTouched: any;
|
|
124
124
|
private _fieldLabel?;
|
|
125
125
|
private _fieldValue?;
|
|
126
|
+
private _loading;
|
|
126
127
|
private _options;
|
|
127
128
|
private _size?;
|
|
128
129
|
/**
|
|
@@ -189,6 +190,17 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
|
|
|
189
190
|
*/
|
|
190
191
|
controlValueWithLabel?: boolean;
|
|
191
192
|
get fieldValue(): string;
|
|
193
|
+
/**
|
|
194
|
+
* @optional
|
|
195
|
+
*
|
|
196
|
+
* @description
|
|
197
|
+
* Exibe um ícone de carregamento no lado direito do campo para sinalizar que uma operação está em andamento.
|
|
198
|
+
*
|
|
199
|
+
* @default `false`
|
|
200
|
+
*/
|
|
201
|
+
set loading(value: boolean);
|
|
202
|
+
get loading(): boolean;
|
|
203
|
+
get isDisabled(): boolean;
|
|
192
204
|
/**
|
|
193
205
|
* @optional
|
|
194
206
|
*
|
|
@@ -254,6 +266,7 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
|
|
|
254
266
|
focus(): void;
|
|
255
267
|
getErrorPattern(): string;
|
|
256
268
|
hasInvalidClass(): any;
|
|
269
|
+
mapSizeToIcon(size: string): string;
|
|
257
270
|
onBlur(event: any): void;
|
|
258
271
|
onSelectChange(value: any): void;
|
|
259
272
|
onUpdateOptions(): void;
|
|
@@ -86,6 +86,7 @@ export declare class PoSwitchComponent extends PoFieldModel<any> implements Vali
|
|
|
86
86
|
private _labelOff;
|
|
87
87
|
private _labelOn;
|
|
88
88
|
private _labelPosition;
|
|
89
|
+
private _loading;
|
|
89
90
|
private _formatModel;
|
|
90
91
|
private _size?;
|
|
91
92
|
private statusChangesSubscription;
|
|
@@ -138,6 +139,17 @@ export declare class PoSwitchComponent extends PoFieldModel<any> implements Vali
|
|
|
138
139
|
*/
|
|
139
140
|
set labelOn(label: string);
|
|
140
141
|
get labelOn(): string;
|
|
142
|
+
/**
|
|
143
|
+
* @optional
|
|
144
|
+
*
|
|
145
|
+
* @description
|
|
146
|
+
* Exibe um ícone de carregamento substituindo o switch para sinalizar que uma operação está em andamento.
|
|
147
|
+
*
|
|
148
|
+
* @default `false`
|
|
149
|
+
*/
|
|
150
|
+
set loading(value: boolean);
|
|
151
|
+
get loading(): boolean;
|
|
152
|
+
get isDisabled(): boolean;
|
|
141
153
|
/**
|
|
142
154
|
* @optional
|
|
143
155
|
*
|
|
@@ -248,6 +260,7 @@ export declare class PoSwitchComponent extends PoFieldModel<any> implements Vali
|
|
|
248
260
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
249
261
|
ngAfterViewInit(): void;
|
|
250
262
|
private setControl;
|
|
263
|
+
mapSizeToIcon(size: string): string;
|
|
251
264
|
getErrorPattern(): string;
|
|
252
265
|
hasInvalidClass(): boolean;
|
|
253
266
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
@@ -81,6 +81,8 @@ export declare class PoSearchBaseComponent {
|
|
|
81
81
|
private _filterSelect?;
|
|
82
82
|
private _size?;
|
|
83
83
|
private _keysLabel?;
|
|
84
|
+
private _disabled?;
|
|
85
|
+
private _loading;
|
|
84
86
|
/**
|
|
85
87
|
* @optional
|
|
86
88
|
*
|
|
@@ -102,7 +104,21 @@ export declare class PoSearchBaseComponent {
|
|
|
102
104
|
*
|
|
103
105
|
* @default `false`
|
|
104
106
|
*/
|
|
105
|
-
disabled
|
|
107
|
+
set disabled(disabled: boolean);
|
|
108
|
+
get disabled(): boolean;
|
|
109
|
+
/**
|
|
110
|
+
* @optional
|
|
111
|
+
*
|
|
112
|
+
* @description
|
|
113
|
+
* Exibe um ícone de carregamento no lado direito do campo para sinalizar que uma operação está em andamento.
|
|
114
|
+
*
|
|
115
|
+
* > Incompatível com a propriedade `p-search-type` do tipo `locate`.
|
|
116
|
+
*
|
|
117
|
+
* @default `false`
|
|
118
|
+
*/
|
|
119
|
+
set loading(value: boolean);
|
|
120
|
+
get loading(): boolean;
|
|
121
|
+
get isDisabled(): boolean;
|
|
106
122
|
/**
|
|
107
123
|
* @description
|
|
108
124
|
*
|
|
@@ -404,4 +420,5 @@ export declare class PoSearchBaseComponent {
|
|
|
404
420
|
footerAction: EventEmitter<any>;
|
|
405
421
|
constructor(languageService: PoLanguageService);
|
|
406
422
|
ensureFilterSelectOption(values: any): any[];
|
|
423
|
+
mapSizeToIcon(size: string): string;
|
|
407
424
|
}
|
|
@@ -760,4 +760,5 @@ export declare abstract class PoTableBaseComponent implements OnChanges, OnDestr
|
|
|
760
760
|
protected abstract changeSizeLoading(): any;
|
|
761
761
|
protected abstract changeHeaderWidth(): any;
|
|
762
762
|
protected abstract getDefaultSpacing(): any;
|
|
763
|
+
protected abstract reapplySort(): any;
|
|
763
764
|
}
|
|
@@ -113,7 +113,6 @@ export declare class PoTableComponent extends PoTableBaseComponent implements Af
|
|
|
113
113
|
private _columnManagerTargetFixed;
|
|
114
114
|
private differ;
|
|
115
115
|
private footerHeight;
|
|
116
|
-
private headerHeight;
|
|
117
116
|
private timeoutResize;
|
|
118
117
|
private visibleElement;
|
|
119
118
|
private scrollEvent$;
|
|
@@ -276,12 +275,13 @@ export declare class PoTableComponent extends PoTableBaseComponent implements Af
|
|
|
276
275
|
getWidthColumnManager(): any;
|
|
277
276
|
getColumnWidthActionsLeft(): any;
|
|
278
277
|
hasSomeFixed(): boolean;
|
|
279
|
-
protected calculateHeightTableContainer(height:
|
|
278
|
+
protected calculateHeightTableContainer(height: number): void;
|
|
280
279
|
protected verifyCalculateHeightTableContainer(): void;
|
|
281
280
|
protected checkInfiniteScroll(): void;
|
|
282
281
|
private changesAfterDelete;
|
|
283
282
|
protected changeSizeLoading(): void;
|
|
284
283
|
protected getDefaultSpacing(): PoTableColumnSpacing;
|
|
284
|
+
protected reapplySort(): void;
|
|
285
285
|
private checkChangesItems;
|
|
286
286
|
private checkingIfColumnHasTooltip;
|
|
287
287
|
private countExtraColumns;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* @usedBy PoWidgetComponent
|
|
4
|
+
*
|
|
5
|
+
* @description
|
|
6
|
+
*
|
|
7
|
+
* Interface para definição do avatar no `po-widget`.
|
|
8
|
+
*/
|
|
9
|
+
export interface PoWidgetAvatar {
|
|
10
|
+
/**
|
|
11
|
+
* Fonte da imagem que pode ser um caminho local (`./assets/images/logo-black-small.png`)
|
|
12
|
+
* ou um servidor externo (`https://po-ui.io/assets/images/logo-black-small.png`).
|
|
13
|
+
*/
|
|
14
|
+
src?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @optional
|
|
17
|
+
*
|
|
18
|
+
* @description
|
|
19
|
+
*
|
|
20
|
+
* Tamanho de exibição do componente `po-avatar`.
|
|
21
|
+
*
|
|
22
|
+
* Valores válidos:
|
|
23
|
+
* - `xs` (24x24)
|
|
24
|
+
* - `sm` (32x32)
|
|
25
|
+
* - `md` (64x64)
|
|
26
|
+
* - `lg` (96x96)
|
|
27
|
+
* - `xl` (144x144)
|
|
28
|
+
*
|
|
29
|
+
* @default `md`
|
|
30
|
+
*/
|
|
31
|
+
size?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Permite a criação de template customizado para o avatar
|
|
34
|
+
*
|
|
35
|
+
* ```
|
|
36
|
+
* <po-widget
|
|
37
|
+
* [p-avatar]="{ customTemplate: customAvatar }"
|
|
38
|
+
* />
|
|
39
|
+
*
|
|
40
|
+
* <ng-template #customAvatar>
|
|
41
|
+
* ...
|
|
42
|
+
* </ng-template>
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
customTemplate?: TemplateRef<any>;
|
|
46
|
+
/**
|
|
47
|
+
* @optional
|
|
48
|
+
*
|
|
49
|
+
* @description
|
|
50
|
+
*
|
|
51
|
+
* Define a largura em porcentagem do `customTemplate`.
|
|
52
|
+
*
|
|
53
|
+
* O valor máximo aceito é `50%`.
|
|
54
|
+
*/
|
|
55
|
+
widthCustomTemplate?: string;
|
|
56
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
2
|
import { PoPopupAction } from '../po-popup';
|
|
3
3
|
import { PoTagType } from '../po-tag';
|
|
4
|
+
import { PoWidgetAvatar } from './interfaces/po-widget-avatar.interface';
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
6
7
|
* @description
|
|
@@ -42,6 +43,7 @@ import { PoTagType } from '../po-tag';
|
|
|
42
43
|
* | `--padding` - `@deprecated 21.x.x` | Preenchimento do componente | `1rem` |
|
|
43
44
|
* | `--padding-header` | Preenchimento do header | `var(--spacing-sm) var(--spacing-sm) var(--spacing-xs) var(--spacing-sm)` |
|
|
44
45
|
* | `--padding-body` | Preenchimento do body | `var(--spacing-xs) var(--spacing-sm) var(--spacing-xs) var(--spacing-sm)` |
|
|
46
|
+
* | `--padding-avatar` | Preenchimento do avatar | `var(--spacing-sm) 0 var(--spacing-xs) var(--spacing-sm)` |
|
|
45
47
|
* | `--padding-footer` | Preenchimento do footer | `var(--spacing-xs) var(--spacing-sm) var(--spacing-sm) var(--spacing-sm)` |
|
|
46
48
|
* | `--border-radius` | Contém o valor do raio dos cantos do elemento | `var(--border-radius-md)` |
|
|
47
49
|
* | `--border-width` | Contém o valor da largura dos cantos do elemento | `var(--border-width-sm)` |
|
|
@@ -49,13 +51,13 @@ import { PoTagType } from '../po-tag';
|
|
|
49
51
|
* | `--background` | Cor de background | `var(--color-neutral-light-00)` |
|
|
50
52
|
* | `--shadow` | Contém o valor da sombra do elemento | `var(--shadow-md)` |
|
|
51
53
|
* | **Hover** | | |
|
|
52
|
-
* | `--border-color-hover` | Cor da borda no estado hover | `var(--color-action-hover)`
|
|
54
|
+
* | `--border-color-hover` | Cor da borda no estado hover | `var(--color-action-hover)` |
|
|
53
55
|
* | **Focused** | | |
|
|
54
56
|
* | `--color-focused` | Cor principal no estado de focus | `var(--color-action-default)` |
|
|
55
57
|
* | `--outline-color-focused` | Cor do outline do estado de focus | `var(--color-action-focus)` |
|
|
56
58
|
*
|
|
57
59
|
*/
|
|
58
|
-
export declare
|
|
60
|
+
export declare class PoWidgetBaseComponent {
|
|
59
61
|
private _size?;
|
|
60
62
|
/** Descrição da segunda ação. */
|
|
61
63
|
/**
|
|
@@ -167,6 +169,20 @@ export declare abstract class PoWidgetBaseComponent {
|
|
|
167
169
|
* > Para o ícone enquadrar corretamente, deve-se utilizar `font-size: inherit` caso o ícone utilizado não aplique-o.
|
|
168
170
|
*/
|
|
169
171
|
tagIcon: string | TemplateRef<void>;
|
|
172
|
+
/**
|
|
173
|
+
* @Input p-tag-position
|
|
174
|
+
*
|
|
175
|
+
* @optional
|
|
176
|
+
*
|
|
177
|
+
* @description
|
|
178
|
+
* Define o posicionamento da `po-tag` no cabeçalho do Widget:
|
|
179
|
+
* - `right`: posicionada no canto superior direito do cabeçalho.
|
|
180
|
+
* - `top`: posicionada à esquerda, acima do título (quando houver).
|
|
181
|
+
* - `bottom`: posicionada à esquerda, abaixo do título (quando houver).
|
|
182
|
+
*
|
|
183
|
+
* @default `right`
|
|
184
|
+
*/
|
|
185
|
+
tagPosition: import("@angular/core").InputSignalWithTransform<string, string>;
|
|
170
186
|
/**
|
|
171
187
|
* @optional
|
|
172
188
|
*
|
|
@@ -192,6 +208,16 @@ export declare abstract class PoWidgetBaseComponent {
|
|
|
192
208
|
*/
|
|
193
209
|
set size(value: string);
|
|
194
210
|
get size(): string;
|
|
211
|
+
/**
|
|
212
|
+
* @Input p-avatar
|
|
213
|
+
*
|
|
214
|
+
* @optional
|
|
215
|
+
*
|
|
216
|
+
* @description
|
|
217
|
+
*
|
|
218
|
+
* Define o avatar a ser exibido à esquerda no Widget.
|
|
219
|
+
*/
|
|
220
|
+
avatar: import("@angular/core").InputSignalWithTransform<PoWidgetAvatar, PoWidgetAvatar>;
|
|
195
221
|
/**
|
|
196
222
|
* @optional
|
|
197
223
|
*
|
|
@@ -337,5 +363,6 @@ export declare abstract class PoWidgetBaseComponent {
|
|
|
337
363
|
*/
|
|
338
364
|
set title(value: string);
|
|
339
365
|
get title(): string;
|
|
340
|
-
|
|
366
|
+
private transformAvatar;
|
|
367
|
+
private transformTagPosition;
|
|
341
368
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { PoThemeService } from '../../services';
|
|
2
|
+
import { PoThemeA11yEnum, PoThemeService } from '../../services';
|
|
3
3
|
import { PoButtonComponent } from '../po-button';
|
|
4
4
|
import { PoPopupComponent } from '../po-popup';
|
|
5
5
|
import { PoWidgetBaseComponent } from './po-widget-base.component';
|
|
@@ -42,9 +42,13 @@ export declare class PoWidgetComponent extends PoWidgetBaseComponent implements
|
|
|
42
42
|
tagElement: ElementRef;
|
|
43
43
|
contentContainer: ElementRef<HTMLElement>;
|
|
44
44
|
get showTitleAction(): boolean;
|
|
45
|
+
avatarSrc: import("@angular/core").Signal<string>;
|
|
46
|
+
avatarSize: import("@angular/core").Signal<string>;
|
|
47
|
+
avatarCustomTemplate: import("@angular/core").Signal<import("@angular/core").TemplateRef<any>>;
|
|
48
|
+
avatarWidthCustomTemplate: import("@angular/core").Signal<string>;
|
|
45
49
|
constructor();
|
|
46
50
|
ngAfterViewInit(): void;
|
|
47
|
-
get a11Level():
|
|
51
|
+
get a11Level(): PoThemeA11yEnum;
|
|
48
52
|
ngOnChanges(changes: SimpleChanges): void;
|
|
49
53
|
ngOnInit(): void;
|
|
50
54
|
hasTitleHelpOrSetting(): boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const BORDER_WIDTH_NONE = 0;
|
|
2
|
+
export declare const BORDER_WIDTH_SM = 1;
|
|
3
|
+
export declare const BORDER_WIDTH_MD = 2;
|
|
4
|
+
export declare const BORDER_WIDTH_LG = 4;
|
|
5
|
+
export declare const BORDER_WIDTH_XL = 8;
|
|
6
|
+
export declare const SPACING_NONE = 0;
|
|
7
|
+
export declare const SPACING_XXS = 4;
|
|
8
|
+
export declare const SPACING_XS = 8;
|
|
9
|
+
export declare const SPACING_SM = 16;
|
|
10
|
+
export declare const SPACING_MD = 24;
|
|
11
|
+
export declare const SPACING_LG = 32;
|
|
12
|
+
export declare const SPACING_XL = 40;
|
|
13
|
+
export declare const SPACING_2XL = 48;
|
|
14
|
+
export declare const SPACING_3XL = 56;
|
|
15
|
+
export declare const SPACING_4XL = 64;
|
|
16
|
+
export declare const TARGET_SIZE_AAA = 44;
|
|
17
|
+
export declare const TARGET_SIZE_AA = 32;
|
package/lib/utils/util.d.ts
CHANGED
|
@@ -314,6 +314,16 @@ export declare function getTextColor(type: 'lightest' | 'darkest'): string;
|
|
|
314
314
|
* @returns Valor da cor do texto (por exemplo, '#ffffff', 'rgb(255,255,255)') baseado no brilho percebido da cor de fundo usando a fórmula do espaço de cor YIQ.
|
|
315
315
|
*/
|
|
316
316
|
export declare function getTextColorFromBackgroundColor(backgroundColor: string): string;
|
|
317
|
+
/**
|
|
318
|
+
* Retorna o tamanho do ícone de loading baseado no tamanho do field.
|
|
319
|
+
*
|
|
320
|
+
* @param size Tamanho do campo (`small`, `medium` ou outros valores).
|
|
321
|
+
* @returns Tamanho do ícone de loading correspondente:
|
|
322
|
+
* - `small` → `xs`
|
|
323
|
+
* - `medium` → `sm`
|
|
324
|
+
* - qualquer outro valor → `sm`
|
|
325
|
+
*/
|
|
326
|
+
export declare function mapInputSizeToLoadingIcon(size?: string): string;
|
|
317
327
|
export declare const PoUtils: {
|
|
318
328
|
capitalizeFirstLetter: typeof capitalizeFirstLetter;
|
|
319
329
|
convertDateToISODate: typeof convertDateToISODate;
|
|
@@ -347,3 +357,9 @@ export declare const PoUtils: {
|
|
|
347
357
|
uuid: typeof uuid;
|
|
348
358
|
validateDateRange: typeof validateDateRange;
|
|
349
359
|
};
|
|
360
|
+
export declare const PO_TABLE_ROW_HEIGHT_BY_SPACING: {
|
|
361
|
+
extraSmall: number;
|
|
362
|
+
small: number;
|
|
363
|
+
medium: number;
|
|
364
|
+
large: number;
|
|
365
|
+
};
|