primeng 18.0.4-lts → 18.0.6-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/autocomplete/autocomplete.d.ts +1 -1
- package/chips/chips.d.ts +237 -0
- package/chips/chips.interface.d.ts +66 -0
- package/chips/index.d.ts +5 -0
- package/chips/public_api.d.ts +2 -0
- package/chips/style/chipsstyle.d.ts +69 -0
- package/confirmdialog/confirmdialog.d.ts +1 -0
- package/datepicker/datepicker.d.ts +7 -3
- package/esm2022/accordion/accordion.mjs +13 -12
- package/esm2022/autocomplete/autocomplete.mjs +56 -56
- package/esm2022/autocomplete/style/autocompletestyle.mjs +19 -6
- package/esm2022/base/style/basestyle.mjs +5 -1
- package/esm2022/button/button.mjs +11 -43
- package/esm2022/calendar/calendar.mjs +4 -4
- package/esm2022/carousel/carousel.mjs +3 -3
- package/esm2022/chips/chips.interface.mjs +2 -0
- package/esm2022/chips/chips.mjs +827 -0
- package/esm2022/chips/primeng-chips.mjs +5 -0
- package/esm2022/chips/public_api.mjs +3 -0
- package/esm2022/chips/style/chipsstyle.mjs +175 -0
- package/esm2022/confirmdialog/confirmdialog.mjs +44 -41
- package/esm2022/dataview/dataview.mjs +10 -35
- package/esm2022/datepicker/datepicker.mjs +85 -51
- package/esm2022/datepicker/style/datepickerstyle.mjs +19 -2
- package/esm2022/dialog/dialog.mjs +98 -108
- package/esm2022/drawer/drawer.mjs +2 -2
- package/esm2022/dynamicdialog/dynamicdialog.mjs +6 -2
- package/esm2022/fieldset/style/fieldsetstyle.mjs +2 -1
- package/esm2022/iftalabel/style/iftalabelstyle.mjs +10 -4
- package/esm2022/inputmask/inputmask.mjs +2 -1
- package/esm2022/inputnumber/inputnumber.mjs +13 -5
- package/esm2022/inputnumber/style/inputnumberstyle.mjs +10 -1
- package/esm2022/listbox/listbox.mjs +1 -1
- package/esm2022/megamenu/megamenu.mjs +6 -8
- package/esm2022/menu/menu.mjs +2 -1
- package/esm2022/menubar/menubar.mjs +3 -4
- package/esm2022/multiselect/multiselect.interface.mjs +1 -1
- package/esm2022/multiselect/multiselect.mjs +43 -83
- package/esm2022/overlay/overlay.mjs +14 -10
- package/esm2022/panel/panel.mjs +1 -2
- package/esm2022/password/style/passwordstyle.mjs +2 -1
- package/esm2022/picklist/picklist.mjs +263 -173
- package/esm2022/scroller/scroller.mjs +26 -10
- package/esm2022/select/select.mjs +10 -7
- package/esm2022/selectbutton/selectbutton.mjs +12 -5
- package/esm2022/splitbutton/splitbutton.mjs +9 -28
- package/esm2022/splitter/splitter.mjs +3 -3
- package/esm2022/stepper/stepper.mjs +31 -59
- package/esm2022/table/style/tablestyle.mjs +2 -2
- package/esm2022/table/table.interface.mjs +1 -1
- package/esm2022/table/table.mjs +116 -476
- package/esm2022/tabs/tabs.mjs +3 -3
- package/esm2022/tag/tag.mjs +1 -1
- package/esm2022/textarea/textarea.mjs +5 -1
- package/esm2022/tieredmenu/style/tieredmenustyle.mjs +13 -32
- package/esm2022/tieredmenu/tieredmenu.mjs +8 -8
- package/esm2022/togglebutton/style/togglebuttonstyle.mjs +2 -2
- package/esm2022/tooltip/tooltip.mjs +2 -2
- package/esm2022/tree/tree.mjs +68 -116
- package/esm2022/treeselect/treeselect.mjs +8 -7
- package/esm2022/treetable/treetable.mjs +3 -3
- package/fesm2022/primeng-accordion.mjs +12 -11
- package/fesm2022/primeng-accordion.mjs.map +1 -1
- package/fesm2022/primeng-autocomplete.mjs +73 -60
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-base.mjs +4 -0
- package/fesm2022/primeng-base.mjs.map +1 -1
- package/fesm2022/primeng-button.mjs +10 -42
- package/fesm2022/primeng-button.mjs.map +1 -1
- package/fesm2022/primeng-calendar.mjs +3 -3
- package/fesm2022/primeng-calendar.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +2 -2
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-chips.mjs +1006 -0
- package/fesm2022/primeng-chips.mjs.map +1 -0
- package/fesm2022/primeng-confirmdialog.mjs +43 -40
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-dataview.mjs +9 -34
- package/fesm2022/primeng-dataview.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +102 -51
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +97 -107
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-drawer.mjs +1 -1
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +5 -1
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
- package/fesm2022/primeng-fieldset.mjs +1 -0
- package/fesm2022/primeng-fieldset.mjs.map +1 -1
- package/fesm2022/primeng-iftalabel.mjs +9 -3
- package/fesm2022/primeng-iftalabel.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +1 -0
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +21 -4
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-megamenu.mjs +5 -7
- package/fesm2022/primeng-megamenu.mjs.map +1 -1
- package/fesm2022/primeng-menu.mjs +1 -0
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-menubar.mjs +2 -3
- package/fesm2022/primeng-menubar.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +42 -82
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-overlay.mjs +13 -9
- package/fesm2022/primeng-overlay.mjs.map +1 -1
- package/fesm2022/primeng-panel.mjs +0 -1
- package/fesm2022/primeng-panel.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +1 -0
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +262 -172
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-scroller.mjs +25 -9
- package/fesm2022/primeng-scroller.mjs.map +1 -1
- package/fesm2022/primeng-select.mjs +9 -6
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-selectbutton.mjs +11 -4
- package/fesm2022/primeng-selectbutton.mjs.map +1 -1
- package/fesm2022/primeng-splitbutton.mjs +9 -28
- package/fesm2022/primeng-splitbutton.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +2 -2
- 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-table.mjs +117 -477
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabs.mjs +2 -2
- package/fesm2022/primeng-tabs.mjs.map +1 -1
- package/fesm2022/primeng-tag.mjs.map +1 -1
- package/fesm2022/primeng-textarea.mjs +4 -0
- package/fesm2022/primeng-textarea.mjs.map +1 -1
- package/fesm2022/primeng-tieredmenu.mjs +20 -39
- package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +1 -1
- package/fesm2022/primeng-togglebutton.mjs.map +1 -1
- package/fesm2022/primeng-tooltip.mjs +1 -1
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +67 -115
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +7 -6
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +2 -2
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/inputnumber/inputnumber.d.ts +6 -1
- package/listbox/listbox.d.ts +1 -1
- package/multiselect/multiselect.d.ts +10 -2
- package/multiselect/multiselect.interface.d.ts +1 -1
- package/package.json +217 -211
- package/panel/panel.d.ts +0 -1
- package/picklist/picklist.d.ts +2 -2
- package/scroller/scroller.d.ts +4 -0
- package/select/select.d.ts +1 -0
- package/selectbutton/selectbutton.d.ts +1 -0
- package/splitbutton/splitbutton.d.ts +4 -6
- package/splitter/splitter.d.ts +2 -2
- package/stepper/stepper.d.ts +4 -3
- package/table/table.d.ts +14 -12
- package/table/table.interface.d.ts +13 -13
- package/tag/tag.d.ts +1 -1
- package/textarea/textarea.d.ts +1 -0
- package/tree/tree.d.ts +7 -1
@@ -4,7 +4,7 @@ import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
5
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
9
|
import { TranslationKeys, SharedModule, PrimeTemplate } from 'primeng/api';
|
10
10
|
import { AutoFocus } from 'primeng/autofocus';
|
@@ -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;
|
@@ -464,7 +477,11 @@ const classes = {
|
|
464
477
|
day: ({ instance, date }) => {
|
465
478
|
let selectedDayClass = '';
|
466
479
|
if (instance.isRangeSelection() && instance.isSelected(date) && date.selectable) {
|
467
|
-
|
480
|
+
const startDate = instance.value[0];
|
481
|
+
const endDate = instance.value[1];
|
482
|
+
const isStart = startDate && date.year === startDate.getFullYear() && date.month === startDate.getMonth() && date.day === startDate.getDate();
|
483
|
+
const isEnd = endDate && date.year === endDate.getFullYear() && date.month === endDate.getMonth() && date.day === endDate.getDate();
|
484
|
+
selectedDayClass = isStart || isEnd ? 'p-datepicker-day-selected' : 'p-datepicker-day-selected-range';
|
468
485
|
}
|
469
486
|
return {
|
470
487
|
'p-datepicker-day': true,
|
@@ -703,7 +720,6 @@ const _c22 = a0 => ({ $implicit: a0 });
|
|
703
720
|
const _c23 = (a0, a1) => ({ "p-datepicker-day-cell": true, "p-datepicker-other-month": a0, "p-datepicker-today": a1 });
|
704
721
|
const _c24 = (a0, a1) => ({ "p-datepicker-month": true, "p-datepicker-month-selected": a0, "p-disabled": a1 });
|
705
722
|
const _c25 = (a0, a1) => ({ "p-datepicker-year": true, "p-datepicker-year-selected": a0, "p-disabled": a1 });
|
706
|
-
const _c26 = a0 => [a0];
|
707
723
|
function DatePicker_ng_template_2_ng_container_2_TimesIcon_1_Template(rf, ctx) { if (rf & 1) {
|
708
724
|
const _r3 = i0.ɵɵgetCurrentView();
|
709
725
|
i0.ɵɵelementStart(0, "TimesIcon", 11);
|
@@ -810,11 +826,11 @@ function DatePicker_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
810
826
|
i0.ɵɵelementEnd();
|
811
827
|
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
828
|
} if (rf & 2) {
|
813
|
-
let
|
829
|
+
let tmp_18_0;
|
814
830
|
const ctx_r1 = i0.ɵɵnextContext();
|
815
831
|
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", (
|
832
|
+
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);
|
833
|
+
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
834
|
i0.ɵɵadvance(2);
|
819
835
|
i0.ɵɵproperty("ngIf", ctx_r1.showClear && !ctx_r1.disabled && ctx_r1.value != null);
|
820
836
|
i0.ɵɵadvance();
|
@@ -888,7 +904,7 @@ function DatePicker_div_3_ng_container_4_div_2_span_8_Template(rf, ctx) { if (rf
|
|
888
904
|
} if (rf & 2) {
|
889
905
|
const ctx_r1 = i0.ɵɵnextContext(4);
|
890
906
|
i0.ɵɵadvance();
|
891
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.decadeTemplate && ctx_r1._decadeTemplate);
|
907
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.decadeTemplate && !ctx_r1._decadeTemplate);
|
892
908
|
i0.ɵɵadvance();
|
893
909
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decadeTemplate || ctx_r1._decadeTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c22, ctx_r1.yearPickerValues));
|
894
910
|
} }
|
@@ -1064,12 +1080,11 @@ function DatePicker_div_3_ng_container_4_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
1064
1080
|
const i_r17 = ctx.index;
|
1065
1081
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
1066
1082
|
i0.ɵɵadvance(2);
|
1067
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c21, i_r17 === 0 ? "visible" : "hidden"));
|
1068
|
-
i0.ɵɵattribute("aria-label", ctx_r1.prevIconAriaLabel);
|
1083
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c21, i_r17 === 0 ? "visible" : "hidden"))("ariaLabel", ctx_r1.prevIconAriaLabel);
|
1069
1084
|
i0.ɵɵadvance();
|
1070
1085
|
i0.ɵɵproperty("ngIf", !ctx_r1.previousIconTemplate && !ctx_r1._previousIconTemplate);
|
1071
1086
|
i0.ɵɵadvance();
|
1072
|
-
i0.ɵɵproperty("ngIf", ctx_r1.previousIconTemplate ||
|
1087
|
+
i0.ɵɵproperty("ngIf", ctx_r1.previousIconTemplate || ctx_r1._previousIconTemplate);
|
1073
1088
|
i0.ɵɵadvance(2);
|
1074
1089
|
i0.ɵɵproperty("ngIf", ctx_r1.currentView === "date");
|
1075
1090
|
i0.ɵɵadvance();
|
@@ -1077,12 +1092,11 @@ function DatePicker_div_3_ng_container_4_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
1077
1092
|
i0.ɵɵadvance();
|
1078
1093
|
i0.ɵɵproperty("ngIf", ctx_r1.currentView === "year");
|
1079
1094
|
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);
|
1095
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(14, _c21, i_r17 === ctx_r1.months.length - 1 ? "visible" : "hidden"))("ariaLabel", ctx_r1.nextIconAriaLabel);
|
1082
1096
|
i0.ɵɵadvance();
|
1083
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
1097
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.nextIconTemplate && !ctx_r1._nextIconTemplate);
|
1084
1098
|
i0.ɵɵadvance();
|
1085
|
-
i0.ɵɵproperty("ngIf", ctx_r1.nextIconTemplate ||
|
1099
|
+
i0.ɵɵproperty("ngIf", ctx_r1.nextIconTemplate || ctx_r1._nextIconTemplate);
|
1086
1100
|
i0.ɵɵadvance();
|
1087
1101
|
i0.ɵɵproperty("ngIf", ctx_r1.currentView === "date");
|
1088
1102
|
} }
|
@@ -1324,7 +1338,7 @@ function DatePicker_div_3_div_5_div_27_Template(rf, ctx) { if (rf & 1) {
|
|
1324
1338
|
i0.ɵɵadvance();
|
1325
1339
|
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.incrementIconTemplate || ctx_r1._incrementIconTemplate);
|
1326
1340
|
i0.ɵɵadvance(2);
|
1327
|
-
i0.ɵɵtextInterpolate(ctx_r1.pm ? "
|
1341
|
+
i0.ɵɵtextInterpolate(ctx_r1.pm ? ctx_r1.getTranslation("pm") : ctx_r1.getTranslation("am"));
|
1328
1342
|
i0.ɵɵadvance();
|
1329
1343
|
i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("pm"));
|
1330
1344
|
i0.ɵɵadvance();
|
@@ -1419,9 +1433,9 @@ function DatePicker_div_3_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
1419
1433
|
} if (rf & 2) {
|
1420
1434
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
1421
1435
|
i0.ɵɵadvance();
|
1422
|
-
i0.ɵɵproperty("label", ctx_r1.getTranslation("today"))("ngClass",
|
1436
|
+
i0.ɵɵproperty("label", ctx_r1.getTranslation("today"))("ngClass", ctx_r1.todayButtonStyleClass);
|
1423
1437
|
i0.ɵɵadvance();
|
1424
|
-
i0.ɵɵproperty("label", ctx_r1.getTranslation("clear"))("ngClass",
|
1438
|
+
i0.ɵɵproperty("label", ctx_r1.getTranslation("clear"))("ngClass", ctx_r1.clearButtonStyleClass);
|
1425
1439
|
} }
|
1426
1440
|
function DatePicker_div_3_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
1427
1441
|
i0.ɵɵelementContainer(0);
|
@@ -1431,7 +1445,7 @@ function DatePicker_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
1431
1445
|
i0.ɵɵelementStart(0, "div", 21, 2);
|
1432
1446
|
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
1447
|
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,
|
1448
|
+
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
1449
|
i0.ɵɵprojection(7, 1);
|
1436
1450
|
i0.ɵɵtemplate(8, DatePicker_div_3_ng_container_8_Template, 1, 0, "ng-container", 13);
|
1437
1451
|
i0.ɵɵelementEnd();
|
@@ -1523,7 +1537,15 @@ class DatePicker extends BaseComponent {
|
|
1523
1537
|
* Format of the date which can also be defined at locale settings.
|
1524
1538
|
* @group Props
|
1525
1539
|
*/
|
1526
|
-
dateFormat
|
1540
|
+
get dateFormat() {
|
1541
|
+
return this._dateFormat;
|
1542
|
+
}
|
1543
|
+
set dateFormat(value) {
|
1544
|
+
this._dateFormat = value;
|
1545
|
+
if (this.initialized) {
|
1546
|
+
this.updateInputfield();
|
1547
|
+
}
|
1548
|
+
}
|
1527
1549
|
/**
|
1528
1550
|
* Separator for multiple selection mode.
|
1529
1551
|
* @group Props
|
@@ -1595,7 +1617,15 @@ class DatePicker extends BaseComponent {
|
|
1595
1617
|
* Specifies 12 or 24 hour format.
|
1596
1618
|
* @group Props
|
1597
1619
|
*/
|
1598
|
-
hourFormat
|
1620
|
+
get hourFormat() {
|
1621
|
+
return this._hourFormat;
|
1622
|
+
}
|
1623
|
+
set hourFormat(value) {
|
1624
|
+
this._hourFormat = value;
|
1625
|
+
if (this.initialized) {
|
1626
|
+
this.updateInputfield();
|
1627
|
+
}
|
1628
|
+
}
|
1599
1629
|
/**
|
1600
1630
|
* Whether to display timepicker only.
|
1601
1631
|
* @group Props
|
@@ -2021,6 +2051,8 @@ class DatePicker extends BaseComponent {
|
|
2021
2051
|
inputFieldValue = null;
|
2022
2052
|
_minDate;
|
2023
2053
|
_maxDate;
|
2054
|
+
_dateFormat;
|
2055
|
+
_hourFormat = '24';
|
2024
2056
|
_showTime;
|
2025
2057
|
_yearRange;
|
2026
2058
|
preventDocumentListener;
|
@@ -2272,8 +2304,8 @@ class DatePicker extends BaseComponent {
|
|
2272
2304
|
let m = month + i;
|
2273
2305
|
let y = year;
|
2274
2306
|
if (m > 11) {
|
2275
|
-
m =
|
2276
|
-
y = year +
|
2307
|
+
m = m % 12;
|
2308
|
+
y = year + Math.floor((month + i) / 12);
|
2277
2309
|
}
|
2278
2310
|
this.months.push(this.createMonth(m, y));
|
2279
2311
|
}
|
@@ -2486,7 +2518,7 @@ class DatePicker extends BaseComponent {
|
|
2486
2518
|
this.selectDate(dateMeta);
|
2487
2519
|
}
|
2488
2520
|
}
|
2489
|
-
if (
|
2521
|
+
if (this.hideOnDateTimeSelect && (this.isSingleSelection() || (this.isRangeSelection() && this.value[1]))) {
|
2490
2522
|
setTimeout(() => {
|
2491
2523
|
event.preventDefault();
|
2492
2524
|
this.hideOverlay();
|
@@ -2746,12 +2778,25 @@ class DatePicker extends BaseComponent {
|
|
2746
2778
|
return this.value != null && typeof this.value !== 'string';
|
2747
2779
|
}
|
2748
2780
|
isMonthSelected(month) {
|
2749
|
-
if (this.isComparable()
|
2750
|
-
|
2751
|
-
|
2752
|
-
return
|
2781
|
+
if (!this.isComparable())
|
2782
|
+
return false;
|
2783
|
+
if (this.isMultipleSelection()) {
|
2784
|
+
return this.value.some((currentValue) => currentValue.getMonth() === month && currentValue.getFullYear() === this.currentYear);
|
2785
|
+
}
|
2786
|
+
else if (this.isRangeSelection()) {
|
2787
|
+
if (!this.value[1]) {
|
2788
|
+
return this.value[0]?.getFullYear() === this.currentYear && this.value[0]?.getMonth() === month;
|
2789
|
+
}
|
2790
|
+
else {
|
2791
|
+
const currentDate = new Date(this.currentYear, month, 1);
|
2792
|
+
const startDate = new Date(this.value[0].getFullYear(), this.value[0].getMonth(), 1);
|
2793
|
+
const endDate = new Date(this.value[1].getFullYear(), this.value[1].getMonth(), 1);
|
2794
|
+
return currentDate >= startDate && currentDate <= endDate;
|
2795
|
+
}
|
2796
|
+
}
|
2797
|
+
else {
|
2798
|
+
return this.value.getMonth() === month && this.value.getFullYear() === this.currentYear;
|
2753
2799
|
}
|
2754
|
-
return false;
|
2755
2800
|
}
|
2756
2801
|
isMonthDisabled(month, year) {
|
2757
2802
|
const yearToCheck = year ?? this.currentYear;
|
@@ -2885,6 +2930,9 @@ class DatePicker extends BaseComponent {
|
|
2885
2930
|
this.onModelTouched();
|
2886
2931
|
}
|
2887
2932
|
onButtonClick(event, inputfield = this.inputfieldViewChild?.nativeElement) {
|
2933
|
+
if (this.disabled) {
|
2934
|
+
return;
|
2935
|
+
}
|
2888
2936
|
if (!this.overlayVisible) {
|
2889
2937
|
inputfield.focus();
|
2890
2938
|
this.showOverlay();
|
@@ -2894,9 +2942,9 @@ class DatePicker extends BaseComponent {
|
|
2894
2942
|
}
|
2895
2943
|
}
|
2896
2944
|
clear() {
|
2897
|
-
this.inputFieldValue = null;
|
2898
2945
|
this.value = null;
|
2899
2946
|
this.onModelChange(this.value);
|
2947
|
+
this.updateInputfield();
|
2900
2948
|
this.onClear.emit();
|
2901
2949
|
}
|
2902
2950
|
onOverlayClick(event) {
|
@@ -3341,10 +3389,10 @@ class DatePicker extends BaseComponent {
|
|
3341
3389
|
if (this.navigationState.backward) {
|
3342
3390
|
let cells;
|
3343
3391
|
if (this.currentView === 'month') {
|
3344
|
-
cells = find(this.contentViewChild.nativeElement, '.p-
|
3392
|
+
cells = find(this.contentViewChild.nativeElement, '.p-datepicker-month-view .p-datepicker-month:not(.p-disabled)');
|
3345
3393
|
}
|
3346
3394
|
else if (this.currentView === 'year') {
|
3347
|
-
cells = find(this.contentViewChild.nativeElement, '.p-
|
3395
|
+
cells = find(this.contentViewChild.nativeElement, '.p-datepicker-year-view .p-datepicker-year:not(.p-disabled)');
|
3348
3396
|
}
|
3349
3397
|
else {
|
3350
3398
|
cells = find(this.contentViewChild.nativeElement, this._focusKey || '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
|
@@ -3355,10 +3403,10 @@ class DatePicker extends BaseComponent {
|
|
3355
3403
|
}
|
3356
3404
|
else {
|
3357
3405
|
if (this.currentView === 'month') {
|
3358
|
-
cell = findSingle(this.contentViewChild.nativeElement, '.p-
|
3406
|
+
cell = findSingle(this.contentViewChild.nativeElement, '.p-datepicker-month-view .p-datepicker-month:not(.p-disabled)');
|
3359
3407
|
}
|
3360
3408
|
else if (this.currentView === 'year') {
|
3361
|
-
cell = findSingle(this.contentViewChild.nativeElement, '.p-
|
3409
|
+
cell = findSingle(this.contentViewChild.nativeElement, '.p-datepicker-year-view .p-datepicker-year:not(.p-disabled)');
|
3362
3410
|
}
|
3363
3411
|
else {
|
3364
3412
|
cell = findSingle(this.contentViewChild.nativeElement, this._focusKey || '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
|
@@ -3380,22 +3428,22 @@ class DatePicker extends BaseComponent {
|
|
3380
3428
|
const contentEl = this.contentViewChild?.nativeElement;
|
3381
3429
|
let cell;
|
3382
3430
|
if (this.currentView === 'month') {
|
3383
|
-
let cells = find(contentEl, '.p-
|
3384
|
-
let selectedCell = findSingle(contentEl, '.p-
|
3431
|
+
let cells = find(contentEl, '.p-datepicker-month-view .p-datepicker-month:not(.p-disabled)');
|
3432
|
+
let selectedCell = findSingle(contentEl, '.p-datepicker-month-view .p-datepicker-month.p-highlight');
|
3385
3433
|
cells.forEach((cell) => (cell.tabIndex = -1));
|
3386
3434
|
cell = selectedCell || cells[0];
|
3387
3435
|
if (cells.length === 0) {
|
3388
|
-
let disabledCells = find(contentEl, '.p-
|
3436
|
+
let disabledCells = find(contentEl, '.p-datepicker-month-view .p-datepicker-month.p-disabled[tabindex = "0"]');
|
3389
3437
|
disabledCells.forEach((cell) => (cell.tabIndex = -1));
|
3390
3438
|
}
|
3391
3439
|
}
|
3392
3440
|
else if (this.currentView === 'year') {
|
3393
|
-
let cells = find(contentEl, '.p-
|
3394
|
-
let selectedCell = findSingle(contentEl, '.p-
|
3441
|
+
let cells = find(contentEl, '.p-datepicker-year-view .p-datepicker-year:not(.p-disabled)');
|
3442
|
+
let selectedCell = findSingle(contentEl, '.p-datepicker-year-view .p-datepicker-year.p-highlight');
|
3395
3443
|
cells.forEach((cell) => (cell.tabIndex = -1));
|
3396
3444
|
cell = selectedCell || cells[0];
|
3397
3445
|
if (cells.length === 0) {
|
3398
|
-
let disabledCells = find(contentEl, '.p-
|
3446
|
+
let disabledCells = find(contentEl, '.p-datepicker-year-view .p-datepicker-year.p-disabled[tabindex = "0"]');
|
3399
3447
|
disabledCells.forEach((cell) => (cell.tabIndex = -1));
|
3400
3448
|
}
|
3401
3449
|
}
|
@@ -3864,6 +3912,8 @@ class DatePicker extends BaseComponent {
|
|
3864
3912
|
if (!this.inline) {
|
3865
3913
|
this.overlay = event.element;
|
3866
3914
|
this.overlay?.setAttribute(this.attributeSelector, '');
|
3915
|
+
const styles = !this.inline ? { position: 'absolute', top: '0', left: '0' } : undefined;
|
3916
|
+
addStyle(this.overlay, styles);
|
3867
3917
|
this.appendOverlay();
|
3868
3918
|
this.updateFocus();
|
3869
3919
|
if (this.autoZIndex) {
|
@@ -4126,7 +4176,7 @@ class DatePicker extends BaseComponent {
|
|
4126
4176
|
output += seconds < 10 ? '0' + seconds : seconds;
|
4127
4177
|
}
|
4128
4178
|
if (this.hourFormat == '12') {
|
4129
|
-
output += date.getHours() > 11 ? '
|
4179
|
+
output += ` ${this.getTranslation(date.getHours() > 11 ? 'pm' : 'am')}`;
|
4130
4180
|
}
|
4131
4181
|
return output;
|
4132
4182
|
}
|
@@ -4499,10 +4549,10 @@ class DatePicker extends BaseComponent {
|
|
4499
4549
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerViewChild = _t.first);
|
4500
4550
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputfieldViewChild = _t.first);
|
4501
4551
|
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) {
|
4552
|
+
} }, 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
4553
|
i0.ɵɵprojectionDef(_c15);
|
4504
4554
|
i0.ɵɵelementStart(0, "span", 3, 0);
|
4505
|
-
i0.ɵɵtemplate(2, DatePicker_ng_template_2_Template, 5,
|
4555
|
+
i0.ɵɵtemplate(2, DatePicker_ng_template_2_Template, 5, 25, "ng-template", 4)(3, DatePicker_div_3_Template, 9, 20, "div", 5);
|
4506
4556
|
i0.ɵɵelementEnd();
|
4507
4557
|
} if (rf & 2) {
|
4508
4558
|
i0.ɵɵclassMap(ctx.styleClass);
|
@@ -4541,6 +4591,7 @@ class DatePicker extends BaseComponent {
|
|
4541
4591
|
<input
|
4542
4592
|
#inputfield
|
4543
4593
|
pInputText
|
4594
|
+
[pSize]="size"
|
4544
4595
|
type="text"
|
4545
4596
|
role="combobox"
|
4546
4597
|
[attr.id]="inputId"
|
@@ -4644,10 +4695,10 @@ class DatePicker extends BaseComponent {
|
|
4644
4695
|
(onClick)="onPrevButtonClick($event)"
|
4645
4696
|
[ngStyle]="{ visibility: i === 0 ? 'visible' : 'hidden' }"
|
4646
4697
|
type="button"
|
4647
|
-
[
|
4698
|
+
[ariaLabel]="prevIconAriaLabel"
|
4648
4699
|
>
|
4649
4700
|
<ChevronLeftIcon *ngIf="!previousIconTemplate && !_previousIconTemplate" />
|
4650
|
-
<span *ngIf="previousIconTemplate ||
|
4701
|
+
<span *ngIf="previousIconTemplate || _previousIconTemplate">
|
4651
4702
|
<ng-template *ngTemplateOutlet="previousIconTemplate || _previousIconTemplate"></ng-template>
|
4652
4703
|
</span>
|
4653
4704
|
</p-button>
|
@@ -4677,7 +4728,7 @@ class DatePicker extends BaseComponent {
|
|
4677
4728
|
{{ getYear(month) }}
|
4678
4729
|
</button>
|
4679
4730
|
<span class="p-datepicker-decade" *ngIf="currentView === 'year'">
|
4680
|
-
<ng-container *ngIf="!decadeTemplate && _decadeTemplate">{{ yearPickerValues()[0] }} - {{ yearPickerValues()[yearPickerValues().length - 1] }}</ng-container>
|
4731
|
+
<ng-container *ngIf="!decadeTemplate && !_decadeTemplate">{{ yearPickerValues()[0] }} - {{ yearPickerValues()[yearPickerValues().length - 1] }}</ng-container>
|
4681
4732
|
<ng-container *ngTemplateOutlet="decadeTemplate || _decadeTemplate; context: { $implicit: yearPickerValues }"></ng-container>
|
4682
4733
|
</span>
|
4683
4734
|
</div>
|
@@ -4689,11 +4740,11 @@ class DatePicker extends BaseComponent {
|
|
4689
4740
|
styleClass="p-datepicker-next-button p-button-icon-only"
|
4690
4741
|
(onClick)="onNextButtonClick($event)"
|
4691
4742
|
[ngStyle]="{ visibility: i === months.length - 1 ? 'visible' : 'hidden' }"
|
4692
|
-
[
|
4743
|
+
[ariaLabel]="nextIconAriaLabel"
|
4693
4744
|
>
|
4694
|
-
<ChevronRightIcon *ngIf="!
|
4745
|
+
<ChevronRightIcon *ngIf="!nextIconTemplate && !_nextIconTemplate" />
|
4695
4746
|
|
4696
|
-
<span *ngIf="nextIconTemplate ||
|
4747
|
+
<span *ngIf="nextIconTemplate || _nextIconTemplate">
|
4697
4748
|
<ng-template *ngTemplateOutlet="nextIconTemplate || _nextIconTemplate"></ng-template>
|
4698
4749
|
</span>
|
4699
4750
|
</p-button>
|
@@ -4937,7 +4988,7 @@ class DatePicker extends BaseComponent {
|
|
4937
4988
|
<ChevronUpIcon *ngIf="!incrementIconTemplate && !_incrementIconTemplate" />
|
4938
4989
|
<ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
|
4939
4990
|
</p-button>
|
4940
|
-
<span>{{ pm ? '
|
4991
|
+
<span>{{ pm ? getTranslation('pm') : getTranslation('am') }}</span>
|
4941
4992
|
<p-button
|
4942
4993
|
size="small"
|
4943
4994
|
text
|
@@ -4954,8 +5005,8 @@ class DatePicker extends BaseComponent {
|
|
4954
5005
|
</div>
|
4955
5006
|
</div>
|
4956
5007
|
<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]="
|
5008
|
+
<p-button size="small" styleClass="p-datepicker-today-button" [label]="getTranslation('today')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onTodayButtonClick($event)" [ngClass]="todayButtonStyleClass" />
|
5009
|
+
<p-button size="small" styleClass="p-datepicker-clear-button" [label]="getTranslation('clear')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onClearButtonClick($event)" [ngClass]="clearButtonStyleClass" />
|
4959
5010
|
</div>
|
4960
5011
|
<ng-content select="p-footer"></ng-content>
|
4961
5012
|
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
|