vue-functional-calendar 2.9.91 → 2.9.92
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/.github/README.md +0 -1
- package/dist/FunctionalCalendar.common.js +12 -7
- package/dist/FunctionalCalendar.common.js.map +1 -1
- package/dist/FunctionalCalendar.umd.js +12 -7
- package/dist/FunctionalCalendar.umd.js.map +1 -1
- package/dist/FunctionalCalendar.umd.min.js +1 -1
- package/dist/FunctionalCalendar.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/FunctionalCalendar.vue +2 -0
package/.github/README.md
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
<p align="center">Modern calendar and datepicker module for Vue.js</p>
|
|
5
5
|
|
|
6
6
|
[](https://offset.earth/treeware?gift-trees)
|
|
7
|
-
[](https://twitter.com/intent/tweet?text=Lightweight,%20high%20performance%20calendar%20component%20based%20on%20Vue.js&url=https://github.com/ManukMinasyan/vue-functional-calendar&via=github&hashtags=vue,calendar,design,developers)
|
|
8
7
|
|
|
9
8
|
[](https://travis-ci.org/ManukMinasyan/vue-functional-calendar)
|
|
10
9
|
[](https://www.npmjs.com/package/vue-functional-calendar)
|
|
@@ -4516,7 +4516,7 @@ if (typeof window !== 'undefined') {
|
|
|
4516
4516
|
// Indicate to webpack that this file can be concatenated
|
|
4517
4517
|
/* harmony default export */ var setPublicPath = (null);
|
|
4518
4518
|
|
|
4519
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b737400a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FunctionalCalendar.vue?vue&type=template&id=
|
|
4519
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b737400a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FunctionalCalendar.vue?vue&type=template&id=4c93d1a3&
|
|
4520
4520
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"popoverElement",staticClass:"vfc-popover-container",attrs:{"tabindex":"0"}},[_c('PickerInputs',{attrs:{"fConfigs":_vm.fConfigs,"singleSelectedDate":_vm.singleSelectedDate,"calendar":_vm.calendar},scopedSlots:_vm._u([{key:"dateRangeInputs",fn:function(props){return [_vm._t("dateRangeInputs",null,{"startDate":props.startDate,"endDate":props.endDate,"isTypeable":_vm.fConfigs.isTypeable})]}},{key:"datePickerInput",fn:function(props){return [_vm._t("datePickerInput",null,{"selectedDate":props.selectedDate,"isTypeable":_vm.fConfigs.isTypeable})]}}],null,true)}),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showCalendar),expression:"showCalendar"}],ref:"mainContainer",staticClass:"vfc-main-container",class:{
|
|
4521
4521
|
'vfc-modal':
|
|
4522
4522
|
_vm.fConfigs.isModal &&
|
|
@@ -4543,7 +4543,7 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
|
|
|
4543
4543
|
var staticRenderFns = []
|
|
4544
4544
|
|
|
4545
4545
|
|
|
4546
|
-
// CONCATENATED MODULE: ./src/components/FunctionalCalendar.vue?vue&type=template&id=
|
|
4546
|
+
// CONCATENATED MODULE: ./src/components/FunctionalCalendar.vue?vue&type=template&id=4c93d1a3&
|
|
4547
4547
|
|
|
4548
4548
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.assign.js
|
|
4549
4549
|
var es6_object_assign = __webpack_require__("f751");
|
|
@@ -7792,6 +7792,8 @@ var hUniqueID = function hUniqueID() {
|
|
|
7792
7792
|
this.updateCalendar();
|
|
7793
7793
|
},
|
|
7794
7794
|
pickYear: function pickYear(year, calendarKey) {
|
|
7795
|
+
var _this5 = this;
|
|
7796
|
+
|
|
7795
7797
|
this.showYearPicker = false;
|
|
7796
7798
|
|
|
7797
7799
|
if (!this.isSeparately) {
|
|
@@ -7799,12 +7801,15 @@ var hUniqueID = function hUniqueID() {
|
|
|
7799
7801
|
var date = currentCalendar.date;
|
|
7800
7802
|
currentCalendar.date = new Date(year, date.getMonth() + 1, 0);
|
|
7801
7803
|
currentCalendar.key += hUniqueID();
|
|
7804
|
+
|
|
7805
|
+
_this5.$emit('changedYear', currentCalendar.date);
|
|
7802
7806
|
});
|
|
7803
7807
|
} else {
|
|
7804
7808
|
var currentCalendar = this.listCalendars[calendarKey];
|
|
7805
7809
|
var date = currentCalendar.date;
|
|
7806
7810
|
currentCalendar.date = new Date(year, date.getMonth() + 1, 0);
|
|
7807
7811
|
currentCalendar.key += hUniqueID();
|
|
7812
|
+
this.$emit('changedYear', currentCalendar.date);
|
|
7808
7813
|
}
|
|
7809
7814
|
|
|
7810
7815
|
this.updateCalendar();
|
|
@@ -7921,19 +7926,19 @@ var hUniqueID = function hUniqueID() {
|
|
|
7921
7926
|
}
|
|
7922
7927
|
},
|
|
7923
7928
|
hideMonthYearPicker: function hideMonthYearPicker(e) {
|
|
7924
|
-
var
|
|
7929
|
+
var _this6 = this;
|
|
7925
7930
|
|
|
7926
7931
|
this.$nextTick(function () {
|
|
7927
|
-
if (
|
|
7928
|
-
var key =
|
|
7932
|
+
if (_this6.showMonthPicker || _this6.showYearPicker) {
|
|
7933
|
+
var key = _this6.showMonthPicker ? _this6.showMonthPicker - 1 : _this6.showYearPicker - 1;
|
|
7929
7934
|
|
|
7930
|
-
var MYactive =
|
|
7935
|
+
var MYactive = _this6.$refs.calendars.querySelectorAll(".vfc-content-MY-picker")[key];
|
|
7931
7936
|
|
|
7932
7937
|
if (MYactive.contains(e.target)) {
|
|
7933
7938
|
return;
|
|
7934
7939
|
}
|
|
7935
7940
|
|
|
7936
|
-
return
|
|
7941
|
+
return _this6.showMonthPicker = _this6.showYearPicker = false;
|
|
7937
7942
|
}
|
|
7938
7943
|
});
|
|
7939
7944
|
},
|