@exhaustive-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.11

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 (188) hide show
  1. package/README.md +22 -4
  2. package/fesm2022/exhaustive-ui-core-accordion.mjs +6 -0
  3. package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
  4. package/fesm2022/exhaustive-ui-core-api.mjs +7 -5
  5. package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
  6. package/fesm2022/exhaustive-ui-core-autocomplete.mjs +24 -13
  7. package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
  8. package/fesm2022/exhaustive-ui-core-autofocus.mjs +4 -4
  9. package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
  10. package/fesm2022/exhaustive-ui-core-basecomponent.mjs +12 -2
  11. package/fesm2022/exhaustive-ui-core-basecomponent.mjs.map +1 -1
  12. package/fesm2022/exhaustive-ui-core-blockui.mjs +7 -0
  13. package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
  14. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +13 -6
  15. package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
  16. package/fesm2022/exhaustive-ui-core-button.mjs +30 -8
  17. package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
  18. package/fesm2022/exhaustive-ui-core-card.mjs +0 -4
  19. package/fesm2022/exhaustive-ui-core-card.mjs.map +1 -1
  20. package/fesm2022/exhaustive-ui-core-carousel.mjs +7 -2
  21. package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
  22. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +7 -7
  23. package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
  24. package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
  25. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +64 -25
  26. package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
  27. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +26 -3
  28. package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
  29. package/fesm2022/exhaustive-ui-core-contextmenu.mjs +14 -7
  30. package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
  31. package/fesm2022/exhaustive-ui-core-datepicker.mjs +172 -93
  32. package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
  33. package/fesm2022/exhaustive-ui-core-dialog.mjs +29 -11
  34. package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
  35. package/fesm2022/exhaustive-ui-core-dom.mjs +3 -1
  36. package/fesm2022/exhaustive-ui-core-dom.mjs.map +1 -1
  37. package/fesm2022/exhaustive-ui-core-drawer.mjs +22 -4
  38. package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
  39. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +9 -5
  40. package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
  41. package/fesm2022/exhaustive-ui-core-fieldset.mjs +2 -2
  42. package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
  43. package/fesm2022/exhaustive-ui-core-fileupload.mjs +24 -13
  44. package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
  45. package/fesm2022/exhaustive-ui-core-focustrap.mjs +0 -2
  46. package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
  47. package/fesm2022/exhaustive-ui-core-iconfield.mjs +16 -1
  48. package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
  49. package/fesm2022/exhaustive-ui-core-image.mjs +10 -2
  50. package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
  51. package/fesm2022/exhaustive-ui-core-inplace.mjs +1 -1
  52. package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
  53. package/fesm2022/exhaustive-ui-core-inputgroup.mjs +9 -0
  54. package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
  55. package/fesm2022/exhaustive-ui-core-inputmask.mjs +29 -5
  56. package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
  57. package/fesm2022/exhaustive-ui-core-inputnumber.mjs +83 -23
  58. package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
  59. package/fesm2022/exhaustive-ui-core-inputotp.mjs +15 -3
  60. package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
  61. package/fesm2022/exhaustive-ui-core-inputtext.mjs +6 -5
  62. package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
  63. package/fesm2022/exhaustive-ui-core-keyfilter.mjs +27 -17
  64. package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
  65. package/fesm2022/exhaustive-ui-core-listbox.mjs +15 -4
  66. package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
  67. package/fesm2022/exhaustive-ui-core-megamenu.mjs +1 -0
  68. package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
  69. package/fesm2022/exhaustive-ui-core-menu.mjs +19 -8
  70. package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
  71. package/fesm2022/exhaustive-ui-core-menubar.mjs +57 -13
  72. package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
  73. package/fesm2022/exhaustive-ui-core-metergroup.mjs +5 -5
  74. package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
  75. package/fesm2022/exhaustive-ui-core-multiselect.mjs +38 -25
  76. package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
  77. package/fesm2022/exhaustive-ui-core-orderlist.mjs +17 -4
  78. package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
  79. package/fesm2022/exhaustive-ui-core-overlay.mjs +4 -0
  80. package/fesm2022/exhaustive-ui-core-overlay.mjs.map +1 -1
  81. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +2 -2
  82. package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
  83. package/fesm2022/exhaustive-ui-core-paginator.mjs +12 -5
  84. package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
  85. package/fesm2022/exhaustive-ui-core-panel.mjs +7 -9
  86. package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
  87. package/fesm2022/exhaustive-ui-core-panelmenu.mjs +38 -12
  88. package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
  89. package/fesm2022/exhaustive-ui-core-password.mjs +90 -22
  90. package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
  91. package/fesm2022/exhaustive-ui-core-picklist.mjs +17 -10
  92. package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
  93. package/fesm2022/exhaustive-ui-core-popover.mjs +26 -7
  94. package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
  95. package/fesm2022/exhaustive-ui-core-progressbar.mjs +3 -3
  96. package/fesm2022/exhaustive-ui-core-progressbar.mjs.map +1 -1
  97. package/fesm2022/exhaustive-ui-core-radiobutton.mjs +6 -1
  98. package/fesm2022/exhaustive-ui-core-radiobutton.mjs.map +1 -1
  99. package/fesm2022/exhaustive-ui-core-scroller.mjs +13 -3
  100. package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
  101. package/fesm2022/exhaustive-ui-core-scrolltop.mjs +10 -2
  102. package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
  103. package/fesm2022/exhaustive-ui-core-select.mjs +66 -27
  104. package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
  105. package/fesm2022/exhaustive-ui-core-selectbutton.mjs +12 -6
  106. package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
  107. package/fesm2022/exhaustive-ui-core-slider.mjs +17 -4
  108. package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
  109. package/fesm2022/exhaustive-ui-core-splitbutton.mjs +8 -4
  110. package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
  111. package/fesm2022/exhaustive-ui-core-splitter.mjs +27 -6
  112. package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
  113. package/fesm2022/exhaustive-ui-core-stepper.mjs +8 -4
  114. package/fesm2022/exhaustive-ui-core-stepper.mjs.map +1 -1
  115. package/fesm2022/exhaustive-ui-core-table.mjs +338 -167
  116. package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
  117. package/fesm2022/exhaustive-ui-core-tabs.mjs +44 -8
  118. package/fesm2022/exhaustive-ui-core-tabs.mjs.map +1 -1
  119. package/fesm2022/exhaustive-ui-core-textarea.mjs +9 -1
  120. package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
  121. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +28 -13
  122. package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
  123. package/fesm2022/exhaustive-ui-core-toast.mjs +15 -1
  124. package/fesm2022/exhaustive-ui-core-toast.mjs.map +1 -1
  125. package/fesm2022/exhaustive-ui-core-togglebutton.mjs +9 -2
  126. package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
  127. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +0 -2
  128. package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
  129. package/fesm2022/exhaustive-ui-core-tooltip.mjs +5 -1
  130. package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
  131. package/fesm2022/exhaustive-ui-core-tree.mjs +28 -9
  132. package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
  133. package/fesm2022/exhaustive-ui-core-treeselect.mjs +51 -4
  134. package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
  135. package/fesm2022/exhaustive-ui-core-treetable.mjs +80 -8
  136. package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
  137. package/fesm2022/exhaustive-ui-core-utils.mjs +2 -1
  138. package/fesm2022/exhaustive-ui-core-utils.mjs.map +1 -1
  139. package/package.json +5 -5
  140. package/schematics/migrations/remove-dead-inputs/migration.js +5 -4
  141. package/schematics/migrations/remove-dead-outputs/migration.js +6 -5
  142. package/schematics/utils/versions.json +8 -8
  143. package/types/exhaustive-ui-core-api.d.ts +4 -0
  144. package/types/exhaustive-ui-core-autocomplete.d.ts +2 -0
  145. package/types/exhaustive-ui-core-autofocus.d.ts +1 -1
  146. package/types/exhaustive-ui-core-basecomponent.d.ts +1 -0
  147. package/types/exhaustive-ui-core-breadcrumb.d.ts +7 -1
  148. package/types/exhaustive-ui-core-button.d.ts +12 -1
  149. package/types/exhaustive-ui-core-cascadeselect.d.ts +1 -1
  150. package/types/exhaustive-ui-core-chart.d.ts +2 -2
  151. package/types/exhaustive-ui-core-confirmdialog.d.ts +17 -5
  152. package/types/exhaustive-ui-core-confirmpopup.d.ts +4 -0
  153. package/types/exhaustive-ui-core-datepicker.d.ts +9 -2
  154. package/types/exhaustive-ui-core-dialog.d.ts +2 -0
  155. package/types/exhaustive-ui-core-drawer.d.ts +1 -0
  156. package/types/exhaustive-ui-core-dynamicdialog.d.ts +2 -2
  157. package/types/exhaustive-ui-core-fileupload.d.ts +4 -0
  158. package/types/exhaustive-ui-core-iconfield.d.ts +1 -2
  159. package/types/exhaustive-ui-core-image.d.ts +6 -1
  160. package/types/exhaustive-ui-core-inputnumber.d.ts +8 -0
  161. package/types/exhaustive-ui-core-keyfilter.d.ts +1 -0
  162. package/types/exhaustive-ui-core-megamenu.d.ts +1 -0
  163. package/types/exhaustive-ui-core-menu.d.ts +2 -0
  164. package/types/exhaustive-ui-core-menubar.d.ts +5 -0
  165. package/types/exhaustive-ui-core-metergroup.d.ts +1 -1
  166. package/types/exhaustive-ui-core-multiselect.d.ts +1 -1
  167. package/types/exhaustive-ui-core-orderlist.d.ts +11 -1
  168. package/types/exhaustive-ui-core-paginator.d.ts +1 -0
  169. package/types/exhaustive-ui-core-panelmenu.d.ts +5 -0
  170. package/types/exhaustive-ui-core-password.d.ts +9 -1
  171. package/types/exhaustive-ui-core-picklist.d.ts +3 -3
  172. package/types/exhaustive-ui-core-popover.d.ts +3 -0
  173. package/types/exhaustive-ui-core-select.d.ts +4 -1
  174. package/types/exhaustive-ui-core-selectbutton.d.ts +3 -0
  175. package/types/exhaustive-ui-core-splitbutton.d.ts +2 -1
  176. package/types/exhaustive-ui-core-splitter.d.ts +7 -1
  177. package/types/exhaustive-ui-core-stepper.d.ts +3 -2
  178. package/types/exhaustive-ui-core-table.d.ts +16 -3
  179. package/types/exhaustive-ui-core-tabs.d.ts +4 -0
  180. package/types/exhaustive-ui-core-tieredmenu.d.ts +2 -0
  181. package/types/exhaustive-ui-core-togglebutton.d.ts +1 -0
  182. package/types/exhaustive-ui-core-tree.d.ts +2 -0
  183. package/types/exhaustive-ui-core-treeselect.d.ts +12 -1
  184. package/types/exhaustive-ui-core-treetable.d.ts +22 -2
  185. package/types/exhaustive-ui-core-types-chart.d.ts +21 -1
  186. package/types/exhaustive-ui-core-types-confirmdialog.d.ts +1 -3
  187. package/types/exhaustive-ui-core-types-table.d.ts +1 -1
  188. package/types/exhaustive-ui-core-types-treetable.d.ts +2 -2
