@po-ui/ng-components 21.5.0 → 21.7.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 (82) hide show
  1. package/fesm2022/po-ui-ng-components.mjs +1605 -252
  2. package/fesm2022/po-ui-ng-components.mjs.map +1 -1
  3. package/lib/components/index.d.ts +1 -0
  4. package/lib/components/po-accordion/po-accordion-base.component.d.ts +3 -0
  5. package/lib/components/po-breadcrumb/po-breadcrumb-base.component.d.ts +3 -0
  6. package/lib/components/po-button/po-button-base.component.d.ts +3 -0
  7. package/lib/components/po-button-group/po-button-group-base.component.d.ts +3 -0
  8. package/lib/components/po-calendar/po-calendar-base.component.d.ts +3 -0
  9. package/lib/components/po-dropdown/po-dropdown-base.component.d.ts +3 -0
  10. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-base.component.d.ts +3 -0
  11. package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields-base.component.d.ts +3 -0
  12. package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.d.ts +3 -0
  13. package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +4 -1
  14. package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +3 -0
  15. package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +3 -0
  16. package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +3 -0
  17. package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +3 -0
  18. package/lib/components/po-field/po-input/po-input-base.component.d.ts +3 -0
  19. package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +3 -0
  20. package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +3 -0
  21. package/lib/components/po-field/po-radio/po-radio.component.d.ts +3 -0
  22. package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +5 -1
  23. package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +0 -1
  24. package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +30 -3
  25. package/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.d.ts +15 -2
  26. package/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.d.ts +1 -0
  27. package/lib/components/po-field/po-select/po-select.component.d.ts +3 -0
  28. package/lib/components/po-field/po-switch/po-switch.component.d.ts +3 -0
  29. package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +17 -0
  30. package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +11 -2
  31. package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +17 -0
  32. package/lib/components/po-field/po-upload/po-upload.component.d.ts +2 -0
  33. package/lib/components/po-header/interfaces/po-header-action-tool.interface.d.ts +10 -2
  34. package/lib/components/po-helper/po-helper-base.component.d.ts +1 -0
  35. package/lib/components/po-info/po-info-base.component.d.ts +3 -0
  36. package/lib/components/po-list-view/po-list-view-base.component.d.ts +3 -0
  37. package/lib/components/po-listbox/po-listbox-base.component.d.ts +3 -0
  38. package/lib/components/po-menu/po-menu-base.component.d.ts +3 -0
  39. package/lib/components/po-modal/po-modal-base.component.d.ts +3 -0
  40. package/lib/components/po-page/po-page-default/po-page-default-base.component.d.ts +3 -0
  41. package/lib/components/po-page/po-page-detail/po-page-detail-base.component.d.ts +3 -0
  42. package/lib/components/po-page/po-page-edit/po-page-edit-base.component.d.ts +3 -0
  43. package/lib/components/po-page/po-page-list/po-page-list-base.component.d.ts +3 -0
  44. package/lib/components/po-page/po-page-slide/po-page-slide-base.component.d.ts +3 -0
  45. package/lib/components/po-popover/po-popover-base.component.d.ts +2 -0
  46. package/lib/components/po-popover/po-popover.component.d.ts +4 -0
  47. package/lib/components/po-progress/po-progress-base.component.d.ts +3 -0
  48. package/lib/components/po-search/po-search-base.component.d.ts +3 -0
  49. package/lib/components/po-skeleton/enums/po-skeleton-animation.enum.d.ts +15 -0
  50. package/lib/components/po-skeleton/enums/po-skeleton-size.enum.d.ts +21 -0
  51. package/lib/components/po-skeleton/enums/po-skeleton-type.enum.d.ts +15 -0
  52. package/lib/components/po-skeleton/enums/po-skeleton-variant.enum.d.ts +17 -0
  53. package/lib/components/po-skeleton/index.d.ts +6 -0
  54. package/lib/components/po-skeleton/po-skeleton-base.component.d.ts +208 -0
  55. package/lib/components/po-skeleton/po-skeleton.component.d.ts +59 -0
  56. package/lib/components/po-skeleton/po-skeleton.module.d.ts +7 -0
  57. package/lib/components/po-table/po-table-base.component.d.ts +5 -0
  58. package/lib/components/po-tabs/po-tabs-base.component.d.ts +3 -0
  59. package/lib/components/po-toaster/po-toaster-base.component.d.ts +4 -0
  60. package/lib/components/po-tree-view/po-tree-view-base.component.d.ts +3 -0
  61. package/lib/components/po-widget/po-widget-base.component.d.ts +3 -0
  62. package/lib/services/po-control-position/po-control-position.service.d.ts +1 -1
  63. package/lib/services/po-dialog/po-dialog.component.d.ts +3 -0
  64. package/lib/services/po-theme/po-theme.service.d.ts +18 -6
  65. package/package.json +4 -4
  66. package/po-ui-ng-components-21.7.0.tgz +0 -0
  67. package/schematics/ng-add/index.js +1 -1
  68. package/schematics/ng-update/v14/index.js +1 -1
  69. package/schematics/ng-update/v15/index.js +1 -1
  70. package/schematics/ng-update/v16/index.js +1 -1
  71. package/schematics/ng-update/v17/index.js +1 -1
  72. package/schematics/ng-update/v18/index.js +2 -2
  73. package/schematics/ng-update/v19/index.js +2 -2
  74. package/schematics/ng-update/v2/index.js +1 -1
  75. package/schematics/ng-update/v20/index.js +2 -2
  76. package/schematics/ng-update/v21/index.js +1 -1
  77. package/schematics/ng-update/v3/index.js +1 -1
  78. package/schematics/ng-update/v4/index.js +1 -1
  79. package/schematics/ng-update/v5/index.js +1 -1
  80. package/schematics/ng-update/v6/index.js +1 -1
  81. package/types/po-ui-ng-components.d.ts +611 -23
  82. package/po-ui-ng-components-21.5.0.tgz +0 -0
