@po-ui/ng-components 21.4.0 → 21.6.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 +1894 -256
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/po-accordion/po-accordion-base.component.d.ts +3 -0
- package/lib/components/po-breadcrumb/po-breadcrumb-base.component.d.ts +3 -0
- package/lib/components/po-button/po-button-base.component.d.ts +3 -0
- package/lib/components/po-button-group/po-button-group-base.component.d.ts +3 -0
- package/lib/components/po-calendar/po-calendar-base.component.d.ts +3 -0
- package/lib/components/po-dropdown/po-dropdown-base.component.d.ts +3 -0
- package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts +35 -0
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-base.component.d.ts +3 -0
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields-base.component.d.ts +3 -0
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.d.ts +3 -0
- package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +45 -1
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +42 -0
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +45 -1
- package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +44 -0
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +42 -0
- package/lib/components/po-field/po-field-container/po-field-container.component.d.ts +15 -0
- package/lib/components/po-field/po-input/po-input-base.component.d.ts +44 -0
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +42 -0
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +44 -0
- package/lib/components/po-field/po-radio/po-radio.component.d.ts +3 -0
- package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +46 -1
- package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +0 -1
- package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +42 -0
- package/lib/components/po-field/po-select/po-select.component.d.ts +44 -0
- package/lib/components/po-field/po-switch/po-switch.component.d.ts +43 -0
- package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +44 -0
- package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +45 -0
- package/lib/components/po-helper/po-helper-base.component.d.ts +1 -0
- package/lib/components/po-info/po-info-base.component.d.ts +3 -0
- package/lib/components/po-list-view/po-list-view-base.component.d.ts +3 -0
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +3 -0
- package/lib/components/po-menu/po-menu-base.component.d.ts +3 -0
- package/lib/components/po-modal/po-modal-base.component.d.ts +3 -0
- package/lib/components/po-page/po-page-default/po-page-default-base.component.d.ts +3 -0
- package/lib/components/po-page/po-page-detail/po-page-detail-base.component.d.ts +3 -0
- package/lib/components/po-page/po-page-edit/po-page-edit-base.component.d.ts +3 -0
- package/lib/components/po-page/po-page-list/po-page-list-base.component.d.ts +3 -0
- package/lib/components/po-page/po-page-slide/po-page-slide-base.component.d.ts +3 -0
- package/lib/components/po-progress/po-progress-base.component.d.ts +3 -0
- package/lib/components/po-search/po-search-base.component.d.ts +3 -0
- package/lib/components/po-skeleton/enums/po-skeleton-animation.enum.d.ts +15 -0
- package/lib/components/po-skeleton/enums/po-skeleton-size.enum.d.ts +21 -0
- package/lib/components/po-skeleton/enums/po-skeleton-type.enum.d.ts +15 -0
- package/lib/components/po-skeleton/enums/po-skeleton-variant.enum.d.ts +17 -0
- package/lib/components/po-skeleton/index.d.ts +6 -0
- package/lib/components/po-skeleton/po-skeleton-base.component.d.ts +208 -0
- package/lib/components/po-skeleton/po-skeleton.component.d.ts +59 -0
- package/lib/components/po-skeleton/po-skeleton.module.d.ts +7 -0
- package/lib/components/po-table/po-table-base.component.d.ts +5 -0
- package/lib/components/po-tabs/po-tabs-base.component.d.ts +3 -0
- package/lib/components/po-toaster/po-toaster-base.component.d.ts +4 -0
- package/lib/components/po-tree-view/po-tree-view-base.component.d.ts +3 -0
- package/lib/components/po-widget/po-widget-base.component.d.ts +3 -0
- package/lib/services/po-dialog/po-dialog.component.d.ts +3 -0
- package/lib/services/po-theme/po-theme.service.d.ts +18 -6
- package/package.json +4 -4
- package/po-ui-ng-components-21.6.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 +1135 -26
- package/po-ui-ng-components-21.4.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
|
}
|
package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts
CHANGED
|
@@ -782,4 +782,39 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
782
782
|
* @default `false`
|
|
783
783
|
*/
|
|
784
784
|
invalidValue?: boolean;
|
|
785
|
+
/**
|
|
786
|
+
* Define se o título do campo será exibido de forma compacta.
|
|
787
|
+
*
|
|
788
|
+
* Quando habilitado (`true`), o modo compacto afeta o conjunto composto por:
|
|
789
|
+
* - `po-label`
|
|
790
|
+
* - `p-requirement (showRequired)`
|
|
791
|
+
* - `po-helper`
|
|
792
|
+
*
|
|
793
|
+
* Ou seja, todos os elementos relacionados ao título do campo
|
|
794
|
+
* (rótulo, indicador de obrigatoriedade e componente auxiliar) passam
|
|
795
|
+
* a seguir o comportamento de layout compacto.
|
|
796
|
+
*
|
|
797
|
+
* Também é possível definir esse comportamento de forma global,
|
|
798
|
+
* uma única vez, na folha de estilo geral da aplicação, por meio
|
|
799
|
+
* da customização dos tokens CSS:
|
|
800
|
+
*
|
|
801
|
+
* - `--field-container-title-justify`
|
|
802
|
+
* - `--field-container-title-flex`
|
|
803
|
+
*
|
|
804
|
+
* Exemplo:
|
|
805
|
+
* ```
|
|
806
|
+
* :root {
|
|
807
|
+
* --field-container-title-justify: flex-start;
|
|
808
|
+
* --field-container-title-flex: 0 1 auto;
|
|
809
|
+
* }
|
|
810
|
+
* ```
|
|
811
|
+
*
|
|
812
|
+
* Dessa forma, o layout compacto passa a ser o padrão da aplicação,
|
|
813
|
+
* sem a necessidade de definir a propriedade individualmente em cada campo.
|
|
814
|
+
*
|
|
815
|
+
* @default `false`
|
|
816
|
+
*
|
|
817
|
+
* **Compatível com todos os componentes**
|
|
818
|
+
*/
|
|
819
|
+
compactLabel?: boolean;
|
|
785
820
|
}
|
|
@@ -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
|
}
|
|
@@ -32,6 +32,8 @@ import { PoHelperOptions } from '../../po-helper';
|
|
|
32
32
|
* | `--border-color` | Cor da borda | `var(--color-neutral-dark-70)` |
|
|
33
33
|
* | `--color-unchecked` | Cor quando não selecionado | `var(--color-neutral-light-00)` |
|
|
34
34
|
* | `--color-checked` | Cor quando selecionado | `var(--color-action-default)` |
|
|
35
|
+
* | `--field-container-title-justify` | Alinhamento horizontal do título (`justify-content`) | `space-between` |
|
|
36
|
+
* | `--field-container-title-flex` | Flex do título (`flex`) | `1 auto` |
|
|
35
37
|
* | **Hover** | | |
|
|
36
38
|
* | `--color-hover` | Cor principal no estado hover | `var(--color-action-hover)` |
|
|
37
39
|
* | `--shadow-color-hover` | Cor da sombra no estado hover | `var(--color-brand-01-lighter)` |
|
|
@@ -73,6 +75,45 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
|
|
|
73
75
|
* @default `false`
|
|
74
76
|
*/
|
|
75
77
|
appendBox?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* @Input
|
|
80
|
+
*
|
|
81
|
+
* @optional
|
|
82
|
+
*
|
|
83
|
+
* @description
|
|
84
|
+
* Define se o título do campo será exibido de forma compacta.
|
|
85
|
+
*
|
|
86
|
+
* Quando habilitado (`true`), o modo compacto afeta o conjunto composto por:
|
|
87
|
+
* - `po-label`
|
|
88
|
+
* - `p-requirement (showRequired)`
|
|
89
|
+
* - `po-helper`
|
|
90
|
+
*
|
|
91
|
+
* Ou seja, todos os elementos relacionados ao título do campo
|
|
92
|
+
* (rótulo, indicador de obrigatoriedade e componente auxiliar) passam
|
|
93
|
+
* a seguir o comportamento de layout compacto.
|
|
94
|
+
*
|
|
95
|
+
* Também é possível definir esse comportamento de forma global,
|
|
96
|
+
* uma única vez, na folha de estilo geral da aplicação, por meio
|
|
97
|
+
* da customização dos tokens CSS:
|
|
98
|
+
*
|
|
99
|
+
* - `--field-container-title-justify`
|
|
100
|
+
* - `--field-container-title-flex`
|
|
101
|
+
*
|
|
102
|
+
* Exemplo:
|
|
103
|
+
*
|
|
104
|
+
* ```
|
|
105
|
+
* :root {
|
|
106
|
+
* --field-container-title-justify: flex-start;
|
|
107
|
+
* --field-container-title-flex: 0 1 auto;
|
|
108
|
+
* }
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
111
|
+
* Dessa forma, o layout compacto passa a ser o padrão da aplicação,
|
|
112
|
+
* sem a necessidade de definir a propriedade individualmente em cada campo.
|
|
113
|
+
*
|
|
114
|
+
* @default `false`
|
|
115
|
+
*/
|
|
116
|
+
compactLabel: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
76
117
|
/**
|
|
77
118
|
* @optional
|
|
78
119
|
*
|
|
@@ -140,6 +181,7 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
|
|
|
140
181
|
onTouched: any;
|
|
141
182
|
private _disabled?;
|
|
142
183
|
private _size?;
|
|
184
|
+
private _initialSize?;
|
|
143
185
|
/**
|
|
144
186
|
* @optional
|
|
145
187
|
*
|
|
@@ -168,6 +210,7 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
|
|
|
168
210
|
*
|
|
169
211
|
*/
|
|
170
212
|
set size(value: string);
|
|
213
|
+
get size(): string;
|
|
171
214
|
/**
|
|
172
215
|
* @Input
|
|
173
216
|
*
|
|
@@ -195,13 +238,14 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
|
|
|
195
238
|
* @default `false`
|
|
196
239
|
*/
|
|
197
240
|
labelTextWrap: import("@angular/core").InputSignal<boolean>;
|
|
198
|
-
get size(): string;
|
|
199
241
|
constructor(cd: ChangeDetectorRef);
|
|
242
|
+
protected onThemeChange(): void;
|
|
200
243
|
changeValue(): void;
|
|
201
244
|
checkOption(event: any, value: boolean | null | string): void;
|
|
202
245
|
setDisabledState(isDisabled: boolean): void;
|
|
203
246
|
registerOnChange(fn: any): void;
|
|
204
247
|
registerOnTouched(fn: any): void;
|
|
205
248
|
writeValue(value: any): void;
|
|
249
|
+
private applySizeBasedOnA11y;
|
|
206
250
|
protected abstract changeModelValue(value: boolean | null): any;
|
|
207
251
|
}
|
|
@@ -74,6 +74,45 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
|
|
|
74
74
|
* @default `false`
|
|
75
75
|
*/
|
|
76
76
|
autoFocus: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* @Input
|
|
79
|
+
*
|
|
80
|
+
* @optional
|
|
81
|
+
*
|
|
82
|
+
* @description
|
|
83
|
+
* Define se o título do campo será exibido de forma compacta.
|
|
84
|
+
*
|
|
85
|
+
* Quando habilitado (`true`), o modo compacto afeta o conjunto composto por:
|
|
86
|
+
* - `po-label`
|
|
87
|
+
* - `p-requirement (showRequired)`
|
|
88
|
+
* - `po-helper`
|
|
89
|
+
*
|
|
90
|
+
* Ou seja, todos os elementos relacionados ao título do campo
|
|
91
|
+
* (rótulo, indicador de obrigatoriedade e componente auxiliar) passam
|
|
92
|
+
* a seguir o comportamento de layout compacto.
|
|
93
|
+
*
|
|
94
|
+
* Também é possível definir esse comportamento de forma global,
|
|
95
|
+
* uma única vez, na folha de estilo geral da aplicação, por meio
|
|
96
|
+
* da customização dos tokens CSS:
|
|
97
|
+
*
|
|
98
|
+
* - `--field-container-title-justify`
|
|
99
|
+
* - `--field-container-title-flex`
|
|
100
|
+
*
|
|
101
|
+
* Exemplo:
|
|
102
|
+
*
|
|
103
|
+
* ```
|
|
104
|
+
* :root {
|
|
105
|
+
* --field-container-title-justify: flex-start;
|
|
106
|
+
* --field-container-title-flex: 0 1 auto;
|
|
107
|
+
* }
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* Dessa forma, o layout compacto passa a ser o padrão da aplicação,
|
|
111
|
+
* sem a necessidade de definir a propriedade individualmente em cada campo.
|
|
112
|
+
*
|
|
113
|
+
* @default `false`
|
|
114
|
+
*/
|
|
115
|
+
compactLabel: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
77
116
|
/** Nome dos checkboxes */
|
|
78
117
|
name: string;
|
|
79
118
|
/** Texto de apoio do campo */
|
|
@@ -200,6 +239,7 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
|
|
|
200
239
|
private _options?;
|
|
201
240
|
private _required?;
|
|
202
241
|
private _size?;
|
|
242
|
+
private _initialSize?;
|
|
203
243
|
/**
|
|
204
244
|
* @optional
|
|
205
245
|
*
|
|
@@ -287,6 +327,7 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
|
|
|
287
327
|
*/
|
|
288
328
|
set size(value: string);
|
|
289
329
|
get size(): string;
|
|
330
|
+
protected onThemeChange(): void;
|
|
290
331
|
changeValue(): void;
|
|
291
332
|
checkIndeterminate(): any;
|
|
292
333
|
checkOption(value: PoCheckboxGroupOption): void;
|
|
@@ -306,4 +347,5 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
|
|
|
306
347
|
private isInvalidIndeterminate;
|
|
307
348
|
private removeDuplicatedOptions;
|
|
308
349
|
private setCheckboxGroupOptionsView;
|
|
350
|
+
private applySizeBasedOnA11y;
|
|
309
351
|
}
|
|
@@ -46,7 +46,9 @@ import { PoHelperOptions } from '../../po-helper';
|
|
|
46
46
|
* | `--color` | Cor principal do Combo | `var(--color-neutral-dark-70)` |
|
|
47
47
|
* | `--background` | Cor de background | `var(--color-neutral-light-05)` |
|
|
48
48
|
* | `--border-radius` | Contém o valor do raio dos cantos do elemento | `var(--border-width-lg)` |
|
|
49
|
-
* | `--min-width` | Largura mínima do combo | `150px`
|
|
49
|
+
* | `--min-width` | Largura mínima do combo | `150px` |
|
|
50
|
+
* | `--field-container-title-justify` | Alinhamento horizontal do título (`justify-content`) | `space-between` |
|
|
51
|
+
* | `--field-container-title-flex` | Flex do título (`flex`) | `1 auto` |
|
|
50
52
|
* | **Hover** | | |
|
|
51
53
|
* | `--color-hover` | Cor principal no estado hover | `var(--color-action-hover)` |
|
|
52
54
|
* | `--background-hover` | Cor de background no estado hover | `var(--color-brand-01-lightest)` |
|
|
@@ -100,6 +102,45 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
100
102
|
* @default `false`
|
|
101
103
|
*/
|
|
102
104
|
autoFocus: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* @Input
|
|
107
|
+
*
|
|
108
|
+
* @optional
|
|
109
|
+
*
|
|
110
|
+
* @description
|
|
111
|
+
* Define se o título do campo será exibido de forma compacta.
|
|
112
|
+
*
|
|
113
|
+
* Quando habilitado (`true`), o modo compacto afeta o conjunto composto por:
|
|
114
|
+
* - `po-label`
|
|
115
|
+
* - `p-requirement (showRequired)`
|
|
116
|
+
* - `po-helper`
|
|
117
|
+
*
|
|
118
|
+
* Ou seja, todos os elementos relacionados ao título do campo
|
|
119
|
+
* (rótulo, indicador de obrigatoriedade e componente auxiliar) passam
|
|
120
|
+
* a seguir o comportamento de layout compacto.
|
|
121
|
+
*
|
|
122
|
+
* Também é possível definir esse comportamento de forma global,
|
|
123
|
+
* uma única vez, na folha de estilo geral da aplicação, por meio
|
|
124
|
+
* da customização dos tokens CSS:
|
|
125
|
+
*
|
|
126
|
+
* - `--field-container-title-justify`
|
|
127
|
+
* - `--field-container-title-flex`
|
|
128
|
+
*
|
|
129
|
+
* Exemplo:
|
|
130
|
+
*
|
|
131
|
+
* ```
|
|
132
|
+
* :root {
|
|
133
|
+
* --field-container-title-justify: flex-start;
|
|
134
|
+
* --field-container-title-flex: 0 1 auto;
|
|
135
|
+
* }
|
|
136
|
+
* ```
|
|
137
|
+
*
|
|
138
|
+
* Dessa forma, o layout compacto passa a ser o padrão da aplicação,
|
|
139
|
+
* sem a necessidade de definir a propriedade individualmente em cada campo.
|
|
140
|
+
*
|
|
141
|
+
* @default `false`
|
|
142
|
+
*/
|
|
143
|
+
compactLabel: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
103
144
|
/** Label no componente. */
|
|
104
145
|
label?: string;
|
|
105
146
|
/** Texto de apoio para o campo. */
|
|
@@ -392,6 +433,7 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
392
433
|
private _placeholder;
|
|
393
434
|
private _required?;
|
|
394
435
|
private _size?;
|
|
436
|
+
private _initialSize?;
|
|
395
437
|
private _sort?;
|
|
396
438
|
private language;
|
|
397
439
|
private _infiniteScrollDistance?;
|
|
@@ -628,6 +670,7 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
628
670
|
constructor(languageService: PoLanguageService, changeDetector: ChangeDetectorRef);
|
|
629
671
|
get isOptionGroupList(): boolean;
|
|
630
672
|
ngOnInit(): void;
|
|
673
|
+
protected onThemeChange(): void;
|
|
631
674
|
onInitService(): void;
|
|
632
675
|
setService(service: PoComboFilter | string): void;
|
|
633
676
|
compareMethod(search: string, option: PoComboOption | PoComboGroup, filterMode: PoComboFilterMode): any;
|
|
@@ -675,6 +718,7 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
675
718
|
private updateModel;
|
|
676
719
|
private updateSelectedValueWithOldOption;
|
|
677
720
|
private updateHasNext;
|
|
721
|
+
private applySizeBasedOnA11y;
|
|
678
722
|
abstract setInputValue(value: any): void;
|
|
679
723
|
abstract applyFilter(value: string): void;
|
|
680
724
|
abstract getObjectByValue(value: string): void;
|
|
@@ -64,6 +64,8 @@ import { PoHelperOptions } from '../../po-helper';
|
|
|
64
64
|
* | `--background` | Cor de background | `var(--color-neutral-light-05)` |
|
|
65
65
|
* | `--padding` | Preenchimento | `0 0.5rem` |
|
|
66
66
|
* | `--text-color` | Cor do texto | `var(--color-neutral-dark-90)` |
|
|
67
|
+
* | `--field-container-title-justify` | Alinhamento horizontal do título (`justify-content`) | `space-between` |
|
|
68
|
+
* | `--field-container-title-flex` | Flex do título (`flex`) | `1 auto` |
|
|
67
69
|
* | **Hover** | | |
|
|
68
70
|
* | `--color-hover` | Cor principal no estado hover | `var(--color-brand-01-dark)` |
|
|
69
71
|
* | `--background-hover` | Cor de background no estado hover | `var(--color-brand-01-lightest)` |
|
|
@@ -107,6 +109,45 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
107
109
|
* @default `false`
|
|
108
110
|
*/
|
|
109
111
|
autoFocus: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* @Input
|
|
114
|
+
*
|
|
115
|
+
* @optional
|
|
116
|
+
*
|
|
117
|
+
* @description
|
|
118
|
+
* Define se o título do campo será exibido de forma compacta.
|
|
119
|
+
*
|
|
120
|
+
* Quando habilitado (`true`), o modo compacto afeta o conjunto composto por:
|
|
121
|
+
* - `po-label`
|
|
122
|
+
* - `p-requirement (showRequired)`
|
|
123
|
+
* - `po-helper`
|
|
124
|
+
*
|
|
125
|
+
* Ou seja, todos os elementos relacionados ao título do campo
|
|
126
|
+
* (rótulo, indicador de obrigatoriedade e componente auxiliar) passam
|
|
127
|
+
* a seguir o comportamento de layout compacto.
|
|
128
|
+
*
|
|
129
|
+
* Também é possível definir esse comportamento de forma global,
|
|
130
|
+
* uma única vez, na folha de estilo geral da aplicação, por meio
|
|
131
|
+
* da customização dos tokens CSS:
|
|
132
|
+
*
|
|
133
|
+
* - `--field-container-title-justify`
|
|
134
|
+
* - `--field-container-title-flex`
|
|
135
|
+
*
|
|
136
|
+
* Exemplo:
|
|
137
|
+
*
|
|
138
|
+
* ```
|
|
139
|
+
* :root {
|
|
140
|
+
* --field-container-title-justify: flex-start;
|
|
141
|
+
* --field-container-title-flex: 0 1 auto;
|
|
142
|
+
* }
|
|
143
|
+
* ```
|
|
144
|
+
*
|
|
145
|
+
* Dessa forma, o layout compacto passa a ser o padrão da aplicação,
|
|
146
|
+
* sem a necessidade de definir a propriedade individualmente em cada campo.
|
|
147
|
+
*
|
|
148
|
+
* @default `false`
|
|
149
|
+
*/
|
|
150
|
+
compactLabel: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
110
151
|
/**
|
|
111
152
|
* @optional
|
|
112
153
|
*
|
|
@@ -249,6 +290,7 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
249
290
|
private _loading?;
|
|
250
291
|
private previousValue;
|
|
251
292
|
private _size?;
|
|
293
|
+
private _initialSize?;
|
|
252
294
|
private subscription;
|
|
253
295
|
private _date;
|
|
254
296
|
/**
|
|
@@ -401,6 +443,7 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
401
443
|
get date(): any;
|
|
402
444
|
ngOnInit(): void;
|
|
403
445
|
ngOnDestroy(): void;
|
|
446
|
+
protected onThemeChange(): void;
|
|
404
447
|
getDateFromString(dateString: string): Date;
|
|
405
448
|
formatToDate(value: Date): string;
|
|
406
449
|
controlModel(date: Date): void;
|
|
@@ -416,6 +459,7 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
416
459
|
protected validateModel(model: any): void;
|
|
417
460
|
protected buildMask(format?: string): PoMask;
|
|
418
461
|
formatTimezoneAndHour(offset: number): void;
|
|
462
|
+
private applySizeBasedOnA11y;
|
|
419
463
|
abstract writeValue(value: any): void;
|
|
420
464
|
abstract refreshValue(value: Date): void;
|
|
421
465
|
}
|
|
@@ -93,6 +93,45 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
93
93
|
* @default `false`
|
|
94
94
|
*/
|
|
95
95
|
autoFocus: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* @Input
|
|
98
|
+
*
|
|
99
|
+
* @optional
|
|
100
|
+
*
|
|
101
|
+
* @description
|
|
102
|
+
* Define se o título do campo será exibido de forma compacta.
|
|
103
|
+
*
|
|
104
|
+
* Quando habilitado (`true`), o modo compacto afeta o conjunto composto por:
|
|
105
|
+
* - `po-label`
|
|
106
|
+
* - `p-requirement (showRequired)`
|
|
107
|
+
* - `po-helper`
|
|
108
|
+
*
|
|
109
|
+
* Ou seja, todos os elementos relacionados ao título do campo
|
|
110
|
+
* (rótulo, indicador de obrigatoriedade e componente auxiliar) passam
|
|
111
|
+
* a seguir o comportamento de layout compacto.
|
|
112
|
+
*
|
|
113
|
+
* Também é possível definir esse comportamento de forma global,
|
|
114
|
+
* uma única vez, na folha de estilo geral da aplicação, por meio
|
|
115
|
+
* da customização dos tokens CSS:
|
|
116
|
+
*
|
|
117
|
+
* - `--field-container-title-justify`
|
|
118
|
+
* - `--field-container-title-flex`
|
|
119
|
+
*
|
|
120
|
+
* Exemplo:
|
|
121
|
+
*
|
|
122
|
+
* ```
|
|
123
|
+
* :root {
|
|
124
|
+
* --field-container-title-justify: flex-start;
|
|
125
|
+
* --field-container-title-flex: 0 1 auto;
|
|
126
|
+
* }
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
129
|
+
* Dessa forma, o layout compacto passa a ser o padrão da aplicação,
|
|
130
|
+
* sem a necessidade de definir a propriedade individualmente em cada campo.
|
|
131
|
+
*
|
|
132
|
+
* @default `false`
|
|
133
|
+
*/
|
|
134
|
+
compactLabel: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
96
135
|
/**
|
|
97
136
|
* @optional
|
|
98
137
|
*
|
|
@@ -233,6 +272,7 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
233
272
|
private _startDate?;
|
|
234
273
|
private _locale?;
|
|
235
274
|
private _size?;
|
|
275
|
+
private _initialSize?;
|
|
236
276
|
private _placeholder;
|
|
237
277
|
private language;
|
|
238
278
|
private onChangeModel;
|
|
@@ -414,6 +454,7 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
414
454
|
get locale(): string;
|
|
415
455
|
constructor(changeDetector: ChangeDetectorRef, poDateService: PoDateService, languageService: PoLanguageService);
|
|
416
456
|
ngOnDestroy(): void;
|
|
457
|
+
protected onThemeChange(): void;
|
|
417
458
|
setDisabledState(isDisabled: boolean): void;
|
|
418
459
|
mapSizeToIcon(size: string): string;
|
|
419
460
|
registerOnChange(func: any): void;
|
|
@@ -434,6 +475,7 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
434
475
|
private isDateRangeObject;
|
|
435
476
|
private requiredDateRangeFailed;
|
|
436
477
|
private dateIsValid;
|
|
478
|
+
private applySizeBasedOnA11y;
|
|
437
479
|
protected abstract resetDateRangeInputValidation(): void;
|
|
438
480
|
protected abstract updateScreenByModel(dateRange: PoDatepickerRange): any;
|
|
439
481
|
}
|
|
@@ -46,6 +46,21 @@ export declare class PoFieldContainerComponent implements OnInit, OnChanges {
|
|
|
46
46
|
showRequired: boolean;
|
|
47
47
|
/** Define o tamanho do componente. */
|
|
48
48
|
size?: string;
|
|
49
|
+
/**
|
|
50
|
+
* @Input
|
|
51
|
+
*
|
|
52
|
+
* Define se o título do campo será exibido de forma compacta.
|
|
53
|
+
*
|
|
54
|
+
* Quando habilitado (`true`), o modo compacto afeta o conjunto composto por:
|
|
55
|
+
* - `po-label`
|
|
56
|
+
* - `p-requirement (showRequired)`
|
|
57
|
+
* - `po-helper`
|
|
58
|
+
*
|
|
59
|
+
* Ou seja, todos os elementos relacionados ao título do campo
|
|
60
|
+
* (rótulo, indicador de obrigatoriedade e componente auxiliar) passam
|
|
61
|
+
* a seguir o comportamento de layout compacto.
|
|
62
|
+
*/
|
|
63
|
+
compactLabel: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
49
64
|
constructor(cdr: ChangeDetectorRef);
|
|
50
65
|
ngOnInit(): void;
|
|
51
66
|
ngOnChanges(changes: SimpleChanges): void;
|