UNPKG

primeng

Version:

PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB

1,032 lines (970 loc) 234 kB
import { trigger, state, style, transition, animate } from '@angular/animations'; import * as i2 from '@angular/common'; import { CommonModule } from '@angular/common'; import * as i0 from '@angular/core'; import { Injectable, forwardRef, EventEmitter, inject, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ContentChild, ViewChild, ContentChildren, NgModule } from '@angular/core'; import { NG_VALUE_ACCESSOR } from '@angular/forms'; import { uuid, getOuterWidth, isDate, findSingle, getFocusableElements, hasClass, getIndex, find, isNotEmpty, addStyle, appendChild, absolutePosition, relativePosition, addClass, blockBodyScroll, unblockBodyScroll, setAttribute, isTouchDevice } from '@primeuix/utils'; import * as i1 from 'primeng/api'; import { TranslationKeys, PrimeTemplate, SharedModule } from 'primeng/api'; import { AutoFocus } from 'primeng/autofocus'; import { BaseComponent } from 'primeng/basecomponent'; import { Button } from 'primeng/button'; import { ConnectedOverlayScrollHandler } from 'primeng/dom'; import { ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronDownIcon, TimesIcon, CalendarIcon } from 'primeng/icons'; import { InputText } from 'primeng/inputtext'; import { Ripple } from 'primeng/ripple'; import { ZIndexUtils } from 'primeng/utils'; import { BaseStyle } from 'primeng/base'; const theme = ({ dt }) => ` .p-datepicker { position: relative; display: inline-flex; max-width: 100%; } .p-datepicker-input { flex: 1 1 auto; width: 1%; } .p-datepicker:has(.p-datepicker-dropdown) .p-datepicker-input { border-start-end-radius: 0; border-end-end-radius: 0; } .p-datepicker-dropdown { cursor: pointer; display: inline-flex; cursor: pointer; user-select: none; align-items: center; justify-content: center; overflow: hidden; position: relative; width: ${dt('datepicker.dropdown.width')}; border-start-end-radius: ${dt('datepicker.dropdown.border.radius')}; border-end-end-radius: ${dt('datepicker.dropdown.border.radius')}; background: ${dt('datepicker.dropdown.background')}; border: 1px solid ${dt('datepicker.dropdown.border.color')}; border-left: 0 none; color: ${dt('datepicker.dropdown.color')}; transition: background ${dt('datepicker.transition.duration')}, color ${dt('datepicker.transition.duration')}, border-color ${dt('datepicker.transition.duration')}, outline-color ${dt('datepicker.transition.duration')}; outline-color: transparent; } .p-datepicker-dropdown:not(:disabled):hover { background: ${dt('datepicker.dropdown.hover.background')}; border-color: ${dt('datepicker.dropdown.hover.border.color')}; color: ${dt('datepicker.dropdown.hover.color')}; } .p-datepicker-dropdown:not(:disabled):active { background: ${dt('datepicker.dropdown.active.background')}; border-color: ${dt('datepicker.dropdown.active.border.color')}; color: ${dt('datepicker.dropdown.active.color')}; } .p-datepicker-dropdown:focus-visible { box-shadow: ${dt('datepicker.dropdown.focus.ring.shadow')}; outline: ${dt('datepicker.dropdown.focus.ring.width')} ${dt('datepicker.dropdown.focus.ring.style')} ${dt('datepicker.dropdown.focus.ring.color')}; outline-offset: ${dt('datepicker.dropdown.focus.ring.offset')}; } .p-datepicker:has(.p-datepicker-input-icon-container) { position: relative; } .p-datepicker:has(.p-datepicker-input-icon-container) .p-datepicker-input { padding-right: calc((${dt('form.field.padding.x')} * 2) + ${dt('icon.size')}); } .p-datepicker-input-icon-container { cursor: pointer; position: absolute; top: 50%; right: ${dt('form.field.padding.x')}; margin-top: calc(-1 * (${dt('icon.size')} / 2)); color: ${dt('datepicker.input.icon.color')}; } .p-datepicker-fluid { display: flex; } .p-datepicker-fluid .p-datepicker-input { width: 1%; } .p-datepicker .p-datepicker-panel { min-width: 100%; } .p-datepicker-panel { position: absolute; width: auto; padding: ${dt('datepicker.panel.padding')}; background: ${dt('datepicker.panel.background')}; color: ${dt('datepicker.panel.color')}; border: 1px solid ${dt('datepicker.panel.border.color')}; border-radius: ${dt('datepicker.panel.border.radius')}; box-shadow: ${dt('datepicker.panel.shadow')}; } .p-datepicker-panel-inline { display: inline-block; overflow-x: auto; box-shadow: none; } .p-datepicker-header { display: flex; align-items: center; justify-content: space-between; padding: ${dt('datepicker.header.padding')}; font-weight: ${dt('datepicker.header.font.weight')}; background: ${dt('datepicker.header.background')}; color: ${dt('datepicker.header.color')}; border-bottom: 1px solid ${dt('datepicker.header.border.color')}; } .p-datepicker-title { display: flex; align-items: center; justify-content: space-between; gap: ${dt('datepicker.title.gap')}; font-weight: ${dt('datepicker.title.font.weight')}; } .p-datepicker-select-year, .p-datepicker-select-month { border: none; background: transparent; margin: 0; cursor: pointer; font-weight: inherit; transition: background ${dt('datepicker.transition.duration')}, color ${dt('datepicker.transition.duration')}, border-color ${dt('datepicker.transition.duration')}, outline-color ${dt('datepicker.transition.duration')}, box-shadow ${dt('datepicker.transition.duration')}; } .p-datepicker-select-month { padding: ${dt('datepicker.select.month.padding')}; color: ${dt('datepicker.select.month.color')}; border-radius: ${dt('datepicker.select.month.border.radius')}; } .p-datepicker-select-year { padding: ${dt('datepicker.select.year.padding')}; color: ${dt('datepicker.select.year.color')}; border-radius: ${dt('datepicker.select.year.border.radius')}; } .p-datepicker-select-month:enabled:hover { background: ${dt('datepicker.select.month.hover.background')}; color: ${dt('datepicker.select.month.hover.color')}; } .p-datepicker-select-year:enabled:hover { background: ${dt('datepicker.select.year.hover.background')}; color: ${dt('datepicker.select.year.hover.color')}; } .p-datepicker-calendar-container { display: flex; } .p-datepicker-calendar-container .p-datepicker-calendar { flex: 1 1 auto; border-left: 1px solid ${dt('datepicker.group.border.color')}; padding-right: ${dt('datepicker.group.gap')}; padding-left: ${dt('datepicker.group.gap')}; } .p-datepicker-calendar-container .p-datepicker-calendar:first-child { padding-left: 0; border-left: 0 none; } .p-datepicker-calendar-container .p-datepicker-calendar:last-child { padding-right: 0; } .p-datepicker-day-view { width: 100%; border-collapse: collapse; font-size: 1rem; margin: ${dt('datepicker.day.view.margin')}; } .p-datepicker-weekday-cell { padding: ${dt('datepicker.week.day.padding')}; } .p-datepicker-weekday { font-weight: ${dt('datepicker.week.day.font.weight')}; color: ${dt('datepicker.week.day.color')}; } .p-datepicker-day-cell { padding: ${dt('datepicker.date.padding')}; } .p-datepicker-day { display: flex; justify-content: center; align-items: center; cursor: pointer; margin: 0 auto; overflow: hidden; position: relative; width: ${dt('datepicker.date.width')}; height: ${dt('datepicker.date.height')}; border-radius: ${dt('datepicker.date.border.radius')}; transition: background ${dt('datepicker.transition.duration')}, color ${dt('datepicker.transition.duration')}, border-color ${dt('datepicker.transition.duration')}, box-shadow ${dt('datepicker.transition.duration')}, outline-color ${dt('datepicker.transition.duration')}; border: 1px solid transparent; outline-color: transparent; color: ${dt('datepicker.date.color')}; } .p-datepicker-day:not(.p-datepicker-day-selected):not(.p-disabled):hover { background: ${dt('datepicker.date.hover.background')}; color: ${dt('datepicker.date.hover.color')}; } .p-datepicker-day:focus-visible { box-shadow: ${dt('datepicker.date.focus.ring.shadow')}; outline: ${dt('datepicker.date.focus.ring.width')} ${dt('datepicker.date.focus.ring.style')} ${dt('datepicker.date.focus.ring.color')}; outline-offset: ${dt('datepicker.date.focus.ring.offset')}; } .p-datepicker-day-selected { background: ${dt('datepicker.date.selected.background')}; color: ${dt('datepicker.date.selected.color')}; } .p-datepicker-day-selected-range { background: ${dt('datepicker.date.range.selected.background')}; color: ${dt('datepicker.date.range.selected.color')}; } .p-datepicker-today > .p-datepicker-day { background: ${dt('datepicker.today.background')}; color: ${dt('datepicker.today.color')}; } .p-datepicker-today > .p-datepicker-day-selected { background: ${dt('datepicker.date.selected.background')}; color: ${dt('datepicker.date.selected.color')}; } .p-datepicker-today > .p-datepicker-day-selected-range { background: ${dt('datepicker.date.range.selected.background')}; color: ${dt('datepicker.date.range.selected.color')}; } .p-datepicker-weeknumber { text-align: center } .p-datepicker-month-view { margin: ${dt('datepicker.month.view.margin')}; } .p-datepicker-month { width: 33.3%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; position: relative; padding: ${dt('datepicker.month.padding')}; transition: background ${dt('datepicker.transition.duration')}, color ${dt('datepicker.transition.duration')}, border-color ${dt('datepicker.transition.duration')}, box-shadow ${dt('datepicker.transition.duration')}, outline-color ${dt('datepicker.transition.duration')}; border-radius: ${dt('datepicker.month.border.radius')}; outline-color: transparent; color: ${dt('datepicker.date.color')}; } .p-datepicker-month:not(.p-disabled):not(.p-datepicker-month-selected):hover { color: ${dt('datepicker.date.hover.color')}; background: ${dt('datepicker.date.hover.background')}; } .p-datepicker-month-selected { color: ${dt('datepicker.date.selected.color')}; background: ${dt('datepicker.date.selected.background')}; } .p-datepicker-month:not(.p-disabled):focus-visible { box-shadow: ${dt('datepicker.date.focus.ring.shadow')}; outline: ${dt('datepicker.date.focus.ring.width')} ${dt('datepicker.date.focus.ring.style')} ${dt('datepicker.date.focus.ring.color')}; outline-offset: ${dt('datepicker.date.focus.ring.offset')}; } .p-datepicker-year-view { margin: ${dt('datepicker.year.view.margin')}; } .p-datepicker-year { width: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; position: relative; padding: ${dt('datepicker.year.padding')}; transition: background ${dt('datepicker.transition.duration')}, color ${dt('datepicker.transition.duration')}, border-color ${dt('datepicker.transition.duration')}, box-shadow ${dt('datepicker.transition.duration')}, outline-color ${dt('datepicker.transition.duration')}; border-radius: ${dt('datepicker.year.border.radius')}; outline-color: transparent; color: ${dt('datepicker.date.color')}; } .p-datepicker-year:not(.p-disabled):not(.p-datepicker-year-selected):hover { color: ${dt('datepicker.date.hover.color')}; background: ${dt('datepicker.date.hover.background')}; } .p-datepicker-year-selected { color: ${dt('datepicker.date.selected.color')}; background: ${dt('datepicker.date.selected.background')}; } .p-datepicker-year:not(.p-disabled):focus-visible { box-shadow: ${dt('datepicker.date.focus.ring.shadow')}; outline: ${dt('datepicker.date.focus.ring.width')} ${dt('datepicker.date.focus.ring.style')} ${dt('datepicker.date.focus.ring.color')}; outline-offset: ${dt('datepicker.date.focus.ring.offset')}; } .p-datepicker-buttonbar { display: flex; justify-content: space-between; align-items: center; padding: ${dt('datepicker.buttonbar.padding')}; border-top: 1px solid ${dt('datepicker.buttonbar.border.color')}; } .p-datepicker-buttonbar .p-button { width: auto; } .p-datepicker-time-picker { display: flex; justify-content: center; align-items: center; border-top: 1px solid ${dt('datepicker.time.picker.border.color')}; padding: 0; gap: ${dt('datepicker.time.picker.gap')}; } .p-datepicker-calendar-container + .p-datepicker-time-picker { padding: ${dt('datepicker.time.picker.padding')}; } .p-datepicker-time-picker > div { display: flex; align-items: center; flex-direction: column; gap: ${dt('datepicker.time.picker.button.gap')}; } .p-datepicker-time-picker span { font-size: 1rem; } .p-datepicker-timeonly .p-datepicker-time-picker { border-top: 0 none; } .p-datepicker-calendar:not(:first-child):not(:last-child) .p-datepicker-header { justify-content: center; } /* For PrimeNG */ p-calendar.ng-invalid.ng-dirty .p-datepicker.p-inputwrapper .p-inputtext{ border-color: ${dt('inputtext.invalid.border.color')}; } p-datepicker.ng-invalid.ng-dirty .p-datepicker.p-inputwrapper .p-inputtext{ border-color: ${dt('inputtext.invalid.border.color')}; } `; const inlineStyles = { root: ({ props }) => ({ position: props.appendTo === 'self' ? 'relative' : undefined }) }; const classes = { root: ({ instance }) => ({ 'p-datepicker p-component p-inputwrapper': true, 'p-datepicker-fluid': instance.hasFluid, 'p-inputwrapper-filled': instance.filled, 'p-inputwrapper-focus': instance.focus, 'p-focus': instance.focus || instance.overlayVisible }), pcInput: 'p-datepicker-input', dropdown: 'p-datepicker-dropdown', inputIconContainer: 'p-datepicker-input-icon-container', inputIcon: 'p-datepicker-input-icon', panel: ({ instance }) => ({ 'p-datepicker-panel p-component': true, 'p-datepicker-panel-inline': instance.inline, 'p-disabled': instance.disabled, 'p-datepicker-timeonly': instance.timeOnly }), calendarContainer: 'p-datepicker-calendar-container', calendar: 'p-datepicker-calendar', header: 'p-datepicker-header', pcPrevButton: 'p-datepicker-prev-button', title: 'p-datepicker-title', selectMonth: 'p-datepicker-select-month', selectYear: 'p-datepicker-select-year', decade: 'p-datepicker-decade', pcNextButton: 'p-datepicker-next-button', dayView: 'p-datepicker-day-view', weekHeader: 'p-datepicker-weekheader p-disabled', weekNumber: 'p-datepicker-weeknumber', weekLabelContainer: 'p-datepicker-weeklabel-container p-disabled', weekDayCell: 'p-datepicker-weekday-cell', weekDay: 'p-datepicker-weekday', dayCell: ({ date }) => [ 'p-datepicker-day-cell', { 'p-datepicker-other-month': date.otherMonth, 'p-datepicker-today': date.today } ], day: ({ instance, date }) => { let selectedDayClass = ''; if (instance.isRangeSelection() && instance.isSelected(date) && date.selectable) { selectedDayClass = date.day === instance.value[0].getDate() || date.day === instance.value[1].getDate() ? 'p-datepicker-day-selected' : 'p-datepicker-day-selected-range'; } return { 'p-datepicker-day': true, 'p-datepicker-day-selected': !instance.isRangeSelection() && instance.isSelected(date) && date.selectable, 'p-disabled': instance.disabled || !date.selectable, [selectedDayClass]: true }; }, monthView: 'p-datepicker-month-view', month: ({ instance, props, month, index }) => [ 'p-datepicker-month', { 'p-datepicker-month-selected': instance.isMonthSelected(index), 'p-disabled': props.disabled || !month.selectable } ], yearView: 'p-datepicker-year-view', year: ({ instance, props, year }) => [ 'p-datepicker-year', { 'p-datepicker-year-selected': instance.isYearSelected(year.value), 'p-disabled': props.disabled || !year.selectable } ], timePicker: 'p-datepicker-time-picker', hourPicker: 'p-datepicker-hour-picker', pcIncrementButton: 'p-datepicker-increment-button', pcDecrementButton: 'p-datepicker-decrement-button', separator: 'p-datepicker-separator', minutePicker: 'p-datepicker-minute-picker', secondPicker: 'p-datepicker-second-picker', ampmPicker: 'p-datepicker-ampm-picker', buttonbar: 'p-datepicker-buttonbar', pcTodayButton: 'p-datepicker-today-button', pcClearButton: 'p-datepicker-clear-button' }; class CalendarStyle extends BaseStyle { name = 'datepicker'; theme = theme; classes = classes; inlineStyles = inlineStyles; static ɵfac = /*@__PURE__*/ (() => { let ɵCalendarStyle_BaseFactory; return function CalendarStyle_Factory(__ngFactoryType__) { return (ɵCalendarStyle_BaseFactory || (ɵCalendarStyle_BaseFactory = i0.ɵɵgetInheritedFactory(CalendarStyle)))(__ngFactoryType__ || CalendarStyle); }; })(); static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CalendarStyle, factory: CalendarStyle.ɵfac }); } (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CalendarStyle, [{ type: Injectable }], null, null); })(); const _c0 = ["date"]; const _c1 = ["header"]; const _c2 = ["footer"]; const _c3 = ["disabledDate"]; const _c4 = ["decade"]; const _c5 = ["previousicon"]; const _c6 = ["nexticon"]; const _c7 = ["triggericon"]; const _c8 = ["clearicon"]; const _c9 = ["decrementicon"]; const _c10 = ["incrementicon"]; const _c11 = ["inputicon"]; const _c12 = ["container"]; const _c13 = ["inputfield"]; const _c14 = ["contentWrapper"]; const _c15 = [[["p-header"]], [["p-footer"]]]; const _c16 = ["p-header", "p-footer"]; const _c17 = a0 => ({ clickCallBack: a0 }); const _c18 = a0 => ({ "p-datepicker-input-icon": a0 }); const _c19 = (a0, a1) => ({ showTransitionParams: a0, hideTransitionParams: a1 }); const _c20 = a0 => ({ value: "visible", params: a0 }); const _c21 = a0 => ({ visibility: a0 }); const _c22 = a0 => ({ $implicit: a0 }); const _c23 = (a0, a1) => ({ "p-datepicker-day-cell": true, "p-datepicker-other-month": a0, "p-datepicker-today": a1 }); const _c24 = (a0, a1) => ({ "p-datepicker-month": true, "p-datepicker-month-selected": a0, "p-disabled": a1 }); const _c25 = (a0, a1) => ({ "p-datepicker-year": true, "p-datepicker-year-selected": a0, "p-disabled": a1 }); const _c26 = a0 => [a0]; function Calendar_ng_template_2_ng_container_2_TimesIcon_1_Template(rf, ctx) { if (rf & 1) { const _r3 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "TimesIcon", 11); i0.ɵɵlistener("click", function Calendar_ng_template_2_ng_container_2_TimesIcon_1_Template_TimesIcon_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.clear()); }); i0.ɵɵelementEnd(); } if (rf & 2) { i0.ɵɵclassMap("p-datepicker-clear-icon"); } } function Calendar_ng_template_2_ng_container_2_span_2_1_ng_template_0_Template(rf, ctx) { } function Calendar_ng_template_2_ng_container_2_span_2_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, Calendar_ng_template_2_ng_container_2_span_2_1_ng_template_0_Template, 0, 0, "ng-template"); } } function Calendar_ng_template_2_ng_container_2_span_2_Template(rf, ctx) { if (rf & 1) { const _r4 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "span", 12); i0.ɵɵlistener("click", function Calendar_ng_template_2_ng_container_2_span_2_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.clear()); }); i0.ɵɵtemplate(1, Calendar_ng_template_2_ng_container_2_span_2_1_Template, 1, 0, null, 13); i0.ɵɵelementEnd(); } if (rf & 2) { const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵadvance(); i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.clearIconTemplate || ctx_r1._clearIconTemplate); } } function Calendar_ng_template_2_ng_container_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0); i0.ɵɵtemplate(1, Calendar_ng_template_2_ng_container_2_TimesIcon_1_Template, 1, 2, "TimesIcon", 9)(2, Calendar_ng_template_2_ng_container_2_span_2_Template, 2, 1, "span", 10); i0.ɵɵelementContainerEnd(); } if (rf & 2) { const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", !ctx_r1.clearIconTemplate && !ctx_r1._clearIconTemplate); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", ctx_r1.clearIconTemplate || ctx_r1._clearIconTemplate); } } function Calendar_ng_template_2_button_3_span_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "span", 16); } if (rf & 2) { const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵproperty("ngClass", ctx_r1.icon); } } function Calendar_ng_template_2_button_3_ng_container_2_CalendarIcon_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "CalendarIcon"); } } function Calendar_ng_template_2_button_3_ng_container_2_2_ng_template_0_Template(rf, ctx) { } function Calendar_ng_template_2_button_3_ng_container_2_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, Calendar_ng_template_2_button_3_ng_container_2_2_ng_template_0_Template, 0, 0, "ng-template"); } } function Calendar_ng_template_2_button_3_ng_container_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0); i0.ɵɵtemplate(1, Calendar_ng_template_2_button_3_ng_container_2_CalendarIcon_1_Template, 1, 0, "CalendarIcon", 7)(2, Calendar_ng_template_2_button_3_ng_container_2_2_Template, 1, 0, null, 13); i0.ɵɵelementContainerEnd(); } if (rf & 2) { const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", !ctx_r1.triggerIconTemplate && !ctx_r1._triggerIconTemplate); i0.ɵɵadvance(); i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.triggerIconTemplate || ctx_r1._triggerIconTemplate); } } function Calendar_ng_template_2_button_3_Template(rf, ctx) { if (rf & 1) { const _r5 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "button", 14); i0.ɵɵlistener("click", function Calendar_ng_template_2_button_3_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r5); i0.ɵɵnextContext(); const inputfield_r6 = i0.ɵɵreference(1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onButtonClick($event, inputfield_r6)); }); i0.ɵɵtemplate(1, Calendar_ng_template_2_button_3_span_1_Template, 1, 1, "span", 15)(2, Calendar_ng_template_2_button_3_ng_container_2_Template, 3, 2, "ng-container", 7); i0.ɵɵelementEnd(); } if (rf & 2) { let tmp_6_0; const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵproperty("disabled", ctx_r1.disabled); i0.ɵɵattribute("aria-label", ctx_r1.iconButtonAriaLabel)("aria-expanded", (tmp_6_0 = ctx_r1.overlayVisible) !== null && tmp_6_0 !== undefined ? tmp_6_0 : false)("aria-controls", ctx_r1.overlayVisible ? ctx_r1.panelId : null); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", ctx_r1.icon); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", !ctx_r1.icon); } } function Calendar_ng_template_2_ng_container_4_CalendarIcon_2_Template(rf, ctx) { if (rf & 1) { const _r7 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "CalendarIcon", 20); i0.ɵɵlistener("click", function Calendar_ng_template_2_ng_container_4_CalendarIcon_2_Template_CalendarIcon_click_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onButtonClick($event)); }); i0.ɵɵelementEnd(); } if (rf & 2) { const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c18, ctx_r1.showOnFocus)); } } function Calendar_ng_template_2_ng_container_4_ng_container_3_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } function Calendar_ng_template_2_ng_container_4_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0); i0.ɵɵelementStart(1, "span", 17); i0.ɵɵtemplate(2, Calendar_ng_template_2_ng_container_4_CalendarIcon_2_Template, 1, 3, "CalendarIcon", 18)(3, Calendar_ng_template_2_ng_container_4_ng_container_3_Template, 1, 0, "ng-container", 19); i0.ɵɵelementEnd(); i0.ɵɵelementContainerEnd(); } if (rf & 2) { const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵadvance(2); i0.ɵɵproperty("ngIf", !ctx_r1.inputIconTemplate && !ctx_r1._inputIconTemplate); i0.ɵɵadvance(); i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.inputIconTemplate || ctx_r1._inputIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c17, ctx_r1.onButtonClick.bind(ctx_r1))); } } function Calendar_ng_template_2_Template(rf, ctx) { if (rf & 1) { const _r1 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "input", 6, 1); i0.ɵɵlistener("focus", function Calendar_ng_template_2_Template_input_focus_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onInputFocus($event)); })("keydown", function Calendar_ng_template_2_Template_input_keydown_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onInputKeydown($event)); })("click", function Calendar_ng_template_2_Template_input_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onInputClick()); })("blur", function Calendar_ng_template_2_Template_input_blur_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onInputBlur($event)); })("input", function Calendar_ng_template_2_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onUserInput($event)); }); i0.ɵɵelementEnd(); i0.ɵɵtemplate(2, Calendar_ng_template_2_ng_container_2_Template, 3, 2, "ng-container", 7)(3, Calendar_ng_template_2_button_3_Template, 3, 6, "button", 8)(4, Calendar_ng_template_2_ng_container_4_Template, 4, 5, "ng-container", 7); } if (rf & 2) { let tmp_17_0; const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵclassMap(ctx_r1.inputStyleClass); 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); i0.ɵɵattribute("id", ctx_r1.inputId)("name", ctx_r1.name)("required", ctx_r1.required)("aria-required", ctx_r1.required)("aria-expanded", (tmp_17_0 = ctx_r1.overlayVisible) !== null && tmp_17_0 !== undefined ? tmp_17_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); i0.ɵɵadvance(2); i0.ɵɵproperty("ngIf", ctx_r1.showClear && !ctx_r1.disabled && ctx_r1.value != null); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", ctx_r1.showIcon && ctx_r1.iconDisplay === "button"); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", ctx_r1.iconDisplay === "input" && ctx_r1.showIcon); } } function Calendar_div_3_ng_container_3_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } function Calendar_div_3_ng_container_4_div_2_ChevronLeftIcon_3_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "ChevronLeftIcon"); } } function Calendar_div_3_ng_container_4_div_2_span_4_1_ng_template_0_Template(rf, ctx) { } function Calendar_div_3_ng_container_4_div_2_span_4_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, Calendar_div_3_ng_container_4_div_2_span_4_1_ng_template_0_Template, 0, 0, "ng-template"); } } function Calendar_div_3_ng_container_4_div_2_span_4_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "span"); i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_2_span_4_1_Template, 1, 0, null, 13); i0.ɵɵelementEnd(); } if (rf & 2) { const ctx_r1 = i0.ɵɵnextContext(4); i0.ɵɵadvance(); i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.previousIconTemplate || ctx_r1._previousIconTemplate); } } function Calendar_div_3_ng_container_4_div_2_button_6_Template(rf, ctx) { if (rf & 1) { const _r10 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "button", 37); i0.ɵɵlistener("click", function Calendar_div_3_ng_container_4_div_2_button_6_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.switchToMonthView($event)); })("keydown", function Calendar_div_3_ng_container_4_div_2_button_6_Template_button_keydown_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event)); }); i0.ɵɵtext(1); i0.ɵɵelementEnd(); } if (rf & 2) { const month_r11 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵproperty("disabled", ctx_r1.switchViewButtonDisabled()); i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("chooseMonth")); i0.ɵɵadvance(); i0.ɵɵtextInterpolate1(" ", ctx_r1.getMonthName(month_r11.month), " "); } } function Calendar_div_3_ng_container_4_div_2_button_7_Template(rf, ctx) { if (rf & 1) { const _r12 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "button", 38); i0.ɵɵlistener("click", function Calendar_div_3_ng_container_4_div_2_button_7_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.switchToYearView($event)); })("keydown", function Calendar_div_3_ng_container_4_div_2_button_7_Template_button_keydown_0_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event)); }); i0.ɵɵtext(1); i0.ɵɵelementEnd(); } if (rf & 2) { const month_r11 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵproperty("disabled", ctx_r1.switchViewButtonDisabled()); i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("chooseYear")); i0.ɵɵadvance(); i0.ɵɵtextInterpolate1(" ", ctx_r1.getYear(month_r11), " "); } } function Calendar_div_3_ng_container_4_div_2_span_8_ng_container_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0); i0.ɵɵtext(1); i0.ɵɵelementContainerEnd(); } if (rf & 2) { const ctx_r1 = i0.ɵɵnextContext(5); i0.ɵɵadvance(); i0.ɵɵtextInterpolate2("", ctx_r1.yearPickerValues()[0], " - ", ctx_r1.yearPickerValues()[ctx_r1.yearPickerValues().length - 1], ""); } } function Calendar_div_3_ng_container_4_div_2_span_8_ng_container_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } function Calendar_div_3_ng_container_4_div_2_span_8_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "span", 39); i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_2_span_8_ng_container_1_Template, 2, 2, "ng-container", 7)(2, Calendar_div_3_ng_container_4_div_2_span_8_ng_container_2_Template, 1, 0, "ng-container", 19); i0.ɵɵelementEnd(); } if (rf & 2) { const ctx_r1 = i0.ɵɵnextContext(4); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", !ctx_r1.decadeTemplate && ctx_r1._decadeTemplate); i0.ɵɵadvance(); i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decadeTemplate || ctx_r1._decadeTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c22, ctx_r1.yearPickerValues)); } } function Calendar_div_3_ng_container_4_div_2_ChevronRightIcon_10_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "ChevronRightIcon"); } } function Calendar_div_3_ng_container_4_div_2_span_11_1_ng_template_0_Template(rf, ctx) { } function Calendar_div_3_ng_container_4_div_2_span_11_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, Calendar_div_3_ng_container_4_div_2_span_11_1_ng_template_0_Template, 0, 0, "ng-template"); } } function Calendar_div_3_ng_container_4_div_2_span_11_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "span"); i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_2_span_11_1_Template, 1, 0, null, 13); i0.ɵɵelementEnd(); } if (rf & 2) { const ctx_r1 = i0.ɵɵnextContext(4); i0.ɵɵadvance(); i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.nextIconTemplate || ctx_r1._nextIconTemplate); } } function Calendar_div_3_ng_container_4_div_2_table_12_th_3_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "th", 44)(1, "span"); i0.ɵɵtext(2); i0.ɵɵelementEnd()(); } if (rf & 2) { const ctx_r1 = i0.ɵɵnextContext(5); i0.ɵɵadvance(2); i0.ɵɵtextInterpolate(ctx_r1.getTranslation("weekHeader")); } } function Calendar_div_3_ng_container_4_div_2_table_12_th_4_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "th", 45)(1, "span", 46); i0.ɵɵtext(2); i0.ɵɵelementEnd()(); } if (rf & 2) { const weekDay_r13 = ctx.$implicit; i0.ɵɵadvance(2); i0.ɵɵtextInterpolate(weekDay_r13); } } function Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "td", 49)(1, "span", 50); i0.ɵɵtext(2); i0.ɵɵelementEnd()(); } if (rf & 2) { const j_r14 = i0.ɵɵnextContext().index; const month_r11 = i0.ɵɵnextContext(2).$implicit; i0.ɵɵadvance(2); i0.ɵɵtextInterpolate1(" ", month_r11.weekNumbers[j_r14], " "); } } function Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_ng_container_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0); i0.ɵɵtext(1); i0.ɵɵelementContainerEnd(); } if (rf & 2) { const date_r16 = i0.ɵɵnextContext(2).$implicit; i0.ɵɵadvance(); i0.ɵɵtextInterpolate(date_r16.day); } } function Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_ng_container_3_ng_container_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } function Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_ng_container_3_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0); i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_ng_container_3_ng_container_1_Template, 1, 0, "ng-container", 19); i0.ɵɵelementContainerEnd(); } if (rf & 2) { const date_r16 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(6); i0.ɵɵadvance(); i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.dateTemplate || ctx_r1._dateTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c22, date_r16)); } } function Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_ng_container_4_ng_container_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } function Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_ng_container_4_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0); i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_ng_container_4_ng_container_1_Template, 1, 0, "ng-container", 19); i0.ɵɵelementContainerEnd(); } if (rf & 2) { const date_r16 = i0.ɵɵnextContext(2).$implicit; const ctx_r1 = i0.ɵɵnextContext(6); i0.ɵɵadvance(); i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.disabledDateTemplate || ctx_r1._disabledDateTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c22, date_r16)); } } function Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_div_5_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "div", 53); i0.ɵɵtext(1); i0.ɵɵelementEnd(); } if (rf & 2) { const date_r16 = i0.ɵɵnextContext(2).$implicit; i0.ɵɵadvance(); i0.ɵɵtextInterpolate1(" ", date_r16.day, " "); } } function Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_Template(rf, ctx) { if (rf & 1) { const _r15 = i0.ɵɵgetCurrentView(); i0.ɵɵelementContainerStart(0); i0.ɵɵelementStart(1, "span", 51); i0.ɵɵlistener("click", function Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_Template_span_click_1_listener($event) { i0.ɵɵrestoreView(_r15); const date_r16 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(6); return i0.ɵɵresetView(ctx_r1.onDateSelect($event, date_r16)); })("keydown", function Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_Template_span_keydown_1_listener($event) { i0.ɵɵrestoreView(_r15); const date_r16 = i0.ɵɵnextContext().$implicit; const i_r17 = i0.ɵɵnextContext(3).index; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onDateCellKeydown($event, date_r16, i_r17)); }); i0.ɵɵtemplate(2, Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_ng_container_2_Template, 2, 1, "ng-container", 7)(3, Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_ng_container_3_Template, 2, 4, "ng-container", 7)(4, Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_ng_container_4_Template, 2, 4, "ng-container", 7); i0.ɵɵelementEnd(); i0.ɵɵtemplate(5, Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_div_5_Template, 2, 1, "div", 52); i0.ɵɵelementContainerEnd(); } if (rf & 2) { const date_r16 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(6); i0.ɵɵadvance(); i0.ɵɵproperty("ngClass", ctx_r1.dayClass(date_r16)); i0.ɵɵattribute("data-date", ctx_r1.formatDateKey(ctx_r1.formatDateMetaToDate(date_r16))); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", !ctx_r1.dateTemplate && !ctx_r1._dateTemplate && (date_r16.selectable || !ctx_r1.disabledDateTemplate && !ctx_r1._disabledDateTemplate)); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", date_r16.selectable || !ctx_r1.disabledDateTemplate && !ctx_r1._disabledDateTemplate); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", !date_r16.selectable); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", ctx_r1.isSelected(date_r16)); } } function Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "td", 16); i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_Template, 6, 6, "ng-container", 7); i0.ɵɵelementEnd(); } if (rf & 2) { const date_r16 = ctx.$implicit; const ctx_r1 = i0.ɵɵnextContext(6); i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(3, _c23, date_r16.otherMonth, date_r16.today)); i0.ɵɵattribute("aria-label", date_r16.day); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", date_r16.otherMonth ? ctx_r1.showOtherMonths : true); } } function Calendar_div_3_ng_container_4_div_2_table_12_tr_6_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "tr"); i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_1_Template, 3, 1, "td", 47)(2, Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_Template, 2, 6, "td", 48); i0.ɵɵelementEnd(); } if (rf & 2) { const week_r18 = ctx.$implicit; const ctx_r1 = i0.ɵɵnextContext(5); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", ctx_r1.showWeek); i0.ɵɵadvance(); i0.ɵɵproperty("ngForOf", week_r18); } } function Calendar_div_3_ng_container_4_div_2_table_12_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "table", 40)(1, "thead")(2, "tr"); i0.ɵɵtemplate(3, Calendar_div_3_ng_container_4_div_2_table_12_th_3_Template, 3, 1, "th", 41)(4, Calendar_div_3_ng_container_4_div_2_table_12_th_4_Template, 3, 1, "th", 42); i0.ɵɵelementEnd()(); i0.ɵɵelementStart(5, "tbody"); i0.ɵɵtemplate(6, Calendar_div_3_ng_container_4_div_2_table_12_tr_6_Template, 3, 2, "tr", 43); i0.ɵɵelementEnd()(); } if (rf & 2) { const month_r11 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵadvance(3); i0.ɵɵproperty("ngIf", ctx_r1.showWeek); i0.ɵɵadvance(); i0.ɵɵproperty("ngForOf", ctx_r1.weekDays); i0.ɵɵadvance(2); i0.ɵɵproperty("ngForOf", month_r11.dates); } } function Calendar_div_3_ng_container_4_div_2_Template(rf, ctx) { if (rf & 1) { const _r9 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "div", 28)(1, "div", 29)(2, "p-button", 30); i0.ɵɵlistener("keydown", function Calendar_div_3_ng_container_4_div_2_Template_p_button_keydown_2_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event)); })("onClick", function Calendar_div_3_ng_container_4_div_2_Template_p_button_onClick_2_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onPrevButtonClick($event)); }); i0.ɵɵtemplate(3, Calendar_div_3_ng_container_4_div_2_ChevronLeftIcon_3_Template, 1, 0, "ChevronLeftIcon", 7)(4, Calendar_div_3_ng_container_4_div_2_span_4_Template, 2, 1, "span", 7); i0.ɵɵelementEnd(); i0.ɵɵelementStart(5, "div", 31); i0.ɵɵtemplate(6, Calendar_div_3_ng_container_4_div_2_button_6_Template, 2, 3, "button", 32)(7, Calendar_div_3_ng_container_4_div_2_button_7_Template, 2, 3, "button", 33)(8, Calendar_div_3_ng_container_4_div_2_span_8_Template, 3, 5, "span", 34); i0.ɵɵelementEnd(); i0.ɵɵelementStart(9, "p-button", 35); i0.ɵɵlistener("keydown", function Calendar_div_3_ng_container_4_div_2_Template_p_button_keydown_9_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onContainerButtonKeydown($event)); })("onClick", function Calendar_div_3_ng_container_4_div_2_Template_p_button_onClick_9_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onNextButtonClick($event)); }); i0.ɵɵtemplate(10, Calendar_div_3_ng_container_4_div_2_ChevronRightIcon_10_Template, 1, 0, "ChevronRightIcon", 7)(11, Calendar_div_3_ng_container_4_div_2_span_11_Template, 2, 1, "span", 7); i0.ɵɵelementEnd()(); i0.ɵɵtemplate(12, Calendar_div_3_ng_container_4_div_2_table_12_Template, 7, 3, "table", 36); i0.ɵɵelementEnd(); } if (rf & 2) { const i_r17 = ctx.index; const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵadvance(2); i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c21, i_r17 === 0 ? "visible" : "hidden")); i0.ɵɵattribute("aria-label", ctx_r1.prevIconAriaLabel); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", !ctx_r1.previousIconTemplate && !ctx_r1._previousIconTemplate); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", ctx_r1.previousIconTemplate || !ctx_r1._previousIconTemplate); i0.ɵɵadvance(2); i0.ɵɵproperty("ngIf", ctx_r1.currentView === "date"); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", ctx_r1.currentView !== "year"); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", ctx_r1.currentView === "year"); i0.ɵɵadvance(); i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(14, _c21, i_r17 === ctx_r1.months.length - 1 ? "visible" : "hidden")); i0.ɵɵattribute("aria-label", ctx_r1.nextIconAriaLabel); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", !ctx_r1.nextIconTemplate && !ctx_r1._nextIconTemplate); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", ctx_r1.nextIconTemplate || !ctx_r1._nextIconTemplate); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", ctx_r1.currentView === "date"); } } function Calendar_div_3_ng_container_4_div_3_span_1_div_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "div", 53); i0.ɵɵtext(1); i0.ɵɵelementEnd(); } if (rf & 2) { const m_r21 = i0.ɵɵnextContext().$implicit; i0.ɵɵadvance(); i0.ɵɵtextInterpolate1(" ", m_r21, " "); } } function Calendar_div_3_ng_container_4_div_3_span_1_Template(rf, ctx) { if (rf & 1) { const _r19 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "span", 56); i0.ɵɵlistener("click", function Calendar_div_3_ng_container_4_div_3_span_1_Template_span_click_0_listener($event) { const i_r20 = i0.ɵɵrestoreView(_r19).index; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onMonthSelect($event, i_r20)); })("keydown", function Calendar_div_3_ng_container_4_div_3_span_1_Template_span_keydown_0_listener($event) { const i_r20 = i0.ɵɵrestoreView(_r19).index; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onMonthCellKeydown($event, i_r20)); }); i0.ɵɵtext(1); i0.ɵɵtemplate(2, Calendar_div_3_ng_container_4_div_3_span_1_div_2_Template, 2, 1, "div", 52); i0.ɵɵelementEnd(); } if (rf & 2) { const m_r21 = ctx.$implicit; const i_r20 = ctx.index; const ctx_r1 = i0.ɵɵnextContext(4); i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(3, _c24, ctx_r1.isMonthSelected(i_r20), ctx_r1.isMonthDisabled(i_r20))); i0.ɵɵadvance(); i0.ɵɵtextInterpolate1(" ", m_r21, " "); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", ctx_r1.isMonthSelected(i_r20)); } } function Calendar_div_3_ng_container_4_div_3_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "div", 54); i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_3_span_1_Template, 3, 6, "span", 55); i0.ɵɵelementEnd(); } if (rf & 2) { const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵadvance(); i0.ɵɵproperty("ngForOf", ctx_r1.monthPickerValues()); } } function Calendar_div_3_ng_container_4_div_4_span_1_div_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "div", 53); i0.ɵɵtext(1); i0.ɵɵelementEnd(); } if (rf & 2) { const y_r23 = i0.ɵɵnextContext().$implicit; i0.ɵɵadvance(); i0.ɵɵtextInterpolate1(" ", y_r23, " "); } } function Calendar_div_3_ng_container_4_div_4_span_1_Template(rf, ctx) { if (rf & 1) { const _r22 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "span", 56); i0.ɵɵlistener("click", function Calendar_div_3_ng_container_4_div_4_span_1_Template_span_click_0_listener($event) { const y_r23 = i0.ɵɵrestoreView(_r22).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onYearSelect($event, y_r23)); })("keydown", function Calendar_div_3_ng_container_4_div_4_span_1_Template_span_keydown_0_listener($event) { const y_r23 = i0.ɵɵrestoreView(_r22).$implicit; const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onYearCellKeydown($event, y_r23)); }); i0.ɵɵtext(1); i0.ɵɵtemplate(2, Calendar_div_3_ng_container_4_div_4_span_1_div_2_Template, 2, 1, "div", 52); i0.ɵɵelementEnd(); } if (rf & 2) { const y_r23 = ctx.$implicit; const ctx_r1 = i0.ɵɵnextContext(4); i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(3, _c25, ctx_r1.isYearSelected(y_r23), ctx_r1.isYearDisabled(y_r23))); i0.ɵɵadvance(); i0.ɵɵtextInterpolate1(" ", y_r23, " "); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", ctx_r1.isYearSelected(y_r23)); } } function Calendar_div_3_ng_container_4_div_4_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "div", 57); i0.ɵɵtemplate(1, Calendar_div_3_ng_container_4_div_4_span_1_Template, 3, 6, "span", 55); i0.ɵɵelementEnd(); } if (rf & 2) { const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵadvance(); i0.ɵɵproperty("ngForOf", ctx_r1.yearPickerValues()); } } function Calendar_div_3_ng_container_4_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0); i0.ɵɵelementStart(1, "div", 24); i0.ɵɵtemplate(2, Calendar_div_3_ng_container_4_div_2_Template, 13, 16, "div", 25); i0.ɵɵelementEnd(); i0.ɵɵtemplate(3, Calendar_div_3_ng_container_4_div_3_Template, 2, 1, "div", 26)(4, Calendar_div_3_ng_container_4_div_4_Template, 2, 1, "div", 27); i0.ɵɵelementContainerEnd(); } if (rf & 2) { const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵadvance(2); i0.ɵɵproperty("ngForOf", ctx_r1.months); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", ctx_r1.currentView === "month"); i0.ɵɵadvance(); i0.ɵɵproperty("ngIf", ctx_r1.currentView === "year"); } } function Calendar_div_3_div_5_ChevronUpIcon_3_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "ChevronUpIcon"); } } function Calendar_div_3_div_5_4_ng_template_0_Template(rf, ctx) { } function Calendar_div_3_div_5_4_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, Calendar_div_3_div_5_4_ng_template_0_Template, 0, 0, "ng-template"); } } function Calendar_div_3_div_5_ng_container_6_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0); i0.ɵɵtext(1, "0"); i0.ɵɵelementContainerEnd(); } } function Calendar_div_3_div_5_ChevronDownIcon_9_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "ChevronDownIcon"); } } function Calendar_div_3_div_5_10_ng_template_0_Template(rf, ctx) { } function Calendar_div_3_div_5_10_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, Calendar_div_3_div_5_10_ng_template_0_Template, 0, 0, "ng-template"); } } function Calendar_div_3_div_5_ChevronUpIcon_16_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "ChevronUpIcon"); } } function Calendar_div_3_div_5_17_ng_template_0_Template(rf, ctx) { } function Calendar_div_3_div_5_17_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, Calendar_div_3_div_5_17_ng_template_0_Template, 0, 0, "ng-template"); } } function Calendar_div_3_div_5_ng_container_19_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0); i0.ɵɵtext(1, "0"); i0.ɵɵelementContainerEnd(); } } function Calendar_div_3_div_5_ChevronDownIcon_22_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "ChevronDownIcon"); } } function Calendar_div_3_div_5_ng_container_23_1_ng_template_0_Template(rf, ctx) { } function Calendar_div_3_div_5_ng_container_23_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, Calendar_div_3_div_5_ng_container_23_1_ng_template_0_Template, 0, 0, "ng-template"); } } function Calendar_div_3_div_5_ng_container_23_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0); i0.ɵɵtemplate(1, Calendar_div_3_div_5_ng_container_23_1_Template, 1, 0, null, 13); i0.ɵɵelementContainerEnd(); } if (rf & 2) { const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵadvance(); i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decrementIconTemplate || ctx_r1._decrementIconTemplate); } } function Calendar_div_3_div_5_div_24_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "div", 61)(1, "span");