@@ -46,5 +46,6 @@ export * from './po-toolbar/index';
46
46
  export * from './po-tree-view/index';
47
47
  export * from './po-widget/index';
48
48
  export * from './po-search/index';
49
+ export * from './po-skeleton/index';
49
50
  export * from './po-toaster/index';
50
51
  export * from './po-header/index';
@@ -82,6 +82,7 @@ export declare class PoAccordionBaseComponent {
82
82
  private language;
83
83
  private _literals;
84
84
  private _size?;
85
+ private _initialSize?;
85
86
  /**
86
87
  * @optional
87
88
  *
@@ -175,4 +176,6 @@ export declare class PoAccordionBaseComponent {
175
176
  */
176
177
  collapseAllEvent: EventEmitter<void>;
177
178
  constructor(languageService: PoLanguageService);
179
+ protected onThemeChange(): void;
180
+ private applySizeBasedOnA11y;
178
181
  }
@@ -106,6 +106,7 @@ export declare class PoBreadcrumbBaseComponent {
106
106
  protected resizeListener: () => void;
107
107
  private _items;
108
108
  private _size?;
109
+ private _initialSize?;
109
110
  /**
110
111
  * @description
111
112
  *
@@ -132,6 +133,8 @@ export declare class PoBreadcrumbBaseComponent {
132
133
  */
133
134
  set size(value: string);
134
135
  get size(): string;
136
+ protected onThemeChange(): void;
137
+ private applySizeBasedOnA11y;
135
138
  private transformToArrayPopup;
136
139
  private transformArrayToActionPopUp;
137
140
  }
@@ -123,6 +123,7 @@ export declare class PoButtonBaseComponent {
123
123
  private _loading?;
124
124
  private _kind?;
125
125
  private _size?;
126
+ private _initialSize?;
126
127
  protected hasSize?: boolean;
127
128
  /**
128
129
  * @optional
@@ -205,4 +206,6 @@ export declare class PoButtonBaseComponent {
205
206
  */
206
207
  set size(value: string);
207
208
  get size(): string;
209
+ protected onThemeChange(): void;
210
+ private applySizeBasedOnA11y;
208
211
  }
