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.
- package/README.md +50 -20
- package/animate/Animate.d.ts +87 -0
- package/animate/animate.cjs.js +71 -0
- package/animate/animate.cjs.min.js +1 -0
- package/animate/animate.esm.js +65 -0
- package/animate/animate.esm.min.js +1 -0
- package/animate/animate.js +72 -0
- package/animate/animate.min.js +1 -0
- package/animate/package.json +6 -0
- package/animate/style/AnimateStyle.d.ts +3 -0
- package/animate/style/animatestyle.cjs.js +5 -0
- package/animate/style/animatestyle.cjs.min.js +1 -0
- package/animate/style/animatestyle.esm.js +3 -0
- package/animate/style/animatestyle.esm.min.js +1 -0
- package/animate/style/animatestyle.js +10 -0
- package/animate/style/animatestyle.min.js +1 -0
- package/animate/style/package.json +6 -0
- package/calendar/Calendar.vue +2 -2
- package/calendar/calendar.cjs.js +43 -42
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.esm.js +43 -42
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +43 -42
- package/calendar/calendar.min.js +1 -1
- package/config/PrimeVue.d.ts +2 -0
- package/config/config.cjs.js +15 -13
- package/config/config.cjs.min.js +1 -1
- package/config/config.esm.js +15 -13
- package/config/config.esm.min.js +1 -1
- package/config/config.js +15 -13
- package/config/config.min.js +1 -1
- package/contextmenu/ContextMenu.d.ts +5 -0
- package/contextmenu/ContextMenuSub.vue +1 -0
- package/contextmenu/contextmenu.cjs.js +1 -0
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.esm.js +1 -0
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +1 -0
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +447 -392
- package/core/core.min.js +9 -7
- package/megamenu/MegaMenu.d.ts +5 -0
- package/megamenu/MegaMenuSub.vue +2 -1
- package/megamenu/megamenu.cjs.js +2 -1
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +2 -1
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +2 -1
- package/megamenu/megamenu.min.js +1 -1
- package/menu/Menu.d.ts +5 -0
- package/menu/Menu.vue +1 -1
- package/menu/Menuitem.vue +2 -1
- package/menu/menu.cjs.js +3 -2
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.esm.js +3 -2
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +3 -2
- package/menu/menu.min.js +1 -1
- package/menubar/Menubar.d.ts +5 -0
- package/menubar/MenubarSub.vue +1 -0
- package/menubar/menubar.cjs.js +1 -0
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.esm.js +1 -0
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +1 -0
- package/menubar/menubar.min.js +1 -1
- package/multiselect/MultiSelect.vue +4 -3
- package/multiselect/multiselect.cjs.js +4 -3
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.esm.js +4 -3
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +4 -3
- package/multiselect/multiselect.min.js +1 -1
- package/overlaypanel/BaseOverlayPanel.vue +4 -0
- package/overlaypanel/OverlayPanel.d.ts +5 -0
- package/overlaypanel/OverlayPanel.vue +22 -0
- package/overlaypanel/overlaypanel.cjs.js +25 -0
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.esm.js +25 -0
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +25 -0
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +17 -3
- package/panelmenu/PanelMenu.d.ts +13 -0
- package/panelmenu/PanelMenu.vue +20 -2
- package/panelmenu/PanelMenuSub.vue +2 -1
- package/panelmenu/panelmenu.cjs.js +20 -5
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.esm.js +20 -5
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +21 -6
- package/panelmenu/panelmenu.min.js +1 -1
- package/passthrough/tailwind/index.cjs.js +397 -371
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +397 -371
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +397 -371
- package/passthrough/tailwind/index.min.js +1 -1
- package/picklist/PickList.vue +2 -2
- package/picklist/picklist.cjs.js +2 -2
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +2 -2
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +2 -2
- package/picklist/picklist.min.js +1 -1
- package/resources/themes/arya-blue/theme.css +2 -2
- package/resources/themes/arya-green/theme.css +2 -2
- package/resources/themes/arya-orange/theme.css +2 -2
- package/resources/themes/arya-purple/theme.css +2 -2
- package/resources/themes/bootstrap4-dark-blue/theme.css +2 -2
- package/resources/themes/bootstrap4-dark-purple/theme.css +2 -2
- package/resources/themes/bootstrap4-light-blue/theme.css +2 -2
- package/resources/themes/bootstrap4-light-purple/theme.css +2 -2
- package/resources/themes/fluent-light/theme.css +2 -2
- package/resources/themes/lara-dark-blue/theme.css +587 -575
- package/resources/themes/lara-dark-indigo/theme.css +587 -575
- package/resources/themes/lara-dark-purple/theme.css +587 -575
- package/resources/themes/lara-dark-teal/theme.css +662 -650
- package/resources/themes/lara-light-blue/theme.css +629 -625
- package/resources/themes/lara-light-indigo/theme.css +629 -625
- package/resources/themes/lara-light-purple/theme.css +629 -625
- package/resources/themes/lara-light-teal/theme.css +879 -875
- package/resources/themes/luna-amber/theme.css +2 -2
- package/resources/themes/luna-blue/theme.css +2 -2
- package/resources/themes/luna-green/theme.css +2 -2
- package/resources/themes/luna-pink/theme.css +2 -2
- package/resources/themes/md-dark-deeppurple/theme.css +2 -2
- package/resources/themes/md-dark-indigo/theme.css +2 -2
- package/resources/themes/md-light-deeppurple/theme.css +2 -2
- package/resources/themes/md-light-indigo/theme.css +2 -2
- package/resources/themes/mdc-dark-deeppurple/theme.css +2 -2
- package/resources/themes/mdc-dark-indigo/theme.css +2 -2
- package/resources/themes/mdc-light-deeppurple/theme.css +2 -2
- package/resources/themes/mdc-light-indigo/theme.css +2 -2
- package/resources/themes/mira/theme.css +2 -2
- package/resources/themes/nano/theme.css +2 -2
- package/resources/themes/nova/theme.css +2 -2
- package/resources/themes/nova-accent/theme.css +2 -2
- package/resources/themes/nova-alt/theme.css +2 -2
- package/resources/themes/nova-vue/theme.css +2 -2
- package/resources/themes/rhea/theme.css +2 -2
- package/resources/themes/saga-blue/theme.css +2 -2
- package/resources/themes/saga-green/theme.css +2 -2
- package/resources/themes/saga-orange/theme.css +2 -2
- package/resources/themes/saga-purple/theme.css +2 -2
- package/resources/themes/soho-dark/theme.css +2 -2
- package/resources/themes/soho-light/theme.css +2 -2
- package/resources/themes/tailwind-light/theme.css +2 -2
- package/resources/themes/vela-blue/theme.css +2 -2
- package/resources/themes/vela-green/theme.css +2 -2
- package/resources/themes/vela-orange/theme.css +2 -2
- package/resources/themes/vela-purple/theme.css +2 -2
- package/resources/themes/viva-dark/theme.css +2 -2
- package/resources/themes/viva-light/theme.css +2 -2
- package/selectbutton/BaseSelectButton.vue +1 -1
- package/selectbutton/SelectButton.d.ts +2 -2
- package/selectbutton/SelectButton.vue +1 -1
- package/selectbutton/selectbutton.cjs.js +2 -2
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.esm.js +2 -2
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +2 -2
- package/selectbutton/selectbutton.min.js +1 -1
- package/slider/Slider.vue +2 -2
- package/slider/slider.cjs.js +1 -1
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +1 -1
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +1 -1
- package/slider/slider.min.js +1 -1
- package/splitbutton/SplitButton.vue +4 -1
- package/splitbutton/splitbutton.cjs.js +3 -1
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.esm.js +3 -1
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +3 -1
- package/splitbutton/splitbutton.min.js +1 -1
- package/styleclass/StyleClass.d.ts +6 -6
- package/tieredmenu/TieredMenu.d.ts +5 -0
- package/tieredmenu/TieredMenuSub.vue +2 -1
- package/tieredmenu/tieredmenu.cjs.js +2 -1
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +2 -1
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +2 -1
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/tooltip/Tooltip.d.ts +6 -1
- package/tooltip/style/tooltipstyle.cjs.js +1 -1
- package/tooltip/style/tooltipstyle.cjs.min.js +1 -1
- package/tooltip/style/tooltipstyle.esm.js +1 -1
- package/tooltip/style/tooltipstyle.esm.min.js +1 -1
- package/tooltip/style/tooltipstyle.js +1 -1
- package/tooltip/style/tooltipstyle.min.js +1 -1
- package/tooltip/tooltip.cjs.js +15 -1
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +15 -1
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +15 -1
- package/tooltip/tooltip.min.js +1 -1
- package/tree/Tree.d.ts +6 -1
- package/tree/Tree.vue +1 -1
- package/tree/tree.cjs.js +1 -1
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.esm.js +1 -1
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +1 -1
- package/tree/tree.min.js +1 -1
- package/treetable/TreeTable.d.ts +0 -18
- package/utils/utils.cjs.js +2 -2
- package/utils/utils.esm.js +2 -2
- package/utils/utils.js +2 -2
- package/vetur-attributes.json +4 -0
- package/vetur-tags.json +1 -0
- package/web-types.json +11 -1
package/calendar/calendar.js
CHANGED
|
@@ -405,14 +405,15 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
405
405
|
return false;
|
|
406
406
|
},
|
|
407
407
|
isMonthSelected: function isMonthSelected(month) {
|
|
408
|
+
var _this2 = this;
|
|
408
409
|
if (this.isComparable()) {
|
|
409
410
|
var value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
|
|
410
411
|
if (this.isMultipleSelection()) {
|
|
411
412
|
return value.some(function (currentValue) {
|
|
412
|
-
return currentValue.getMonth() === month && currentValue.getFullYear() === currentYear;
|
|
413
|
+
return currentValue.getMonth() === month && currentValue.getFullYear() === _this2.currentYear;
|
|
413
414
|
});
|
|
414
415
|
} else {
|
|
415
|
-
return value.getMonth() === month && value.getFullYear() === currentYear;
|
|
416
|
+
return value.getMonth() === month && value.getFullYear() === this.currentYear;
|
|
416
417
|
}
|
|
417
418
|
}
|
|
418
419
|
return false;
|
|
@@ -690,11 +691,11 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
690
691
|
this.currentSecond = Math.floor(date.getSeconds() / this.stepSecond) * this.stepSecond;
|
|
691
692
|
},
|
|
692
693
|
bindOutsideClickListener: function bindOutsideClickListener() {
|
|
693
|
-
var
|
|
694
|
+
var _this3 = this;
|
|
694
695
|
if (!this.outsideClickListener) {
|
|
695
696
|
this.outsideClickListener = function (event) {
|
|
696
|
-
if (
|
|
697
|
-
|
|
697
|
+
if (_this3.overlayVisible && _this3.isOutsideClicked(event)) {
|
|
698
|
+
_this3.overlayVisible = false;
|
|
698
699
|
}
|
|
699
700
|
};
|
|
700
701
|
document.addEventListener('mousedown', this.outsideClickListener);
|
|
@@ -707,11 +708,11 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
707
708
|
}
|
|
708
709
|
},
|
|
709
710
|
bindScrollListener: function bindScrollListener() {
|
|
710
|
-
var
|
|
711
|
+
var _this4 = this;
|
|
711
712
|
if (!this.scrollHandler) {
|
|
712
713
|
this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.$refs.container, function () {
|
|
713
|
-
if (
|
|
714
|
-
|
|
714
|
+
if (_this4.overlayVisible) {
|
|
715
|
+
_this4.overlayVisible = false;
|
|
715
716
|
}
|
|
716
717
|
});
|
|
717
718
|
}
|
|
@@ -723,11 +724,11 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
723
724
|
}
|
|
724
725
|
},
|
|
725
726
|
bindResizeListener: function bindResizeListener() {
|
|
726
|
-
var
|
|
727
|
+
var _this5 = this;
|
|
727
728
|
if (!this.resizeListener) {
|
|
728
729
|
this.resizeListener = function () {
|
|
729
|
-
if (
|
|
730
|
-
|
|
730
|
+
if (_this5.overlayVisible && !utils.DomHandler.isTouchDevice()) {
|
|
731
|
+
_this5.overlayVisible = false;
|
|
731
732
|
}
|
|
732
733
|
};
|
|
733
734
|
window.addEventListener('resize', this.resizeListener);
|
|
@@ -814,7 +815,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
814
815
|
});
|
|
815
816
|
},
|
|
816
817
|
onDateSelect: function onDateSelect(event, dateMeta) {
|
|
817
|
-
var
|
|
818
|
+
var _this6 = this;
|
|
818
819
|
if (this.disabled || !dateMeta.selectable) {
|
|
819
820
|
return;
|
|
820
821
|
}
|
|
@@ -826,7 +827,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
826
827
|
}
|
|
827
828
|
if (this.isMultipleSelection() && this.isSelected(dateMeta)) {
|
|
828
829
|
var newValue = this.modelValue.filter(function (date) {
|
|
829
|
-
return !
|
|
830
|
+
return !_this6.isDateEquals(date, dateMeta);
|
|
830
831
|
});
|
|
831
832
|
this.updateModel(newValue);
|
|
832
833
|
} else {
|
|
@@ -842,15 +843,15 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
842
843
|
}
|
|
843
844
|
if (this.isSingleSelection() && (!this.showTime || this.hideOnDateTimeSelect)) {
|
|
844
845
|
setTimeout(function () {
|
|
845
|
-
if (
|
|
846
|
-
|
|
846
|
+
if (_this6.input) {
|
|
847
|
+
_this6.input.focus();
|
|
847
848
|
}
|
|
848
|
-
|
|
849
|
+
_this6.overlayVisible = false;
|
|
849
850
|
}, 150);
|
|
850
851
|
}
|
|
851
852
|
},
|
|
852
853
|
selectDate: function selectDate(dateMeta) {
|
|
853
|
-
var
|
|
854
|
+
var _this7 = this;
|
|
854
855
|
var date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
|
|
855
856
|
if (this.showTime) {
|
|
856
857
|
if (this.hourFormat === '12' && this.pm && this.currentHour != 12) date.setHours(this.currentHour + 12);else date.setHours(this.currentHour);
|
|
@@ -894,7 +895,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
894
895
|
}
|
|
895
896
|
if (this.isRangeSelection() && this.hideOnRangeSelection && modelVal[1] !== null) {
|
|
896
897
|
setTimeout(function () {
|
|
897
|
-
|
|
898
|
+
_this7.overlayVisible = false;
|
|
898
899
|
}, 150);
|
|
899
900
|
}
|
|
900
901
|
this.$emit('date-select', date);
|
|
@@ -1100,11 +1101,11 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
1100
1101
|
this.clearTimePickerTimer();
|
|
1101
1102
|
},
|
|
1102
1103
|
repeat: function repeat(event, interval, type, direction) {
|
|
1103
|
-
var
|
|
1104
|
+
var _this8 = this;
|
|
1104
1105
|
var i = interval || 500;
|
|
1105
1106
|
this.clearTimePickerTimer();
|
|
1106
1107
|
this.timePickerTimer = setTimeout(function () {
|
|
1107
|
-
|
|
1108
|
+
_this8.repeat(event, 100, type, direction);
|
|
1108
1109
|
}, i);
|
|
1109
1110
|
switch (type) {
|
|
1110
1111
|
case 0:
|
|
@@ -1234,7 +1235,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
1234
1235
|
event.preventDefault();
|
|
1235
1236
|
},
|
|
1236
1237
|
updateModelTime: function updateModelTime() {
|
|
1237
|
-
var
|
|
1238
|
+
var _this9 = this;
|
|
1238
1239
|
this.timePickerChange = true;
|
|
1239
1240
|
var value = this.isComparable() ? this.modelValue : this.viewDate;
|
|
1240
1241
|
if (this.isRangeSelection()) {
|
|
@@ -1260,7 +1261,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
1260
1261
|
this.updateModel(value);
|
|
1261
1262
|
this.$emit('date-select', value);
|
|
1262
1263
|
setTimeout(function () {
|
|
1263
|
-
return
|
|
1264
|
+
return _this9.timePickerChange = false;
|
|
1264
1265
|
}, 0);
|
|
1265
1266
|
},
|
|
1266
1267
|
toggleAMPM: function toggleAMPM(event) {
|
|
@@ -1314,14 +1315,14 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
1314
1315
|
setTimeout(this.updateFocus, 0);
|
|
1315
1316
|
},
|
|
1316
1317
|
enableModality: function enableModality() {
|
|
1317
|
-
var
|
|
1318
|
+
var _this10 = this;
|
|
1318
1319
|
if (!this.mask) {
|
|
1319
1320
|
this.mask = document.createElement('div');
|
|
1320
1321
|
this.mask.style.zIndex = String(parseInt(this.overlay.style.zIndex, 10) - 1);
|
|
1321
1322
|
this.mask.setAttribute('data-pc-section', 'datepicker-mask');
|
|
1322
1323
|
!this.isUnstyled && utils.DomHandler.addMultipleClasses(this.mask, 'p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter');
|
|
1323
1324
|
this.maskClickListener = function () {
|
|
1324
|
-
|
|
1325
|
+
_this10.overlayVisible = false;
|
|
1325
1326
|
};
|
|
1326
1327
|
this.mask.addEventListener('click', this.maskClickListener);
|
|
1327
1328
|
document.body.appendChild(this.mask);
|
|
@@ -1329,14 +1330,14 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
1329
1330
|
}
|
|
1330
1331
|
},
|
|
1331
1332
|
disableModality: function disableModality() {
|
|
1332
|
-
var
|
|
1333
|
+
var _this11 = this;
|
|
1333
1334
|
if (this.mask) {
|
|
1334
1335
|
if (this.isUnstyled) {
|
|
1335
1336
|
this.destroyMask();
|
|
1336
1337
|
} else {
|
|
1337
1338
|
utils.DomHandler.addClass(this.mask, 'p-component-overlay-leave');
|
|
1338
1339
|
this.mask.addEventListener('animationend', function () {
|
|
1339
|
-
|
|
1340
|
+
_this11.destroyMask();
|
|
1340
1341
|
});
|
|
1341
1342
|
}
|
|
1342
1343
|
}
|
|
@@ -1368,7 +1369,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
1368
1369
|
}
|
|
1369
1370
|
},
|
|
1370
1371
|
isValidSelection: function isValidSelection(value) {
|
|
1371
|
-
var
|
|
1372
|
+
var _this12 = this;
|
|
1372
1373
|
if (value == null) {
|
|
1373
1374
|
return true;
|
|
1374
1375
|
}
|
|
@@ -1378,7 +1379,7 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
1378
1379
|
isValid = false;
|
|
1379
1380
|
}
|
|
1380
1381
|
} else if (value.every(function (v) {
|
|
1381
|
-
return
|
|
1382
|
+
return _this12.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false);
|
|
1382
1383
|
})) {
|
|
1383
1384
|
if (this.isRangeSelection()) {
|
|
1384
1385
|
isValid = value.length > 1 && value[1] > value[0] ? true : false;
|
|
@@ -2408,20 +2409,20 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
2408
2409
|
}
|
|
2409
2410
|
},
|
|
2410
2411
|
monthPickerValues: function monthPickerValues() {
|
|
2411
|
-
var
|
|
2412
|
+
var _this13 = this;
|
|
2412
2413
|
var monthPickerValues = [];
|
|
2413
2414
|
var isSelectableMonth = function isSelectableMonth(baseMonth) {
|
|
2414
|
-
if (
|
|
2415
|
-
var minMonth =
|
|
2416
|
-
var minYear =
|
|
2417
|
-
if (
|
|
2415
|
+
if (_this13.minDate) {
|
|
2416
|
+
var minMonth = _this13.minDate.getMonth();
|
|
2417
|
+
var minYear = _this13.minDate.getFullYear();
|
|
2418
|
+
if (_this13.currentYear < minYear || _this13.currentYear === minYear && baseMonth < minMonth) {
|
|
2418
2419
|
return false;
|
|
2419
2420
|
}
|
|
2420
2421
|
}
|
|
2421
|
-
if (
|
|
2422
|
-
var maxMonth =
|
|
2423
|
-
var maxYear =
|
|
2424
|
-
if (
|
|
2422
|
+
if (_this13.maxDate) {
|
|
2423
|
+
var maxMonth = _this13.maxDate.getMonth();
|
|
2424
|
+
var maxYear = _this13.maxDate.getFullYear();
|
|
2425
|
+
if (_this13.currentYear > maxYear || _this13.currentYear === maxYear && baseMonth > maxMonth) {
|
|
2425
2426
|
return false;
|
|
2426
2427
|
}
|
|
2427
2428
|
}
|
|
@@ -2436,15 +2437,15 @@ this.primevue.calendar = (function (Button, CalendarIcon, ChevronDownIcon, Chevr
|
|
|
2436
2437
|
return monthPickerValues;
|
|
2437
2438
|
},
|
|
2438
2439
|
yearPickerValues: function yearPickerValues() {
|
|
2439
|
-
var
|
|
2440
|
+
var _this14 = this;
|
|
2440
2441
|
var yearPickerValues = [];
|
|
2441
2442
|
var base = this.currentYear - this.currentYear % 10;
|
|
2442
2443
|
var isSelectableYear = function isSelectableYear(baseYear) {
|
|
2443
|
-
if (
|
|
2444
|
-
if (
|
|
2444
|
+
if (_this14.minDate) {
|
|
2445
|
+
if (_this14.minDate.getFullYear() > baseYear) return false;
|
|
2445
2446
|
}
|
|
2446
|
-
if (
|
|
2447
|
-
if (
|
|
2447
|
+
if (_this14.maxDate) {
|
|
2448
|
+
if (_this14.maxDate.getFullYear() < baseYear) return false;
|
|
2448
2449
|
}
|
|
2449
2450
|
return true;
|
|
2450
2451
|
};
|