@po-ui/ng-components 22.0.0-rc.0 → 22.0.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/README.md +1 -1
- package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-B6drxxln.mjs → po-ui-ng-components-po-chart-modal-table.component-Cozxgj7w.mjs} +4 -4
- package/fesm2022/{po-ui-ng-components-po-chart-modal-table.component-B6drxxln.mjs.map → po-ui-ng-components-po-chart-modal-table.component-Cozxgj7w.mjs.map} +1 -1
- package/fesm2022/po-ui-ng-components.mjs +3072 -1450
- package/fesm2022/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-accordion/po-accordion-item/po-accordion-item.component.d.ts +2 -0
- package/lib/components/po-accordion/po-accordion.component.d.ts +2 -0
- package/lib/components/po-avatar/po-avatar.component.d.ts +2 -0
- package/lib/components/po-badge/po-badge.component.d.ts +2 -0
- package/lib/components/po-breadcrumb/po-breadcrumb.component.d.ts +2 -0
- package/lib/components/po-button/enums/po-button-kind.enum.d.ts +7 -1
- package/lib/components/po-button/po-button-base.component.d.ts +27 -3
- package/lib/components/po-button/po-button.component.d.ts +4 -0
- package/lib/components/po-button-group/po-button-group.component.d.ts +2 -0
- package/lib/components/po-calendar/po-calendar-base.component.d.ts +5 -0
- package/lib/components/po-calendar/po-calendar-header/po-calendar-header.component.d.ts +2 -0
- package/lib/components/po-calendar/po-calendar-wrapper/po-calendar-wrapper.component.d.ts +12 -0
- package/lib/components/po-calendar/po-calendar.component.d.ts +13 -0
- package/lib/components/po-chart/interfaces/po-chart-serie.interface.d.ts +29 -2
- package/lib/components/po-chart/po-chart.component.d.ts +2 -0
- package/lib/components/po-container/po-container.component.d.ts +2 -0
- package/lib/components/po-context-menu/po-context-menu.component.d.ts +2 -0
- package/lib/components/po-context-tabs/po-context-tabs.component.d.ts +2 -0
- package/lib/components/po-disclaimer-group/po-disclaimer-group.component.d.ts +1 -0
- package/lib/components/po-divider/po-divider.component.d.ts +2 -0
- package/lib/components/po-dropdown/po-dropdown.component.d.ts +2 -0
- package/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form.component.d.ts +1 -0
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.d.ts +2 -0
- package/lib/components/po-field/po-checkbox/po-checkbox.component.d.ts +2 -0
- package/lib/components/po-field/po-checkbox-group/po-checkbox-group.component.d.ts +2 -0
- package/lib/components/po-field/po-combo/po-combo-option-template/po-combo-option-template.directive.d.ts +2 -0
- package/lib/components/po-field/po-combo/po-combo.component.d.ts +2 -0
- package/lib/components/po-field/po-datepicker/po-datepicker-base.component.d.ts +15 -4
- package/lib/components/po-field/po-datepicker/po-datepicker.component.d.ts +7 -0
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range-base.component.d.ts +3 -0
- package/lib/components/po-field/po-datepicker-range/po-datepicker-range.component.d.ts +4 -0
- package/lib/components/po-field/po-datetimepicker/po-datetimepicker-base.component.d.ts +5 -0
- package/lib/components/po-field/po-datetimepicker/po-datetimepicker.component.d.ts +7 -0
- package/lib/components/po-field/po-decimal/po-decimal.component.d.ts +2 -0
- package/lib/components/po-field/po-email/po-email.component.d.ts +2 -0
- package/lib/components/po-field/po-field-validate.model.d.ts +2 -0
- package/lib/components/po-field/po-input/po-input.component.d.ts +2 -0
- package/lib/components/po-field/po-login/po-login.component.d.ts +1 -0
- package/lib/components/po-field/po-lookup/po-lookup.component.d.ts +2 -0
- package/lib/components/po-field/po-multiselect/po-multiselect-option-template/po-multiselect-option-template.directive.d.ts +1 -0
- package/lib/components/po-field/po-multiselect/po-multiselect.component.d.ts +1 -0
- package/lib/components/po-field/po-number/po-number.component.d.ts +2 -0
- package/lib/components/po-field/po-password/po-password.component.d.ts +2 -0
- package/lib/components/po-field/po-radio-group/po-radio-group.component.d.ts +1 -0
- package/lib/components/po-field/po-rich-text/po-rich-text.component.d.ts +2 -0
- package/lib/components/po-field/po-search-ai/po-search-ai.component.d.ts +2 -0
- package/lib/components/po-field/po-select/po-select.component.d.ts +1 -0
- package/lib/components/po-field/po-switch/po-switch.component.d.ts +2 -0
- package/lib/components/po-field/po-textarea/po-textarea.component.d.ts +1 -0
- package/lib/components/po-field/po-timepicker/po-timepicker.component.d.ts +2 -0
- package/lib/components/po-field/po-upload/po-upload.component.d.ts +2 -0
- package/lib/components/po-field/po-url/po-url.component.d.ts +1 -0
- package/lib/components/po-filter-chip/po-filter-chip.component.d.ts +2 -0
- package/lib/components/po-grid/po-grid.component.d.ts +2 -0
- package/lib/components/po-header/po-header.component.d.ts +1 -0
- package/lib/components/po-helper/po-helper.component.d.ts +1 -0
- package/lib/components/po-image/po-image.component.d.ts +1 -0
- package/lib/components/po-info/po-info.component.d.ts +2 -0
- package/lib/components/po-link/po-link.component.d.ts +2 -0
- package/lib/components/po-list-view/po-list-view-content-template/po-list-view-content-template.directive.d.ts +2 -0
- package/lib/components/po-list-view/po-list-view-detail-template/po-list-view-detail-template.directive.d.ts +2 -0
- package/lib/components/po-list-view/po-list-view.component.d.ts +2 -0
- package/lib/components/po-listbox/po-item-list/po-item-list.component.d.ts +1 -0
- package/lib/components/po-listbox/po-listbox.component.d.ts +1 -0
- package/lib/components/po-loading/po-loading-overlay/po-loading-overlay.component.d.ts +2 -0
- package/lib/components/po-menu/po-menu-header-template/po-menu-header-template.directive.d.ts +2 -0
- package/lib/components/po-menu/po-menu.component.d.ts +2 -0
- package/lib/components/po-menu-panel/po-menu-panel.component.d.ts +2 -0
- package/lib/components/po-modal/po-modal-footer/po-modal-footer.component.d.ts +2 -0
- package/lib/components/po-modal/po-modal.component.d.ts +2 -0
- package/lib/components/po-navbar/po-navbar.component.d.ts +2 -0
- package/lib/components/po-page/po-page-default/po-page-default.component.d.ts +2 -0
- package/lib/components/po-page/po-page-detail/po-page-detail.component.d.ts +2 -0
- package/lib/components/po-page/po-page-edit/po-page-edit.component.d.ts +2 -0
- package/lib/components/po-page/po-page-list/po-page-list.component.d.ts +2 -0
- package/lib/components/po-page/po-page-slide/po-page-slide-footer/po-page-slide-footer.component.d.ts +2 -0
- package/lib/components/po-page/po-page-slide/po-page-slide.component.d.ts +2 -0
- package/lib/components/po-popover/po-popover.component.d.ts +2 -0
- package/lib/components/po-popup/po-popup.component.d.ts +1 -0
- package/lib/components/po-progress/po-progress.component.d.ts +1 -0
- package/lib/components/po-search/po-search.component.d.ts +1 -0
- package/lib/components/po-skeleton/po-skeleton.component.d.ts +2 -0
- package/lib/components/po-slide/directives/po-slide-content-template.directive.d.ts +2 -0
- package/lib/components/po-slide/po-slide.component.d.ts +2 -0
- package/lib/components/po-stepper/po-step/po-step.component.d.ts +2 -0
- package/lib/components/po-stepper/po-stepper.component.d.ts +2 -0
- package/lib/components/po-table/po-table-cell-template/po-table-cell-template.directive.d.ts +2 -0
- package/lib/components/po-table/po-table-column-template/po-table-column-template.directive.d.ts +2 -0
- package/lib/components/po-table/po-table-row-template/po-table-row-template.directive.d.ts +2 -0
- package/lib/components/po-table/po-table.component.d.ts +2 -0
- package/lib/components/po-tabs/po-tab/po-tab.component.d.ts +2 -0
- package/lib/components/po-tabs/po-tabs.component.d.ts +3 -0
- package/lib/components/po-tag/po-tag.component.d.ts +2 -0
- package/lib/components/po-toaster/po-toaster.component.d.ts +2 -0
- package/lib/components/po-toolbar/po-toolbar.component.d.ts +2 -0
- package/lib/components/po-tree-view/po-tree-view.component.d.ts +2 -0
- package/lib/components/po-widget/po-widget.component.d.ts +1 -0
- package/lib/directives/po-drag-drop/po-drag.directive.d.ts +2 -0
- package/lib/directives/po-drag-drop/po-drop-list.directive.d.ts +3 -0
- package/lib/directives/po-tooltip/po-tooltip.directive.d.ts +2 -0
- package/lib/interceptors/po-http-interceptor/po-http-interceptor.service.d.ts +2 -0
- package/lib/interceptors/po-http-request/po-http-request-interceptor.service.d.ts +2 -0
- package/lib/po.module.d.ts +2 -0
- package/lib/services/po-dialog/po-dialog.service.d.ts +4 -0
- package/lib/services/po-i18n/po-i18n.service.d.ts +2 -0
- package/lib/services/po-media-query/po-media-query.service.d.ts +1 -0
- package/lib/services/po-notification/po-notification.service.d.ts +3 -0
- package/lib/services/po-theme/helpers/accessibilities/po-theme-default-aaa.constant.d.ts +1 -8
- package/lib/services/po-theme/helpers/deprecated/accessibilities/po-theme-default-aa.constant.d.ts +20 -0
- package/lib/services/po-theme/helpers/deprecated/accessibilities/po-theme-default-aaa.constant.d.ts +18 -0
- package/lib/services/po-theme/helpers/deprecated/accessibilities/po-theme-density.constant.d.ts +12 -0
- package/lib/services/po-theme/helpers/deprecated/po-theme-poui.constant.d.ts +27 -0
- package/lib/services/po-theme/helpers/deprecated/types/po-theme-dark-defaults-AA.constant.d.ts +129 -0
- package/lib/services/po-theme/helpers/deprecated/types/po-theme-dark-defaults.constant.d.ts +167 -0
- package/lib/services/po-theme/helpers/deprecated/types/po-theme-light-defaults-AA.constant.d.ts +49 -0
- package/lib/services/po-theme/helpers/deprecated/types/po-theme-light-defaults.constant.d.ts +81 -0
- package/lib/services/po-theme/helpers/shared/base.constant.d.ts +146 -0
- package/lib/services/po-theme/helpers/types/po-theme-dark-defaults-AA.constant.d.ts +3 -4
- package/lib/services/po-theme/helpers/types/po-theme-dark-defaults.constant.d.ts +4 -4
- package/lib/services/po-theme/index.d.ts +8 -0
- package/lib/services/po-theme/interfaces/po-theme.interface.d.ts +15 -0
- package/lib/services/po-theme/po-theme.service.d.ts +64 -0
- package/lib/services/po-user-guide/po-user-guide.service.d.ts +2 -0
- package/lib/utils/po-picker-mouse-down-guard.d.ts +27 -0
- package/lib/utils/util.d.ts +16 -0
- package/package.json +4 -4
- package/po-ui-ng-components-22.0.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/setup-project.d.ts +2 -2
- 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.d.ts +2 -2
- package/schematics/ng-update/v18/index.js +2 -2
- package/schematics/ng-update/v19/index.d.ts +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.d.ts +2 -2
- package/schematics/ng-update/v20/index.js +2 -2
- package/schematics/ng-update/v21/index.js +1 -1
- package/schematics/ng-update/v22/index.d.ts +20 -4
- package/schematics/ng-update/v22/index.js +37 -11
- package/schematics/ng-update/v22/index.js.map +1 -1
- package/schematics/ng-update/v22/migration-report.d.ts +36 -10
- package/schematics/ng-update/v22/migration-report.js +25 -11
- package/schematics/ng-update/v22/migration-report.js.map +1 -1
- package/schematics/ng-update/v22/theme-deprecated/changes.d.ts +24 -0
- package/schematics/ng-update/v22/theme-deprecated/changes.js +58 -0
- package/schematics/ng-update/v22/theme-deprecated/changes.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/index.d.ts +14 -0
- package/schematics/ng-update/v22/theme-deprecated/index.js +291 -0
- package/schematics/ng-update/v22/theme-deprecated/index.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/prompt.d.ts +49 -0
- package/schematics/ng-update/v22/theme-deprecated/prompt.js +59 -0
- package/schematics/ng-update/v22/theme-deprecated/prompt.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-bootstrap-migration.d.ts +25 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-bootstrap-migration.js +198 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-bootstrap-migration.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-style-migration.d.ts +23 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-style-migration.js +64 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-style-migration.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-ts-migration.d.ts +29 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-ts-migration.js +325 -0
- package/schematics/ng-update/v22/theme-deprecated/theme-ts-migration.js.map +1 -0
- package/schematics/ng-update/v22/theme-deprecated/ts-utils.d.ts +58 -0
- package/schematics/ng-update/v22/theme-deprecated/ts-utils.js +112 -0
- package/schematics/ng-update/v22/theme-deprecated/ts-utils.js.map +1 -0
- 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 +18115 -17107
- package/po-ui-ng-components-22.0.0-rc.0.tgz +0 -0
|
@@ -21,6 +21,8 @@ import { PoAccordionItemComponent } from './po-accordion-item/po-accordion-item.
|
|
|
21
21
|
* <file name="sample-po-accordion-faq/sample-po-accordion-faq.component.html"> </file>
|
|
22
22
|
* <file name="sample-po-accordion-faq/sample-po-accordion-faq.component.ts"> </file>
|
|
23
23
|
* </example>
|
|
24
|
+
*
|
|
25
|
+
* @docsCategory containers
|
|
24
26
|
*/
|
|
25
27
|
export declare class PoAccordionComponent extends PoAccordionBaseComponent implements OnDestroy {
|
|
26
28
|
private readonly accordionService;
|
|
@@ -20,6 +20,8 @@ import { PoAvatarBaseComponent } from './po-avatar-base.component';
|
|
|
20
20
|
* <file name="sample-po-avatar-business-card/sample-po-avatar-business-card.component.ts"> </file>
|
|
21
21
|
* <file name="sample-po-avatar-business-card/sample-po-avatar-business-card.component.css"> </file>
|
|
22
22
|
* </example>
|
|
23
|
+
*
|
|
24
|
+
* @docsCategory visual
|
|
23
25
|
*/
|
|
24
26
|
export declare class PoAvatarComponent extends PoAvatarBaseComponent implements OnInit {
|
|
25
27
|
ngOnInit(): void;
|
|
@@ -21,6 +21,8 @@ import { PoBadgeLiterals } from './interfaces/po-badge-literals.interface';
|
|
|
21
21
|
* <file name="sample-po-badge-message/sample-po-badge-message.component.css"> </file>
|
|
22
22
|
* <file name="sample-po-badge-message/sample-po-badge-message.component.ts"> </file>
|
|
23
23
|
* </example>
|
|
24
|
+
*
|
|
25
|
+
* @docsCategory visual
|
|
24
26
|
*/
|
|
25
27
|
export declare class PoBadgeComponent extends PoBadgeBaseComponent implements OnInit, OnChanges {
|
|
26
28
|
isNotification: boolean;
|
|
@@ -18,6 +18,8 @@ export declare const poBreadcrumbLiterals: object;
|
|
|
18
18
|
* <file name="sample-po-breadcrumb-labs/sample-po-breadcrumb-labs.component.html"> </file>
|
|
19
19
|
* <file name="sample-po-breadcrumb-labs/sample-po-breadcrumb-labs.component.ts"> </file>
|
|
20
20
|
* </example>
|
|
21
|
+
*
|
|
22
|
+
* @docsCategory navigation
|
|
21
23
|
*/
|
|
22
24
|
export declare class PoBreadcrumbComponent extends PoBreadcrumbBaseComponent implements AfterViewInit, DoCheck, OnDestroy {
|
|
23
25
|
private readonly element;
|
|
@@ -11,5 +11,11 @@ export declare enum PoButtonKind {
|
|
|
11
11
|
/** Estilo secundário, usado como padrão, para ações comuns. */
|
|
12
12
|
secondary = "secondary",
|
|
13
13
|
/** Estilo terciário, ideal para ações menos importantes, sem fundo preenchido. */
|
|
14
|
-
tertiary = "tertiary"
|
|
14
|
+
tertiary = "tertiary",
|
|
15
|
+
/**
|
|
16
|
+
* Estilo com brilho animado que percorre a borda do botão, usado para destacar uma chamada para ação.
|
|
17
|
+
*
|
|
18
|
+
* > Incompatível com a propriedade `p-danger`.
|
|
19
|
+
*/
|
|
20
|
+
glow = "glow"
|
|
15
21
|
}
|
|
@@ -63,6 +63,23 @@ import { PoButtonType } from './enums/po-button-type.enum';
|
|
|
63
63
|
* | `--text-color-disabled` | Cor do texto no estado disabled | `var(--color-neutral-dark-70)` |
|
|
64
64
|
* | `--color-disabled` | Cor principal no estado disabled | `var(--color-action-disabled)` |
|
|
65
65
|
* | `--background-color-disabled` | Cor de background no estado disabled | `var(--color-transparent)` |
|
|
66
|
+
* | **Glow** (`p-kind="glow"`) | | |
|
|
67
|
+
* | `--color-glow-highlight` | Cor do reflexo no estado hover | `var(--color-brand-01-light)` |
|
|
68
|
+
* | `--color-glow-ring` | Cor do brilho da borda e do brilho interno (hover) | `var(--color-neutral-light-00)` |
|
|
69
|
+
* | `--glow-animation-duration` | Duração de uma volta completa do brilho | `3200ms` |
|
|
70
|
+
* | `--glow-transition-duration` | Duração da transição entre estados | `var(--duration-extra-slow)` |
|
|
71
|
+
* | `--glow-transition-timing` | Curva de aceleração da transição entre estados | `var(--timing-exiting)` |
|
|
72
|
+
*
|
|
73
|
+
* > No estilo `glow`, o botão reutiliza os tokens `--color`, `--text-color`, `--color-hover`, `--color-pressed` e
|
|
74
|
+
* `--border-width`. O brilho percorre a borda com velocidade constante via `offset-path`. Em navegadores sem
|
|
75
|
+
* suporte a `offset-path` com formas básicas (Chrome < 116, Firefox < 122 e Safari < 18), é exibido um gradiente
|
|
76
|
+
* girando no centro do botão.
|
|
77
|
+
*
|
|
78
|
+
* > No estilo `glow`, a animação é interrompida quando o botão está desabilitado ou em carregamento,
|
|
79
|
+
* e também quando o sistema operacional do usuário solicita redução de movimento (`prefers-reduced-motion`).
|
|
80
|
+
*
|
|
81
|
+
* > No tema escuro, `--color-glow-ring` usa `var(--color-neutral-dark-95)`, para que o brilho
|
|
82
|
+
* continue claro apesar da inversão da escala neutra.
|
|
66
83
|
*
|
|
67
84
|
*/
|
|
68
85
|
export declare class PoButtonBaseComponent {
|
|
@@ -112,13 +129,16 @@ export declare class PoButtonBaseComponent {
|
|
|
112
129
|
blur: EventEmitter<any>;
|
|
113
130
|
/** Ação que será executada quando o usuário clicar sobre o `po-button`. */
|
|
114
131
|
click: EventEmitter<null>;
|
|
115
|
-
private _danger?;
|
|
116
132
|
private _disabled?;
|
|
117
133
|
private _loading?;
|
|
118
|
-
private _kind?;
|
|
119
134
|
private _size?;
|
|
120
135
|
private _initialSize?;
|
|
121
136
|
protected hasSize?: boolean;
|
|
137
|
+
private readonly kindState;
|
|
138
|
+
private readonly dangerState;
|
|
139
|
+
/** @docsPrivate */
|
|
140
|
+
readonly isGlow: import("@angular/core").Signal<boolean>;
|
|
141
|
+
private readonly isDanger;
|
|
122
142
|
/**
|
|
123
143
|
* @optional
|
|
124
144
|
*
|
|
@@ -139,7 +159,7 @@ export declare class PoButtonBaseComponent {
|
|
|
139
159
|
*
|
|
140
160
|
* Deve ser usado em ações irreversíveis que o usuário precisa ter cuidado ao executá-la, como a exclusão de um registro.
|
|
141
161
|
*
|
|
142
|
-
* > A propriedade `p-kind="tertiary"`
|
|
162
|
+
* > A propriedade será inativada ao utilizar `p-kind="tertiary"` ou `p-kind="glow"`.
|
|
143
163
|
*/
|
|
144
164
|
set danger(value: boolean);
|
|
145
165
|
get danger(): boolean;
|
|
@@ -152,6 +172,10 @@ export declare class PoButtonBaseComponent {
|
|
|
152
172
|
* - `primary`: destaca o botão, sendo recomendado para ações principais.
|
|
153
173
|
* - `secondary`: estilo padrão, ideal para ações secundárias.
|
|
154
174
|
* - `tertiary`: exibe o botão sem preenchimento no fundo, indicado para ações opcionais.
|
|
175
|
+
* - `glow`: exibe o botão em formato de pílula com um brilho animado percorrendo a borda, indicado para destacar
|
|
176
|
+
* uma chamada para ação. Deve ser usado com moderação, preferencialmente em apenas um botão por página.
|
|
177
|
+
*
|
|
178
|
+
* > O estilo `glow` é incompatível com a propriedade `p-danger`.
|
|
155
179
|
*
|
|
156
180
|
* @default `secondary`
|
|
157
181
|
*/
|
|
@@ -19,9 +19,13 @@ import { PoButtonBaseComponent } from './po-button-base.component';
|
|
|
19
19
|
* <file name="sample-po-button-social-network/sample-po-button-social-network.component.html"> </file>
|
|
20
20
|
* <file name="sample-po-button-social-network/sample-po-button-social-network.component.ts"> </file>
|
|
21
21
|
* </example>
|
|
22
|
+
*
|
|
23
|
+
* @docsCategory actions
|
|
22
24
|
*/
|
|
23
25
|
export declare class PoButtonComponent extends PoButtonBaseComponent {
|
|
24
26
|
elementRef: ElementRef;
|
|
27
|
+
/** @docsPrivate */
|
|
28
|
+
readonly glowTrail: ReadonlyArray<number>;
|
|
25
29
|
buttonElement: ElementRef;
|
|
26
30
|
constructor(elementRef: ElementRef);
|
|
27
31
|
onBlur(): void;
|
|
@@ -29,6 +29,8 @@ import { PoButtonGroupBaseComponent } from './po-button-group-base.component';
|
|
|
29
29
|
* <file name="sample-po-button-group-post/sample-po-button-group-post.component.html"> </file>
|
|
30
30
|
* <file name="sample-po-button-group-post/sample-po-button-group-post.component.ts"> </file>
|
|
31
31
|
* </example>
|
|
32
|
+
*
|
|
33
|
+
* @docsCategory actions
|
|
32
34
|
*/
|
|
33
35
|
export declare class PoButtonGroupComponent extends PoButtonGroupBaseComponent {
|
|
34
36
|
}
|
|
@@ -24,6 +24,11 @@ import { PoCalendarRangePreset } from './interfaces/po-calendar-range-preset.int
|
|
|
24
24
|
*
|
|
25
25
|
* **Importante:**
|
|
26
26
|
* - Datas fora do intervalo (`p-min-date` / `p-max-date`) aparecem desabilitadas sem alterar o *model*.
|
|
27
|
+
* - São aceitos anos entre 0000 e 9999. No seletor de ano do cabeçalho é possível digitar qualquer ano com
|
|
28
|
+
* 4 dígitos, mesmo que não esteja listado, e a navegação é bloqueada nos limites desse intervalo.
|
|
29
|
+
* - Datas no formato ISO (ex.: `'0050-05-10'`) com ano inferior a 100 são mantidas. Ao informar um objeto `Date`
|
|
30
|
+
* com ano inferior a 100, utilize o método [`setFullYear`](https://www.w3schools.com/jsref/jsref_setfullyear.asp),
|
|
31
|
+
* pois o [`new Date`](https://www.w3schools.com/js/js_dates.asp) converte esses anos para 19XX.
|
|
27
32
|
*
|
|
28
33
|
* #### Boas práticas
|
|
29
34
|
*
|
|
@@ -6,6 +6,8 @@ export declare class PoCalendarHeaderComponent implements OnInit, OnChanges {
|
|
|
6
6
|
readonly poCalendarLangService: PoCalendarLangService;
|
|
7
7
|
hidePrevious: boolean;
|
|
8
8
|
hideNext: boolean;
|
|
9
|
+
disablePrevious: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
disableNext: import("@angular/core").InputSignal<boolean>;
|
|
9
11
|
displayMonth: number;
|
|
10
12
|
displayYear: number;
|
|
11
13
|
displayMonthLabel: string;
|
|
@@ -55,6 +55,9 @@ export declare class PoCalendarWrapperComponent implements OnInit, OnChanges {
|
|
|
55
55
|
templateContext: any;
|
|
56
56
|
protected currentMonthNumber: number;
|
|
57
57
|
protected lastDisplay: string;
|
|
58
|
+
private displayYearOption;
|
|
59
|
+
private typedYearOption;
|
|
60
|
+
private readonly combosAwaitingFocusOut;
|
|
58
61
|
get monthLabel(): any;
|
|
59
62
|
get yearLabel(): any;
|
|
60
63
|
get isDayVisible(): boolean;
|
|
@@ -73,9 +76,14 @@ export declare class PoCalendarWrapperComponent implements OnInit, OnChanges {
|
|
|
73
76
|
month: number;
|
|
74
77
|
}): void;
|
|
75
78
|
private updateTemplateContext;
|
|
79
|
+
onYearInputChange(search: string, comboComponent?: any): void;
|
|
80
|
+
private getTypedYear;
|
|
81
|
+
private formatYearLabel;
|
|
76
82
|
updateDate(year: number, month: number, comboComponent?: any): void;
|
|
77
83
|
onComboBlur(comboComponent?: any): void;
|
|
84
|
+
private resetComboWithoutOptions;
|
|
78
85
|
private handleComboBlur;
|
|
86
|
+
private validateOnComboFocusOut;
|
|
79
87
|
private syncInputValue;
|
|
80
88
|
private applySelectedValue;
|
|
81
89
|
private ensureValidDisplay;
|
|
@@ -85,6 +93,10 @@ export declare class PoCalendarWrapperComponent implements OnInit, OnChanges {
|
|
|
85
93
|
private setInitialFocusedDay;
|
|
86
94
|
private ensureValidFocusedDay;
|
|
87
95
|
getDayTabIndex(day: Date, index: number): number;
|
|
96
|
+
get isPreviousMonthDisabled(): boolean;
|
|
97
|
+
get isNextMonthDisabled(): boolean;
|
|
98
|
+
isPreviousYearDisabled(step: number): boolean;
|
|
99
|
+
isNextYearDisabled(step: number): boolean;
|
|
88
100
|
onNextMonth(): void;
|
|
89
101
|
onPreviousMonth(): void;
|
|
90
102
|
updateYear(value: number): void;
|
|
@@ -28,12 +28,15 @@ import { PoCalendarRangePreset } from './interfaces/po-calendar-range-preset.int
|
|
|
28
28
|
* <file name="sample-po-calendar-ticket-sales/sample-po-calendar-ticket-sales.component.html"> </file>
|
|
29
29
|
* <file name="sample-po-calendar-ticket-sales/sample-po-calendar-ticket-sales.component.ts"> </file>
|
|
30
30
|
* </example>
|
|
31
|
+
*
|
|
32
|
+
* @docsCategory date-time
|
|
31
33
|
*/
|
|
32
34
|
export declare class PoCalendarComponent extends PoCalendarBaseComponent implements OnInit, OnChanges, DoCheck {
|
|
33
35
|
timerComponent: PoTimerComponent;
|
|
34
36
|
yearOptions: QueryList<PoButtonComponent>;
|
|
35
37
|
monthOptions: QueryList<PoButtonComponent>;
|
|
36
38
|
private readonly changeDetector;
|
|
39
|
+
private readonly elementRef;
|
|
37
40
|
private readonly poCalendarService;
|
|
38
41
|
private readonly poCalendarLangService;
|
|
39
42
|
hoverValue: Date;
|
|
@@ -67,6 +70,13 @@ export declare class PoCalendarComponent extends PoCalendarBaseComponent impleme
|
|
|
67
70
|
private getMonthOptions;
|
|
68
71
|
private getYearOptions;
|
|
69
72
|
private initializeYearAndMonthMode;
|
|
73
|
+
/**
|
|
74
|
+
* Centraliza na lista o ano selecionado, ou o ano atual quando não houver seleção, caso ele não esteja visível.
|
|
75
|
+
*/
|
|
76
|
+
scrollToSelectedYear(): void;
|
|
77
|
+
formatYearLabel(year: number): string;
|
|
78
|
+
private hasSelectedYear;
|
|
79
|
+
private updateDisplayYears;
|
|
70
80
|
getActivateDate(partType: any): any;
|
|
71
81
|
getValue(partType: any): any;
|
|
72
82
|
onSelectDate(selectedDate: any, partType?: any): void;
|
|
@@ -104,4 +114,7 @@ export declare class PoCalendarComponent extends PoCalendarBaseComponent impleme
|
|
|
104
114
|
private setMonth;
|
|
105
115
|
private setYear;
|
|
106
116
|
private writeDate;
|
|
117
|
+
private writeMonthYearDate;
|
|
118
|
+
private writeYearDate;
|
|
119
|
+
private parseYearValue;
|
|
107
120
|
}
|
|
@@ -10,7 +10,35 @@ export interface PoChartSerie {
|
|
|
10
10
|
/**
|
|
11
11
|
* @description
|
|
12
12
|
*
|
|
13
|
-
* Determina a cor da série.
|
|
13
|
+
* Determina a cor da série.
|
|
14
|
+
*
|
|
15
|
+
* As cores atribuídas por padrão às séries dos gráficos são representadas pelos tokens abaixo,
|
|
16
|
+
* aplicados conforme a posição da série na lista:
|
|
17
|
+
*
|
|
18
|
+
* - `color-caption-categorical-01`
|
|
19
|
+
* - `color-caption-categorical-02`
|
|
20
|
+
* - `color-caption-categorical-03`
|
|
21
|
+
* - `color-caption-categorical-04`
|
|
22
|
+
* - `color-caption-categorical-05`
|
|
23
|
+
* - `color-caption-categorical-06`
|
|
24
|
+
* - `color-caption-categorical-07`
|
|
25
|
+
* - `color-caption-categorical-08`
|
|
26
|
+
*
|
|
27
|
+
* As cores atribuídas por padrão ao preenchimento das séries do gráfico do tipo `area` são representadas
|
|
28
|
+
* pelos tokens abaixo, na mesma ordem. A linha da série utiliza os tokens listados anteriormente.
|
|
29
|
+
* - `color-caption-categorical-overlay-01`
|
|
30
|
+
* - `color-caption-categorical-overlay-02`
|
|
31
|
+
* - `color-caption-categorical-overlay-03`
|
|
32
|
+
* - `color-caption-categorical-overlay-04`
|
|
33
|
+
* - `color-caption-categorical-overlay-05`
|
|
34
|
+
* - `color-caption-categorical-overlay-06`
|
|
35
|
+
* - `color-caption-categorical-overlay-07`
|
|
36
|
+
* - `color-caption-categorical-overlay-08`
|
|
37
|
+
*
|
|
38
|
+
* > A partir da 9ª série sem cor informada, a cor é gerada aleatoriamente a cada renderização do gráfico.
|
|
39
|
+
* Para manter as cores estáveis, informe a propriedade `color` nessas séries.
|
|
40
|
+
*
|
|
41
|
+
* As maneiras de customizar o *preset* padrão de cores são:
|
|
14
42
|
* * Hexadecimal, por exemplo `#c64840`;
|
|
15
43
|
* * RGB, por exemplo `rgb(0, 0, 165)`
|
|
16
44
|
* * O nome da cor, por exemplo `blue`;
|
|
@@ -29,7 +57,6 @@ export interface PoChartSerie {
|
|
|
29
57
|
* - <span class="dot po-color-10"></span> `color-10`
|
|
30
58
|
* - <span class="dot po-color-11"></span> `color-11`
|
|
31
59
|
* - <span class="dot po-color-12"></span> `color-12`
|
|
32
|
-
* - A partir da 13° série o valor da cor será preta caso não seja enviada uma cor customizada.
|
|
33
60
|
*/
|
|
34
61
|
color?: string;
|
|
35
62
|
/**
|
|
@@ -45,6 +45,8 @@ import { PoChartGaugeUtils } from './po-chart-gauge-utils';
|
|
|
45
45
|
* <file name="sample-po-chart-technology-skill/sample-po-chart-technology-skill.component.html"> </file>
|
|
46
46
|
* <file name="sample-po-chart-technology-skill/sample-po-chart-technology-skill.component.ts"> </file>
|
|
47
47
|
* </example>
|
|
48
|
+
*
|
|
49
|
+
* @docsCategory charts
|
|
48
50
|
*/
|
|
49
51
|
export declare class PoChartComponent extends PoChartBaseComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy {
|
|
50
52
|
el: ElementRef<any>;
|
|
@@ -20,6 +20,8 @@ import { PoContainerBaseComponent } from './po-container-base.component';
|
|
|
20
20
|
* <file name="sample-po-container-dashboard/sample-po-container-dashboard.component.css"> </file>
|
|
21
21
|
* <file name="sample-po-container-dashboard/sample-po-container-dashboard.service.ts"> </file>
|
|
22
22
|
* </example>
|
|
23
|
+
*
|
|
24
|
+
* @docsCategory containers
|
|
23
25
|
*/
|
|
24
26
|
export declare class PoContainerComponent extends PoContainerBaseComponent {
|
|
25
27
|
}
|
|
@@ -28,6 +28,8 @@ interface PoInternalContextMenuItem extends PoContextMenuItem {
|
|
|
28
28
|
* <file name="sample-po-context-menu-user/sample-po-context-menu-user.component.ts"> </file>
|
|
29
29
|
* <file name="sample-po-context-menu-user/sample-po-context-menu-user.component.css"> </file>
|
|
30
30
|
* </example>
|
|
31
|
+
*
|
|
32
|
+
* @docsCategory navigation
|
|
31
33
|
*/
|
|
32
34
|
export declare class PoContextMenuComponent extends PoContextMenuBaseComponent {
|
|
33
35
|
private readonly languageService;
|
|
@@ -42,6 +42,8 @@ import { PoTabComponent, PoTabsComponent } from '../po-tabs';
|
|
|
42
42
|
* <file name="sample-po-context-tabs-business-conf/sample-po-context-tabs-business-conf.component.html"> </file>
|
|
43
43
|
* <file name="sample-po-context-tabs-business-conf/sample-po-context-tabs-business-conf.component.ts"> </file>
|
|
44
44
|
* </example>
|
|
45
|
+
*
|
|
46
|
+
* @docsCategory navigation
|
|
45
47
|
*/
|
|
46
48
|
export declare class PoContextTabsComponent extends PoTabsComponent {
|
|
47
49
|
byQuantityFunction: number;
|
|
@@ -22,6 +22,7 @@ import { PoDisclaimer } from '../po-disclaimer/po-disclaimer.interface';
|
|
|
22
22
|
* <file name="sample-po-disclaimer-group-sw-planets/sample-po-disclaimer-group-sw-planets.service.ts"> </file>
|
|
23
23
|
* </example>
|
|
24
24
|
*
|
|
25
|
+
* @docsCategory search-filters
|
|
25
26
|
*/
|
|
26
27
|
export declare class PoDisclaimerGroupComponent extends PoDisclaimerGroupBaseComponent implements AfterViewInit, OnChanges {
|
|
27
28
|
private subscription;
|
|
@@ -18,6 +18,8 @@ import { PoDividerBaseComponent } from './po-divider-base.component';
|
|
|
18
18
|
* <file name="sample-po-divider-user-detail/sample-po-divider-user-detail.component.html"> </file>
|
|
19
19
|
* <file name="sample-po-divider-user-detail/sample-po-divider-user-detail.component.ts"> </file>
|
|
20
20
|
* </example>
|
|
21
|
+
*
|
|
22
|
+
* @docsCategory containers
|
|
21
23
|
*/
|
|
22
24
|
export declare class PoDividerComponent extends PoDividerBaseComponent {
|
|
23
25
|
}
|
|
@@ -29,6 +29,8 @@ import { PoDropdownBaseComponent } from './po-dropdown-base.component';
|
|
|
29
29
|
* <file name="sample-po-dropdown-lazy-subitems/sample-po-dropdown-lazy-subitems.component.html"> </file>
|
|
30
30
|
* <file name="sample-po-dropdown-lazy-subitems/sample-po-dropdown-lazy-subitems.component.ts"> </file>
|
|
31
31
|
* </example>
|
|
32
|
+
*
|
|
33
|
+
* @docsCategory actions
|
|
32
34
|
*/
|
|
33
35
|
export declare class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
34
36
|
private readonly renderer;
|
|
@@ -27,6 +27,7 @@ import { PoDynamicFormValidationService } from './po-dynamic-form-validation/po-
|
|
|
27
27
|
* <file name="sample-po-dynamic-form-container/sample-po-dynamic-form-container.service.ts"> </file>
|
|
28
28
|
* </example>
|
|
29
29
|
*
|
|
30
|
+
* @docsCategory dynamic
|
|
30
31
|
*/
|
|
31
32
|
export declare class PoDynamicFormComponent extends PoDynamicFormBaseComponent implements OnInit, OnDestroy {
|
|
32
33
|
private readonly changes;
|
|
@@ -25,6 +25,8 @@ import { PoDynamicViewBaseComponent } from './po-dynamic-view-base.component';
|
|
|
25
25
|
* <file name="sample-po-dynamic-view-container/sample-po-dynamic-view-container.component.html"> </file>
|
|
26
26
|
* <file name="sample-po-dynamic-view-container/sample-po-dynamic-view-container.component.ts"> </file>
|
|
27
27
|
* </example>
|
|
28
|
+
*
|
|
29
|
+
* @docsCategory dynamic
|
|
28
30
|
*/
|
|
29
31
|
export declare class PoDynamicViewComponent extends PoDynamicViewBaseComponent implements OnChanges, OnInit {
|
|
30
32
|
initChanges: any;
|
|
@@ -20,6 +20,8 @@ import { PoHelperComponent } from '../../po-helper';
|
|
|
20
20
|
* <file name="sample-po-checkbox-acceptance-term/sample-po-checkbox-acceptance-term.component.html"> </file>
|
|
21
21
|
* <file name="sample-po-checkbox-acceptance-term/sample-po-checkbox-acceptance-term.component.ts"> </file>
|
|
22
22
|
* </example>
|
|
23
|
+
*
|
|
24
|
+
* @docsCategory selection
|
|
23
25
|
*/
|
|
24
26
|
export declare class PoCheckboxComponent extends PoCheckboxBaseComponent implements AfterViewInit, OnChanges, OnInit {
|
|
25
27
|
private readonly changeDetector;
|
|
@@ -22,6 +22,8 @@ import { PoHelperComponent } from '../../po-helper';
|
|
|
22
22
|
* <file name="sample-po-checkbox-group-password-policy/sample-po-checkbox-group-password-policy.component.html"> </file>
|
|
23
23
|
* <file name="sample-po-checkbox-group-password-policy/sample-po-checkbox-group-password-policy.component.ts"> </file>
|
|
24
24
|
* </example>
|
|
25
|
+
*
|
|
26
|
+
* @docsCategory selection
|
|
25
27
|
*/
|
|
26
28
|
export declare class PoCheckboxGroupComponent extends PoCheckboxGroupBaseComponent implements AfterViewChecked, AfterViewInit, OnChanges {
|
|
27
29
|
private readonly changeDetector;
|
|
@@ -53,6 +53,8 @@ import { PoHelperComponent } from '../../po-helper';
|
|
|
53
53
|
* <file name="sample-po-combo-hotels/sample-po-combo-hotels.component.html"> </file>
|
|
54
54
|
* <file name="sample-po-combo-hotels/sample-po-combo-hotels.component.ts"> </file>
|
|
55
55
|
* </example>
|
|
56
|
+
*
|
|
57
|
+
* @docsCategory selection
|
|
56
58
|
*/
|
|
57
59
|
export declare class PoComboComponent extends PoComboBaseComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
58
60
|
element: ElementRef<any>;
|
|
@@ -30,8 +30,11 @@ import { PoHelperOptions } from '../../po-helper';
|
|
|
30
30
|
*
|
|
31
31
|
* **Importante:**
|
|
32
32
|
*
|
|
33
|
-
* -
|
|
34
|
-
*
|
|
33
|
+
* - São aceitas datas com ano entre 0000 e 9999. No calendário, além dos anos listados no seletor, é possível
|
|
34
|
+
* digitar qualquer ano com 4 dígitos.
|
|
35
|
+
* - Datas no formato ISO (ex.: `'0050-05-10'`) com ano inferior a 100 são mantidas. Ao informar um objeto `Date`
|
|
36
|
+
* com ano inferior a 100, utilize o método [`setFullYear`](https://www.w3schools.com/jsref/jsref_setfullyear.asp),
|
|
37
|
+
* pois o [`new Date`](https://www.w3schools.com/js/js_dates.asp) converte esses anos para 19XX.
|
|
35
38
|
* - Caso a data esteja inválida, o `model` receberá **'Data inválida'**.
|
|
36
39
|
* - Caso o `input` esteja passando um `[(ngModel)]`, mas não tenha um `name`, então irá ocorrer um erro
|
|
37
40
|
* do próprio Angular (`[ngModelOptions]="{standalone: true}"`).
|
|
@@ -90,8 +93,10 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
90
93
|
* Define o modo de operação do datepicker.
|
|
91
94
|
*
|
|
92
95
|
* Permite configurar o componente para seleção de:
|
|
93
|
-
* - Mês e ano (`month-year`);
|
|
94
|
-
* - Apenas ano (`year`).
|
|
96
|
+
* - Mês e ano (`month-year`), com o *model* no formato `mm/yyyy` (ex.: `'03/2025'`);
|
|
97
|
+
* - Apenas ano (`year`), com o *model* no formato `yyyy` (ex.: `'2025'`).
|
|
98
|
+
*
|
|
99
|
+
* > O ano é sempre representado com 4 dígitos, inclusive para anos inferiores a 1000 (ex.: `'03/0050'`).
|
|
95
100
|
*/
|
|
96
101
|
mode?: 'month-year' | 'year';
|
|
97
102
|
/**
|
|
@@ -101,6 +106,9 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
101
106
|
* O valor informado determina o intervalo de anos anterior e posterior
|
|
102
107
|
* à data corrente que será disponibilizado para seleção.
|
|
103
108
|
*
|
|
109
|
+
* > Caso o ano selecionado esteja fora desse intervalo, ele também é exibido na lista. Esta propriedade
|
|
110
|
+
* não se aplica ao seletor de ano do calendário padrão (sem `p-mode`).
|
|
111
|
+
*
|
|
104
112
|
* @default 150
|
|
105
113
|
*/
|
|
106
114
|
set yearRangeLimit(value: number);
|
|
@@ -495,6 +503,9 @@ export declare abstract class PoDatepickerBaseComponent implements ControlValueA
|
|
|
495
503
|
[key: string]: any;
|
|
496
504
|
};
|
|
497
505
|
private isMonthYearOrYearInvalid;
|
|
506
|
+
protected parseYearToken(value: string): number | null;
|
|
507
|
+
private convertStringToDate;
|
|
508
|
+
private convertMonthYearToDate;
|
|
498
509
|
private isDateRangeValidForMode;
|
|
499
510
|
private validateMonthYearRange;
|
|
500
511
|
private validateYearRange;
|
|
@@ -37,6 +37,8 @@ import { PoHelperComponent } from '../../po-helper';
|
|
|
37
37
|
* <file name="sample-po-datepicker-airfare-reactive-form/sample-po-datepicker-airfare-reactive-form.component.html"> </file>
|
|
38
38
|
* <file name="sample-po-datepicker-airfare-reactive-form/sample-po-datepicker-airfare-reactive-form.component.ts"> </file>
|
|
39
39
|
* </example>
|
|
40
|
+
*
|
|
41
|
+
* @docsCategory date-time
|
|
40
42
|
*/
|
|
41
43
|
export declare class PoDatepickerComponent extends PoDatepickerBaseComponent implements AfterViewInit, OnDestroy, OnChanges {
|
|
42
44
|
private readonly controlPosition;
|
|
@@ -56,6 +58,7 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
56
58
|
eventListenerFunction: () => void;
|
|
57
59
|
eventResizeListener: () => void;
|
|
58
60
|
private clickListener;
|
|
61
|
+
private readonly mouseDownGuard;
|
|
59
62
|
private readonly dateRegex;
|
|
60
63
|
private readonly isoRegex;
|
|
61
64
|
private timeoutChange;
|
|
@@ -149,6 +152,7 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
149
152
|
private applyMonthYearValue;
|
|
150
153
|
private applyYearValue;
|
|
151
154
|
private parseMonthYearInput;
|
|
155
|
+
private isIncompleteZeroYear;
|
|
152
156
|
private syncCalendarMonthYear;
|
|
153
157
|
private syncCalendarYear;
|
|
154
158
|
private writeMonthYearValue;
|
|
@@ -157,6 +161,7 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
157
161
|
private isValidInputForMode;
|
|
158
162
|
private hasAttrCalendar;
|
|
159
163
|
private initializeListeners;
|
|
164
|
+
private isInsidePicker;
|
|
160
165
|
private isAdditionalHelpEventTriggered;
|
|
161
166
|
private isFocusOnFirstCombo;
|
|
162
167
|
private isFocusOnLastCombo;
|
|
@@ -168,6 +173,8 @@ export declare class PoDatepickerComponent extends PoDatepickerBaseComponent imp
|
|
|
168
173
|
handleCleanKeyboardTab(event: KeyboardEvent): void;
|
|
169
174
|
private shouldHandleTab;
|
|
170
175
|
private focusCalendar;
|
|
176
|
+
private getCurrentMonthOption;
|
|
177
|
+
private getCurrentYearOption;
|
|
171
178
|
onCalendarKeyDown(event: KeyboardEvent): void;
|
|
172
179
|
setHelper(label?: string, additionalHelpTooltip?: string): {
|
|
173
180
|
hideAdditionalHelp: boolean;
|
|
@@ -44,6 +44,9 @@ import { PoCalendarRangePreset } from '../../po-calendar/interfaces/po-calendar-
|
|
|
44
44
|
*
|
|
45
45
|
* - Quando preenchidas a data inicial e final, a data inicial deve ser sempre menor ou igual a data final;
|
|
46
46
|
* - Ao passar uma data inválida via codificação, o valor será mantido no *model* e o `input` da tela aparecerá vazio;
|
|
47
|
+
* - Datas no formato ISO (ex.: `'0050-05-10'`) com ano inferior a 100 são mantidas. Ao informar um objeto `Date`
|
|
48
|
+
* com ano inferior a 100, utilize o método [`setFullYear`](https://www.w3schools.com/jsref/jsref_setfullyear.asp),
|
|
49
|
+
* pois o [`new Date`](https://www.w3schools.com/js/js_dates.asp) converte esses anos para 19XX;
|
|
47
50
|
* - Permite trabalhar com as duas datas separadamente através das propriedades `p-start-date` e `p-end-date` no lugar do
|
|
48
51
|
* `[(ngModel)]`, no entanto sem a validação do formulário;
|
|
49
52
|
* - Para a validação do formulário, utilize o `[(ngModel)]`.
|
|
@@ -34,6 +34,8 @@ import { PoButtonComponent } from '../../po-button';
|
|
|
34
34
|
* <file name="sample-po-datepicker-range-vacations-reactive-form/sample-po-datepicker-range-vacations-reactive-form.component.ts">
|
|
35
35
|
* </file>
|
|
36
36
|
* </example>
|
|
37
|
+
*
|
|
38
|
+
* @docsCategory date-time
|
|
37
39
|
*/
|
|
38
40
|
export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseComponent implements AfterViewInit, OnInit, OnDestroy, OnChanges {
|
|
39
41
|
private readonly controlPosition;
|
|
@@ -52,6 +54,7 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
52
54
|
widthWithPresets: boolean;
|
|
53
55
|
private clickListener;
|
|
54
56
|
private eventResizeListener;
|
|
57
|
+
private readonly mouseDownGuard;
|
|
55
58
|
private readonly poDatepickerRangeElement;
|
|
56
59
|
private readonly MIN_CALENDAR_WIDTH_WITH_PRESETS;
|
|
57
60
|
get autocomplete(): "off" | "on";
|
|
@@ -178,5 +181,6 @@ export declare class PoDatepickerRangeComponent extends PoDatepickerRangeBaseCom
|
|
|
178
181
|
private updateModelByScreen;
|
|
179
182
|
private verifyFormattedDates;
|
|
180
183
|
private wasClickedOnPicker;
|
|
184
|
+
private isInsidePicker;
|
|
181
185
|
closeCalendar(): void;
|
|
182
186
|
}
|
|
@@ -32,6 +32,9 @@ import { PoTimerFormat } from '../../po-timer/enums/po-timer-format.enum';
|
|
|
32
32
|
* - O valor emitido no model inclui o offset do timezone local do navegador.
|
|
33
33
|
* - Ao receber um valor com timezone, o componente converte automaticamente para horário local.
|
|
34
34
|
* - Caso a data/hora esteja inválida, o `model` receberá a mensagem de erro localizada.
|
|
35
|
+
* - Datas no formato ISO (ex.: `'0050-05-10'`) com ano inferior a 100 são mantidas. Ao informar um objeto `Date`
|
|
36
|
+
* com ano inferior a 100, utilize o método [`setFullYear`](https://www.w3schools.com/jsref/jsref_setfullyear.asp),
|
|
37
|
+
* pois o [`new Date`](https://www.w3schools.com/js/js_dates.asp) converte esses anos para 19XX.
|
|
35
38
|
* - Caso o `input` esteja passando um `[(ngModel)]`, mas não tenha um `name`, então irá ocorrer um erro
|
|
36
39
|
* do próprio Angular (`[ngModelOptions]="{standalone: true}"`).
|
|
37
40
|
*
|
|
@@ -514,6 +517,8 @@ export declare abstract class PoDatetimepickerBaseComponent implements ControlVa
|
|
|
514
517
|
private timeToSeconds;
|
|
515
518
|
private resolveFormat;
|
|
516
519
|
private processStringValue;
|
|
520
|
+
private hasLocalOffsetWithSeconds;
|
|
521
|
+
private copyDateWithTime;
|
|
517
522
|
private normalizeTimePart;
|
|
518
523
|
private extractTimeFromDate;
|
|
519
524
|
private requiredFailed;
|
|
@@ -27,6 +27,8 @@ import { PoDatetimepickerBaseComponent } from './po-datetimepicker-base.componen
|
|
|
27
27
|
* <file name="sample-po-datetimepicker-scheduling/sample-po-datetimepicker-scheduling.component.html"> </file>
|
|
28
28
|
* <file name="sample-po-datetimepicker-scheduling/sample-po-datetimepicker-scheduling.component.ts"> </file>
|
|
29
29
|
* </example>
|
|
30
|
+
*
|
|
31
|
+
* @docsCategory date-time
|
|
30
32
|
*/
|
|
31
33
|
export declare class PoDatetimepickerComponent extends PoDatetimepickerBaseComponent implements AfterViewInit, OnDestroy {
|
|
32
34
|
iconDatepicker: PoButtonComponent;
|
|
@@ -47,9 +49,12 @@ export declare class PoDatetimepickerComponent extends PoDatetimepickerBaseCompo
|
|
|
47
49
|
isInputFocused: boolean;
|
|
48
50
|
private clickListener;
|
|
49
51
|
private eventResizeListener;
|
|
52
|
+
private readonly mouseDownGuard;
|
|
50
53
|
private valueBeforeChange;
|
|
51
54
|
private hadValueOnOpen;
|
|
52
55
|
private isTodayPresetInProgress;
|
|
56
|
+
private lastSyncedCalendar;
|
|
57
|
+
private lastSyncedValue;
|
|
53
58
|
constructor();
|
|
54
59
|
ngAfterViewInit(): void;
|
|
55
60
|
ngOnDestroy(): void;
|
|
@@ -132,10 +137,12 @@ export declare class PoDatetimepickerComponent extends PoDatetimepickerBaseCompo
|
|
|
132
137
|
private normalizeTimeWithSeconds;
|
|
133
138
|
private syncDateFromInput;
|
|
134
139
|
private syncCalendarAndTimer;
|
|
140
|
+
private getSyncedValue;
|
|
135
141
|
private getExpectedInputLength;
|
|
136
142
|
private setCalendarPosition;
|
|
137
143
|
protected adjustCalendarPosition(): void;
|
|
138
144
|
private initializeListeners;
|
|
145
|
+
private isInsidePicker;
|
|
139
146
|
private removeListeners;
|
|
140
147
|
private readonly onScroll;
|
|
141
148
|
private setDialogPickerStyleDisplay;
|
|
@@ -44,6 +44,8 @@ import { PoInputBaseComponent } from '../po-input/po-input-base.component';
|
|
|
44
44
|
* <file name="sample-po-decimal-display-format/sample-po-decimal-display-format.component.html"> </file>
|
|
45
45
|
* <file name="sample-po-decimal-display-format/sample-po-decimal-display-format.component.ts"> </file>
|
|
46
46
|
* </example>
|
|
47
|
+
*
|
|
48
|
+
* @docsCategory form
|
|
47
49
|
*/
|
|
48
50
|
export declare class PoDecimalComponent extends PoInputBaseComponent implements AfterViewInit, OnInit, OnDestroy, OnChanges {
|
|
49
51
|
private readonly el;
|
|
@@ -24,6 +24,8 @@ import { PoInputGeneric } from '../po-input-generic/po-input-generic';
|
|
|
24
24
|
* <file name="sample-po-email-newsletter/sample-po-email-newsletter.component.html"> </file>
|
|
25
25
|
* <file name="sample-po-email-newsletter/sample-po-email-newsletter.component.ts"> </file>
|
|
26
26
|
* </example>
|
|
27
|
+
*
|
|
28
|
+
* @docsCategory form
|
|
27
29
|
*/
|
|
28
30
|
export declare class PoEmailComponent extends PoInputGeneric implements AfterViewInit, OnDestroy, OnChanges {
|
|
29
31
|
id: string;
|
|
@@ -3,6 +3,8 @@ import { AbstractControl, ValidationErrors, Validator } from '@angular/forms';
|
|
|
3
3
|
import { PoFieldModel } from './po-field.model';
|
|
4
4
|
/**
|
|
5
5
|
* @docsExtends PoFieldModel
|
|
6
|
+
*
|
|
7
|
+
* @docsCategory form
|
|
6
8
|
*/
|
|
7
9
|
export declare abstract class PoFieldValidateModel<T> extends PoFieldModel<T> implements Validator {
|
|
8
10
|
changeDetector: ChangeDetectorRef;
|