@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
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
|
|
3
|
-
import { PoThemeService } from '../../../services';
|
|
4
3
|
import { PoRadioGroupOption } from './po-radio-group-option.interface';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
/**
|
|
@@ -52,7 +51,6 @@ import * as i0 from "@angular/core";
|
|
|
52
51
|
*
|
|
53
52
|
*/
|
|
54
53
|
export declare abstract class PoRadioGroupBaseComponent implements ControlValueAccessor, Validator {
|
|
55
|
-
protected poThemeService: PoThemeService;
|
|
56
54
|
additionalHelpEventTrigger: string | undefined;
|
|
57
55
|
/**
|
|
58
56
|
* @optional
|
|
@@ -234,7 +232,6 @@ export declare abstract class PoRadioGroupBaseComponent implements ControlValueA
|
|
|
234
232
|
*/
|
|
235
233
|
set size(value: string);
|
|
236
234
|
get size(): string;
|
|
237
|
-
constructor(poThemeService: PoThemeService);
|
|
238
235
|
changeValue(changedValue: any): void;
|
|
239
236
|
setDisabledState(isDisabled: boolean): void;
|
|
240
237
|
registerOnChange(fn: any): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
2
|
-
import { PoThemeService } from '../../../services';
|
|
1
|
+
import { AfterViewInit, DoCheck, ElementRef, QueryList } from '@angular/core';
|
|
3
2
|
import { PoRadioComponent } from '../po-radio/po-radio.component';
|
|
4
3
|
import { PoRadioGroupBaseComponent } from './po-radio-group-base.component';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
@@ -30,7 +29,6 @@ import * as i0 from "@angular/core";
|
|
|
30
29
|
*
|
|
31
30
|
*/
|
|
32
31
|
export declare class PoRadioGroupComponent extends PoRadioGroupBaseComponent implements AfterViewInit, DoCheck {
|
|
33
|
-
protected poThemeService: PoThemeService;
|
|
34
32
|
private el;
|
|
35
33
|
private cd;
|
|
36
34
|
/** Label do campo. */
|
|
@@ -40,7 +38,7 @@ export declare class PoRadioGroupComponent extends PoRadioGroupBaseComponent imp
|
|
|
40
38
|
inputEl: ElementRef;
|
|
41
39
|
radioLabels: QueryList<PoRadioComponent>;
|
|
42
40
|
differ: any;
|
|
43
|
-
constructor(
|
|
41
|
+
constructor();
|
|
44
42
|
ngAfterViewInit(): void;
|
|
45
43
|
ngDoCheck(): void;
|
|
46
44
|
emitAdditionalHelp(): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
|
|
3
|
-
import { PoThemeService } from '../../../services';
|
|
4
3
|
import { PoRichTextToolbarActions } from './enum/po-rich-text-toolbar-actions.enum';
|
|
5
4
|
import { PoRichTextService } from './po-rich-text.service';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
@@ -15,7 +14,6 @@ import * as i0 from "@angular/core";
|
|
|
15
14
|
*/
|
|
16
15
|
export declare abstract class PoRichTextBaseComponent implements ControlValueAccessor, Validator {
|
|
17
16
|
private richTextService;
|
|
18
|
-
protected poThemeService: PoThemeService;
|
|
19
17
|
/**
|
|
20
18
|
* @optional
|
|
21
19
|
*
|
|
@@ -247,7 +245,7 @@ export declare abstract class PoRichTextBaseComponent implements ControlValueAcc
|
|
|
247
245
|
* - Não possuir `p-help` e/ou `p-label`.
|
|
248
246
|
*/
|
|
249
247
|
showRequired: boolean;
|
|
250
|
-
constructor(richTextService: PoRichTextService
|
|
248
|
+
constructor(richTextService: PoRichTextService);
|
|
251
249
|
registerOnChange(func: any): void;
|
|
252
250
|
registerOnTouched(func: any): void;
|
|
253
251
|
registerOnValidatorChange(fn: () => void): void;
|
package/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { PoRichTextService } from '../po-rich-text.service';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class PoRichTextBodyComponent implements OnInit, OnDestroy {
|
|
5
4
|
private richTextService;
|
|
@@ -23,7 +22,6 @@ export declare class PoRichTextBodyComponent implements OnInit, OnDestroy {
|
|
|
23
22
|
private timeoutChange;
|
|
24
23
|
private valueBeforeChange;
|
|
25
24
|
private modelSubscription;
|
|
26
|
-
constructor(richTextService: PoRichTextService);
|
|
27
25
|
ngOnInit(): void;
|
|
28
26
|
ngOnDestroy(): void;
|
|
29
27
|
executeCommand(command: string | {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { NgForm } from '@angular/forms';
|
|
3
|
-
import { PoLanguageService } from './../../../../services/po-language/po-language.service';
|
|
4
3
|
import { PoModalAction, PoModalComponent } from '../../../po-modal';
|
|
5
4
|
import { PoUploadFileRestrictions } from '../../po-upload/interfaces/po-upload-file-restriction.interface';
|
|
6
5
|
import { PoUploadComponent } from '../../po-upload/po-upload.component';
|
|
@@ -25,7 +24,7 @@ export declare class PoRichTextImageModalComponent {
|
|
|
25
24
|
modalConfirmAction: PoModalAction;
|
|
26
25
|
get isUploadValid(): boolean;
|
|
27
26
|
get isUrlValid(): boolean;
|
|
28
|
-
constructor(
|
|
27
|
+
constructor();
|
|
29
28
|
openModal(): void;
|
|
30
29
|
private cleanUpFields;
|
|
31
30
|
private convertToBase64;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { NgForm } from '@angular/forms';
|
|
3
|
-
import { PoLanguageService } from './../../../../services/po-language/po-language.service';
|
|
4
3
|
import { PoModalAction, PoModalComponent } from '../../../po-modal';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class PoRichTextLinkModalComponent implements OnInit {
|
|
@@ -24,7 +23,7 @@ export declare class PoRichTextLinkModalComponent implements OnInit {
|
|
|
24
23
|
private isSelectedLink;
|
|
25
24
|
private linkElement;
|
|
26
25
|
private savedSelection;
|
|
27
|
-
constructor(
|
|
26
|
+
constructor();
|
|
28
27
|
ngOnInit(): void;
|
|
29
28
|
linkConfirmAction(): string;
|
|
30
29
|
formModelValidate(): boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { PoLanguageService } from '../../../../services/po-language/po-language.service';
|
|
3
2
|
import { PoButtonGroupItem } from '../../../po-button-group';
|
|
4
3
|
import { PoRichTextToolbarActions } from '../enum/po-rich-text-toolbar-actions.enum';
|
|
5
4
|
import { PoRichTextToolbarButtonGroupItem } from '../interfaces/po-rich-text-toolbar-button-group-item.interface';
|
|
@@ -60,7 +59,7 @@ export declare class PoRichTextToolbarComponent implements AfterViewInit {
|
|
|
60
59
|
get readonly(): boolean;
|
|
61
60
|
get isInternetExplorer(): boolean;
|
|
62
61
|
size: string;
|
|
63
|
-
constructor(
|
|
62
|
+
constructor();
|
|
64
63
|
ngAfterViewInit(): void;
|
|
65
64
|
changeTextColor(value: any): void;
|
|
66
65
|
emitLinkEditing(isLinkEdit: boolean): void;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
2
|
-
import { PoThemeService } from '../../../services';
|
|
1
|
+
import { AfterViewInit, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
3
2
|
import { PoRichTextToolbarActions } from './enum/po-rich-text-toolbar-actions.enum';
|
|
4
3
|
import { PoRichTextBaseComponent } from './po-rich-text-base.component';
|
|
5
4
|
import { PoRichTextBodyComponent } from './po-rich-text-body/po-rich-text-body.component';
|
|
6
5
|
import { PoRichTextToolbarComponent } from './po-rich-text-toolbar/po-rich-text-toolbar.component';
|
|
7
|
-
import { PoRichTextService } from './po-rich-text.service';
|
|
8
6
|
import * as i0 from "@angular/core";
|
|
9
7
|
/**
|
|
10
8
|
* @docsExtends PoRichTextBaseComponent
|
|
@@ -29,14 +27,13 @@ import * as i0 from "@angular/core";
|
|
|
29
27
|
*/
|
|
30
28
|
export declare class PoRichTextComponent extends PoRichTextBaseComponent implements AfterViewInit, OnDestroy, OnInit, OnChanges {
|
|
31
29
|
private element;
|
|
32
|
-
protected poThemeService: PoThemeService;
|
|
33
30
|
bodyElement: PoRichTextBodyComponent;
|
|
34
31
|
richTextToolbar: PoRichTextToolbarComponent;
|
|
35
32
|
private listener;
|
|
36
33
|
private modelLastUpdate;
|
|
37
34
|
toolbarActions: Array<PoRichTextToolbarActions>;
|
|
38
35
|
get errorMsg(): string;
|
|
39
|
-
constructor(
|
|
36
|
+
constructor();
|
|
40
37
|
ngOnInit(): void;
|
|
41
38
|
ngOnChanges(changes: SimpleChanges): void;
|
|
42
39
|
ngAfterViewInit(): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { AbstractControl } from '@angular/forms';
|
|
3
|
-
import { PoThemeService } from '../../../services';
|
|
4
3
|
import { PoFieldValidateModel } from '../po-field-validate.model';
|
|
5
4
|
import { PoSelectOptionGroup } from './po-select-option-group.interface';
|
|
6
5
|
import { PoSelectOption } from './po-select-option.interface';
|
|
@@ -76,7 +75,6 @@ import * as i0 from "@angular/core";
|
|
|
76
75
|
export declare class PoSelectComponent extends PoFieldValidateModel<any> implements OnChanges {
|
|
77
76
|
private el;
|
|
78
77
|
renderer: Renderer2;
|
|
79
|
-
protected poThemeService: PoThemeService;
|
|
80
78
|
private _iconToken;
|
|
81
79
|
selectElement: ElementRef;
|
|
82
80
|
/**
|
|
@@ -208,9 +206,7 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
|
|
|
208
206
|
*/
|
|
209
207
|
set size(value: string);
|
|
210
208
|
get size(): string;
|
|
211
|
-
constructor(
|
|
212
|
-
[key: string]: string;
|
|
213
|
-
}, changeDetector: ChangeDetectorRef, el: ElementRef, renderer: Renderer2, poThemeService: PoThemeService);
|
|
209
|
+
constructor();
|
|
214
210
|
ngOnChanges(changes: SimpleChanges): void;
|
|
215
211
|
/**
|
|
216
212
|
* Função que atribui foco ao componente.
|
|
@@ -271,7 +267,7 @@ export declare class PoSelectComponent extends PoFieldValidateModel<any> impleme
|
|
|
271
267
|
private transformInArray;
|
|
272
268
|
private separateOptions;
|
|
273
269
|
private validateOptions;
|
|
274
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PoSelectComponent,
|
|
270
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoSelectComponent, never>;
|
|
275
271
|
static ɵcmp: i0.ɵɵComponentDeclaration<PoSelectComponent, "po-select", never, { "readonly": { "alias": "p-readonly"; "required": false; }; "placeholder": { "alias": "p-placeholder"; "required": false; }; "options": { "alias": "p-options"; "required": false; }; "fieldLabel": { "alias": "p-field-label"; "required": false; }; "fieldValue": { "alias": "p-field-value"; "required": false; }; "controlValueWithLabel": { "alias": "p-control-value-with-label"; "required": false; }; "size": { "alias": "p-size"; "required": false; }; }, { "blur": "p-blur"; "ngModelChange": "ngModelChange"; }, never, never, false, never>;
|
|
276
272
|
static ngAcceptInputType_readonly: any;
|
|
277
273
|
static ngAcceptInputType_controlValueWithLabel: any;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
-
import { PoThemeService } from '../../../services';
|
|
4
3
|
import { PoFieldModel } from '../po-field.model';
|
|
5
4
|
import { PoSwitchLabelPosition } from './po-switch-label-position.enum';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
@@ -78,7 +77,6 @@ import * as i0 from "@angular/core";
|
|
|
78
77
|
* </example>
|
|
79
78
|
*/
|
|
80
79
|
export declare class PoSwitchComponent extends PoFieldModel<any> implements Validator, AfterViewInit, OnDestroy {
|
|
81
|
-
protected poThemeService: PoThemeService;
|
|
82
80
|
private readonly changeDetector;
|
|
83
81
|
private readonly injector;
|
|
84
82
|
switchContainer: ElementRef;
|
|
@@ -194,7 +192,6 @@ export declare class PoSwitchComponent extends PoFieldModel<any> implements Vali
|
|
|
194
192
|
private readonly el;
|
|
195
193
|
private readonly injectOptions;
|
|
196
194
|
private control;
|
|
197
|
-
constructor(poThemeService: PoThemeService, changeDetector: ChangeDetectorRef, injector: Injector);
|
|
198
195
|
ngOnDestroy(): void;
|
|
199
196
|
/**
|
|
200
197
|
* Função que atribui foco ao componente.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
|
|
3
|
-
import { PoThemeService } from '../../../services';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
5
|
* @description
|
|
@@ -48,7 +47,6 @@ import * as i0 from "@angular/core";
|
|
|
48
47
|
*/
|
|
49
48
|
export declare abstract class PoTextareaBaseComponent implements ControlValueAccessor, Validator {
|
|
50
49
|
cd: ChangeDetectorRef;
|
|
51
|
-
protected poThemeService: PoThemeService;
|
|
52
50
|
additionalHelpEventTrigger: string | undefined;
|
|
53
51
|
/**
|
|
54
52
|
* @optional
|
|
@@ -281,7 +279,7 @@ export declare abstract class PoTextareaBaseComponent implements ControlValueAcc
|
|
|
281
279
|
*/
|
|
282
280
|
set size(value: string);
|
|
283
281
|
get size(): string;
|
|
284
|
-
constructor(cd: ChangeDetectorRef
|
|
282
|
+
constructor(cd: ChangeDetectorRef);
|
|
285
283
|
callOnChange(value: any): void;
|
|
286
284
|
controlChangeModelEmitter(value: any): void;
|
|
287
285
|
setDisabledState(isDisabled: boolean): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
2
|
-
import { PoThemeService } from '../../../services';
|
|
1
|
+
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
3
2
|
import { PoTextareaBaseComponent } from './po-textarea-base.component';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
@@ -30,12 +29,11 @@ import * as i0 from "@angular/core";
|
|
|
30
29
|
*/
|
|
31
30
|
export declare class PoTextareaComponent extends PoTextareaBaseComponent implements AfterViewInit {
|
|
32
31
|
private el;
|
|
33
|
-
protected poThemeService: PoThemeService;
|
|
34
32
|
inputEl: ElementRef;
|
|
35
33
|
id: string;
|
|
36
34
|
valueBeforeChange: any;
|
|
37
35
|
fireChange: boolean;
|
|
38
|
-
constructor(
|
|
36
|
+
constructor();
|
|
39
37
|
emitAdditionalHelp(): void;
|
|
40
38
|
/**
|
|
41
39
|
* Função que atribui foco ao componente.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, Validator } from '@angular/forms';
|
|
3
|
-
import { PoThemeService } from '../../../services';
|
|
4
3
|
import { PoLanguageService } from '../../../services/po-language/po-language.service';
|
|
5
4
|
import { PoProgressAction } from '../../po-progress';
|
|
6
5
|
import { PoUploadFileRestrictions } from './interfaces/po-upload-file-restriction.interface';
|
|
@@ -29,7 +28,6 @@ export declare const poUploadLiteralsDefault: {
|
|
|
29
28
|
* - Permite habilitar uma área onde os arquivos podem ser arrastados.
|
|
30
29
|
*/
|
|
31
30
|
export declare abstract class PoUploadBaseComponent implements ControlValueAccessor, Validator {
|
|
32
|
-
protected poThemeService: PoThemeService;
|
|
33
31
|
protected uploadService: PoUploadService;
|
|
34
32
|
additionalHelpEventTrigger: string | undefined;
|
|
35
33
|
/**
|
|
@@ -491,7 +489,7 @@ export declare abstract class PoUploadBaseComponent implements ControlValueAcces
|
|
|
491
489
|
*/
|
|
492
490
|
set size(value: string);
|
|
493
491
|
get size(): string;
|
|
494
|
-
constructor(
|
|
492
|
+
constructor(uploadService: PoUploadService, languageService: PoLanguageService);
|
|
495
493
|
setDisabledState(isDisabled: boolean): void;
|
|
496
494
|
registerOnChange(fn: any): void;
|
|
497
495
|
registerOnTouched(fn: any): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { HttpClient } from '@angular/common/http';
|
|
3
2
|
import { PoUploadFile } from './po-upload-file';
|
|
4
3
|
import { Observable, Subscription } from 'rxjs';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
@@ -7,7 +6,6 @@ export declare class PoUploadBaseService {
|
|
|
7
6
|
private http;
|
|
8
7
|
formField: string;
|
|
9
8
|
requests: Array<any>;
|
|
10
|
-
constructor(http: HttpClient);
|
|
11
9
|
/**
|
|
12
10
|
* Método responsável por enviar os arquivos ao servidor, conforme o parâmetro URL.
|
|
13
11
|
*
|
|
@@ -2,7 +2,7 @@ import { ElementRef, EventEmitter } from '@angular/core';
|
|
|
2
2
|
import { PoUploadLiterals } from '../../interfaces/po-upload-literals.interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PoUploadDragDropAreaComponent {
|
|
5
|
-
elementRef: ElementRef
|
|
5
|
+
elementRef: ElementRef<any>;
|
|
6
6
|
directoryCompatible: boolean;
|
|
7
7
|
disabled: boolean;
|
|
8
8
|
height: number;
|
|
@@ -10,7 +10,6 @@ export declare class PoUploadDragDropAreaComponent {
|
|
|
10
10
|
overlay: boolean;
|
|
11
11
|
selectFiles: EventEmitter<any>;
|
|
12
12
|
selectFilesLinkElement: ElementRef;
|
|
13
|
-
constructor(elementRef: ElementRef);
|
|
14
13
|
focus(): void;
|
|
15
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoUploadDragDropAreaComponent, never>;
|
|
16
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<PoUploadDragDropAreaComponent, "po-upload-drag-drop-area", never, { "directoryCompatible": { "alias": "p-directory-compatible"; "required": false; }; "disabled": { "alias": "p-disabled"; "required": false; }; "height": { "alias": "p-height"; "required": false; }; "literals": { "alias": "p-literals"; "required": false; }; "overlay": { "alias": "p-overlay"; "required": false; }; }, { "selectFiles": "p-select-files"; }, never, never, false, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, EventEmitter
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { PoUploadLiterals } from '../../interfaces/po-upload-literals.interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PoUploadDragDropAreaOverlayComponent implements AfterViewInit {
|
|
@@ -9,7 +9,6 @@ export declare class PoUploadDragDropAreaOverlayComponent implements AfterViewIn
|
|
|
9
9
|
literals: PoUploadLiterals;
|
|
10
10
|
target: ElementRef;
|
|
11
11
|
areaElement: EventEmitter<any>;
|
|
12
|
-
constructor(renderer: Renderer2);
|
|
13
12
|
ngAfterViewInit(): void;
|
|
14
13
|
private setPosition;
|
|
15
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<PoUploadDragDropAreaOverlayComponent, never>;
|
package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.component.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { PoUploadDragDropAreaComponent } from './po-upload-drag-drop-area/po-upload-drag-drop-area.component';
|
|
3
3
|
import { PoUploadLiterals } from '../interfaces/po-upload-literals.interface';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -16,7 +16,6 @@ export declare class PoUploadDragDropComponent {
|
|
|
16
16
|
private _dragDropHeight?;
|
|
17
17
|
set dragDropHeight(value: number);
|
|
18
18
|
get dragDropHeight(): number;
|
|
19
|
-
constructor(changeDetector: ChangeDetectorRef);
|
|
20
19
|
focus(): void;
|
|
21
20
|
onAreaElement(element: HTMLElement): void;
|
|
22
21
|
onDragLeave(): void;
|
package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.directive.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { PoI18nPipe } from '../../../../services/po-i18n/po-i18n.pipe';
|
|
3
|
-
import { PoNotificationService } from '../../../../services/po-notification/po-notification.service';
|
|
4
2
|
import { PoUploadLiterals } from '../interfaces/po-upload-literals.interface';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class PoUploadDragDropDirective {
|
|
@@ -16,7 +14,6 @@ export declare class PoUploadDragDropDirective {
|
|
|
16
14
|
timeout: any;
|
|
17
15
|
private files;
|
|
18
16
|
private invalidFileType;
|
|
19
|
-
constructor(i18nPipe: PoI18nPipe, notification: PoNotificationService);
|
|
20
17
|
onDragLeave(event: any): void;
|
|
21
18
|
onDragOver(event: any): void;
|
|
22
19
|
onDrop(event: any): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PoLanguageService } from '../../../../services/po-language/po-language.service';
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class PoUploadFileRestrictionsComponent implements OnInit {
|
|
5
4
|
private changeDetector;
|
|
@@ -15,7 +14,7 @@ export declare class PoUploadFileRestrictionsComponent implements OnInit {
|
|
|
15
14
|
get maxFileSize(): string;
|
|
16
15
|
set minFileSize(value: string);
|
|
17
16
|
get minFileSize(): string;
|
|
18
|
-
constructor(
|
|
17
|
+
constructor();
|
|
19
18
|
ngOnInit(): void;
|
|
20
19
|
private formatAllowedExtensions;
|
|
21
20
|
private setLiterals;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
2
|
-
import { PoI18nPipe } from '../../../services/po-i18n/po-i18n.pipe';
|
|
3
|
-
import { PoLanguageService } from '../../../services/po-language/po-language.service';
|
|
4
|
-
import { PoNotificationService } from '../../../services/po-notification/po-notification.service';
|
|
1
|
+
import { AfterViewInit, Renderer2 } from '@angular/core';
|
|
5
2
|
import { PoProgressStatus } from '../../po-progress/enums/po-progress-status.enum';
|
|
6
3
|
import { PoButtonComponent } from './../../po-button/po-button.component';
|
|
7
|
-
import { PoThemeService } from '../../../services';
|
|
8
4
|
import { PoUploadBaseComponent } from './po-upload-base.component';
|
|
9
5
|
import { PoUploadFile } from './po-upload-file';
|
|
10
6
|
import { PoUploadStatus } from './po-upload-status.enum';
|
|
11
|
-
import { PoUploadService } from './po-upload.service';
|
|
12
7
|
import * as i0 from "@angular/core";
|
|
13
8
|
/**
|
|
14
9
|
* @docsExtends PoUploadBaseComponent
|
|
@@ -45,7 +40,6 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
|
|
|
45
40
|
private i18nPipe;
|
|
46
41
|
private notification;
|
|
47
42
|
private cd;
|
|
48
|
-
protected poThemeService: PoThemeService;
|
|
49
43
|
private inputFile;
|
|
50
44
|
private poUploadDragDropComponent;
|
|
51
45
|
uploadButton: PoButtonComponent;
|
|
@@ -61,7 +55,7 @@ export declare class PoUploadComponent extends PoUploadBaseComponent implements
|
|
|
61
55
|
2: PoProgressStatus;
|
|
62
56
|
};
|
|
63
57
|
private calledByCleanInputValue;
|
|
64
|
-
constructor(
|
|
58
|
+
constructor();
|
|
65
59
|
get displayDragDrop(): boolean;
|
|
66
60
|
get displaySendButton(): boolean;
|
|
67
61
|
get selectFileButtonLabel(): string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
1
|
+
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { AbstractControl } from '@angular/forms';
|
|
3
|
-
import { PoThemeService } from '../../../services';
|
|
4
3
|
import { PoInputGeneric } from '../po-input-generic/po-input-generic';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
/**
|
|
@@ -29,14 +28,13 @@ import * as i0 from "@angular/core";
|
|
|
29
28
|
*
|
|
30
29
|
*/
|
|
31
30
|
export declare class PoUrlComponent extends PoInputGeneric implements AfterViewInit, OnDestroy {
|
|
32
|
-
protected poThemeService: PoThemeService;
|
|
33
31
|
id: string;
|
|
34
32
|
icon: string;
|
|
35
33
|
type: string;
|
|
36
34
|
pattern: string;
|
|
37
35
|
mask: string;
|
|
38
36
|
private listener;
|
|
39
|
-
constructor(
|
|
37
|
+
constructor();
|
|
40
38
|
ngAfterViewInit(): void;
|
|
41
39
|
ngOnDestroy(): void;
|
|
42
40
|
extraValidation(c: AbstractControl): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef,
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class PoGridCellComponent {
|
|
4
4
|
private changeDetectorRef;
|
|
@@ -19,7 +19,6 @@ export declare class PoGridCellComponent {
|
|
|
19
19
|
get width(): string | number;
|
|
20
20
|
set value(value: any);
|
|
21
21
|
get value(): any;
|
|
22
|
-
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
23
22
|
onKeyDownContent(event: any): void;
|
|
24
23
|
dblclick(event: any): void;
|
|
25
24
|
onBlurInput(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { PoGridRowActions } from './po-grid-row-actions.interface';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
@@ -64,7 +64,7 @@ export declare class PoGridComponent implements OnDestroy {
|
|
|
64
64
|
*/
|
|
65
65
|
set columns(value: Array<any>);
|
|
66
66
|
get columns(): Array<any>;
|
|
67
|
-
constructor(
|
|
67
|
+
constructor();
|
|
68
68
|
ngOnDestroy(): void;
|
|
69
69
|
get freezeColumns(): any[];
|
|
70
70
|
get actionColumns(): any[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './interfaces/po-header-action-tool.interface';
|
|
2
|
+
export * from './interfaces/po-header-actions.interface';
|
|
3
|
+
export * from './interfaces/po-header-brand.interface';
|
|
4
|
+
export * from './interfaces/po-header-user.interface';
|
|
5
|
+
export * from './interfaces/po-header-literals.interface';
|
|
6
|
+
export * from './po-header.component';
|
|
7
|
+
export * from './po-header.module';
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* @usedBy PoHeaderComponent
|
|
4
|
+
*
|
|
5
|
+
* @description
|
|
6
|
+
*
|
|
7
|
+
* *Interface* que define a seção de Actions do header.
|
|
8
|
+
*
|
|
9
|
+
* Indicação de uso:
|
|
10
|
+
* - Primeira ação destinada à app launcher.
|
|
11
|
+
* - Segunda ação (terceiro ícone) destinada à notificações.
|
|
12
|
+
* - Terceira ação (segundo ícone) destinada para agrupamento de ações.
|
|
13
|
+
*
|
|
14
|
+
* > Caso seja passado items e popover, o componente irá renderizar o popover e os itens serão ignorados.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export interface PoHeaderActionTool {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @optional
|
|
21
|
+
*
|
|
22
|
+
* @description
|
|
23
|
+
*
|
|
24
|
+
* Título da ação
|
|
25
|
+
*/
|
|
26
|
+
label?: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @optional
|
|
30
|
+
*
|
|
31
|
+
* @description
|
|
32
|
+
*
|
|
33
|
+
* Texto que será apresentado na tooltip
|
|
34
|
+
*/
|
|
35
|
+
tooltip?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @optional
|
|
39
|
+
*
|
|
40
|
+
* @description
|
|
41
|
+
*
|
|
42
|
+
* Ícone do botão de ação
|
|
43
|
+
*/
|
|
44
|
+
icon?: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @optional
|
|
48
|
+
*
|
|
49
|
+
* @description
|
|
50
|
+
*
|
|
51
|
+
* Template que será utilizado na ação
|
|
52
|
+
*/
|
|
53
|
+
popover?: PoHeaderActionPopoverAction;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @optional
|
|
57
|
+
*
|
|
58
|
+
* @description
|
|
59
|
+
*
|
|
60
|
+
* Evento emitido ao clicar em uma ação
|
|
61
|
+
*
|
|
62
|
+
* Exemplo: `action: this.myFunction.bind(this)`
|
|
63
|
+
*/
|
|
64
|
+
action?: Function;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @optional
|
|
68
|
+
*
|
|
69
|
+
* @description
|
|
70
|
+
*
|
|
71
|
+
* Itens de ações
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
items?: Array<PoHeaderActionToolItem>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @optional
|
|
78
|
+
*
|
|
79
|
+
* @description
|
|
80
|
+
*
|
|
81
|
+
* Valor númerico com a repsentação de notificações
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
badge?: number;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
*
|
|
88
|
+
* @description
|
|
89
|
+
*
|
|
90
|
+
* link utilizado no redirecionamento das páginas.
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
link?: string;
|
|
94
|
+
$selected?: any;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* @usedBy PoHeaderComponent
|
|
98
|
+
*
|
|
99
|
+
* @description
|
|
100
|
+
*
|
|
101
|
+
* *Interface* que define um template para uma ação.
|
|
102
|
+
*
|
|
103
|
+
*/
|
|
104
|
+
export interface PoHeaderActionPopoverAction {
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @description
|
|
108
|
+
*
|
|
109
|
+
* Template que será renderizado dentro do popover
|
|
110
|
+
*/
|
|
111
|
+
content: TemplateRef<any>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* @usedBy PoHeaderComponent
|
|
115
|
+
*
|
|
116
|
+
* @description
|
|
117
|
+
*
|
|
118
|
+
* *Interface* que define uma lista de ações.
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
121
|
+
export interface PoHeaderActionToolItem {
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @description
|
|
125
|
+
*
|
|
126
|
+
* Label da ação
|
|
127
|
+
*/
|
|
128
|
+
label: string;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @description
|
|
132
|
+
*
|
|
133
|
+
* Evento emitido ao clicar em uma ação
|
|
134
|
+
*
|
|
135
|
+
* Exemplo: `action: this.myFunction.bind(this)`
|
|
136
|
+
*/
|
|
137
|
+
action: Function;
|
|
138
|
+
}
|