primeng 19.0.0-rc.1 → 19.0.1

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.
Files changed (240) hide show
  1. package/accordion/accordion.d.ts +7 -7
  2. package/autocomplete/autocomplete.d.ts +21 -8
  3. package/badge/badge.d.ts +1 -3
  4. package/basecomponent/basecomponent.d.ts +2 -5
  5. package/blockui/blockui.d.ts +10 -5
  6. package/breadcrumb/breadcrumb.d.ts +9 -6
  7. package/button/button.d.ts +10 -4
  8. package/calendar/calendar.d.ts +29 -15
  9. package/card/card.d.ts +12 -5
  10. package/carousel/carousel.d.ts +10 -4
  11. package/cascadeselect/cascadeselect.d.ts +18 -8
  12. package/checkbox/checkbox.d.ts +8 -4
  13. package/chip/chip.d.ts +9 -7
  14. package/config/themeprovider.d.ts +6 -0
  15. package/confirmdialog/confirmdialog.d.ts +15 -5
  16. package/confirmpopup/confirmpopup.d.ts +11 -5
  17. package/contextmenu/contextmenu.d.ts +10 -6
  18. package/datepicker/datepicker.d.ts +25 -11
  19. package/dialog/dialog.d.ts +15 -4
  20. package/divider/divider.d.ts +1 -1
  21. package/dock/dock.d.ts +7 -4
  22. package/drawer/drawer.d.ts +18 -10
  23. package/dropdown/dropdown.d.ts +4 -3
  24. package/dynamicdialog/dynamicdialog.d.ts +3 -2
  25. package/editor/editor.d.ts +7 -3
  26. package/fesm2022/primeng-accordion.mjs +56 -41
  27. package/fesm2022/primeng-accordion.mjs.map +1 -1
  28. package/fesm2022/primeng-autocomplete.mjs +153 -92
  29. package/fesm2022/primeng-autocomplete.mjs.map +1 -1
  30. package/fesm2022/primeng-badge.mjs +39 -32
  31. package/fesm2022/primeng-badge.mjs.map +1 -1
  32. package/fesm2022/primeng-basecomponent.mjs +2 -25
  33. package/fesm2022/primeng-basecomponent.mjs.map +1 -1
  34. package/fesm2022/primeng-blockui.mjs +38 -18
  35. package/fesm2022/primeng-blockui.mjs.map +1 -1
  36. package/fesm2022/primeng-breadcrumb.mjs +49 -31
  37. package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
  38. package/fesm2022/primeng-button.mjs +55 -28
  39. package/fesm2022/primeng-button.mjs.map +1 -1
  40. package/fesm2022/primeng-calendar.mjs +202 -137
  41. package/fesm2022/primeng-calendar.mjs.map +1 -1
  42. package/fesm2022/primeng-card.mjs +95 -45
  43. package/fesm2022/primeng-card.mjs.map +1 -1
  44. package/fesm2022/primeng-carousel.mjs +74 -42
  45. package/fesm2022/primeng-carousel.mjs.map +1 -1
  46. package/fesm2022/primeng-cascadeselect.mjs +99 -61
  47. package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
  48. package/fesm2022/primeng-checkbox.mjs +31 -12
  49. package/fesm2022/primeng-checkbox.mjs.map +1 -1
  50. package/fesm2022/primeng-chip.mjs +117 -96
  51. package/fesm2022/primeng-chip.mjs.map +1 -1
  52. package/fesm2022/primeng-config.mjs +13 -11
  53. package/fesm2022/primeng-config.mjs.map +1 -1
  54. package/fesm2022/primeng-confirmdialog.mjs +104 -60
  55. package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
  56. package/fesm2022/primeng-confirmpopup.mjs +57 -29
  57. package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
  58. package/fesm2022/primeng-contextmenu.mjs +52 -21
  59. package/fesm2022/primeng-contextmenu.mjs.map +1 -1
  60. package/fesm2022/primeng-datepicker.mjs +198 -156
  61. package/fesm2022/primeng-datepicker.mjs.map +1 -1
  62. package/fesm2022/primeng-dialog.mjs +97 -50
  63. package/fesm2022/primeng-dialog.mjs.map +1 -1
  64. package/fesm2022/primeng-divider.mjs +2 -4
  65. package/fesm2022/primeng-divider.mjs.map +1 -1
  66. package/fesm2022/primeng-dock.mjs +29 -10
  67. package/fesm2022/primeng-dock.mjs.map +1 -1
  68. package/fesm2022/primeng-drawer.mjs +112 -70
  69. package/fesm2022/primeng-drawer.mjs.map +1 -1
  70. package/fesm2022/primeng-dropdown.mjs +14 -6
  71. package/fesm2022/primeng-dropdown.mjs.map +1 -1
  72. package/fesm2022/primeng-dynamicdialog.mjs +25 -21
  73. package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
  74. package/fesm2022/primeng-editor.mjs +26 -10
  75. package/fesm2022/primeng-editor.mjs.map +1 -1
  76. package/fesm2022/primeng-fieldset.mjs +61 -33
  77. package/fesm2022/primeng-fieldset.mjs.map +1 -1
  78. package/fesm2022/primeng-fileupload.mjs +138 -87
  79. package/fesm2022/primeng-fileupload.mjs.map +1 -1
  80. package/fesm2022/primeng-galleria.mjs +22 -13
  81. package/fesm2022/primeng-galleria.mjs.map +1 -1
  82. package/fesm2022/primeng-image.mjs +113 -66
  83. package/fesm2022/primeng-image.mjs.map +1 -1
  84. package/fesm2022/primeng-imagecompare.mjs +30 -10
  85. package/fesm2022/primeng-imagecompare.mjs.map +1 -1
  86. package/fesm2022/primeng-inplace.mjs +51 -26
  87. package/fesm2022/primeng-inplace.mjs.map +1 -1
  88. package/fesm2022/primeng-inputmask.mjs +31 -15
  89. package/fesm2022/primeng-inputmask.mjs.map +1 -1
  90. package/fesm2022/primeng-inputnumber.mjs +54 -45
  91. package/fesm2022/primeng-inputnumber.mjs.map +1 -1
  92. package/fesm2022/primeng-inputotp.mjs +30 -11
  93. package/fesm2022/primeng-inputotp.mjs.map +1 -1
  94. package/fesm2022/primeng-listbox.mjs +137 -78
  95. package/fesm2022/primeng-listbox.mjs.map +1 -1
  96. package/fesm2022/primeng-megamenu.mjs +105 -59
  97. package/fesm2022/primeng-megamenu.mjs.map +1 -1
  98. package/fesm2022/primeng-menu.mjs +26 -26
  99. package/fesm2022/primeng-menu.mjs.map +1 -1
  100. package/fesm2022/primeng-menubar.mjs +69 -34
  101. package/fesm2022/primeng-menubar.mjs.map +1 -1
  102. package/fesm2022/primeng-message.mjs +49 -25
  103. package/fesm2022/primeng-message.mjs.map +1 -1
  104. package/fesm2022/primeng-messages.mjs +12 -3
  105. package/fesm2022/primeng-messages.mjs.map +1 -1
  106. package/fesm2022/primeng-metergroup.mjs +62 -30
  107. package/fesm2022/primeng-metergroup.mjs.map +1 -1
  108. package/fesm2022/primeng-multiselect.mjs +246 -155
  109. package/fesm2022/primeng-multiselect.mjs.map +1 -1
  110. package/fesm2022/primeng-orderlist.mjs +123 -68
  111. package/fesm2022/primeng-orderlist.mjs.map +1 -1
  112. package/fesm2022/primeng-organizationchart.mjs +31 -15
  113. package/fesm2022/primeng-organizationchart.mjs.map +1 -1
  114. package/fesm2022/primeng-overlay.mjs +26 -6
  115. package/fesm2022/primeng-overlay.mjs.map +1 -1
  116. package/fesm2022/primeng-overlaypanel.mjs +29 -9
  117. package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
  118. package/fesm2022/primeng-paginator.mjs +92 -60
  119. package/fesm2022/primeng-paginator.mjs.map +1 -1
  120. package/fesm2022/primeng-panel.mjs +159 -98
  121. package/fesm2022/primeng-panel.mjs.map +1 -1
  122. package/fesm2022/primeng-panelmenu.mjs +55 -32
  123. package/fesm2022/primeng-panelmenu.mjs.map +1 -1
  124. package/fesm2022/primeng-password.mjs +88 -49
  125. package/fesm2022/primeng-password.mjs.map +1 -1
  126. package/fesm2022/primeng-picklist.mjs +360 -228
  127. package/fesm2022/primeng-picklist.mjs.map +1 -1
  128. package/fesm2022/primeng-popover.mjs +23 -7
  129. package/fesm2022/primeng-popover.mjs.map +1 -1
  130. package/fesm2022/primeng-progressbar.mjs +26 -8
  131. package/fesm2022/primeng-progressbar.mjs.map +1 -1
  132. package/fesm2022/primeng-rating.mjs +44 -20
  133. package/fesm2022/primeng-rating.mjs.map +1 -1
  134. package/fesm2022/primeng-scroller.mjs +47 -37
  135. package/fesm2022/primeng-scroller.mjs.map +1 -1
  136. package/fesm2022/primeng-scrollpanel.mjs +28 -9
  137. package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
  138. package/fesm2022/primeng-scrolltop.mjs +16 -9
  139. package/fesm2022/primeng-scrolltop.mjs.map +1 -1
  140. package/fesm2022/primeng-select.mjs +198 -119
  141. package/fesm2022/primeng-select.mjs.map +1 -1
  142. package/fesm2022/primeng-selectbutton.mjs +25 -9
  143. package/fesm2022/primeng-selectbutton.mjs.map +1 -1
  144. package/fesm2022/primeng-sidebar.mjs +81 -58
  145. package/fesm2022/primeng-sidebar.mjs.map +1 -1
  146. package/fesm2022/primeng-speeddial.mjs +54 -29
  147. package/fesm2022/primeng-speeddial.mjs.map +1 -1
  148. package/fesm2022/primeng-splitbutton.mjs +41 -18
  149. package/fesm2022/primeng-splitbutton.mjs.map +1 -1
  150. package/fesm2022/primeng-splitter.mjs +4 -4
  151. package/fesm2022/primeng-splitter.mjs.map +1 -1
  152. package/fesm2022/primeng-stepper.mjs +33 -19
  153. package/fesm2022/primeng-stepper.mjs.map +1 -1
  154. package/fesm2022/primeng-table.mjs +115 -103
  155. package/fesm2022/primeng-table.mjs.map +1 -1
  156. package/fesm2022/primeng-tabmenu.mjs +54 -27
  157. package/fesm2022/primeng-tabmenu.mjs.map +1 -1
  158. package/fesm2022/primeng-tabs.mjs +27 -19
  159. package/fesm2022/primeng-tabs.mjs.map +1 -1
  160. package/fesm2022/primeng-tabview.mjs +106 -54
  161. package/fesm2022/primeng-tabview.mjs.map +1 -1
  162. package/fesm2022/primeng-tag.mjs +68 -44
  163. package/fesm2022/primeng-tag.mjs.map +1 -1
  164. package/fesm2022/primeng-tieredmenu.mjs +44 -21
  165. package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
  166. package/fesm2022/primeng-timeline.mjs +40 -16
  167. package/fesm2022/primeng-timeline.mjs.map +1 -1
  168. package/fesm2022/primeng-toast.mjs +30 -7
  169. package/fesm2022/primeng-toast.mjs.map +1 -1
  170. package/fesm2022/primeng-togglebutton.mjs +44 -28
  171. package/fesm2022/primeng-togglebutton.mjs.map +1 -1
  172. package/fesm2022/primeng-toggleswitch.mjs +28 -9
  173. package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
  174. package/fesm2022/primeng-toolbar.mjs +46 -20
  175. package/fesm2022/primeng-toolbar.mjs.map +1 -1
  176. package/fesm2022/primeng-tooltip.mjs +32 -69
  177. package/fesm2022/primeng-tooltip.mjs.map +1 -1
  178. package/fesm2022/primeng-tree.mjs +117 -98
  179. package/fesm2022/primeng-tree.mjs.map +1 -1
  180. package/fesm2022/primeng-treeselect.mjs +154 -85
  181. package/fesm2022/primeng-treeselect.mjs.map +1 -1
  182. package/fesm2022/primeng-treetable.mjs +31 -14
  183. package/fesm2022/primeng-treetable.mjs.map +1 -1
  184. package/fesm2022/primeng-usestyle.mjs +1 -1
  185. package/fesm2022/primeng-usestyle.mjs.map +1 -1
  186. package/fieldset/fieldset.d.ts +12 -6
  187. package/fileupload/fileupload.d.ts +19 -8
  188. package/galleria/galleria.d.ts +3 -2
  189. package/image/image.d.ts +18 -7
  190. package/imagecompare/imagecompare.d.ts +7 -2
  191. package/inplace/inplace.d.ts +12 -6
  192. package/inputmask/inputmask.d.ts +8 -4
  193. package/inputnumber/inputnumber.d.ts +11 -6
  194. package/inputotp/inputotp.d.ts +7 -2
  195. package/listbox/listbox.d.ts +17 -4
  196. package/megamenu/megamenu.d.ts +16 -7
  197. package/menu/menu.d.ts +6 -6
  198. package/menubar/menubar.d.ts +13 -6
  199. package/message/message.d.ts +10 -4
  200. package/messages/messages.d.ts +4 -3
  201. package/metergroup/metergroup.d.ts +11 -3
  202. package/multiselect/multiselect.d.ts +36 -17
  203. package/orderlist/orderlist.d.ts +23 -11
  204. package/organizationchart/organizationchart.d.ts +6 -4
  205. package/overlay/overlay.d.ts +6 -3
  206. package/overlaypanel/overlaypanel.d.ts +6 -3
  207. package/package.json +157 -157
  208. package/paginator/paginator.d.ts +15 -8
  209. package/panel/panel.d.ts +14 -5
  210. package/panelmenu/panelmenu.d.ts +8 -4
  211. package/password/password.d.ts +15 -7
  212. package/picklist/picklist.d.ts +23 -3
  213. package/popover/popover.d.ts +7 -4
  214. package/progressbar/progressbar.d.ts +7 -3
  215. package/rating/rating.d.ts +11 -5
  216. package/scroller/scroller.d.ts +9 -4
  217. package/scrollpanel/scrollpanel.d.ts +7 -3
  218. package/scrolltop/scrolltop.d.ts +7 -4
  219. package/select/select.d.ts +31 -13
  220. package/selectbutton/selectbutton.d.ts +7 -3
  221. package/sidebar/sidebar.d.ts +9 -2
  222. package/speeddial/speeddial.d.ts +9 -4
  223. package/splitbutton/splitbutton.d.ts +9 -5
  224. package/splitter/splitter.d.ts +4 -4
  225. package/stepper/stepper.d.ts +8 -3
  226. package/table/table.d.ts +2 -2
  227. package/tabmenu/tabmenu.d.ts +12 -7
  228. package/tabs/tablist.d.ts +6 -2
  229. package/tabview/tabview.d.ts +16 -7
  230. package/tag/tag.d.ts +8 -9
  231. package/tieredmenu/tieredmenu.d.ts +10 -6
  232. package/timeline/timeline.d.ts +7 -2
  233. package/toast/toast.d.ts +7 -3
  234. package/togglebutton/togglebutton.d.ts +8 -3
  235. package/toggleswitch/toggleswitch.d.ts +6 -2
  236. package/toolbar/toolbar.d.ts +9 -4
  237. package/tooltip/tooltip.d.ts +2 -1
  238. package/tree/tree.d.ts +23 -10
  239. package/treeselect/treeselect.d.ts +26 -12
  240. package/treetable/treetable.d.ts +6 -4