@@ -29,6 +29,10 @@ ${style$1}
29
29
  .p-datepicker.ng-invalid.ng-dirty .p-inputtext {
30
30
  border-color: dt('inputtext.invalid.border.color');
31
31
  }
32
+
33
+ .p-datepicker.ng-invalid.ng-dirty .p-inputtext::placeholder {
34
+ color: dt('inputtext.invalid.placeholder.color');
35
+ }
32
36
  `;
33
37
  const inlineStyles = {
34
38
  root: () => ({ position: 'relative' })
@@ -359,6 +363,12 @@ class DatePicker extends BaseInput {
359
363
  */
360
364
  ariaLabel = input(/* @ts-ignore */
361
365
  ...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
366
+ /**
367
+ * Establishes relationships between the input and the element(s) that describe it, as one or more element IDs.
368
+ * @group Props
369
+ */
370
+ ariaDescribedBy = input(/* @ts-ignore */
371
+ ...(ngDevMode ? [undefined, { debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []));
362
372
  /**
363
373
  * Defines a string that labels the icon button for accessibility.
364
374
  * @group Props
@@ -424,8 +434,7 @@ class DatePicker extends BaseInput {
424
434
  * Specifies 12 or 24 hour format.
425
435
  * @group Props
426
436
  */
427
- hourFormat = input('24', /* @ts-ignore */
428
- ...(ngDevMode ? [{ debugName: "hourFormat" }] : /* istanbul ignore next */ []));
437
+ hourFormat = input('24', { ...(ngDevMode ? { debugName: "hourFormat" } : /* istanbul ignore next */ {}), transform: (value) => String(value) });
429
438
  /**
430
439
  * Whether to display timepicker only.
431
440
  * @group Props
@@ -1030,14 +1039,13 @@ class DatePicker extends BaseInput {
1030
1039
  this.currentMonth.set(date.getMonth());
1031
1040
  this.currentYear.set(date.getFullYear());
1032
1041
  this.yearOptions.set([]);
1033
- if (this.view() === 'date') {
1034
- this.createWeekDays();
1035
- this.initTime(date);
1036
- this.createMonths(this.currentMonth(), this.currentYear());
1037
- this.ticksTo1970.set(((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) + Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000);
1038
- }
1042
+ this.createWeekDays();
1043
+ this.initTime(date);
1044
+ this.createMonths(this.currentMonth(), this.currentYear());
1045
+ this.ticksTo1970.set(((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) + Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000);
1039
1046
  this.translationSubscription.set(this.config.translationObserver.subscribe(() => {
1040
1047
  this.createWeekDays();
1048
+ this.createMonths(this.currentMonth(), this.currentYear());
1041
1049
  this.cd.markForCheck();
1042
1050
  }));
1043
1051
  }
@@ -1167,7 +1175,9 @@ class DatePicker extends BaseInput {
1167
1175
  }
1168
1176
  }
1169
1177
  if (this.showWeek()) {
1170
- weekNumbers.push(this.getWeekNumber(new Date(week[0].year, week[0].month, week[0].day)));
1178
+ // an ISO week is the one of its Thursday, so number the row by the Thursday it contains
1179
+ let weekDay = this.startWeekFromFirstDayOfYear() ? week[0] : week[(11 - +this.getFirstDateOfWeek()) % 7];
1180
+ weekNumbers.push(this.getWeekNumber(new Date(weekDay.year, weekDay.month, weekDay.day)));
1171
1181
  }
1172
1182
  dates.push(week);
1173
1183
  }
@@ -1219,6 +1229,7 @@ class DatePicker extends BaseInput {
1219
1229
  }
1220
1230
  this.onMonthChange.emit({ month: this.currentMonth() + 1, year: this.currentYear() });
1221
1231
  this.createMonths(this.currentMonth(), this.currentYear());
1232
+ this.realignOverlay();
1222
1233
  }
1223
1234
  }
1224
1235
  navForward(event) {
@@ -1249,6 +1260,7 @@ class DatePicker extends BaseInput {
1249
1260
  }
1250
1261
  this.onMonthChange.emit({ month: this.currentMonth() + 1, year: this.currentYear() });
1251
1262
  this.createMonths(this.currentMonth(), this.currentYear());
1263
+ this.realignOverlay();
1252
1264
  }
1253
1265
  }
1254
1266
  decrementYear() {
@@ -1398,7 +1410,7 @@ class DatePicker extends BaseInput {
1398
1410
  return new Date(dateMeta.year, dateMeta.month, dateMeta.day);
1399
1411
  }
1400
1412
  formatDateKey(date) {
1401
- return `${date.getFullYear()}-${date.getMonth()}-${date.getDate()}`;
1413
+ return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`;
1402
1414
  }
1403
1415
  setCurrentHourPM(hours) {
1404
1416
  if (this.hourFormat() == '12') {
@@ -1490,6 +1502,10 @@ class DatePicker extends BaseInput {
1490
1502
  this.onModelChange(stringArrValue);
1491
1503
  }
1492
1504
  }
1505
+ if (this.inline()) {
1506
+ // An inline datepicker has no input to blur, so a user change is what marks it touched
1507
+ this.onModelTouched();
1508
+ }
1493
1509
  }
