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.cjs.js
CHANGED
|
@@ -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
|
|
706
|
+
var _this3 = this;
|
|
706
707
|
if (!this.outsideClickListener) {
|
|
707
708
|
this.outsideClickListener = function (event) {
|
|
708
|
-
if (
|
|
709
|
-
|
|
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
|
|
723
|
+
var _this4 = this;
|
|
723
724
|
if (!this.scrollHandler) {
|
|
724
725
|
this.scrollHandler = new utils.ConnectedOverlayScrollHandler(this.$refs.container, function () {
|
|
725
|
-
if (
|
|
726
|
-
|
|
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
|
|
739
|
+
var _this5 = this;
|
|
739
740
|
if (!this.resizeListener) {
|
|
740
741
|
this.resizeListener = function () {
|
|
741
|
-
if (
|
|
742
|
-
|
|
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
|
|
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 !
|
|
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 (
|
|
858
|
-
|
|
858
|
+
if (_this6.input) {
|
|
859
|
+
_this6.input.focus();
|
|
859
860
|
}
|
|
860
|
-
|
|
861
|
+
_this6.overlayVisible = false;
|
|
861
862
|
}, 150);
|
|
862
863
|
}
|
|
863
864
|
},
|
|
864
865
|
selectDate: function selectDate(dateMeta) {
|
|
865
|
-
var
|
|
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
|
-
|
|
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
|
|
1116
|
+
var _this8 = this;
|
|
1116
1117
|
var i = interval || 500;
|
|
1117
1118
|
this.clearTimePickerTimer();
|
|
1118
1119
|
this.timePickerTimer = setTimeout(function () {
|
|
1119
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
2424
|
+
var _this13 = this;
|
|
2424
2425
|
var monthPickerValues = [];
|
|
2425
2426
|
var isSelectableMonth = function isSelectableMonth(baseMonth) {
|
|
2426
|
-
if (
|
|
2427
|
-
var minMonth =
|
|
2428
|
-
var minYear =
|
|
2429
|
-
if (
|
|
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 (
|
|
2434
|
-
var maxMonth =
|
|
2435
|
-
var maxYear =
|
|
2436
|
-
if (
|
|
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
|
|
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 (
|
|
2456
|
-
if (
|
|
2456
|
+
if (_this14.minDate) {
|
|
2457
|
+
if (_this14.minDate.getFullYear() > baseYear) return false;
|
|
2457
2458
|
}
|
|
2458
|
-
if (
|
|
2459
|
-
if (
|
|
2459
|
+
if (_this14.maxDate) {
|
|
2460
|
+
if (_this14.maxDate.getFullYear() < baseYear) return false;
|
|
2460
2461
|
}
|
|
2461
2462
|
return true;
|
|
2462
2463
|
};
|