@po-ui/ng-components 19.24.0 → 19.26.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-po-chart-modal-table.component-mSWyBcer.mjs → po-ui-ng-components-po-chart-modal-table.component-CaO2fPeS.mjs} +3 -4
- package/fesm2022/po-ui-ng-components-po-chart-modal-table.component-CaO2fPeS.mjs.map +1 -0
- package/fesm2022/po-ui-ng-components.mjs +18860 -17533
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/components.module.d.ts +2 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.d.ts +1 -2
- package/lib/components/po-accordion/po-accordion-item-header/po-accordion-item-header.component.d.ts +1 -2
- package/lib/components/po-accordion/po-accordion.component.d.ts +1 -3
- package/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.component.d.ts +1 -3
- package/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.service.d.ts +0 -2
- package/lib/components/po-breadcrumb/po-breadcrumb.component.d.ts +2 -2
- package/lib/components/po-button/po-button-base.component.d.ts +14 -8
- package/lib/components/po-button/po-button.component.d.ts +0 -3
- package/lib/components/po-button-group/po-button-group-base.component.d.ts +9 -6
- package/lib/components/po-button-group/po-button-group.component.d.ts +0 -4
- package/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.d.ts +0 -4
- package/lib/components/po-calendar/po-calendar.component.d.ts +2 -4
- package/lib/components/po-chart/po-chart.component.d.ts +3 -6
- package/lib/components/po-disclaimer-group/po-disclaimer-group.component.d.ts +2 -4
- package/lib/components/po-dropdown/po-dropdown-base.component.d.ts +0 -3
- package/lib/components/po-dropdown/po-dropdown.component.d.ts +1 -4
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-base.component.d.ts +0 -3
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields-base.component.d.ts +1 -3
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields.component.d.ts +2 -7
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-load/po-dynamic-form-load.service.d.ts +1 -2
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-validation/po-dynamic-form-validation.service.d.ts +1 -2
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.d.ts +1 -3
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.d.ts +1 -6
- package/lib/components/po-dynamic/po-dynamic-view/services/po-dynamic-view.service.d.ts +1 -2
- package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +0 -3
- package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +3 -7
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +0 -3
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +1 -4
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +1 -3
- package/lib/components/po-field/po-combo/po-combo-filter.service.d.ts +1 -2
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +3 -8
- package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +1 -3
- package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +2 -8
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +1 -3
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +2 -8
- package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +2 -5
- package/lib/components/po-field/po-email/po-email.component.d.ts +2 -4
- package/lib/components/po-field/po-field-container/po-field-container.component.d.ts +1 -2
- package/lib/components/po-field/po-input/po-input-base.component.d.ts +1 -3
- package/lib/components/po-field/po-input/po-input.component.d.ts +2 -4
- package/lib/components/po-field/po-input-generic/po-input-generic.d.ts +1 -3
- package/lib/components/po-field/po-login/po-login.component.d.ts +1 -4
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +1 -3
- package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal.component.d.ts +2 -3
- package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +2 -7
- package/lib/components/po-field/po-lookup/services/po-lookup-modal.service.d.ts +0 -2
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +1 -3
- package/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.d.ts +1 -2
- package/lib/components/po-field/po-multiselect/po-multiselect-filter.service.d.ts +0 -2
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +2 -6
- package/lib/components/po-field/po-number/po-number-base.component.d.ts +1 -3
- package/lib/components/po-field/po-number/po-number.component.d.ts +1 -4
- package/lib/components/po-field/po-password/po-password.component.d.ts +1 -4
- package/lib/components/po-field/po-radio/po-radio.component.d.ts +1 -4
- package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +0 -3
- package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +2 -4
- package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +1 -3
- package/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.d.ts +0 -2
- package/lib/components/po-field/po-rich-text/po-rich-text-image-modal/po-rich-text-image-modal.component.d.ts +1 -2
- package/lib/components/po-field/po-rich-text/po-rich-text-link-modal/po-rich-text-link-modal.component.d.ts +1 -2
- package/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.d.ts +1 -2
- package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +2 -5
- package/lib/components/po-field/po-select/po-select.component.d.ts +3 -7
- package/lib/components/po-field/po-switch/po-switch.component.d.ts +1 -4
- package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +1 -3
- package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +2 -4
- package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +1 -3
- package/lib/components/po-field/po-upload/po-upload-base.service.d.ts +0 -2
- package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop-area/po-upload-drag-drop-area.component.d.ts +1 -2
- package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop-area-overlay/po-upload-drag-drop-area-overlay.component.d.ts +1 -2
- package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.component.d.ts +1 -2
- package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.directive.d.ts +0 -3
- package/lib/components/po-field/po-upload/po-upload-file-restrictions/po-upload-file-restrictions.component.d.ts +2 -3
- package/lib/components/po-field/po-upload/po-upload.component.d.ts +2 -8
- package/lib/components/po-field/po-url/po-url.component.d.ts +2 -4
- package/lib/components/po-grid/po-grid-cell/po-grid-cell.component.d.ts +1 -2
- package/lib/components/po-grid/po-grid.component.d.ts +2 -2
- package/lib/components/po-header/index.d.ts +7 -0
- package/lib/components/po-header/interfaces/po-header-action-tool.interface.d.ts +138 -0
- package/lib/components/po-header/interfaces/po-header-actions.interface.d.ts +49 -0
- package/lib/components/po-header/interfaces/po-header-brand.interface.d.ts +59 -0
- package/lib/components/po-header/interfaces/po-header-literals.interface.d.ts +13 -0
- package/lib/components/po-header/interfaces/po-header-user.interface.d.ts +74 -0
- package/lib/components/po-header/po-header-base.component.d.ts +266 -0
- package/lib/components/po-header/po-header-brand/po-header-brand.component.d.ts +27 -0
- package/lib/components/po-header/po-header-customer/po-header-customer.component.d.ts +32 -0
- package/lib/components/po-header/po-header-menu-item/po-header-menu-item.component.d.ts +50 -0
- package/lib/components/po-header/po-header-tools/po-header-tools.component.d.ts +31 -0
- package/lib/components/po-header/po-header.component.d.ts +83 -0
- package/lib/components/po-header/po-header.module.d.ts +27 -0
- package/lib/components/po-list-view/po-list-view-base.component.d.ts +1 -3
- package/lib/components/po-list-view/po-list-view.component.d.ts +2 -5
- package/lib/components/po-listbox/interfaces/po-listbox-literals.interface.d.ts +1 -0
- package/lib/components/po-listbox/po-item-list/po-item-list-base.component.d.ts +2 -1
- package/lib/components/po-listbox/po-item-list/po-item-list.component.d.ts +1 -2
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +8 -4
- package/lib/components/po-listbox/po-listbox.component.d.ts +5 -8
- package/lib/components/po-listbox/po-search-list/po-search-list.component.d.ts +1 -2
- package/lib/components/po-loading/po-loading-overlay/po-loading-overlay.component.d.ts +1 -2
- package/lib/components/po-menu/po-menu-base.component.d.ts +6 -4
- package/lib/components/po-menu/po-menu-filter/po-menu-filter.component.d.ts +1 -1
- package/lib/components/po-menu/po-menu-item/po-menu-item.component.d.ts +0 -2
- package/lib/components/po-menu/po-menu-item.interface.d.ts +3 -0
- package/lib/components/po-menu/po-menu.component.d.ts +5 -10
- package/lib/components/po-menu/services/po-menu-global.service.d.ts +6 -0
- package/lib/components/po-menu/services/po-menu.service.d.ts +0 -2
- package/lib/components/po-menu-panel/po-menu-panel-item/po-menu-panel-item.component.d.ts +0 -2
- package/lib/components/po-menu-panel/po-menu-panel.component.d.ts +1 -5
- package/lib/components/po-modal/po-modal-base.component.d.ts +1 -3
- package/lib/components/po-modal/po-modal.component.d.ts +1 -5
- package/lib/components/po-navbar/po-navbar-actions/po-navbar-action/po-navbar-action.component.d.ts +1 -3
- package/lib/components/po-navbar/po-navbar-items/po-navbar-items.component.d.ts +0 -2
- package/lib/components/po-navbar/po-navbar.component.d.ts +2 -5
- package/lib/components/po-page/po-page-content/po-page-content.component.d.ts +1 -1
- package/lib/components/po-page/po-page-default/po-page-default-base.component.d.ts +1 -3
- package/lib/components/po-page/po-page-default/po-page-default.component.d.ts +2 -6
- package/lib/components/po-page/po-page-detail/po-page-detail-base.component.d.ts +1 -3
- package/lib/components/po-page/po-page-edit/po-page-edit-base.component.d.ts +1 -3
- package/lib/components/po-page/po-page-list/po-page-list-base.component.d.ts +1 -3
- package/lib/components/po-page/po-page-list/po-page-list.component.d.ts +2 -6
- package/lib/components/po-page/po-page-slide/po-page-slide-base.component.d.ts +0 -3
- package/lib/components/po-page/po-page-slide/po-page-slide.component.d.ts +1 -5
- package/lib/components/po-popover/po-popover.component.d.ts +5 -2
- package/lib/components/po-popup/po-popup-base.component.d.ts +2 -4
- package/lib/components/po-popup/po-popup.component.d.ts +2 -6
- package/lib/components/po-progress/po-progress-base.component.d.ts +0 -3
- package/lib/components/po-progress/po-progress.component.d.ts +0 -3
- package/lib/components/po-search/enums/po-search-filter-mode.enum.d.ts +1 -1
- package/lib/components/po-search/index.d.ts +1 -1
- package/lib/components/po-search/interfaces/po-search-filter-select.interface.d.ts +1 -5
- package/lib/components/po-search/interfaces/po-search-locate-summary.interface.d.ts +13 -0
- package/lib/components/po-search/literals/po-search-literals-default.d.ts +7 -1
- package/lib/components/po-search/literals/po-search-literals.interface.d.ts +51 -0
- package/lib/components/po-search/po-search-base.component.d.ts +201 -79
- package/lib/components/po-search/po-search.component.d.ts +43 -14
- package/lib/components/po-slide/po-slide.component.d.ts +0 -2
- package/lib/components/po-stepper/po-step/po-step.component.d.ts +1 -2
- package/lib/components/po-stepper/po-stepper-label/po-stepper-label.component.d.ts +1 -2
- package/lib/components/po-stepper/po-stepper.component.d.ts +1 -2
- package/lib/components/po-table/po-table-base.component.d.ts +1 -3
- package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +1 -3
- package/lib/components/po-table/po-table-detail/po-table-detail.component.d.ts +1 -3
- package/lib/components/po-table/po-table-list-manager/po-table-list-manager.component.d.ts +2 -4
- package/lib/components/po-table/po-table.component.d.ts +2 -4
- package/lib/components/po-tabs/po-tab/po-tab.component.d.ts +1 -3
- package/lib/components/po-tabs/po-tab-button/po-tab-button.component.d.ts +0 -1
- package/lib/components/po-tabs/po-tab-dropdown/po-tab-dropdown.component.d.ts +0 -1
- package/lib/components/po-tabs/po-tabs-base.component.d.ts +0 -3
- package/lib/components/po-tabs/po-tabs.component.d.ts +1 -5
- package/lib/components/po-tag/po-tag.component.d.ts +1 -2
- package/lib/components/po-toaster/po-toaster-base.component.d.ts +0 -3
- package/lib/components/po-toaster/po-toaster.component.d.ts +3 -6
- package/lib/components/po-toolbar/po-toolbar-notification/po-toolbar-notification.component.d.ts +1 -2
- package/lib/components/po-toolbar/po-toolbar.component.d.ts +1 -3
- package/lib/components/po-tree-view/po-tree-view-base.component.d.ts +0 -3
- package/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.d.ts +0 -2
- package/lib/components/po-tree-view/po-tree-view.component.d.ts +0 -4
- package/lib/components/po-widget/po-widget-base.component.d.ts +0 -3
- package/lib/components/po-widget/po-widget.component.d.ts +3 -3
- package/lib/services/po-dialog/po-dialog.component.d.ts +1 -3
- package/lib/services/po-notification/po-notification-base.service.d.ts +0 -3
- package/lib/services/po-notification/po-notification.service.d.ts +1 -3
- package/lib/utils/util.d.ts +25 -0
- package/package.json +4 -4
- package/po-ui-ng-components-19.26.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/fesm2022/po-ui-ng-components-po-chart-modal-table.component-mSWyBcer.mjs.map +0 -1
- package/lib/components/po-search/literals/po-search-literals.d.ts +0 -32
- package/po-ui-ng-components-19.24.0.tgz +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @usedBy PoHeaderComponent
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
*
|
|
6
|
+
* *Interface* que define uma lista de ações no sub-menu.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export interface PoHeaderActions {
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
*
|
|
15
|
+
* Label da ação
|
|
16
|
+
*/
|
|
17
|
+
label: string;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @optional
|
|
21
|
+
*
|
|
22
|
+
* @description
|
|
23
|
+
*
|
|
24
|
+
* Evento da ação
|
|
25
|
+
*
|
|
26
|
+
* Exemplo: `action: this.myFunction.bind(this)`
|
|
27
|
+
*/
|
|
28
|
+
action?: Function;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*
|
|
32
|
+
* @description
|
|
33
|
+
*
|
|
34
|
+
* link utilizado no redirecionamento das páginas.
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
link?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @optional
|
|
41
|
+
*
|
|
42
|
+
* @description
|
|
43
|
+
*
|
|
44
|
+
* Identificador da ação
|
|
45
|
+
*/
|
|
46
|
+
id?: string;
|
|
47
|
+
$selected?: boolean;
|
|
48
|
+
$internalRoute?: boolean;
|
|
49
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @usedBy PoHeaderComponent
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
*
|
|
6
|
+
* *Interface* que define a seção de brand.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export interface PoHeaderBrand {
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @description
|
|
13
|
+
*
|
|
14
|
+
* Título da marca
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
title?: string;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @optional
|
|
21
|
+
*
|
|
22
|
+
* @description
|
|
23
|
+
*
|
|
24
|
+
* Imagem da marca
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
logo?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @optional
|
|
31
|
+
*
|
|
32
|
+
* @description
|
|
33
|
+
*
|
|
34
|
+
* Imagem da marca quando a tela é menor que 960px
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
smallLogo?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @optional
|
|
41
|
+
*
|
|
42
|
+
* @description
|
|
43
|
+
*
|
|
44
|
+
* Evento da ação
|
|
45
|
+
*
|
|
46
|
+
* Exemplo: `action: this.myFunction.bind(this)`
|
|
47
|
+
*/
|
|
48
|
+
action?: Function;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @optional
|
|
52
|
+
*
|
|
53
|
+
* @description
|
|
54
|
+
*
|
|
55
|
+
* link utilizado no redirecionamento das páginas.
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
link?: string;
|
|
59
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @usedBy PoHeaderComponent
|
|
3
|
+
*
|
|
4
|
+
* @description
|
|
5
|
+
*
|
|
6
|
+
* Interface para definição das literais usadas no `po-header`.
|
|
7
|
+
*/
|
|
8
|
+
export interface PoHeaderLiterals {
|
|
9
|
+
/** Texto exibido no item de menu no qual os itens do header são agrupados quando está no modo responsivo. */
|
|
10
|
+
headerLinks?: string;
|
|
11
|
+
/** Texto para indicação de notificação, caso seja passado um valor válido na propriedade `badge` */
|
|
12
|
+
notifications?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { PoHeaderActionPopoverAction, PoHeaderActionToolItem } from './po-header-action-tool.interface';
|
|
2
|
+
/**
|
|
3
|
+
* @usedBy PoHeaderComponent
|
|
4
|
+
*
|
|
5
|
+
* @description
|
|
6
|
+
*
|
|
7
|
+
* *Interface* que define a seção de Customer do header.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export interface PoHeaderUser {
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @description
|
|
14
|
+
*
|
|
15
|
+
* Logo representando o perfil
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
avatar: string;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @description
|
|
22
|
+
*
|
|
23
|
+
* Imagem da marca
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
customerBrand: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @optional
|
|
30
|
+
*
|
|
31
|
+
* @description
|
|
32
|
+
*
|
|
33
|
+
* Evento emitido ao clicar na seção
|
|
34
|
+
*
|
|
35
|
+
* Exemplo: `action: this.myFunction.bind(this)`
|
|
36
|
+
*/
|
|
37
|
+
action?: Function;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @optional
|
|
41
|
+
*
|
|
42
|
+
* @description
|
|
43
|
+
*
|
|
44
|
+
* Indicação representando o estado do usuário
|
|
45
|
+
* Valores válidos:
|
|
46
|
+
* - `positive`: Define a cor do `status` com a cor de feedback positivo.
|
|
47
|
+
* - `negative`: Define a cor do `status` com a cor de feedback negative.
|
|
48
|
+
* - `warning`: Define a cor do `status` com a cor de feedback warning.
|
|
49
|
+
* - `disabled`: Define a cor do `status` com a cor de feedback disabled
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
status?: 'positive' | 'negative' | 'warning' | 'disabled';
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @optional
|
|
56
|
+
*
|
|
57
|
+
* @description
|
|
58
|
+
*
|
|
59
|
+
* Template que será utilizado na ação
|
|
60
|
+
*/
|
|
61
|
+
popover?: PoHeaderActionPopoverAction;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @optional
|
|
65
|
+
*
|
|
66
|
+
* @description
|
|
67
|
+
*
|
|
68
|
+
* Itens de ações
|
|
69
|
+
*
|
|
70
|
+
* > Caso seja passado items e popover, o componente irá renderizar o popover e os itens serão ignorados
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
items?: Array<PoHeaderActionToolItem>;
|
|
74
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { PoLanguageService } from '../../services';
|
|
3
|
+
import { PoMenuItem } from '../po-menu';
|
|
4
|
+
import { PoHeaderActionTool } from './interfaces/po-header-action-tool.interface';
|
|
5
|
+
import { PoHeaderActions } from './interfaces/po-header-actions.interface';
|
|
6
|
+
import { PoHeaderBrand } from './interfaces/po-header-brand.interface';
|
|
7
|
+
import { PoHeaderLiterals } from './interfaces/po-header-literals.interface';
|
|
8
|
+
import { PoHeaderUser } from './interfaces/po-header-user.interface';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare const poNavbarLiteralsDefault: {
|
|
11
|
+
en: PoHeaderLiterals;
|
|
12
|
+
es: PoHeaderLiterals;
|
|
13
|
+
pt: PoHeaderLiterals;
|
|
14
|
+
ru: PoHeaderLiterals;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @description
|
|
18
|
+
*
|
|
19
|
+
* O componente `po-header` é um cabeçalho fixo que permite apresentar itens com ações, divididos em `p-brand`, `p-menu-items`, `p-actions-tools` e `p-header-user`.
|
|
20
|
+
*
|
|
21
|
+
* - `p-brand`: Possibilita a inclusão de uma imagem e o titulo do header.
|
|
22
|
+
* - `p-menu-items`: Possibilita a inclusão de uma lista de itens com ações ou links.
|
|
23
|
+
* - `p-actions-tools`: Possibilita a inclusão de até 3 botões com ações.
|
|
24
|
+
* - `p-header-user`: Possibilita a inclusão de uma imagem representando a marca e avatar.
|
|
25
|
+
*
|
|
26
|
+
* O componente `po-header` pode ser usado de duas formas:
|
|
27
|
+
*
|
|
28
|
+
* Com `po-menu` definido pelo usuário:
|
|
29
|
+
* ```
|
|
30
|
+
* ...
|
|
31
|
+
* <po-header
|
|
32
|
+
* [p-brand]="brand"
|
|
33
|
+
* [p-menu-items]="items"
|
|
34
|
+
* [p-actions-tools]="actions"
|
|
35
|
+
* [p-header-user]="user"
|
|
36
|
+
* ></po-header>
|
|
37
|
+
*
|
|
38
|
+
* <div class="po-wrapper">
|
|
39
|
+
* <po-menu [p-menus]="itemsMenu">
|
|
40
|
+
* </po-menu>
|
|
41
|
+
*
|
|
42
|
+
* <po-page-default>
|
|
43
|
+
* <router-outlet></router-outlet>
|
|
44
|
+
* </po-page-default>
|
|
45
|
+
* </div>
|
|
46
|
+
* ...
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* Passando os itens diretamente para o `po-header` pela propriedade `p-menus`:
|
|
50
|
+
* ```
|
|
51
|
+
* ...
|
|
52
|
+
* <po-header
|
|
53
|
+
* [p-brand]="brand"
|
|
54
|
+
* [p-menu-items]="items"
|
|
55
|
+
* [p-actions-tools]="actions"
|
|
56
|
+
* [p-header-user]="user"
|
|
57
|
+
* [p-menus]="itensMenu"
|
|
58
|
+
* ></po-header>
|
|
59
|
+
*
|
|
60
|
+
* <div class="po-wrapper">
|
|
61
|
+
* <po-page-default>
|
|
62
|
+
* <router-outlet></router-outlet>
|
|
63
|
+
* </po-page-default>
|
|
64
|
+
* </div>
|
|
65
|
+
* ...
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* #### Tokens customizáveis
|
|
69
|
+
*
|
|
70
|
+
* É possível alterar o estilo do componente usando os seguintes tokens (CSS):
|
|
71
|
+
*
|
|
72
|
+
* > Para maiores informações, acesse o guia [Personalizando o Tema Padrão com Tokens CSS](https://po-ui.io/guides/theme-customization).
|
|
73
|
+
*
|
|
74
|
+
* | Propriedade | Descrição | Valor Padrão |
|
|
75
|
+
* |------------------------------------------|------------------------------------------------------------|---------------------------------------------------|
|
|
76
|
+
* | `--font-family` | Família tipográfica usada | `var(--font-family-theme)` |
|
|
77
|
+
* | `--font-weight` | Peso da fonte | `var(--font-weight-bold)` |
|
|
78
|
+
* | `--text-color` | Cor do texto | `var(--color-neutral-dark-70)` | | --- |
|
|
79
|
+
* | `--outline-color-focused` | Cor do outline dos itens de sub-menu e customer | `var(--color-neutral-dark-95)` | | --- |
|
|
80
|
+
* | `--object-fit-brand` | Valor do object-fit da imagem do logo | `contain` | | --- |
|
|
81
|
+
* | `--object-fit-customer` | Valor do object-fit da imagem do logo na seção customer | `contain` | | --- |
|
|
82
|
+
* | `--object-fit-customer-user` | Valor do object-fit da imagem do avatar | `cover` | | --- |
|
|
83
|
+
* | **Header** | | |
|
|
84
|
+
* | `--background-color` | Cor de background do header | `var(--color-neutral-light-05)` |
|
|
85
|
+
* | `--border-radius-bottom-left` | Valor do radius do lado esquerdo do header | `var(--border-radius-md)` |
|
|
86
|
+
* | `--border-radius-bottom-right` | Valor do radius do lado direito do header | `var(--border-radius-md)` |
|
|
87
|
+
* | `--base shadow` | Cor da sombra do header | `0 1px 8px rgba(0, 0, 0, 0.1)` |
|
|
88
|
+
* | **Sub-menu** | | |
|
|
89
|
+
* | `--border-radius` | Valor do radius dos itens do sub-menu | `var(--border-radius-md);` |
|
|
90
|
+
* | `--text-color-submenu` | Cor do texto dos itens do sub-menu | `var(--color-brand-01-base)` |
|
|
91
|
+
* | `--icon-color` | Cor do ícone do sub-menu com itens | `var(--color-brand-01-base)` |
|
|
92
|
+
* | `--border-color` | Cor da borda | `var(--color-transparent)` |
|
|
93
|
+
* | `--shadow` | Contém o valor da sombra do elemento | `var(--shadow-none)` |
|
|
94
|
+
* | **Sub-menu - Hover** | | |
|
|
95
|
+
* | `--background-hover` | Cor de background dos itens do sub-menu no estado hover | `var(--color-brand-01-lighter)` |
|
|
96
|
+
* | `--icon-color-hover` | Cor do ícone dos itens de sub-menu no estado hover | `var(--color-brand-01-darkest)` |
|
|
97
|
+
* | `--text-color-hover` | Cor do texo dos itens de sub-menu no estado hover | `var(--color-brand-01-darkest)` |
|
|
98
|
+
* | **Sub-menu - pressed** | | |
|
|
99
|
+
* | `--background-pressed` | Cor de background dos itens do sub-menu no estado pressed | `var(--color-brand-01-light)` |
|
|
100
|
+
* | `--icon-color-pressed` | Cor do ícone dos itens de sub-menu no estado pressed | `var(--color-brand-01-darkest)` |
|
|
101
|
+
* | `--text-color-pressed` | Cor do texo dos itens de sub-menu no estado pressed | `var(--color-brand-01-darkest)` |
|
|
102
|
+
* | **Sub-menu - selected** | | |
|
|
103
|
+
* | `--background-selected` | Cor de background dos itens do sub-menu no estado selected | `var(--color-brand-01-light)` |
|
|
104
|
+
* | `--icon-color-selected` | Cor do ícone dos itens de sub-menu no estado selected | `var(--color-neutral-dark-95)` |
|
|
105
|
+
* | `--text-color-selected` | Cor do texo dos itens de sub-menu no estado selected | `var(--color-brand-01-darkest)` |
|
|
106
|
+
* | **Customer** | | |
|
|
107
|
+
* | `--background-color-customer` | Cor do background da seção customer | `var(--color-neutral-light-00)` |
|
|
108
|
+
* | `--border-color` | Cor da borda da seção customer | `var(--color-neutral-light-10)` |
|
|
109
|
+
* | `--border-style` | Estilo da borda da seção customer | `solid` |
|
|
110
|
+
* | `--border-width` | Largura da borda da seção customer | `var(--border-width-sm)` |
|
|
111
|
+
* | **Customer - hover** | | |
|
|
112
|
+
* | `--background-color-customer-hover` | Cor do background da seção customer no estado hover | `var(--color-brand-01-lighter)` |
|
|
113
|
+
* | `--background-color-customer-hover` | Cor do background da seção customer no estado hover | `var(--color-brand-01-lighter)` |
|
|
114
|
+
* | **Customer - pressed** | | |
|
|
115
|
+
* | `--background-color-customer-pressed` | Cor do background da seção customer no estado pressed | `var(--color-brand-01-light)` |
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
export declare abstract class PoHeaderBaseComponent {
|
|
119
|
+
private _menuItems;
|
|
120
|
+
menuCollapseJoin: any[];
|
|
121
|
+
menuCollapseJoinExternal: any[];
|
|
122
|
+
private _brand;
|
|
123
|
+
private _literals;
|
|
124
|
+
private language;
|
|
125
|
+
/**
|
|
126
|
+
* @optional
|
|
127
|
+
*
|
|
128
|
+
* @description
|
|
129
|
+
*
|
|
130
|
+
* Número de itens dentro do botão de overflow. Caso a largura do header não suportar a quantidade de itens passadas, um botão com itens será criado.
|
|
131
|
+
* Essa propriedade possibilita a escolha de quantos itens estarão dentro do botão de overflow.
|
|
132
|
+
*
|
|
133
|
+
* > Ao utilizar essa propriedade o `po-header` não irá realizar o calculo automatíco de itens.
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
136
|
+
amountMore?: number;
|
|
137
|
+
/**
|
|
138
|
+
* @optional
|
|
139
|
+
*
|
|
140
|
+
* @description
|
|
141
|
+
*
|
|
142
|
+
* Esconde o botão de menu colapsado.
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
145
|
+
hideButtonMenu?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* @optional
|
|
148
|
+
*
|
|
149
|
+
* @description
|
|
150
|
+
*
|
|
151
|
+
* Habilita campo para filtrar itens no menu
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
filterMenu?: boolean;
|
|
155
|
+
sideMenuOnlyAction?: boolean;
|
|
156
|
+
forceActionTools?: boolean;
|
|
157
|
+
notChangeContext?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* @optional
|
|
160
|
+
*
|
|
161
|
+
* @description
|
|
162
|
+
*
|
|
163
|
+
* Propriedade para configurar a seção de brand do `po-header`
|
|
164
|
+
*
|
|
165
|
+
* Caso seja enviada uma string, apenas o logo sera mostrado com o valor da string passada.
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
168
|
+
set brand(value: PoHeaderBrand | string);
|
|
169
|
+
get brand(): PoHeaderBrand | string;
|
|
170
|
+
/**
|
|
171
|
+
* @optional
|
|
172
|
+
*
|
|
173
|
+
* @description
|
|
174
|
+
*
|
|
175
|
+
* Propriedade para configurar a seção de tools do `po-header`
|
|
176
|
+
*
|
|
177
|
+
* > Máximo de 3 itens, o componente irá ignorar os itens caso seja mandado mais itens que o suportado.
|
|
178
|
+
*
|
|
179
|
+
*/
|
|
180
|
+
actionsTools: Array<PoHeaderActionTool>;
|
|
181
|
+
/**
|
|
182
|
+
* @optional
|
|
183
|
+
*
|
|
184
|
+
* @description
|
|
185
|
+
*
|
|
186
|
+
* Propriedade para configurar a seção de headerUser do `po-header`
|
|
187
|
+
*
|
|
188
|
+
*/
|
|
189
|
+
headerUser: PoHeaderUser;
|
|
190
|
+
/**
|
|
191
|
+
* @optional
|
|
192
|
+
*
|
|
193
|
+
* @description
|
|
194
|
+
*
|
|
195
|
+
* Propriedade para configurar a seção de menu do `po-header`.
|
|
196
|
+
* Cada item pode receber uma label e uma ação
|
|
197
|
+
*
|
|
198
|
+
* > Os itens irão ficar visíveis em uma tela de até 960px
|
|
199
|
+
*
|
|
200
|
+
*/
|
|
201
|
+
set menuItems(items: Array<PoHeaderActions>);
|
|
202
|
+
/**
|
|
203
|
+
* @optional
|
|
204
|
+
*
|
|
205
|
+
* @description
|
|
206
|
+
*
|
|
207
|
+
* Lista dos itens do menu. Se o valor estiver indefinido ou inválido, será inicializado como um array vazio.
|
|
208
|
+
*
|
|
209
|
+
* > O menu poderá ser aberto via botão hamburguer quando a tela tiver menos que 960px
|
|
210
|
+
*
|
|
211
|
+
*/
|
|
212
|
+
menuCollapse: Array<PoMenuItem>;
|
|
213
|
+
/**
|
|
214
|
+
* @optional
|
|
215
|
+
*
|
|
216
|
+
* @description
|
|
217
|
+
*
|
|
218
|
+
* Template customiado que será renderizado após os itens definidos na propriedade `p-menu-items`
|
|
219
|
+
*
|
|
220
|
+
*/
|
|
221
|
+
headerTemplate: TemplateRef<any>;
|
|
222
|
+
/**
|
|
223
|
+
* @optional
|
|
224
|
+
*
|
|
225
|
+
* @description
|
|
226
|
+
*
|
|
227
|
+
* Objeto com a literal usada na propriedade `p-literals`.
|
|
228
|
+
*
|
|
229
|
+
* Para customizar a literal, basta declarar um objeto do tipo `PoHeaderLiterals` conforme exemplo abaixo:
|
|
230
|
+
*
|
|
231
|
+
* ```
|
|
232
|
+
* const customLiterals: PoHeaderLiterals = {
|
|
233
|
+
* headerLinks: 'Itens de navegação',
|
|
234
|
+
* notifications: 'Mensagens'
|
|
235
|
+
* };
|
|
236
|
+
* ```
|
|
237
|
+
*
|
|
238
|
+
* E para carregar as literais customizadas, basta apenas passar o objeto para o componente.
|
|
239
|
+
*
|
|
240
|
+
* ```
|
|
241
|
+
* <po-header
|
|
242
|
+
* [p-literals]="customLiterals">
|
|
243
|
+
* </po-header>
|
|
244
|
+
* ```
|
|
245
|
+
*
|
|
246
|
+
* > O objeto padrão de literais será traduzido de acordo com o idioma do
|
|
247
|
+
* [`PoI18nService`](/documentation/po-i18n) ou do browser.
|
|
248
|
+
*/
|
|
249
|
+
set literals(value: PoHeaderLiterals);
|
|
250
|
+
get literals(): PoHeaderLiterals;
|
|
251
|
+
/**
|
|
252
|
+
* @optional
|
|
253
|
+
*
|
|
254
|
+
* @description
|
|
255
|
+
*
|
|
256
|
+
* Evento emitido ao clicar no botão para colapsar ou expandir menu.
|
|
257
|
+
*
|
|
258
|
+
*/
|
|
259
|
+
colapsedMenuEvent: EventEmitter<any>;
|
|
260
|
+
constructor(languageService: PoLanguageService);
|
|
261
|
+
get menuItems(): Array<PoHeaderActions>;
|
|
262
|
+
private generateRandomId;
|
|
263
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoHeaderBaseComponent, never>;
|
|
264
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PoHeaderBaseComponent, never, never, { "amountMore": { "alias": "p-amount-more"; "required": false; }; "hideButtonMenu": { "alias": "p-hide-button-menu"; "required": false; }; "filterMenu": { "alias": "p-filter-menu"; "required": false; }; "sideMenuOnlyAction": { "alias": "p-side-menu-only-action"; "required": false; }; "forceActionTools": { "alias": "p-force-actions-tools"; "required": false; }; "notChangeContext": { "alias": "p-not-change-context"; "required": false; }; "brand": { "alias": "p-brand"; "required": false; }; "actionsTools": { "alias": "p-actions-tools"; "required": false; }; "headerUser": { "alias": "p-header-user"; "required": false; }; "menuItems": { "alias": "p-menu-items"; "required": false; }; "menuCollapse": { "alias": "p-menus"; "required": false; }; "headerTemplate": { "alias": "p-header-template"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; }, { "colapsedMenuEvent": "p-colapsed-menu"; }, never, never, true, never>;
|
|
265
|
+
static ngAcceptInputType_filterMenu: any;
|
|
266
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { PoMenuItem } from '../../po-menu';
|
|
4
|
+
import { PoHeaderBrand } from '../interfaces/po-header-brand.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PoHeaderbrandComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
7
|
+
private cd;
|
|
8
|
+
private router;
|
|
9
|
+
private resizeSub;
|
|
10
|
+
showTitleTooltip: boolean;
|
|
11
|
+
smallLogo: boolean;
|
|
12
|
+
targetRef: ElementRef;
|
|
13
|
+
titleBrand: ElementRef;
|
|
14
|
+
brand: PoHeaderBrand;
|
|
15
|
+
clickMenu: EventEmitter<any>;
|
|
16
|
+
hideButtonMenu?: boolean;
|
|
17
|
+
menuCollapse: Array<PoMenuItem>;
|
|
18
|
+
externalMenu: boolean;
|
|
19
|
+
constructor(cd: ChangeDetectorRef, router: Router);
|
|
20
|
+
ngAfterViewInit(): void;
|
|
21
|
+
ngOnDestroy(): void;
|
|
22
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
23
|
+
onClickLogo(): void;
|
|
24
|
+
get showTooltip(): boolean;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoHeaderbrandComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoHeaderbrandComponent, "po-header-brand", never, { "brand": { "alias": "p-brand"; "required": false; }; "hideButtonMenu": { "alias": "p-hide-button-menu"; "required": false; }; "menuCollapse": { "alias": "p-menus"; "required": false; }; "externalMenu": { "alias": "p-external"; "required": false; }; }, { "clickMenu": "p-click-menu"; }, never, never, false, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PoPopoverComponent } from '../../po-popover';
|
|
2
|
+
import { PoPopupComponent } from '../../po-popup';
|
|
3
|
+
import { PoHeaderUser } from '../interfaces/po-header-user.interface';
|
|
4
|
+
import { PoLanguageService } from '../../../services';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare const poHeaderCustomerLiteralsDefault: {
|
|
7
|
+
en: {
|
|
8
|
+
labelUser: string;
|
|
9
|
+
};
|
|
10
|
+
es: {
|
|
11
|
+
labelUser: string;
|
|
12
|
+
};
|
|
13
|
+
pt: {
|
|
14
|
+
labelUser: string;
|
|
15
|
+
};
|
|
16
|
+
ru: {
|
|
17
|
+
labelUser: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare class PoHeaderCustomerComponent {
|
|
21
|
+
literals: any;
|
|
22
|
+
poPopupAction: PoPopupComponent;
|
|
23
|
+
poPopoverAction: PoPopoverComponent;
|
|
24
|
+
headerUser: PoHeaderUser;
|
|
25
|
+
constructor(languageService: PoLanguageService);
|
|
26
|
+
onClickPopup(): void;
|
|
27
|
+
onClickUserSection(): void;
|
|
28
|
+
onClickClosePopover(): void;
|
|
29
|
+
onKeyDownCustomer(event: any): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoHeaderCustomerComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoHeaderCustomerComponent, "po-header-customer", never, { "headerUser": { "alias": "p-header-user"; "required": false; }; }, {}, never, never, false, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { PoLanguageService } from '../../../services';
|
|
4
|
+
import { PoPopupComponent } from '../../po-popup';
|
|
5
|
+
import { PoHeaderActions } from '../interfaces/po-header-actions.interface';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare const poHeaderMoreLiteralsDefault: {
|
|
8
|
+
en: {
|
|
9
|
+
more: string;
|
|
10
|
+
};
|
|
11
|
+
es: {
|
|
12
|
+
more: string;
|
|
13
|
+
};
|
|
14
|
+
pt: {
|
|
15
|
+
more: string;
|
|
16
|
+
};
|
|
17
|
+
ru: {
|
|
18
|
+
more: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare class PoHeaderMenuItemComponent implements OnChanges, OnInit, OnDestroy {
|
|
22
|
+
private cd;
|
|
23
|
+
private router;
|
|
24
|
+
buttonMoreRef: any;
|
|
25
|
+
lastItemSelected: PoHeaderActions;
|
|
26
|
+
selectedItem: boolean;
|
|
27
|
+
literals: any;
|
|
28
|
+
private routeSubscription;
|
|
29
|
+
private resizeSubscription;
|
|
30
|
+
buttonMoreElement: ElementRef;
|
|
31
|
+
poPopupElement: PoPopupComponent;
|
|
32
|
+
item: PoHeaderActions;
|
|
33
|
+
itemOverFlow: Array<PoHeaderActions>;
|
|
34
|
+
overflowButton: boolean;
|
|
35
|
+
itemClick: EventEmitter<any>;
|
|
36
|
+
constructor(cd: ChangeDetectorRef, router: Router, languageService: PoLanguageService);
|
|
37
|
+
ngOnInit(): void;
|
|
38
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
39
|
+
ngOnDestroy(): void;
|
|
40
|
+
openListButtonMore(): void;
|
|
41
|
+
onKeyDownButtonMore(event: any): void;
|
|
42
|
+
onKeyDownButtonList(event: any, item: PoHeaderActions): void;
|
|
43
|
+
onAction(item: PoHeaderActions, itemDefault?: boolean): void;
|
|
44
|
+
onClosePopup(): void;
|
|
45
|
+
private checkActiveItemByUrl;
|
|
46
|
+
private checkRouterChildrenFragments;
|
|
47
|
+
private subscribeToRoute;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoHeaderMenuItemComponent, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoHeaderMenuItemComponent, "po-header-menu-item", never, { "item": { "alias": "p-item"; "required": false; }; "itemOverFlow": { "alias": "p-item-overflow"; "required": false; }; "overflowButton": { "alias": "p-button-overflow"; "required": false; }; }, { "itemClick": "p-item-click"; }, never, never, false, never>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { PoButtonComponent } from '../../po-button';
|
|
4
|
+
import { PoPopoverComponent } from '../../po-popover';
|
|
5
|
+
import { PoPopupComponent } from '../../po-popup';
|
|
6
|
+
import { PoHeaderActionTool } from '../interfaces/po-header-action-tool.interface';
|
|
7
|
+
import { PoHeaderLiterals } from '../interfaces/po-header-literals.interface';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class PoHeaderToolsComponent {
|
|
10
|
+
private router;
|
|
11
|
+
private cd;
|
|
12
|
+
_actionTools: Array<PoHeaderActionTool>;
|
|
13
|
+
buttonActionElements: QueryList<ElementRef>;
|
|
14
|
+
buttonActionComponents: QueryList<PoButtonComponent>;
|
|
15
|
+
poPopupActions: QueryList<PoPopupComponent>;
|
|
16
|
+
poPopoverActions: QueryList<PoPopoverComponent>;
|
|
17
|
+
forceActionTools?: boolean;
|
|
18
|
+
set actionTools(value: Array<PoHeaderActionTool>);
|
|
19
|
+
literals: PoHeaderLiterals;
|
|
20
|
+
get actionTools(): Array<PoHeaderActionTool>;
|
|
21
|
+
get popoverIndexes(): Array<number>;
|
|
22
|
+
headerTemplate: TemplateRef<any>;
|
|
23
|
+
constructor(router: Router, cd: ChangeDetectorRef);
|
|
24
|
+
onClickAction(index: number): void;
|
|
25
|
+
checkSelected(index: number): boolean;
|
|
26
|
+
onClosePopup(index: number): void;
|
|
27
|
+
getAriaLabel(action: PoHeaderActionTool): string;
|
|
28
|
+
private checkLink;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoHeaderToolsComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PoHeaderToolsComponent, "po-header-tools", never, { "forceActionTools": { "alias": "p-force-actions-tools"; "required": false; }; "actionTools": { "alias": "p-actions-tools"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "headerTemplate": { "alias": "p-header-template"; "required": false; }; }, {}, never, never, false, never>;
|
|
31
|
+
}
|