@@ -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, ContentChild, ViewChild, NgModule } from '@angular/core';
5
+ import { Injectable, forwardRef, EventEmitter, inject, booleanAttribute, numberAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ContentChild, ViewChild, 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';
@@ -534,7 +534,7 @@ function Calendar_ng_template_2_ng_container_2_span_2_Template(rf, ctx) { if (rf
534
534
  } if (rf & 2) {
535
535
  const ctx_r1 = i0.ɵɵnextContext(3);
536
536
  i0.ɵɵadvance();
537
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.clearicon);
537
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.clearIconTemplate || ctx_r1._clearIconTemplate);
538
538
  } }
539
539
  function Calendar_ng_template_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
540
540
  i0.ɵɵelementContainerStart(0);
@@ -543,9 +543,9 @@ function Calendar_ng_template_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
543
543
  } if (rf & 2) {
544
544
  const ctx_r1 = i0.ɵɵnextContext(2);
545
545
  i0.ɵɵadvance();
546
- i0.ɵɵproperty("ngIf", !ctx_r1.clearicon);
546
+ i0.ɵɵproperty("ngIf", !ctx_r1.clearIconTemplate && !ctx_r1._clearIconTemplate);
547
547
  i0.ɵɵadvance();
548
- i0.ɵɵproperty("ngIf", ctx_r1.clearicon);
548
+ i0.ɵɵproperty("ngIf", ctx_r1.clearIconTemplate || ctx_r1._clearIconTemplate);
549
549
  } }
