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 +1 -3
- package/CONTRIBUTING.md +49 -0
- package/README.md +1 -6
- 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/Day.vue +1 -1
- package/src/components/FunctionalCalendar.vue +2 -0
- package/src/mixins/propsAndData.js +4 -2
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
|
-
[](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
|
-
|
|
9
6
|
[](https://travis-ci.org/ManukMinasyan/vue-functional-calendar)
|
|
10
7
|
[](https://www.npmjs.com/package/vue-functional-calendar)
|
|
11
8
|
[](LICENSE)
|
|
12
9
|
[](https://www.npmjs.com/package/vue-functional-calendar)
|
|
10
|
+
[](https://plant.treeware.earth/ManukMinasyan/vue-functional-calendar)
|
|
13
11
|
___
|
|
14
12
|
## Demo
|
|
15
13
|
|
package/CONTRIBUTING.md
ADDED
|
@@ -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
|
-

|
|
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=
|
|
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
|
},
|