@po-ui/ng-components 21.7.0 → 21.9.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 +5175 -564
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/po-accordion/po-accordion-base.component.d.ts +1 -1
- package/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.d.ts +3 -3
- package/lib/components/po-accordion/po-accordion-item-header/po-accordion-item-header.component.d.ts +1 -1
- package/lib/components/po-accordion/po-accordion.component.d.ts +1 -1
- package/lib/components/po-accordion/services/po-accordion.service.d.ts +1 -1
- package/lib/components/po-badge/po-badge.component.d.ts +1 -1
- package/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.component.d.ts +2 -2
- package/lib/components/po-breadcrumb/po-breadcrumb-favorite/po-breadcrumb-favorite.service.d.ts +1 -1
- package/lib/components/po-breadcrumb/po-breadcrumb.component.d.ts +2 -2
- package/lib/components/po-button/po-button-base.component.d.ts +10 -8
- package/lib/components/po-button-group/po-button-group-base.component.d.ts +0 -2
- package/lib/components/po-calendar/constants/po-calendar-range-presets.constant.d.ts +2 -0
- package/lib/components/po-calendar/index.d.ts +2 -0
- package/lib/components/po-calendar/interfaces/po-calendar-range-preset.interface.d.ts +16 -0
- package/lib/components/po-calendar/po-calendar-base.component.d.ts +56 -2
- package/lib/components/po-calendar/po-calendar-footer/po-calendar-footer.component.d.ts +16 -0
- package/lib/components/po-calendar/po-calendar-preset-list/po-calendar-preset-list.component.d.ts +28 -0
- package/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.d.ts +12 -6
- package/lib/components/po-calendar/po-calendar.component.d.ts +29 -4
- package/lib/components/po-calendar/services/po-calendar.lang.service.d.ts +9 -7
- package/lib/components/po-context-menu/index.d.ts +3 -0
- package/lib/components/po-context-menu/po-context-menu-base.component.d.ts +92 -0
- package/lib/components/po-context-menu/po-context-menu-item.interface.d.ts +15 -0
- package/lib/components/po-context-menu/po-context-menu.component.d.ts +51 -0
- package/lib/components/po-context-menu/po-context-menu.module.d.ts +7 -0
- package/lib/components/po-disclaimer/po-disclaimer-base.component.d.ts +1 -1
- package/lib/components/po-disclaimer-group/po-disclaimer-group-base.component.d.ts +1 -1
- package/lib/components/po-disclaimer-group/po-disclaimer-group.component.d.ts +1 -1
- package/lib/components/po-dropdown/po-dropdown.component.d.ts +3 -3
- package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts +58 -7
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields-base.component.d.ts +1 -1
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-operation/po-dynamic-form-operation.d.ts +1 -1
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.d.ts +4 -4
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.d.ts +5 -5
- package/lib/components/po-dynamic/po-dynamic-view/services/po-dynamic-view.service.d.ts +1 -1
- package/lib/components/po-field/index.d.ts +3 -0
- package/lib/components/po-field/po-checkbox/po-checkbox-base.component.d.ts +0 -6
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group-base.component.d.ts +0 -6
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +2 -2
- package/lib/components/po-field/po-combo/po-combo-base.component.d.ts +1 -7
- package/lib/components/po-field/po-combo/po-combo-filter.service.d.ts +1 -1
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +3 -3
- package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +0 -6
- package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +3 -3
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +56 -8
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +24 -6
- package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +4 -4
- package/lib/components/po-field/po-email/po-email.component.d.ts +1 -1
- package/lib/components/po-field/po-field-container/po-field-container-bottom/po-field-container-bottom.component.d.ts +1 -1
- package/lib/components/po-field/po-field-container/po-field-container.component.d.ts +0 -2
- package/lib/components/po-field/po-input/po-input-base.component.d.ts +0 -6
- package/lib/components/po-field/po-lookup/po-lookup-base.component.d.ts +0 -6
- package/lib/components/po-field/po-lookup/po-lookup-modal/po-lookup-modal-base.component.d.ts +1 -1
- package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +3 -3
- package/lib/components/po-field/po-lookup/services/po-lookup-filter.service.d.ts +1 -1
- package/lib/components/po-field/po-lookup/services/po-lookup-modal.service.d.ts +1 -1
- package/lib/components/po-field/po-multiselect/po-multiselect-base.component.d.ts +1 -7
- package/lib/components/po-field/po-multiselect/po-multiselect-dropdown/po-multiselect-dropdown.component.d.ts +1 -1
- 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 +5 -5
- package/lib/components/po-field/po-radio/po-radio.component.d.ts +2 -2
- package/lib/components/po-field/po-radio-group/po-radio-group-base.component.d.ts +1 -7
- package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +1 -1
- package/lib/components/po-field/po-rich-text/po-rich-text-base.component.d.ts +0 -6
- package/lib/components/po-field/po-rich-text/po-rich-text-body/po-rich-text-body.component.d.ts +2 -2
- package/lib/components/po-field/po-rich-text/po-rich-text-image-modal/po-rich-text-image-modal.component.d.ts +1 -1
- package/lib/components/po-field/po-rich-text/po-rich-text-link-modal/po-rich-text-link-modal.component.d.ts +1 -1
- package/lib/components/po-field/po-rich-text/po-rich-text-toolbar/po-rich-text-toolbar.component.d.ts +1 -1
- package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +2 -2
- package/lib/components/po-field/po-rich-text/po-rich-text.service.d.ts +1 -1
- package/lib/components/po-field/po-select/po-select.component.d.ts +1 -7
- package/lib/components/po-field/po-switch/po-switch.component.d.ts +0 -7
- package/lib/components/po-field/po-textarea/po-textarea-base.component.d.ts +0 -6
- package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +3 -2
- package/lib/components/po-field/po-timepicker/enums/po-timepicker-iso-format.enum.d.ts +13 -0
- package/lib/components/po-field/po-timepicker/index.d.ts +3 -0
- package/lib/components/po-field/po-timepicker/po-timepicker-base.component.d.ts +374 -0
- package/lib/components/po-field/po-timepicker/po-timepicker.component.d.ts +206 -0
- package/lib/components/po-field/po-timepicker/po-timepicker.literals.d.ts +46 -0
- package/lib/components/po-field/po-timepicker/po-timepicker.module.d.ts +7 -0
- package/lib/components/po-field/po-upload/po-upload-base.component.d.ts +1 -7
- package/lib/components/po-field/po-upload/po-upload-base.service.d.ts +1 -1
- 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 -1
- package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.component.d.ts +1 -1
- package/lib/components/po-field/po-upload/po-upload-drag-drop/po-upload-drag-drop.directive.d.ts +2 -2
- package/lib/components/po-field/po-upload/po-upload-file-restrictions/po-upload-file-restrictions.component.d.ts +2 -2
- package/lib/components/po-field/po-upload/po-upload.component.d.ts +4 -4
- package/lib/components/po-field/po-url/po-url.component.d.ts +1 -1
- package/lib/components/po-grid/po-grid-cell/po-grid-cell.component.d.ts +1 -1
- package/lib/components/po-grid/po-grid.component.d.ts +3 -3
- package/lib/components/po-header/po-header-base.component.d.ts +31 -5
- package/lib/components/po-header/po-header-brand/po-header-brand.component.d.ts +3 -2
- package/lib/components/po-header/po-header-customer/po-header-customer.component.d.ts +1 -0
- package/lib/components/po-header/po-header-menu-item/po-header-menu-item.component.d.ts +3 -2
- package/lib/components/po-header/po-header-tools/po-header-tools.component.d.ts +3 -2
- package/lib/components/po-header/po-header.component.d.ts +4 -4
- package/lib/components/po-helper/po-helper-base.component.d.ts +0 -8
- package/lib/components/po-icon/po-icon.component.d.ts +1 -1
- package/lib/components/po-list-view/po-list-view-base.component.d.ts +1 -1
- package/lib/components/po-list-view/po-list-view.component.d.ts +2 -2
- package/lib/components/po-listbox/po-item-list/po-item-list-base.component.d.ts +2 -2
- package/lib/components/po-listbox/po-listbox-base.component.d.ts +1 -1
- package/lib/components/po-listbox/po-search-list/po-search-list.component.d.ts +1 -1
- package/lib/components/po-loading/po-loading-overlay/po-loading-overlay-base.component.d.ts +1 -1
- package/lib/components/po-menu/po-menu-base.component.d.ts +13 -1
- package/lib/components/po-menu/po-menu-item/po-menu-item.component.d.ts +1 -1
- package/lib/components/po-menu/po-menu.component.d.ts +5 -4
- package/lib/components/po-menu/services/po-menu-global.service.d.ts +5 -5
- package/lib/components/po-menu/services/po-menu-items.service.d.ts +2 -2
- package/lib/components/po-menu/services/po-menu.service.d.ts +1 -1
- package/lib/components/po-menu-panel/po-menu-panel-item/po-menu-panel-item.component.d.ts +1 -1
- package/lib/components/po-menu-panel/po-menu-panel.component.d.ts +3 -3
- package/lib/components/po-menu-panel/services/po-menu-panel-items.service.d.ts +2 -2
- package/lib/components/po-modal/po-modal.component.d.ts +3 -3
- package/lib/components/po-navbar/po-navbar-actions/po-navbar-action/po-navbar-action.component.d.ts +1 -1
- package/lib/components/po-navbar/po-navbar-base.component.d.ts +1 -1
- package/lib/components/po-navbar/po-navbar-items/po-navbar-items.component.d.ts +1 -1
- package/lib/components/po-navbar/po-navbar.component.d.ts +7 -7
- package/lib/components/po-page/po-page-default/po-page-default.component.d.ts +3 -3
- package/lib/components/po-page/po-page-detail/po-page-detail-base.component.d.ts +1 -1
- package/lib/components/po-page/po-page-edit/po-page-edit-base.component.d.ts +1 -1
- package/lib/components/po-page/po-page-list/po-page-list.component.d.ts +3 -3
- package/lib/components/po-page/po-page-slide/po-page-slide.component.d.ts +4 -4
- package/lib/components/po-popover/po-popover-base.component.d.ts +0 -2
- package/lib/components/po-popover/po-popover.component.d.ts +2 -1
- package/lib/components/po-popup/po-popup.component.d.ts +4 -4
- package/lib/components/po-progress/po-progress.component.d.ts +2 -2
- package/lib/components/po-search/po-search.component.d.ts +0 -1
- package/lib/components/po-skeleton/po-skeleton-base.component.d.ts +0 -23
- package/lib/components/po-slide/po-slide.component.d.ts +4 -4
- package/lib/components/po-stepper/po-step/po-step.component.d.ts +1 -1
- package/lib/components/po-stepper/po-stepper-label/po-stepper-label.component.d.ts +3 -3
- package/lib/components/po-stepper/po-stepper.component.d.ts +1 -1
- package/lib/components/po-table/po-table-base.component.d.ts +3 -3
- package/lib/components/po-table/po-table-column-frozen/po-table-column-frozen.directive.d.ts +2 -2
- package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +2 -2
- package/lib/components/po-table/po-table-detail/po-table-detail.component.d.ts +1 -1
- package/lib/components/po-table/po-table-list-manager/po-table-list-manager.component.d.ts +2 -2
- package/lib/components/po-table/po-table-subtitle-circle/po-table-subtitle-circle.component.d.ts +1 -1
- package/lib/components/po-table/po-table-subtitle-footer/po-table-subtitle-footer.component.d.ts +1 -1
- package/lib/components/po-table/po-table.component.d.ts +6 -6
- package/lib/components/po-table/services/po-table.service.d.ts +1 -1
- package/lib/components/po-tabs/po-tab/po-tab-base.component.d.ts +11 -1
- package/lib/components/po-tabs/po-tab/po-tab.component.d.ts +1 -1
- package/lib/components/po-tabs/po-tab-button/po-tab-button.component.d.ts +1 -1
- package/lib/components/po-tabs/po-tab-dropdown/po-tab-dropdown.component.d.ts +1 -1
- package/lib/components/po-tabs/po-tabs.component.d.ts +22 -2
- package/lib/components/po-tabs/po-tabs.service.d.ts +2 -2
- package/lib/components/po-tag/po-tag-base.component.d.ts +1 -1
- package/lib/components/po-tag/po-tag.component.d.ts +2 -2
- package/lib/components/po-timer/enums/po-timer-format.enum.d.ts +13 -0
- package/lib/components/po-timer/index.d.ts +4 -0
- package/lib/components/po-timer/po-timer-base.component.d.ts +255 -0
- package/lib/components/po-timer/po-timer-scroll.helper.d.ts +40 -0
- package/lib/components/po-timer/po-timer.component.d.ts +208 -0
- package/lib/components/po-timer/po-timer.literals.d.ts +22 -0
- package/lib/components/po-timer/po-timer.module.d.ts +6 -0
- package/lib/components/po-toaster/po-toaster-base.component.d.ts +1 -1
- package/lib/components/po-toaster/po-toaster.component.d.ts +1 -1
- package/lib/components/po-toolbar/po-toolbar-notification/po-toolbar-notification.component.d.ts +1 -1
- package/lib/components/po-toolbar/po-toolbar.component.d.ts +1 -1
- package/lib/components/po-tree-view/po-tree-view-item/po-tree-view-item.component.d.ts +1 -1
- package/lib/components/po-tree-view/po-tree-view.component.d.ts +1 -1
- package/lib/components/po-tree-view/services/po-tree-view.service.d.ts +2 -2
- package/lib/components/po-widget/po-widget-base.component.d.ts +0 -4
- package/lib/directives/po-tooltip/po-tooltip.directive.d.ts +4 -4
- package/lib/interceptors/po-http-interceptor/po-http-interceptor-base.service.d.ts +3 -3
- package/lib/interceptors/po-http-interceptor/po-http-interceptor-detail/po-http-interceptor-detail.component.d.ts +3 -3
- package/lib/interceptors/po-http-request/po-http-request-interceptor.service.d.ts +2 -2
- package/lib/services/po-component-injector/po-component-injector.service.d.ts +3 -3
- package/lib/services/po-control-position/po-control-position.service.d.ts +2 -2
- package/lib/services/po-dialog/po-dialog.component.d.ts +1 -1
- package/lib/services/po-dialog/po-dialog.service.d.ts +1 -1
- package/lib/services/po-i18n/po-i18n-base.service.d.ts +3 -3
- package/lib/services/po-media-query/po-media-query.service.d.ts +1 -1
- package/lib/services/po-notification/po-notification.service.d.ts +1 -1
- package/lib/services/po-theme/po-theme.service.d.ts +2 -2
- package/package.json +4 -4
- package/po-ui-ng-components-21.9.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/v16/index.js +1 -1
- package/schematics/ng-update/v17/index.js +1 -1
- package/schematics/ng-update/v18/index.js +2 -2
- package/schematics/ng-update/v19/index.js +2 -2
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v20/index.js +2 -2
- package/schematics/ng-update/v21/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/types/po-ui-ng-components.d.ts +1914 -419
- package/po-ui-ng-components-21.7.0.tgz +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { WritableSignal } from '@angular/core';
|
|
2
|
+
import { PoContextMenuBaseComponent } from './po-context-menu-base.component';
|
|
3
|
+
import { PoContextMenuItem } from './po-context-menu-item.interface';
|
|
4
|
+
interface PoContextMenuLiterals {
|
|
5
|
+
close: string;
|
|
6
|
+
open: string;
|
|
7
|
+
}
|
|
8
|
+
interface PoInternalContextMenuItem extends PoContextMenuItem {
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @docsExtends PoContextMenuBaseComponent
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
*
|
|
16
|
+
* <example name="po-context-menu-basic" title="PO Context Menu Basic">
|
|
17
|
+
* <file name="sample-po-context-menu-basic/sample-po-context-menu-basic.component.html"> </file>
|
|
18
|
+
* <file name="sample-po-context-menu-basic/sample-po-context-menu-basic.component.ts"> </file>
|
|
19
|
+
* </example>
|
|
20
|
+
*
|
|
21
|
+
* <example name="po-context-menu-labs" title="PO Context Menu Labs">
|
|
22
|
+
* <file name="sample-po-context-menu-labs/sample-po-context-menu-labs.component.html"> </file>
|
|
23
|
+
* <file name="sample-po-context-menu-labs/sample-po-context-menu-labs.component.ts"> </file>
|
|
24
|
+
* </example>
|
|
25
|
+
*
|
|
26
|
+
* <example name="po-context-menu-user" title="PO Context - Cadastro de Usuário">
|
|
27
|
+
* <file name="sample-po-context-menu-user/sample-po-context-menu-user.component.html"> </file>
|
|
28
|
+
* <file name="sample-po-context-menu-user/sample-po-context-menu-user.component.ts"> </file>
|
|
29
|
+
* <file name="sample-po-context-menu-user/sample-po-context-menu-user.component.css"> </file>
|
|
30
|
+
* </example>
|
|
31
|
+
*/
|
|
32
|
+
export declare class PoContextMenuComponent extends PoContextMenuBaseComponent {
|
|
33
|
+
private readonly languageService;
|
|
34
|
+
literals: PoContextMenuLiterals;
|
|
35
|
+
protected _items: WritableSignal<PoInternalContextMenuItem[]>;
|
|
36
|
+
protected _titleTooltipCalculated: boolean;
|
|
37
|
+
protected _contextTitleTooltipCalculated: boolean;
|
|
38
|
+
protected titleTooltip: WritableSignal<string>;
|
|
39
|
+
protected contextTitleTooltip: WritableSignal<string>;
|
|
40
|
+
constructor();
|
|
41
|
+
toggleExpand(): void;
|
|
42
|
+
selectItem(item: PoContextMenuItem): void;
|
|
43
|
+
protected handlerItemTooltip(item: PoInternalContextMenuItem, value: HTMLLIElement): void;
|
|
44
|
+
protected handlerTitleTooltip(value: HTMLElement): void;
|
|
45
|
+
protected handlerContextTitleTooltip(value: HTMLElement): void;
|
|
46
|
+
private setLiterals;
|
|
47
|
+
private hasMultipleSelected;
|
|
48
|
+
private sanitizeSelection;
|
|
49
|
+
private applyTooltipIfOverflows;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -11,7 +11,7 @@ import { EventEmitter } from '@angular/core';
|
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
13
13
|
export declare class PoDisclaimerBaseComponent {
|
|
14
|
-
private languageService;
|
|
14
|
+
private readonly languageService;
|
|
15
15
|
/**
|
|
16
16
|
* Label que aparecerá dentro do po-disclaimer.
|
|
17
17
|
* Quando não for definido um label será apresentada a propriedade p-value.
|
|
@@ -64,7 +64,7 @@ export declare class PoDisclaimerGroupBaseComponent implements DoCheck {
|
|
|
64
64
|
literals: any;
|
|
65
65
|
private _disclaimers;
|
|
66
66
|
private _hideRemoveAll;
|
|
67
|
-
private differ;
|
|
67
|
+
private readonly differ;
|
|
68
68
|
private previousDisclaimers;
|
|
69
69
|
/** Lista de *disclaimers*. */
|
|
70
70
|
/**
|
|
@@ -25,7 +25,7 @@ import { PoDisclaimer } from '../po-disclaimer/po-disclaimer.interface';
|
|
|
25
25
|
*/
|
|
26
26
|
export declare class PoDisclaimerGroupComponent extends PoDisclaimerGroupBaseComponent implements AfterViewInit, OnChanges {
|
|
27
27
|
private subscription;
|
|
28
|
-
private el;
|
|
28
|
+
private readonly el;
|
|
29
29
|
constructor();
|
|
30
30
|
ngAfterViewInit(): void;
|
|
31
31
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -26,8 +26,8 @@ import { PoDropdownBaseComponent } from './po-dropdown-base.component';
|
|
|
26
26
|
* </example>
|
|
27
27
|
*/
|
|
28
28
|
export declare class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
29
|
-
private renderer;
|
|
30
|
-
private changeDetector;
|
|
29
|
+
private readonly renderer;
|
|
30
|
+
private readonly changeDetector;
|
|
31
31
|
dropdownRef: ElementRef;
|
|
32
32
|
popupRef: any;
|
|
33
33
|
private clickoutListener;
|
|
@@ -37,7 +37,7 @@ export declare class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
|
37
37
|
private checkClickArea;
|
|
38
38
|
private hideDropdown;
|
|
39
39
|
private initializeListeners;
|
|
40
|
-
private onScroll;
|
|
40
|
+
private readonly onScroll;
|
|
41
41
|
private isDropdownClosed;
|
|
42
42
|
private removeListeners;
|
|
43
43
|
private showDropdown;
|
package/lib/components/po-dynamic/po-dynamic-form/interfaces/po-dynamic-form-field.interface.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { ErrorAsyncProperties, PoCheckboxGroupOption, PoComboFilter, PoComboLiterals, PoDatepickerIsoFormat, PoDatepickerRangeLiterals, PoLookupFilter, PoLookupLiterals, PoMultiselectFilter, PoMultiselectFilterMode, PoMultiselectLiterals, PoSwitchLabelPosition, PoUploadFile, PoUploadFileRestrictions, PoUploadLiterals } from '../../../po-field';
|
|
2
|
+
import { ErrorAsyncProperties, PoCheckboxGroupOption, PoComboFilter, PoComboLiterals, PoDatepickerIsoFormat, PoDatepickerRangeLiterals, PoTimepickerModelFormat, PoLookupFilter, PoLookupLiterals, PoMultiselectFilter, PoMultiselectFilterMode, PoMultiselectLiterals, PoSwitchLabelPosition, PoUploadFile, PoUploadFileRestrictions, PoUploadLiterals } from '../../../po-field';
|
|
3
3
|
import { PoLookupAdvancedFilter } from '../../../po-field/po-lookup/interfaces/po-lookup-advanced-filter.interface';
|
|
4
4
|
import { PoLookupColumn } from '../../../po-field/po-lookup/interfaces/po-lookup-column.interface';
|
|
5
5
|
import { PoMultiselectOption } from '../../../po-field/po-multiselect/interfaces/po-multiselect-option.interface';
|
|
@@ -214,15 +214,29 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
214
214
|
*/
|
|
215
215
|
listboxControlPosition?: 'top' | 'bottom';
|
|
216
216
|
/**
|
|
217
|
-
*
|
|
217
|
+
* Habilita um estado de carregamento no componente, desabilitando-o e exibindo um ícone de carregamento.
|
|
218
218
|
*
|
|
219
|
-
*
|
|
219
|
+
* > Por padrão é `false`.
|
|
220
|
+
*
|
|
221
|
+
* **Componentes compatíveis:** `po-datepicker`, `po-datepicker-range`, `po-number`, `po-decimal`,
|
|
222
|
+
* `po-input`, `po-select`, `po-switch`, `po-combo`, `po-lookup`, `po-multiselect`,
|
|
223
|
+
* `po-textarea`, `po-password`, `po-upload`.
|
|
224
|
+
*/
|
|
225
|
+
loading?: boolean;
|
|
226
|
+
/**
|
|
227
|
+
* Valor máximo a ser informado no componente, podendo ser utilizado quando o tipo de dado por *number*, *date*, *dateTime* ou *time*.
|
|
228
|
+
*
|
|
229
|
+
* > Para `po-timepicker`, o valor deve estar no formato `HH:mm` ou `HH:mm:ss`.
|
|
230
|
+
*
|
|
231
|
+
* **Componentes compatíveis:** `po-datepicker`, `po-datepicker-range`, `po-number`, `po-decimal`, `po-timepicker`
|
|
220
232
|
* */
|
|
221
233
|
maxValue?: string | number;
|
|
222
234
|
/**
|
|
223
|
-
* Valor mínimo a ser informado no componente, podendo ser utilizado quando o tipo de dado por *number*, *date* ou *
|
|
235
|
+
* Valor mínimo a ser informado no componente, podendo ser utilizado quando o tipo de dado por *number*, *date*, *dateTime* ou *time*.
|
|
236
|
+
*
|
|
237
|
+
* > Para `po-timepicker`, o valor deve estar no formato `HH:mm` ou `HH:mm:ss`.
|
|
224
238
|
*
|
|
225
|
-
* **Componentes compatíveis:** `po-datepicker`, `po-datepicker-range`, `po-number`, `po-decimal`
|
|
239
|
+
* **Componentes compatíveis:** `po-datepicker`, `po-datepicker-range`, `po-number`, `po-decimal`, `po-timepicker`
|
|
226
240
|
*/
|
|
227
241
|
minValue?: string | number;
|
|
228
242
|
/** Quantidade de linhas exibidas no `po-textarea`. */
|
|
@@ -340,6 +354,11 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
340
354
|
* - mm/dd/yyyy
|
|
341
355
|
* - yyyy/mm/dd
|
|
342
356
|
*
|
|
357
|
+
* Ao utilizar com o `type` *PoDynamicFieldType.Time*, define o formato de exibição do horário:
|
|
358
|
+
*
|
|
359
|
+
* Valores válidos:
|
|
360
|
+
* - `24`: formato de 24 horas (padrão)
|
|
361
|
+
* - `12`: formato de 12 horas com indicador AM/PM
|
|
343
362
|
*
|
|
344
363
|
* Também pode-se utilizar em conjunto com `searchService`, informando uma lista de propriedades que será utilizado
|
|
345
364
|
* para formatação da exibição no campo, por exemplo: ["id", "name"].
|
|
@@ -447,12 +466,20 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
447
466
|
* Permite esconder a função de espiar a senha digitada no `po-password`.
|
|
448
467
|
*/
|
|
449
468
|
hidePasswordPeek?: boolean;
|
|
469
|
+
/**
|
|
470
|
+
* Define o formato do valor do horário a ser utilizado no model do `po-timepicker`.
|
|
471
|
+
*
|
|
472
|
+
* > Veja os valores válidos no `PoTimepickerModelFormat`.
|
|
473
|
+
*
|
|
474
|
+
* **Componente compatível:** `po-timepicker`
|
|
475
|
+
*/
|
|
476
|
+
modelFormat?: PoTimepickerModelFormat;
|
|
450
477
|
/**
|
|
451
478
|
* Padrão de formatação para saída do model, independentemente do formato de entrada.
|
|
452
479
|
*
|
|
453
|
-
* > Veja os valores válidos no `
|
|
480
|
+
* > Veja os valores válidos no `PoDatepickerIsoFormat`.
|
|
454
481
|
*
|
|
455
|
-
* **Componente compatível:** po-datepicker
|
|
482
|
+
* **Componente compatível:** `po-datepicker`
|
|
456
483
|
*/
|
|
457
484
|
isoFormat?: PoDatepickerIsoFormat;
|
|
458
485
|
/**
|
|
@@ -487,6 +514,30 @@ export interface PoDynamicFormField extends PoDynamicField {
|
|
|
487
514
|
* Intervalo utilizado no `po-number`.
|
|
488
515
|
*/
|
|
489
516
|
step?: number;
|
|
517
|
+
/**
|
|
518
|
+
* Exibe a coluna de segundos no painel do timepicker.
|
|
519
|
+
*
|
|
520
|
+
* @default `false`
|
|
521
|
+
*
|
|
522
|
+
* **Componente compatível:** `po-timepicker`
|
|
523
|
+
*/
|
|
524
|
+
showSeconds?: boolean;
|
|
525
|
+
/**
|
|
526
|
+
* Define o intervalo entre os minutos exibidos no painel do timepicker.
|
|
527
|
+
*
|
|
528
|
+
* @default `5`
|
|
529
|
+
*
|
|
530
|
+
* **Componente compatível:** `po-timepicker`
|
|
531
|
+
*/
|
|
532
|
+
minuteInterval?: number;
|
|
533
|
+
/**
|
|
534
|
+
* Define o intervalo entre os segundos exibidos no painel do timepicker.
|
|
535
|
+
*
|
|
536
|
+
* @default `1`
|
|
537
|
+
*
|
|
538
|
+
* **Componente compatível:** `po-timepicker`
|
|
539
|
+
*/
|
|
540
|
+
secondInterval?: number;
|
|
490
541
|
/**
|
|
491
542
|
* Define o modo de pesquisa utilizado no filtro da lista de seleção: `startsWith`, `contains` ou `endsWith`.
|
|
492
543
|
* > Quando utilizar a propriedade p-filter-service esta propriedade será ignorada.
|
|
@@ -3,7 +3,7 @@ import { EventEmitter } from '@angular/core';
|
|
|
3
3
|
import { PoDynamicSharedBase } from '../../shared/po-dynamic-shared-base';
|
|
4
4
|
import { PoDynamicFormField } from '../interfaces/po-dynamic-form-field.interface';
|
|
5
5
|
export declare class PoDynamicFormFieldsBaseComponent extends PoDynamicSharedBase {
|
|
6
|
-
private titleCasePipe;
|
|
6
|
+
private readonly titleCasePipe;
|
|
7
7
|
autoFocus?: string;
|
|
8
8
|
disabledForm: boolean;
|
|
9
9
|
validate?: string | Function;
|
|
@@ -2,7 +2,7 @@ import { HttpClient } from '@angular/common/http';
|
|
|
2
2
|
import { PoDynamicFormLoad } from '../po-dynamic-form-load/po-dynamic-form-load.interface';
|
|
3
3
|
import { PoDynamicFormValidation } from '../po-dynamic-form-validation/po-dynamic-form-validation.interface';
|
|
4
4
|
export declare class PoDynamicFormOperation {
|
|
5
|
-
private http;
|
|
5
|
+
private readonly http;
|
|
6
6
|
constructor(http: HttpClient);
|
|
7
7
|
protected execute(action: Function | string, param: any): import("rxjs").Observable<any>;
|
|
8
8
|
protected post(url: string, body: PoDynamicFormValidation | any): import("rxjs").Observable<Object>;
|
|
@@ -29,9 +29,9 @@ import { PoDynamicFormValidationService } from './po-dynamic-form-validation/po-
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
export declare class PoDynamicFormComponent extends PoDynamicFormBaseComponent implements OnInit, OnDestroy {
|
|
32
|
-
private changes;
|
|
33
|
-
private loadService;
|
|
34
|
-
private validationService;
|
|
32
|
+
private readonly changes;
|
|
33
|
+
private readonly loadService;
|
|
34
|
+
private readonly validationService;
|
|
35
35
|
fieldsComponent: {
|
|
36
36
|
focus: (property: string) => void;
|
|
37
37
|
updatePreviousValue: () => void;
|
|
@@ -42,7 +42,7 @@ export declare class PoDynamicFormComponent extends PoDynamicFormBaseComponent i
|
|
|
42
42
|
private _form;
|
|
43
43
|
private onLoadSubscription;
|
|
44
44
|
private sendFormSubscription;
|
|
45
|
-
private comboOptionSubject;
|
|
45
|
+
private readonly comboOptionSubject;
|
|
46
46
|
set form(value: NgForm);
|
|
47
47
|
get form(): NgForm;
|
|
48
48
|
constructor(changes: ChangeDetectorRef, loadService: PoDynamicFormLoadService, validationService: PoDynamicFormValidationService);
|
|
@@ -15,11 +15,11 @@ import { PoDynamicSharedBase } from '../shared/po-dynamic-shared-base';
|
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
17
|
export declare class PoDynamicViewBaseComponent extends PoDynamicSharedBase {
|
|
18
|
-
private currencyPipe;
|
|
19
|
-
private datePipe;
|
|
20
|
-
private decimalPipe;
|
|
21
|
-
private timePipe;
|
|
22
|
-
private titleCasePipe;
|
|
18
|
+
private readonly currencyPipe;
|
|
19
|
+
private readonly datePipe;
|
|
20
|
+
private readonly decimalPipe;
|
|
21
|
+
private readonly timePipe;
|
|
22
|
+
private readonly titleCasePipe;
|
|
23
23
|
protected dynamicViewService: PoDynamicViewService;
|
|
24
24
|
protected comboFilterService: PoComboFilterService;
|
|
25
25
|
protected multiselectFilterService: PoMultiselectFilterService;
|
|
@@ -9,7 +9,7 @@ import { PoDynamicViewField } from '../po-dynamic-view-field.interface';
|
|
|
9
9
|
* Serviço padrão utilizado para filtrar os dados dos campos que utilizam a propriedade `searchService`.
|
|
10
10
|
*/
|
|
11
11
|
export declare class PoDynamicViewService {
|
|
12
|
-
private httpClient;
|
|
12
|
+
private readonly httpClient;
|
|
13
13
|
readonly headers: HttpHeaders;
|
|
14
14
|
url: string;
|
|
15
15
|
getObjectByValue(value: any, filterParams?: any): Observable<Array<any> | {
|
|
@@ -12,6 +12,9 @@ export * from './po-combo/po-combo-option-template/po-combo-option-template.dire
|
|
|
12
12
|
export * from './po-combo/po-combo.component';
|
|
13
13
|
export * from './po-datepicker/enums/po-datepicker-iso-format.enum';
|
|
14
14
|
export * from './po-datepicker/po-datepicker.component';
|
|
15
|
+
export * from './po-timepicker/enums/po-timepicker-iso-format.enum';
|
|
16
|
+
export * from './po-timepicker/po-timepicker.component';
|
|
17
|
+
export * from './po-timepicker/po-timepicker.module';
|
|
15
18
|
export * from './po-datepicker-range/interfaces/po-datepicker-range.interface';
|
|
16
19
|
export * from './po-datepicker-range/interfaces/po-datepicker-range-literals.interface';
|
|
17
20
|
export * from './po-datepicker-range/po-datepicker-range.component';
|
|
@@ -76,8 +76,6 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
|
|
|
76
76
|
*/
|
|
77
77
|
appendBox?: boolean;
|
|
78
78
|
/**
|
|
79
|
-
* @Input
|
|
80
|
-
*
|
|
81
79
|
* @optional
|
|
82
80
|
*
|
|
83
81
|
* @description
|
|
@@ -212,8 +210,6 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
|
|
|
212
210
|
set size(value: string);
|
|
213
211
|
get size(): string;
|
|
214
212
|
/**
|
|
215
|
-
* @Input
|
|
216
|
-
*
|
|
217
213
|
* @optional
|
|
218
214
|
*
|
|
219
215
|
* @description
|
|
@@ -225,8 +221,6 @@ export declare abstract class PoCheckboxBaseComponent implements ControlValueAcc
|
|
|
225
221
|
*/
|
|
226
222
|
poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
|
|
227
223
|
/**
|
|
228
|
-
* @Input
|
|
229
|
-
*
|
|
230
224
|
* @optional
|
|
231
225
|
*
|
|
232
226
|
* @description
|
|
@@ -75,8 +75,6 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
|
|
|
75
75
|
*/
|
|
76
76
|
autoFocus: boolean;
|
|
77
77
|
/**
|
|
78
|
-
* @Input
|
|
79
|
-
*
|
|
80
78
|
* @optional
|
|
81
79
|
*
|
|
82
80
|
* @description
|
|
@@ -158,8 +156,6 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
|
|
|
158
156
|
*/
|
|
159
157
|
errorLimit: boolean;
|
|
160
158
|
/**
|
|
161
|
-
* @Input
|
|
162
|
-
*
|
|
163
159
|
* @optional
|
|
164
160
|
*
|
|
165
161
|
* @description
|
|
@@ -171,8 +167,6 @@ export declare class PoCheckboxGroupBaseComponent implements ControlValueAccesso
|
|
|
171
167
|
*/
|
|
172
168
|
poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
|
|
173
169
|
/**
|
|
174
|
-
* @Input
|
|
175
|
-
*
|
|
176
170
|
* @optional
|
|
177
171
|
*
|
|
178
172
|
* @description
|
|
@@ -24,10 +24,10 @@ import { PoHelperComponent } from '../../po-helper';
|
|
|
24
24
|
* </example>
|
|
25
25
|
*/
|
|
26
26
|
export declare class PoCheckboxGroupComponent extends PoCheckboxGroupBaseComponent implements AfterViewChecked, AfterViewInit, OnChanges {
|
|
27
|
-
private changeDetector;
|
|
27
|
+
private readonly changeDetector;
|
|
28
28
|
checkboxLabels: QueryList<PoCheckboxComponent>;
|
|
29
29
|
helperEl?: PoHelperComponent;
|
|
30
|
-
private el;
|
|
30
|
+
private readonly el;
|
|
31
31
|
ngOnChanges(changes: SimpleChanges): void;
|
|
32
32
|
ngAfterViewChecked(): void;
|
|
33
33
|
ngAfterViewInit(): void;
|
|
@@ -103,8 +103,6 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
103
103
|
*/
|
|
104
104
|
autoFocus: boolean;
|
|
105
105
|
/**
|
|
106
|
-
* @Input
|
|
107
|
-
*
|
|
108
106
|
* @optional
|
|
109
107
|
*
|
|
110
108
|
* @description
|
|
@@ -369,8 +367,6 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
369
367
|
*/
|
|
370
368
|
listboxControlPosition: 'top' | 'bottom';
|
|
371
369
|
/**
|
|
372
|
-
* @Input
|
|
373
|
-
*
|
|
374
370
|
* @optional
|
|
375
371
|
*
|
|
376
372
|
* @description
|
|
@@ -382,8 +378,6 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
382
378
|
*/
|
|
383
379
|
poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
|
|
384
380
|
/**
|
|
385
|
-
* @Input
|
|
386
|
-
*
|
|
387
381
|
* @optional
|
|
388
382
|
*
|
|
389
383
|
* @description
|
|
@@ -435,7 +429,7 @@ export declare abstract class PoComboBaseComponent implements ControlValueAccess
|
|
|
435
429
|
private _size?;
|
|
436
430
|
private _initialSize?;
|
|
437
431
|
private _sort?;
|
|
438
|
-
private language;
|
|
432
|
+
private readonly language;
|
|
439
433
|
private _infiniteScrollDistance?;
|
|
440
434
|
private _infiniteScroll?;
|
|
441
435
|
private _removeInitialFilter;
|
|
@@ -10,7 +10,7 @@ import { PoComboOption } from './interfaces/po-combo-option.interface';
|
|
|
10
10
|
* Serviço padrão utilizado para filtrar os dados do componente po-combo.
|
|
11
11
|
*/
|
|
12
12
|
export declare class PoComboFilterService implements PoComboFilter {
|
|
13
|
-
private http;
|
|
13
|
+
private readonly http;
|
|
14
14
|
fieldLabel: string;
|
|
15
15
|
fieldValue: string;
|
|
16
16
|
hasNext: boolean;
|
|
@@ -58,7 +58,7 @@ export declare class PoComboComponent extends PoComboBaseComponent implements Af
|
|
|
58
58
|
differs: IterableDiffers;
|
|
59
59
|
defaultService: PoComboFilterService;
|
|
60
60
|
renderer: Renderer2;
|
|
61
|
-
private controlPosition;
|
|
61
|
+
private readonly controlPosition;
|
|
62
62
|
comboOptionTemplate: PoComboOptionTemplateDirective;
|
|
63
63
|
outerContainer: ElementRef;
|
|
64
64
|
containerElement: ElementRef;
|
|
@@ -82,7 +82,7 @@ export declare class PoComboComponent extends PoComboBaseComponent implements Af
|
|
|
82
82
|
private eventResizeListener;
|
|
83
83
|
private filterSubscription;
|
|
84
84
|
private getSubscription;
|
|
85
|
-
private subscriptionScrollEvent;
|
|
85
|
+
private readonly subscriptionScrollEvent;
|
|
86
86
|
constructor();
|
|
87
87
|
set isServerSearching(value: boolean);
|
|
88
88
|
get isServerSearching(): boolean;
|
|
@@ -170,7 +170,7 @@ export declare class PoComboComponent extends PoComboBaseComponent implements Af
|
|
|
170
170
|
private initializeListeners;
|
|
171
171
|
private isAdditionalHelpEventTriggered;
|
|
172
172
|
private onErrorGetObjectByValue;
|
|
173
|
-
private onScroll;
|
|
173
|
+
private readonly onScroll;
|
|
174
174
|
private onErrorFilteredData;
|
|
175
175
|
private open;
|
|
176
176
|
private removeListeners;
|
|
@@ -110,8 +110,6 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
110
110
|
*/
|
|
111
111
|
autoFocus: boolean;
|
|
112
112
|
/**
|
|
113
|
-
* @Input
|
|
114
|
-
*
|
|
115
113
|
* @optional
|
|
116
114
|
*
|
|
117
115
|
* @description
|
|
@@ -244,8 +242,6 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
244
242
|
*/
|
|
245
243
|
keydown: EventEmitter<KeyboardEvent>;
|
|
246
244
|
/**
|
|
247
|
-
* @Input
|
|
248
|
-
*
|
|
249
245
|
* @optional
|
|
250
246
|
*
|
|
251
247
|
* @description
|
|
@@ -257,8 +253,6 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
257
253
|
*/
|
|
258
254
|
poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
|
|
259
255
|
/**
|
|
260
|
-
* @Input
|
|
261
|
-
*
|
|
262
256
|
* @optional
|
|
263
257
|
*
|
|
264
258
|
* @description
|
|
@@ -29,8 +29,8 @@ import { PoHelperComponent } from '../../po-helper';
|
|
|
29
29
|
* </example>
|
|
30
30
|
*/
|
|
31
31
|
export declare class PoDatepickerComponent extends PoDatepickerBaseComponent implements AfterViewInit, OnDestroy, OnChanges {
|
|
32
|
-
private controlPosition;
|
|
33
|
-
private renderer;
|
|
32
|
+
private readonly controlPosition;
|
|
33
|
+
private readonly renderer;
|
|
34
34
|
calendar: PoCalendarComponent;
|
|
35
35
|
dialogPicker: ElementRef;
|
|
36
36
|
iconDatepicker: PoButtonComponent;
|
|
@@ -135,7 +135,7 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
135
135
|
private isAdditionalHelpEventTriggered;
|
|
136
136
|
private isFocusOnFirstCombo;
|
|
137
137
|
private isFocusOnLastCombo;
|
|
138
|
-
private onScroll;
|
|
138
|
+
private readonly onScroll;
|
|
139
139
|
private removeListeners;
|
|
140
140
|
private setDialogPickerStyleDisplay;
|
|
141
141
|
private setCalendarPosition;
|
|
@@ -6,6 +6,7 @@ import { PoDateService } from './../../../services/po-date/po-date.service';
|
|
|
6
6
|
import { PoDatepickerRangeLiterals } from './interfaces/po-datepicker-range-literals.interface';
|
|
7
7
|
import { PoDatepickerRange } from './interfaces/po-datepicker-range.interface';
|
|
8
8
|
import { PoHelperOptions } from '../../po-helper';
|
|
9
|
+
import { PoCalendarRangePreset } from '../../po-calendar/interfaces/po-calendar-range-preset.interface';
|
|
9
10
|
/**
|
|
10
11
|
* @description
|
|
11
12
|
*
|
|
@@ -50,7 +51,7 @@ import { PoHelperOptions } from '../../po-helper';
|
|
|
50
51
|
export declare abstract class PoDatepickerRangeBaseComponent implements ControlValueAccessor, Validator, OnDestroy {
|
|
51
52
|
protected changeDetector: ChangeDetectorRef;
|
|
52
53
|
protected poDateService: PoDateService;
|
|
53
|
-
private languageService;
|
|
54
|
+
private readonly languageService;
|
|
54
55
|
additionalHelpEventTrigger: string | undefined;
|
|
55
56
|
name: string;
|
|
56
57
|
/**
|
|
@@ -94,8 +95,6 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
94
95
|
*/
|
|
95
96
|
autoFocus: boolean;
|
|
96
97
|
/**
|
|
97
|
-
* @Input
|
|
98
|
-
*
|
|
99
98
|
* @optional
|
|
100
99
|
*
|
|
101
100
|
* @description
|
|
@@ -132,6 +131,59 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
132
131
|
* @default `false`
|
|
133
132
|
*/
|
|
134
133
|
compactLabel: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
134
|
+
/**
|
|
135
|
+
* @optional
|
|
136
|
+
*
|
|
137
|
+
* @description
|
|
138
|
+
*
|
|
139
|
+
* Habilita a exibição dos presets padrão de intervalos de data no painel lateral do calendário.
|
|
140
|
+
*
|
|
141
|
+
* Aceita os seguintes valores:
|
|
142
|
+
* - `true`: exibe todos os presets padrão (Amanhã, Hoje, Ontem, Últimos 7 dias, Últimos 14 dias, Últimos 30 dias, Últimos 3 meses, Últimos 6 meses).
|
|
143
|
+
* - `false`: não exibe os presets padrão.
|
|
144
|
+
* - `Array<string>`: exibe apenas os presets padrão cujos labels estejam no array informado.
|
|
145
|
+
* > Label dos presets: tomorrow, today, yesterday, 7days, 14days, 30days, 3months, 6months.
|
|
146
|
+
*
|
|
147
|
+
* O preset "today" é obrigatório e será incluído automaticamente mesmo que não esteja no array.
|
|
148
|
+
*
|
|
149
|
+
* Caso `p-range-preset-options` também seja informado, os presets customizados serão exibidos junto aos presets padrão,
|
|
150
|
+
* ordenados automaticamente por temporalidade com base na data início (Futuro → Presente → Passado).
|
|
151
|
+
*
|
|
152
|
+
* @default `false`
|
|
153
|
+
*/
|
|
154
|
+
set rangePresets(value: boolean | Array<string> | string);
|
|
155
|
+
get rangePresets(): boolean | Array<string>;
|
|
156
|
+
private _rangePresets;
|
|
157
|
+
/**
|
|
158
|
+
* @optional
|
|
159
|
+
*
|
|
160
|
+
* @description
|
|
161
|
+
*
|
|
162
|
+
* Lista de presets customizados de intervalos de data exibidos no painel lateral do calendário.
|
|
163
|
+
*
|
|
164
|
+
* Quando informado sem `p-range-presets`, exibe apenas os presets customizados.
|
|
165
|
+
* Quando informado junto com `p-range-presets` habilitado, os presets customizados serão exibidos junto aos presets padrão,
|
|
166
|
+
* ordenados automaticamente por temporalidade com base na data início (Futuro → Presente → Passado).
|
|
167
|
+
*
|
|
168
|
+
* Para utilizar presets customizados, informe um array de objetos que implementam a interface `PoCalendarRangePreset`.
|
|
169
|
+
*/
|
|
170
|
+
rangePresetOptions?: Array<PoCalendarRangePreset>;
|
|
171
|
+
/**
|
|
172
|
+
* @optional
|
|
173
|
+
*
|
|
174
|
+
* @description
|
|
175
|
+
*
|
|
176
|
+
* Define a ordenação dos presets na lista.
|
|
177
|
+
*
|
|
178
|
+
* Valores aceitos:
|
|
179
|
+
* - `'asc'` (padrão): presets mais próximos de hoje aparecem primeiro.
|
|
180
|
+
* - `'desc'`: presets mais distantes de hoje aparecem primeiro.
|
|
181
|
+
*
|
|
182
|
+
* A ordenação é aplicada dentro de cada grupo de temporalidade com base na data início (Futuro → Presente → Passado).
|
|
183
|
+
*
|
|
184
|
+
* @default `asc`
|
|
185
|
+
*/
|
|
186
|
+
rangePresetsOrder: 'asc' | 'desc';
|
|
135
187
|
/**
|
|
136
188
|
* @optional
|
|
137
189
|
*
|
|
@@ -208,8 +260,6 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
208
260
|
*/
|
|
209
261
|
errorLimit: boolean;
|
|
210
262
|
/**
|
|
211
|
-
* @Input
|
|
212
|
-
*
|
|
213
263
|
* @optional
|
|
214
264
|
*
|
|
215
265
|
* @description
|
|
@@ -221,8 +271,6 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
221
271
|
*/
|
|
222
272
|
poHelperComponent: import("@angular/core").InputSignal<string | PoHelperOptions>;
|
|
223
273
|
/**
|
|
224
|
-
* @Input
|
|
225
|
-
*
|
|
226
274
|
* @optional
|
|
227
275
|
*
|
|
228
276
|
* @description
|
|
@@ -274,7 +322,7 @@ export declare abstract class PoDatepickerRangeBaseComponent implements ControlV
|
|
|
274
322
|
private _size?;
|
|
275
323
|
private _initialSize?;
|
|
276
324
|
private _placeholder;
|
|
277
|
-
private language;
|
|
325
|
+
private readonly language;
|
|
278
326
|
private onChangeModel;
|
|
279
327
|
private validatorChange;
|
|
280
328
|
private subscription;
|