vue-functional-calendar 2.9.9 → 2.9.93

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 CHANGED
@@ -3,13 +3,11 @@
3
3
  <h1 align="center">Vue Functional Calendar</h1>
4
4
  <p align="center">Modern calendar and datepicker module for Vue.js</p>
5
5
 
6
- [![Buy us a tree](https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-lightgreen?style=for-the-badge)](https://offset.earth/treeware?gift-trees)
7
- [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](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
-
9
6
  [![Build Status](https://travis-ci.org/ManukMinasyan/vue-functional-calendar.svg?branch=master)](https://travis-ci.org/ManukMinasyan/vue-functional-calendar)
10
7
  [![Version](https://img.shields.io/npm/v/vue-functional-calendar.svg)](https://www.npmjs.com/package/vue-functional-calendar)
11
8
  [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
12
9
  [![Downloads](https://img.shields.io/npm/dt/vue-functional-calendar.svg)](https://www.npmjs.com/package/vue-functional-calendar)
10
+ [![Plant Tree](https://img.shields.io/badge/dynamic/json?color=brightgreen&label=Plant%20Tree&query=%24.total&url=https%3A%2F%2Fpublic.offset.earth%2Fusers%2Ftreeware%2Ftrees)](https://plant.treeware.earth/ManukMinasyan/vue-functional-calendar)
13
11
  ___
14
12
  ## Demo
15
13
 
@@ -0,0 +1,49 @@
1
+ # Contributing to Vue-Functional-Calendar
2
+ We love your feedback! We need to make adding to this task as simple and straightforward as could be expected, regardless of whether it's:
3
+
4
+ - Detailing a bug
5
+ - Examining the present status of the code
6
+ - Presenting a fix
7
+ - Proposing new highlights
8
+ - Turning into a maintainer
9
+
10
+ ## We Develop with Github
11
+ We use github to have code, to follow issues and component demands, as well as acknowledge pull requests.
12
+
13
+ ## We Use [Github Flow](https://docs.github.com/en/get-started/quickstart/github-flow), So All Code Changes Happen Through Pull Requests
14
+ Pull requests are the most ideal way to propose changes to the codebase (we use [Github Flow](https://docs.github.com/en/get-started/quickstart/github-flow)). We effectively welcome your draw demands:
15
+
16
+ 1. Fork the repo and make your branch from 'master'.
17
+ 2. Assuming you've added code that ought to be tried, add tests.
18
+ 3. On the off chance that you've changed APIs, update the documentation.
19
+ 4. Guarantee the test suite passes.
20
+ 5. Ensure your code lints.
21
+ 6. Issue that pull request!
22
+
23
+ ## Any commitments you cause will to be under the MIT Software License
24
+ To put it plainly, when you submit code changes, your entries are perceived to be under a similar [MIT License](http://choosealicense.com/licenses/mit/) that covers the task. Go ahead and contact the maintainers assuming that is a worry.
25
+
26
+ ## Report bugs utilizing Github's [issues](https://github.com/ManukMinasyan/vue-functional-calendar/issues)
27
+ We use GitHub issues to follow public bugs. Report a bug by [opening a new issue](https://github.com/ManukMinasyan/vue-functional-calendar/issues/new); it's just simple!
28
+
29
+ ## Compose bug reports with detail, foundation, and test code
30
+
31
+ **Extraordinary Bug Reports** will generally have:
32
+
33
+ - A fast outline or potentially foundation
34
+ - Steps to repeat
35
+ - Be explicit!
36
+ - Give test code if possible.
37
+ - What you expected would occur
38
+ - What really occurs
39
+ - Notes (perhaps including why you figure this may be occurring, or stuff you attempted that didn't work)
40
+
41
+ Individuals *love* exhaustive bug reports. I'm not in any event, joking.
42
+
43
+ ## Use a Consistent Coding Style
44
+
45
+ * 2 spaces for space rather than tabs
46
+ * You can have a go at running 'npm run build up' for style unification
47
+
48
+ ## License
49
+ By contributing, you concur that your commitments will be authorized under its MIT License.
package/README.md CHANGED
@@ -49,9 +49,4 @@ It’s now common knowledge that one of the best tools to tackle the climate cri
49
49
 
50
50
  You can buy trees here [offset.earth/treeware](https://offset.earth/treeware?gift-trees)
51
51
 
52
- Read more about Treeware at [treeware.earth](http://treeware.earth)
53
-
54
- ## Sponsor
55
- ![Scheduling API](https://user-images.githubusercontent.com/9488406/125080407-0dd25780-e0c5-11eb-9f70-ef958968674a.png)
56
-
57
- This project is sponsored by **Spurwing**, where their API Makes Adding Scheduling Quick, Reliable and Scalable. Use Spurwing to build and integrate Scheduling, Booking & Calendar features in your project. Read more about Spurwing's [**Scheduling API**](https://www.spurwing.io/).
52
+ Read more about Treeware at [treeware.earth](http://treeware.earth)
@@ -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=2e159d63&
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=2e159d63&
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 _this5 = this;
7929
+ var _this6 = this;
7925
7930
 
7926
7931
  this.$nextTick(function () {
7927
- if (_this5.showMonthPicker || _this5.showYearPicker) {
7928
- var key = _this5.showMonthPicker ? _this5.showMonthPicker - 1 : _this5.showYearPicker - 1;
7932
+ if (_this6.showMonthPicker || _this6.showYearPicker) {
7933
+ var key = _this6.showMonthPicker ? _this6.showMonthPicker - 1 : _this6.showYearPicker - 1;
7929
7934
 
7930
- var MYactive = _this5.$refs.calendars.querySelectorAll(".vfc-content-MY-picker")[key];
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 _this5.showMonthPicker = _this5.showYearPicker = false;
7941
+ return _this6.showMonthPicker = _this6.showYearPicker = false;
7937
7942
  }
7938
7943
  });
7939
7944
  },