550
550
  function Calendar_ng_template_2_button_3_span_1_Template(rf, ctx) { if (rf & 1) {
551
551
  i0.ɵɵelement(0, "span", 16);
@@ -567,9 +567,9 @@ function Calendar_ng_template_2_button_3_ng_container_2_Template(rf, ctx) { if (
567
567
  } if (rf & 2) {
568
568
  const ctx_r1 = i0.ɵɵnextContext(3);
569
569
  i0.ɵɵadvance();
570
- i0.ɵɵproperty("ngIf", !ctx_r1.triggericon);
570
+ i0.ɵɵproperty("ngIf", !ctx_r1.triggerIconTemplate && !ctx_r1._triggerIconTemplate);
571
571
  i0.ɵɵadvance();
572
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.triggericon);
572
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.triggerIconTemplate || ctx_r1._triggerIconTemplate);
573
573
  } }
574
574
  function Calendar_ng_template_2_button_3_Template(rf, ctx) { if (rf & 1) {
575
575
  const _r5 = i0.ɵɵgetCurrentView();
@@ -608,9 +608,9 @@ function Calendar_ng_template_2_ng_container_4_Template(rf, ctx) { if (rf & 1) {
608
608
  } if (rf & 2) {
609
609
  const ctx_r1 = i0.ɵɵnextContext(2);
610
610
  i0.ɵɵadvance(2);
611
- i0.ɵɵproperty("ngIf", !ctx_r1.inputicon);
611
+ i0.ɵɵproperty("ngIf", !ctx_r1.inputIconTemplate && !ctx_r1._inputIconTemplate);
612
612
  i0.ɵɵadvance();
613
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.inputicon)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c17, ctx_r1.onButtonClick.bind(ctx_r1)));
613
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.inputIconTemplate || ctx_r1._inputIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c17, ctx_r1.onButtonClick.bind(ctx_r1)));
614
614
  } }
615
615
  function Calendar_ng_template_2_Template(rf, ctx) { if (rf & 1) {
616
616
  const _r1 = i0.ɵɵgetCurrentView();
@@ -648,7 +648,7 @@ function Calendar_div_3_ng_container_4_div_2_span_4_Template(rf, ctx) { if (rf &
648
648
  } if (rf & 2) {
649
649
  const ctx_r1 = i0.ɵɵnextContext(4);
650
650
  i0.ɵɵadvance();
651
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.previousicon);
651
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.previousIconTemplate || ctx_r1._previousIconTemplate);
652
652
  } }
653
653
  function Calendar_div_3_ng_container_4_div_2_button_6_Template(rf, ctx) { if (rf & 1) {
654
654
  const _r10 = i0.ɵɵgetCurrentView();
@@ -697,9 +697,9 @@ function Calendar_div_3_ng_container_4_div_2_span_8_Template(rf, ctx) { if (rf &
697
697
  } if (rf & 2) {
698
698
  const ctx_r1 = i0.ɵɵnextContext(4);
699
699
  i0.ɵɵadvance();
700
- i0.ɵɵproperty("ngIf", !ctx_r1.decade);
700
+ i0.ɵɵproperty("ngIf", !ctx_r1.decadeTemplate && ctx_r1._decadeTemplate);
701
701
  i0.ɵɵadvance();
702
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decade)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c22, ctx_r1.yearPickerValues));
702
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decadeTemplate || ctx_r1._decadeTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c22, ctx_r1.yearPickerValues));
703
703
  } }
704
704
  function Calendar_div_3_ng_container_4_div_2_ChevronRightIcon_10_Template(rf, ctx) { if (rf & 1) {
705
705
  i0.ɵɵelement(0, "ChevronRightIcon");
@@ -715,7 +715,7 @@ function Calendar_div_3_ng_container_4_div_2_span_11_Template(rf, ctx) { if (rf
715
715
  } if (rf & 2) {
716
716
  const ctx_r1 = i0.ɵɵnextContext(4);
717
717
  i0.ɵɵadvance();
718
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.nexticon);
718
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.nextIconTemplate || ctx_r1._nextIconTemplate);
719
719
  } }
720
720
  function Calendar_div_3_ng_container_4_div_2_table_12_th_3_Template(rf, ctx) { if (rf & 1) {
721
721
  i0.ɵɵelementStart(0, "th", 44)(1, "span");
@@ -765,7 +765,7 @@ function Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_n
765
765
  const date_r16 = i0.ɵɵnextContext(2).$implicit;
766
766
  const ctx_r1 = i0.ɵɵnextContext(6);
767
767
  i0.ɵɵadvance();
768
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.dateTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c22, date_r16));
768
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.dateTemplate || ctx_r1._dateTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c22, date_r16));
769
769
  } }
770
770
  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) {
771
771
  i0.ɵɵelementContainer(0);
@@ -778,7 +778,7 @@ function Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_n
778
778
  const date_r16 = i0.ɵɵnextContext(2).$implicit;
779
779
  const ctx_r1 = i0.ɵɵnextContext(6);
780
780
  i0.ɵɵadvance();
781
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.disabledDate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c22, date_r16));
781
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.disabledDateTemplate || ctx_r1._disabledDateTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c22, date_r16));
782
782
  } }
