primevue 3.36.0 → 3.37.0

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 (214) hide show
  1. package/README.md +50 -20
  2. package/animate/Animate.d.ts +87 -0
  3. package/animate/animate.cjs.js +71 -0
  4. package/animate/animate.cjs.min.js +1 -0
  5. package/animate/animate.esm.js +65 -0
  6. package/animate/animate.esm.min.js +1 -0
  7. package/animate/animate.js +72 -0
  8. package/animate/animate.min.js +1 -0
  9. package/animate/package.json +6 -0
  10. package/animate/style/AnimateStyle.d.ts +3 -0
  11. package/animate/style/animatestyle.cjs.js +5 -0
  12. package/animate/style/animatestyle.cjs.min.js +1 -0
  13. package/animate/style/animatestyle.esm.js +3 -0
  14. package/animate/style/animatestyle.esm.min.js +1 -0
  15. package/animate/style/animatestyle.js +10 -0
  16. package/animate/style/animatestyle.min.js +1 -0
  17. package/animate/style/package.json +6 -0
  18. package/calendar/Calendar.vue +2 -2
  19. package/calendar/calendar.cjs.js +43 -42
  20. package/calendar/calendar.cjs.min.js +1 -1
  21. package/calendar/calendar.esm.js +43 -42
  22. package/calendar/calendar.esm.min.js +1 -1
  23. package/calendar/calendar.js +43 -42
  24. package/calendar/calendar.min.js +1 -1
  25. package/config/PrimeVue.d.ts +2 -0
  26. package/config/config.cjs.js +15 -13
  27. package/config/config.cjs.min.js +1 -1
  28. package/config/config.esm.js +15 -13
  29. package/config/config.esm.min.js +1 -1
  30. package/config/config.js +15 -13
  31. package/config/config.min.js +1 -1
  32. package/contextmenu/ContextMenu.d.ts +5 -0
  33. package/contextmenu/ContextMenuSub.vue +1 -0
  34. package/contextmenu/contextmenu.cjs.js +1 -0
  35. package/contextmenu/contextmenu.cjs.min.js +1 -1
  36. package/contextmenu/contextmenu.esm.js +1 -0
  37. package/contextmenu/contextmenu.esm.min.js +1 -1
  38. package/contextmenu/contextmenu.js +1 -0
  39. package/contextmenu/contextmenu.min.js +1 -1
  40. package/core/core.js +447 -392
  41. package/core/core.min.js +9 -7
  42. package/megamenu/MegaMenu.d.ts +5 -0
  43. package/megamenu/MegaMenuSub.vue +2 -1
  44. package/megamenu/megamenu.cjs.js +2 -1
  45. package/megamenu/megamenu.cjs.min.js +1 -1
  46. package/megamenu/megamenu.esm.js +2 -1
  47. package/megamenu/megamenu.esm.min.js +1 -1
  48. package/megamenu/megamenu.js +2 -1
  49. package/megamenu/megamenu.min.js +1 -1
  50. package/menu/Menu.d.ts +5 -0
  51. package/menu/Menu.vue +1 -1
  52. package/menu/Menuitem.vue +2 -1
  53. package/menu/menu.cjs.js +3 -2
  54. package/menu/menu.cjs.min.js +1 -1
  55. package/menu/menu.esm.js +3 -2
  56. package/menu/menu.esm.min.js +1 -1
  57. package/menu/menu.js +3 -2
  58. package/menu/menu.min.js +1 -1
  59. package/menubar/Menubar.d.ts +5 -0
  60. package/menubar/MenubarSub.vue +1 -0
  61. package/menubar/menubar.cjs.js +1 -0
  62. package/menubar/menubar.cjs.min.js +1 -1
  63. package/menubar/menubar.esm.js +1 -0
  64. package/menubar/menubar.esm.min.js +1 -1
  65. package/menubar/menubar.js +1 -0
  66. package/menubar/menubar.min.js +1 -1
  67. package/multiselect/MultiSelect.vue +4 -3
  68. package/multiselect/multiselect.cjs.js +4 -3
  69. package/multiselect/multiselect.cjs.min.js +1 -1
  70. package/multiselect/multiselect.esm.js +4 -3
  71. package/multiselect/multiselect.esm.min.js +1 -1
  72. package/multiselect/multiselect.js +4 -3
  73. package/multiselect/multiselect.min.js +1 -1
  74. package/overlaypanel/BaseOverlayPanel.vue +4 -0
  75. package/overlaypanel/OverlayPanel.d.ts +5 -0
  76. package/overlaypanel/OverlayPanel.vue +22 -0
  77. package/overlaypanel/overlaypanel.cjs.js +25 -0
  78. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  79. package/overlaypanel/overlaypanel.esm.js +25 -0
  80. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  81. package/overlaypanel/overlaypanel.js +25 -0
  82. package/overlaypanel/overlaypanel.min.js +1 -1
  83. package/package.json +17 -3
  84. package/panelmenu/PanelMenu.d.ts +13 -0
  85. package/panelmenu/PanelMenu.vue +20 -2
  86. package/panelmenu/PanelMenuSub.vue +2 -1
  87. package/panelmenu/panelmenu.cjs.js +20 -5
  88. package/panelmenu/panelmenu.cjs.min.js +1 -1
  89. package/panelmenu/panelmenu.esm.js +20 -5
  90. package/panelmenu/panelmenu.esm.min.js +1 -1
  91. package/panelmenu/panelmenu.js +21 -6
  92. package/panelmenu/panelmenu.min.js +1 -1
  93. package/passthrough/tailwind/index.cjs.js +397 -371
  94. package/passthrough/tailwind/index.cjs.min.js +1 -1
  95. package/passthrough/tailwind/index.esm.js +397 -371
  96. package/passthrough/tailwind/index.esm.min.js +1 -1
  97. package/passthrough/tailwind/index.js +397 -371
  98. package/passthrough/tailwind/index.min.js +1 -1
  99. package/picklist/PickList.vue +2 -2
  100. package/picklist/picklist.cjs.js +2 -2
  101. package/picklist/picklist.cjs.min.js +1 -1
  102. package/picklist/picklist.esm.js +2 -2
  103. package/picklist/picklist.esm.min.js +1 -1
  104. package/picklist/picklist.js +2 -2
  105. package/picklist/picklist.min.js +1 -1
  106. package/resources/themes/arya-blue/theme.css +2 -2
  107. package/resources/themes/arya-green/theme.css +2 -2
  108. package/resources/themes/arya-orange/theme.css +2 -2
  109. package/resources/themes/arya-purple/theme.css +2 -2
  110. package/resources/themes/bootstrap4-dark-blue/theme.css +2 -2
  111. package/resources/themes/bootstrap4-dark-purple/theme.css +2 -2
  112. package/resources/themes/bootstrap4-light-blue/theme.css +2 -2
  113. package/resources/themes/bootstrap4-light-purple/theme.css +2 -2
  114. package/resources/themes/fluent-light/theme.css +2 -2
  115. package/resources/themes/lara-dark-blue/theme.css +587 -575
  116. package/resources/themes/lara-dark-indigo/theme.css +587 -575
  117. package/resources/themes/lara-dark-purple/theme.css +587 -575
  118. package/resources/themes/lara-dark-teal/theme.css +662 -650
  119. package/resources/themes/lara-light-blue/theme.css +629 -625
  120. package/resources/themes/lara-light-indigo/theme.css +629 -625
  121. package/resources/themes/lara-light-purple/theme.css +629 -625
  122. package/resources/themes/lara-light-teal/theme.css +879 -875
  123. package/resources/themes/luna-amber/theme.css +2 -2
  124. package/resources/themes/luna-blue/theme.css +2 -2
  125. package/resources/themes/luna-green/theme.css +2 -2
  126. package/resources/themes/luna-pink/theme.css +2 -2
  127. package/resources/themes/md-dark-deeppurple/theme.css +2 -2
  128. package/resources/themes/md-dark-indigo/theme.css +2 -2
  129. package/resources/themes/md-light-deeppurple/theme.css +2 -2
  130. package/resources/themes/md-light-indigo/theme.css +2 -2
  131. package/resources/themes/mdc-dark-deeppurple/theme.css +2 -2
  132. package/resources/themes/mdc-dark-indigo/theme.css +2 -2
  133. package/resources/themes/mdc-light-deeppurple/theme.css +2 -2
  134. package/resources/themes/mdc-light-indigo/theme.css +2 -2
  135. package/resources/themes/mira/theme.css +2 -2
  136. package/resources/themes/nano/theme.css +2 -2
  137. package/resources/themes/nova/theme.css +2 -2
  138. package/resources/themes/nova-accent/theme.css +2 -2
  139. package/resources/themes/nova-alt/theme.css +2 -2
  140. package/resources/themes/nova-vue/theme.css +2 -2
  141. package/resources/themes/rhea/theme.css +2 -2
  142. package/resources/themes/saga-blue/theme.css +2 -2
  143. package/resources/themes/saga-green/theme.css +2 -2
  144. package/resources/themes/saga-orange/theme.css +2 -2
  145. package/resources/themes/saga-purple/theme.css +2 -2
  146. package/resources/themes/soho-dark/theme.css +2 -2
  147. package/resources/themes/soho-light/theme.css +2 -2
  148. package/resources/themes/tailwind-light/theme.css +2 -2
  149. package/resources/themes/vela-blue/theme.css +2 -2
  150. package/resources/themes/vela-green/theme.css +2 -2
  151. package/resources/themes/vela-orange/theme.css +2 -2
  152. package/resources/themes/vela-purple/theme.css +2 -2
  153. package/resources/themes/viva-dark/theme.css +2 -2
  154. package/resources/themes/viva-light/theme.css +2 -2
  155. package/selectbutton/BaseSelectButton.vue +1 -1
  156. package/selectbutton/SelectButton.d.ts +2 -2
  157. package/selectbutton/SelectButton.vue +1 -1
  158. package/selectbutton/selectbutton.cjs.js +2 -2
  159. package/selectbutton/selectbutton.cjs.min.js +1 -1
  160. package/selectbutton/selectbutton.esm.js +2 -2
  161. package/selectbutton/selectbutton.esm.min.js +1 -1
  162. package/selectbutton/selectbutton.js +2 -2
  163. package/selectbutton/selectbutton.min.js +1 -1
  164. package/slider/Slider.vue +2 -2
  165. package/slider/slider.cjs.js +1 -1
  166. package/slider/slider.cjs.min.js +1 -1
  167. package/slider/slider.esm.js +1 -1
  168. package/slider/slider.esm.min.js +1 -1
  169. package/slider/slider.js +1 -1
  170. package/slider/slider.min.js +1 -1
  171. package/splitbutton/SplitButton.vue +4 -1
  172. package/splitbutton/splitbutton.cjs.js +3 -1
  173. package/splitbutton/splitbutton.cjs.min.js +1 -1
  174. package/splitbutton/splitbutton.esm.js +3 -1
  175. package/splitbutton/splitbutton.esm.min.js +1 -1
  176. package/splitbutton/splitbutton.js +3 -1
  177. package/splitbutton/splitbutton.min.js +1 -1
  178. package/styleclass/StyleClass.d.ts +6 -6
  179. package/tieredmenu/TieredMenu.d.ts +5 -0
  180. package/tieredmenu/TieredMenuSub.vue +2 -1
  181. package/tieredmenu/tieredmenu.cjs.js +2 -1
  182. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  183. package/tieredmenu/tieredmenu.esm.js +2 -1
  184. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  185. package/tieredmenu/tieredmenu.js +2 -1
  186. package/tieredmenu/tieredmenu.min.js +1 -1
  187. package/tooltip/Tooltip.d.ts +6 -1
  188. package/tooltip/style/tooltipstyle.cjs.js +1 -1
  189. package/tooltip/style/tooltipstyle.cjs.min.js +1 -1
  190. package/tooltip/style/tooltipstyle.esm.js +1 -1
  191. package/tooltip/style/tooltipstyle.esm.min.js +1 -1
  192. package/tooltip/style/tooltipstyle.js +1 -1
  193. package/tooltip/style/tooltipstyle.min.js +1 -1
  194. package/tooltip/tooltip.cjs.js +15 -1
  195. package/tooltip/tooltip.cjs.min.js +1 -1
  196. package/tooltip/tooltip.esm.js +15 -1
  197. package/tooltip/tooltip.esm.min.js +1 -1
  198. package/tooltip/tooltip.js +15 -1
  199. package/tooltip/tooltip.min.js +1 -1
  200. package/tree/Tree.d.ts +6 -1
  201. package/tree/Tree.vue +1 -1
  202. package/tree/tree.cjs.js +1 -1
  203. package/tree/tree.cjs.min.js +1 -1
  204. package/tree/tree.esm.js +1 -1
  205. package/tree/tree.esm.min.js +1 -1
  206. package/tree/tree.js +1 -1
  207. package/tree/tree.min.js +1 -1
  208. package/treetable/TreeTable.d.ts +0 -18
  209. package/utils/utils.cjs.js +2 -2
  210. package/utils/utils.esm.js +2 -2
  211. package/utils/utils.js +2 -2
  212. package/vetur-attributes.json +4 -0
  213. package/vetur-tags.json +1 -0
  214. package/web-types.json +11 -1