1494
1510
  getFirstDayOfMonthIndex(month, year) {
1495
1511
  let day = new Date();
@@ -1601,8 +1617,12 @@ class DatePicker extends BaseInput {
1601
1617
  }
1602
1618
  isYearSelected(year) {
1603
1619
  if (this.isComparable()) {
1620
+ if (this.isRangeSelection() && this.value()[1]) {
1621
+ // like isMonthSelected, a complete range highlights every year it spans
1622
+ return this.value()[0]?.getFullYear() <= year && year <= this.value()[1].getFullYear();
1623
+ }
1604
1624
  let value = this.isRangeSelection() ? this.value()[0] : this.value();
1605
- return !this.isMultipleSelection() ? value.getFullYear() === year : false;
1625
+ return !this.isMultipleSelection() ? value?.getFullYear() === year : false;
1606
1626
  }
1607
1627
  return false;
1608
1628
  }
@@ -1874,9 +1894,13 @@ class DatePicker extends BaseInput {
1874
1894
  case 37: {
1875
1895
  cellContent.tabIndex = '-1';
1876
1896
  let prevCell = cell.previousElementSibling;
1897
+ if (!prevCell || hasClass(prevCell, 'p-datepicker-weeknumber')) {
1898
+ // first day of the week row: the previous day ends the previous row
1899
+ prevCell = cell.parentElement.previousElementSibling?.lastElementChild;
1900
+ }
1877
1901
  if (prevCell) {
1878
1902
  let focusCell = prevCell.children[0];
1879
- if (hasClass(focusCell, 'p-disabled') || hasClass(focusCell.parentElement, 'p-datepicker-weeknumber')) {
1903
+ if (!focusCell || hasClass(focusCell, 'p-disabled') || hasClass(focusCell.parentElement, 'p-datepicker-weeknumber')) {
1880
1904
  this.navigateToMonth(true, groupIndex);
1881
1905
  }
1882
1906
  else {
@@ -1894,9 +1918,14 @@ class DatePicker extends BaseInput {
1894
1918
  case 39: {
1895
1919
  cellContent.tabIndex = '-1';
1896
1920
  let nextCell = cell.nextElementSibling;
1921
+ if (!nextCell) {
1922
+ // last day of the week row: the next day starts the next row
1923
+ const nextRow = cell.parentElement.nextElementSibling;
1924
+ nextCell = nextRow && Array.from(nextRow.children).find((rowCell) => !hasClass(rowCell, 'p-datepicker-weeknumber'));
1925
+ }
1897
1926
  if (nextCell) {
1898
1927
  let focusCell = nextCell.children[0];
1899
- if (hasClass(focusCell, 'p-disabled')) {
1928
+ if (!focusCell || hasClass(focusCell, 'p-disabled')) {
1900
1929
  this.navigateToMonth(false, groupIndex);
1901
1930
  }
1902
1931
  else {
@@ -1932,48 +1961,47 @@ class DatePicker extends BaseInput {
1932
1961
  }
1933
1962
  break;
1934
1963
  }
1935
- // page up
1964
+ // page up (shift: previous year)
1936
1965
  case 33: {
1937
1966
  cellContent.tabIndex = '-1';
1938
- const dateToFocus = new Date(currentDate.getFullYear(), currentDate.getMonth() - 1, currentDate.getDate());
1939
- const focusKey = this.formatDateKey(dateToFocus);
1940
- this.navigateToMonth(true, groupIndex, `span[data-date='${focusKey}']:not(.p-disabled):not(.p-ink)`);
1967
+ const dateToFocus = event.shiftKey ? new Date(currentDate.getFullYear() - 1, currentDate.getMonth(), currentDate.getDate()) : new Date(currentDate.getFullYear(), currentDate.getMonth() - 1, currentDate.getDate());
1968
+ const focusKey = `span[data-date='${this.formatDateKey(dateToFocus)}']:not(.p-disabled):not(.p-ink)`;
1969
+ if (event.shiftKey)
1970
+ this.navigateToYear(true, focusKey);
1971
+ else
1972
+ this.navigateToMonth(true, groupIndex, focusKey);
1941
1973
  event.preventDefault();
1942
1974
  break;
1943
1975
  }
1944
- // page down
1976
+ // page down (shift: next year)
1945
1977
  case 34: {
1946
1978
  cellContent.tabIndex = '-1';
1947
- const dateToFocus = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, currentDate.getDate());
1948
- const focusKey = this.formatDateKey(dateToFocus);
1949
- this.navigateToMonth(false, groupIndex, `span[data-date='${focusKey}']:not(.p-disabled):not(.p-ink)`);
1979
+ const dateToFocus = event.shiftKey ? new Date(currentDate.getFullYear() + 1, currentDate.getMonth(), currentDate.getDate()) : new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, currentDate.getDate());
1980
+ const focusKey = `span[data-date='${this.formatDateKey(dateToFocus)}']:not(.p-disabled):not(.p-ink)`;
1981
+ if (event.shiftKey)
1982
+ this.navigateToYear(false, focusKey);
1983
+ else
1984
+ this.navigateToMonth(false, groupIndex, focusKey);
1950
1985
  event.preventDefault();
1951
1986
  break;
1952
1987
  }
1953
- //home
1988
+ //home: first day of the week row
1989
+ //end: last day of the week row
1954
1990
  case 36:
1955
- cellContent.tabIndex = '-1';
1956
- const firstDayDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1);
1957
- const firstDayDateKey = this.formatDateKey(firstDayDate);
1958
- const firstDayCell = findSingle(cellContent.offsetParent, `span[data-date='${firstDayDateKey}']:not(.p-disabled):not(.p-ink)`);
1959
- if (firstDayCell) {
1960
- firstDayCell.tabIndex = '0';
1961
- firstDayCell.focus();
1962
- }
1963
- event.preventDefault();
1964
- break;
1965
- //end
1966
- case 35:
1967
- cellContent.tabIndex = '-1';
1968
- const lastDayDate = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 0);
1969
- const lastDayDateKey = this.formatDateKey(lastDayDate);
1970
- const lastDayCell = findSingle(cellContent.offsetParent, `span[data-date='${lastDayDateKey}']:not(.p-disabled):not(.p-ink)`);
1971
- if (lastDayDate) {
1972
- lastDayCell.tabIndex = '0';
1973
- lastDayCell.focus();
1991
+ case 35: {
1992
+ const weekDayCells = Array.from(cell.parentElement.children)
1993
+ .filter((rowCell) => !hasClass(rowCell, 'p-datepicker-weeknumber'))
1994
+ .map((rowCell) => rowCell.children[0])
1995
+ .filter((dayCell) => dayCell && !hasClass(dayCell, 'p-disabled'));
1996
+ const focusCell = event.which === 36 ? weekDayCells[0] : weekDayCells[weekDayCells.length - 1];
1997
+ if (focusCell) {
1998
+ cellContent.tabIndex = '-1';
1999
+ focusCell.tabIndex = '0';
2000
+ focusCell.focus();
1974
2001
  }
1975
2002
  event.preventDefault();
1976
2003
  break;
2004
+ }
1977
2005
  default:
1978
2006
  //no op
1979
2007
  break;
@@ -2034,6 +2062,19 @@ class DatePicker extends BaseInput {
2034
2062
  event.preventDefault();
2035
2063
  break;
2036
2064
  }
2065
+ //page up: previous year
2066
+ //page down: next year
2067
+ case 33:
2068
+ case 34: {
2069
+ cell.tabIndex = '-1';
2070
+ this.navigationState.set({ backward: event.which === 33 });
2071
+ if (event.which === 33)
2072
+ this.navBackward(event);
2073
+ else
2074
+ this.navForward(event);
2075
+ event.preventDefault();
2076
+ break;
2077
+ }
2037
2078
  //escape
2038
2079
  case 27: {
2039
2080
  this.inputfieldViewChild()?.nativeElement.focus();
@@ -2108,6 +2149,19 @@ class DatePicker extends BaseInput {
2108
2149
  event.preventDefault();
2109
2150
  break;
2110
2151
  }
2152
+ //page up: previous decade
2153
+ //page down: next decade
2154
+ case 33:
2155
+ case 34: {
2156
+ cell.tabIndex = '-1';
2157
+ this.navigationState.set({ backward: event.which === 33 });
2158
+ if (event.which === 33)
2159
+ this.navBackward(event);
2160
+ else
2161
+ this.navForward(event);
2162
+ event.preventDefault();
2163
+ break;
2164
+ }
2111
2165
  //escape
2112
2166
  case 27: {
2113
2167
  this.inputfieldViewChild()?.nativeElement.focus();
@@ -2168,6 +2222,17 @@ class DatePicker extends BaseInput {
2168
2222
  }
2169
2223
  }
2170
2224
  }
2225
+ navigateToYear(prev, focusKey) {
2226
+ this.navigationState.set({ backward: prev });
2227
+ this._focusKey.set(focusKey);
2228
+ this.isMonthNavigate.set(true);
2229
+ if (prev)
2230
+ this.decrementYear();
2231
+ else
2232
+ this.incrementYear();
2233
+ this.onMonthChange.emit({ month: this.currentMonth() + 1, year: this.currentYear() });
2234
+ this.createMonths(this.currentMonth(), this.currentYear());
2235
+ }
2171
2236
  updateFocus() {
2172
2237
  let cell;
2173
2238
  if (this.navigationState()) {
@@ -2342,7 +2407,8 @@ class DatePicker extends BaseInput {
2342
2407
  value = this.value()[this.value().length - 1];
2343
2408
  }
2344
2409
  }
2345
- const valueDateString = value && isDate(value) ? value.toDateString() : null;
2410
+ // without a value, updateTime builds the new value on today's date
2411
+ const valueDateString = (value && isDate(value) ? value : new Date()).toDateString();
2346
2412
  let isMinDate = this.minDate() && valueDateString && this.minDate().toDateString() === valueDateString;
2347
2413
  let isMaxDate = this.maxDate() && valueDateString && this.maxDate().toDateString() === valueDateString;
2348
2414
  if (isMinDate) {
@@ -2350,21 +2416,6 @@ class DatePicker extends BaseInput {
2350
2416
  }
2351
2417
  switch (true // intentional fall through
2352
2418
  ) {
2353
- case isMinDate && minHoursExceeds12 && this.minDate().getHours() === 12 && this.minDate().getHours() > convertedHour:
2354
- returnTimeTriple[0] = 11;
2355
- case isMinDate && this.minDate().getHours() === convertedHour && this.minDate().getMinutes() > minute:
2356
- returnTimeTriple[1] = this.minDate().getMinutes();
2357
- case isMinDate && this.minDate().getHours() === convertedHour && this.minDate().getMinutes() === minute && this.minDate().getSeconds() > second:
2358
- returnTimeTriple[2] = this.minDate().getSeconds();
2359
- break;
2360
- case isMinDate && !minHoursExceeds12 && this.minDate().getHours() - 1 === convertedHour && this.minDate().getHours() > convertedHour:
2361
- returnTimeTriple[0] = 11;
2362
- this.pm.set(true);
2363
- case isMinDate && this.minDate().getHours() === convertedHour && this.minDate().getMinutes() > minute:
2364
- returnTimeTriple[1] = this.minDate().getMinutes();
2365
- case isMinDate && this.minDate().getHours() === convertedHour && this.minDate().getMinutes() === minute && this.minDate().getSeconds() > second:
2366
- returnTimeTriple[2] = this.minDate().getSeconds();
2367
- break;
2368
2419
  case isMinDate && minHoursExceeds12 && this.minDate().getHours() > convertedHour && convertedHour !== 12:
2369
2420
  this.setCurrentHourPM(this.minDate().getHours());
2370
2421
  returnTimeTriple[0] = this.currentHour() || 0;
@@ -2536,7 +2587,9 @@ class DatePicker extends BaseInput {
2536
2587
  if (this.isMultipleSelection()) {
2537
2588
  value = this.value()[this.value().length - 1];
2538
2589
  }
2539
- value = value && isDate(value) ? new Date(value.getTime()) : new Date();
2590
+ // without a value, the time applies to the day the panel shows on opening: defaultDate when given, today otherwise
2591
+ const defaultDate = this.defaultDate();
2592
+ value = value && isDate(value) ? new Date(value.getTime()) : defaultDate && isDate(defaultDate) ? new Date(defaultDate.getTime()) : new Date();
2540
2593
  if (this.hourFormat() == '12') {
2541
2594
  if (this.currentHour() === 12)
2542
2595
  value.setHours(this.pm() ? 12 : 0);
@@ -2572,17 +2625,18 @@ class DatePicker extends BaseInput {
2572
2625
  event.preventDefault();
2573
2626
  }
2574
2627
  onUserInput(event) {
2575
- // IE 11 Workaround for input placeholder : https://github.com/primefaces/primeng/issues/2026
2576
- if (!this.isKeydown()) {
2577
- return;
2578
- }
2628
+ // The input event alone is handled: a paste or drop from the context menu fires no keydown before it
2579
2629
  this.isKeydown.set(false);
2580
2630
  let val = event.target.value;
2581
2631
  try {
2582
2632
  let value = this.parseValueFromString(val);
2583
2633
  if (this.isValidSelection(value)) {
2634
+ // a typed minDate/maxDate day is selectable but parses at 00:00: keep it within the bounds, as selectDate does
2635
+ const constrain = (date) => (this.minDate() && this.minDate() > date ? new Date(this.minDate()) : this.maxDate() && this.maxDate() < date ? new Date(this.maxDate()) : date);
2636
+ value = Array.isArray(value) ? value.map((date) => date && constrain(date)) : constrain(value);
2584
2637
  this.updateModel(value);
2585
2638
  this.updateUI();
2639
+ this.realignOverlay();
2586
2640
  }
2587
2641
  else if (this.keepInvalid()) {
2588
2642
  this.updateModel(value);
@@ -2744,6 +2798,13 @@ class DatePicker extends BaseInput {
2744
2798
  this.el.nativeElement.appendChild(this.overlay());
2745
2799
  }
2746
2800
  }
2801
+ // a month can have 4 to 6 rows: a panel opened above the input has to move with its new height
2802
+ realignOverlay() {
2803
+ if (this.overlayVisible() && !this.inline()) {
2804
+ this.cd.detectChanges();
2805
+ this.alignOverlay();
2806
+ }
2807
+ }
2747
2808
  alignOverlay() {
2748
2809
  if (this.touchUI()) {
2749
2810
  this.enableModality(this.overlay());
@@ -3085,7 +3146,7 @@ class DatePicker extends BaseInput {
3085
3146
  month = 1;
3086
3147
  day = doy;
3087
3148
  do {
3088
- dim = this.getDaysCountInMonth(year, month - 1);
3149
+ dim = this.getDaysCountInMonth(month - 1, year);
3089
3150
  if (day <= dim) {
3090
3151
  break;
3091
3152
  }
@@ -3126,6 +3187,12 @@ class DatePicker extends BaseInput {
3126
3187
  today: true,
3127
3188
  selectable: true
3128
3189
  };
3190
+ // selectDate applies the time picker values: set them to now, not to the time of the current value
3191
+ if (this.showTime() || this.timeOnly()) {
3192
+ this.setCurrentHourPM(date.getHours());
3193
+ this.currentMinute.set(date.getMinutes());
3194
+ this.currentSecond.set(this.showSeconds() ? date.getSeconds() : 0);
3195
+ }
3129
3196
  this.createMonths(date.getMonth(), date.getFullYear());
3130
3197
  this.onDateSelect(event, dateMeta);
3131
3198
  this.onTodayClick.emit(date);
@@ -3226,7 +3293,9 @@ class DatePicker extends BaseInput {
3226
3293
  }
3227
3294
  }
3228
3295
  isOutsideClicked(event) {
3229
- return !(this.el.nativeElement.isSameNode(event.target) || this.isNavIconClicked(event) || this.el.nativeElement.contains(event.target) || (this.overlay() && this.overlay().contains(event.target)));
3296
+ // inside a shadow root, event.target is retargeted to the shadow host: use the real target
3297
+ const target = event.composedPath?.()[0] ?? event.target;
3298
+ return !(this.el.nativeElement.isSameNode(target) || this.isNavIconClicked(event) || this.el.nativeElement.contains(target) || (this.overlay() && this.overlay().contains(target)));
3230
3299
  }
3231
3300
  isNavIconClicked(event) {
3232
3301
  return hasClass(event.target, 'p-datepicker-prev-button') || hasClass(event.target, 'p-datepicker-prev-icon') || hasClass(event.target, 'p-datepicker-next-button') || hasClass(event.target, 'p-datepicker-next-icon');
@@ -3284,7 +3353,7 @@ class DatePicker extends BaseInput {
3284
3353
  this.onOverlayHide();
3285
3354
  }
3286
3355
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DatePicker, deps: [], target: i0.ɵɵFactoryTarget.Component });
3287
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: DatePicker, isStandalone: true, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: { iconDisplay: { classPropertyName: "iconDisplay", publicName: "iconDisplay", isSignal: true, isRequired: false, transformFunction: null }, inputStyle: { classPropertyName: "inputStyle", publicName: "inputStyle", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, inputStyleClass: { classPropertyName: "inputStyleClass", publicName: "inputStyleClass", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, iconAriaLabel: { classPropertyName: "iconAriaLabel", publicName: "iconAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "dateFormat", isSignal: true, isRequired: false, transformFunction: null }, multipleSeparator: { classPropertyName: "multipleSeparator", publicName: "multipleSeparator", isSignal: true, isRequired: false, transformFunction: null }, rangeSeparator: { classPropertyName: "rangeSeparator", publicName: "rangeSeparator", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, showOtherMonths: { classPropertyName: "showOtherMonths", publicName: "showOtherMonths", isSignal: true, isRequired: false, transformFunction: null }, selectOtherMonths: { classPropertyName: "selectOtherMonths", publicName: "selectOtherMonths", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, readonlyInput: { classPropertyName: "readonlyInput", publicName: "readonlyInput", isSignal: true, isRequired: false, transformFunction: null }, shortYearCutoff: { classPropertyName: "shortYearCutoff", publicName: "shortYearCutoff", isSignal: true, isRequired: false, transformFunction: null }, hourFormat: { classPropertyName: "hourFormat", publicName: "hourFormat", isSignal: true, isRequired: false, transformFunction: null }, timeOnly: { classPropertyName: "timeOnly", publicName: "timeOnly", isSignal: true, isRequired: false, transformFunction: null }, stepHour: { classPropertyName: "stepHour", publicName: "stepHour", isSignal: true, isRequired: false, transformFunction: null }, stepMinute: { classPropertyName: "stepMinute", publicName: "stepMinute", isSignal: true, isRequired: false, transformFunction: null }, stepSecond: { classPropertyName: "stepSecond", publicName: "stepSecond", isSignal: true, isRequired: false, transformFunction: null }, showSeconds: { classPropertyName: "showSeconds", publicName: "showSeconds", isSignal: true, isRequired: false, transformFunction: null }, showOnFocus: { classPropertyName: "showOnFocus", publicName: "showOnFocus", isSignal: true, isRequired: false, transformFunction: null }, showWeek: { classPropertyName: "showWeek", publicName: "showWeek", isSignal: true, isRequired: false, transformFunction: null }, startWeekFromFirstDayOfYear: { classPropertyName: "startWeekFromFirstDayOfYear", publicName: "startWeekFromFirstDayOfYear", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, dataType: { classPropertyName: "dataType", publicName: "dataType", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, maxDateCount: { classPropertyName: "maxDateCount", publicName: "maxDateCount", isSignal: true, isRequired: false, transformFunction: null }, showButtonBar: { classPropertyName: "showButtonBar", publicName: "showButtonBar", isSignal: true, isRequired: false, transformFunction: null }, todayButtonStyleClass: { classPropertyName: "todayButtonStyleClass", publicName: "todayButtonStyleClass", isSignal: true, isRequired: false, transformFunction: null }, clearButtonStyleClass: { classPropertyName: "clearButtonStyleClass", publicName: "clearButtonStyleClass", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, panelStyle: { classPropertyName: "panelStyle", publicName: "panelStyle", isSignal: true, isRequired: false, transformFunction: null }, keepInvalid: { classPropertyName: "keepInvalid", publicName: "keepInvalid", isSignal: true, isRequired: false, transformFunction: null }, hideOnDateTimeSelect: { classPropertyName: "hideOnDateTimeSelect", publicName: "hideOnDateTimeSelect", isSignal: true, isRequired: false, transformFunction: null }, touchUI: { classPropertyName: "touchUI", publicName: "touchUI", isSignal: true, isRequired: false, transformFunction: null }, timeSeparator: { classPropertyName: "timeSeparator", publicName: "timeSeparator", isSignal: true, isRequired: false, transformFunction: null }, focusTrap: { classPropertyName: "focusTrap", publicName: "focusTrap", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, disabledDates: { classPropertyName: "disabledDates", publicName: "disabledDates", isSignal: true, isRequired: false, transformFunction: null }, disabledDays: { classPropertyName: "disabledDays", publicName: "disabledDays", isSignal: true, isRequired: false, transformFunction: null }, showTime: { classPropertyName: "showTime", publicName: "showTime", isSignal: true, isRequired: false, transformFunction: null }, responsiveOptions: { classPropertyName: "responsiveOptions", publicName: "responsiveOptions", isSignal: true, isRequired: false, transformFunction: null }, numberOfMonths: { classPropertyName: "numberOfMonths", publicName: "numberOfMonths", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null }, defaultDate: { classPropertyName: "defaultDate", publicName: "defaultDate", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, 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" }, host: { properties: { "class": "cx('root')", "style": "sx('root')" } }, providers: [DATEPICKER_VALUE_ACCESSOR, DatePickerStyle, { provide: DATEPICKER_INSTANCE, useExisting: DatePicker }, { provide: PARENT_INSTANCE, useExisting: DatePicker }], queries: [{ propertyName: "dateTemplate", first: true, predicate: ["date"], isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "disabledDateTemplate", first: true, predicate: ["disabledDate"], isSignal: true }, { propertyName: "decadeTemplate", first: true, predicate: ["decade"], isSignal: true }, { propertyName: "previousIconTemplate", first: true, predicate: ["previousicon"], isSignal: true }, { propertyName: "nextIconTemplate", first: true, predicate: ["nexticon"], isSignal: true }, { propertyName: "triggerIconTemplate", first: true, predicate: ["triggericon"], isSignal: true }, { propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"], isSignal: true }, { propertyName: "decrementIconTemplate", first: true, predicate: ["decrementicon"], isSignal: true }, { propertyName: "incrementIconTemplate", first: true, predicate: ["incrementicon"], isSignal: true }, { propertyName: "inputIconTemplate", first: true, predicate: ["inputicon"], isSignal: true }, { propertyName: "buttonBarTemplate", first: true, predicate: ["buttonbar"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "inputfieldViewChild", first: true, predicate: ["inputfield"], descendants: true, isSignal: true }, { propertyName: "contentViewChild", first: true, predicate: ["contentWrapper"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
3356
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: DatePicker, isStandalone: true, selector: "p-datePicker, p-datepicker, p-date-picker", inputs: { iconDisplay: { classPropertyName: "iconDisplay", publicName: "iconDisplay", isSignal: true, isRequired: false, transformFunction: null }, inputStyle: { classPropertyName: "inputStyle", publicName: "inputStyle", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, inputStyleClass: { classPropertyName: "inputStyleClass", publicName: "inputStyleClass", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null }, iconAriaLabel: { classPropertyName: "iconAriaLabel", publicName: "iconAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "dateFormat", isSignal: true, isRequired: false, transformFunction: null }, multipleSeparator: { classPropertyName: "multipleSeparator", publicName: "multipleSeparator", isSignal: true, isRequired: false, transformFunction: null }, rangeSeparator: { classPropertyName: "rangeSeparator", publicName: "rangeSeparator", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, showOtherMonths: { classPropertyName: "showOtherMonths", publicName: "showOtherMonths", isSignal: true, isRequired: false, transformFunction: null }, selectOtherMonths: { classPropertyName: "selectOtherMonths", publicName: "selectOtherMonths", isSignal: true, isRequired: false, transformFunction: null }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, readonlyInput: { classPropertyName: "readonlyInput", publicName: "readonlyInput", isSignal: true, isRequired: false, transformFunction: null }, shortYearCutoff: { classPropertyName: "shortYearCutoff", publicName: "shortYearCutoff", isSignal: true, isRequired: false, transformFunction: null }, hourFormat: { classPropertyName: "hourFormat", publicName: "hourFormat", isSignal: true, isRequired: false, transformFunction: null }, timeOnly: { classPropertyName: "timeOnly", publicName: "timeOnly", isSignal: true, isRequired: false, transformFunction: null }, stepHour: { classPropertyName: "stepHour", publicName: "stepHour", isSignal: true, isRequired: false, transformFunction: null }, stepMinute: { classPropertyName: "stepMinute", publicName: "stepMinute", isSignal: true, isRequired: false, transformFunction: null }, stepSecond: { classPropertyName: "stepSecond", publicName: "stepSecond", isSignal: true, isRequired: false, transformFunction: null }, showSeconds: { classPropertyName: "showSeconds", publicName: "showSeconds", isSignal: true, isRequired: false, transformFunction: null }, showOnFocus: { classPropertyName: "showOnFocus", publicName: "showOnFocus", isSignal: true, isRequired: false, transformFunction: null }, showWeek: { classPropertyName: "showWeek", publicName: "showWeek", isSignal: true, isRequired: false, transformFunction: null }, startWeekFromFirstDayOfYear: { classPropertyName: "startWeekFromFirstDayOfYear", publicName: "startWeekFromFirstDayOfYear", isSignal: true, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: true, isRequired: false, transformFunction: null }, dataType: { classPropertyName: "dataType", publicName: "dataType", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, maxDateCount: { classPropertyName: "maxDateCount", publicName: "maxDateCount", isSignal: true, isRequired: false, transformFunction: null }, showButtonBar: { classPropertyName: "showButtonBar", publicName: "showButtonBar", isSignal: true, isRequired: false, transformFunction: null }, todayButtonStyleClass: { classPropertyName: "todayButtonStyleClass", publicName: "todayButtonStyleClass", isSignal: true, isRequired: false, transformFunction: null }, clearButtonStyleClass: { classPropertyName: "clearButtonStyleClass", publicName: "clearButtonStyleClass", isSignal: true, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: true, isRequired: false, transformFunction: null }, panelStyle: { classPropertyName: "panelStyle", publicName: "panelStyle", isSignal: true, isRequired: false, transformFunction: null }, keepInvalid: { classPropertyName: "keepInvalid", publicName: "keepInvalid", isSignal: true, isRequired: false, transformFunction: null }, hideOnDateTimeSelect: { classPropertyName: "hideOnDateTimeSelect", publicName: "hideOnDateTimeSelect", isSignal: true, isRequired: false, transformFunction: null }, touchUI: { classPropertyName: "touchUI", publicName: "touchUI", isSignal: true, isRequired: false, transformFunction: null }, timeSeparator: { classPropertyName: "timeSeparator", publicName: "timeSeparator", isSignal: true, isRequired: false, transformFunction: null }, focusTrap: { classPropertyName: "focusTrap", publicName: "focusTrap", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, disabledDates: { classPropertyName: "disabledDates", publicName: "disabledDates", isSignal: true, isRequired: false, transformFunction: null }, disabledDays: { classPropertyName: "disabledDays", publicName: "disabledDays", isSignal: true, isRequired: false, transformFunction: null }, showTime: { classPropertyName: "showTime", publicName: "showTime", isSignal: true, isRequired: false, transformFunction: null }, responsiveOptions: { classPropertyName: "responsiveOptions", publicName: "responsiveOptions", isSignal: true, isRequired: false, transformFunction: null }, numberOfMonths: { classPropertyName: "numberOfMonths", publicName: "numberOfMonths", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: false, transformFunction: null }, defaultDate: { classPropertyName: "defaultDate", publicName: "defaultDate", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, 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" }, host: { properties: { "class": "cx('root')", "style": "sx('root')" } }, providers: [DATEPICKER_VALUE_ACCESSOR, DatePickerStyle, { provide: DATEPICKER_INSTANCE, useExisting: DatePicker }, { provide: PARENT_INSTANCE, useExisting: DatePicker }], queries: [{ propertyName: "dateTemplate", first: true, predicate: ["date"], isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: ["header"], isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], isSignal: true }, { propertyName: "disabledDateTemplate", first: true, predicate: ["disabledDate"], isSignal: true }, { propertyName: "decadeTemplate", first: true, predicate: ["decade"], isSignal: true }, { propertyName: "previousIconTemplate", first: true, predicate: ["previousicon"], isSignal: true }, { propertyName: "nextIconTemplate", first: true, predicate: ["nexticon"], isSignal: true }, { propertyName: "triggerIconTemplate", first: true, predicate: ["triggericon"], isSignal: true }, { propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"], isSignal: true }, { propertyName: "decrementIconTemplate", first: true, predicate: ["decrementicon"], isSignal: true }, { propertyName: "incrementIconTemplate", first: true, predicate: ["incrementicon"], isSignal: true }, { propertyName: "inputIconTemplate", first: true, predicate: ["inputicon"], isSignal: true }, { propertyName: "buttonBarTemplate", first: true, predicate: ["buttonbar"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "inputfieldViewChild", first: true, predicate: ["inputfield"], descendants: true, isSignal: true }, { propertyName: "contentViewChild", first: true, predicate: ["contentWrapper"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
3288
3357
  @if (!inline()) {
3289
3358
  <input
3290
3359
  #inputfield
@@ -3303,6 +3372,7 @@ class DatePicker extends BaseInput {
3303
3372
  [attr.aria-controls]="overlayVisible() ? panelId : null"
3304
3373
  [attr.aria-labelledby]="ariaLabelledBy()"
3305
3374
  [attr.aria-label]="ariaLabel()"
3375
+ [attr.aria-describedby]="ariaDescribedBy()"
3306
3376
  [value]="inputFieldValue()"
3307
3377
  (focus)="onInputFocus($event)"
3308
3378
  (keydown)="onInputKeydown($event)"
@@ -3362,7 +3432,11 @@ class DatePicker extends BaseInput {
3362
3432
  @if (iconDisplay() === 'input' && showIcon()) {
3363
3433
  <span [class]="cx('inputIconContainer')" [pBind]="ptm('inputIconContainer')" [attr.data-p]="inputIconDataP">
3364
3434
  @if (!inputIconTemplate() && !_inputIconTemplate()) {
3365
- <svg data-p-icon="calendar" (click)="onButtonClick($event)" [class]="cx('inputIcon')" [pBind]="ptm('inputIcon')" />
3435
+ @if (icon()) {
3436
+ <span (click)="onButtonClick($event)" [class]="cn(cx('inputIcon'), icon())" [pBind]="ptm('inputIcon')"></span>
3437
+ } @else {
3438
+ <svg data-p-icon="calendar" (click)="onButtonClick($event)" [class]="cx('inputIcon')" [pBind]="ptm('inputIcon')" />
3439
+ }
3366
3440
  }
3367
3441
 
3368
3442
  <ng-container *ngTemplateOutlet="inputIconTemplate() || _inputIconTemplate(); context: { clickCallBack: onButtonClick.bind(this) }"></ng-container>
@@ -3421,7 +3495,7 @@ class DatePicker extends BaseInput {
3421
3495
  (keydown)="onContainerButtonKeydown($event)"
3422
3496
  [class]="cx('selectMonth')"
3423
3497
  [attr.disabled]="switchViewButtonDisabled() ? '' : undefined"
3424
- [attr.aria-label]="this.getTranslation('chooseMonth')"
3498
+ [attr.aria-label]="getMonthName(month.month) + ', ' + getTranslation('chooseMonth')"
3425
3499
  pRipple
3426
3500
  [pBind]="ptm('selectMonth')"
3427
3501
  [attr.data-pc-group-section]="'navigator'"
@@ -3436,7 +3510,7 @@ class DatePicker extends BaseInput {
3436
3510
  (keydown)="onContainerButtonKeydown($event)"
3437
3511
  [class]="cx('selectYear')"
3438
3512
  [attr.disabled]="switchViewButtonDisabled() ? '' : undefined"
3439
- [attr.aria-label]="getTranslation('chooseYear')"
3513
+ [attr.aria-label]="getYear(month) + ', ' + getTranslation('chooseYear')"
3440
3514
  pRipple
3441
3515
  [pBind]="ptm('selectYear')"
3442
3516
  [attr.data-pc-group-section]="'navigator'"
@@ -3502,7 +3576,7 @@ class DatePicker extends BaseInput {
3502
3576
  </td>
3503
3577
  }
3504
3578
  @for (date of week; track $index) {
3505
- <td [attr.aria-label]="date.day" [class]="cx('dayCell', { date })" [pBind]="ptm('dayCell')">
3579
+ <td [attr.aria-label]="formatDate(formatDateMetaToDate(date), 'DD, d MM yy')" [attr.aria-selected]="!!isSelected(date)" [class]="cx('dayCell', { date })" [pBind]="ptm('dayCell')">
3506
3580
  @if (date.otherMonth ? showOtherMonths() : true) {
3507
3581
  <span
3508
3582
  [ngClass]="dayClass(date)"
@@ -3584,7 +3658,7 @@ class DatePicker extends BaseInput {
3584
3658
  (keyup.enter)="onTimePickerElementMouseUp($event)"
3585
3659
  (keyup.space)="onTimePickerElementMouseUp($event)"
3586
3660
  (mouseleave)="onTimePickerElementMouseLeave()"
3587
- [attr.aria-label]="getTranslation('nextHour')"
3661
+ [ariaLabel]="getTranslation('nextHour')"
3588
3662
  [pt]="ptm('pcIncrementButton')"
3589
3663
  [attr.data-pc-group-section]="'timepickerbutton'"
3590
3664
  >
@@ -3609,7 +3683,7 @@ class DatePicker extends BaseInput {
3609
3683
  (keyup.enter)="onTimePickerElementMouseUp($event)"
3610
3684
  (keyup.space)="onTimePickerElementMouseUp($event)"
3611
3685
  (mouseleave)="onTimePickerElementMouseLeave()"
3612
- [attr.aria-label]="getTranslation('prevHour')"
3686
+ [ariaLabel]="getTranslation('prevHour')"
3613
3687
  [pt]="ptm('pcDecrementButton')"
3614
3688
  [attr.data-pc-group-section]="'timepickerbutton'"
3615
3689
  >
@@ -3638,7 +3712,7 @@ class DatePicker extends BaseInput {
3638
3712
  (keyup.enter)="onTimePickerElementMouseUp($event)"
3639
3713
  (keyup.space)="onTimePickerElementMouseUp($event)"
3640
3714
  (mouseleave)="onTimePickerElementMouseLeave()"
3641
- [attr.aria-label]="getTranslation('nextMinute')"
3715
+ [ariaLabel]="getTranslation('nextMinute')"
3642
3716
  [pt]="ptm('pcIncrementButton')"
3643
3717
  [attr.data-pc-group-section]="'timepickerbutton'"
3644
3718
  >
@@ -3663,7 +3737,7 @@ class DatePicker extends BaseInput {
3663
3737
  (keyup.enter)="onTimePickerElementMouseUp($event)"
3664
3738
  (keyup.space)="onTimePickerElementMouseUp($event)"
3665
3739
  (mouseleave)="onTimePickerElementMouseLeave()"
3666
- [attr.aria-label]="getTranslation('prevMinute')"
3740
+ [ariaLabel]="getTranslation('prevMinute')"
3667
3741
  [pt]="ptm('pcDecrementButton')"
3668
3742
  [attr.data-pc-group-section]="'timepickerbutton'"
3669
3743
  >
@@ -3695,7 +3769,7 @@ class DatePicker extends BaseInput {
3695
3769
  (keyup.enter)="onTimePickerElementMouseUp($event)"
3696
3770
  (keyup.space)="onTimePickerElementMouseUp($event)"
3697
3771
  (mouseleave)="onTimePickerElementMouseLeave()"
3698
- [attr.aria-label]="getTranslation('nextSecond')"
3772
+ [ariaLabel]="getTranslation('nextSecond')"
3699
3773
  [pt]="ptm('pcIncrementButton')"
3700
3774
  [attr.data-pc-group-section]="'timepickerbutton'"
3701
3775
  >
@@ -3720,7 +3794,7 @@ class DatePicker extends BaseInput {
3720
3794
  (keyup.enter)="onTimePickerElementMouseUp($event)"
3721
3795
  (keyup.space)="onTimePickerElementMouseUp($event)"
3722
3796
  (mouseleave)="onTimePickerElementMouseLeave()"
3723
- [attr.aria-label]="getTranslation('prevSecond')"
3797
+ [ariaLabel]="getTranslation('prevSecond')"
3724
3798
  [pt]="ptm('pcDecrementButton')"
3725
3799
  [attr.data-pc-group-section]="'timepickerbutton'"
3726
3800
  >
@@ -3748,7 +3822,7 @@ class DatePicker extends BaseInput {
3748
3822
  (keydown)="onContainerButtonKeydown($event)"
3749
3823
  (onClick)="toggleAMPM($event)"
3750
3824
  (keydown.enter)="toggleAMPM($event)"
3751
- [attr.aria-label]="getTranslation('am')"
3825
+ [ariaLabel]="getTranslation('am')"
3752
3826
  [pt]="ptm('pcIncrementButton')"
3753
3827
  [attr.data-pc-group-section]="'timepickerbutton'"
3754
3828
  >
@@ -3759,7 +3833,7 @@ class DatePicker extends BaseInput {
3759
3833
  <ng-template *ngTemplateOutlet="incrementIconTemplate() || _incrementIconTemplate()"></ng-template>
3760
3834
  </ng-template>
3761
3835
  </p-button>
3762
- <span [pBind]="ptm('ampm')">{{ pm() ? 'PM' : 'AM' }}</span>
3836
+ <span [pBind]="ptm('ampm')">{{ getTranslation(pm() ? 'pm' : 'am') }}</span>
3763
3837
  <p-button
3764
3838
  text
3765
3839
  rounded
@@ -3768,7 +3842,7 @@ class DatePicker extends BaseInput {
3768
3842
  (keydown)="onContainerButtonKeydown($event)"
3769
3843
  (click)="toggleAMPM($event)"
3770
3844
  (keydown.enter)="toggleAMPM($event)"
3771
- [attr.aria-label]="getTranslation('pm')"
3845
+ [ariaLabel]="getTranslation('pm')"
3772
3846
  [pt]="ptm('pcDecrementButton')"
3773
3847
  [attr.data-pc-group-section]="'timepickerbutton'"
3774
3848
  >
@@ -3822,7 +3896,7 @@ class DatePicker extends BaseInput {
3822
3896
  </div>
3823
3897
  </p-motion>
3824
3898
  }
3825
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "component", type: ChevronLeftIcon, selector: "[data-p-icon=\"chevron-left\"]" }, { kind: "component", type: ChevronRightIcon, selector: "[data-p-icon=\"chevron-right\"]" }, { kind: "component", type: ChevronUpIcon, selector: "[data-p-icon=\"chevron-up\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: CalendarIcon, selector: "[data-p-icon=\"calendar\"]" }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "component", type: i3.Motion, selector: "p-motion", inputs: ["visible", "mountOnEnter", "unmountOnLeave", "name", "type", "safe", "disabled", "appear", "enter", "leave", "duration", "hideStrategy", "enterFromClass", "enterToClass", "enterActiveClass", "leaveFromClass", "leaveToClass", "leaveActiveClass", "options"], outputs: ["onBeforeEnter", "onEnter", "onAfterEnter", "onEnterCancelled", "onBeforeLeave", "onLeave", "onAfterLeave", "onLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3899
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Button, selector: "p-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeSeverity", "ariaLabel", "ariaExpanded", "ariaControls", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "component", type: ChevronLeftIcon, selector: "[data-p-icon=\"chevron-left\"]" }, { kind: "component", type: ChevronRightIcon, selector: "[data-p-icon=\"chevron-right\"]" }, { kind: "component", type: ChevronUpIcon, selector: "[data-p-icon=\"chevron-up\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: CalendarIcon, selector: "[data-p-icon=\"calendar\"]" }, { kind: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["pAutoFocus"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "component", type: i3.Motion, selector: "p-motion", inputs: ["visible", "mountOnEnter", "unmountOnLeave", "name", "type", "safe", "disabled", "appear", "enter", "leave", "duration", "hideStrategy", "enterFromClass", "enterToClass", "enterActiveClass", "leaveFromClass", "leaveToClass", "leaveActiveClass", "options"], outputs: ["onBeforeEnter", "onEnter", "onAfterEnter", "onEnterCancelled", "onBeforeLeave", "onLeave", "onAfterLeave", "onLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3826
3900
  }
3827
3901
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DatePicker, decorators: [{
3828
3902
  type: Component,
@@ -3849,6 +3923,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
3849
3923
  [attr.aria-controls]="overlayVisible() ? panelId : null"
3850
3924
  [attr.aria-labelledby]="ariaLabelledBy()"
3851
3925
  [attr.aria-label]="ariaLabel()"
3926
+ [attr.aria-describedby]="ariaDescribedBy()"
3852
3927
  [value]="inputFieldValue()"
3853
3928
  (focus)="onInputFocus($event)"
3854
3929
  (keydown)="onInputKeydown($event)"
@@ -3908,7 +3983,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
3908
3983
  @if (iconDisplay() === 'input' && showIcon()) {
3909
3984
  <span [class]="cx('inputIconContainer')" [pBind]="ptm('inputIconContainer')" [attr.data-p]="inputIconDataP">
3910
3985
  @if (!inputIconTemplate() && !_inputIconTemplate()) {
3911
- <svg data-p-icon="calendar" (click)="onButtonClick($event)" [class]="cx('inputIcon')" [pBind]="ptm('inputIcon')" />
3986
+ @if (icon()) {
3987
+ <span (click)="onButtonClick($event)" [class]="cn(cx('inputIcon'), icon())" [pBind]="ptm('inputIcon')"></span>
3988
+ } @else {
3989
+ <svg data-p-icon="calendar" (click)="onButtonClick($event)" [class]="cx('inputIcon')" [pBind]="ptm('inputIcon')" />
3990
+ }
3912
3991
  }
3913
3992
 
3914
3993
  <ng-container *ngTemplateOutlet="inputIconTemplate() || _inputIconTemplate(); context: { clickCallBack: onButtonClick.bind(this) }"></ng-container>
@@ -3967,7 +4046,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
3967
4046
  (keydown)="onContainerButtonKeydown($event)"
3968
4047
  [class]="cx('selectMonth')"
3969
4048
  [attr.disabled]="switchViewButtonDisabled() ? '' : undefined"
3970
- [attr.aria-label]="this.getTranslation('chooseMonth')"
4049
+ [attr.aria-label]="getMonthName(month.month) + ', ' + getTranslation('chooseMonth')"
3971
4050
  pRipple
3972
4051
  [pBind]="ptm('selectMonth')"
3973
4052
  [attr.data-pc-group-section]="'navigator'"
@@ -3982,7 +4061,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
3982
4061
  (keydown)="onContainerButtonKeydown($event)"
3983
4062
  [class]="cx('selectYear')"
3984
4063
  [attr.disabled]="switchViewButtonDisabled() ? '' : undefined"
3985
- [attr.aria-label]="getTranslation('chooseYear')"
4064
+ [attr.aria-label]="getYear(month) + ', ' + getTranslation('chooseYear')"
3986
4065
  pRipple
3987
4066
  [pBind]="ptm('selectYear')"
3988
4067
  [attr.data-pc-group-section]="'navigator'"
@@ -4048,7 +4127,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
4048
4127
  </td>
4049
4128
  }
4050
4129
  @for (date of week; track $index) {
4051
- <td [attr.aria-label]="date.day" [class]="cx('dayCell', { date })" [pBind]="ptm('dayCell')">
4130
+ <td [attr.aria-label]="formatDate(formatDateMetaToDate(date), 'DD, d MM yy')" [attr.aria-selected]="!!isSelected(date)" [class]="cx('dayCell', { date })" [pBind]="ptm('dayCell')">
4052
4131
  @if (date.otherMonth ? showOtherMonths() : true) {
4053
4132
  <span
4054
4133
  [ngClass]="dayClass(date)"
@@ -4130,7 +4209,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
4130
4209
  (keyup.enter)="onTimePickerElementMouseUp($event)"
4131
4210
  (keyup.space)="onTimePickerElementMouseUp($event)"
4132
4211
  (mouseleave)="onTimePickerElementMouseLeave()"
4133
- [attr.aria-label]="getTranslation('nextHour')"
4212
+ [ariaLabel]="getTranslation('nextHour')"
4134
4213
  [pt]="ptm('pcIncrementButton')"
4135
4214
  [attr.data-pc-group-section]="'timepickerbutton'"
4136
4215
  >
@@ -4155,7 +4234,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
4155
4234
  (keyup.enter)="onTimePickerElementMouseUp($event)"
4156
4235
  (keyup.space)="onTimePickerElementMouseUp($event)"
4157
4236
  (mouseleave)="onTimePickerElementMouseLeave()"
4158
- [attr.aria-label]="getTranslation('prevHour')"
4237
+ [ariaLabel]="getTranslation('prevHour')"
4159
4238
  [pt]="ptm('pcDecrementButton')"
4160
4239
  [attr.data-pc-group-section]="'timepickerbutton'"
4161
4240
  >
@@ -4184,7 +4263,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
4184
4263
  (keyup.enter)="onTimePickerElementMouseUp($event)"
4185
4264
  (keyup.space)="onTimePickerElementMouseUp($event)"
4186
4265
  (mouseleave)="onTimePickerElementMouseLeave()"
4187
- [attr.aria-label]="getTranslation('nextMinute')"
4266
+ [ariaLabel]="getTranslation('nextMinute')"
4188
4267
  [pt]="ptm('pcIncrementButton')"
4189
4268
  [attr.data-pc-group-section]="'timepickerbutton'"
4190
4269
  >
@@ -4209,7 +4288,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
4209
4288
  (keyup.enter)="onTimePickerElementMouseUp($event)"
4210
4289
  (keyup.space)="onTimePickerElementMouseUp($event)"
4211
4290
  (mouseleave)="onTimePickerElementMouseLeave()"
4212
- [attr.aria-label]="getTranslation('prevMinute')"
4291
+ [ariaLabel]="getTranslation('prevMinute')"
4213
4292
  [pt]="ptm('pcDecrementButton')"
4214
4293
  [attr.data-pc-group-section]="'timepickerbutton'"
4215
4294
  >
@@ -4241,7 +4320,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
4241
4320
  (keyup.enter)="onTimePickerElementMouseUp($event)"
4242
4321
  (keyup.space)="onTimePickerElementMouseUp($event)"
4243
4322
  (mouseleave)="onTimePickerElementMouseLeave()"
4244
- [attr.aria-label]="getTranslation('nextSecond')"
4323
+ [ariaLabel]="getTranslation('nextSecond')"
4245
4324
  [pt]="ptm('pcIncrementButton')"
4246
4325
  [attr.data-pc-group-section]="'timepickerbutton'"
4247
4326
  >
@@ -4266,7 +4345,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
4266
4345
  (keyup.enter)="onTimePickerElementMouseUp($event)"
4267
4346
  (keyup.space)="onTimePickerElementMouseUp($event)"
4268
4347
  (mouseleave)="onTimePickerElementMouseLeave()"
4269
- [attr.aria-label]="getTranslation('prevSecond')"
4348
+ [ariaLabel]="getTranslation('prevSecond')"
4270
4349
  [pt]="ptm('pcDecrementButton')"
4271
4350
  [attr.data-pc-group-section]="'timepickerbutton'"
4272
4351
  >
@@ -4294,7 +4373,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
4294
4373
  (keydown)="onContainerButtonKeydown($event)"
4295
4374
  (onClick)="toggleAMPM($event)"
4296
4375
  (keydown.enter)="toggleAMPM($event)"
4297
- [attr.aria-label]="getTranslation('am')"
4376
+ [ariaLabel]="getTranslation('am')"
4298
4377
  [pt]="ptm('pcIncrementButton')"
4299
4378
  [attr.data-pc-group-section]="'timepickerbutton'"
4300
4379
  >
@@ -4305,7 +4384,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
4305
4384
  <ng-template *ngTemplateOutlet="incrementIconTemplate() || _incrementIconTemplate()"></ng-template>
4306
4385
  </ng-template>
4307
4386
  </p-button>
4308
- <span [pBind]="ptm('ampm')">{{ pm() ? 'PM' : 'AM' }}</span>
4387
+ <span [pBind]="ptm('ampm')">{{ getTranslation(pm() ? 'pm' : 'am') }}</span>
4309
4388
  <p-button
4310
4389
  text
4311
4390
  rounded
@@ -4314,7 +4393,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
4314
4393
  (keydown)="onContainerButtonKeydown($event)"
4315
4394
  (click)="toggleAMPM($event)"
4316
4395
  (keydown.enter)="toggleAMPM($event)"
4317
- [attr.aria-label]="getTranslation('pm')"
4396
+ [ariaLabel]="getTranslation('pm')"
4318
4397
  [pt]="ptm('pcDecrementButton')"
4319
4398
  [attr.data-pc-group-section]="'timepickerbutton'"
4320
4399
  >
@@ -4377,7 +4456,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
4377
4456
  '[style]': "sx('root')"
4378
4457
  }
4379
4458
  }]
4380
- }], ctorParameters: () => [], propDecorators: { iconDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconDisplay", required: false }] }], inputStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyle", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], inputStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyleClass", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], iconAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconAriaLabel", required: false }] }], dateFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateFormat", required: false }] }], multipleSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "multipleSeparator", required: false }] }], rangeSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "rangeSeparator", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], showOtherMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOtherMonths", required: false }] }], selectOtherMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOtherMonths", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], readonlyInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonlyInput", required: false }] }], shortYearCutoff: [{ type: i0.Input, args: [{ isSignal: true, alias: "shortYearCutoff", required: false }] }], hourFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourFormat", required: false }] }], timeOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeOnly", required: false }] }], stepHour: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepHour", required: false }] }], stepMinute: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepMinute", required: false }] }], stepSecond: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepSecond", required: false }] }], showSeconds: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSeconds", required: false }] }], showOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOnFocus", required: false }] }], showWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "showWeek", required: false }] }], startWeekFromFirstDayOfYear: [{ type: i0.Input, args: [{ isSignal: true, alias: "startWeekFromFirstDayOfYear", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], dataType: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataType", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], maxDateCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDateCount", required: false }] }], showButtonBar: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtonBar", required: false }] }], todayButtonStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "todayButtonStyleClass", required: false }] }], clearButtonStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearButtonStyleClass", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], panelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyleClass", required: false }] }], panelStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyle", required: false }] }], keepInvalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepInvalid", required: false }] }], hideOnDateTimeSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideOnDateTimeSelect", required: false }] }], touchUI: [{ type: i0.Input, args: [{ isSignal: true, alias: "touchUI", required: false }] }], timeSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeSeparator", required: false }] }], focusTrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusTrap", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], disabledDates: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDates", required: false }] }], disabledDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDays", required: false }] }], showTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTime", required: false }] }], responsiveOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsiveOptions", required: false }] }], numberOfMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberOfMonths", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", required: false }] }], defaultDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultDate", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onClose: [{ type: i0.Output, args: ["onClose"] }], onSelect: [{ type: i0.Output, args: ["onSelect"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], onInput: [{ type: i0.Output, args: ["onInput"] }], onTodayClick: [{ type: i0.Output, args: ["onTodayClick"] }], onClearClick: [{ type: i0.Output, args: ["onClearClick"] }], onMonthChange: [{ type: i0.Output, args: ["onMonthChange"] }], onYearChange: [{ type: i0.Output, args: ["onYearChange"] }], onClickOutside: [{ type: i0.Output, args: ["onClickOutside"] }], onShow: [{ type: i0.Output, args: ["onShow"] }], inputfieldViewChild: [{ type: i0.ViewChild, args: ['inputfield', { isSignal: true }] }], contentViewChild: [{ type: i0.ViewChild, args: ['contentWrapper', { isSignal: true }] }], dateTemplate: [{ type: i0.ContentChild, args: ['date', { ...{ descendants: false }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], disabledDateTemplate: [{ type: i0.ContentChild, args: ['disabledDate', { ...{ descendants: false }, isSignal: true }] }], decadeTemplate: [{ type: i0.ContentChild, args: ['decade', { ...{ descendants: false }, isSignal: true }] }], previousIconTemplate: [{ type: i0.ContentChild, args: ['previousicon', { ...{ descendants: false }, isSignal: true }] }], nextIconTemplate: [{ type: i0.ContentChild, args: ['nexticon', { ...{ descendants: false }, isSignal: true }] }], triggerIconTemplate: [{ type: i0.ContentChild, args: ['triggericon', { ...{ descendants: false }, isSignal: true }] }], clearIconTemplate: [{ type: i0.ContentChild, args: ['clearicon', { ...{ descendants: false }, isSignal: true }] }], decrementIconTemplate: [{ type: i0.ContentChild, args: ['decrementicon', { ...{ descendants: false }, isSignal: true }] }], incrementIconTemplate: [{ type: i0.ContentChild, args: ['incrementicon', { ...{ descendants: false }, isSignal: true }] }], inputIconTemplate: [{ type: i0.ContentChild, args: ['inputicon', { ...{ descendants: false }, isSignal: true }] }], buttonBarTemplate: [{ type: i0.ContentChild, args: ['buttonbar', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
4459
+ }], ctorParameters: () => [], propDecorators: { iconDisplay: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconDisplay", required: false }] }], inputStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyle", required: false }] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], inputStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputStyleClass", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }], iconAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconAriaLabel", required: false }] }], dateFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateFormat", required: false }] }], multipleSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "multipleSeparator", required: false }] }], rangeSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "rangeSeparator", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], showOtherMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOtherMonths", required: false }] }], selectOtherMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOtherMonths", required: false }] }], showIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIcon", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], readonlyInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonlyInput", required: false }] }], shortYearCutoff: [{ type: i0.Input, args: [{ isSignal: true, alias: "shortYearCutoff", required: false }] }], hourFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourFormat", required: false }] }], timeOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeOnly", required: false }] }], stepHour: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepHour", required: false }] }], stepMinute: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepMinute", required: false }] }], stepSecond: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepSecond", required: false }] }], showSeconds: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSeconds", required: false }] }], showOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOnFocus", required: false }] }], showWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "showWeek", required: false }] }], startWeekFromFirstDayOfYear: [{ type: i0.Input, args: [{ isSignal: true, alias: "startWeekFromFirstDayOfYear", required: false }] }], showClear: [{ type: i0.Input, args: [{ isSignal: true, alias: "showClear", required: false }] }], dataType: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataType", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], maxDateCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDateCount", required: false }] }], showButtonBar: [{ type: i0.Input, args: [{ isSignal: true, alias: "showButtonBar", required: false }] }], todayButtonStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "todayButtonStyleClass", required: false }] }], clearButtonStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearButtonStyleClass", required: false }] }], autofocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocus", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], panelStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyleClass", required: false }] }], panelStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelStyle", required: false }] }], keepInvalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepInvalid", required: false }] }], hideOnDateTimeSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideOnDateTimeSelect", required: false }] }], touchUI: [{ type: i0.Input, args: [{ isSignal: true, alias: "touchUI", required: false }] }], timeSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeSeparator", required: false }] }], focusTrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusTrap", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], disabledDates: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDates", required: false }] }], disabledDays: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledDays", required: false }] }], showTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTime", required: false }] }], responsiveOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsiveOptions", required: false }] }], numberOfMonths: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberOfMonths", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", required: false }] }], defaultDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultDate", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onClose: [{ type: i0.Output, args: ["onClose"] }], onSelect: [{ type: i0.Output, args: ["onSelect"] }], onClear: [{ type: i0.Output, args: ["onClear"] }], onInput: [{ type: i0.Output, args: ["onInput"] }], onTodayClick: [{ type: i0.Output, args: ["onTodayClick"] }], onClearClick: [{ type: i0.Output, args: ["onClearClick"] }], onMonthChange: [{ type: i0.Output, args: ["onMonthChange"] }], onYearChange: [{ type: i0.Output, args: ["onYearChange"] }], onClickOutside: [{ type: i0.Output, args: ["onClickOutside"] }], onShow: [{ type: i0.Output, args: ["onShow"] }], inputfieldViewChild: [{ type: i0.ViewChild, args: ['inputfield', { isSignal: true }] }], contentViewChild: [{ type: i0.ViewChild, args: ['contentWrapper', { isSignal: true }] }], dateTemplate: [{ type: i0.ContentChild, args: ['date', { ...{ descendants: false }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], disabledDateTemplate: [{ type: i0.ContentChild, args: ['disabledDate', { ...{ descendants: false }, isSignal: true }] }], decadeTemplate: [{ type: i0.ContentChild, args: ['decade', { ...{ descendants: false }, isSignal: true }] }], previousIconTemplate: [{ type: i0.ContentChild, args: ['previousicon', { ...{ descendants: false }, isSignal: true }] }], nextIconTemplate: [{ type: i0.ContentChild, args: ['nexticon', { ...{ descendants: false }, isSignal: true }] }], triggerIconTemplate: [{ type: i0.ContentChild, args: ['triggericon', { ...{ descendants: false }, isSignal: true }] }], clearIconTemplate: [{ type: i0.ContentChild, args: ['clearicon', { ...{ descendants: false }, isSignal: true }] }], decrementIconTemplate: [{ type: i0.ContentChild, args: ['decrementicon', { ...{ descendants: false }, isSignal: true }] }], incrementIconTemplate: [{ type: i0.ContentChild, args: ['incrementicon', { ...{ descendants: false }, isSignal: true }] }], inputIconTemplate: [{ type: i0.ContentChild, args: ['inputicon', { ...{ descendants: false }, isSignal: true }] }], buttonBarTemplate: [{ type: i0.ContentChild, args: ['buttonbar', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
4381
4460
  class DatePickerModule {
4382
4461
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: DatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4383
4462
  static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: DatePickerModule, imports: [DatePicker, SharedModule], exports: [DatePicker, SharedModule] });