783
783
  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) {
784
784
  i0.ɵɵelementStart(0, "div", 53);
@@ -805,9 +805,9 @@ function Calendar_div_3_ng_container_4_div_2_table_12_tr_6_td_2_ng_container_1_T
805
805
  i0.ɵɵproperty("ngClass", ctx_r1.dayClass(date_r16));
806
806
  i0.ɵɵattribute("data-date", ctx_r1.formatDateKey(ctx_r1.formatDateMetaToDate(date_r16)));
807
807
  i0.ɵɵadvance();
808
- i0.ɵɵproperty("ngIf", !ctx_r1.disabledDate && (date_r16.selectable || !ctx_r1.disabledDate));
808
+ i0.ɵɵproperty("ngIf", !ctx_r1.dateTemplate && !ctx_r1._dateTemplate && (date_r16.selectable || !ctx_r1.disabledDateTemplate && !ctx_r1._disabledDateTemplate));
809
809
  i0.ɵɵadvance();
810
- i0.ɵɵproperty("ngIf", date_r16.selectable || !ctx_r1.disabledDate);
810
+ i0.ɵɵproperty("ngIf", date_r16.selectable || !ctx_r1.disabledDateTemplate && !ctx_r1._disabledDateTemplate);
811
811
  i0.ɵɵadvance();
812
812
  i0.ɵɵproperty("ngIf", !date_r16.selectable);
813
813
  i0.ɵɵadvance();
@@ -876,9 +876,9 @@ function Calendar_div_3_ng_container_4_div_2_Template(rf, ctx) { if (rf & 1) {
876
876
  i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c21, i_r17 === 0 ? "visible" : "hidden"));
877
877
  i0.ɵɵattribute("aria-label", ctx_r1.prevIconAriaLabel);
878
878
  i0.ɵɵadvance();
879
- i0.ɵɵproperty("ngIf", !ctx_r1.previousicon);
879
+ i0.ɵɵproperty("ngIf", !ctx_r1.previousIconTemplate && !ctx_r1._previousIconTemplate);
880
880
  i0.ɵɵadvance();
881
- i0.ɵɵproperty("ngIf", ctx_r1.previousicon);
881
+ i0.ɵɵproperty("ngIf", ctx_r1.previousIconTemplate || !ctx_r1._previousIconTemplate);
882
882
  i0.ɵɵadvance(2);
883
883
  i0.ɵɵproperty("ngIf", ctx_r1.currentView === "date");
884
884
  i0.ɵɵadvance();
@@ -889,9 +889,9 @@ function Calendar_div_3_ng_container_4_div_2_Template(rf, ctx) { if (rf & 1) {
889
889
  i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(14, _c21, i_r17 === ctx_r1.months.length - 1 ? "visible" : "hidden"));
890
890
  i0.ɵɵattribute("aria-label", ctx_r1.nextIconAriaLabel);
891
891
  i0.ɵɵadvance();
892
- i0.ɵɵproperty("ngIf", !ctx_r1.decade);
892
+ i0.ɵɵproperty("ngIf", !ctx_r1.decadeTemplate && !ctx_r1._decadeTemplate);
893
893
  i0.ɵɵadvance();
894
- i0.ɵɵproperty("ngIf", ctx_r1.nexticon);
894
+ i0.ɵɵproperty("ngIf", ctx_r1.nextIconTemplate || !ctx_r1._nextIconTemplate);
895
895
  i0.ɵɵadvance();
896
896
  i0.ɵɵproperty("ngIf", ctx_r1.currentView === "date");
897
897
  } }
@@ -1025,7 +1025,7 @@ function Calendar_div_3_div_5_ng_container_23_Template(rf, ctx) { if (rf & 1) {
1025
1025
  } if (rf & 2) {
1026
1026
  const ctx_r1 = i0.ɵɵnextContext(3);
1027
1027
  i0.ɵɵadvance();
1028
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decrementicon);
1028
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decrementIconTemplate || ctx_r1._decrementIconTemplate);
1029
1029
  } }
1030
1030
  function Calendar_div_3_div_5_div_24_Template(rf, ctx) { if (rf & 1) {
1031
1031
  i0.ɵɵelementStart(0, "div", 61)(1, "span");
@@ -1074,9 +1074,9 @@ function Calendar_div_3_div_5_div_25_Template(rf, ctx) { if (rf & 1) {
1074
1074
  i0.ɵɵadvance();
1075
1075
  i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("nextSecond"));
1076
1076
  i0.ɵɵadvance();
1077
- i0.ɵɵproperty("ngIf", !ctx_r1.incrementicon);
1077
+ i0.ɵɵproperty("ngIf", !ctx_r1.incrementIconTemplate && !ctx_r1._incrementIconTemplate);
1078
1078
  i0.ɵɵadvance();
1079
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.incrementicon);
1079
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.incrementIconTemplate || ctx_r1._incrementIconTemplate);
1080
1080
  i0.ɵɵadvance(2);
1081
1081
  i0.ɵɵproperty("ngIf", ctx_r1.currentSecond < 10);
1082
1082
  i0.ɵɵadvance();
@@ -1084,9 +1084,9 @@ function Calendar_div_3_div_5_div_25_Template(rf, ctx) { if (rf & 1) {
1084
1084
  i0.ɵɵadvance();
1085
1085
  i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("prevSecond"));
1086
1086
  i0.ɵɵadvance();
1087
- i0.ɵɵproperty("ngIf", !ctx_r1.decrementicon);
1087
+ i0.ɵɵproperty("ngIf", !ctx_r1.decrementIconTemplate && !ctx_r1._decrementIconTemplate);
1088
1088
  i0.ɵɵadvance();
1089
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decrementicon);
1089
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decrementIconTemplate || ctx_r1._decrementIconTemplate);
1090
1090
  } }
1091
1091
  function Calendar_div_3_div_5_div_26_Template(rf, ctx) { if (rf & 1) {
1092
1092
  i0.ɵɵelementStart(0, "div", 61)(1, "span");
@@ -1129,17 +1129,17 @@ function Calendar_div_3_div_5_div_27_Template(rf, ctx) { if (rf & 1) {
1129
1129
  i0.ɵɵadvance();
1130
1130
  i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("am"));
1131
1131
  i0.ɵɵadvance();
1132
- i0.ɵɵproperty("ngIf", !ctx_r1.incrementicon);
1132
+ i0.ɵɵproperty("ngIf", !ctx_r1.incrementIconTemplate && !ctx_r1._incrementIconTemplate);
1133
1133
  i0.ɵɵadvance();
1134
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.incrementicon);
1134
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.incrementIconTemplate || ctx_r1._incrementIconTemplate);
1135
1135
  i0.ɵɵadvance(2);
1136
1136
  i0.ɵɵtextInterpolate(ctx_r1.pm ? "PM" : "AM");
1137
1137
  i0.ɵɵadvance();
1138
1138
  i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("pm"));
1139
1139
  i0.ɵɵadvance();
1140
- i0.ɵɵproperty("ngIf", !ctx_r1.decrementicon);
1140
+ i0.ɵɵproperty("ngIf", !ctx_r1.decrementIconTemplate && !ctx_r1._decrementIconTemplate);
1141
1141
  i0.ɵɵadvance();
1142
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decrementicon);
1142
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decrementIconTemplate || ctx_r1._decrementIconTemplate);
1143
1143
  } }