@@ -62,6 +62,7 @@ export declare class PoButtonGroupBaseComponent {
62
62
  */
63
63
  readonly buttons: import("@angular/core").InputSignal<PoButtonGroupItem[]>;
64
64
  private _size?;
65
+ private _initialSize?;
65
66
  private _toggle?;
66
67
  /**
67
68
  * @optional
@@ -93,6 +94,8 @@ export declare class PoButtonGroupBaseComponent {
93
94
  */
94
95
  set size(value: string);
95
96
  get size(): string;
97
+ protected onThemeChange(): void;
98
+ private applySizeBasedOnA11y;
96
99
  onButtonClick(buttonClicked: PoButtonGroupItem, buttonIndex: number): void;
97
100
  private checkSelecteds;
98
101
  private deselectAllButtons;
@@ -128,6 +128,7 @@ export declare class PoCalendarBaseComponent {
128
128
  private _minDate;
129
129
  private _mode;
130
130
  private _size?;
131
+ private _initialSize?;
131
132
  /**
132
133
  * @optional
133
134
  *
@@ -220,6 +221,8 @@ export declare class PoCalendarBaseComponent {
220
221
  set size(value: string);
221
222
  get size(): string;
222
223
  constructor(poDate: PoDateService, languageService: PoLanguageService);
224
+ protected onThemeChange(): void;
223
225
  protected setActivateDate(date?: Date | string): void;
224
226
  private verifyActivateDate;
227
+ private applySizeBasedOnA11y;
225
228
  }
@@ -66,6 +66,7 @@ export declare class PoDropdownBaseComponent {
66
66
  private _actions;
67
67
  private _disabled;
68
68
  private _size?;
69
+ private _initialSize?;
69
70
  /** Lista de ações que serão exibidas no componente. */
70
71
  set actions(value: Array<PoDropdownAction>);
71
72
  get actions(): Array<PoDropdownAction>;
@@ -96,4 +97,6 @@ export declare class PoDropdownBaseComponent {
96
97
  */
97
98
  set size(value: string);
98
99
  get size(): string;
100
+ protected onThemeChange(): void;
101
+ private applySizeBasedOnA11y;
99
102
  }
@@ -191,6 +191,7 @@ export declare class PoDynamicFormBaseComponent {
191
191
  */
192
192
  validateFields?: Array<string>;
193
193
  private _componentsSize?;
194
+ private _initialComponentsSize?;
194
195
  private _groupForm?;
195
196
  /**
196
197
  * @optional
@@ -245,4 +246,6 @@ export declare class PoDynamicFormBaseComponent {
245
246
  *
246
247
  */
247
248
  validateOnInput: boolean;
249
+ protected onThemeChange(): void;
250
+ private applySizeBasedOnA11y;
248
251
  }
@@ -12,6 +12,7 @@ export declare class PoDynamicFormFieldsBaseComponent extends PoDynamicSharedBas
12
12
  objectValue: EventEmitter<any>;
13
13
  validateOnInput: boolean;
14
14
  private _componentsSize?;
15
+ private _initialComponentsSize?;
15
16
  private _fields;
16
17
  private _validateFields;
17
18
  private _value?;
@@ -25,6 +26,7 @@ export declare class PoDynamicFormFieldsBaseComponent extends PoDynamicSharedBas
25
26
  get validateFields(): Array<string>;
26
27
  constructor(titleCasePipe: TitleCasePipe);
27
28
  compareTo(value: any, compareTo: any): boolean;
29
+ protected onThemeChange(): void;
28
30
  protected getVisibleFields(): any[];
29
31
  private convertOptions;
30
32
  private createField;
@@ -46,4 +48,5 @@ export declare class PoDynamicFormFieldsBaseComponent extends PoDynamicSharedBas
46
48
  private isSelect;
47
49
  private isTextarea;
48
50
  private printError;
51
+ private applySizeBasedOnA11y;
49
52
  }
@@ -58,6 +58,7 @@ export declare class PoDynamicViewBaseComponent extends PoDynamicSharedBase {
58
58
  load: string | Function;
59
59
  service: any;
60
60
  private _componentsSize?;
61
+ private _initialComponentsSize?;
61
62
  private _fields;
62
63
  private _showAllValue;
63
64
  private _value;
@@ -143,6 +144,7 @@ export declare class PoDynamicViewBaseComponent extends PoDynamicSharedBase {
143
144
  set value(value: object);
144
145
  get value(): object;
145
146
  constructor(currencyPipe: CurrencyPipe, datePipe: DatePipe, decimalPipe: DecimalPipe, timePipe: PoTimePipe, titleCasePipe: TitleCasePipe, dynamicViewService: PoDynamicViewService, comboFilterService: PoComboFilterService, multiselectFilterService: PoMultiselectFilterService);
147
+ protected onThemeChange(): void;
146
148
  protected getFieldOrderRetroactive(position: number, index?: number): number;
147
149
  protected getFieldOrder(field: PoDynamicViewField, index: number): number;
148
150
  protected getConfiguredFields(useSearchService?: boolean): any[];
@@ -203,4 +205,5 @@ export declare class PoDynamicViewBaseComponent extends PoDynamicSharedBase {
203
205
  private transformFieldLabel;
204
206
  private transformValue;
205
207
  private formatField;
208
+ private applySizeBasedOnA11y;
206
209
  }
@@ -181,6 +181,7 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
181
181
  onTouched: any;
182
182
  private _disabled?;
183
183
  private _size?;
184
+ private _initialSize?;
184
185
  /**
185
186
  * @optional
186
187
  *
@@ -209,6 +210,7 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
209
210
  *
210
211
  */
211
212
  set size(value: string);
213
+ get size(): string;
212
214
  /**
213
215
  * @Input
214
216
  *
@@ -236,13 +238,14 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
236
238
  * @default `false`
237
239
  */
238
240
  labelTextWrap: import("@angular/core").InputSignal<boolean>;
239
- get size(): string;
240
241
  constructor(cd: ChangeDetectorRef);
242
+ protected onThemeChange(): void;
241
243
  changeValue(): void;
242
244
  checkOption(event: any, value: boolean | null | string): void;
243
245
  setDisabledState(isDisabled: boolean): void;
244
246
  registerOnChange(fn: any): void;
245
247
  registerOnTouched(fn: any): void;
246
248
  writeValue(value: any): void;
249
+ private applySizeBasedOnA11y;
247
250
  protected abstract changeModelValue(value: boolean | null): any;
248
251
  }
@@ -239,6 +239,7 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
239
239
  private _options?;
240
240
  private _required?;
241
241
  private _size?;
242
+ private _initialSize?;
242
243
  /**
243
244
  * @optional
244
245
  *
@@ -326,6 +327,7 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
326
327
  */
327
328
  set size(value: string);
328
329
  get size(): string;
330
+ protected onThemeChange(): void;
329
331
  changeValue(): void;
330
332
  checkIndeterminate(): any;
331
333
  checkOption(value: PoCheckboxGroupOption): void;
@@ -345,4 +347,5 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
345
347
  private isInvalidIndeterminate;
346
348
  private removeDuplicatedOptions;
347
349
  private setCheckboxGroupOptionsView;
350
+ private applySizeBasedOnA11y;
348
351
  }
@@ -433,6 +433,7 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
433
433
  private _placeholder;
434
434
  private _required?;
435
435
  private _size?;
436
+ private _initialSize?;
436
437
  private _sort?;
437
438
  private language;
438
439
  private _infiniteScrollDistance?;
@@ -669,6 +670,7 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
669
670
  constructor(languageService: PoLanguageService, changeDetector: ChangeDetectorRef);
670
671
  get isOptionGroupList(): boolean;
671
672
  ngOnInit(): void;
673
+ protected onThemeChange(): void;
672
674
  onInitService(): void;
673
675
  setService(service: PoComboFilter | string): void;
674
676
  compareMethod(search: string, option: PoComboOption | PoComboGroup, filterMode: PoComboFilterMode): any;
@@ -716,6 +718,7 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
716
718
  private updateModel;
717
719
  private updateSelectedValueWithOldOption;
718
720
  private updateHasNext;
721
+ private applySizeBasedOnA11y;
719
722
  abstract setInputValue(value: any): void;
720
723
  abstract applyFilter(value: string): void;
721
724
  abstract getObjectByValue(value: string): void;
@@ -290,6 +290,7 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
290
290
  private _loading?;
291
291
  private previousValue;
292
292
  private _size?;
293
+ private _initialSize?;
293
294
  private subscription;
294
295
  private _date;
295
296
  /**
@@ -442,6 +443,7 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
442
443
  get date(): any;
443
444
  ngOnInit(): void;
444
445
  ngOnDestroy(): void;
446
+ protected onThemeChange(): void;
445
447
  getDateFromString(dateString: string): Date;
446
448
  formatToDate(value: Date): string;
447
449
  controlModel(date: Date): void;
@@ -457,6 +459,7 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
457
459
  protected validateModel(model: any): void;
458
460
  protected buildMask(format?: string): PoMask;
459
461
  formatTimezoneAndHour(offset: number): void;
462
+ private applySizeBasedOnA11y;
460
463
  abstract writeValue(value: any): void;
461
464
  abstract refreshValue(value: Date): void;
462
465
  }
@@ -272,6 +272,7 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
272
272
  private _startDate?;
273
273
  private _locale?;
274
274
  private _size?;
275
+ private _initialSize?;
275
276
  private _placeholder;
276
277
  private language;
277
278
  private onChangeModel;
@@ -453,6 +454,7 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
453
454
  get locale(): string;
454
455
  constructor(changeDetector: ChangeDetectorRef, poDateService: PoDateService, languageService: PoLanguageService);
455
456
  ngOnDestroy(): void;
457
+ protected onThemeChange(): void;
456
458
  setDisabledState(isDisabled: boolean): void;
457
459
  mapSizeToIcon(size: string): string;
458
460
  registerOnChange(func: any): void;
@@ -473,6 +475,7 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
473
475
  private isDateRangeObject;
474
476
  private requiredDateRangeFailed;
475
477
  private dateIsValid;
478
+ private applySizeBasedOnA11y;
476
479
  protected abstract resetDateRangeInputValidation(): void;
477
480
  protected abstract updateScreenByModel(dateRange: PoDatepickerRange): any;
478
481
  }
@@ -338,6 +338,7 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
338
338
  private _noAutocomplete?;
339
339
  private _placeholder?;
340
340
  private _size?;
341
+ private _initialSize?;
341
342
  /**
342
343
  * @optional
343
344
  *
@@ -501,6 +502,7 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
501
502
  labelTextWrap: import("@angular/core").InputSignal<boolean>;
502
503
  constructor(cd?: ChangeDetectorRef);
503
504
  ngOnDestroy(): void;
505
+ protected onThemeChange(): void;
504
506
  callOnChange(value: any): void;
505
507
  callUpdateModelWithTimeout(value: any): void;
506
508
  controlChangeModelEmitter(value: any): void;
@@ -546,6 +548,7 @@ export declare abstract class PoInputBaseComponent implements ControlValueAccess
546
548
  protected isAdditionalHelpEventTriggered(): boolean;
547
549
  mapSizeToIcon(size: string): string;
548
550
  private validatePatternOnWriteValue;
551
+ private applySizeBasedOnA11y;
549
552
  /**
550
553
  * Função que atribui foco ao componente.
551
554
  *
@@ -38,6 +38,7 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
38
38
  private _literals?;
39
39
  private readonly language;
40
40
  private _size?;
41
+ private _initialSize?;
41
42
  private _spacing;
42
43
  inputEl: ElementRef;
43
44
  additionalHelpEventTrigger: string | undefined;
@@ -634,6 +635,7 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
634
635
  ngAfterViewInit(): void;
635
636
  cleanModel(): void;
636
637
  ngOnChanges(changes: SimpleChanges): void;
638
+ protected onThemeChange(): void;
637
639
  setDisabledState(isDisabled: boolean): void;
638
640
  registerOnValidatorChange(fn: () => void): void;
639
641
  registerOnChange(func: any): void;
@@ -655,6 +657,7 @@ export declare abstract class PoLookupBaseComponent implements ControlValueAcces
655
657
  private setControl;
656
658
  private initializeColumn;
657
659
  private updateLookupInputHeight;
660
+ private applySizeBasedOnA11y;
658
661
  abstract setViewValue(value: any, object: any): void;
659
662
  abstract openLookup(): void;
660
663
  abstract setDisclaimers(a: any): any;
@@ -331,6 +331,7 @@ export declare abstract class PoMultiselectBaseComponent implements ControlValue
331
331
  private _fieldLabel?;
332
332
  private _fieldValue?;
333
333
  private _size?;
334
+ private _initialSize?;
334
335
  private language;
335
336
  private lastLengthModel;
336
337
  private onModelChange;
@@ -583,6 +584,7 @@ export declare abstract class PoMultiselectBaseComponent implements ControlValue
583
584
  get fieldValue(): string;
584
585
  constructor(languageService: PoLanguageService, cd?: ChangeDetectorRef);
585
586
  ngOnInit(): void;
587
+ protected onThemeChange(): void;
586
588
  setService(service: PoMultiselectFilter | string): void;
587
589
  validAndSortOptions(): void;
588
590
  setUndefinedLabels(options: any): void;
@@ -611,6 +613,7 @@ export declare abstract class PoMultiselectBaseComponent implements ControlValue
611
613
  private setLabelsAndValuesOptions;
612
614
  private validateModel;
613
615
  private updateInputHeight;
616
+ private applySizeBasedOnA11y;
614
617
  abstract applyFilter(value?: string): Observable<Array<PoMultiselectOption | any>>;
615
618
  abstract updateVisibleItems(): void;
616
619
  }
@@ -7,6 +7,7 @@ export declare class PoRadioComponent extends PoFieldModel<boolean> {
7
7
  radioInput: ElementRef;
8
8
  value: boolean;
9
9
  private _size?;
10
+ private _initialSize?;
10
11
  /** Define o valor do *radio* */
11
12
  radioValue: string;
12
13
  /** Define o tamanho do radio. */
@@ -55,4 +56,6 @@ export declare class PoRadioComponent extends PoFieldModel<boolean> {
55
56
  focusOut(): void;
56
57
  onKeyup(): void;
57
58
  onKeydown(): void;
59
+ protected onThemeChange(): void;
60
+ private applySizeBasedOnA11y;
58
61
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
2
  import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
3
3
  import { PoRadioGroupOption } from './po-radio-group-option.interface';
4
4
  import { PoHelperOptions } from '../../po-helper';
@@ -231,12 +231,14 @@ export declare abstract class PoRadioGroupBaseComponent implements ControlValueA
231
231
  displayAdditionalHelp: boolean;
232
232
  mdColumns: number;
233
233
  value: any;
234
+ protected cd: ChangeDetectorRef;
234
235
  protected onTouched: any;
235
236
  private _columns;
236
237
  private _disabled?;
237
238
  private _options;
238
239
  private _required?;
239
240
  private _size?;
241
+ private _initialSize?;
240
242
  private onChangePropagate;
241
243
  private validatorChange;
242
244
  /**
@@ -308,6 +310,7 @@ export declare abstract class PoRadioGroupBaseComponent implements ControlValueA
308
310
  */
309
311
  set size(value: string);
310
312
  get size(): string;
313
+ protected onThemeChange(): void;
311
314
  changeValue(changedValue: any): void;
312
315
  setDisabledState(isDisabled: boolean): void;
313
316
  registerOnChange(fn: any): void;
@@ -320,5 +323,6 @@ export declare abstract class PoRadioGroupBaseComponent implements ControlValueA
320
323
  private checkColumnsRange;
321
324
  private getGridSystemColumns;
322
325
  private validateModel;
326
+ private applySizeBasedOnA11y;
323
327
  abstract getElementByValue(value: any): any;
324
328
  }
@@ -30,7 +30,6 @@ import { PoHelperComponent } from '../../po-helper';
30
30
  */
31
31
  export declare class PoRadioGroupComponent extends PoRadioGroupBaseComponent implements AfterViewInit, DoCheck, OnChanges {
32
32
  private el;
33
- private cd;
34
33
  /** Label do campo. */
35
34
  label?: string;
36
35
  /** Texto de apoio do campo. */
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
2
  import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
3
3
  import { PoRichTextToolbarActions } from './enum/po-rich-text-toolbar-actions.enum';
4
4
  import { PoRichTextService } from './po-rich-text.service';
@@ -13,7 +13,8 @@ import { PoHelperOptions } from '../../po-helper';
13
13
  * > No navegador Internet Explorer não é possível alterar a cor do texto.
14
14
  */
15
15
  export declare abstract class PoRichTextBaseComponent implements ControlValueAccessor, Validator {
16
- private richTextService;
16
+ private readonly richTextService;
17
+ cd: ChangeDetectorRef;
17
18
  /**
18
19
  *
19
20
  * @deprecated v23.x.x use `p-helper`
@@ -64,6 +65,27 @@ export declare abstract class PoRichTextBaseComponent implements ControlValueAcc
64
65
  * @default `false`
65
66
  */
66
67
  disabledTextAlign: boolean;
68
+ /**
69
+ * @optional
70
+ *
71
+ * @description
72
+ *
73
+ * Indica que o campo será desabilitado.
74
+ *
75
+ * @default `false`
76
+ */
77
+ disabled: boolean;
78
+ /**
79
+ * @optional
80
+ *
81
+ * @description
82
+ * Exibe um ícone de carregamento no lado direito do campo para sinalizar que uma operação está em andamento.
83
+ *
84
+ * @default `false`
85
+ */
86
+ set loading(value: boolean);
87
+ get loading(): boolean;
88
+ get isDisabled(): boolean;
67
89
  /**
68
90
  * @description
69
91
  *
@@ -245,11 +267,13 @@ export declare abstract class PoRichTextBaseComponent implements ControlValueAcc
245
267
  invalid: boolean;
246
268
  onChangeModel: any;
247
269
  value: string;
270
+ private _loading;
248
271
  private _height?;
249
272
  private _placeholder;
250
273
  private _readonly;
251
274
  private _required;
252
275
  private _size?;
276
+ private _initialSize?;
253
277
  private validatorChange;
254
278
  protected onTouched: any;
255
279
  /**
@@ -319,7 +343,9 @@ export declare abstract class PoRichTextBaseComponent implements ControlValueAcc
319
343
  * - Não possuir `p-help` e/ou `p-label`.
320
344
  */
321
345
  showRequired: boolean;
322
- constructor(richTextService: PoRichTextService);
346
+ constructor(richTextService: PoRichTextService, cd: ChangeDetectorRef);
347
+ setDisabledState(isDisabled: boolean): void;
348
+ protected onThemeChange(): void;
323
349
  registerOnChange(func: any): void;
324
350
  registerOnTouched(func: any): void;
325
351
  registerOnValidatorChange(fn: () => void): void;
@@ -329,4 +355,5 @@ export declare abstract class PoRichTextBaseComponent implements ControlValueAcc
329
355
  writeValue(value: string): void;
330
356
  protected updateModel(value: any): void;
331
357
  protected validateModel(value: any): void;
358
+ private applySizeBasedOnA11y;
332
359
  }
@@ -1,12 +1,15 @@
1
- import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- export declare class PoRichTextBodyComponent implements OnInit, OnDestroy {
1
+ import { ElementRef, EventEmitter, OnDestroy, OnInit, OnChanges, SimpleChanges } from '@angular/core';
2
+ export declare class PoRichTextBodyComponent implements OnInit, OnDestroy, OnChanges {
3
3
  private richTextService;
4
+ private readonly cd;
4
5
  bodyElement: ElementRef;
5
6
  height?: string;
6
7
  label: string;
7
8
  modelValue?: string;
8
9
  placeholder?: string;
9
10
  readonly?: string;
11
+ disabled: boolean;
12
+ loading: boolean;
10
13
  change: EventEmitter<any>;
11
14
  commands: EventEmitter<any>;
12
15
  keydown: EventEmitter<KeyboardEvent>;
@@ -20,7 +23,12 @@ export declare class PoRichTextBodyComponent implements OnInit, OnDestroy {
20
23
  private timeoutChange;
21
24
  private valueBeforeChange;
22
25
  private modelSubscription;
26
+ private resizeObserver;
27
+ hasScroll: boolean;
28
+ hasValue: boolean;
29
+ onWindowResize(): void;
23
30
  ngOnInit(): void;
31
+ ngOnChanges(changes: SimpleChanges): void;
24
32
  ngOnDestroy(): void;
25
33
  executeCommand(command: string | {
26
34
  command: any;
@@ -35,6 +43,7 @@ export declare class PoRichTextBodyComponent implements OnInit, OnDestroy {
35
43
  onKeyUp(event: any): void;
36
44
  onPaste(): void;
37
45
  update(): void;
46
+ protected mapSizeToIcon(size: string): string;
38
47
  private addClickListenerOnAnchorElements;
39
48
  private emitSelectionCommands;
40
49
  private getTextSelection;
@@ -50,4 +59,8 @@ export declare class PoRichTextBodyComponent implements OnInit, OnDestroy {
50
59
  private updateModel;
51
60
  private updateValueWithModelValue;
52
61
  private verifyCursorPositionInFirefoxIEEdge;
62
+ private get bodyEl();
63
+ private updateHasValue;
64
+ private checkScrollState;
65
+ private initResizeObserver;
53
66
  }
@@ -57,6 +57,7 @@ export declare class PoRichTextToolbarComponent implements AfterViewInit {
57
57
  set readonly(value: boolean);
58
58
  get readonly(): boolean;
59
59
  get isInternetExplorer(): boolean;
60
+ disabled?: boolean;
60
61
  size: string;
61
62
  constructor();
62
63
  ngAfterViewInit(): void;
@@ -167,6 +167,7 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
167
167
  private _loading;
168
168
  private _options;
169
169
  private _size?;
170
+ private _initialSize?;
170
171
  /**
171
172
  * Nesta propriedade deve ser definido uma coleção de objetos que implementam a interface `PoSelectOption`,
172
173
  * ou uma coleção de objetos dentro de grupos diferentes, que seriam da interface `PoSelectOptionGroup`.
@@ -287,6 +288,7 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
287
288
  labelTextWrap: import("@angular/core").InputSignal<boolean>;
288
289
  constructor();
289
290
  ngOnChanges(changes: SimpleChanges): void;
291
+ protected onThemeChange(): void;
290
292
  /**
291
293
  * Função que atribui foco ao componente.
292
294
  *
@@ -355,4 +357,5 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
355
357
  private transformInArray;
356
358
  private separateOptions;
357
359
  private validateOptions;
360
+ private applySizeBasedOnA11y;
358
361
  }
@@ -89,6 +89,7 @@ export declare class PoSwitchComponent extends PoFieldModel<any> implements Vali
89
89
  private _loading;
90
90
  private _formatModel;
91
91
  private _size?;
92
+ private _initialSize?;
92
93
  private statusChangesSubscription;
93
94
  /**
94
95
  *
@@ -299,6 +300,7 @@ export declare class PoSwitchComponent extends PoFieldModel<any> implements Vali
299
300
  onWriteValue(value: any): void;
300
301
  validate(control: AbstractControl): ValidationErrors | null;
301
302
  ngAfterViewInit(): void;
303
+ protected onThemeChange(): void;
302
304
  private setControl;
303
305
  mapSizeToIcon(size: string): string;
304
306
  getErrorPattern(): string;
@@ -332,4 +334,5 @@ export declare class PoSwitchComponent extends PoFieldModel<any> implements Vali
332
334
  * ```
333
335
  */
334
336
  showAdditionalHelp(): boolean;
337
+ private applySizeBasedOnA11y;
335
338
  }
@@ -254,6 +254,7 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
254
254
  keydown: EventEmitter<KeyboardEvent>;
255
255
  displayAdditionalHelp: boolean;
256
256
  private _disabled;
257
+ private _loading;
257
258
  private _maxlength;
258
259
  private _minlength;
259
260
  private _placeholder;
@@ -261,6 +262,7 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
261
262
  private _required;
262
263
  private _rows;
263
264
  private _size?;
265
+ private _initialSize?;
264
266
  private modelLastUpdate;
265
267
  private onChangePropagate;
266
268
  private validatorChange;
@@ -280,6 +282,17 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
280
282
  */
281
283
  set disabled(disabled: boolean);
282
284
  get disabled(): boolean;
285
+ /**
286
+ * @optional
287
+ *
288
+ * @description
289
+ * Exibe um ícone de carregamento no lado direito do campo para sinalizar que uma operação está em andamento.
290
+ *
291
+ * @default `false`
292
+ */
293
+ set loading(value: boolean);
294
+ get loading(): boolean;
295
+ get isDisabled(): boolean;
283
296
  /**
284
297
  * @optional
285
298
  *
@@ -356,6 +369,8 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
356
369
  set size(value: string);
357
370
  get size(): string;
358
371
  constructor(cd: ChangeDetectorRef);
372
+ protected onThemeChange(): void;
373
+ protected onAfterThemeChange(): void;
359
374
  callOnChange(value: any): void;
360
375
  controlChangeModelEmitter(value: any): void;
361
376
  setDisabledState(isDisabled: boolean): void;
@@ -366,6 +381,8 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
366
381
  [key: string]: any;
367
382
  };
368
383
  writeValue(value: any): void;
384
+ protected mapSizeToIcon(size: string): string;
369
385
  protected validateModel(): void;
386
+ private applySizeBasedOnA11y;
370
387
  abstract writeValueModel(value: any): void;
371
388
  }