@po-ui/ng-components 19.6.0 → 19.8.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 +25435 -24062
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-button/enums/po-button-kind.enum.d.ts +15 -0
- package/lib/components/po-button/enums/po-button-size.enum.d.ts +13 -0
- package/lib/components/po-button/index.d.ts +3 -1
- package/lib/components/po-button/po-button-base.component.d.ts +26 -24
- package/lib/components/po-button/po-button.component.d.ts +4 -0
- package/lib/components/po-button-group/{po-button-group-toggle.enum.d.ts → enums/po-button-group-toggle.enum.d.ts} +1 -1
- package/lib/components/po-button-group/index.d.ts +1 -1
- package/lib/components/po-button-group/po-button-group-base.component.d.ts +25 -4
- package/lib/components/po-button-group/po-button-group.component.d.ts +3 -1
- package/lib/components/po-dropdown/po-dropdown-base.component.d.ts +21 -1
- package/lib/components/po-dropdown/po-dropdown.component.d.ts +3 -1
- package/lib/components/po-dynamic/index.d.ts +6 -6
- package/lib/components/po-dynamic/po-dynamic-field.interface.d.ts +1 -1
- package/lib/components/po-dynamic/po-dynamic-form/{po-dynamic-form-field.interface.d.ts → interfaces/po-dynamic-form-field.interface.d.ts} +19 -8
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-base.component.d.ts +22 -2
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-field-internal.interface.d.ts +1 -1
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields-base.component.d.ts +9 -4
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.d.ts +4 -2
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-load/po-dynamic-form-load.interface.d.ts +2 -2
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-load/po-dynamic-form-load.service.d.ts +1 -1
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-validation/po-dynamic-form-field-validation.interface.d.ts +1 -1
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-validation/po-dynamic-form-validation.interface.d.ts +2 -2
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-validation/po-dynamic-form-validation.service.d.ts +1 -1
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.d.ts +4 -2
- package/lib/components/po-dynamic/shared/po-dynamic-shared-base.d.ts +1 -1
- package/lib/components/po-field/index.d.ts +6 -6
- package/lib/components/po-field/po-checkbox/enums/po-checkbox-size.enum.d.ts +13 -0
- package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +10 -5
- package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +4 -2
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +22 -1
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +3 -1
- package/lib/components/po-field/po-clean/po-clean-base.component.d.ts +4 -2
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +22 -3
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +6 -4
- package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +21 -2
- package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +3 -1
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +21 -2
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +6 -4
- package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +3 -2
- package/lib/components/po-field/po-email/po-email.component.d.ts +3 -1
- package/lib/components/po-field/po-input/po-input-base.component.d.ts +21 -2
- package/lib/components/po-field/po-input/po-input.component.d.ts +3 -1
- package/lib/components/po-field/po-input-generic/po-input-generic.d.ts +4 -3
- package/lib/components/po-field/po-login/po-login.component.d.ts +3 -1
- package/lib/components/po-field/po-lookup/interfaces/po-lookup-advanced-filter.interface.d.ts +1 -1
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +23 -4
- package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts +3 -1
- package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.d.ts +1 -1
- package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +3 -1
- package/lib/components/po-field/po-lookup/services/po-lookup-modal.service.d.ts +3 -2
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +25 -6
- package/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.d.ts +4 -2
- package/lib/components/po-field/po-multiselect/po-multiselect-filter.service.d.ts +2 -2
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +4 -2
- package/lib/components/po-field/po-number/po-number-base.component.d.ts +3 -1
- package/lib/components/po-field/po-number/po-number.component.d.ts +4 -2
- package/lib/components/po-field/po-password/po-password.component.d.ts +3 -1
- package/lib/components/po-field/po-radio/enums/po-radio-size.enum.d.ts +13 -0
- package/lib/components/po-field/po-radio/po-radio.component.d.ts +7 -13
- package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +14 -2
- package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +3 -1
- package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +21 -2
- package/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.d.ts +4 -2
- package/lib/components/po-field/po-rich-text/po-rich-text-image-modal/po-rich-text-image-modal.component.d.ts +3 -2
- package/lib/components/po-field/po-rich-text/po-rich-text-link-modal/po-rich-text-link-modal.component.d.ts +2 -1
- package/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.d.ts +2 -1
- package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +3 -1
- package/lib/components/po-field/po-select/po-select.component.d.ts +22 -3
- package/lib/components/po-field/po-switch/po-switch.component.d.ts +23 -3
- package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +37 -2
- package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +3 -1
- package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +22 -3
- package/lib/components/po-field/po-upload/po-upload.component.d.ts +3 -1
- package/lib/components/po-field/po-url/po-url.component.d.ts +3 -1
- package/lib/components/po-info/po-info.module.d.ts +2 -1
- package/lib/components/po-list-view/po-list-view-base.component.d.ts +21 -2
- package/lib/components/po-list-view/po-list-view.component.d.ts +3 -1
- package/lib/components/po-listbox/po-item-list/po-item-list-base.component.d.ts +4 -2
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +7 -2
- package/lib/components/po-listbox/po-listbox.component.d.ts +3 -1
- package/lib/components/po-listbox/po-search-list/po-search-list.component.d.ts +3 -1
- package/lib/components/po-loading/po-loading-base.component.d.ts +4 -4
- package/lib/components/po-loading/po-loading-overlay/po-loading-overlay-base.component.d.ts +4 -4
- package/lib/components/po-menu/po-menu-base.component.d.ts +21 -2
- package/lib/components/po-menu/po-menu-filter/po-menu-filter.component.d.ts +2 -1
- package/lib/components/po-menu/po-menu.component.d.ts +3 -1
- package/lib/components/po-modal/po-modal-base.component.d.ts +21 -2
- package/lib/components/po-modal/po-modal.component.d.ts +3 -1
- package/lib/components/po-page/index.d.ts +3 -3
- package/lib/components/po-page/{po-page-action.interface.d.ts → interfaces/po-page-action.interface.d.ts} +1 -1
- package/lib/components/po-page/{po-page.interface.d.ts → interfaces/po-page.interface.d.ts} +1 -1
- package/lib/components/po-page/po-page-default/po-page-default-base.component.d.ts +22 -3
- package/lib/components/po-page/po-page-default/po-page-default.component.d.ts +4 -2
- package/lib/components/po-page/po-page-default/po-page-default.interface.d.ts +2 -2
- package/lib/components/po-page/po-page-detail/po-page-detail-base.component.d.ts +21 -2
- package/lib/components/po-page/po-page-edit/po-page-edit-base.component.d.ts +21 -2
- package/lib/components/po-page/po-page-list/po-page-list-base.component.d.ts +23 -4
- package/lib/components/po-page/po-page-list/po-page-list.component.d.ts +6 -4
- package/lib/components/po-page/po-page-slide/po-page-slide-base.component.d.ts +21 -1
- package/lib/components/po-page/po-page-slide/po-page-slide.component.d.ts +5 -3
- package/lib/components/po-popup/po-popup-base.component.d.ts +21 -1
- package/lib/components/po-popup/po-popup.component.d.ts +4 -2
- package/lib/components/po-progress/enums/po-progress-size.enum.d.ts +3 -1
- package/lib/components/po-progress/po-progress-base.component.d.ts +24 -4
- package/lib/components/po-progress/po-progress.component.d.ts +3 -0
- package/lib/components/po-search/index.d.ts +1 -1
- package/lib/components/po-search/po-search-base.component.d.ts +23 -4
- package/lib/components/po-search/po-search.component.d.ts +3 -1
- package/lib/components/po-table/interfaces/po-table-column.interface.d.ts +1 -1
- package/lib/components/po-table/interfaces/po-table-filtered-items-params.interface.d.ts +2 -0
- package/lib/components/po-table/po-table-base.component.d.ts +22 -3
- package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +21 -2
- package/lib/components/po-table/po-table-detail/po-table-detail.component.d.ts +23 -4
- package/lib/components/po-table/po-table-list-manager/po-table-list-manager.component.d.ts +22 -3
- package/lib/components/po-table/po-table-show-subtitle/po-table-show-subtitle.component.d.ts +3 -1
- package/lib/components/po-table/po-table-subtitle-footer/po-table-subtitle-footer.component.d.ts +3 -1
- package/lib/components/po-table/po-table.component.d.ts +4 -2
- package/lib/components/po-tabs/po-tab-dropdown/po-tab-dropdown.component.d.ts +3 -2
- package/lib/components/po-tabs/po-tabs-base.component.d.ts +25 -3
- package/lib/components/po-tabs/po-tabs.component.d.ts +3 -1
- package/lib/components/po-toaster/po-toaster-base.component.d.ts +23 -3
- package/lib/components/po-toaster/po-toaster.component.d.ts +5 -3
- package/lib/components/po-tree-view/po-tree-view-base.component.d.ts +21 -1
- package/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.d.ts +3 -2
- package/lib/components/po-tree-view/po-tree-view-item-header/po-tree-view-item-header.component.d.ts +2 -1
- package/lib/components/po-tree-view/po-tree-view.component.d.ts +3 -1
- package/lib/enums/po-field-size.enum.d.ts +13 -0
- package/lib/services/po-dialog/index.d.ts +1 -1
- package/lib/services/po-dialog/interfaces/po-dialog.interface.d.ts +11 -0
- package/lib/services/po-dialog/po-dialog-base.service.d.ts +1 -1
- package/lib/services/po-dialog/po-dialog.component.d.ts +11 -6
- package/lib/services/po-dialog/po-dialog.service.d.ts +1 -1
- package/lib/services/po-notification/po-notification-base.service.d.ts +4 -1
- package/lib/services/po-notification/po-notification.interface.d.ts +11 -0
- package/lib/services/po-notification/po-notification.service.d.ts +4 -2
- package/lib/services/po-theme/enum/po-theme-a11y.enum.d.ts +14 -10
- package/lib/services/po-theme/enum/po-theme-type.enum.d.ts +5 -8
- package/lib/services/po-theme/interfaces/po-theme.interface.d.ts +19 -10
- package/lib/services/po-theme/po-theme.service.d.ts +33 -7
- package/lib/utils/util.d.ts +9 -0
- package/package.json +4 -4
- package/po-ui-ng-components-19.8.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/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/lib/components/po-button/po-button-kind.enum.d.ts +0 -5
- package/lib/components/po-button/po-button-size.enum.d.ts +0 -4
- package/lib/components/po-field/po-checkbox/po-checkbox-size.enum.d.ts +0 -13
- package/lib/components/po-field/po-radio/po-radio-size.enum.d.ts +0 -11
- package/po-ui-ng-components-19.6.0.tgz +0 -0
- /package/lib/components/po-button/{po-button-type.enum.d.ts → enums/po-button-type.enum.d.ts} +0 -0
- /package/lib/components/po-dynamic/{po-dynamic-field-force-component.enum.d.ts → enums/po-dynamic-field-force-component.enum.d.ts} +0 -0
- /package/lib/components/po-dynamic/{po-dynamic-field-type.enum.d.ts → enums/po-dynamic-field-type.enum.d.ts} +0 -0
- /package/lib/components/po-dynamic/po-dynamic-form/{po-dynamic-form-response.interface.d.ts → interfaces/po-dynamic-form-response.interface.d.ts} +0 -0
- /package/lib/components/po-field/po-combo/{po-combo-filter-mode.enum.d.ts → enums/po-combo-filter-mode.enum.d.ts} +0 -0
- /package/lib/components/po-field/po-multiselect/{po-multiselect-filter-mode.enum.d.ts → enums/po-multiselect-filter-mode.enum.d.ts} +0 -0
- /package/lib/components/po-field/po-multiselect/{po-multiselect-filter.interface.d.ts → interfaces/po-multiselect-filter.interface.d.ts} +0 -0
- /package/lib/components/po-field/po-multiselect/{po-multiselect-literals.interface.d.ts → interfaces/po-multiselect-literals.interface.d.ts} +0 -0
- /package/lib/components/po-field/po-multiselect/{po-multiselect-option.interface.d.ts → interfaces/po-multiselect-option.interface.d.ts} +0 -0
- /package/lib/components/po-loading/{po-loading-icon → enums}/po-loading-icon-size-enum.d.ts +0 -0
- /package/lib/components/po-page/{po-page-filter.interface.d.ts → interfaces/po-page-filter.interface.d.ts} +0 -0
- /package/lib/components/po-search/{enum → enums}/po-search-filter-mode.enum.d.ts +0 -0
- /package/lib/services/po-dialog/{po-dialog.enum.d.ts → enums/po-dialog.enum.d.ts} +0 -0
package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { PoThemeService } from '../../../services';
|
|
2
3
|
import { PoLanguageService } from '../../../services/po-language/po-language.service';
|
|
3
4
|
import { PoCheckboxGroupOption } from '../../po-field/po-checkbox-group/interfaces/po-checkbox-group-option.interface';
|
|
4
5
|
import { PoPageSlideComponent } from '../../po-page';
|
|
@@ -24,6 +25,7 @@ export declare const poTableColumnManagerLiteralsDefault: {
|
|
|
24
25
|
};
|
|
25
26
|
};
|
|
26
27
|
export declare class PoTableColumnManagerComponent implements OnChanges, OnDestroy {
|
|
28
|
+
protected poThemeService: PoThemeService;
|
|
27
29
|
private renderer;
|
|
28
30
|
popover: PoPopoverComponent;
|
|
29
31
|
pageSlideColumnsManager: PoPageSlideComponent;
|
|
@@ -45,9 +47,26 @@ export declare class PoTableColumnManagerComponent implements OnChanges, OnDestr
|
|
|
45
47
|
private restoreDefaultEvent;
|
|
46
48
|
private lastEmittedValue;
|
|
47
49
|
private minColumns;
|
|
50
|
+
private _componentsSize?;
|
|
51
|
+
/**
|
|
52
|
+
* @optional
|
|
53
|
+
*
|
|
54
|
+
* @description
|
|
55
|
+
*
|
|
56
|
+
* Define o tamanho dos componentes de formulário no table:
|
|
57
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
58
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
59
|
+
*
|
|
60
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
61
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
62
|
+
*
|
|
63
|
+
* @default `medium`
|
|
64
|
+
*/
|
|
65
|
+
set componentsSize(value: string);
|
|
66
|
+
get componentsSize(): string;
|
|
48
67
|
set maxColumns(value: number);
|
|
49
68
|
get maxColumns(): number;
|
|
50
|
-
constructor(renderer: Renderer2, languageService: PoLanguageService);
|
|
69
|
+
constructor(poThemeService: PoThemeService, renderer: Renderer2, languageService: PoLanguageService);
|
|
51
70
|
ngOnChanges(changes: SimpleChanges): void;
|
|
52
71
|
ngOnDestroy(): void;
|
|
53
72
|
checkChanges(event?: Array<string>, emit?: boolean): void;
|
|
@@ -87,6 +106,6 @@ export declare class PoTableColumnManagerComponent implements OnChanges, OnDestr
|
|
|
87
106
|
private stringify;
|
|
88
107
|
private removePropertyFixed;
|
|
89
108
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoTableColumnManagerComponent, never>;
|
|
90
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoTableColumnManagerComponent, "po-table-column-manager", never, { "columns": { "alias": "p-columns"; "required": false; }; "target": { "alias": "p-target"; "required": false; }; "colunsDefault": { "alias": "p-columns-default"; "required": false; }; "lastVisibleColumnsSelected": { "alias": "p-last-visible-columns-selected"; "required": false; }; "hideActionFixedColumns": { "alias": "p-hide-action-fixed-columns"; "required": false; }; "maxColumns": { "alias": "p-max-columns"; "required": false; }; }, { "visibleColumnsChange": "p-visible-columns-change"; "changeVisibleColumns": "p-change-visible-columns"; "initialColumns": "p-initial-columns"; }, never, never, false, never>;
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoTableColumnManagerComponent, "po-table-column-manager", never, { "columns": { "alias": "p-columns"; "required": false; }; "target": { "alias": "p-target"; "required": false; }; "colunsDefault": { "alias": "p-columns-default"; "required": false; }; "lastVisibleColumnsSelected": { "alias": "p-last-visible-columns-selected"; "required": false; }; "hideActionFixedColumns": { "alias": "p-hide-action-fixed-columns"; "required": false; }; "componentsSize": { "alias": "p-components-size"; "required": false; }; "maxColumns": { "alias": "p-max-columns"; "required": false; }; }, { "visibleColumnsChange": "p-visible-columns-change"; "changeVisibleColumns": "p-change-visible-columns"; "initialColumns": "p-initial-columns"; }, never, never, false, never>;
|
|
91
110
|
static ngAcceptInputType_hideActionFixedColumns: any;
|
|
92
111
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import { DecimalPipe } from '@angular/common';
|
|
3
|
-
import {
|
|
2
|
+
import { EventEmitter } from '@angular/core';
|
|
3
|
+
import { PoThemeService } from '../../../services';
|
|
4
4
|
import { PoTableDetailColumn } from './po-table-detail-column.interface';
|
|
5
|
+
import { PoTableDetail } from './po-table-detail.interface';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* @docsPrivate
|
|
@@ -11,7 +12,25 @@ import * as i0 from "@angular/core";
|
|
|
11
12
|
* Componente responsável por apresentar o detalhe de cada linha da tabela.
|
|
12
13
|
*/
|
|
13
14
|
export declare class PoTableDetailComponent {
|
|
15
|
+
protected poThemeService: PoThemeService;
|
|
14
16
|
private decimalPipe;
|
|
17
|
+
private _componentsSize?;
|
|
18
|
+
/**
|
|
19
|
+
* @optional
|
|
20
|
+
*
|
|
21
|
+
* @description
|
|
22
|
+
*
|
|
23
|
+
* Define o tamanho dos componentes de formulário no table:
|
|
24
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
25
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
26
|
+
*
|
|
27
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
28
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
29
|
+
*
|
|
30
|
+
* @default `medium`
|
|
31
|
+
*/
|
|
32
|
+
set componentsSize(value: string);
|
|
33
|
+
get componentsSize(): string;
|
|
15
34
|
/**
|
|
16
35
|
* Lista de itens do _detail_ da tabela.
|
|
17
36
|
*/
|
|
@@ -39,7 +58,7 @@ export declare class PoTableDetailComponent {
|
|
|
39
58
|
*/
|
|
40
59
|
set detail(value: PoTableDetail);
|
|
41
60
|
get detail(): PoTableDetail;
|
|
42
|
-
constructor(decimalPipe: DecimalPipe);
|
|
61
|
+
constructor(poThemeService: PoThemeService, decimalPipe: DecimalPipe);
|
|
43
62
|
get detailColumns(): Array<PoTableDetailColumn>;
|
|
44
63
|
get typeHeaderInline(): boolean;
|
|
45
64
|
get typeHeaderTop(): boolean;
|
|
@@ -49,5 +68,5 @@ export declare class PoTableDetailComponent {
|
|
|
49
68
|
onSelectRow(item: any): void;
|
|
50
69
|
private returnPoTableDetailObject;
|
|
51
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoTableDetailComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoTableDetailComponent, "po-table-detail", never, { "items": { "alias": "p-items"; "required": false; }; "parentRow": { "alias": "p-parent-row"; "required": false; }; "isSelectable": { "alias": "p-selectable"; "required": false; }; "detail": { "alias": "p-detail"; "required": false; }; }, { "selectRow": "p-select-row"; }, never, never, false, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoTableDetailComponent, "po-table-detail", never, { "componentsSize": { "alias": "p-components-size"; "required": false; }; "items": { "alias": "p-items"; "required": false; }; "parentRow": { "alias": "p-parent-row"; "required": false; }; "isSelectable": { "alias": "p-selectable"; "required": false; }; "detail": { "alias": "p-detail"; "required": false; }; }, { "selectRow": "p-select-row"; }, never, never, false, never>;
|
|
53
72
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { PoThemeService } from '../../../services';
|
|
2
3
|
import { PoLanguageService } from '../../../services/po-language/po-language.service';
|
|
3
4
|
import { PoCheckboxGroupComponent } from '../../po-field/po-checkbox-group/po-checkbox-group.component';
|
|
4
5
|
import { PoTableColumn } from '../interfaces/po-table-column.interface';
|
|
@@ -31,16 +32,34 @@ export declare const poTableListManagerLiterals: {
|
|
|
31
32
|
};
|
|
32
33
|
type Direction = 'up' | 'down';
|
|
33
34
|
export declare class PoTableListManagerComponent extends PoCheckboxGroupComponent {
|
|
35
|
+
protected poThemeService: PoThemeService;
|
|
36
|
+
private _componentsSize?;
|
|
34
37
|
private _iconToken;
|
|
35
38
|
private changePosition;
|
|
36
39
|
private changeColumnFixed;
|
|
37
40
|
columnsManager: Array<PoTableColumn>;
|
|
41
|
+
/**
|
|
42
|
+
* @optional
|
|
43
|
+
*
|
|
44
|
+
* @description
|
|
45
|
+
*
|
|
46
|
+
* Define o tamanho dos componentes de formulário no table:
|
|
47
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
48
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
49
|
+
*
|
|
50
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
51
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
52
|
+
*
|
|
53
|
+
* @default `medium`
|
|
54
|
+
*/
|
|
55
|
+
set componentsSize(value: string);
|
|
56
|
+
get componentsSize(): string;
|
|
38
57
|
hideActionFixedColumns: boolean;
|
|
39
58
|
literals: any;
|
|
40
59
|
get iconNameLib(): string;
|
|
41
60
|
constructor(languageService: PoLanguageService, changeDetector: ChangeDetectorRef, value: {
|
|
42
61
|
[key: string]: string;
|
|
43
|
-
});
|
|
62
|
+
}, poThemeService: PoThemeService);
|
|
44
63
|
emitChangePosition(option: any, direction: Direction): void;
|
|
45
64
|
verifyArrowDisabled(option: any, direction: Direction): boolean;
|
|
46
65
|
emitFixed(option: any): void;
|
|
@@ -48,8 +67,8 @@ export declare class PoTableListManagerComponent extends PoCheckboxGroupComponen
|
|
|
48
67
|
existedFixedItem(): boolean;
|
|
49
68
|
checksIfHasFiveFixed(option: any): boolean;
|
|
50
69
|
clickSwitch(option: any): void;
|
|
51
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoTableListManagerComponent, [null, null, { optional: true; }]>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoTableListManagerComponent, "po-table-list-manager", never, { "columnsManager": { "alias": "p-columns-manager"; "required": false; }; "hideActionFixedColumns": { "alias": "p-hide-action-fixed-columns"; "required": false; }; }, { "changePosition": "p-change-position"; "changeColumnFixed": "p-change-fixed"; }, never, never, false, never>;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoTableListManagerComponent, [null, null, { optional: true; }, null]>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoTableListManagerComponent, "po-table-list-manager", never, { "columnsManager": { "alias": "p-columns-manager"; "required": false; }; "componentsSize": { "alias": "p-components-size"; "required": false; }; "hideActionFixedColumns": { "alias": "p-hide-action-fixed-columns"; "required": false; }; }, { "changePosition": "p-change-position"; "changeColumnFixed": "p-change-fixed"; }, never, never, false, never>;
|
|
53
72
|
static ngAcceptInputType_hideActionFixedColumns: any;
|
|
54
73
|
}
|
|
55
74
|
export {};
|
package/lib/components/po-table/po-table-show-subtitle/po-table-show-subtitle.component.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export declare class PoTableShowSubtitleComponent {
|
|
|
12
12
|
subtitles: Array<PoTableSubtitleColumn>;
|
|
13
13
|
/** Propriedade que recebe as literais definidas no `po-table`. */
|
|
14
14
|
literals: any;
|
|
15
|
+
/** Define o tamanho dos elementos que possuem `p-size` dentro do componente. */
|
|
16
|
+
componentsSize: string;
|
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoTableShowSubtitleComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoTableShowSubtitleComponent, "po-table-show-subtitle", never, { "subtitles": { "alias": "p-subtitles"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoTableShowSubtitleComponent, "po-table-show-subtitle", never, { "subtitles": { "alias": "p-subtitles"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "componentsSize": { "alias": "p-components-size"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
19
|
}
|
package/lib/components/po-table/po-table-subtitle-footer/po-table-subtitle-footer.component.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
export declare class PoTableSubtitleFooterComponent implements AfterViewInit, DoCheck, OnDestroy {
|
|
12
12
|
private element;
|
|
13
13
|
renderer: Renderer2;
|
|
14
|
+
/** Define o tamanho dos elementos que possuem `p-size` dentro do componente. */
|
|
15
|
+
componentsSize: string;
|
|
14
16
|
/** Propriedade que recebe as literais definidas no `po-table`. */
|
|
15
17
|
literals: any;
|
|
16
18
|
/** Propriedade que recebe as legendas definidas no `PoTableSubtitleCircleComponent`. */
|
|
@@ -30,5 +32,5 @@ export declare class PoTableSubtitleFooterComponent implements AfterViewInit, Do
|
|
|
30
32
|
private removeResizeListener;
|
|
31
33
|
private toggleShowCompleteSubtitle;
|
|
32
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoTableSubtitleFooterComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoTableSubtitleFooterComponent, "po-table-subtitle-footer", never, { "literals": { "alias": "p-literals"; "required": false; }; "subtitles": { "alias": "p-subtitles"; "required": false; }; }, {}, never, never, false, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoTableSubtitleFooterComponent, "po-table-subtitle-footer", never, { "componentsSize": { "alias": "p-components-size"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "subtitles": { "alias": "p-subtitles"; "required": false; }; }, {}, never, never, false, never>;
|
|
34
36
|
}
|
|
@@ -8,6 +8,7 @@ import { PoNotificationService } from '../../services/po-notification/po-notific
|
|
|
8
8
|
import { PoModalAction, PoModalComponent } from '../po-modal';
|
|
9
9
|
import { PoPopupComponent } from '../po-popup/po-popup.component';
|
|
10
10
|
import { PoTableColumnLabel } from './po-table-column-label/po-table-column-label.interface';
|
|
11
|
+
import { PoThemeService } from '../../services';
|
|
11
12
|
import { PoTableAction } from './interfaces/po-table-action.interface';
|
|
12
13
|
import { PoTableColumn } from './interfaces/po-table-column.interface';
|
|
13
14
|
import { PoTableBaseComponent, QueryParamsType } from './po-table-base.component';
|
|
@@ -72,6 +73,7 @@ import * as i0 from "@angular/core";
|
|
|
72
73
|
* </example>
|
|
73
74
|
*/
|
|
74
75
|
export declare class PoTableComponent extends PoTableBaseComponent implements AfterViewInit, DoCheck, OnDestroy, OnInit {
|
|
76
|
+
protected poThemeService: PoThemeService;
|
|
75
77
|
private changeDetector;
|
|
76
78
|
private decimalPipe;
|
|
77
79
|
private defaultService;
|
|
@@ -129,7 +131,7 @@ export declare class PoTableComponent extends PoTableBaseComponent implements Af
|
|
|
129
131
|
set columnManagerTargetFixed(value: ElementRef);
|
|
130
132
|
get columnManagerTargetFixed(): ElementRef;
|
|
131
133
|
get iconNameLib(): string;
|
|
132
|
-
constructor(poDate: PoDateService, differs: IterableDiffers, renderer: Renderer2, poLanguageService: PoLanguageService, changeDetector: ChangeDetectorRef, decimalPipe: DecimalPipe, defaultService: PoTableService, value: {
|
|
134
|
+
constructor(poDate: PoDateService, differs: IterableDiffers, renderer: Renderer2, poLanguageService: PoLanguageService, poThemeService: PoThemeService, changeDetector: ChangeDetectorRef, decimalPipe: DecimalPipe, defaultService: PoTableService, value: {
|
|
133
135
|
[key: string]: string;
|
|
134
136
|
});
|
|
135
137
|
get hasRowTemplateWithArrowDirectionRight(): boolean;
|
|
@@ -302,6 +304,6 @@ export declare class PoTableComponent extends PoTableBaseComponent implements Af
|
|
|
302
304
|
private setTableOpacity;
|
|
303
305
|
private verifyChangeHeightInFooter;
|
|
304
306
|
private toggleSelect;
|
|
305
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoTableComponent, [null, null, null, null, null, null, null, { optional: true; }]>;
|
|
307
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoTableComponent, [null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
306
308
|
static ɵcmp: i0.ɵɵComponentDeclaration<PoTableComponent, "po-table", never, {}, {}, ["tableRowTemplate", "tableCellTemplate", "tableColumnTemplates"], never, false, never>;
|
|
307
309
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { PoButtonComponent } from '../../po-button/po-button.component';
|
|
2
3
|
import { PoPopoverComponent } from '../../po-popover/po-popover.component';
|
|
3
4
|
import { PoTabComponent } from '../po-tab/po-tab.component';
|
|
4
|
-
import { PoButtonComponent } from '../../po-button/po-button.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* @docsPrivate
|
|
@@ -17,6 +17,7 @@ export declare class PoTabDropdownComponent implements AfterViewInit {
|
|
|
17
17
|
button: PoButtonComponent;
|
|
18
18
|
label: string;
|
|
19
19
|
tabs: Array<PoTabComponent>;
|
|
20
|
+
size: string;
|
|
20
21
|
activated: EventEmitter<any>;
|
|
21
22
|
changeState: EventEmitter<any>;
|
|
22
23
|
click: EventEmitter<any>;
|
|
@@ -32,5 +33,5 @@ export declare class PoTabDropdownComponent implements AfterViewInit {
|
|
|
32
33
|
private calculateDropdownStyles;
|
|
33
34
|
onClickOutside(event: MouseEvent): void;
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoTabDropdownComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoTabDropdownComponent, "po-tab-dropdown", never, { "label": { "alias": "p-label"; "required": false; }; "tabs": { "alias": "p-tabs"; "required": false; }; }, { "activated": "p-activated"; "changeState": "p-change-state"; "click": "p-click"; }, never, never, false, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoTabDropdownComponent, "po-tab-dropdown", never, { "label": { "alias": "p-label"; "required": false; }; "tabs": { "alias": "p-tabs"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, { "activated": "p-activated"; "changeState": "p-change-state"; "click": "p-click"; }, never, never, false, never>;
|
|
36
37
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PoThemeService } from '../../services';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* @description
|
|
@@ -27,8 +28,10 @@ import * as i0 from "@angular/core";
|
|
|
27
28
|
* | Propriedade | Descrição | Valor Padrão |
|
|
28
29
|
* |----------------------------------------|---------------------------------------------------------------------------------|---------------------------------------------------|
|
|
29
30
|
* | **Default Values** | | |
|
|
30
|
-
* | `--background` | Cor de background | `var(--color-
|
|
31
|
+
* | `--background` | Cor de background | `var(--color-transparent)` |
|
|
32
|
+
* | `--background-item-default` | Cor de background do item padrão | `var(--color-transparent)` |
|
|
31
33
|
* | `--border-radius` | Contém o valor do raio dos cantos do elemento | `var(--border-radius-md)` |
|
|
34
|
+
* | `--color` | Cor da fonte padrão | `var(--color-action-default)` |
|
|
32
35
|
* | `--color-baseline` | Cor para box-shadow | `var(--color-neutral-light-20)` |
|
|
33
36
|
* | `--font-family` | Família tipográfica usada | `var(--font-family-theme)` |
|
|
34
37
|
* | `--font-size` | Tamanho da fonte | `var(--font-size-default)` |
|
|
@@ -47,10 +50,29 @@ import * as i0 from "@angular/core";
|
|
|
47
50
|
* | `--color-hover` | Cor principal no estado hover | `var(--color-brand-01-darkest)` |
|
|
48
51
|
* | `--background-item-hover` | Cor de background no estado de hover | `var(--color-brand-01-lightest)` |
|
|
49
52
|
* | **Selected** | | |
|
|
50
|
-
* | `--background-item-selected` | Cor de background do
|
|
53
|
+
* | `--background-item-selected` | Cor de background do item selecionado | `var(--color-brand-01-lightest)` |
|
|
51
54
|
*
|
|
52
55
|
*/
|
|
53
56
|
export declare class PoTabsBaseComponent {
|
|
57
|
+
protected poThemeService: PoThemeService;
|
|
58
|
+
private _size?;
|
|
59
|
+
/**
|
|
60
|
+
* @optional
|
|
61
|
+
*
|
|
62
|
+
* @description
|
|
63
|
+
*
|
|
64
|
+
* Define o tamanho do componente:
|
|
65
|
+
* - `small`: altura dos tabs como 32px (disponível apenas para acessibilidade AA).
|
|
66
|
+
* - `medium`: altura dos tabs como 44px.
|
|
67
|
+
*
|
|
68
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
69
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
70
|
+
*
|
|
71
|
+
* @default `medium`
|
|
72
|
+
*/
|
|
73
|
+
set size(value: string);
|
|
74
|
+
get size(): string;
|
|
75
|
+
constructor(poThemeService: PoThemeService);
|
|
54
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoTabsBaseComponent, never>;
|
|
55
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoTabsBaseComponent, never, never, {}, {}, never, never, true, never>;
|
|
77
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoTabsBaseComponent, never, never, { "size": { "alias": "p-size"; "required": false; }; }, {}, never, never, true, never>;
|
|
56
78
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
2
|
import { PoLanguageService } from '../../services/po-language/po-language.service';
|
|
3
|
+
import { PoThemeService } from '../../services';
|
|
3
4
|
import { PoTabDropdownComponent } from './po-tab-dropdown/po-tab-dropdown.component';
|
|
4
5
|
import { PoTabComponent } from './po-tab/po-tab.component';
|
|
5
6
|
import { PoTabsBaseComponent } from './po-tabs-base.component';
|
|
@@ -32,6 +33,7 @@ export declare const poTabsLiterals: object;
|
|
|
32
33
|
* </example>
|
|
33
34
|
*/
|
|
34
35
|
export declare class PoTabsComponent extends PoTabsBaseComponent implements OnInit, AfterViewInit, OnDestroy, AfterContentInit {
|
|
36
|
+
protected poThemeService: PoThemeService;
|
|
35
37
|
private changeDetector;
|
|
36
38
|
private languageService;
|
|
37
39
|
private tabsService;
|
|
@@ -51,7 +53,7 @@ export declare class PoTabsComponent extends PoTabsBaseComponent implements OnIn
|
|
|
51
53
|
private subscription;
|
|
52
54
|
private subscriptionTabsService;
|
|
53
55
|
private subscriptionTabActive;
|
|
54
|
-
constructor(changeDetector: ChangeDetectorRef, languageService: PoLanguageService, tabsService: PoTabsService);
|
|
56
|
+
constructor(poThemeService: PoThemeService, changeDetector: ChangeDetectorRef, languageService: PoLanguageService, tabsService: PoTabsService);
|
|
55
57
|
ngOnInit(): void;
|
|
56
58
|
ngAfterViewInit(): void;
|
|
57
59
|
ngAfterContentInit(): void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { PoThemeService } from '../../services';
|
|
3
3
|
import { PoToasterMode } from './enum/po-toaster-mode.enum';
|
|
4
|
-
import { PoToasterType } from './enum/po-toaster-type.enum';
|
|
5
4
|
import { PoToasterOrientation } from './enum/po-toaster-orientation.enum';
|
|
5
|
+
import { PoToasterType } from './enum/po-toaster-type.enum';
|
|
6
|
+
import { PoToaster } from './interface/po-toaster.interface';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
/**
|
|
8
9
|
*
|
|
@@ -52,7 +53,9 @@ import * as i0 from "@angular/core";
|
|
|
52
53
|
*
|
|
53
54
|
*/
|
|
54
55
|
export declare abstract class PoToasterBaseComponent {
|
|
56
|
+
protected poThemeService: PoThemeService;
|
|
55
57
|
private _isHide;
|
|
58
|
+
private _sizeActions;
|
|
56
59
|
/**
|
|
57
60
|
* @optional
|
|
58
61
|
*
|
|
@@ -106,6 +109,22 @@ export declare abstract class PoToasterBaseComponent {
|
|
|
106
109
|
* @default `true`
|
|
107
110
|
*/
|
|
108
111
|
showClose: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* @optional
|
|
114
|
+
*
|
|
115
|
+
* @description
|
|
116
|
+
*
|
|
117
|
+
* Define o tamanho das ações no componente:
|
|
118
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
119
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
120
|
+
*
|
|
121
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
122
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
123
|
+
*
|
|
124
|
+
* @default `medium`
|
|
125
|
+
*/
|
|
126
|
+
set sizeActions(value: string);
|
|
127
|
+
get sizeActions(): string;
|
|
109
128
|
/**
|
|
110
129
|
* @optional
|
|
111
130
|
*
|
|
@@ -131,11 +150,12 @@ export declare abstract class PoToasterBaseComponent {
|
|
|
131
150
|
orientation: PoToasterOrientation;
|
|
132
151
|
componentRef: any;
|
|
133
152
|
position: number;
|
|
153
|
+
constructor(poThemeService: PoThemeService);
|
|
134
154
|
abstract close(): void;
|
|
135
155
|
abstract changePosition(value: number): void;
|
|
136
156
|
abstract configToaster(poToaster: PoToaster): void;
|
|
137
157
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoToasterBaseComponent, never>;
|
|
138
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoToasterBaseComponent, never, never, { "action": { "alias": "p-action"; "required": false; }; "actionLabel": { "alias": "p-action-label"; "required": false; }; "message": { "alias": "p-message"; "required": false; }; "isHide": { "alias": "p-hide"; "required": false; }; "showClose": { "alias": "p-show-close"; "required": false; }; "supportMessage": { "alias": "p-support-message"; "required": false; }; "type": { "alias": "p-type"; "required": false; }; "mode": { "alias": "p-mode"; "required": false; }; }, { "isHideChange": "p-hide-change"; }, never, never, true, never>;
|
|
158
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoToasterBaseComponent, never, never, { "action": { "alias": "p-action"; "required": false; }; "actionLabel": { "alias": "p-action-label"; "required": false; }; "message": { "alias": "p-message"; "required": false; }; "isHide": { "alias": "p-hide"; "required": false; }; "showClose": { "alias": "p-show-close"; "required": false; }; "sizeActions": { "alias": "p-size-actions"; "required": false; }; "supportMessage": { "alias": "p-support-message"; "required": false; }; "type": { "alias": "p-type"; "required": false; }; "mode": { "alias": "p-mode"; "required": false; }; }, { "isHideChange": "p-hide-change"; }, never, never, true, never>;
|
|
139
159
|
static ngAcceptInputType_isHide: any;
|
|
140
160
|
static ngAcceptInputType_showClose: any;
|
|
141
161
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
|
+
import { PoThemeService } from '../../services';
|
|
4
|
+
import { PoLanguageService } from '../../services/po-language';
|
|
5
|
+
import { PoButtonComponent } from '../po-button';
|
|
3
6
|
import { PoToaster } from './interface/po-toaster.interface';
|
|
4
7
|
import { PoToasterBaseComponent } from './po-toaster-base.component';
|
|
5
|
-
import { PoButtonComponent } from '../po-button';
|
|
6
|
-
import { PoLanguageService } from '../../services/po-language';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
10
|
* @docsExtends PoToasterBaseComponent
|
|
@@ -22,6 +23,7 @@ import * as i0 from "@angular/core";
|
|
|
22
23
|
*/
|
|
23
24
|
export declare class PoToasterComponent extends PoToasterBaseComponent implements AfterViewInit, OnDestroy, OnChanges {
|
|
24
25
|
changeDetector: ChangeDetectorRef;
|
|
26
|
+
protected poThemeService: PoThemeService;
|
|
25
27
|
private renderer?;
|
|
26
28
|
toaster: ElementRef;
|
|
27
29
|
buttonClose: PoButtonComponent;
|
|
@@ -33,7 +35,7 @@ export declare class PoToasterComponent extends PoToasterBaseComponent implement
|
|
|
33
35
|
observableOnClose: Subject<any>;
|
|
34
36
|
toasterPosition: string;
|
|
35
37
|
toasterType: string;
|
|
36
|
-
constructor(poLanguageService: PoLanguageService, changeDetector: ChangeDetectorRef, renderer?: Renderer2);
|
|
38
|
+
constructor(poLanguageService: PoLanguageService, changeDetector: ChangeDetectorRef, poThemeService: PoThemeService, renderer?: Renderer2);
|
|
37
39
|
ngOnDestroy(): void;
|
|
38
40
|
ngAfterViewInit(): void;
|
|
39
41
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { PoThemeService } from '../../services';
|
|
2
3
|
import { PoTreeViewItem } from './po-tree-view-item/po-tree-view-item.interface';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
@@ -15,6 +16,7 @@ import * as i0 from "@angular/core";
|
|
|
15
16
|
* O componente também possui eventos disparados ao marcar/desmarcar e expandir/colapsar os itens.
|
|
16
17
|
*/
|
|
17
18
|
export declare class PoTreeViewBaseComponent {
|
|
19
|
+
protected poThemeService: PoThemeService;
|
|
18
20
|
/**
|
|
19
21
|
* @optional
|
|
20
22
|
*
|
|
@@ -55,11 +57,28 @@ export declare class PoTreeViewBaseComponent {
|
|
|
55
57
|
* > Como parâmetro o componente envia o item que foi desmarcado.
|
|
56
58
|
*/
|
|
57
59
|
unselected: EventEmitter<PoTreeViewItem>;
|
|
60
|
+
private _componentsSize;
|
|
58
61
|
private _items;
|
|
59
62
|
private _selectable;
|
|
60
63
|
private _maxLevel;
|
|
61
64
|
private _singleSelect;
|
|
62
65
|
selectedValue: string | number;
|
|
66
|
+
/**
|
|
67
|
+
* @optional
|
|
68
|
+
*
|
|
69
|
+
* @description
|
|
70
|
+
*
|
|
71
|
+
* Define o tamanho dos componentes de formulário:
|
|
72
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
73
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
74
|
+
*
|
|
75
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
76
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
77
|
+
*
|
|
78
|
+
* @default `medium`
|
|
79
|
+
*/
|
|
80
|
+
set componentsSize(value: string);
|
|
81
|
+
get componentsSize(): string;
|
|
63
82
|
/**
|
|
64
83
|
* Lista de itens do tipo `PoTreeViewItem` que será renderizada pelo componente.
|
|
65
84
|
*/
|
|
@@ -101,6 +120,7 @@ export declare class PoTreeViewBaseComponent {
|
|
|
101
120
|
*/
|
|
102
121
|
set maxLevel(value: number);
|
|
103
122
|
get maxLevel(): number;
|
|
123
|
+
constructor(poThemeService: PoThemeService);
|
|
104
124
|
protected emitExpanded(treeViewItem: PoTreeViewItem): void;
|
|
105
125
|
protected emitSelected(treeViewItem: PoTreeViewItem): void;
|
|
106
126
|
private addChildItemInParent;
|
|
@@ -113,5 +133,5 @@ export declare class PoTreeViewBaseComponent {
|
|
|
113
133
|
private getItemsWithParentSelected;
|
|
114
134
|
private updateItemsOnSelect;
|
|
115
135
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewBaseComponent, never>;
|
|
116
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PoTreeViewBaseComponent, never, never, { "inputedItems": { "alias": "p-items"; "required": false; }; "selectable": { "alias": "p-selectable"; "required": false; }; "singleSelect": { "alias": "p-single-select"; "required": false; }; "maxLevel": { "alias": "p-max-level"; "required": false; }; }, { "collapsed": "p-collapsed"; "expanded": "p-expanded"; "selected": "p-selected"; "unselected": "p-unselected"; }, never, never, true, never>;
|
|
136
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoTreeViewBaseComponent, never, never, { "componentsSize": { "alias": "p-components-size"; "required": false; }; "inputedItems": { "alias": "p-items"; "required": false; }; "selectable": { "alias": "p-selectable"; "required": false; }; "singleSelect": { "alias": "p-single-select"; "required": false; }; "maxLevel": { "alias": "p-max-level"; "required": false; }; }, { "collapsed": "p-collapsed"; "expanded": "p-expanded"; "selected": "p-selected"; "unselected": "p-unselected"; }, never, never, true, never>;
|
|
117
137
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { PoTreeViewItem } from './po-tree-view-item.interface';
|
|
2
1
|
import { PoTreeViewService } from '../services/po-tree-view.service';
|
|
2
|
+
import { PoTreeViewItem } from './po-tree-view-item.interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PoTreeViewItemComponent {
|
|
5
5
|
private treeViewService;
|
|
6
|
+
componentsSize: string;
|
|
6
7
|
item: PoTreeViewItem;
|
|
7
8
|
selectable: boolean;
|
|
8
9
|
singleSelect: boolean;
|
|
@@ -13,5 +14,5 @@ export declare class PoTreeViewItemComponent {
|
|
|
13
14
|
onSelect(selectedItem: PoTreeViewItem): void;
|
|
14
15
|
trackByFunction(index: number): number;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewItemComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoTreeViewItemComponent, "po-tree-view-item", never, { "item": { "alias": "p-item"; "required": false; }; "selectable": { "alias": "p-selectable"; "required": false; }; "singleSelect": { "alias": "p-single-select"; "required": false; }; "selectedValue": { "alias": "p-selected-value"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoTreeViewItemComponent, "po-tree-view-item", never, { "componentsSize": { "alias": "p-components-size"; "required": false; }; "item": { "alias": "p-item"; "required": false; }; "selectable": { "alias": "p-selectable"; "required": false; }; "singleSelect": { "alias": "p-single-select"; "required": false; }; "selectedValue": { "alias": "p-selected-value"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
18
|
}
|
package/lib/components/po-tree-view/po-tree-view-item-header/po-tree-view-item-header.component.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { PoTreeViewItem } from '../po-tree-view-item/po-tree-view-item.interface
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PoTreeViewItemHeaderComponent {
|
|
5
5
|
inputCheckbox: any;
|
|
6
|
+
componentsSize: string;
|
|
6
7
|
item: PoTreeViewItem;
|
|
7
8
|
selectable: boolean;
|
|
8
9
|
singleSelect: boolean;
|
|
@@ -12,5 +13,5 @@ export declare class PoTreeViewItemHeaderComponent {
|
|
|
12
13
|
idRadio: string;
|
|
13
14
|
get hasSubItems(): boolean;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoTreeViewItemHeaderComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoTreeViewItemHeaderComponent, "po-tree-view-item-header", never, { "item": { "alias": "p-item"; "required": false; }; "selectable": { "alias": "p-selectable"; "required": false; }; "singleSelect": { "alias": "p-single-select"; "required": false; }; "selectedValue": { "alias": "p-selected-value"; "required": false; }; }, { "expanded": "p-expanded"; "selected": "p-selected"; }, never, never, false, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoTreeViewItemHeaderComponent, "po-tree-view-item-header", never, { "componentsSize": { "alias": "p-components-size"; "required": false; }; "item": { "alias": "p-item"; "required": false; }; "selectable": { "alias": "p-selectable"; "required": false; }; "singleSelect": { "alias": "p-single-select"; "required": false; }; "selectedValue": { "alias": "p-selected-value"; "required": false; }; }, { "expanded": "p-expanded"; "selected": "p-selected"; }, never, never, false, never>;
|
|
16
17
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { PoThemeService } from '../../services';
|
|
2
3
|
import { PoTreeViewBaseComponent } from './po-tree-view-base.component';
|
|
3
4
|
import { PoTreeViewService } from './services/po-tree-view.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
@@ -28,9 +29,10 @@ import * as i0 from "@angular/core";
|
|
|
28
29
|
* </example>
|
|
29
30
|
*/
|
|
30
31
|
export declare class PoTreeViewComponent extends PoTreeViewBaseComponent implements OnInit, OnChanges {
|
|
32
|
+
protected poThemeService: PoThemeService;
|
|
31
33
|
private treeViewService;
|
|
32
34
|
get hasItems(): boolean;
|
|
33
|
-
constructor(treeViewService: PoTreeViewService);
|
|
35
|
+
constructor(poThemeService: PoThemeService, treeViewService: PoTreeViewService);
|
|
34
36
|
ngOnInit(): void;
|
|
35
37
|
ngOnChanges(changes?: SimpleChanges): void;
|
|
36
38
|
trackByFunction(index: number): number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @docsPrivate
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
*
|
|
6
|
+
* Tamanhos da propriedade `p-size`. A medida `small` está disponível apenas para acessibilidade AA.
|
|
7
|
+
*/
|
|
8
|
+
export declare enum PoFieldSize {
|
|
9
|
+
/** Define a altura do input como 32px. */
|
|
10
|
+
Small = "small",
|
|
11
|
+
/** Define a altura do input como 44px. */
|
|
12
|
+
Medium = "medium"
|
|
13
|
+
}
|
|
@@ -16,6 +16,17 @@ export interface PoDialogOptions {
|
|
|
16
16
|
* > Pode-se informar um conteúdo HTML na mensagem.
|
|
17
17
|
*/
|
|
18
18
|
message: string;
|
|
19
|
+
/**
|
|
20
|
+
* Define o tamanho dos componentes de formulário no dialog:
|
|
21
|
+
* - `small`: aplica a medida small de cada componente (disponível apenas para acessibilidade AA).
|
|
22
|
+
* - `medium`: aplica a medida medium de cada componente.
|
|
23
|
+
*
|
|
24
|
+
* > Caso a acessibilidade AA não esteja configurada, o tamanho `medium` será mantido.
|
|
25
|
+
* Para mais detalhes, consulte a documentação do [po-theme](https://po-ui.io/documentation/po-theme).
|
|
26
|
+
*
|
|
27
|
+
* @default `medium`
|
|
28
|
+
*/
|
|
29
|
+
componentsSize?: string;
|
|
19
30
|
}
|
|
20
31
|
/**
|
|
21
32
|
* @usedBy PoDialogService
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ComponentRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { PoLanguageService } from '../po-language/po-language.service';
|
|
3
|
-
import { PoDialogAlertLiterals } from './interfaces/po-dialog-alert-literals.interface';
|
|
4
|
-
import { PoDialogAlertOptions, PoDialogConfirmOptions } from './interfaces/po-dialog.interface';
|
|
5
|
-
import { PoDialogConfirmLiterals } from './interfaces/po-dialog-confirm-literals.interface';
|
|
6
|
-
import { PoDialogType } from './po-dialog.enum';
|
|
7
3
|
import { PoModalAction } from '../../components/po-modal/po-modal-action.interface';
|
|
8
4
|
import { PoModalComponent } from '../../components/po-modal/po-modal.component';
|
|
5
|
+
import { PoThemeService } from '../po-theme/po-theme.service';
|
|
6
|
+
import { PoDialogType } from './enums/po-dialog.enum';
|
|
7
|
+
import { PoDialogAlertLiterals } from './interfaces/po-dialog-alert-literals.interface';
|
|
8
|
+
import { PoDialogConfirmLiterals } from './interfaces/po-dialog-confirm-literals.interface';
|
|
9
|
+
import { PoDialogAlertOptions, PoDialogConfirmOptions } from './interfaces/po-dialog.interface';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare const poDialogAlertLiteralsDefault: {
|
|
11
12
|
en: PoDialogAlertLiterals;
|
|
@@ -27,6 +28,7 @@ export declare const poDialogConfirmLiteralsDefault: {
|
|
|
27
28
|
* Componente que serve como container do po-dialog.service
|
|
28
29
|
*/
|
|
29
30
|
export declare class PoDialogComponent implements OnDestroy, OnInit {
|
|
31
|
+
protected poThemeService: PoThemeService;
|
|
30
32
|
poModal: PoModalComponent;
|
|
31
33
|
title: string;
|
|
32
34
|
message: string;
|
|
@@ -37,8 +39,11 @@ export declare class PoDialogComponent implements OnDestroy, OnInit {
|
|
|
37
39
|
literalsConfirm: PoDialogConfirmLiterals;
|
|
38
40
|
private componentRef;
|
|
39
41
|
private closeSubscription;
|
|
42
|
+
private _componentsSize?;
|
|
40
43
|
private language;
|
|
41
|
-
|
|
44
|
+
set componentsSize(value: string);
|
|
45
|
+
get componentsSize(): string;
|
|
46
|
+
constructor(languageService: PoLanguageService, poThemeService: PoThemeService);
|
|
42
47
|
ngOnDestroy(): void;
|
|
43
48
|
ngOnInit(): void;
|
|
44
49
|
close(xClosed?: boolean): void;
|
|
@@ -47,5 +52,5 @@ export declare class PoDialogComponent implements OnDestroy, OnInit {
|
|
|
47
52
|
open(dialogOptions: PoDialogConfirmOptions | PoDialogAlertOptions, dialogType: PoDialogType, componentRef?: ComponentRef<PoDialogComponent>): void;
|
|
48
53
|
private setDialogLiterals;
|
|
49
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoDialogComponent, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PoDialogComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoDialogComponent, "ng-component", never, { "componentsSize": { "alias": "p-components-size"; "required": false; }; }, {}, never, never, false, never>;
|
|
51
56
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PoComponentInjectorService } from './../po-component-injector/po-component-injector.service';
|
|
2
2
|
import { PoDialogAlertOptions, PoDialogConfirmOptions } from './interfaces/po-dialog.interface';
|
|
3
3
|
import { PoDialogBaseService } from './po-dialog-base.service';
|
|
4
|
-
import { PoDialogType } from './po-dialog.enum';
|
|
4
|
+
import { PoDialogType } from './enums/po-dialog.enum';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* @docsExtends PoDialogBaseService
|