1144
1144
  function Calendar_div_3_div_5_Template(rf, ctx) { if (rf & 1) {
1145
1145
  const _r24 = i0.ɵɵgetCurrentView();
@@ -1177,9 +1177,9 @@ function Calendar_div_3_div_5_Template(rf, ctx) { if (rf & 1) {
1177
1177
  i0.ɵɵadvance(2);
1178
1178
  i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("nextHour"));
1179
1179
  i0.ɵɵadvance();
1180
- i0.ɵɵproperty("ngIf", !ctx_r1.incrementicon);
1180
+ i0.ɵɵproperty("ngIf", !ctx_r1.incrementIconTemplate && !ctx_r1._incrementIconTemplate);
1181
1181
  i0.ɵɵadvance();
1182
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.incrementicon);
1182
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.incrementIconTemplate || ctx_r1._incrementIconTemplate);
1183
1183
  i0.ɵɵadvance(2);
1184
1184
  i0.ɵɵproperty("ngIf", ctx_r1.currentHour < 10);
1185
1185
  i0.ɵɵadvance();
@@ -1187,17 +1187,17 @@ function Calendar_div_3_div_5_Template(rf, ctx) { if (rf & 1) {
1187
1187
  i0.ɵɵadvance();
1188
1188
  i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("prevHour"));
1189
1189
  i0.ɵɵadvance();
1190
- i0.ɵɵproperty("ngIf", !ctx_r1.decrementicon);
1190
+ i0.ɵɵproperty("ngIf", !ctx_r1.decrementIconTemplate && !ctx_r1._decrementIconTemplate);
1191
1191
  i0.ɵɵadvance();
1192
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decrementicon);
1192
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.decrementIconTemplate || ctx_r1._decrementIconTemplate);
1193
1193
  i0.ɵɵadvance(3);
1194
1194
  i0.ɵɵtextInterpolate(ctx_r1.timeSeparator);
1195
1195
  i0.ɵɵadvance(2);
1196
1196
  i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("nextMinute"));
1197
1197
  i0.ɵɵadvance();
1198
- i0.ɵɵproperty("ngIf", !ctx_r1.incrementicon);
1198
+ i0.ɵɵproperty("ngIf", !ctx_r1.incrementIconTemplate && !ctx_r1._incrementIconTemplate);
1199
1199
  i0.ɵɵadvance();
1200
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.incrementicon);
1200
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.incrementIconTemplate || ctx_r1._incrementIconTemplate);
1201
1201
  i0.ɵɵadvance(2);
1202
1202
  i0.ɵɵproperty("ngIf", ctx_r1.currentMinute < 10);
1203
1203
  i0.ɵɵadvance();
@@ -1205,9 +1205,9 @@ function Calendar_div_3_div_5_Template(rf, ctx) { if (rf & 1) {
1205
1205
  i0.ɵɵadvance();
1206
1206
  i0.ɵɵattribute("aria-label", ctx_r1.getTranslation("prevMinute"));
1207
1207
  i0.ɵɵadvance();
1208
- i0.ɵɵproperty("ngIf", !ctx_r1.decrementicon);
1208
+ i0.ɵɵproperty("ngIf", !ctx_r1.decrementIconTemplate && !ctx_r1._decrementIconTemplate);
1209
1209
  i0.ɵɵadvance();
1210
- i0.ɵɵproperty("ngIf", ctx_r1.decrementicon);
1210
+ i0.ɵɵproperty("ngIf", ctx_r1.decrementIconTemplate || ctx_r1._decrementIconTemplate);
1211
1211
  i0.ɵɵadvance();
1212
1212
  i0.ɵɵproperty("ngIf", ctx_r1.showSeconds);
1213
1213
  i0.ɵɵadvance();
@@ -1250,7 +1250,7 @@ function Calendar_div_3_Template(rf, ctx) { if (rf & 1) {
1250
1250
  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);
1251
1251
  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");
1252
1252
  i0.ɵɵadvance(3);
1253
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.header);
1253
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.headerTemplate || ctx_r1._headerTemplate);
1254
1254
  i0.ɵɵadvance();
1255
1255
  i0.ɵɵproperty("ngIf", !ctx_r1.timeOnly);
1256
1256
  i0.ɵɵadvance();
@@ -1258,7 +1258,7 @@ function Calendar_div_3_Template(rf, ctx) { if (rf & 1) {
1258
1258
  i0.ɵɵadvance();
1259
1259
  i0.ɵɵproperty("ngIf", ctx_r1.showButtonBar);
1260
1260
  i0.ɵɵadvance(2);
1261
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.footer);
1261
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.footerTemplate || ctx_r1._footerTemplate);
1262
1262
  } }
1263
1263
  const CALENDAR_VALUE_ACCESSOR = {
1264
1264
  provide: NG_VALUE_ACCESSOR,
@@ -1787,57 +1787,57 @@ class Calendar extends BaseComponent {
1787
1787
  * Custom template for header section.
1788
1788
  * @group Templates
1789
1789
  */
1790
- header;
1790
+ headerTemplate;
1791
1791
  /**
1792
1792
  * Custom template for footer section.
1793
1793
  * @group Templates
1794
1794
  */
1795
- footer;
1795
+ footerTemplate;
1796
1796
  /**
1797
1797
  * Custom template for disabled date cells.
1798
1798
  * @group Templates
1799
1799
  */
1800
- disabledDate;
1800
+ disabledDateTemplate;
1801
1801
  /**
1802
1802
  * Custom template for decade view.
1803
1803
  * @group Templates
1804
1804
  */
1805
- decade;
1805
+ decadeTemplate;
1806
1806
  /**
1807
1807
  * Custom template for previous month icon.
1808
1808
  * @group Templates
1809
1809
  */
1810
- previousicon;
1810
+ previousIconTemplate;
1811
1811
  /**
1812
1812
  * Custom template for next month icon.
1813
1813
  * @group Templates
1814
1814
  */
1815
- nexticon;
1815
+ nextIconTemplate;
1816
1816
  /**
1817
1817
  * Custom template for trigger icon.
1818
1818
  * @group Templates
1819
1819
  */
1820
- triggericon;
1820
+ triggerIconTemplate;
1821
1821
  /**
1822
1822
  * Custom template for clear icon.
1823
1823
  * @group Templates
1824
1824
  */
1825
- clearicon;
1825
+ clearIconTemplate;
1826
1826
  /**
1827
1827
  * Custom template for decrement icon.
1828
1828
  * @group Templates
1829
1829
  */
1830
- decrementicon;
1830
+ decrementIconTemplate;
1831
1831
  /**
1832
1832
  * Custom template for increment icon.
1833
1833
  * @group Templates
1834
1834
  */
1835
- incrementicon;
1835
+ incrementIconTemplate;
1836
1836
  /**
1837
1837
  * Custom template for input icon.
1838
1838
  * @group Templates
1839
1839
  */
1840
- inputicon;
1840
+ inputIconTemplate;
1841
1841
  containerViewChild;
1842
1842
  inputfieldViewChild;
1843
1843
  set content(content) {
@@ -1854,6 +1854,18 @@ class Calendar extends BaseComponent {
1854
1854
  }
1855
1855
  }
1856
1856
  }
1857
+ _dateTemplate;
1858
+ _headerTemplate;
1859
+ _footerTemplate;
1860
+ _disabledDateTemplate;
1861
+ _decadeTemplate;
1862
+ _previousIconTemplate;
1863
+ _nextIconTemplate;
1864
+ _triggerIconTemplate;
1865
+ _clearIconTemplate;
1866
+ _decrementIconTemplate;
1867
+ _incrementIconTemplate;
1868
+ _inputIconTemplate;
1857
1869
  _componentStyle = inject(CalendarStyle);
1858
1870
  contentViewChild;
1859
1871
  value;
@@ -1979,6 +1991,52 @@ class Calendar extends BaseComponent {
1979
1991
  }
1980
1992
  }
1981
1993
  }
