primeng 18.0.3-lts → 18.0.5-lts
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/datepicker/datepicker.d.ts +1 -1
- package/esm2022/api/licensemanager.mjs +2 -2
- package/esm2022/autocomplete/style/autocompletestyle.mjs +19 -6
- package/esm2022/button/button.mjs +11 -43
- package/esm2022/calendar/calendar.mjs +4 -4
- package/esm2022/confirmdialog/confirmdialog.mjs +34 -41
- package/esm2022/dataview/dataview.mjs +10 -35
- package/esm2022/datepicker/datepicker.mjs +60 -44
- package/esm2022/datepicker/style/datepickerstyle.mjs +14 -1
- package/esm2022/dialog/dialog.mjs +98 -108
- package/esm2022/drawer/drawer.mjs +2 -2
- package/esm2022/fieldset/style/fieldsetstyle.mjs +2 -1
- package/esm2022/iftalabel/style/iftalabelstyle.mjs +10 -4
- package/esm2022/inputnumber/style/inputnumberstyle.mjs +10 -1
- package/esm2022/multiselect/multiselect.mjs +20 -75
- package/esm2022/password/style/passwordstyle.mjs +2 -1
- package/esm2022/picklist/picklist.mjs +3 -1
- package/esm2022/splitter/splitter.mjs +3 -3
- package/esm2022/stepper/stepper.mjs +29 -57
- package/esm2022/table/table.interface.mjs +1 -1
- package/esm2022/table/table.mjs +81 -450
- package/esm2022/tree/tree.mjs +18 -88
- package/fesm2022/primeng-accordion.mjs +2 -2
- package/fesm2022/primeng-animateonscroll.mjs +1 -1
- package/fesm2022/primeng-api.mjs +2 -2
- package/fesm2022/primeng-api.mjs.map +1 -1
- package/fesm2022/primeng-autocomplete.mjs +20 -7
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-avatar.mjs +1 -1
- package/fesm2022/primeng-avatargroup.mjs +1 -1
- package/fesm2022/primeng-badge.mjs +2 -2
- package/fesm2022/primeng-blockui.mjs +2 -2
- package/fesm2022/primeng-breadcrumb.mjs +2 -2
- package/fesm2022/primeng-button.mjs +12 -44
- package/fesm2022/primeng-button.mjs.map +1 -1
- package/fesm2022/primeng-buttongroup.mjs +1 -1
- package/fesm2022/primeng-calendar.mjs +6 -6
- package/fesm2022/primeng-calendar.mjs.map +1 -1
- package/fesm2022/primeng-card.mjs +2 -2
- package/fesm2022/primeng-carousel.mjs +2 -2
- package/fesm2022/primeng-cascadeselect.mjs +1 -1
- package/fesm2022/primeng-chart.mjs +1 -1
- package/fesm2022/primeng-checkbox.mjs +2 -2
- package/fesm2022/primeng-chip.mjs +2 -2
- package/fesm2022/primeng-colorpicker.mjs +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +35 -42
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-confirmpopup.mjs +3 -3
- package/fesm2022/primeng-contextmenu.mjs +1 -1
- package/fesm2022/primeng-dataview.mjs +11 -36
- package/fesm2022/primeng-dataview.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +75 -46
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-defer.mjs +1 -1
- package/fesm2022/primeng-dialog.mjs +99 -109
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-divider.mjs +1 -1
- package/fesm2022/primeng-dock.mjs +2 -2
- package/fesm2022/primeng-dragdrop.mjs +1 -1
- package/fesm2022/primeng-drawer.mjs +3 -3
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +1 -1
- package/fesm2022/primeng-editor.mjs +2 -2
- package/fesm2022/primeng-fieldset.mjs +4 -3
- package/fesm2022/primeng-fieldset.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +2 -2
- package/fesm2022/primeng-floatlabel.mjs +1 -1
- package/fesm2022/primeng-fluid.mjs +1 -1
- package/fesm2022/primeng-galleria.mjs +1 -1
- package/fesm2022/primeng-iconfield.mjs +1 -1
- package/fesm2022/primeng-icons-baseicon.mjs +1 -1
- package/fesm2022/primeng-iftalabel.mjs +10 -4
- package/fesm2022/primeng-iftalabel.mjs.map +1 -1
- package/fesm2022/primeng-image.mjs +2 -2
- package/fesm2022/primeng-imagecompare.mjs +2 -2
- package/fesm2022/primeng-inplace.mjs +2 -2
- package/fesm2022/primeng-inputgroupaddon.mjs +1 -1
- package/fesm2022/primeng-inputicon.mjs +1 -1
- package/fesm2022/primeng-inputmask.mjs +2 -2
- package/fesm2022/primeng-inputnumber.mjs +11 -2
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +2 -2
- package/fesm2022/primeng-inputswitch.mjs +1 -1
- package/fesm2022/primeng-inputtext.mjs +1 -1
- package/fesm2022/primeng-inputtextarea.mjs +1 -1
- package/fesm2022/primeng-keyfilter.mjs +1 -1
- package/fesm2022/primeng-knob.mjs +1 -1
- package/fesm2022/primeng-listbox.mjs +2 -2
- package/fesm2022/primeng-megamenu.mjs +1 -1
- package/fesm2022/primeng-menu.mjs +1 -1
- package/fesm2022/primeng-menubar.mjs +1 -1
- package/fesm2022/primeng-message.mjs +2 -2
- package/fesm2022/primeng-messages.mjs +1 -1
- package/fesm2022/primeng-metergroup.mjs +1 -1
- package/fesm2022/primeng-multiselect.mjs +20 -75
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-orderlist.mjs +2 -2
- package/fesm2022/primeng-organizationchart.mjs +2 -2
- package/fesm2022/primeng-overlay.mjs +2 -2
- package/fesm2022/primeng-overlaybadge.mjs +1 -1
- package/fesm2022/primeng-overlaypanel.mjs +2 -2
- package/fesm2022/primeng-paginator.mjs +2 -2
- package/fesm2022/primeng-panel.mjs +3 -3
- package/fesm2022/primeng-panelmenu.mjs +2 -2
- package/fesm2022/primeng-password.mjs +3 -2
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +4 -2
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +3 -3
- package/fesm2022/primeng-progressbar.mjs +2 -2
- package/fesm2022/primeng-progressspinner.mjs +1 -1
- package/fesm2022/primeng-radiobutton.mjs +1 -1
- package/fesm2022/primeng-rating.mjs +2 -2
- package/fesm2022/primeng-scroller.mjs +2 -2
- package/fesm2022/primeng-scrollpanel.mjs +2 -2
- package/fesm2022/primeng-scrolltop.mjs +3 -3
- package/fesm2022/primeng-select.mjs +1 -1
- package/fesm2022/primeng-selectbutton.mjs +2 -2
- package/fesm2022/primeng-sidebar.mjs +2 -2
- package/fesm2022/primeng-skeleton.mjs +1 -1
- package/fesm2022/primeng-slider.mjs +1 -1
- package/fesm2022/primeng-speeddial.mjs +2 -2
- package/fesm2022/primeng-splitbutton.mjs +2 -2
- package/fesm2022/primeng-splitter.mjs +3 -3
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-stepper.mjs +32 -60
- package/fesm2022/primeng-stepper.mjs.map +1 -1
- package/fesm2022/primeng-steps.mjs +1 -1
- package/fesm2022/primeng-styleclass.mjs +1 -1
- package/fesm2022/primeng-table.mjs +81 -450
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabmenu.mjs +2 -2
- package/fesm2022/primeng-tabs.mjs +2 -2
- package/fesm2022/primeng-tabview.mjs +2 -2
- package/fesm2022/primeng-tag.mjs +2 -2
- package/fesm2022/primeng-terminal.mjs +1 -1
- package/fesm2022/primeng-textarea.mjs +1 -1
- package/fesm2022/primeng-tieredmenu.mjs +1 -1
- package/fesm2022/primeng-timeline.mjs +2 -2
- package/fesm2022/primeng-toast.mjs +2 -2
- package/fesm2022/primeng-togglebutton.mjs +2 -2
- package/fesm2022/primeng-toggleswitch.mjs +2 -2
- package/fesm2022/primeng-toolbar.mjs +2 -2
- package/fesm2022/primeng-tree.mjs +18 -88
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +2 -2
- package/fesm2022/primeng-treetable.mjs +1 -1
- package/package.json +315 -315
- package/splitter/splitter.d.ts +2 -2
- package/stepper/stepper.d.ts +4 -3
- package/table/table.d.ts +11 -11
- package/table/table.interface.d.ts +13 -13
@@ -1,12 +1,12 @@
|
|
1
|
-
import { trigger, state,
|
1
|
+
import { trigger, state, transition, style, animate } from '@angular/animations';
|
2
2
|
import * as i2 from '@angular/common';
|
3
3
|
import { CommonModule } from '@angular/common';
|
4
4
|
import * as i0 from '@angular/core';
|
5
|
-
import { Injectable, forwardRef, EventEmitter, inject,
|
5
|
+
import { Injectable, forwardRef, EventEmitter, inject, numberAttribute, booleanAttribute, ViewEncapsulation, ChangeDetectionStrategy, Component, ContentChildren, ContentChild, ViewChild, Output, Input, NgModule } from '@angular/core';
|
6
6
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
7
|
-
import { uuid, getOuterWidth, isDate, findSingle, getFocusableElements, hasClass, getIndex, find, isNotEmpty, appendChild, absolutePosition, relativePosition, addClass, blockBodyScroll, unblockBodyScroll, setAttribute, isTouchDevice } from '@primeuix/utils';
|
7
|
+
import { uuid, getOuterWidth, isDate, findSingle, getFocusableElements, hasClass, getIndex, find, isNotEmpty, addStyle, appendChild, absolutePosition, relativePosition, addClass, blockBodyScroll, unblockBodyScroll, setAttribute, isTouchDevice } from '@primeuix/utils';
|
8
8
|
import * as i1 from 'primeng/api';
|
9
|
-
import { TranslationKeys,
|
9
|
+
import { TranslationKeys, SharedModule, PrimeTemplate } from 'primeng/api';
|
10
10
|
import { AutoFocus } from 'primeng/autofocus';
|
11
11
|
import { BaseComponent } from 'primeng/basecomponent';
|
12
12
|
import { Button } from 'primeng/button';
|
@@ -88,6 +88,19 @@ const theme = ({ dt }) => `
|
|
88
88
|
color: ${dt('datepicker.input.icon.color')};
|
89
89
|
line-height: 1;
|
90
90
|
}
|
91
|
+
|
92
|
+
.p-datepicker:has(.p-datepicker-dropdown) .p-datepicker-clear-icon,
|
93
|
+
.p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-clear-icon {
|
94
|
+
inset-inline-end: calc(${dt('datepicker.dropdown.width')} + ${dt('form.field.padding.x')});
|
95
|
+
}
|
96
|
+
.p-datepicker-clear-icon {
|
97
|
+
position: absolute;
|
98
|
+
top: 50%;
|
99
|
+
margin-top: -0.5rem;
|
100
|
+
cursor: pointer;
|
101
|
+
color: ${dt('form.field.icon.color')};
|
102
|
+
inset-inline-end: ${dt('form.field.padding.x')};
|
103
|
+
}
|
91
104
|
|
92
105
|
.p-datepicker-fluid {
|
93
106
|
display: flex;
|
@@ -703,7 +716,6 @@ const _c22 = a0 => ({ $implicit: a0 });
|
|
703
716
|
const _c23 = (a0, a1) => ({ "p-datepicker-day-cell": true, "p-datepicker-other-month": a0, "p-datepicker-today": a1 });
|
704
717
|
const _c24 = (a0, a1) => ({ "p-datepicker-month": true, "p-datepicker-month-selected": a0, "p-disabled": a1 });
|
705
718
|
const _c25 = (a0, a1) => ({ "p-datepicker-year": true, "p-datepicker-year-selected": a0, "p-disabled": a1 });
|
706
|
-
const _c26 = a0 => [a0];
|
707
719
|
function DatePicker_ng_template_2_ng_container_2_TimesIcon_1_Template(rf, ctx) { if (rf & 1) {
|
708
720
|
const _r3 = i0.ɵɵgetCurrentView();
|
709
721
|
i0.ɵɵelementStart(0, "TimesIcon", 11);
|
@@ -810,11 +822,11 @@ function DatePicker_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
810
822
|
i0.ɵɵelementEnd();
|
811
823
|
i0.ɵɵtemplate(2, DatePicker_ng_template_2_ng_container_2_Template, 3, 2, "ng-container", 7)(3, DatePicker_ng_template_2_button_3_Template, 3, 6, "button", 8)(4, DatePicker_ng_template_2_ng_container_4_Template, 4, 5, "ng-container", 7);
|
812
824
|
} if (rf & 2) {
|
813
|
-
let
|
825
|
+
let tmp_18_0;
|
814
826
|
const ctx_r1 = i0.ɵɵnextContext();
|
815
827
|
i0.ɵɵclassMap(ctx_r1.inputStyleClass);
|
816
|
-
i0.ɵɵproperty("value", ctx_r1.inputFieldValue)("readonly", ctx_r1.readonlyInput)("ngStyle", ctx_r1.inputStyle)("ngClass", "p-datepicker-input")("placeholder", ctx_r1.placeholder || "")("disabled", ctx_r1.disabled)("pAutoFocus", ctx_r1.autofocus)("variant", ctx_r1.variant)("fluid", ctx_r1.hasFluid);
|
817
|
-
i0.ɵɵattribute("id", ctx_r1.inputId)("name", ctx_r1.name)("required", ctx_r1.required)("aria-required", ctx_r1.required)("aria-expanded", (
|
828
|
+
i0.ɵɵproperty("pSize", ctx_r1.size)("value", ctx_r1.inputFieldValue)("readonly", ctx_r1.readonlyInput)("ngStyle", ctx_r1.inputStyle)("ngClass", "p-datepicker-input")("placeholder", ctx_r1.placeholder || "")("disabled", ctx_r1.disabled)("pAutoFocus", ctx_r1.autofocus)("variant", ctx_r1.variant)("fluid", ctx_r1.hasFluid);
|
829
|
+
i0.ɵɵattribute("id", ctx_r1.inputId)("name", ctx_r1.name)("required", ctx_r1.required)("aria-required", ctx_r1.required)("aria-expanded", (tmp_18_0 = ctx_r1.overlayVisible) !== null && tmp_18_0 !== undefined ? tmp_18_0 : false)("aria-controls", ctx_r1.overlayVisible ? ctx_r1.panelId : null)("aria-labelledby", ctx_r1.ariaLabelledBy)("aria-label", ctx_r1.ariaLabel)("tabindex", ctx_r1.tabindex)("inputmode", ctx_r1.touchUI ? "off" : null);
|
818
830
|
i0.ɵɵadvance(2);
|
819
831
|
i0.ɵɵproperty("ngIf", ctx_r1.showClear && !ctx_r1.disabled && ctx_r1.value != null);
|
820
832
|
i0.ɵɵadvance();
|
@@ -888,7 +900,7 @@ function DatePicker_div_3_ng_container_4_div_2_span_8_Template(rf, ctx) { if (rf
|
|
888
900
|
} if (rf & 2) {
|
889
901
|
const ctx_r1 = i0.ɵɵnextContext(4);
|
890
902
|
i0.ɵɵadvance();
|
891
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.decadeTemplate && ctx_r1._decadeTemplate);
|
903
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.decadeTemplate && !ctx_r1._decadeTemplate);
|
892
904
|
i0.ɵɵadvance();
|
893
905
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decadeTemplate || ctx_r1._decadeTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c22, ctx_r1.yearPickerValues));
|
894
906
|
} }
|
@@ -1064,8 +1076,7 @@ function DatePicker_div_3_ng_container_4_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
1064
1076
|
const i_r17 = ctx.index;
|
1065
1077
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
1066
1078
|
i0.ɵɵadvance(2);
|
1067
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c21, i_r17 === 0 ? "visible" : "hidden"));
|
1068
|
-
i0.ɵɵattribute("aria-label", ctx_r1.prevIconAriaLabel);
|
1079
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c21, i_r17 === 0 ? "visible" : "hidden"))("ariaLabel", ctx_r1.prevIconAriaLabel);
|
1069
1080
|
i0.ɵɵadvance();
|
1070
1081
|
i0.ɵɵproperty("ngIf", !ctx_r1.previousIconTemplate && !ctx_r1._previousIconTemplate);
|
1071
1082
|
i0.ɵɵadvance();
|
@@ -1077,10 +1088,9 @@ function DatePicker_div_3_ng_container_4_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
1077
1088
|
i0.ɵɵadvance();
|
1078
1089
|
i0.ɵɵproperty("ngIf", ctx_r1.currentView === "year");
|
1079
1090
|
i0.ɵɵadvance();
|
1080
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(14, _c21, i_r17 === ctx_r1.months.length - 1 ? "visible" : "hidden"));
|
1081
|
-
i0.ɵɵattribute("aria-label", ctx_r1.nextIconAriaLabel);
|
1091
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(14, _c21, i_r17 === ctx_r1.months.length - 1 ? "visible" : "hidden"))("ariaLabel", ctx_r1.nextIconAriaLabel);
|
1082
1092
|
i0.ɵɵadvance();
|
1083
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
1093
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.nextIconTemplate && !ctx_r1._nextIconTemplate);
|
1084
1094
|
i0.ɵɵadvance();
|
1085
1095
|
i0.ɵɵproperty("ngIf", ctx_r1.nextIconTemplate || !ctx_r1._nextIconTemplate);
|
1086
1096
|
i0.ɵɵadvance();
|
@@ -1324,7 +1334,7 @@ function DatePicker_div_3_div_5_div_27_Template(rf, ctx) { if (rf & 1) {
|
|
1324
1334
|
i0.ɵɵadvance();
|
1325
1335
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.incrementIconTemplate || ctx_r1._incrementIconTemplate);
|
1326
1336
|
i0.ɵɵadvance(2);
|
1327
|
-
i0.ɵɵtextInterpolate(ctx_r1.pm ? "
|
1337
|
+
i0.ɵɵtextInterpolate(ctx_r1.pm ? ctx_r1.getTranslation("pm") : ctx_r1.getTranslation("am"));
|
1328
1338
|
i0.ɵɵadvance();
|
1329
1339
|
i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("pm"));
|
1330
1340
|
i0.ɵɵadvance();
|
@@ -1419,9 +1429,9 @@ function DatePicker_div_3_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
1419
1429
|
} if (rf & 2) {
|
1420
1430
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
1421
1431
|
i0.ɵɵadvance();
|
1422
|
-
i0.ɵɵproperty("label", ctx_r1.getTranslation("today"))("ngClass",
|
1432
|
+
i0.ɵɵproperty("label", ctx_r1.getTranslation("today"))("ngClass", ctx_r1.todayButtonStyleClass);
|
1423
1433
|
i0.ɵɵadvance();
|
1424
|
-
i0.ɵɵproperty("label", ctx_r1.getTranslation("clear"))("ngClass",
|
1434
|
+
i0.ɵɵproperty("label", ctx_r1.getTranslation("clear"))("ngClass", ctx_r1.clearButtonStyleClass);
|
1425
1435
|
} }
|
1426
1436
|
function DatePicker_div_3_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
1427
1437
|
i0.ɵɵelementContainer(0);
|
@@ -1431,7 +1441,7 @@ function DatePicker_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
1431
1441
|
i0.ɵɵelementStart(0, "div", 21, 2);
|
1432
1442
|
i0.ɵɵlistener("@overlayAnimation.start", function DatePicker_div_3_Template_div_animation_overlayAnimation_start_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOverlayAnimationStart($event)); })("@overlayAnimation.done", function DatePicker_div_3_Template_div_animation_overlayAnimation_done_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOverlayAnimationDone($event)); })("click", function DatePicker_div_3_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOverlayClick($event)); });
|
1433
1443
|
i0.ɵɵprojection(2);
|
1434
|
-
i0.ɵɵtemplate(3, DatePicker_div_3_ng_container_3_Template, 1, 0, "ng-container", 13)(4, DatePicker_div_3_ng_container_4_Template, 5, 3, "ng-container", 7)(5, DatePicker_div_3_div_5_Template, 28, 21, "div", 22)(6, DatePicker_div_3_div_6_Template, 3,
|
1444
|
+
i0.ɵɵtemplate(3, DatePicker_div_3_ng_container_3_Template, 1, 0, "ng-container", 13)(4, DatePicker_div_3_ng_container_4_Template, 5, 3, "ng-container", 7)(5, DatePicker_div_3_div_5_Template, 28, 21, "div", 22)(6, DatePicker_div_3_div_6_Template, 3, 4, "div", 23);
|
1435
1445
|
i0.ɵɵprojection(7, 1);
|
1436
1446
|
i0.ɵɵtemplate(8, DatePicker_div_3_ng_container_8_Template, 1, 0, "ng-container", 13);
|
1437
1447
|
i0.ɵɵelementEnd();
|
@@ -2272,8 +2282,8 @@ class DatePicker extends BaseComponent {
|
|
2272
2282
|
let m = month + i;
|
2273
2283
|
let y = year;
|
2274
2284
|
if (m > 11) {
|
2275
|
-
m =
|
2276
|
-
y = year +
|
2285
|
+
m = m % 12;
|
2286
|
+
y = year + Math.floor((month + i) / 12);
|
2277
2287
|
}
|
2278
2288
|
this.months.push(this.createMonth(m, y));
|
2279
2289
|
}
|
@@ -2486,7 +2496,7 @@ class DatePicker extends BaseComponent {
|
|
2486
2496
|
this.selectDate(dateMeta);
|
2487
2497
|
}
|
2488
2498
|
}
|
2489
|
-
if (
|
2499
|
+
if (this.hideOnDateTimeSelect && (this.isSingleSelection() || (this.isRangeSelection() && this.value[1]))) {
|
2490
2500
|
setTimeout(() => {
|
2491
2501
|
event.preventDefault();
|
2492
2502
|
this.hideOverlay();
|
@@ -2746,12 +2756,25 @@ class DatePicker extends BaseComponent {
|
|
2746
2756
|
return this.value != null && typeof this.value !== 'string';
|
2747
2757
|
}
|
2748
2758
|
isMonthSelected(month) {
|
2749
|
-
if (this.isComparable()
|
2750
|
-
|
2751
|
-
|
2752
|
-
return
|
2759
|
+
if (!this.isComparable())
|
2760
|
+
return false;
|
2761
|
+
if (this.isMultipleSelection()) {
|
2762
|
+
return this.value.some((currentValue) => currentValue.getMonth() === month && currentValue.getFullYear() === this.currentYear);
|
2763
|
+
}
|
2764
|
+
else if (this.isRangeSelection()) {
|
2765
|
+
if (!this.value[1]) {
|
2766
|
+
return this.value[0]?.getFullYear() === this.currentYear && this.value[0]?.getMonth() === month;
|
2767
|
+
}
|
2768
|
+
else {
|
2769
|
+
const currentDate = new Date(this.currentYear, month, 1);
|
2770
|
+
const startDate = new Date(this.value[0].getFullYear(), this.value[0].getMonth(), 1);
|
2771
|
+
const endDate = new Date(this.value[1].getFullYear(), this.value[1].getMonth(), 1);
|
2772
|
+
return currentDate >= startDate && currentDate <= endDate;
|
2773
|
+
}
|
2774
|
+
}
|
2775
|
+
else {
|
2776
|
+
return this.value.getMonth() === month && this.value.getFullYear() === this.currentYear;
|
2753
2777
|
}
|
2754
|
-
return false;
|
2755
2778
|
}
|
2756
2779
|
isMonthDisabled(month, year) {
|
2757
2780
|
const yearToCheck = year ?? this.currentYear;
|
@@ -2885,6 +2908,9 @@ class DatePicker extends BaseComponent {
|
|
2885
2908
|
this.onModelTouched();
|
2886
2909
|
}
|
2887
2910
|
onButtonClick(event, inputfield = this.inputfieldViewChild?.nativeElement) {
|
2911
|
+
if (this.disabled) {
|
2912
|
+
return;
|
2913
|
+
}
|
2888
2914
|
if (!this.overlayVisible) {
|
2889
2915
|
inputfield.focus();
|
2890
2916
|
this.showOverlay();
|
@@ -3341,10 +3367,10 @@ class DatePicker extends BaseComponent {
|
|
3341
3367
|
if (this.navigationState.backward) {
|
3342
3368
|
let cells;
|
3343
3369
|
if (this.currentView === 'month') {
|
3344
|
-
cells = find(this.contentViewChild.nativeElement, '.p-
|
3370
|
+
cells = find(this.contentViewChild.nativeElement, '.p-datepicker-month-view .p-datepicker-month:not(.p-disabled)');
|
3345
3371
|
}
|
3346
3372
|
else if (this.currentView === 'year') {
|
3347
|
-
cells = find(this.contentViewChild.nativeElement, '.p-
|
3373
|
+
cells = find(this.contentViewChild.nativeElement, '.p-datepicker-year-view .p-datepicker-year:not(.p-disabled)');
|
3348
3374
|
}
|
3349
3375
|
else {
|
3350
3376
|
cells = find(this.contentViewChild.nativeElement, this._focusKey || '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
|
@@ -3355,10 +3381,10 @@ class DatePicker extends BaseComponent {
|
|
3355
3381
|
}
|
3356
3382
|
else {
|
3357
3383
|
if (this.currentView === 'month') {
|
3358
|
-
cell = findSingle(this.contentViewChild.nativeElement, '.p-
|
3384
|
+
cell = findSingle(this.contentViewChild.nativeElement, '.p-datepicker-month-view .p-datepicker-month:not(.p-disabled)');
|
3359
3385
|
}
|
3360
3386
|
else if (this.currentView === 'year') {
|
3361
|
-
cell = findSingle(this.contentViewChild.nativeElement, '.p-
|
3387
|
+
cell = findSingle(this.contentViewChild.nativeElement, '.p-datepicker-year-view .p-datepicker-year:not(.p-disabled)');
|
3362
3388
|
}
|
3363
3389
|
else {
|
3364
3390
|
cell = findSingle(this.contentViewChild.nativeElement, this._focusKey || '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
|
@@ -3380,22 +3406,22 @@ class DatePicker extends BaseComponent {
|
|
3380
3406
|
const contentEl = this.contentViewChild?.nativeElement;
|
3381
3407
|
let cell;
|
3382
3408
|
if (this.currentView === 'month') {
|
3383
|
-
let cells = find(contentEl, '.p-
|
3384
|
-
let selectedCell = findSingle(contentEl, '.p-
|
3409
|
+
let cells = find(contentEl, '.p-datepicker-month-view .p-datepicker-month:not(.p-disabled)');
|
3410
|
+
let selectedCell = findSingle(contentEl, '.p-datepicker-month-view .p-datepicker-month.p-highlight');
|
3385
3411
|
cells.forEach((cell) => (cell.tabIndex = -1));
|
3386
3412
|
cell = selectedCell || cells[0];
|
3387
3413
|
if (cells.length === 0) {
|
3388
|
-
let disabledCells = find(contentEl, '.p-
|
3414
|
+
let disabledCells = find(contentEl, '.p-datepicker-month-view .p-datepicker-month.p-disabled[tabindex = "0"]');
|
3389
3415
|
disabledCells.forEach((cell) => (cell.tabIndex = -1));
|
3390
3416
|
}
|
3391
3417
|
}
|
3392
3418
|
else if (this.currentView === 'year') {
|
3393
|
-
let cells = find(contentEl, '.p-
|
3394
|
-
let selectedCell = findSingle(contentEl, '.p-
|
3419
|
+
let cells = find(contentEl, '.p-datepicker-year-view .p-datepicker-year:not(.p-disabled)');
|
3420
|
+
let selectedCell = findSingle(contentEl, '.p-datepicker-year-view .p-datepicker-year.p-highlight');
|
3395
3421
|
cells.forEach((cell) => (cell.tabIndex = -1));
|
3396
3422
|
cell = selectedCell || cells[0];
|
3397
3423
|
if (cells.length === 0) {
|
3398
|
-
let disabledCells = find(contentEl, '.p-
|
3424
|
+
let disabledCells = find(contentEl, '.p-datepicker-year-view .p-datepicker-year.p-disabled[tabindex = "0"]');
|
3399
3425
|
disabledCells.forEach((cell) => (cell.tabIndex = -1));
|
3400
3426
|
}
|
3401
3427
|
}
|
@@ -3864,6 +3890,8 @@ class DatePicker extends BaseComponent {
|
|
3864
3890
|
if (!this.inline) {
|
3865
3891
|
this.overlay = event.element;
|
3866
3892
|
this.overlay?.setAttribute(this.attributeSelector, '');
|
3893
|
+
const styles = !this.inline ? { position: 'absolute', top: '0', left: '0' } : undefined;
|
3894
|
+
addStyle(this.overlay, styles);
|
3867
3895
|
this.appendOverlay();
|
3868
3896
|
this.updateFocus();
|
3869
3897
|
if (this.autoZIndex) {
|
@@ -4126,7 +4154,7 @@ class DatePicker extends BaseComponent {
|
|
4126
4154
|
output += seconds < 10 ? '0' + seconds : seconds;
|
4127
4155
|
}
|
4128
4156
|
if (this.hourFormat == '12') {
|
4129
|
-
output += date.getHours() > 11 ? '
|
4157
|
+
output += ` ${this.getTranslation(date.getHours() > 11 ? 'pm' : 'am')}`;
|
4130
4158
|
}
|
4131
4159
|
return output;
|
4132
4160
|
}
|
@@ -4499,10 +4527,10 @@ class DatePicker extends BaseComponent {
|
|
4499
4527
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerViewChild = _t.first);
|
4500
4528
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputfieldViewChild = _t.first);
|
4501
4529
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);
|
4502
|
-
} }, inputs: { iconDisplay: "iconDisplay", style: "style", styleClass: "styleClass", inputStyle: "inputStyle", inputId: "inputId", name: "name", inputStyleClass: "inputStyleClass", placeholder: "placeholder", ariaLabelledBy: "ariaLabelledBy", ariaLabel: "ariaLabel", iconAriaLabel: "iconAriaLabel", disabled: [2, "disabled", "disabled", booleanAttribute], dateFormat: "dateFormat", multipleSeparator: "multipleSeparator", rangeSeparator: "rangeSeparator", inline: [2, "inline", "inline", booleanAttribute], showOtherMonths: [2, "showOtherMonths", "showOtherMonths", booleanAttribute], selectOtherMonths: [2, "selectOtherMonths", "selectOtherMonths", booleanAttribute], showIcon: [2, "showIcon", "showIcon", booleanAttribute], fluid: [2, "fluid", "fluid", booleanAttribute], icon: "icon", appendTo: "appendTo", readonlyInput: [2, "readonlyInput", "readonlyInput", booleanAttribute], shortYearCutoff: "shortYearCutoff", monthNavigator: [2, "monthNavigator", "monthNavigator", booleanAttribute], yearNavigator: [2, "yearNavigator", "yearNavigator", booleanAttribute], hourFormat: "hourFormat", timeOnly: [2, "timeOnly", "timeOnly", booleanAttribute], stepHour: [2, "stepHour", "stepHour", numberAttribute], stepMinute: [2, "stepMinute", "stepMinute", numberAttribute], stepSecond: [2, "stepSecond", "stepSecond", numberAttribute], showSeconds: [2, "showSeconds", "showSeconds", booleanAttribute], required: [2, "required", "required", booleanAttribute], showOnFocus: [2, "showOnFocus", "showOnFocus", booleanAttribute], showWeek: [2, "showWeek", "showWeek", booleanAttribute], startWeekFromFirstDayOfYear: "startWeekFromFirstDayOfYear", showClear: [2, "showClear", "showClear", booleanAttribute], dataType: "dataType", selectionMode: "selectionMode", maxDateCount: [2, "maxDateCount", "maxDateCount", numberAttribute], showButtonBar: [2, "showButtonBar", "showButtonBar", booleanAttribute], todayButtonStyleClass: "todayButtonStyleClass", clearButtonStyleClass: "clearButtonStyleClass", autofocus: [2, "autofocus", "autofocus", booleanAttribute], autoZIndex: [2, "autoZIndex", "autoZIndex", booleanAttribute], baseZIndex: [2, "baseZIndex", "baseZIndex", numberAttribute], panelStyleClass: "panelStyleClass", panelStyle: "panelStyle", keepInvalid: [2, "keepInvalid", "keepInvalid", booleanAttribute], hideOnDateTimeSelect: [2, "hideOnDateTimeSelect", "hideOnDateTimeSelect", booleanAttribute], touchUI: [2, "touchUI", "touchUI", booleanAttribute], timeSeparator: "timeSeparator", focusTrap: [2, "focusTrap", "focusTrap", booleanAttribute], showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", tabindex: [2, "tabindex", "tabindex", numberAttribute], variant: "variant", size: "size", minDate: "minDate", maxDate: "maxDate", disabledDates: "disabledDates", disabledDays: "disabledDays", yearRange: "yearRange", showTime: "showTime", responsiveOptions: "responsiveOptions", numberOfMonths: "numberOfMonths", firstDayOfWeek: "firstDayOfWeek", locale: "locale", view: "view", defaultDate: "defaultDate" }, outputs: { onFocus: "onFocus", onBlur: "onBlur", onClose: "onClose", onSelect: "onSelect", onClear: "onClear", onInput: "onInput", onTodayClick: "onTodayClick", onClearClick: "onClearClick", onMonthChange: "onMonthChange", onYearChange: "onYearChange", onClickOutside: "onClickOutside", onShow: "onShow" }, standalone: true, features: [i0.ɵɵProvidersFeature([DATEPICKER_VALUE_ACCESSOR, DatePickerStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], ngContentSelectors: _c16, decls: 4, vars: 6, consts: [["container", ""], ["inputfield", ""], ["contentWrapper", ""], [3, "ngClass", "ngStyle"], [3, "ngIf"], [3, "class", "ngStyle", "ngClass", "click", 4, "ngIf"], ["pInputText", "", "type", "text", "role", "combobox", "aria-autocomplete", "none", "aria-haspopup", "dialog", "autocomplete", "off", 3, "focus", "keydown", "click", "blur", "input", "value", "readonly", "ngStyle", "ngClass", "placeholder", "disabled", "pAutoFocus", "variant", "fluid"], [4, "ngIf"], ["type", "button", "aria-haspopup", "dialog", "class", "p-datepicker-dropdown", "tabindex", "0", 3, "disabled", "click", 4, "ngIf"], [3, "class", "click", 4, "ngIf"], ["class", "p-datepicker-clear-icon", 3, "click", 4, "ngIf"], [3, "click"], [1, "p-datepicker-clear-icon", 3, "click"], [4, "ngTemplateOutlet"], ["type", "button", "aria-haspopup", "dialog", "tabindex", "0", 1, "p-datepicker-dropdown", 3, "click", "disabled"], [3, "ngClass", 4, "ngIf"], [3, "ngClass"], [1, "p-datepicker-input-icon-container"], [3, "ngClass", "click", 4, "ngIf"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "click", "ngClass"], [3, "click", "ngStyle", "ngClass"], ["class", "p-datepicker-time-picker", 4, "ngIf"], ["class", "p-datepicker-buttonbar", 4, "ngIf"], [1, "p-datepicker-calendar-container"], ["class", "p-datepicker-calendar", 4, "ngFor", "ngForOf"], ["class", "p-datepicker-month-view", 4, "ngIf"], ["class", "p-datepicker-year-view", 4, "ngIf"], [1, "p-datepicker-calendar"], [1, "p-datepicker-header"], ["size", "small", "rounded", "", "text", "", "styleClass", "p-datepicker-prev-button p-button-icon-only", "type", "button", 3, "keydown", "onClick", "ngStyle"], [1, "p-datepicker-title"], ["type", "button", "class", "p-datepicker-select-month", "pRipple", "", 3, "disabled", "click", "keydown", 4, "ngIf"], ["type", "button", "class", "p-datepicker-select-year", "pRipple", "", 3, "disabled", "click", "keydown", 4, "ngIf"], ["class", "p-datepicker-decade", 4, "ngIf"], ["rounded", "", "text", "", "size", "small", "styleClass", "p-datepicker-next-button p-button-icon-only", 3, "keydown", "onClick", "ngStyle"], ["class", "p-datepicker-day-view", "role", "grid", 4, "ngIf"], ["type", "button", "pRipple", "", 1, "p-datepicker-select-month", 3, "click", "keydown", "disabled"], ["type", "button", "pRipple", "", 1, "p-datepicker-select-year", 3, "click", "keydown", "disabled"], [1, "p-datepicker-decade"], ["role", "grid", 1, "p-datepicker-day-view"], ["class", "p-datepicker-weekheader p-disabled", 4, "ngIf"], ["class", "p-datepicker-weekday-cell", "scope", "col", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], [1, "p-datepicker-weekheader", "p-disabled"], ["scope", "col", 1, "p-datepicker-weekday-cell"], [1, "p-datepicker-weekday"], ["class", "p-datepicker-weeknumber", 4, "ngIf"], [3, "ngClass", 4, "ngFor", "ngForOf"], [1, "p-datepicker-weeknumber"], [1, "p-datepicker-weeklabel-container", "p-disabled"], ["draggable", "false", "pRipple", "", 3, "click", "keydown", "ngClass"], ["class", "p-hidden-accessible", "aria-live", "polite", 4, "ngIf"], ["aria-live", "polite", 1, "p-hidden-accessible"], [1, "p-datepicker-month-view"], ["pRipple", "", 3, "ngClass", "click", "keydown", 4, "ngFor", "ngForOf"], ["pRipple", "", 3, "click", "keydown", "ngClass"], [1, "p-datepicker-year-view"], [1, "p-datepicker-time-picker"], [1, "p-datepicker-hour-picker"], ["rounded", "", "text", "", "size", "small", "styleClass", "p-datepicker-increment-button p-button-icon-only", 3, "keydown", "keydown.enter", "keydown.space", "mousedown", "mouseup", "keyup.enter", "keyup.space", "mouseleave"], [1, "p-datepicker-separator"], [1, "p-datepicker-minute-picker"], ["class", "p-datepicker-separator", 4, "ngIf"], ["class", "p-datepicker-second-picker", 4, "ngIf"], ["class", "p-datepicker-ampm-picker", 4, "ngIf"], [1, "p-datepicker-second-picker"], [1, "p-datepicker-ampm-picker"], ["size", "small", "text", "", "rounded", "", "styleClass", "p-datepicker-increment-button p-button-icon-only", 3, "keydown", "onClick", "keydown.enter"], ["size", "small", "text", "", "rounded", "", "styleClass", "p-datepicker-increment-button p-button-icon-only", 3, "keydown", "click", "keydown.enter"], [1, "p-datepicker-buttonbar"], ["size", "small", "styleClass", "p-datepicker-today-button", 3, "keydown", "onClick", "label", "ngClass"], ["size", "small", "styleClass", "p-datepicker-clear-button", 3, "keydown", "onClick", "label", "ngClass"]], template: function DatePicker_Template(rf, ctx) { if (rf & 1) {
|
4530
|
+
} }, inputs: { iconDisplay: "iconDisplay", style: "style", styleClass: "styleClass", inputStyle: "inputStyle", inputId: "inputId", name: "name", inputStyleClass: "inputStyleClass", placeholder: "placeholder", ariaLabelledBy: "ariaLabelledBy", ariaLabel: "ariaLabel", iconAriaLabel: "iconAriaLabel", disabled: [2, "disabled", "disabled", booleanAttribute], dateFormat: "dateFormat", multipleSeparator: "multipleSeparator", rangeSeparator: "rangeSeparator", inline: [2, "inline", "inline", booleanAttribute], showOtherMonths: [2, "showOtherMonths", "showOtherMonths", booleanAttribute], selectOtherMonths: [2, "selectOtherMonths", "selectOtherMonths", booleanAttribute], showIcon: [2, "showIcon", "showIcon", booleanAttribute], fluid: [2, "fluid", "fluid", booleanAttribute], icon: "icon", appendTo: "appendTo", readonlyInput: [2, "readonlyInput", "readonlyInput", booleanAttribute], shortYearCutoff: "shortYearCutoff", monthNavigator: [2, "monthNavigator", "monthNavigator", booleanAttribute], yearNavigator: [2, "yearNavigator", "yearNavigator", booleanAttribute], hourFormat: "hourFormat", timeOnly: [2, "timeOnly", "timeOnly", booleanAttribute], stepHour: [2, "stepHour", "stepHour", numberAttribute], stepMinute: [2, "stepMinute", "stepMinute", numberAttribute], stepSecond: [2, "stepSecond", "stepSecond", numberAttribute], showSeconds: [2, "showSeconds", "showSeconds", booleanAttribute], required: [2, "required", "required", booleanAttribute], showOnFocus: [2, "showOnFocus", "showOnFocus", booleanAttribute], showWeek: [2, "showWeek", "showWeek", booleanAttribute], startWeekFromFirstDayOfYear: "startWeekFromFirstDayOfYear", showClear: [2, "showClear", "showClear", booleanAttribute], dataType: "dataType", selectionMode: "selectionMode", maxDateCount: [2, "maxDateCount", "maxDateCount", numberAttribute], showButtonBar: [2, "showButtonBar", "showButtonBar", booleanAttribute], todayButtonStyleClass: "todayButtonStyleClass", clearButtonStyleClass: "clearButtonStyleClass", autofocus: [2, "autofocus", "autofocus", booleanAttribute], autoZIndex: [2, "autoZIndex", "autoZIndex", booleanAttribute], baseZIndex: [2, "baseZIndex", "baseZIndex", numberAttribute], panelStyleClass: "panelStyleClass", panelStyle: "panelStyle", keepInvalid: [2, "keepInvalid", "keepInvalid", booleanAttribute], hideOnDateTimeSelect: [2, "hideOnDateTimeSelect", "hideOnDateTimeSelect", booleanAttribute], touchUI: [2, "touchUI", "touchUI", booleanAttribute], timeSeparator: "timeSeparator", focusTrap: [2, "focusTrap", "focusTrap", booleanAttribute], showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", tabindex: [2, "tabindex", "tabindex", numberAttribute], variant: "variant", size: "size", minDate: "minDate", maxDate: "maxDate", disabledDates: "disabledDates", disabledDays: "disabledDays", yearRange: "yearRange", showTime: "showTime", responsiveOptions: "responsiveOptions", numberOfMonths: "numberOfMonths", firstDayOfWeek: "firstDayOfWeek", locale: "locale", view: "view", defaultDate: "defaultDate" }, outputs: { onFocus: "onFocus", onBlur: "onBlur", onClose: "onClose", onSelect: "onSelect", onClear: "onClear", onInput: "onInput", onTodayClick: "onTodayClick", onClearClick: "onClearClick", onMonthChange: "onMonthChange", onYearChange: "onYearChange", onClickOutside: "onClickOutside", onShow: "onShow" }, standalone: true, features: [i0.ɵɵProvidersFeature([DATEPICKER_VALUE_ACCESSOR, DatePickerStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], ngContentSelectors: _c16, decls: 4, vars: 6, consts: [["container", ""], ["inputfield", ""], ["contentWrapper", ""], [3, "ngClass", "ngStyle"], [3, "ngIf"], [3, "class", "ngStyle", "ngClass", "click", 4, "ngIf"], ["pInputText", "", "type", "text", "role", "combobox", "aria-autocomplete", "none", "aria-haspopup", "dialog", "autocomplete", "off", 3, "focus", "keydown", "click", "blur", "input", "pSize", "value", "readonly", "ngStyle", "ngClass", "placeholder", "disabled", "pAutoFocus", "variant", "fluid"], [4, "ngIf"], ["type", "button", "aria-haspopup", "dialog", "class", "p-datepicker-dropdown", "tabindex", "0", 3, "disabled", "click", 4, "ngIf"], [3, "class", "click", 4, "ngIf"], ["class", "p-datepicker-clear-icon", 3, "click", 4, "ngIf"], [3, "click"], [1, "p-datepicker-clear-icon", 3, "click"], [4, "ngTemplateOutlet"], ["type", "button", "aria-haspopup", "dialog", "tabindex", "0", 1, "p-datepicker-dropdown", 3, "click", "disabled"], [3, "ngClass", 4, "ngIf"], [3, "ngClass"], [1, "p-datepicker-input-icon-container"], [3, "ngClass", "click", 4, "ngIf"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "click", "ngClass"], [3, "click", "ngStyle", "ngClass"], ["class", "p-datepicker-time-picker", 4, "ngIf"], ["class", "p-datepicker-buttonbar", 4, "ngIf"], [1, "p-datepicker-calendar-container"], ["class", "p-datepicker-calendar", 4, "ngFor", "ngForOf"], ["class", "p-datepicker-month-view", 4, "ngIf"], ["class", "p-datepicker-year-view", 4, "ngIf"], [1, "p-datepicker-calendar"], [1, "p-datepicker-header"], ["size", "small", "rounded", "", "text", "", "styleClass", "p-datepicker-prev-button p-button-icon-only", "type", "button", 3, "keydown", "onClick", "ngStyle", "ariaLabel"], [1, "p-datepicker-title"], ["type", "button", "class", "p-datepicker-select-month", "pRipple", "", 3, "disabled", "click", "keydown", 4, "ngIf"], ["type", "button", "class", "p-datepicker-select-year", "pRipple", "", 3, "disabled", "click", "keydown", 4, "ngIf"], ["class", "p-datepicker-decade", 4, "ngIf"], ["rounded", "", "text", "", "size", "small", "styleClass", "p-datepicker-next-button p-button-icon-only", 3, "keydown", "onClick", "ngStyle", "ariaLabel"], ["class", "p-datepicker-day-view", "role", "grid", 4, "ngIf"], ["type", "button", "pRipple", "", 1, "p-datepicker-select-month", 3, "click", "keydown", "disabled"], ["type", "button", "pRipple", "", 1, "p-datepicker-select-year", 3, "click", "keydown", "disabled"], [1, "p-datepicker-decade"], ["role", "grid", 1, "p-datepicker-day-view"], ["class", "p-datepicker-weekheader p-disabled", 4, "ngIf"], ["class", "p-datepicker-weekday-cell", "scope", "col", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], [1, "p-datepicker-weekheader", "p-disabled"], ["scope", "col", 1, "p-datepicker-weekday-cell"], [1, "p-datepicker-weekday"], ["class", "p-datepicker-weeknumber", 4, "ngIf"], [3, "ngClass", 4, "ngFor", "ngForOf"], [1, "p-datepicker-weeknumber"], [1, "p-datepicker-weeklabel-container", "p-disabled"], ["draggable", "false", "pRipple", "", 3, "click", "keydown", "ngClass"], ["class", "p-hidden-accessible", "aria-live", "polite", 4, "ngIf"], ["aria-live", "polite", 1, "p-hidden-accessible"], [1, "p-datepicker-month-view"], ["pRipple", "", 3, "ngClass", "click", "keydown", 4, "ngFor", "ngForOf"], ["pRipple", "", 3, "click", "keydown", "ngClass"], [1, "p-datepicker-year-view"], [1, "p-datepicker-time-picker"], [1, "p-datepicker-hour-picker"], ["rounded", "", "text", "", "size", "small", "styleClass", "p-datepicker-increment-button p-button-icon-only", 3, "keydown", "keydown.enter", "keydown.space", "mousedown", "mouseup", "keyup.enter", "keyup.space", "mouseleave"], [1, "p-datepicker-separator"], [1, "p-datepicker-minute-picker"], ["class", "p-datepicker-separator", 4, "ngIf"], ["class", "p-datepicker-second-picker", 4, "ngIf"], ["class", "p-datepicker-ampm-picker", 4, "ngIf"], [1, "p-datepicker-second-picker"], [1, "p-datepicker-ampm-picker"], ["size", "small", "text", "", "rounded", "", "styleClass", "p-datepicker-increment-button p-button-icon-only", 3, "keydown", "onClick", "keydown.enter"], ["size", "small", "text", "", "rounded", "", "styleClass", "p-datepicker-increment-button p-button-icon-only", 3, "keydown", "click", "keydown.enter"], [1, "p-datepicker-buttonbar"], ["size", "small", "styleClass", "p-datepicker-today-button", 3, "keydown", "onClick", "label", "ngClass"], ["size", "small", "styleClass", "p-datepicker-clear-button", 3, "keydown", "onClick", "label", "ngClass"]], template: function DatePicker_Template(rf, ctx) { if (rf & 1) {
|
4503
4531
|
i0.ɵɵprojectionDef(_c15);
|
4504
4532
|
i0.ɵɵelementStart(0, "span", 3, 0);
|
4505
|
-
i0.ɵɵtemplate(2, DatePicker_ng_template_2_Template, 5,
|
4533
|
+
i0.ɵɵtemplate(2, DatePicker_ng_template_2_Template, 5, 25, "ng-template", 4)(3, DatePicker_div_3_Template, 9, 20, "div", 5);
|
4506
4534
|
i0.ɵɵelementEnd();
|
4507
4535
|
} if (rf & 2) {
|
4508
4536
|
i0.ɵɵclassMap(ctx.styleClass);
|
@@ -4541,6 +4569,7 @@ class DatePicker extends BaseComponent {
|
|
4541
4569
|
<input
|
4542
4570
|
#inputfield
|
4543
4571
|
pInputText
|
4572
|
+
[pSize]="size"
|
4544
4573
|
type="text"
|
4545
4574
|
role="combobox"
|
4546
4575
|
[attr.id]="inputId"
|
@@ -4644,7 +4673,7 @@ class DatePicker extends BaseComponent {
|
|
4644
4673
|
(onClick)="onPrevButtonClick($event)"
|
4645
4674
|
[ngStyle]="{ visibility: i === 0 ? 'visible' : 'hidden' }"
|
4646
4675
|
type="button"
|
4647
|
-
[
|
4676
|
+
[ariaLabel]="prevIconAriaLabel"
|
4648
4677
|
>
|
4649
4678
|
<ChevronLeftIcon *ngIf="!previousIconTemplate && !_previousIconTemplate" />
|
4650
4679
|
<span *ngIf="previousIconTemplate || !_previousIconTemplate">
|
@@ -4677,7 +4706,7 @@ class DatePicker extends BaseComponent {
|
|
4677
4706
|
{{ getYear(month) }}
|
4678
4707
|
</button>
|
4679
4708
|
<span class="p-datepicker-decade" *ngIf="currentView === 'year'">
|
4680
|
-
<ng-container *ngIf="!decadeTemplate && _decadeTemplate">{{ yearPickerValues()[0] }} - {{ yearPickerValues()[yearPickerValues().length - 1] }}</ng-container>
|
4709
|
+
<ng-container *ngIf="!decadeTemplate && !_decadeTemplate">{{ yearPickerValues()[0] }} - {{ yearPickerValues()[yearPickerValues().length - 1] }}</ng-container>
|
4681
4710
|
<ng-container *ngTemplateOutlet="decadeTemplate || _decadeTemplate; context: { $implicit: yearPickerValues }"></ng-container>
|
4682
4711
|
</span>
|
4683
4712
|
</div>
|
@@ -4689,9 +4718,9 @@ class DatePicker extends BaseComponent {
|
|
4689
4718
|
styleClass="p-datepicker-next-button p-button-icon-only"
|
4690
4719
|
(onClick)="onNextButtonClick($event)"
|
4691
4720
|
[ngStyle]="{ visibility: i === months.length - 1 ? 'visible' : 'hidden' }"
|
4692
|
-
[
|
4721
|
+
[ariaLabel]="nextIconAriaLabel"
|
4693
4722
|
>
|
4694
|
-
<ChevronRightIcon *ngIf="!
|
4723
|
+
<ChevronRightIcon *ngIf="!nextIconTemplate && !_nextIconTemplate" />
|
4695
4724
|
|
4696
4725
|
<span *ngIf="nextIconTemplate || !_nextIconTemplate">
|
4697
4726
|
<ng-template *ngTemplateOutlet="nextIconTemplate || _nextIconTemplate"></ng-template>
|
@@ -4937,7 +4966,7 @@ class DatePicker extends BaseComponent {
|
|
4937
4966
|
<ChevronUpIcon *ngIf="!incrementIconTemplate && !_incrementIconTemplate" />
|
4938
4967
|
<ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
|
4939
4968
|
</p-button>
|
4940
|
-
<span>{{ pm ? '
|
4969
|
+
<span>{{ pm ? getTranslation('pm') : getTranslation('am') }}</span>
|
4941
4970
|
<p-button
|
4942
4971
|
size="small"
|
4943
4972
|
text
|
@@ -4954,8 +4983,8 @@ class DatePicker extends BaseComponent {
|
|
4954
4983
|
</div>
|
4955
4984
|
</div>
|
4956
4985
|
<div class="p-datepicker-buttonbar" *ngIf="showButtonBar">
|
4957
|
-
<p-button size="small" styleClass="p-datepicker-today-button" [label]="getTranslation('today')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onTodayButtonClick($event)" [ngClass]="
|
4958
|
-
<p-button size="small" styleClass="p-datepicker-clear-button" [label]="getTranslation('clear')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onClearButtonClick($event)" [ngClass]="
|
4986
|
+
<p-button size="small" styleClass="p-datepicker-today-button" [label]="getTranslation('today')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onTodayButtonClick($event)" [ngClass]="todayButtonStyleClass" />
|
4987
|
+
<p-button size="small" styleClass="p-datepicker-clear-button" [label]="getTranslation('clear')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onClearButtonClick($event)" [ngClass]="clearButtonStyleClass" />
|
4959
4988
|
</div>
|
4960
4989
|
<ng-content select="p-footer"></ng-content>
|
4961
4990
|
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
|