primeng 18.0.0 → 18.0.2
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/accordion/accordion.d.ts +7 -7
- package/autocomplete/autocomplete.d.ts +21 -8
- package/badge/badge.d.ts +1 -3
- package/basecomponent/basecomponent.d.ts +2 -5
- package/blockui/blockui.d.ts +10 -5
- package/breadcrumb/breadcrumb.d.ts +9 -6
- package/button/button.d.ts +10 -4
- package/calendar/calendar.d.ts +29 -15
- package/card/card.d.ts +12 -5
- package/carousel/carousel.d.ts +10 -4
- package/cascadeselect/cascadeselect.d.ts +18 -8
- package/checkbox/checkbox.d.ts +8 -4
- package/chip/chip.d.ts +9 -7
- package/confirmdialog/confirmdialog.d.ts +14 -5
- package/confirmpopup/confirmpopup.d.ts +11 -5
- package/contextmenu/contextmenu.d.ts +10 -6
- package/datepicker/datepicker.d.ts +113 -33
- package/dialog/dialog.d.ts +15 -4
- package/divider/divider.d.ts +1 -1
- package/dock/dock.d.ts +7 -4
- package/drawer/drawer.d.ts +18 -10
- package/dropdown/dropdown.d.ts +4 -3
- package/dynamicdialog/dynamicdialog.d.ts +1 -0
- package/editor/editor.d.ts +7 -3
- package/esm2022/accordion/accordion.mjs +58 -43
- package/esm2022/autocomplete/autocomplete.mjs +153 -92
- package/esm2022/badge/badge.mjs +39 -32
- package/esm2022/basecomponent/basecomponent.mjs +3 -26
- package/esm2022/blockui/blockui.mjs +38 -18
- package/esm2022/breadcrumb/breadcrumb.mjs +50 -32
- package/esm2022/button/button.mjs +55 -28
- package/esm2022/calendar/calendar.mjs +207 -143
- package/esm2022/card/card.mjs +96 -46
- package/esm2022/carousel/carousel.mjs +74 -42
- package/esm2022/cascadeselect/cascadeselect.mjs +100 -62
- package/esm2022/checkbox/checkbox.mjs +32 -14
- package/esm2022/chip/chip.mjs +117 -96
- package/esm2022/confirmdialog/confirmdialog.mjs +96 -57
- package/esm2022/confirmpopup/confirmpopup.mjs +57 -29
- package/esm2022/contextmenu/contextmenu.mjs +51 -20
- package/esm2022/datepicker/datepicker.mjs +198 -156
- package/esm2022/dialog/dialog.mjs +98 -52
- package/esm2022/divider/divider.mjs +2 -4
- package/esm2022/dock/dock.mjs +31 -13
- package/esm2022/drawer/drawer.mjs +112 -70
- package/esm2022/dropdown/dropdown.mjs +13 -5
- package/esm2022/dynamicdialog/dynamicdialog-config.mjs +13 -13
- package/esm2022/dynamicdialog/dynamicdialog.mjs +9 -5
- package/esm2022/editor/editor.mjs +27 -11
- package/esm2022/fieldset/fieldset.mjs +61 -33
- package/esm2022/fileupload/fileupload.mjs +139 -89
- package/esm2022/galleria/galleria.mjs +18 -9
- package/esm2022/image/image.mjs +113 -66
- package/esm2022/imagecompare/imagecompare.mjs +31 -11
- package/esm2022/inplace/inplace.mjs +49 -24
- package/esm2022/inputmask/inputmask.mjs +30 -14
- package/esm2022/inputmask/style/inputmaskstyle.mjs +2 -2
- package/esm2022/inputnumber/inputnumber.mjs +55 -47
- package/esm2022/inputotp/inputotp.mjs +30 -11
- package/esm2022/listbox/listbox.mjs +137 -78
- package/esm2022/megamenu/megamenu.mjs +105 -59
- package/esm2022/menu/menu.mjs +26 -26
- package/esm2022/menubar/menubar.mjs +70 -35
- package/esm2022/message/message.mjs +50 -26
- package/esm2022/messages/messages.mjs +13 -4
- package/esm2022/metergroup/metergroup.mjs +63 -31
- package/esm2022/multiselect/multiselect.mjs +247 -156
- package/esm2022/orderlist/orderlist.mjs +125 -70
- package/esm2022/organizationchart/organizationchart.mjs +30 -14
- package/esm2022/overlay/overlay.mjs +27 -7
- package/esm2022/overlaypanel/overlaypanel.mjs +33 -10
- package/esm2022/paginator/paginator.mjs +92 -60
- package/esm2022/panel/panel.mjs +160 -100
- package/esm2022/panelmenu/panelmenu.mjs +55 -32
- package/esm2022/password/password.mjs +88 -49
- package/esm2022/picklist/picklist.mjs +363 -259
- package/esm2022/popover/popover.mjs +29 -12
- package/esm2022/progressbar/progressbar.mjs +27 -9
- package/esm2022/rating/rating.mjs +46 -22
- package/esm2022/scroller/scroller.mjs +47 -37
- package/esm2022/scrollpanel/scrollpanel.mjs +28 -9
- package/esm2022/scrolltop/scrolltop.mjs +17 -10
- package/esm2022/select/select.mjs +198 -119
- package/esm2022/selectbutton/selectbutton.mjs +26 -11
- package/esm2022/sidebar/sidebar.mjs +82 -60
- package/esm2022/speeddial/speeddial.mjs +54 -29
- package/esm2022/splitbutton/splitbutton.mjs +41 -18
- package/esm2022/splitter/splitter.mjs +5 -5
- package/esm2022/stepper/stepper.mjs +27 -13
- package/esm2022/table/table.mjs +107 -96
- package/esm2022/tabmenu/tabmenu.mjs +54 -27
- package/esm2022/tabs/tablist.mjs +28 -20
- package/esm2022/tabview/tabview.mjs +106 -54
- package/esm2022/tag/tag.mjs +68 -44
- package/esm2022/tieredmenu/tieredmenu.mjs +44 -21
- package/esm2022/timeline/timeline.mjs +41 -17
- package/esm2022/toast/toast.mjs +31 -9
- package/esm2022/togglebutton/togglebutton.mjs +45 -30
- package/esm2022/toggleswitch/toggleswitch.mjs +28 -9
- package/esm2022/toolbar/toolbar.mjs +47 -21
- package/esm2022/tooltip/tooltip.mjs +35 -70
- package/esm2022/tree/tree.mjs +114 -97
- package/esm2022/treeselect/treeselect.mjs +156 -89
- package/esm2022/treetable/treetable.mjs +31 -12
- package/esm2022/usestyle/usestyle.mjs +2 -2
- package/fesm2022/primeng-accordion.mjs +57 -42
- package/fesm2022/primeng-accordion.mjs.map +1 -1
- package/fesm2022/primeng-autocomplete.mjs +152 -91
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-badge.mjs +38 -31
- package/fesm2022/primeng-badge.mjs.map +1 -1
- package/fesm2022/primeng-basecomponent.mjs +2 -25
- package/fesm2022/primeng-basecomponent.mjs.map +1 -1
- package/fesm2022/primeng-blockui.mjs +37 -17
- package/fesm2022/primeng-blockui.mjs.map +1 -1
- package/fesm2022/primeng-breadcrumb.mjs +49 -31
- package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
- package/fesm2022/primeng-button.mjs +54 -27
- package/fesm2022/primeng-button.mjs.map +1 -1
- package/fesm2022/primeng-calendar.mjs +206 -142
- package/fesm2022/primeng-calendar.mjs.map +1 -1
- package/fesm2022/primeng-card.mjs +95 -45
- package/fesm2022/primeng-card.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +73 -41
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +99 -61
- package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
- package/fesm2022/primeng-checkbox.mjs +31 -13
- package/fesm2022/primeng-checkbox.mjs.map +1 -1
- package/fesm2022/primeng-chip.mjs +116 -95
- package/fesm2022/primeng-chip.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +95 -56
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-confirmpopup.mjs +56 -28
- package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
- package/fesm2022/primeng-contextmenu.mjs +50 -19
- package/fesm2022/primeng-contextmenu.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +197 -155
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +97 -51
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-divider.mjs +1 -3
- package/fesm2022/primeng-divider.mjs.map +1 -1
- package/fesm2022/primeng-dock.mjs +30 -12
- package/fesm2022/primeng-dock.mjs.map +1 -1
- package/fesm2022/primeng-drawer.mjs +111 -69
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +12 -4
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +20 -16
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
- package/fesm2022/primeng-editor.mjs +26 -10
- package/fesm2022/primeng-editor.mjs.map +1 -1
- package/fesm2022/primeng-fieldset.mjs +60 -32
- package/fesm2022/primeng-fieldset.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +138 -88
- package/fesm2022/primeng-fileupload.mjs.map +1 -1
- package/fesm2022/primeng-galleria.mjs +17 -8
- package/fesm2022/primeng-galleria.mjs.map +1 -1
- package/fesm2022/primeng-image.mjs +112 -65
- package/fesm2022/primeng-image.mjs.map +1 -1
- package/fesm2022/primeng-imagecompare.mjs +30 -10
- package/fesm2022/primeng-imagecompare.mjs.map +1 -1
- package/fesm2022/primeng-inplace.mjs +48 -23
- package/fesm2022/primeng-inplace.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +30 -14
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +54 -46
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +29 -10
- package/fesm2022/primeng-inputotp.mjs.map +1 -1
- package/fesm2022/primeng-listbox.mjs +136 -77
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-megamenu.mjs +104 -58
- package/fesm2022/primeng-megamenu.mjs.map +1 -1
- package/fesm2022/primeng-menu.mjs +25 -25
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-menubar.mjs +69 -34
- package/fesm2022/primeng-menubar.mjs.map +1 -1
- package/fesm2022/primeng-message.mjs +49 -25
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-messages.mjs +12 -3
- package/fesm2022/primeng-messages.mjs.map +1 -1
- package/fesm2022/primeng-metergroup.mjs +62 -30
- package/fesm2022/primeng-metergroup.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +246 -155
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-orderlist.mjs +124 -69
- package/fesm2022/primeng-orderlist.mjs.map +1 -1
- package/fesm2022/primeng-organizationchart.mjs +29 -13
- package/fesm2022/primeng-organizationchart.mjs.map +1 -1
- package/fesm2022/primeng-overlay.mjs +26 -6
- package/fesm2022/primeng-overlay.mjs.map +1 -1
- package/fesm2022/primeng-overlaypanel.mjs +32 -9
- package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
- package/fesm2022/primeng-paginator.mjs +91 -59
- package/fesm2022/primeng-paginator.mjs.map +1 -1
- package/fesm2022/primeng-panel.mjs +159 -99
- package/fesm2022/primeng-panel.mjs.map +1 -1
- package/fesm2022/primeng-panelmenu.mjs +54 -31
- package/fesm2022/primeng-panelmenu.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +87 -48
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +362 -258
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +28 -11
- package/fesm2022/primeng-popover.mjs.map +1 -1
- package/fesm2022/primeng-progressbar.mjs +26 -8
- package/fesm2022/primeng-progressbar.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +45 -21
- package/fesm2022/primeng-rating.mjs.map +1 -1
- package/fesm2022/primeng-scroller.mjs +46 -36
- package/fesm2022/primeng-scroller.mjs.map +1 -1
- package/fesm2022/primeng-scrollpanel.mjs +27 -8
- package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
- package/fesm2022/primeng-scrolltop.mjs +16 -9
- package/fesm2022/primeng-scrolltop.mjs.map +1 -1
- package/fesm2022/primeng-select.mjs +197 -118
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-selectbutton.mjs +25 -10
- package/fesm2022/primeng-selectbutton.mjs.map +1 -1
- package/fesm2022/primeng-sidebar.mjs +81 -59
- package/fesm2022/primeng-sidebar.mjs.map +1 -1
- package/fesm2022/primeng-speeddial.mjs +53 -28
- package/fesm2022/primeng-speeddial.mjs.map +1 -1
- package/fesm2022/primeng-splitbutton.mjs +40 -17
- package/fesm2022/primeng-splitbutton.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +4 -4
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-stepper.mjs +26 -12
- package/fesm2022/primeng-stepper.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +106 -95
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabmenu.mjs +53 -26
- package/fesm2022/primeng-tabmenu.mjs.map +1 -1
- package/fesm2022/primeng-tabs.mjs +27 -19
- package/fesm2022/primeng-tabs.mjs.map +1 -1
- package/fesm2022/primeng-tabview.mjs +106 -54
- package/fesm2022/primeng-tabview.mjs.map +1 -1
- package/fesm2022/primeng-tag.mjs +67 -43
- package/fesm2022/primeng-tag.mjs.map +1 -1
- package/fesm2022/primeng-tieredmenu.mjs +43 -20
- package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
- package/fesm2022/primeng-timeline.mjs +40 -16
- package/fesm2022/primeng-timeline.mjs.map +1 -1
- package/fesm2022/primeng-toast.mjs +30 -8
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +44 -29
- package/fesm2022/primeng-togglebutton.mjs.map +1 -1
- package/fesm2022/primeng-toggleswitch.mjs +27 -8
- package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
- package/fesm2022/primeng-toolbar.mjs +46 -20
- package/fesm2022/primeng-toolbar.mjs.map +1 -1
- package/fesm2022/primeng-tooltip.mjs +35 -70
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +114 -97
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +155 -88
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +30 -11
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/fesm2022/primeng-usestyle.mjs +1 -1
- package/fesm2022/primeng-usestyle.mjs.map +1 -1
- package/fieldset/fieldset.d.ts +12 -6
- package/fileupload/fileupload.d.ts +19 -8
- package/galleria/galleria.d.ts +3 -2
- package/image/image.d.ts +18 -7
- package/imagecompare/imagecompare.d.ts +7 -2
- package/inplace/inplace.d.ts +12 -6
- package/inputmask/inputmask.d.ts +8 -4
- package/inputnumber/inputnumber.d.ts +11 -6
- package/inputotp/inputotp.d.ts +7 -2
- package/listbox/listbox.d.ts +17 -4
- package/megamenu/megamenu.d.ts +16 -7
- package/menu/menu.d.ts +6 -6
- package/menubar/menubar.d.ts +13 -6
- package/message/message.d.ts +10 -4
- package/messages/messages.d.ts +4 -3
- package/metergroup/metergroup.d.ts +11 -3
- package/multiselect/multiselect.d.ts +36 -17
- package/orderlist/orderlist.d.ts +23 -11
- package/organizationchart/organizationchart.d.ts +6 -4
- package/overlay/overlay.d.ts +6 -3
- package/overlaypanel/overlaypanel.d.ts +6 -3
- package/package.json +165 -165
- package/paginator/paginator.d.ts +15 -8
- package/panel/panel.d.ts +14 -5
- package/panelmenu/panelmenu.d.ts +8 -4
- package/password/password.d.ts +15 -7
- package/picklist/picklist.d.ts +23 -3
- package/popover/popover.d.ts +8 -5
- package/progressbar/progressbar.d.ts +7 -3
- package/rating/rating.d.ts +11 -5
- package/scroller/scroller.d.ts +9 -4
- package/scrollpanel/scrollpanel.d.ts +7 -3
- package/scrolltop/scrolltop.d.ts +7 -4
- package/select/select.d.ts +31 -13
- package/selectbutton/selectbutton.d.ts +7 -3
- package/sidebar/sidebar.d.ts +9 -2
- package/speeddial/speeddial.d.ts +9 -4
- package/splitbutton/splitbutton.d.ts +9 -5
- package/splitter/splitter.d.ts +4 -4
- package/stepper/stepper.d.ts +8 -3
- package/table/table.d.ts +2 -2
- package/tabmenu/tabmenu.d.ts +12 -7
- package/tabs/tablist.d.ts +6 -2
- package/tabview/tabview.d.ts +16 -7
- package/tag/tag.d.ts +8 -9
- package/tieredmenu/tieredmenu.d.ts +10 -6
- package/timeline/timeline.d.ts +7 -2
- package/toast/toast.d.ts +7 -3
- package/togglebutton/togglebutton.d.ts +8 -3
- package/toggleswitch/toggleswitch.d.ts +6 -2
- package/toolbar/toolbar.d.ts +9 -4
- package/tooltip/tooltip.d.ts +2 -1
- package/tree/tree.d.ts +23 -10
- package/treeselect/treeselect.d.ts +26 -12
- package/treetable/treetable.d.ts +7 -5
@@ -2,11 +2,11 @@ import { trigger, state, style, transition, animate } from '@angular/animations'
|
|
2
2
|
import * as i2 from '@angular/common';
|
3
3
|
import { CommonModule } from '@angular/common';
|
4
4
|
import * as i0 from '@angular/core';
|
5
|
-
import { Injectable, forwardRef, EventEmitter, inject, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ViewChild, ContentChild, NgModule } from '@angular/core';
|
5
|
+
import { Injectable, forwardRef, EventEmitter, inject, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ViewChild, ContentChild, ContentChildren, NgModule } from '@angular/core';
|
6
6
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
7
|
-
import { uuid, getOuterWidth, isDate, findSingle, getFocusableElements, hasClass, getIndex, find, isNotEmpty, appendChild, absolutePosition, relativePosition, addClass, blockBodyScroll, unblockBodyScroll, setAttribute, isTouchDevice } from '@primeuix/utils';
|
7
|
+
import { uuid, getOuterWidth, isDate, findSingle, getFocusableElements, hasClass, getIndex, find, isNotEmpty, addStyle, appendChild, absolutePosition, relativePosition, addClass, blockBodyScroll, unblockBodyScroll, setAttribute, isTouchDevice } from '@primeuix/utils';
|
8
8
|
import * as i1 from 'primeng/api';
|
9
|
-
import { TranslationKeys, SharedModule } from 'primeng/api';
|
9
|
+
import { TranslationKeys, PrimeTemplate, SharedModule } from 'primeng/api';
|
10
10
|
import { AutoFocus } from 'primeng/autofocus';
|
11
11
|
import { BaseComponent } from 'primeng/basecomponent';
|
12
12
|
import { Button } from 'primeng/button';
|
@@ -724,7 +724,7 @@ function DatePicker_ng_template_2_ng_container_2_span_2_Template(rf, ctx) { if (
|
|
724
724
|
} if (rf & 2) {
|
725
725
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
726
726
|
i0.ɵɵadvance();
|
727
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.
|
727
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.clearIconTemplate || ctx_r1._clearIconTemplate);
|
728
728
|
} }
|
729
729
|
function DatePicker_ng_template_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
730
730
|
i0.ɵɵelementContainerStart(0);
|
@@ -733,9 +733,9 @@ function DatePicker_ng_template_2_ng_container_2_Template(rf, ctx) { if (rf & 1)
|
|
733
733
|
} if (rf & 2) {
|
734
734
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
735
735
|
i0.ɵɵadvance();
|
736
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
736
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.clearIconTemplate && !ctx_r1._clearIconTemplate);
|
737
737
|
i0.ɵɵadvance();
|
738
|
-
i0.ɵɵproperty("ngIf", ctx_r1.
|
738
|
+
i0.ɵɵproperty("ngIf", ctx_r1.clearIconTemplate || ctx_r1._clearIconTemplate);
|
739
739
|
} }
|
740
740
|
function DatePicker_ng_template_2_button_3_span_1_Template(rf, ctx) { if (rf & 1) {
|
741
741
|
i0.ɵɵelement(0, "span", 16);
|
@@ -757,9 +757,9 @@ function DatePicker_ng_template_2_button_3_ng_container_2_Template(rf, ctx) { if
|
|
757
757
|
} if (rf & 2) {
|
758
758
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
759
759
|
i0.ɵɵadvance();
|
760
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
760
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.triggerIconTemplate && !ctx_r1._triggerIconTemplate);
|
761
761
|
i0.ɵɵadvance();
|
762
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.
|
762
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.triggerIconTemplate || ctx_r1._triggerIconTemplate);
|
763
763
|
} }
|
764
764
|
function DatePicker_ng_template_2_button_3_Template(rf, ctx) { if (rf & 1) {
|
765
765
|
const _r5 = i0.ɵɵgetCurrentView();
|
@@ -798,9 +798,9 @@ function DatePicker_ng_template_2_ng_container_4_Template(rf, ctx) { if (rf & 1)
|
|
798
798
|
} if (rf & 2) {
|
799
799
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
800
800
|
i0.ɵɵadvance(2);
|
801
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
801
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.inputIconTemplate && !ctx_r1._inputIconTemplate);
|
802
802
|
i0.ɵɵadvance();
|
803
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.
|
803
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.inputIconTemplate || ctx_r1._inputIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c17, ctx_r1.onButtonClick.bind(ctx_r1)));
|
804
804
|
} }
|
805
805
|
function DatePicker_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
806
806
|
const _r1 = i0.ɵɵgetCurrentView();
|
@@ -809,11 +809,11 @@ function DatePicker_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
809
809
|
i0.ɵɵelementEnd();
|
810
810
|
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);
|
811
811
|
} if (rf & 2) {
|
812
|
-
let
|
812
|
+
let tmp_17_0;
|
813
813
|
const ctx_r1 = i0.ɵɵnextContext();
|
814
814
|
i0.ɵɵclassMap(ctx_r1.inputStyleClass);
|
815
|
-
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)
|
816
|
-
i0.ɵɵattribute("id", ctx_r1.inputId)("name", ctx_r1.name)("required", ctx_r1.required)("aria-required", ctx_r1.required)("aria-expanded", (
|
815
|
+
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);
|
816
|
+
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);
|
817
817
|
i0.ɵɵadvance(2);
|
818
818
|
i0.ɵɵproperty("ngIf", ctx_r1.showClear && !ctx_r1.disabled && ctx_r1.value != null);
|
819
819
|
i0.ɵɵadvance();
|
@@ -838,7 +838,7 @@ function DatePicker_div_3_ng_container_4_div_2_span_4_Template(rf, ctx) { if (rf
|
|
838
838
|
} if (rf & 2) {
|
839
839
|
const ctx_r1 = i0.ɵɵnextContext(4);
|
840
840
|
i0.ɵɵadvance();
|
841
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.
|
841
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.previousIconTemplate || ctx_r1._previousIconTemplate);
|
842
842
|
} }
|
843
843
|
function DatePicker_div_3_ng_container_4_div_2_button_6_Template(rf, ctx) { if (rf & 1) {
|
844
844
|
const _r10 = i0.ɵɵgetCurrentView();
|
@@ -887,9 +887,9 @@ function DatePicker_div_3_ng_container_4_div_2_span_8_Template(rf, ctx) { if (rf
|
|
887
887
|
} if (rf & 2) {
|
888
888
|
const ctx_r1 = i0.ɵɵnextContext(4);
|
889
889
|
i0.ɵɵadvance();
|
890
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.decadeTemplate);
|
890
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.decadeTemplate && ctx_r1._decadeTemplate);
|
891
891
|
i0.ɵɵadvance();
|
892
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decadeTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c22, ctx_r1.yearPickerValues));
|
892
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decadeTemplate || ctx_r1._decadeTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c22, ctx_r1.yearPickerValues));
|
893
893
|
} }
|
894
894
|
function DatePicker_div_3_ng_container_4_div_2_ChevronRightIcon_10_Template(rf, ctx) { if (rf & 1) {
|
895
895
|
i0.ɵɵelement(0, "ChevronRightIcon");
|
@@ -905,7 +905,7 @@ function DatePicker_div_3_ng_container_4_div_2_span_11_Template(rf, ctx) { if (r
|
|
905
905
|
} if (rf & 2) {
|
906
906
|
const ctx_r1 = i0.ɵɵnextContext(4);
|
907
907
|
i0.ɵɵadvance();
|
908
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.
|
908
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.nextIconTemplate || ctx_r1._nextIconTemplate);
|
909
909
|
} }
|
910
910
|
function DatePicker_div_3_ng_container_4_div_2_table_12_th_3_Template(rf, ctx) { if (rf & 1) {
|
911
911
|
i0.ɵɵelementStart(0, "th", 44)(1, "span");
|
@@ -955,7 +955,7 @@ function DatePicker_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1
|
|
955
955
|
const date_r16 = i0.ɵɵnextContext(2).$implicit;
|
956
956
|
const ctx_r1 = i0.ɵɵnextContext(6);
|
957
957
|
i0.ɵɵadvance();
|
958
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.dateTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c22, date_r16));
|
958
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.dateTemplate || ctx_r1._dateTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c22, date_r16));
|
959
959
|
} }
|
960
960
|
function DatePicker_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) {
|
961
961
|
i0.ɵɵelementContainer(0);
|
@@ -968,7 +968,7 @@ function DatePicker_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1
|
|
968
968
|
const date_r16 = i0.ɵɵnextContext(2).$implicit;
|
969
969
|
const ctx_r1 = i0.ɵɵnextContext(6);
|
970
970
|
i0.ɵɵadvance();
|
971
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.disabledDateTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c22, date_r16));
|
971
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.disabledDateTemplate || ctx_r1._disabledDateTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c22, date_r16));
|
972
972
|
} }
|
973
973
|
function DatePicker_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_div_5_Template(rf, ctx) { if (rf & 1) {
|
974
974
|
i0.ɵɵelementStart(0, "div", 53);
|
@@ -995,9 +995,9 @@ function DatePicker_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1
|
|
995
995
|
i0.ɵɵproperty("ngClass", ctx_r1.dayClass(date_r16));
|
996
996
|
i0.ɵɵattribute("data-date", ctx_r1.formatDateKey(ctx_r1.formatDateMetaToDate(date_r16)));
|
997
997
|
i0.ɵɵadvance();
|
998
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.dateTemplate && (date_r16.selectable || !ctx_r1.disabledDateTemplate));
|
998
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.dateTemplate && !ctx_r1._dateTemplate && (date_r16.selectable || !ctx_r1.disabledDateTemplate && !ctx_r1._disabledDateTemplate));
|
999
999
|
i0.ɵɵadvance();
|
1000
|
-
i0.ɵɵproperty("ngIf", date_r16.selectable || !ctx_r1.disabledDateTemplate);
|
1000
|
+
i0.ɵɵproperty("ngIf", date_r16.selectable || !ctx_r1.disabledDateTemplate && !ctx_r1._disabledDateTemplate);
|
1001
1001
|
i0.ɵɵadvance();
|
1002
1002
|
i0.ɵɵproperty("ngIf", !date_r16.selectable);
|
1003
1003
|
i0.ɵɵadvance();
|
@@ -1066,9 +1066,9 @@ function DatePicker_div_3_ng_container_4_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
1066
1066
|
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c21, i_r17 === 0 ? "visible" : "hidden"));
|
1067
1067
|
i0.ɵɵattribute("aria-label", ctx_r1.prevIconAriaLabel);
|
1068
1068
|
i0.ɵɵadvance();
|
1069
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
1069
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.previousIconTemplate && !ctx_r1._previousIconTemplate);
|
1070
1070
|
i0.ɵɵadvance();
|
1071
|
-
i0.ɵɵproperty("ngIf", ctx_r1.
|
1071
|
+
i0.ɵɵproperty("ngIf", ctx_r1.previousIconTemplate || !ctx_r1._previousIconTemplate);
|
1072
1072
|
i0.ɵɵadvance(2);
|
1073
1073
|
i0.ɵɵproperty("ngIf", ctx_r1.currentView === "date");
|
1074
1074
|
i0.ɵɵadvance();
|
@@ -1079,9 +1079,9 @@ function DatePicker_div_3_ng_container_4_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
1079
1079
|
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(14, _c21, i_r17 === ctx_r1.months.length - 1 ? "visible" : "hidden"));
|
1080
1080
|
i0.ɵɵattribute("aria-label", ctx_r1.nextIconAriaLabel);
|
1081
1081
|
i0.ɵɵadvance();
|
1082
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
1082
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.decadeTemplate && !ctx_r1._decadeTemplate);
|
1083
1083
|
i0.ɵɵadvance();
|
1084
|
-
i0.ɵɵproperty("ngIf", ctx_r1.
|
1084
|
+
i0.ɵɵproperty("ngIf", ctx_r1.nextIconTemplate || !ctx_r1._nextIconTemplate);
|
1085
1085
|
i0.ɵɵadvance();
|
1086
1086
|
i0.ɵɵproperty("ngIf", ctx_r1.currentView === "date");
|
1087
1087
|
} }
|
@@ -1215,7 +1215,7 @@ function DatePicker_div_3_div_5_ng_container_23_Template(rf, ctx) { if (rf & 1)
|
|
1215
1215
|
} if (rf & 2) {
|
1216
1216
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
1217
1217
|
i0.ɵɵadvance();
|
1218
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.
|
1218
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decrementIconTemplate || ctx_r1._decrementIconTemplate);
|
1219
1219
|
} }
|
1220
1220
|
function DatePicker_div_3_div_5_div_24_Template(rf, ctx) { if (rf & 1) {
|
1221
1221
|
i0.ɵɵelementStart(0, "div", 61)(1, "span");
|
@@ -1264,9 +1264,9 @@ function DatePicker_div_3_div_5_div_25_Template(rf, ctx) { if (rf & 1) {
|
|
1264
1264
|
i0.ɵɵadvance();
|
1265
1265
|
i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("nextSecond"));
|
1266
1266
|
i0.ɵɵadvance();
|
1267
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
1267
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.incrementIconTemplate && !ctx_r1._incrementIconTemplate);
|
1268
1268
|
i0.ɵɵadvance();
|
1269
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.
|
1269
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.incrementIconTemplate || ctx_r1._incrementIconTemplate);
|
1270
1270
|
i0.ɵɵadvance(2);
|
1271
1271
|
i0.ɵɵproperty("ngIf", ctx_r1.currentSecond < 10);
|
1272
1272
|
i0.ɵɵadvance();
|
@@ -1274,9 +1274,9 @@ function DatePicker_div_3_div_5_div_25_Template(rf, ctx) { if (rf & 1) {
|
|
1274
1274
|
i0.ɵɵadvance();
|
1275
1275
|
i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("prevSecond"));
|
1276
1276
|
i0.ɵɵadvance();
|
1277
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
1277
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.decrementIconTemplate && !ctx_r1._decrementIconTemplate);
|
1278
1278
|
i0.ɵɵadvance();
|
1279
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.
|
1279
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decrementIconTemplate || ctx_r1._decrementIconTemplate);
|
1280
1280
|
} }
|
1281
1281
|
function DatePicker_div_3_div_5_div_26_Template(rf, ctx) { if (rf & 1) {
|
1282
1282
|
i0.ɵɵelementStart(0, "div", 61)(1, "span");
|
@@ -1319,17 +1319,17 @@ function DatePicker_div_3_div_5_div_27_Template(rf, ctx) { if (rf & 1) {
|
|
1319
1319
|
i0.ɵɵadvance();
|
1320
1320
|
i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("am"));
|
1321
1321
|
i0.ɵɵadvance();
|
1322
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
1322
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.incrementIconTemplate && !ctx_r1._incrementIconTemplate);
|
1323
1323
|
i0.ɵɵadvance();
|
1324
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.
|
1324
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.incrementIconTemplate || ctx_r1._incrementIconTemplate);
|
1325
1325
|
i0.ɵɵadvance(2);
|
1326
1326
|
i0.ɵɵtextInterpolate(ctx_r1.pm ? "PM" : "AM");
|
1327
1327
|
i0.ɵɵadvance();
|
1328
1328
|
i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("pm"));
|
1329
1329
|
i0.ɵɵadvance();
|
1330
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
1330
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.decrementIconTemplate && !ctx_r1._decrementIconTemplate);
|
1331
1331
|
i0.ɵɵadvance();
|
1332
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.
|
1332
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decrementIconTemplate || ctx_r1._decrementIconTemplate);
|
1333
1333
|
} }
|
1334
1334
|
function DatePicker_div_3_div_5_Template(rf, ctx) { if (rf & 1) {
|
1335
1335
|
const _r24 = i0.ɵɵgetCurrentView();
|
@@ -1367,9 +1367,9 @@ function DatePicker_div_3_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
1367
1367
|
i0.ɵɵadvance(2);
|
1368
1368
|
i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("nextHour"));
|
1369
1369
|
i0.ɵɵadvance();
|
1370
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
1370
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.incrementIconTemplate && !ctx_r1._incrementIconTemplate);
|
1371
1371
|
i0.ɵɵadvance();
|
1372
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.
|
1372
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.incrementIconTemplate || ctx_r1._incrementIconTemplate);
|
1373
1373
|
i0.ɵɵadvance(2);
|
1374
1374
|
i0.ɵɵproperty("ngIf", ctx_r1.currentHour < 10);
|
1375
1375
|
i0.ɵɵadvance();
|
@@ -1377,17 +1377,17 @@ function DatePicker_div_3_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
1377
1377
|
i0.ɵɵadvance();
|
1378
1378
|
i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("prevHour"));
|
1379
1379
|
i0.ɵɵadvance();
|
1380
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
1380
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.decrementIconTemplate && !ctx_r1._decrementIconTemplate);
|
1381
1381
|
i0.ɵɵadvance();
|
1382
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.
|
1382
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decrementIconTemplate || ctx_r1._decrementIconTemplate);
|
1383
1383
|
i0.ɵɵadvance(3);
|
1384
1384
|
i0.ɵɵtextInterpolate(ctx_r1.timeSeparator);
|
1385
1385
|
i0.ɵɵadvance(2);
|
1386
1386
|
i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("nextMinute"));
|
1387
1387
|
i0.ɵɵadvance();
|
1388
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
1388
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.incrementIconTemplate && !ctx_r1._incrementIconTemplate);
|
1389
1389
|
i0.ɵɵadvance();
|
1390
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.
|
1390
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.incrementIconTemplate || ctx_r1._incrementIconTemplate);
|
1391
1391
|
i0.ɵɵadvance(2);
|
1392
1392
|
i0.ɵɵproperty("ngIf", ctx_r1.currentMinute < 10);
|
1393
1393
|
i0.ɵɵadvance();
|
@@ -1395,9 +1395,9 @@ function DatePicker_div_3_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
1395
1395
|
i0.ɵɵadvance();
|
1396
1396
|
i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("prevMinute"));
|
1397
1397
|
i0.ɵɵadvance();
|
1398
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.
|
1398
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.decrementIconTemplate && !ctx_r1._decrementIconTemplate);
|
1399
1399
|
i0.ɵɵadvance();
|
1400
|
-
i0.ɵɵproperty("ngIf", ctx_r1.
|
1400
|
+
i0.ɵɵproperty("ngIf", ctx_r1.decrementIconTemplate || ctx_r1._decrementIconTemplate);
|
1401
1401
|
i0.ɵɵadvance();
|
1402
1402
|
i0.ɵɵproperty("ngIf", ctx_r1.showSeconds);
|
1403
1403
|
i0.ɵɵadvance();
|
@@ -1437,11 +1437,10 @@ function DatePicker_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
1437
1437
|
} if (rf & 2) {
|
1438
1438
|
const ctx_r1 = i0.ɵɵnextContext();
|
1439
1439
|
i0.ɵɵclassMap(ctx_r1.panelStyleClass);
|
1440
|
-
i0.ɵɵ
|
1441
|
-
i0.ɵɵproperty("ngStyle", ctx_r1.panelStyle)("ngClass", ctx_r1.panelClass)("@overlayAnimation", i0.ɵɵpureFunction1(20, _c20, i0.ɵɵpureFunction2(17, _c19, ctx_r1.showTransitionOptions, ctx_r1.hideTransitionOptions)))("@.disabled", ctx_r1.inline === true);
|
1440
|
+
i0.ɵɵproperty("ngStyle", ctx_r1.panelStyle)("ngClass", ctx_r1.panelClass)("@overlayAnimation", i0.ɵɵpureFunction1(18, _c20, i0.ɵɵpureFunction2(15, _c19, ctx_r1.showTransitionOptions, ctx_r1.hideTransitionOptions)))("@.disabled", ctx_r1.inline === true);
|
1442
1441
|
i0.ɵɵattribute("id", ctx_r1.panelId)("aria-label", ctx_r1.getTranslation("chooseDate"))("role", ctx_r1.inline ? null : "dialog")("aria-modal", ctx_r1.inline ? null : "true");
|
1443
1442
|
i0.ɵɵadvance(3);
|
1444
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.headerTemplate);
|
1443
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.headerTemplate || ctx_r1._headerTemplate);
|
1445
1444
|
i0.ɵɵadvance();
|
1446
1445
|
i0.ɵɵproperty("ngIf", !ctx_r1.timeOnly);
|
1447
1446
|
i0.ɵɵadvance();
|
@@ -1449,7 +1448,7 @@ function DatePicker_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
1449
1448
|
i0.ɵɵadvance();
|
1450
1449
|
i0.ɵɵproperty("ngIf", ctx_r1.showButtonBar);
|
1451
1450
|
i0.ɵɵadvance(2);
|
1452
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.footerTemplate);
|
1451
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.footerTemplate || ctx_r1._footerTemplate);
|
1453
1452
|
} }
|
1454
1453
|
const DATEPICKER_VALUE_ACCESSOR = {
|
1455
1454
|
provide: NG_VALUE_ACCESSOR,
|
@@ -2056,37 +2055,49 @@ class DatePicker extends BaseComponent {
|
|
2056
2055
|
* Custom template for previous month icon.
|
2057
2056
|
* @group Templates
|
2058
2057
|
*/
|
2059
|
-
|
2058
|
+
previousIconTemplate;
|
2060
2059
|
/**
|
2061
2060
|
* Custom template for next month icon.
|
2062
2061
|
* @group Templates
|
2063
2062
|
*/
|
2064
|
-
|
2063
|
+
nextIconTemplate;
|
2065
2064
|
/**
|
2066
2065
|
* Custom template for trigger icon.
|
2067
2066
|
* @group Templates
|
2068
2067
|
*/
|
2069
|
-
|
2068
|
+
triggerIconTemplate;
|
2070
2069
|
/**
|
2071
2070
|
* Custom template for clear icon.
|
2072
2071
|
* @group Templates
|
2073
2072
|
*/
|
2074
|
-
|
2073
|
+
clearIconTemplate;
|
2075
2074
|
/**
|
2076
2075
|
* Custom template for decrement icon.
|
2077
2076
|
* @group Templates
|
2078
2077
|
*/
|
2079
|
-
|
2078
|
+
decrementIconTemplate;
|
2080
2079
|
/**
|
2081
2080
|
* Custom template for increment icon.
|
2082
2081
|
* @group Templates
|
2083
2082
|
*/
|
2084
|
-
|
2083
|
+
incrementIconTemplate;
|
2085
2084
|
/**
|
2086
2085
|
* Custom template for input icon.
|
2087
2086
|
* @group Templates
|
2088
2087
|
*/
|
2089
|
-
|
2088
|
+
inputIconTemplate;
|
2089
|
+
_dateTemplate;
|
2090
|
+
_headerTemplate;
|
2091
|
+
_footerTemplate;
|
2092
|
+
_disabledDateTemplate;
|
2093
|
+
_decadeTemplate;
|
2094
|
+
_previousIconTemplate;
|
2095
|
+
_nextIconTemplate;
|
2096
|
+
_triggerIconTemplate;
|
2097
|
+
_clearIconTemplate;
|
2098
|
+
_decrementIconTemplate;
|
2099
|
+
_incrementIconTemplate;
|
2100
|
+
_inputIconTemplate;
|
2090
2101
|
_disabledDates;
|
2091
2102
|
_disabledDays;
|
2092
2103
|
selectElement;
|
@@ -2175,6 +2186,52 @@ class DatePicker extends BaseComponent {
|
|
2175
2186
|
}
|
2176
2187
|
}
|
2177
2188
|
}
|
2189
|
+
templates;
|
2190
|
+
ngAfterContentInit() {
|
2191
|
+
this.templates.forEach((item) => {
|
2192
|
+
switch (item.getType()) {
|
2193
|
+
case 'date':
|
2194
|
+
this._dateTemplate = item.template;
|
2195
|
+
break;
|
2196
|
+
case 'decade':
|
2197
|
+
this._decadeTemplate = item.template;
|
2198
|
+
break;
|
2199
|
+
case 'disabledDate':
|
2200
|
+
this._disabledDateTemplate = item.template;
|
2201
|
+
break;
|
2202
|
+
case 'header':
|
2203
|
+
this._headerTemplate = item.template;
|
2204
|
+
break;
|
2205
|
+
case 'inputicon':
|
2206
|
+
this._inputIconTemplate = item.template;
|
2207
|
+
break;
|
2208
|
+
case 'previousicon':
|
2209
|
+
this._previousIconTemplate = item.template;
|
2210
|
+
break;
|
2211
|
+
case 'nexticon':
|
2212
|
+
this._nextIconTemplate = item.template;
|
2213
|
+
break;
|
2214
|
+
case 'triggericon':
|
2215
|
+
this._triggerIconTemplate = item.template;
|
2216
|
+
break;
|
2217
|
+
case 'clearicon':
|
2218
|
+
this._clearIconTemplate = item.template;
|
2219
|
+
break;
|
2220
|
+
case 'decrementicon':
|
2221
|
+
this._decrementIconTemplate = item.template;
|
2222
|
+
break;
|
2223
|
+
case 'incrementicon':
|
2224
|
+
this._incrementIconTemplate = item.template;
|
2225
|
+
break;
|
2226
|
+
case 'footer':
|
2227
|
+
this._footerTemplate = item.template;
|
2228
|
+
break;
|
2229
|
+
default:
|
2230
|
+
this._dateTemplate = item.template;
|
2231
|
+
break;
|
2232
|
+
}
|
2233
|
+
});
|
2234
|
+
}
|
2178
2235
|
getTranslation(option) {
|
2179
2236
|
return this.config.getTranslation(option);
|
2180
2237
|
}
|
@@ -3806,6 +3863,8 @@ class DatePicker extends BaseComponent {
|
|
3806
3863
|
if (!this.inline) {
|
3807
3864
|
this.overlay = event.element;
|
3808
3865
|
this.overlay?.setAttribute(this.attributeSelector, '');
|
3866
|
+
const styles = !this.inline ? { position: 'absolute', top: '0', left: '0' } : undefined;
|
3867
|
+
addStyle(this.overlay, styles);
|
3809
3868
|
this.appendOverlay();
|
3810
3869
|
this.updateFocus();
|
3811
3870
|
if (this.autoZIndex) {
|
@@ -4404,18 +4463,19 @@ class DatePicker extends BaseComponent {
|
|
4404
4463
|
}
|
4405
4464
|
static ɵfac = function DatePicker_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || DatePicker)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1.OverlayService)); };
|
4406
4465
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DatePicker, selectors: [["p-datePicker"], ["p-datepicker"], ["p-date-picker"]], contentQueries: function DatePicker_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
4407
|
-
i0.ɵɵcontentQuery(dirIndex, _c0,
|
4408
|
-
i0.ɵɵcontentQuery(dirIndex, _c1,
|
4409
|
-
i0.ɵɵcontentQuery(dirIndex, _c2,
|
4410
|
-
i0.ɵɵcontentQuery(dirIndex, _c3,
|
4411
|
-
i0.ɵɵcontentQuery(dirIndex, _c4,
|
4412
|
-
i0.ɵɵcontentQuery(dirIndex, _c5,
|
4413
|
-
i0.ɵɵcontentQuery(dirIndex, _c6,
|
4414
|
-
i0.ɵɵcontentQuery(dirIndex, _c7,
|
4415
|
-
i0.ɵɵcontentQuery(dirIndex, _c8,
|
4416
|
-
i0.ɵɵcontentQuery(dirIndex, _c9,
|
4417
|
-
i0.ɵɵcontentQuery(dirIndex, _c10,
|
4418
|
-
i0.ɵɵcontentQuery(dirIndex, _c11,
|
4466
|
+
i0.ɵɵcontentQuery(dirIndex, _c0, 4);
|
4467
|
+
i0.ɵɵcontentQuery(dirIndex, _c1, 4);
|
4468
|
+
i0.ɵɵcontentQuery(dirIndex, _c2, 4);
|
4469
|
+
i0.ɵɵcontentQuery(dirIndex, _c3, 4);
|
4470
|
+
i0.ɵɵcontentQuery(dirIndex, _c4, 4);
|
4471
|
+
i0.ɵɵcontentQuery(dirIndex, _c5, 4);
|
4472
|
+
i0.ɵɵcontentQuery(dirIndex, _c6, 4);
|
4473
|
+
i0.ɵɵcontentQuery(dirIndex, _c7, 4);
|
4474
|
+
i0.ɵɵcontentQuery(dirIndex, _c8, 4);
|
4475
|
+
i0.ɵɵcontentQuery(dirIndex, _c9, 4);
|
4476
|
+
i0.ɵɵcontentQuery(dirIndex, _c10, 4);
|
4477
|
+
i0.ɵɵcontentQuery(dirIndex, _c11, 4);
|
4478
|
+
i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);
|
4419
4479
|
} if (rf & 2) {
|
4420
4480
|
let _t;
|
4421
4481
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dateTemplate = _t.first);
|
@@ -4423,13 +4483,14 @@ class DatePicker extends BaseComponent {
|
|
4423
4483
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerTemplate = _t.first);
|
4424
4484
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.disabledDateTemplate = _t.first);
|
4425
4485
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.decadeTemplate = _t.first);
|
4426
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
4427
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
4428
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
4429
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
4430
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
4431
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
4432
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.
|
4486
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.previousIconTemplate = _t.first);
|
4487
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.nextIconTemplate = _t.first);
|
4488
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.triggerIconTemplate = _t.first);
|
4489
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.clearIconTemplate = _t.first);
|
4490
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.decrementIconTemplate = _t.first);
|
4491
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.incrementIconTemplate = _t.first);
|
4492
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputIconTemplate = _t.first);
|
4493
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
|
4433
4494
|
} }, viewQuery: function DatePicker_Query(rf, ctx) { if (rf & 1) {
|
4434
4495
|
i0.ɵɵviewQuery(_c12, 5);
|
4435
4496
|
i0.ɵɵviewQuery(_c13, 5);
|
@@ -4439,10 +4500,10 @@ class DatePicker extends BaseComponent {
|
|
4439
4500
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerViewChild = _t.first);
|
4440
4501
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputfieldViewChild = _t.first);
|
4441
4502
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.content = _t.first);
|
4442
|
-
} }, 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", "
|
4503
|
+
} }, 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) {
|
4443
4504
|
i0.ɵɵprojectionDef(_c15);
|
4444
4505
|
i0.ɵɵelementStart(0, "span", 3, 0);
|
4445
|
-
i0.ɵɵtemplate(2, DatePicker_ng_template_2_Template, 5,
|
4506
|
+
i0.ɵɵtemplate(2, DatePicker_ng_template_2_Template, 5, 24, "ng-template", 4)(3, DatePicker_div_3_Template, 9, 20, "div", 5);
|
4446
4507
|
i0.ɵɵelementEnd();
|
4447
4508
|
} if (rf & 2) {
|
4448
4509
|
i0.ɵɵclassMap(ctx.styleClass);
|
@@ -4511,12 +4572,11 @@ class DatePicker extends BaseComponent {
|
|
4511
4572
|
[pAutoFocus]="autofocus"
|
4512
4573
|
[variant]="variant"
|
4513
4574
|
[fluid]="hasFluid"
|
4514
|
-
[pSize]="size"
|
4515
4575
|
/>
|
4516
4576
|
<ng-container *ngIf="showClear && !disabled && value != null">
|
4517
|
-
<TimesIcon *ngIf="!
|
4518
|
-
<span *ngIf="
|
4519
|
-
<ng-template *ngTemplateOutlet="
|
4577
|
+
<TimesIcon *ngIf="!clearIconTemplate && !_clearIconTemplate" [class]="'p-datepicker-clear-icon'" (click)="clear()" />
|
4578
|
+
<span *ngIf="clearIconTemplate || _clearIconTemplate" class="p-datepicker-clear-icon" (click)="clear()">
|
4579
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate || _clearIconTemplate"></ng-template>
|
4520
4580
|
</span>
|
4521
4581
|
</ng-container>
|
4522
4582
|
<button
|
@@ -4533,21 +4593,21 @@ class DatePicker extends BaseComponent {
|
|
4533
4593
|
>
|
4534
4594
|
<span *ngIf="icon" [ngClass]="icon"></span>
|
4535
4595
|
<ng-container *ngIf="!icon">
|
4536
|
-
<CalendarIcon *ngIf="!
|
4537
|
-
<ng-template *ngTemplateOutlet="
|
4596
|
+
<CalendarIcon *ngIf="!triggerIconTemplate && !_triggerIconTemplate" />
|
4597
|
+
<ng-template *ngTemplateOutlet="triggerIconTemplate || _triggerIconTemplate"></ng-template>
|
4538
4598
|
</ng-container>
|
4539
4599
|
</button>
|
4540
4600
|
<ng-container *ngIf="iconDisplay === 'input' && showIcon">
|
4541
4601
|
<span class="p-datepicker-input-icon-container">
|
4542
4602
|
<CalendarIcon
|
4543
4603
|
(click)="onButtonClick($event)"
|
4544
|
-
*ngIf="!
|
4604
|
+
*ngIf="!inputIconTemplate && !_inputIconTemplate"
|
4545
4605
|
[ngClass]="{
|
4546
4606
|
'p-datepicker-input-icon': showOnFocus
|
4547
4607
|
}"
|
4548
4608
|
/>
|
4549
4609
|
|
4550
|
-
<ng-container *ngTemplateOutlet="
|
4610
|
+
<ng-container *ngTemplateOutlet="inputIconTemplate || _inputIconTemplate; context: { clickCallBack: onButtonClick.bind(this) }"></ng-container>
|
4551
4611
|
</span>
|
4552
4612
|
</ng-container>
|
4553
4613
|
</ng-template>
|
@@ -4557,7 +4617,6 @@ class DatePicker extends BaseComponent {
|
|
4557
4617
|
[class]="panelStyleClass"
|
4558
4618
|
[ngStyle]="panelStyle"
|
4559
4619
|
[ngClass]="panelClass"
|
4560
|
-
[style.position]="!inline && 'absolute'"
|
4561
4620
|
[@overlayAnimation]="{
|
4562
4621
|
value: 'visible',
|
4563
4622
|
params: { showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions }
|
@@ -4572,14 +4631,13 @@ class DatePicker extends BaseComponent {
|
|
4572
4631
|
*ngIf="inline || overlayVisible"
|
4573
4632
|
>
|
4574
4633
|
<ng-content select="p-header"></ng-content>
|
4575
|
-
<ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
|
4634
|
+
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
|
4576
4635
|
<ng-container *ngIf="!timeOnly">
|
4577
4636
|
<div class="p-datepicker-calendar-container">
|
4578
4637
|
<div class="p-datepicker-calendar" *ngFor="let month of months; let i = index">
|
4579
4638
|
<div class="p-datepicker-header">
|
4580
4639
|
<p-button
|
4581
4640
|
size="small"
|
4582
|
-
severity="secondary"
|
4583
4641
|
rounded
|
4584
4642
|
text
|
4585
4643
|
(keydown)="onContainerButtonKeydown($event)"
|
@@ -4589,9 +4647,9 @@ class DatePicker extends BaseComponent {
|
|
4589
4647
|
type="button"
|
4590
4648
|
[attr.aria-label]="prevIconAriaLabel"
|
4591
4649
|
>
|
4592
|
-
<ChevronLeftIcon *ngIf="!
|
4593
|
-
<span *ngIf="
|
4594
|
-
<ng-template *ngTemplateOutlet="
|
4650
|
+
<ChevronLeftIcon *ngIf="!previousIconTemplate && !_previousIconTemplate" />
|
4651
|
+
<span *ngIf="previousIconTemplate || !_previousIconTemplate">
|
4652
|
+
<ng-template *ngTemplateOutlet="previousIconTemplate || _previousIconTemplate"></ng-template>
|
4595
4653
|
</span>
|
4596
4654
|
</p-button>
|
4597
4655
|
<div class="p-datepicker-title">
|
@@ -4620,13 +4678,12 @@ class DatePicker extends BaseComponent {
|
|
4620
4678
|
{{ getYear(month) }}
|
4621
4679
|
</button>
|
4622
4680
|
<span class="p-datepicker-decade" *ngIf="currentView === 'year'">
|
4623
|
-
<ng-container *ngIf="!decadeTemplate">{{ yearPickerValues()[0] }} - {{ yearPickerValues()[yearPickerValues().length - 1] }}</ng-container>
|
4624
|
-
<ng-container *ngTemplateOutlet="decadeTemplate; context: { $implicit: yearPickerValues }"></ng-container>
|
4681
|
+
<ng-container *ngIf="!decadeTemplate && _decadeTemplate">{{ yearPickerValues()[0] }} - {{ yearPickerValues()[yearPickerValues().length - 1] }}</ng-container>
|
4682
|
+
<ng-container *ngTemplateOutlet="decadeTemplate || _decadeTemplate; context: { $implicit: yearPickerValues }"></ng-container>
|
4625
4683
|
</span>
|
4626
4684
|
</div>
|
4627
4685
|
<p-button
|
4628
4686
|
rounded
|
4629
|
-
severity="secondary"
|
4630
4687
|
text
|
4631
4688
|
size="small"
|
4632
4689
|
(keydown)="onContainerButtonKeydown($event)"
|
@@ -4635,10 +4692,10 @@ class DatePicker extends BaseComponent {
|
|
4635
4692
|
[ngStyle]="{ visibility: i === months.length - 1 ? 'visible' : 'hidden' }"
|
4636
4693
|
[attr.aria-label]="nextIconAriaLabel"
|
4637
4694
|
>
|
4638
|
-
<ChevronRightIcon *ngIf="!
|
4695
|
+
<ChevronRightIcon *ngIf="!decadeTemplate && !_decadeTemplate" />
|
4639
4696
|
|
4640
|
-
<span *ngIf="
|
4641
|
-
<ng-template *ngTemplateOutlet="
|
4697
|
+
<span *ngIf="nextIconTemplate || !_nextIconTemplate">
|
4698
|
+
<ng-template *ngTemplateOutlet="nextIconTemplate || _nextIconTemplate"></ng-template>
|
4642
4699
|
</span>
|
4643
4700
|
</p-button>
|
4644
4701
|
</div>
|
@@ -4678,12 +4735,12 @@ class DatePicker extends BaseComponent {
|
|
4678
4735
|
(keydown)="onDateCellKeydown($event, date, i)"
|
4679
4736
|
pRipple
|
4680
4737
|
>
|
4681
|
-
<ng-container *ngIf="!dateTemplate && (date.selectable || !disabledDateTemplate)">{{ date.day }}</ng-container>
|
4682
|
-
<ng-container *ngIf="date.selectable || !disabledDateTemplate">
|
4683
|
-
<ng-container *ngTemplateOutlet="dateTemplate; context: { $implicit: date }"></ng-container>
|
4738
|
+
<ng-container *ngIf="!dateTemplate && !_dateTemplate && (date.selectable || (!disabledDateTemplate && !_disabledDateTemplate))">{{ date.day }}</ng-container>
|
4739
|
+
<ng-container *ngIf="date.selectable || (!disabledDateTemplate && !_disabledDateTemplate)">
|
4740
|
+
<ng-container *ngTemplateOutlet="dateTemplate || _dateTemplate; context: { $implicit: date }"></ng-container>
|
4684
4741
|
</ng-container>
|
4685
4742
|
<ng-container *ngIf="!date.selectable">
|
4686
|
-
<ng-container *ngTemplateOutlet="disabledDateTemplate; context: { $implicit: date }"></ng-container>
|
4743
|
+
<ng-container *ngTemplateOutlet="disabledDateTemplate || _disabledDateTemplate; context: { $implicit: date }"></ng-container>
|
4687
4744
|
</ng-container>
|
4688
4745
|
</span>
|
4689
4746
|
<div *ngIf="isSelected(date)" class="p-hidden-accessible" aria-live="polite">
|
@@ -4750,9 +4807,9 @@ class DatePicker extends BaseComponent {
|
|
4750
4807
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
4751
4808
|
[attr.aria-label]="getTranslation('nextHour')"
|
4752
4809
|
>
|
4753
|
-
<ChevronUpIcon *ngIf="!
|
4810
|
+
<ChevronUpIcon *ngIf="!incrementIconTemplate && !_incrementIconTemplate" />
|
4754
4811
|
|
4755
|
-
<ng-template *ngTemplateOutlet="
|
4812
|
+
<ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
|
4756
4813
|
</p-button>
|
4757
4814
|
<span><ng-container *ngIf="currentHour < 10">0</ng-container>{{ currentHour }}</span>
|
4758
4815
|
<p-button
|
@@ -4770,9 +4827,9 @@ class DatePicker extends BaseComponent {
|
|
4770
4827
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
4771
4828
|
[attr.aria-label]="getTranslation('prevHour')"
|
4772
4829
|
>
|
4773
|
-
<ChevronDownIcon *ngIf="!
|
4830
|
+
<ChevronDownIcon *ngIf="!decrementIconTemplate && !_decrementIconTemplate" />
|
4774
4831
|
|
4775
|
-
<ng-template *ngTemplateOutlet="
|
4832
|
+
<ng-template *ngTemplateOutlet="decrementIconTemplate || _decrementIconTemplate"></ng-template>
|
4776
4833
|
</p-button>
|
4777
4834
|
</div>
|
4778
4835
|
<div class="p-datepicker-separator">
|
@@ -4794,9 +4851,9 @@ class DatePicker extends BaseComponent {
|
|
4794
4851
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
4795
4852
|
[attr.aria-label]="getTranslation('nextMinute')"
|
4796
4853
|
>
|
4797
|
-
<ChevronUpIcon *ngIf="!
|
4854
|
+
<ChevronUpIcon *ngIf="!incrementIconTemplate && !_incrementIconTemplate" />
|
4798
4855
|
|
4799
|
-
<ng-template *ngTemplateOutlet="
|
4856
|
+
<ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
|
4800
4857
|
</p-button>
|
4801
4858
|
<span><ng-container *ngIf="currentMinute < 10">0</ng-container>{{ currentMinute }}</span>
|
4802
4859
|
<p-button
|
@@ -4814,9 +4871,9 @@ class DatePicker extends BaseComponent {
|
|
4814
4871
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
4815
4872
|
[attr.aria-label]="getTranslation('prevMinute')"
|
4816
4873
|
>
|
4817
|
-
<ChevronDownIcon *ngIf="!
|
4818
|
-
<ng-container *ngIf="
|
4819
|
-
<ng-template *ngTemplateOutlet="
|
4874
|
+
<ChevronDownIcon *ngIf="!decrementIconTemplate && !_decrementIconTemplate" />
|
4875
|
+
<ng-container *ngIf="decrementIconTemplate || _decrementIconTemplate">
|
4876
|
+
<ng-template *ngTemplateOutlet="decrementIconTemplate || _decrementIconTemplate"></ng-template>
|
4820
4877
|
</ng-container>
|
4821
4878
|
</p-button>
|
4822
4879
|
</div>
|
@@ -4839,9 +4896,9 @@ class DatePicker extends BaseComponent {
|
|
4839
4896
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
4840
4897
|
[attr.aria-label]="getTranslation('nextSecond')"
|
4841
4898
|
>
|
4842
|
-
<ChevronUpIcon *ngIf="!
|
4899
|
+
<ChevronUpIcon *ngIf="!incrementIconTemplate && !_incrementIconTemplate" />
|
4843
4900
|
|
4844
|
-
<ng-template *ngTemplateOutlet="
|
4901
|
+
<ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
|
4845
4902
|
</p-button>
|
4846
4903
|
<span><ng-container *ngIf="currentSecond < 10">0</ng-container>{{ currentSecond }}</span>
|
4847
4904
|
<p-button
|
@@ -4859,9 +4916,9 @@ class DatePicker extends BaseComponent {
|
|
4859
4916
|
(mouseleave)="onTimePickerElementMouseLeave()"
|
4860
4917
|
[attr.aria-label]="getTranslation('prevSecond')"
|
4861
4918
|
>
|
4862
|
-
<ChevronDownIcon *ngIf="!
|
4919
|
+
<ChevronDownIcon *ngIf="!decrementIconTemplate && !_decrementIconTemplate" />
|
4863
4920
|
|
4864
|
-
<ng-template *ngTemplateOutlet="
|
4921
|
+
<ng-template *ngTemplateOutlet="decrementIconTemplate || _decrementIconTemplate"></ng-template>
|
4865
4922
|
</p-button>
|
4866
4923
|
</div>
|
4867
4924
|
<div class="p-datepicker-separator" *ngIf="hourFormat == '12'">
|
@@ -4878,8 +4935,8 @@ class DatePicker extends BaseComponent {
|
|
4878
4935
|
(keydown.enter)="toggleAMPM($event)"
|
4879
4936
|
[attr.aria-label]="getTranslation('am')"
|
4880
4937
|
>
|
4881
|
-
<ChevronUpIcon *ngIf="!
|
4882
|
-
<ng-template *ngTemplateOutlet="
|
4938
|
+
<ChevronUpIcon *ngIf="!incrementIconTemplate && !_incrementIconTemplate" />
|
4939
|
+
<ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
|
4883
4940
|
</p-button>
|
4884
4941
|
<span>{{ pm ? 'PM' : 'AM' }}</span>
|
4885
4942
|
<p-button
|
@@ -4892,35 +4949,17 @@ class DatePicker extends BaseComponent {
|
|
4892
4949
|
(keydown.enter)="toggleAMPM($event)"
|
4893
4950
|
[attr.aria-label]="getTranslation('pm')"
|
4894
4951
|
>
|
4895
|
-
<ChevronDownIcon *ngIf="!
|
4896
|
-
<ng-template *ngTemplateOutlet="
|
4952
|
+
<ChevronDownIcon *ngIf="!decrementIconTemplate && !_decrementIconTemplate" />
|
4953
|
+
<ng-template *ngTemplateOutlet="decrementIconTemplate || _decrementIconTemplate"></ng-template>
|
4897
4954
|
</p-button>
|
4898
4955
|
</div>
|
4899
4956
|
</div>
|
4900
4957
|
<div class="p-datepicker-buttonbar" *ngIf="showButtonBar">
|
4901
|
-
<p-button
|
4902
|
-
|
4903
|
-
text
|
4904
|
-
severity="secondary"
|
4905
|
-
styleClass="p-datepicker-today-button"
|
4906
|
-
[label]="getTranslation('today')"
|
4907
|
-
(keydown)="onContainerButtonKeydown($event)"
|
4908
|
-
(onClick)="onTodayButtonClick($event)"
|
4909
|
-
[ngClass]="todayButtonStyleClass"
|
4910
|
-
/>
|
4911
|
-
<p-button
|
4912
|
-
size="small"
|
4913
|
-
text
|
4914
|
-
severity="secondary"
|
4915
|
-
styleClass="p-datepicker-clear-button"
|
4916
|
-
[label]="getTranslation('clear')"
|
4917
|
-
(keydown)="onContainerButtonKeydown($event)"
|
4918
|
-
(onClick)="onClearButtonClick($event)"
|
4919
|
-
[ngClass]="clearButtonStyleClass"
|
4920
|
-
/>
|
4958
|
+
<p-button size="small" styleClass="p-datepicker-today-button" [label]="getTranslation('today')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onTodayButtonClick($event)" [ngClass]="todayButtonStyleClass" />
|
4959
|
+
<p-button size="small" styleClass="p-datepicker-clear-button" [label]="getTranslation('clear')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onClearButtonClick($event)" [ngClass]="clearButtonStyleClass" />
|
4921
4960
|
</div>
|
4922
4961
|
<ng-content select="p-footer"></ng-content>
|
4923
|
-
<ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
|
4962
|
+
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
|
4924
4963
|
</div>
|
4925
4964
|
</span>
|
4926
4965
|
`,
|
@@ -5148,40 +5187,43 @@ class DatePicker extends BaseComponent {
|
|
5148
5187
|
args: ['contentWrapper', { static: false }]
|
5149
5188
|
}], dateTemplate: [{
|
5150
5189
|
type: ContentChild,
|
5151
|
-
args: ['date']
|
5190
|
+
args: ['date', { descendants: false }]
|
5152
5191
|
}], headerTemplate: [{
|
5153
5192
|
type: ContentChild,
|
5154
|
-
args: ['header']
|
5193
|
+
args: ['header', { descendants: false }]
|
5155
5194
|
}], footerTemplate: [{
|
5156
5195
|
type: ContentChild,
|
5157
|
-
args: ['footer']
|
5196
|
+
args: ['footer', { descendants: false }]
|
5158
5197
|
}], disabledDateTemplate: [{
|
5159
5198
|
type: ContentChild,
|
5160
|
-
args: ['disabledDate']
|
5199
|
+
args: ['disabledDate', { descendants: false }]
|
5161
5200
|
}], decadeTemplate: [{
|
5162
5201
|
type: ContentChild,
|
5163
|
-
args: ['decade']
|
5164
|
-
}],
|
5202
|
+
args: ['decade', { descendants: false }]
|
5203
|
+
}], previousIconTemplate: [{
|
5165
5204
|
type: ContentChild,
|
5166
|
-
args: ['previousicon']
|
5167
|
-
}],
|
5205
|
+
args: ['previousicon', { descendants: false }]
|
5206
|
+
}], nextIconTemplate: [{
|
5168
5207
|
type: ContentChild,
|
5169
|
-
args: ['nexticon']
|
5170
|
-
}],
|
5208
|
+
args: ['nexticon', { descendants: false }]
|
5209
|
+
}], triggerIconTemplate: [{
|
5171
5210
|
type: ContentChild,
|
5172
|
-
args: ['triggericon']
|
5173
|
-
}],
|
5211
|
+
args: ['triggericon', { descendants: false }]
|
5212
|
+
}], clearIconTemplate: [{
|
5174
5213
|
type: ContentChild,
|
5175
|
-
args: ['clearicon']
|
5176
|
-
}],
|
5214
|
+
args: ['clearicon', { descendants: false }]
|
5215
|
+
}], decrementIconTemplate: [{
|
5177
5216
|
type: ContentChild,
|
5178
|
-
args: ['decrementicon']
|
5179
|
-
}],
|
5217
|
+
args: ['decrementicon', { descendants: false }]
|
5218
|
+
}], incrementIconTemplate: [{
|
5180
5219
|
type: ContentChild,
|
5181
|
-
args: ['incrementicon']
|
5182
|
-
}],
|
5220
|
+
args: ['incrementicon', { descendants: false }]
|
5221
|
+
}], inputIconTemplate: [{
|
5183
5222
|
type: ContentChild,
|
5184
|
-
args: ['inputicon']
|
5223
|
+
args: ['inputicon', { descendants: false }]
|
5224
|
+
}], templates: [{
|
5225
|
+
type: ContentChildren,
|
5226
|
+
args: [PrimeTemplate]
|
5185
5227
|
}] }); })();
|
5186
5228
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(DatePicker, { className: "DatePicker" }); })();
|
5187
5229
|
class DatePickerModule {
|