1994
+ templates;
1995
+ ngAfterContentInit() {
1996
+ this.templates.forEach((item) => {
1997
+ switch (item.getType()) {
1998
+ case 'date':
1999
+ this._dateTemplate = item.template;
2000
+ break;
2001
+ case 'decade':
2002
+ this._decadeTemplate = item.template;
2003
+ break;
2004
+ case 'disabledDate':
2005
+ this._disabledDateTemplate = item.template;
2006
+ break;
2007
+ case 'header':
2008
+ this._headerTemplate = item.template;
2009
+ break;
2010
+ case 'inputicon':
2011
+ this._inputIconTemplate = item.template;
2012
+ break;
2013
+ case 'previousicon':
2014
+ this._previousIconTemplate = item.template;
2015
+ break;
2016
+ case 'nexticon':
2017
+ this._nextIconTemplate = item.template;
2018
+ break;
2019
+ case 'triggericon':
2020
+ this._triggerIconTemplate = item.template;
2021
+ break;
2022
+ case 'clearicon':
2023
+ this._clearIconTemplate = item.template;
2024
+ break;
2025
+ case 'decrementicon':
2026
+ this._decrementIconTemplate = item.template;
2027
+ break;
2028
+ case 'incrementicon':
2029
+ this._incrementIconTemplate = item.template;
2030
+ break;
2031
+ case 'footer':
2032
+ this._footerTemplate = item.template;
2033
+ break;
2034
+ default:
2035
+ this._dateTemplate = item.template;
2036
+ break;
2037
+ }
2038
+ });
2039
+ }
1982
2040
  getTranslation(option) {
1983
2041
  return this.config.getTranslation(option);
1984
2042
  }
@@ -3610,6 +3668,8 @@ class Calendar extends BaseComponent {
3610
3668
  if (!this.inline) {
3611
3669
  this.overlay = event.element;
3612
3670
  this.overlay?.setAttribute(this.attributeSelector, '');
3671
+ const styles = !this.inline ? { position: 'absolute', top: '0', left: '0' } : undefined;
3672
+ addStyle(this.overlay, styles);
3613
3673
  this.appendOverlay();
3614
3674
  this.updateFocus();
3615
3675
  if (this.autoZIndex) {
@@ -4202,32 +4262,34 @@ class Calendar extends BaseComponent {
4202
4262
  }
4203
4263
  static ɵfac = function Calendar_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || Calendar)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i1.OverlayService)); };