@@ -417,14 +417,15 @@ var script = {
417
417
  return false;
418
418
  },
419
419
  isMonthSelected: function isMonthSelected(month) {
420
+ var _this2 = this;
420
421
  if (this.isComparable()) {
421
422
  var value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
422
423
  if (this.isMultipleSelection()) {
423
424
  return value.some(function (currentValue) {
424
- return currentValue.getMonth() === month && currentValue.getFullYear() === currentYear;
425
+ return currentValue.getMonth() === month && currentValue.getFullYear() === _this2.currentYear;
425
426
  });
426
427
  } else {
427
- return value.getMonth() === month && value.getFullYear() === currentYear;
428
+ return value.getMonth() === month && value.getFullYear() === this.currentYear;
428
429
  }
429
430
  }
430
431
  return false;
@@ -702,11 +703,11 @@ var script = {
702
703
  this.currentSecond = Math.floor(date.getSeconds() / this.stepSecond) * this.stepSecond;
703
704
  },
704
705
  bindOutsideClickListener: function bindOutsideClickListener() {
705
- var _this2 = this;
706
+ var _this3 = this;
706
707
  if (!this.outsideClickListener) {
707
708
  this.outsideClickListener = function (event) {
708
- if (_this2.overlayVisible && _this2.isOutsideClicked(event)) {
709
- _this2.overlayVisible = false;
709
+ if (_this3.overlayVisible && _this3.isOutsideClicked(event)) {
710
+ _this3.overlayVisible = false;
710
711
  }
711
712
  };
712
713
  document.addEventListener('mousedown', this.outsideClickListener);
@@ -719,11 +720,11 @@ var script = {
719
720
  }
720
721
  },
721
722
  bindScrollListener: function bindScrollListener() {
722
- var _this3 = this;
723
+ var _this4 = this;
723
724
  if (!this.scrollHandler) {
724
725
  this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.$refs.container, function () {
725
- if (_this3.overlayVisible) {
726
- _this3.overlayVisible = false;
726
+ if (_this4.overlayVisible) {
727
+ _this4.overlayVisible = false;
727
728
  }
728
729
  });
729
730
  }
@@ -735,11 +736,11 @@ var script = {
735
736
  }
736
737
  },
737
738
  bindResizeListener: function bindResizeListener() {
738
- var _this4 = this;
739
+ var _this5 = this;
739
740
  if (!this.resizeListener) {
740
741
  this.resizeListener = function () {
741
- if (_this4.overlayVisible && !utils.DomHandler.isTouchDevice()) {
742
- _this4.overlayVisible = false;
742
+ if (_this5.overlayVisible && !utils.DomHandler.isTouchDevice()) {
743
+ _this5.overlayVisible = false;
743
744
  }
744
745
  };
745
746
  window.addEventListener('resize', this.resizeListener);
@@ -826,7 +827,7 @@ var script = {
826
827
  });
827
828
  },
828
829
  onDateSelect: function onDateSelect(event, dateMeta) {
829
- var _this5 = this;
830
+ var _this6 = this;
830
831
  if (this.disabled || !dateMeta.selectable) {
831
832
  return;
832
833
  }
@@ -838,7 +839,7 @@ var script = {
838
839
  }
839
840
  if (this.isMultipleSelection() && this.isSelected(dateMeta)) {
840
841
  var newValue = this.modelValue.filter(function (date) {
841
- return !_this5.isDateEquals(date, dateMeta);
842
+ return !_this6.isDateEquals(date, dateMeta);
842
843
  });
843
844
  this.updateModel(newValue);
844
845
  } else {
@@ -854,15 +855,15 @@ var script = {
854
855
  }
855
856
  if (this.isSingleSelection() && (!this.showTime || this.hideOnDateTimeSelect)) {
856
857
  setTimeout(function () {
857
- if (_this5.input) {
858
- _this5.input.focus();
858
+ if (_this6.input) {
859
+ _this6.input.focus();
859
860
  }
860
- _this5.overlayVisible = false;
861
+ _this6.overlayVisible = false;
861
862
  }, 150);
862
863
  }
863
864
  },
864
865
  selectDate: function selectDate(dateMeta) {
865
- var _this6 = this;
866
+ var _this7 = this;
866
867
  var date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
867
868
  if (this.showTime) {
868
869
  if (this.hourFormat === '12' && this.pm && this.currentHour != 12) date.setHours(this.currentHour + 12);else date.setHours(this.currentHour);
@@ -906,7 +907,7 @@ var script = {
906
907
  }
907
908
  if (this.isRangeSelection() && this.hideOnRangeSelection && modelVal[1] !== null) {
908
909
  setTimeout(function () {
909
- _this6.overlayVisible = false;
910
+ _this7.overlayVisible = false;
910
911
  }, 150);
911
912
  }
912
913
  this.$emit('date-select', date);
@@ -1112,11 +1113,11 @@ var script = {
1112
1113
  this.clearTimePickerTimer();
1113
1114
  },
1114
1115
  repeat: function repeat(event, interval, type, direction) {
1115
- var _this7 = this;
1116
+ var _this8 = this;
1116
1117
  var i = interval || 500;
1117
1118
  this.clearTimePickerTimer();
1118
1119
  this.timePickerTimer = setTimeout(function () {
1119
- _this7.repeat(event, 100, type, direction);
1120
+ _this8.repeat(event, 100, type, direction);
1120
1121
  }, i);
1121
1122
  switch (type) {
1122
1123
  case 0:
@@ -1246,7 +1247,7 @@ var script = {
1246
1247
  event.preventDefault();
1247
1248
  },
1248
1249
  updateModelTime: function updateModelTime() {
1249
- var _this8 = this;
1250
+ var _this9 = this;
1250
1251
  this.timePickerChange = true;
1251
1252
  var value = this.isComparable() ? this.modelValue : this.viewDate;
1252
1253
  if (this.isRangeSelection()) {
@@ -1272,7 +1273,7 @@ var script = {
1272
1273
  this.updateModel(value);
1273
1274
  this.$emit('date-select', value);
1274
1275
  setTimeout(function () {
1275
- return _this8.timePickerChange = false;
1276
+ return _this9.timePickerChange = false;
1276
1277
  }, 0);
1277
1278
  },
1278
1279
  toggleAMPM: function toggleAMPM(event) {
@@ -1326,14 +1327,14 @@ var script = {
1326
1327
  setTimeout(this.updateFocus, 0);
1327
1328
  },
1328
1329
  enableModality: function enableModality() {
1329
- var _this9 = this;
1330
+ var _this10 = this;
1330
1331
  if (!this.mask) {
1331
1332
  this.mask = document.createElement('div');
1332
1333
  this.mask.style.zIndex = String(parseInt(this.overlay.style.zIndex, 10) - 1);
1333
1334
  this.mask.setAttribute('data-pc-section', 'datepicker-mask');
1334
1335
  !this.isUnstyled && utils.DomHandler.addMultipleClasses(this.mask, 'p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter');
1335
1336
  this.maskClickListener = function () {
1336
- _this9.overlayVisible = false;
1337
+ _this10.overlayVisible = false;
1337
1338
  };
1338
1339
  this.mask.addEventListener('click', this.maskClickListener);
1339
1340
  document.body.appendChild(this.mask);
@@ -1341,14 +1342,14 @@ var script = {
1341
1342
  }
1342
1343
  },
1343
1344
  disableModality: function disableModality() {
1344
- var _this10 = this;
1345
+ var _this11 = this;
1345
1346
  if (this.mask) {
1346
1347
  if (this.isUnstyled) {
1347
1348
  this.destroyMask();
1348
1349
  } else {
1349
1350
  utils.DomHandler.addClass(this.mask, 'p-component-overlay-leave');
1350
1351
  this.mask.addEventListener('animationend', function () {
1351
- _this10.destroyMask();
1352
+ _this11.destroyMask();
1352
1353
  });
1353
1354
  }
1354
1355
  }
@@ -1380,7 +1381,7 @@ var script = {
1380
1381
  }
1381
1382
  },
1382
1383
  isValidSelection: function isValidSelection(value) {
1383
- var _this11 = this;
1384
+ var _this12 = this;
1384
1385
  if (value == null) {
1385
1386
  return true;
1386
1387
  }
@@ -1390,7 +1391,7 @@ var script = {
1390
1391
  isValid = false;
1391
1392
  }
1392
1393
  } else if (value.every(function (v) {
1393
- return _this11.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false);
1394
+ return _this12.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false);
1394
1395
  })) {
1395
1396
  if (this.isRangeSelection()) {
1396
1397
  isValid = value.length > 1 && value[1] > value[0] ? true : false;
@@ -2420,20 +2421,20 @@ var script = {
2420
2421
  }
2421
2422
  },
2422
2423
  monthPickerValues: function monthPickerValues() {
2423
- var _this12 = this;
2424
+ var _this13 = this;
2424
2425
  var monthPickerValues = [];
2425
2426
  var isSelectableMonth = function isSelectableMonth(baseMonth) {
2426
- if (_this12.minDate) {
2427
- var minMonth = _this12.minDate.getMonth();
2428
- var minYear = _this12.minDate.getFullYear();
2429
- if (_this12.currentYear < minYear || _this12.currentYear === minYear && baseMonth < minMonth) {
2427
+ if (_this13.minDate) {
2428
+ var minMonth = _this13.minDate.getMonth();
2429
+ var minYear = _this13.minDate.getFullYear();
2430
+ if (_this13.currentYear < minYear || _this13.currentYear === minYear && baseMonth < minMonth) {
2430
2431
  return false;
2431
2432
  }
2432
2433
  }
2433
- if (_this12.maxDate) {
2434
- var maxMonth = _this12.maxDate.getMonth();
2435
- var maxYear = _this12.maxDate.getFullYear();
2436
- if (_this12.currentYear > maxYear || _this12.currentYear === maxYear && baseMonth > maxMonth) {
2434
+ if (_this13.maxDate) {
2435
+ var maxMonth = _this13.maxDate.getMonth();
2436
+ var maxYear = _this13.maxDate.getFullYear();
2437
+ if (_this13.currentYear > maxYear || _this13.currentYear === maxYear && baseMonth > maxMonth) {
2437
2438
  return false;
2438
2439
  }
2439
2440
  }
@@ -2448,15 +2449,15 @@ var script = {
2448
2449
  return monthPickerValues;
2449
2450
  },
2450
2451
  yearPickerValues: function yearPickerValues() {
2451
- var _this13 = this;
2452
+ var _this14 = this;
2452
2453
  var yearPickerValues = [];
2453
2454
  var base = this.currentYear - this.currentYear % 10;
2454
2455
  var isSelectableYear = function isSelectableYear(baseYear) {
2455
- if (_this13.minDate) {
2456
- if (_this13.minDate.getFullYear() > baseYear) return false;
2456
+ if (_this14.minDate) {
2457
+ if (_this14.minDate.getFullYear() > baseYear) return false;
2457
2458
  }
2458
- if (_this13.maxDate) {
2459
- if (_this13.maxDate.getFullYear() < baseYear) return false;
2459
+ if (_this14.maxDate) {
2460
+ if (_this14.maxDate.getFullYear() < baseYear) return false;
2460
2461
  }
2461
2462
  return true;
2462
2463
  };