4204
4264
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Calendar, selectors: [["p-calendar"]], contentQueries: function Calendar_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
4205
- i0.ɵɵcontentQuery(dirIndex, _c0, 5);
4206
- i0.ɵɵcontentQuery(dirIndex, _c1, 5);
4207
- i0.ɵɵcontentQuery(dirIndex, _c2, 5);
4208
- i0.ɵɵcontentQuery(dirIndex, _c3, 5);
4209
- i0.ɵɵcontentQuery(dirIndex, _c4, 5);
4210
- i0.ɵɵcontentQuery(dirIndex, _c5, 5);
4211
- i0.ɵɵcontentQuery(dirIndex, _c6, 5);
4212
- i0.ɵɵcontentQuery(dirIndex, _c7, 5);
4213
- i0.ɵɵcontentQuery(dirIndex, _c8, 5);
4214
- i0.ɵɵcontentQuery(dirIndex, _c9, 5);
4215
- i0.ɵɵcontentQuery(dirIndex, _c10, 5);
4216
- i0.ɵɵcontentQuery(dirIndex, _c11, 5);
4265
+ i0.ɵɵcontentQuery(dirIndex, _c0, 4);
4266
+ i0.ɵɵcontentQuery(dirIndex, _c1, 4);
4267
+ i0.ɵɵcontentQuery(dirIndex, _c2, 4);
4268
+ i0.ɵɵcontentQuery(dirIndex, _c3, 4);
4269
+ i0.ɵɵcontentQuery(dirIndex, _c4, 4);
4270
+ i0.ɵɵcontentQuery(dirIndex, _c5, 4);
4271
+ i0.ɵɵcontentQuery(dirIndex, _c6, 4);
4272
+ i0.ɵɵcontentQuery(dirIndex, _c7, 4);
4273
+ i0.ɵɵcontentQuery(dirIndex, _c8, 4);
4274
+ i0.ɵɵcontentQuery(dirIndex, _c9, 4);
4275
+ i0.ɵɵcontentQuery(dirIndex, _c10, 4);
4276
+ i0.ɵɵcontentQuery(dirIndex, _c11, 4);
4277
+ i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);
4217
4278
  } if (rf & 2) {
4218
4279
  let _t;
4219
4280
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dateTemplate = _t.first);
4220
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.header = _t.first);
4221
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footer = _t.first);
4222
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.disabledDate = _t.first);
4223
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.decade = _t.first);
4224
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.previousicon = _t.first);
4225
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.nexticon = _t.first);
4226
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.triggericon = _t.first);
4227
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.clearicon = _t.first);
4228
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.decrementicon = _t.first);
4229
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.incrementicon = _t.first);
4230
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputicon = _t.first);
4281
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerTemplate = _t.first);
4282
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerTemplate = _t.first);
4283
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.disabledDateTemplate = _t.first);
4284
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.decadeTemplate = _t.first);
4285
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.previousIconTemplate = _t.first);
4286
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.nextIconTemplate = _t.first);
4287
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.triggerIconTemplate = _t.first);
4288
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.clearIconTemplate = _t.first);
4289
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.decrementIconTemplate = _t.first);
4290
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.incrementIconTemplate = _t.first);
4291
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.inputIconTemplate = _t.first);
4292
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
4231
4293
  } }, viewQuery: function Calendar_Query(rf, ctx) { if (rf & 1) {
4232
4294
  i0.ɵɵviewQuery(_c12, 5);
4233
4295
  i0.ɵɵviewQuery(_c13, 5);
@@ -4311,9 +4373,9 @@ class Calendar extends BaseComponent {
4311
4373
  [fluid]="hasFluid"
4312
4374
  />
4313
4375
  <ng-container *ngIf="showClear && !disabled && value != null">
4314
- <TimesIcon *ngIf="!clearicon" [class]="'p-datepicker-clear-icon'" (click)="clear()" />
4315
- <span *ngIf="clearicon" class="p-datepicker-clear-icon" (click)="clear()">
4316
- <ng-template *ngTemplateOutlet="clearicon"></ng-template>
4376
+ <TimesIcon *ngIf="!clearIconTemplate && !_clearIconTemplate" [class]="'p-datepicker-clear-icon'" (click)="clear()" />
4377
+ <span *ngIf="clearIconTemplate || _clearIconTemplate" class="p-datepicker-clear-icon" (click)="clear()">
4378
+ <ng-template *ngTemplateOutlet="clearIconTemplate || _clearIconTemplate"></ng-template>
4317
4379
  </span>
4318
4380
  </ng-container>
4319
4381
  <button
@@ -4330,21 +4392,21 @@ class Calendar extends BaseComponent {
4330
4392
  >
4331
4393
  <span *ngIf="icon" [ngClass]="icon"></span>
4332
4394
  <ng-container *ngIf="!icon">
4333
- <CalendarIcon *ngIf="!triggericon" />
4334
- <ng-template *ngTemplateOutlet="triggericon"></ng-template>
4395
+ <CalendarIcon *ngIf="!triggerIconTemplate && !_triggerIconTemplate" />
4396
+ <ng-template *ngTemplateOutlet="triggerIconTemplate || _triggerIconTemplate"></ng-template>
4335
4397
  </ng-container>
4336
4398
  </button>
4337
4399
  <ng-container *ngIf="iconDisplay === 'input' && showIcon">
4338
4400
  <span class="p-datepicker-input-icon-container">
4339
4401
  <CalendarIcon
4340
4402
  (click)="onButtonClick($event)"
4341
- *ngIf="!inputicon"
4403
+ *ngIf="!inputIconTemplate && !_inputIconTemplate"
4342
4404
  [ngClass]="{
4343
4405
  'p-datepicker-input-icon': showOnFocus
4344
4406
  }"
4345
4407
  />
4346
4408
 
4347
- <ng-container *ngTemplateOutlet="inputicon; context: { clickCallBack: onButtonClick.bind(this) }"></ng-container>
4409
+ <ng-container *ngTemplateOutlet="inputIconTemplate || _inputIconTemplate; context: { clickCallBack: onButtonClick.bind(this) }"></ng-container>
4348
4410
  </span>
4349
4411
  </ng-container>
4350
4412
  </ng-template>
@@ -4368,7 +4430,7 @@ class Calendar extends BaseComponent {
4368
4430
  *ngIf="inline || overlayVisible"
4369
4431
  >
4370
4432
  <ng-content select="p-header"></ng-content>
4371
- <ng-container *ngTemplateOutlet="header"></ng-container>
4433
+ <ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
4372
4434
  <ng-container *ngIf="!timeOnly">
4373
4435
  <div class="p-datepicker-calendar-container">
4374
4436
  <div class="p-datepicker-calendar" *ngFor="let month of months; let i = index">
@@ -4384,9 +4446,9 @@ class Calendar extends BaseComponent {
4384
4446
  type="button"
4385
4447
  [attr.aria-label]="prevIconAriaLabel"
4386
4448
  >
4387
- <ChevronLeftIcon *ngIf="!previousicon" />
4388
- <span *ngIf="previousicon">
4389
- <ng-template *ngTemplateOutlet="previousicon"></ng-template>
4449
+ <ChevronLeftIcon *ngIf="!previousIconTemplate && !_previousIconTemplate" />
4450
+ <span *ngIf="previousIconTemplate || !_previousIconTemplate">
4451
+ <ng-template *ngTemplateOutlet="previousIconTemplate || _previousIconTemplate"></ng-template>
4390
4452
  </span>
4391
4453
  </p-button>
4392
4454
  <div class="p-datepicker-title">
@@ -4415,8 +4477,8 @@ class Calendar extends BaseComponent {
4415
4477
  {{ getYear(month) }}
4416
4478
  </button>
4417
4479
  <span class="p-datepicker-decade" *ngIf="currentView === 'year'">
4418
- <ng-container *ngIf="!decade">{{ yearPickerValues()[0] }} - {{ yearPickerValues()[yearPickerValues().length - 1] }}</ng-container>
4419
- <ng-container *ngTemplateOutlet="decade; context: { $implicit: yearPickerValues }"></ng-container>
4480
+ <ng-container *ngIf="!decadeTemplate && _decadeTemplate">{{ yearPickerValues()[0] }} - {{ yearPickerValues()[yearPickerValues().length - 1] }}</ng-container>
4481
+ <ng-container *ngTemplateOutlet="decadeTemplate || _decadeTemplate; context: { $implicit: yearPickerValues }"></ng-container>
4420
4482
  </span>
4421
4483
  </div>
4422
4484
  <p-button
@@ -4429,10 +4491,10 @@ class Calendar extends BaseComponent {
4429
4491
  [ngStyle]="{ visibility: i === months.length - 1 ? 'visible' : 'hidden' }"
4430
4492
  [attr.aria-label]="nextIconAriaLabel"
4431
4493
  >
4432
- <ChevronRightIcon *ngIf="!decade" />
4494
+ <ChevronRightIcon *ngIf="!decadeTemplate && !_decadeTemplate" />
4433
4495
 
4434
- <span *ngIf="nexticon">
4435
- <ng-template *ngTemplateOutlet="nexticon"></ng-template>
4496
+ <span *ngIf="nextIconTemplate || !_nextIconTemplate">
4497
+ <ng-template *ngTemplateOutlet="nextIconTemplate || _nextIconTemplate"></ng-template>
4436
4498
  </span>
4437
4499
  </p-button>
4438
4500
  </div>
@@ -4472,12 +4534,12 @@ class Calendar extends BaseComponent {
4472
4534
  (keydown)="onDateCellKeydown($event, date, i)"
4473
4535
  pRipple
4474
4536
  >
4475
- <ng-container *ngIf="!disabledDate && (date.selectable || !disabledDate)">{{ date.day }}</ng-container>
4476
- <ng-container *ngIf="date.selectable || !disabledDate">
4477
- <ng-container *ngTemplateOutlet="dateTemplate; context: { $implicit: date }"></ng-container>
4537
+ <ng-container *ngIf="!dateTemplate && !_dateTemplate && (date.selectable || (!disabledDateTemplate && !_disabledDateTemplate))">{{ date.day }}</ng-container>
4538
+ <ng-container *ngIf="date.selectable || (!disabledDateTemplate && !_disabledDateTemplate)">
4539
+ <ng-container *ngTemplateOutlet="dateTemplate || _dateTemplate; context: { $implicit: date }"></ng-container>
4478
4540
  </ng-container>
4479
4541
  <ng-container *ngIf="!date.selectable">
4480
- <ng-container *ngTemplateOutlet="disabledDate; context: { $implicit: date }"></ng-container>
4542
+ <ng-container *ngTemplateOutlet="disabledDateTemplate || _disabledDateTemplate; context: { $implicit: date }"></ng-container>
4481
4543
  </ng-container>
4482
4544
  </span>
4483
4545
  <div *ngIf="isSelected(date)" class="p-hidden-accessible" aria-live="polite">
@@ -4544,9 +4606,9 @@ class Calendar extends BaseComponent {
4544
4606
  (mouseleave)="onTimePickerElementMouseLeave()"
4545
4607
  [attr.aria-label]="getTranslation('nextHour')"
4546
4608
  >
4547
- <ChevronUpIcon *ngIf="!incrementicon" />
4609
+ <ChevronUpIcon *ngIf="!incrementIconTemplate && !_incrementIconTemplate" />
4548
4610
 
4549
- <ng-template *ngTemplateOutlet="incrementicon"></ng-template>
4611
+ <ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
4550
4612
  </p-button>
4551
4613
  <span><ng-container *ngIf="currentHour < 10">0</ng-container>{{ currentHour }}</span>
4552
4614
  <p-button
@@ -4564,9 +4626,9 @@ class Calendar extends BaseComponent {
4564
4626
  (mouseleave)="onTimePickerElementMouseLeave()"
4565
4627
  [attr.aria-label]="getTranslation('prevHour')"
4566
4628
  >
4567
- <ChevronDownIcon *ngIf="!decrementicon" />
4629
+ <ChevronDownIcon *ngIf="!decrementIconTemplate && !_decrementIconTemplate" />
4568
4630
 
4569
- <ng-template *ngTemplateOutlet="decrementicon"></ng-template>
4631
+ <ng-template *ngTemplateOutlet="decrementIconTemplate || _decrementIconTemplate"></ng-template>
4570
4632
  </p-button>
4571
4633
  </div>
4572
4634
  <div class="p-datepicker-separator">
@@ -4588,9 +4650,9 @@ class Calendar extends BaseComponent {
4588
4650
  (mouseleave)="onTimePickerElementMouseLeave()"
4589
4651
  [attr.aria-label]="getTranslation('nextMinute')"
4590
4652
  >
4591
- <ChevronUpIcon *ngIf="!incrementicon" />
4653
+ <ChevronUpIcon *ngIf="!incrementIconTemplate && !_incrementIconTemplate" />
4592
4654
 
4593
- <ng-template *ngTemplateOutlet="incrementicon"></ng-template>
4655
+ <ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
4594
4656
  </p-button>
4595
4657
  <span><ng-container *ngIf="currentMinute < 10">0</ng-container>{{ currentMinute }}</span>
4596
4658
  <p-button
@@ -4608,9 +4670,9 @@ class Calendar extends BaseComponent {
4608
4670
  (mouseleave)="onTimePickerElementMouseLeave()"
4609
4671
  [attr.aria-label]="getTranslation('prevMinute')"
4610
4672
  >
4611
- <ChevronDownIcon *ngIf="!decrementicon" />
4612
- <ng-container *ngIf="decrementicon">
4613
- <ng-template *ngTemplateOutlet="decrementicon"></ng-template>
4673
+ <ChevronDownIcon *ngIf="!decrementIconTemplate && !_decrementIconTemplate" />
4674
+ <ng-container *ngIf="decrementIconTemplate || _decrementIconTemplate">
4675
+ <ng-template *ngTemplateOutlet="decrementIconTemplate || _decrementIconTemplate"></ng-template>
4614
4676
  </ng-container>
4615
4677
  </p-button>
4616
4678
  </div>
@@ -4633,9 +4695,9 @@ class Calendar extends BaseComponent {
4633
4695
  (mouseleave)="onTimePickerElementMouseLeave()"
4634
4696
  [attr.aria-label]="getTranslation('nextSecond')"
4635
4697
  >
4636
- <ChevronUpIcon *ngIf="!incrementicon" />
4698
+ <ChevronUpIcon *ngIf="!incrementIconTemplate && !_incrementIconTemplate" />
4637
4699
 
4638
- <ng-template *ngTemplateOutlet="incrementicon"></ng-template>
4700
+ <ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
4639
4701
  </p-button>
4640
4702
  <span><ng-container *ngIf="currentSecond < 10">0</ng-container>{{ currentSecond }}</span>
4641
4703
  <p-button
@@ -4653,9 +4715,9 @@ class Calendar extends BaseComponent {
4653
4715
  (mouseleave)="onTimePickerElementMouseLeave()"
4654
4716
  [attr.aria-label]="getTranslation('prevSecond')"
4655
4717
  >
4656
- <ChevronDownIcon *ngIf="!decrementicon" />
4718
+ <ChevronDownIcon *ngIf="!decrementIconTemplate && !_decrementIconTemplate" />
4657
4719
 
4658
- <ng-template *ngTemplateOutlet="decrementicon"></ng-template>
4720
+ <ng-template *ngTemplateOutlet="decrementIconTemplate || _decrementIconTemplate"></ng-template>
4659
4721
  </p-button>
4660
4722
  </div>
4661
4723
  <div class="p-datepicker-separator" *ngIf="hourFormat == '12'">
@@ -4672,8 +4734,8 @@ class Calendar extends BaseComponent {
4672
4734
  (keydown.enter)="toggleAMPM($event)"
4673
4735
  [attr.aria-label]="getTranslation('am')"
4674
4736
  >
4675
- <ChevronUpIcon *ngIf="!incrementicon" />
4676
- <ng-template *ngTemplateOutlet="incrementicon"></ng-template>
4737
+ <ChevronUpIcon *ngIf="!incrementIconTemplate && !_incrementIconTemplate" />
4738
+ <ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
4677
4739
  </p-button>
4678
4740
  <span>{{ pm ? 'PM' : 'AM' }}</span>
4679
4741
  <p-button
@@ -4686,8 +4748,8 @@ class Calendar extends BaseComponent {
4686
4748
  (keydown.enter)="toggleAMPM($event)"
4687
4749
  [attr.aria-label]="getTranslation('pm')"
4688
4750
  >
4689
- <ChevronDownIcon *ngIf="!decrementicon" />
4690
- <ng-template *ngTemplateOutlet="decrementicon"></ng-template>
4751
+ <ChevronDownIcon *ngIf="!decrementIconTemplate && !_decrementIconTemplate" />
4752
+ <ng-template *ngTemplateOutlet="decrementIconTemplate || _decrementIconTemplate"></ng-template>
4691
4753
  </p-button>
4692
4754
  </div>
4693
4755
  </div>
@@ -4696,7 +4758,7 @@ class Calendar extends BaseComponent {
4696
4758
  <p-button size="small" styleClass="p-datepicker-clear-button" [label]="getTranslation('clear')" (keydown)="onContainerButtonKeydown($event)" (onClick)="onClearButtonClick($event)" [ngClass]="[clearButtonStyleClass]" />
4697
4759
  </div>
4698
4760
  <ng-content select="p-footer"></ng-content>
4699
- <ng-container *ngTemplateOutlet="footer"></ng-container>
4761
+ <ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
4700
4762
  </div>
4701
4763
  </span>
4702
4764
  `,
@@ -4913,40 +4975,40 @@ class Calendar extends BaseComponent {
4913
4975
  type: Output
4914
4976
  }], dateTemplate: [{
4915
4977
  type: ContentChild,
4916
- args: ['date']
4917
- }], header: [{
4978
+ args: ['date', { descendants: false }]
4979
+ }], headerTemplate: [{
4918
4980
  type: ContentChild,
4919
- args: ['header']
4920
- }], footer: [{
4981
+ args: ['header', { descendants: false }]
4982
+ }], footerTemplate: [{
4921
4983
  type: ContentChild,
4922
- args: ['footer']
4923
- }], disabledDate: [{
4984
+ args: ['footer', { descendants: false }]
4985
+ }], disabledDateTemplate: [{
4924
4986
  type: ContentChild,
4925
- args: ['disabledDate']
4926
- }], decade: [{
4987
+ args: ['disabledDate', { descendants: false }]
4988
+ }], decadeTemplate: [{
4927
4989
  type: ContentChild,
4928
- args: ['decade']
4929
- }], previousicon: [{
4990
+ args: ['decade', { descendants: false }]
4991
+ }], previousIconTemplate: [{
4930
4992
  type: ContentChild,
4931
- args: ['previousicon']
4932
- }], nexticon: [{
4993
+ args: ['previousicon', { descendants: false }]
4994
+ }], nextIconTemplate: [{
4933
4995
  type: ContentChild,
4934
- args: ['nexticon']
4935
- }], triggericon: [{
4996
+ args: ['nexticon', { descendants: false }]
4997
+ }], triggerIconTemplate: [{
4936
4998
  type: ContentChild,
4937
- args: ['triggericon']
4938
- }], clearicon: [{
4999
+ args: ['triggericon', { descendants: false }]
5000
+ }], clearIconTemplate: [{
4939
5001
  type: ContentChild,
4940
- args: ['clearicon']
4941
- }], decrementicon: [{
5002
+ args: ['clearicon', { descendants: false }]
5003
+ }], decrementIconTemplate: [{
4942
5004
  type: ContentChild,
4943
- args: ['decrementicon']
4944
- }], incrementicon: [{
5005
+ args: ['decrementicon', { descendants: false }]
5006
+ }], incrementIconTemplate: [{
4945
5007
  type: ContentChild,
4946
- args: ['incrementicon']
4947
- }], inputicon: [{
5008
+ args: ['incrementicon', { descendants: false }]
5009
+ }], inputIconTemplate: [{
4948
5010
  type: ContentChild,
4949
- args: ['inputicon']
5011
+ args: ['inputicon', { descendants: false }]
4950
5012
  }], containerViewChild: [{
4951
5013
  type: ViewChild,
4952
5014
  args: ['container', { static: false }]
@@ -4956,8 +5018,11 @@ class Calendar extends BaseComponent {
4956
5018
  }], content: [{
4957
5019
  type: ViewChild,
4958
5020
  args: ['contentWrapper', { static: false }]
5021
+ }], templates: [{
5022
+ type: ContentChildren,
5023
+ args: [PrimeTemplate]
4959
5024
  }] }); })();
4960
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Calendar, { className: "Calendar", filePath: "calendar.ts", lineNumber: 524 }); })();
5025
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Calendar, { className: "Calendar", filePath: "calendar.ts", lineNumber: 528 }); })();
4961
5026
  class CalendarModule {
4962
5027
  static ɵfac = function CalendarModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CalendarModule)(); };
4963
5028
  static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CalendarModule });