vue-cal 4.9.0 → 4.10.1
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 +12 -8
- package/dist/drag-and-drop.amd.js +5 -4
- package/dist/drag-and-drop.cjs.js +5 -4
- package/dist/drag-and-drop.es.js +236 -70
- package/dist/i18n/ar.amd.js +4 -3
- package/dist/i18n/ar.cjs.js +5 -4
- package/dist/i18n/ar.es.js +65 -17
- package/dist/i18n/bg.amd.js +4 -3
- package/dist/i18n/bg.cjs.js +5 -4
- package/dist/i18n/bg.es.js +65 -17
- package/dist/i18n/bn.amd.js +4 -3
- package/dist/i18n/bn.cjs.js +5 -4
- package/dist/i18n/bn.es.js +65 -17
- package/dist/i18n/bs.amd.js +4 -3
- package/dist/i18n/bs.cjs.js +5 -4
- package/dist/i18n/bs.es.js +65 -17
- package/dist/i18n/ca.amd.js +4 -3
- package/dist/i18n/ca.cjs.js +5 -4
- package/dist/i18n/ca.es.js +76 -18
- package/dist/i18n/cs.amd.js +4 -3
- package/dist/i18n/cs.cjs.js +5 -4
- package/dist/i18n/cs.es.js +65 -17
- package/dist/i18n/da.amd.js +4 -3
- package/dist/i18n/da.cjs.js +5 -4
- package/dist/i18n/da.es.js +65 -17
- package/dist/i18n/de.amd.js +4 -3
- package/dist/i18n/de.cjs.js +5 -4
- package/dist/i18n/de.es.js +65 -17
- package/dist/i18n/el.amd.js +4 -3
- package/dist/i18n/el.cjs.js +5 -4
- package/dist/i18n/el.es.js +87 -20
- package/dist/i18n/en.amd.js +4 -3
- package/dist/i18n/en.cjs.js +5 -4
- package/dist/i18n/en.es.js +65 -17
- package/dist/i18n/es.amd.js +4 -3
- package/dist/i18n/es.cjs.js +5 -4
- package/dist/i18n/es.es.js +65 -17
- package/dist/i18n/et.amd.js +4 -3
- package/dist/i18n/et.cjs.js +5 -4
- package/dist/i18n/et.es.js +65 -17
- package/dist/i18n/fa.amd.js +4 -3
- package/dist/i18n/fa.cjs.js +5 -4
- package/dist/i18n/fa.es.js +65 -17
- package/dist/i18n/fi.amd.js +4 -3
- package/dist/i18n/fi.cjs.js +5 -4
- package/dist/i18n/fi.es.js +65 -17
- package/dist/i18n/fr.amd.js +4 -3
- package/dist/i18n/fr.cjs.js +5 -4
- package/dist/i18n/fr.es.js +65 -17
- package/dist/i18n/he.amd.js +4 -3
- package/dist/i18n/he.cjs.js +5 -4
- package/dist/i18n/he.es.js +65 -17
- package/dist/i18n/hr.amd.js +4 -3
- package/dist/i18n/hr.cjs.js +5 -4
- package/dist/i18n/hr.es.js +65 -17
- package/dist/i18n/hu.amd.js +4 -3
- package/dist/i18n/hu.cjs.js +5 -4
- package/dist/i18n/hu.es.js +65 -17
- package/dist/i18n/id.amd.js +4 -3
- package/dist/i18n/id.cjs.js +5 -4
- package/dist/i18n/id.es.js +65 -17
- package/dist/i18n/is.amd.js +4 -3
- package/dist/i18n/is.cjs.js +5 -4
- package/dist/i18n/is.es.js +65 -17
- package/dist/i18n/it.amd.js +4 -3
- package/dist/i18n/it.cjs.js +5 -4
- package/dist/i18n/it.es.js +65 -17
- package/dist/i18n/ja.amd.js +4 -3
- package/dist/i18n/ja.cjs.js +5 -4
- package/dist/i18n/ja.es.js +65 -17
- package/dist/i18n/ka.amd.js +4 -3
- package/dist/i18n/ka.cjs.js +5 -4
- package/dist/i18n/ka.es.js +65 -17
- package/dist/i18n/ko.amd.js +4 -3
- package/dist/i18n/ko.cjs.js +5 -4
- package/dist/i18n/ko.es.js +65 -17
- package/dist/i18n/lt.amd.js +4 -3
- package/dist/i18n/lt.cjs.js +5 -4
- package/dist/i18n/lt.es.js +65 -17
- package/dist/i18n/mn.amd.js +4 -3
- package/dist/i18n/mn.cjs.js +5 -4
- package/dist/i18n/mn.es.js +65 -17
- package/dist/i18n/nl.amd.js +4 -3
- package/dist/i18n/nl.cjs.js +5 -4
- package/dist/i18n/nl.es.js +65 -17
- package/dist/i18n/no.amd.js +4 -3
- package/dist/i18n/no.cjs.js +5 -4
- package/dist/i18n/no.es.js +65 -17
- package/dist/i18n/pl.amd.js +4 -3
- package/dist/i18n/pl.cjs.js +5 -4
- package/dist/i18n/pl.es.js +65 -17
- package/dist/i18n/pt-br.amd.js +4 -3
- package/dist/i18n/pt-br.cjs.js +5 -4
- package/dist/i18n/pt-br.es.js +65 -17
- package/dist/i18n/pt-pt.amd.js +4 -3
- package/dist/i18n/pt-pt.cjs.js +5 -4
- package/dist/i18n/pt-pt.es.js +65 -17
- package/dist/i18n/ro.amd.js +4 -3
- package/dist/i18n/ro.cjs.js +5 -4
- package/dist/i18n/ro.es.js +65 -17
- package/dist/i18n/ru.amd.js +4 -3
- package/dist/i18n/ru.cjs.js +5 -4
- package/dist/i18n/ru.es.js +76 -18
- package/dist/i18n/sk.amd.js +4 -3
- package/dist/i18n/sk.cjs.js +5 -4
- package/dist/i18n/sk.es.js +65 -17
- package/dist/i18n/sl.amd.js +4 -3
- package/dist/i18n/sl.cjs.js +5 -4
- package/dist/i18n/sl.es.js +65 -17
- package/dist/i18n/sq.amd.js +4 -3
- package/dist/i18n/sq.cjs.js +5 -4
- package/dist/i18n/sq.es.js +76 -18
- package/dist/i18n/sr.amd.js +4 -3
- package/dist/i18n/sr.cjs.js +5 -4
- package/dist/i18n/sr.es.js +65 -17
- package/dist/i18n/sv.amd.js +4 -3
- package/dist/i18n/sv.cjs.js +5 -4
- package/dist/i18n/sv.es.js +65 -17
- package/dist/i18n/tr.amd.js +4 -3
- package/dist/i18n/tr.cjs.js +5 -4
- package/dist/i18n/tr.es.js +65 -17
- package/dist/i18n/uk.amd.js +4 -3
- package/dist/i18n/uk.cjs.js +5 -4
- package/dist/i18n/uk.es.js +76 -18
- package/dist/i18n/vi.amd.js +4 -3
- package/dist/i18n/vi.cjs.js +5 -4
- package/dist/i18n/vi.es.js +76 -18
- package/dist/i18n/zh-cn.amd.js +4 -3
- package/dist/i18n/zh-cn.cjs.js +5 -4
- package/dist/i18n/zh-cn.es.js +76 -18
- package/dist/i18n/zh-hk.amd.js +4 -3
- package/dist/i18n/zh-hk.cjs.js +5 -4
- package/dist/i18n/zh-hk.es.js +76 -18
- package/dist/vue-cal.amd.js +5 -5
- package/dist/vue-cal.cjs.js +5 -5
- package/dist/vue-cal.es.js +3399 -917
- package/dist/vue-cal.iife.js +1 -2
- package/dist/vuecal.css +1 -1
- package/package.json +20 -21
package/README.md
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
> This library is to be used as is for the current codebase.
|
|
3
|
-
> However, I am actively working on the v5 in a branch. 😎
|
|
4
|
-
|
|
5
|
-
# vue-cal
|
|
6
|
-
|
|
1
|
+
# Vue Cal v4
|
|
7
2
|
[](https://npmjs.com/package/vue-cal)
|
|
8
3
|
[](LICENSE.md)
|
|
9
4
|
[](https://www.npmjs.com/package/vue-cal)
|
|
10
5
|
[](https://www.npmjs.com/package/vue-cal)
|
|
6
|
+
[](https://standardjs.com)
|
|
11
7
|
> A Vue JS full calendar, no dependency, no BS. :metal:
|
|
12
8
|
|
|
9
|
+
<br>
|
|
10
|
+
|
|
11
|
+
> [!WARNING]
|
|
12
|
+
> **VERSION 4.10.0 IS THE FINAL RELEASE IN THIS REPOSITORY AND IS NO LONGER ACTIVELY MAINTAINED. FOR THE LATEST DEVELOPMENTS AND V5, VISIT [Vue Cal V5](https://github.com/antoniandre/vue-cal)!** 🚀
|
|
13
|
+
> - For the latest stable v4.x.x, continue using this version.
|
|
14
|
+
> - To contribute to v5 or try the new features, head over to the [v5 repo](https://github.com/antoniandre/vue-cal).
|
|
15
|
+
<br>
|
|
16
|
+
|
|
13
17
|
## Installation
|
|
14
18
|
|
|
15
19
|
```
|
|
@@ -25,7 +29,7 @@ npm i vue-cal@legacy
|
|
|
25
29
|
___
|
|
26
30
|
|
|
27
31
|
## Demo & Documentation
|
|
28
|
-
> [antoniandre.github.io/vue-cal](https://antoniandre.github.io/vue-cal)
|
|
32
|
+
> [antoniandre.github.io/vue-cal-v4](https://antoniandre.github.io/vue-cal-v4)
|
|
29
33
|
|
|
30
34
|
___
|
|
31
35
|
|
|
@@ -56,4 +60,4 @@ ___
|
|
|
56
60
|
|
|
57
61
|
## Release Notes
|
|
58
62
|
|
|
59
|
-
[antoniandre.github.io/vue-cal/#release-notes](https://antoniandre.github.io/vue-cal/#release-notes)
|
|
63
|
+
[antoniandre.github.io/vue-cal-v4/#release-notes](https://antoniandre.github.io/vue-cal-v4/#release-notes)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
*
|
|
1
|
+
var __defProp=Object.defineProperty,__defNormalProp=(e,t,l)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,__publicField=(e,t,l)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,l)
|
|
2
|
+
/**
|
|
3
|
+
* vue-cal v4.10.1
|
|
4
|
+
* (c) 2025 Antoni Andre <antoniandre.web@gmail.com>
|
|
4
5
|
* @license MIT
|
|
5
|
-
|
|
6
|
+
*/;define(["exports"],(function(e){"use strict";let t=null,l=null,i={id:null,date:null},a=!1,n=!0,r={el:null,cell:null,timeout:null};const u={_eid:null,fromVueCal:null,toVueCal:null};e.DragAndDrop=class{constructor(e){__publicField(this,"_vuecal"),this._vuecal=e}_getEventStart(e){const{timeStep:t,timeCellHeight:l,timeFrom:i,utils:a}=this._vuecal;let{y:n}=a.cell.getPosition(e);return n-=1*e.dataTransfer.getData("cursor-grab-at"),Math.round(n*t/parseInt(l)+i)}_updateEventStartEnd(e,t,l,i){const a=1*l.duration||t.endTimeMinutes-t.startTimeMinutes;let n=Math.max(this._getEventStart(e),0);if(this._vuecal.snapToTime){const e=n+this._vuecal.snapToTime/2;n=e-e%this._vuecal.snapToTime}t.startTimeMinutes=n,t.start=new Date(new Date(i).setMinutes(n)),t.endTimeMinutes=Math.min(n+a,1440),t.end=new Date(new Date(i).setMinutes(t.endTimeMinutes))}eventDragStart(e,t){if(3===e.target.nodeType)return e.preventDefault();e.dataTransfer.dropEffect="move",e.dataTransfer.setData("event",JSON.stringify(t)),e.dataTransfer.setData("cursor-grab-at",e.offsetY);const{clickHoldAnEvent:l}=this._vuecal.domEvents;setTimeout((()=>{l._eid=null,clearTimeout(l.timeoutId),t.deleting=!1}),0),this._vuecal.domEvents.dragAnEvent._eid=t._eid,u._eid=t._eid,u.fromVueCal=this._vuecal._.uid,t.dragging=!0,setTimeout((()=>t.draggingStatic=!0),0),a=!1,i={id:this._vuecal.view.id,date:this._vuecal.view.startDate},n=!0}eventDragEnd(e){this._vuecal.domEvents.dragAnEvent._eid=null,u._eid=null,e.dragging=!1,e.draggingStatic=!1;const{fromVueCal:t,toVueCal:l}=u;l&&t!==l&&this._vuecal.utils.event.deleteAnEvent(e),u.fromVueCal=null,u.toVueCal=null,a&&n&&i.id&&this._vuecal.switchView(i.id,i.date,!0)}cellDragEnter(e,t,l){const i=e.currentTarget;if(!e.currentTarget.contains(e.relatedTarget)){if(i===r.el||!i.className.includes("vuecal__cell-content"))return!1;r.el&&(r.cell.highlighted=!1),r={el:i,cell:t,timeout:clearTimeout(r.timeout)},t.highlighted=!0,["years","year","month"].includes(this._vuecal.view.id)&&(r.timeout=setTimeout((()=>this._vuecal.switchToNarrowerView(l)),2e3))}}cellDragOver(e,t,l,i){e.preventDefault(),t.highlighted=!0,(i||0===i)&&(t.highlightedSplit=i)}cellDragLeave(e,t){e.preventDefault(),e.currentTarget.contains(e.relatedTarget)||(t.highlightedSplit=!1,r.cell===t&&(clearTimeout(r.timeout),r={el:null,cell:null,timeout:null},t.highlighted=!1))}cellDragDrop(e,t,l,i){e.preventDefault(),clearTimeout(r.timeout),r={el:null,cell:null,timeout:null};const a=JSON.parse(e.dataTransfer.getData("event")||"{}");let s,c;if(u.fromVueCal!==this._vuecal._.uid){const{_eid:e,start:t,end:n,duration:r,...u}=a;s=this._vuecal.utils.event.createAnEvent(l,r,{...u,split:i})}else if(s=this._vuecal.view.events.find((e=>e._eid===u._eid)),s||(s=this._vuecal.mutableEvents.find((e=>e._eid===u._eid)),c=!!s),!s){const e=a.endTimeMinutes-a.startTimeMinutes,{start:t,end:n,...r}=a;s=this._vuecal.utils.event.createAnEvent(l,e,{...r,split:i})}const{start:o,split:d}=s;this._updateEventStartEnd(e,s,a,l),c&&this._vuecal.addEventsToView([s]),s.dragging=!1,(i||0===i)&&(s.split=i),t.highlighted=!1,t.highlightedSplit=null,n=!1,u.toVueCal=this._vuecal._.uid;const v={event:this._vuecal.cleanupEvent(s),oldDate:o,newDate:s.start,...(i||0===i)&&{oldSplit:d,newSplit:i},originalEvent:this._vuecal.cleanupEvent(a),external:!u.fromVueCal};this._vuecal.$emit("event-drop",v),this._vuecal.$emit("event-change",{event:v.event,originalEvent:v.originalEvent}),setTimeout((()=>{u._eid&&this.eventDragEnd(s)}),300)}viewSelectorDragEnter(e,i,n){e.currentTarget.contains(e.relatedTarget)||(n.highlightedControl=i,clearTimeout(t),t=setTimeout((()=>{if(["previous","next"].includes(i))this._vuecal[i](),clearInterval(l),l=setInterval(this._vuecal[i],800);else if("today"===i){let e;clearInterval(l),this._vuecal.view.id.includes("year")&&(e=this._vuecal.enabledViews.filter((e=>!e.includes("year")))[0]),this._vuecal.switchView(e||this._vuecal.view.id,new Date((new Date).setHours(0,0,0,0)),!0)}else this._vuecal.switchView(i,null,!0);a=!0}),800))}viewSelectorDragLeave(e,i,a){e.currentTarget.contains(e.relatedTarget)||a.highlightedControl===i&&(a.highlightedControl=null,t&&(t=clearTimeout(t)),l&&(l=clearInterval(l)))}},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
|
|
3
|
-
*
|
|
1
|
+
"use strict";var e=Object.defineProperty,t=(t,l,i)=>((t,l,i)=>l in t?e(t,l,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[l]=i)(t,"symbol"!=typeof l?l+"":l,i)
|
|
2
|
+
/**
|
|
3
|
+
* vue-cal v4.10.1
|
|
4
|
+
* (c) 2025 Antoni Andre <antoniandre.web@gmail.com>
|
|
4
5
|
* @license MIT
|
|
5
|
-
|
|
6
|
+
*/;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let l=null,i=null,a={id:null,date:null},n=!1,r=!0,u={el:null,cell:null,timeout:null};const s={_eid:null,fromVueCal:null,toVueCal:null};exports.DragAndDrop=class{constructor(e){t(this,"_vuecal"),this._vuecal=e}_getEventStart(e){const{timeStep:t,timeCellHeight:l,timeFrom:i,utils:a}=this._vuecal;let{y:n}=a.cell.getPosition(e);return n-=1*e.dataTransfer.getData("cursor-grab-at"),Math.round(n*t/parseInt(l)+i)}_updateEventStartEnd(e,t,l,i){const a=1*l.duration||t.endTimeMinutes-t.startTimeMinutes;let n=Math.max(this._getEventStart(e),0);if(this._vuecal.snapToTime){const e=n+this._vuecal.snapToTime/2;n=e-e%this._vuecal.snapToTime}t.startTimeMinutes=n,t.start=new Date(new Date(i).setMinutes(n)),t.endTimeMinutes=Math.min(n+a,1440),t.end=new Date(new Date(i).setMinutes(t.endTimeMinutes))}eventDragStart(e,t){if(3===e.target.nodeType)return e.preventDefault();e.dataTransfer.dropEffect="move",e.dataTransfer.setData("event",JSON.stringify(t)),e.dataTransfer.setData("cursor-grab-at",e.offsetY);const{clickHoldAnEvent:l}=this._vuecal.domEvents;setTimeout((()=>{l._eid=null,clearTimeout(l.timeoutId),t.deleting=!1}),0),this._vuecal.domEvents.dragAnEvent._eid=t._eid,s._eid=t._eid,s.fromVueCal=this._vuecal._.uid,t.dragging=!0,setTimeout((()=>t.draggingStatic=!0),0),n=!1,a={id:this._vuecal.view.id,date:this._vuecal.view.startDate},r=!0}eventDragEnd(e){this._vuecal.domEvents.dragAnEvent._eid=null,s._eid=null,e.dragging=!1,e.draggingStatic=!1;const{fromVueCal:t,toVueCal:l}=s;l&&t!==l&&this._vuecal.utils.event.deleteAnEvent(e),s.fromVueCal=null,s.toVueCal=null,n&&r&&a.id&&this._vuecal.switchView(a.id,a.date,!0)}cellDragEnter(e,t,l){const i=e.currentTarget;if(!e.currentTarget.contains(e.relatedTarget)){if(i===u.el||!i.className.includes("vuecal__cell-content"))return!1;u.el&&(u.cell.highlighted=!1),u={el:i,cell:t,timeout:clearTimeout(u.timeout)},t.highlighted=!0,["years","year","month"].includes(this._vuecal.view.id)&&(u.timeout=setTimeout((()=>this._vuecal.switchToNarrowerView(l)),2e3))}}cellDragOver(e,t,l,i){e.preventDefault(),t.highlighted=!0,(i||0===i)&&(t.highlightedSplit=i)}cellDragLeave(e,t){e.preventDefault(),e.currentTarget.contains(e.relatedTarget)||(t.highlightedSplit=!1,u.cell===t&&(clearTimeout(u.timeout),u={el:null,cell:null,timeout:null},t.highlighted=!1))}cellDragDrop(e,t,l,i){e.preventDefault(),clearTimeout(u.timeout),u={el:null,cell:null,timeout:null};const a=JSON.parse(e.dataTransfer.getData("event")||"{}");let n,c;if(s.fromVueCal!==this._vuecal._.uid){const{_eid:e,start:t,end:r,duration:u,...s}=a;n=this._vuecal.utils.event.createAnEvent(l,u,{...s,split:i})}else if(n=this._vuecal.view.events.find((e=>e._eid===s._eid)),n||(n=this._vuecal.mutableEvents.find((e=>e._eid===s._eid)),c=!!n),!n){const e=a.endTimeMinutes-a.startTimeMinutes,{start:t,end:r,...u}=a;n=this._vuecal.utils.event.createAnEvent(l,e,{...u,split:i})}const{start:o,split:d}=n;this._updateEventStartEnd(e,n,a,l),c&&this._vuecal.addEventsToView([n]),n.dragging=!1,(i||0===i)&&(n.split=i),t.highlighted=!1,t.highlightedSplit=null,r=!1,s.toVueCal=this._vuecal._.uid;const v={event:this._vuecal.cleanupEvent(n),oldDate:o,newDate:n.start,...(i||0===i)&&{oldSplit:d,newSplit:i},originalEvent:this._vuecal.cleanupEvent(a),external:!s.fromVueCal};this._vuecal.$emit("event-drop",v),this._vuecal.$emit("event-change",{event:v.event,originalEvent:v.originalEvent}),setTimeout((()=>{s._eid&&this.eventDragEnd(n)}),300)}viewSelectorDragEnter(e,t,a){e.currentTarget.contains(e.relatedTarget)||(a.highlightedControl=t,clearTimeout(l),l=setTimeout((()=>{if(["previous","next"].includes(t))this._vuecal[t](),clearInterval(i),i=setInterval(this._vuecal[t],800);else if("today"===t){let e;clearInterval(i),this._vuecal.view.id.includes("year")&&(e=this._vuecal.enabledViews.filter((e=>!e.includes("year")))[0]),this._vuecal.switchView(e||this._vuecal.view.id,new Date((new Date).setHours(0,0,0,0)),!0)}else this._vuecal.switchView(t,null,!0);n=!0}),800))}viewSelectorDragLeave(e,t,a){e.currentTarget.contains(e.relatedTarget)||a.highlightedControl===t&&(a.highlightedControl=null,l&&(l=clearTimeout(l)),i&&(i=clearInterval(i)))}};
|
package/dist/drag-and-drop.es.js
CHANGED
|
@@ -1,93 +1,259 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
/**
|
|
5
|
-
* vue-cal v4.
|
|
6
|
-
* (c)
|
|
5
|
+
* vue-cal v4.10.1
|
|
6
|
+
* (c) 2025 Antoni Andre <antoniandre.web@gmail.com>
|
|
7
7
|
* @license MIT
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
const holdOverTimeout = 800;
|
|
10
|
+
let changeViewTimeout = null;
|
|
11
|
+
let pressPrevOrNextInterval = null;
|
|
12
|
+
let viewBeforeDrag = { id: null, date: null };
|
|
13
|
+
let viewChanged = false;
|
|
14
|
+
let cancelViewChange = true;
|
|
15
|
+
let dragOverCell = { el: null, cell: null, timeout: null };
|
|
16
|
+
const dragging = {
|
|
17
|
+
_eid: null,
|
|
18
|
+
fromVueCal: null,
|
|
19
|
+
toVueCal: null
|
|
20
|
+
};
|
|
21
|
+
const DragAndDrop = class {
|
|
22
|
+
constructor(vuecal) {
|
|
23
|
+
__publicField(this, "_vuecal");
|
|
24
|
+
this._vuecal = vuecal;
|
|
14
25
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
26
|
+
/**
|
|
27
|
+
* When click and drag an event the cursor can be anywhere in the event,
|
|
28
|
+
* when dropping the event, we need to subtract the cursor position in the event.
|
|
29
|
+
*
|
|
30
|
+
* @param {Object} e The associated DOM event.
|
|
31
|
+
*/
|
|
32
|
+
_getEventStart(e) {
|
|
33
|
+
const { timeStep, timeCellHeight, timeFrom, utils } = this._vuecal;
|
|
34
|
+
let { y } = utils.cell.getPosition(e);
|
|
35
|
+
y -= e.dataTransfer.getData("cursor-grab-at") * 1;
|
|
36
|
+
return Math.round(y * timeStep / parseInt(timeCellHeight) + timeFrom);
|
|
19
37
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
38
|
+
/**
|
|
39
|
+
* On drop, update the event start and end date directly into the event.
|
|
40
|
+
*
|
|
41
|
+
* @param {Object} e The associated DOM event.
|
|
42
|
+
* @param {Object} event The event being dragged.
|
|
43
|
+
* @param {Object} transferData The transfer data from the HTML5 dragging event.
|
|
44
|
+
* @param {Date} cellDate The hovered cell starting date.
|
|
45
|
+
*/
|
|
46
|
+
_updateEventStartEnd(e, event, transferData, cellDate) {
|
|
47
|
+
const eventDuration = transferData.duration * 1 || event.endTimeMinutes - event.startTimeMinutes;
|
|
48
|
+
let startTimeMinutes = Math.max(this._getEventStart(e), 0);
|
|
23
49
|
if (this._vuecal.snapToTime) {
|
|
24
|
-
const
|
|
25
|
-
|
|
50
|
+
const plusHalfSnapTime = startTimeMinutes + this._vuecal.snapToTime / 2;
|
|
51
|
+
startTimeMinutes = plusHalfSnapTime - plusHalfSnapTime % this._vuecal.snapToTime;
|
|
26
52
|
}
|
|
27
|
-
|
|
53
|
+
event.startTimeMinutes = startTimeMinutes;
|
|
54
|
+
event.start = new Date(new Date(cellDate).setMinutes(startTimeMinutes));
|
|
55
|
+
event.endTimeMinutes = Math.min(startTimeMinutes + eventDuration, 24 * 60);
|
|
56
|
+
event.end = new Date(new Date(cellDate).setMinutes(event.endTimeMinutes));
|
|
28
57
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
58
|
+
/**
|
|
59
|
+
* On event drag start, only possible if editableEvent is true.
|
|
60
|
+
* /!\ This is using the native HTML5 drag & drop, not supported on touch devices.
|
|
61
|
+
*
|
|
62
|
+
* @param {Object} e The associated DOM event.
|
|
63
|
+
* @param {Object} event The event being dragged.
|
|
64
|
+
*/
|
|
65
|
+
eventDragStart(e, event) {
|
|
66
|
+
if (e.target.nodeType === 3) return e.preventDefault();
|
|
67
|
+
e.dataTransfer.dropEffect = "move";
|
|
68
|
+
e.dataTransfer.setData("event", JSON.stringify(event));
|
|
69
|
+
e.dataTransfer.setData("cursor-grab-at", e.offsetY);
|
|
70
|
+
const { clickHoldAnEvent } = this._vuecal.domEvents;
|
|
34
71
|
setTimeout(() => {
|
|
35
|
-
|
|
36
|
-
|
|
72
|
+
clickHoldAnEvent._eid = null;
|
|
73
|
+
clearTimeout(clickHoldAnEvent.timeoutId);
|
|
74
|
+
event.deleting = false;
|
|
75
|
+
}, 0);
|
|
76
|
+
this._vuecal.domEvents.dragAnEvent._eid = event._eid;
|
|
77
|
+
dragging._eid = event._eid;
|
|
78
|
+
dragging.fromVueCal = this._vuecal._.uid;
|
|
79
|
+
event.dragging = true;
|
|
80
|
+
setTimeout(() => event.draggingStatic = true, 0);
|
|
81
|
+
viewChanged = false;
|
|
82
|
+
viewBeforeDrag = { id: this._vuecal.view.id, date: this._vuecal.view.startDate };
|
|
83
|
+
cancelViewChange = true;
|
|
37
84
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
85
|
+
/**
|
|
86
|
+
* On event drag end, when releasing the event.
|
|
87
|
+
*
|
|
88
|
+
* @param {Object} event The event being dragged.
|
|
89
|
+
*/
|
|
90
|
+
eventDragEnd(event) {
|
|
91
|
+
this._vuecal.domEvents.dragAnEvent._eid = null;
|
|
92
|
+
dragging._eid = null;
|
|
93
|
+
event.dragging = false;
|
|
94
|
+
event.draggingStatic = false;
|
|
95
|
+
const { fromVueCal, toVueCal } = dragging;
|
|
96
|
+
if (toVueCal && fromVueCal !== toVueCal) this._vuecal.utils.event.deleteAnEvent(event);
|
|
97
|
+
dragging.fromVueCal = null;
|
|
98
|
+
dragging.toVueCal = null;
|
|
99
|
+
if (viewChanged && cancelViewChange && viewBeforeDrag.id) this._vuecal.switchView(viewBeforeDrag.id, viewBeforeDrag.date, true);
|
|
42
100
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
101
|
+
/**
|
|
102
|
+
* On cell/split enter with a dragging event.
|
|
103
|
+
* Highlight the cell, and if on `years`, `year`, `month` view,
|
|
104
|
+
* set a timer to go deeper on drag hold over this cell.
|
|
105
|
+
*
|
|
106
|
+
* @param {Object} e The associated DOM event.
|
|
107
|
+
* @param {Object} cell The cell component's $data.
|
|
108
|
+
* @param {Date} cellDate The hovered cell starting date.
|
|
109
|
+
*/
|
|
110
|
+
cellDragEnter(e, cell, cellDate) {
|
|
111
|
+
const target = e.currentTarget;
|
|
112
|
+
if (e.currentTarget.contains(e.relatedTarget)) return;
|
|
113
|
+
if (target === dragOverCell.el || !target.className.includes("vuecal__cell-content")) return false;
|
|
114
|
+
if (dragOverCell.el) dragOverCell.cell.highlighted = false;
|
|
115
|
+
dragOverCell = { el: target, cell, timeout: clearTimeout(dragOverCell.timeout) };
|
|
116
|
+
cell.highlighted = true;
|
|
117
|
+
if (["years", "year", "month"].includes(this._vuecal.view.id)) {
|
|
118
|
+
dragOverCell.timeout = setTimeout(() => this._vuecal.switchToNarrowerView(cellDate), 2e3);
|
|
49
119
|
}
|
|
50
120
|
}
|
|
51
|
-
|
|
52
|
-
|
|
121
|
+
/**
|
|
122
|
+
* On cell/split drag over, highlight the cell being hovered,
|
|
123
|
+
* Useful when starting to drag event on the same cell/split it's in.
|
|
124
|
+
* Warning: This is fired repeatedly as long as you stay over this cell/split.
|
|
125
|
+
*
|
|
126
|
+
* @param {Object} e The associated DOM event.
|
|
127
|
+
* @param {Object} cell The cell component's $data.
|
|
128
|
+
* @param {Date} cellDate The hovered cell starting date.
|
|
129
|
+
* @param {Number|String} split The optional split being hovered if any.
|
|
130
|
+
*/
|
|
131
|
+
cellDragOver(e, cell, cellDate, split) {
|
|
132
|
+
e.preventDefault();
|
|
133
|
+
cell.highlighted = true;
|
|
134
|
+
if (split || split === 0) cell.highlightedSplit = split;
|
|
53
135
|
}
|
|
54
|
-
|
|
55
|
-
|
|
136
|
+
/**
|
|
137
|
+
* When event drag leaves a cell/split.
|
|
138
|
+
* Remove the cell/split highlighted state.
|
|
139
|
+
* Warning: cell dragleave event happens AFTER another cell dragenter!
|
|
140
|
+
*
|
|
141
|
+
* @param {Object} e The associated DOM event.
|
|
142
|
+
* @param {Object} cell The cell component's $data.
|
|
143
|
+
*/
|
|
144
|
+
cellDragLeave(e, cell) {
|
|
145
|
+
e.preventDefault();
|
|
146
|
+
if (e.currentTarget.contains(e.relatedTarget)) return;
|
|
147
|
+
cell.highlightedSplit = false;
|
|
148
|
+
if (dragOverCell.cell === cell) {
|
|
149
|
+
clearTimeout(dragOverCell.timeout);
|
|
150
|
+
dragOverCell = { el: null, cell: null, timeout: null };
|
|
151
|
+
cell.highlighted = false;
|
|
152
|
+
}
|
|
56
153
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
154
|
+
/**
|
|
155
|
+
* On successful event drop into a cell/split.
|
|
156
|
+
* Change the event start and end time and remove the event dragging state
|
|
157
|
+
* and cell/split highlighted state.
|
|
158
|
+
*
|
|
159
|
+
* @param {Object} e The associated DOM event.
|
|
160
|
+
* @param {Object} cell The cell component's $data.
|
|
161
|
+
* @param {Date} cellDate The hovered cell starting date.
|
|
162
|
+
* @param {Number|String} split The optional split being dropped into, if any.
|
|
163
|
+
*/
|
|
164
|
+
cellDragDrop(e, cell, cellDate, split) {
|
|
165
|
+
e.preventDefault();
|
|
166
|
+
clearTimeout(dragOverCell.timeout);
|
|
167
|
+
dragOverCell = { el: null, cell: null, timeout: null };
|
|
168
|
+
const transferData = JSON.parse(e.dataTransfer.getData("event") || "{}");
|
|
169
|
+
let event, addToView;
|
|
170
|
+
if (dragging.fromVueCal !== this._vuecal._.uid) {
|
|
171
|
+
const { _eid, start, end, duration, ...cleanTransferData } = transferData;
|
|
172
|
+
event = this._vuecal.utils.event.createAnEvent(cellDate, duration, { ...cleanTransferData, split });
|
|
173
|
+
} else {
|
|
174
|
+
event = this._vuecal.view.events.find((evt) => evt._eid === dragging._eid);
|
|
175
|
+
if (!event) {
|
|
176
|
+
event = this._vuecal.mutableEvents.find((evt) => evt._eid === dragging._eid);
|
|
177
|
+
addToView = !!event;
|
|
178
|
+
}
|
|
179
|
+
if (!event) {
|
|
180
|
+
const duration = transferData.endTimeMinutes - transferData.startTimeMinutes;
|
|
181
|
+
const { start, end, ...cleanTransferData } = transferData;
|
|
182
|
+
event = this._vuecal.utils.event.createAnEvent(cellDate, duration, { ...cleanTransferData, split });
|
|
183
|
+
}
|
|
67
184
|
}
|
|
68
|
-
const { start:
|
|
69
|
-
this._updateEventStartEnd(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
185
|
+
const { start: oldDate, split: oldSplit } = event;
|
|
186
|
+
this._updateEventStartEnd(e, event, transferData, cellDate);
|
|
187
|
+
if (addToView) this._vuecal.addEventsToView([event]);
|
|
188
|
+
event.dragging = false;
|
|
189
|
+
if (split || split === 0) event.split = split;
|
|
190
|
+
cell.highlighted = false;
|
|
191
|
+
cell.highlightedSplit = null;
|
|
192
|
+
cancelViewChange = false;
|
|
193
|
+
dragging.toVueCal = this._vuecal._.uid;
|
|
194
|
+
const params = {
|
|
195
|
+
event: this._vuecal.cleanupEvent(event),
|
|
196
|
+
oldDate,
|
|
197
|
+
newDate: event.start,
|
|
198
|
+
...(split || split === 0) && { oldSplit, newSplit: split },
|
|
199
|
+
originalEvent: this._vuecal.cleanupEvent(transferData),
|
|
200
|
+
external: !dragging.fromVueCal
|
|
201
|
+
// If external event, not coming from any Vue Cal.
|
|
202
|
+
};
|
|
203
|
+
this._vuecal.$emit("event-drop", params);
|
|
204
|
+
this._vuecal.$emit("event-change", { event: params.event, originalEvent: params.originalEvent });
|
|
205
|
+
setTimeout(() => {
|
|
206
|
+
if (dragging._eid) this.eventDragEnd(event);
|
|
73
207
|
}, 300);
|
|
74
208
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
209
|
+
/**
|
|
210
|
+
* On drag enter on a view button or on today, prev & next buttons.
|
|
211
|
+
* Sets a highlighted state on the hovered button, and go to requested view.
|
|
212
|
+
*
|
|
213
|
+
* @param {Object} e The associated DOM event.
|
|
214
|
+
* @param {String} id The id of the header element being hovered. One of:
|
|
215
|
+
* previous, next, today, years, year, month, week, day.
|
|
216
|
+
* @param {Object} headerData The header component's $data.
|
|
217
|
+
*/
|
|
218
|
+
viewSelectorDragEnter(e, id, headerData) {
|
|
219
|
+
if (e.currentTarget.contains(e.relatedTarget)) return;
|
|
220
|
+
headerData.highlightedControl = id;
|
|
221
|
+
clearTimeout(changeViewTimeout);
|
|
222
|
+
changeViewTimeout = setTimeout(() => {
|
|
223
|
+
if (["previous", "next"].includes(id)) {
|
|
224
|
+
this._vuecal[id]();
|
|
225
|
+
clearInterval(pressPrevOrNextInterval);
|
|
226
|
+
pressPrevOrNextInterval = setInterval(this._vuecal[id], holdOverTimeout);
|
|
227
|
+
} else if (id === "today") {
|
|
228
|
+
clearInterval(pressPrevOrNextInterval);
|
|
229
|
+
let viewId;
|
|
230
|
+
if (this._vuecal.view.id.includes("year")) {
|
|
231
|
+
viewId = this._vuecal.enabledViews.filter((view) => !view.includes("year"))[0];
|
|
232
|
+
}
|
|
233
|
+
this._vuecal.switchView(viewId || this._vuecal.view.id, new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0)), true);
|
|
234
|
+
} else this._vuecal.switchView(id, null, true);
|
|
235
|
+
viewChanged = true;
|
|
236
|
+
}, holdOverTimeout);
|
|
86
237
|
}
|
|
87
|
-
|
|
88
|
-
|
|
238
|
+
/**
|
|
239
|
+
* On drag leave on a view button or on today, prev & next buttons.
|
|
240
|
+
* Removes the highlighted state on the hovered button, and cancel the timer to
|
|
241
|
+
* go to the requested view.
|
|
242
|
+
*
|
|
243
|
+
* @param {Object} e The associated DOM event.
|
|
244
|
+
* @param {String} id The id of the header element being hovered. One of:
|
|
245
|
+
* previous, next, today, years, year, month, week, day.
|
|
246
|
+
* @param {Object} headerData The header component's $data.
|
|
247
|
+
*/
|
|
248
|
+
viewSelectorDragLeave(e, id, headerData) {
|
|
249
|
+
if (e.currentTarget.contains(e.relatedTarget)) return;
|
|
250
|
+
if (headerData.highlightedControl === id) {
|
|
251
|
+
headerData.highlightedControl = null;
|
|
252
|
+
if (changeViewTimeout) changeViewTimeout = clearTimeout(changeViewTimeout);
|
|
253
|
+
if (pressPrevOrNextInterval) pressPrevOrNextInterval = clearInterval(pressPrevOrNextInterval);
|
|
254
|
+
}
|
|
89
255
|
}
|
|
90
256
|
};
|
|
91
257
|
export {
|
|
92
|
-
|
|
258
|
+
DragAndDrop
|
|
93
259
|
};
|
package/dist/i18n/ar.amd.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue-cal v4.
|
|
3
|
-
* (c)
|
|
2
|
+
* vue-cal v4.10.1
|
|
3
|
+
* (c) 2025 Antoni Andre <antoniandre.web@gmail.com>
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/
|
|
5
|
+
*/
|
|
6
|
+
define(["exports"],(function(e){"use strict";const t=["الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"],a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر"," ديسمبر"],n="سنوات",o="أسبوع",d="اليوم",y="لا حدث",r="طوال اليوم",l="إنشاء حدث",s="dddd D MMMM YYYY",m={weekDays:t,months:a,years:n,year:"سنة",month:"شهر",week:o,day:"يوم",today:d,noEvent:y,allDay:r,deleteEvent:"حذف",createEvent:l,dateFormat:s};e.allDay=r,e.createEvent=l,e.dateFormat=s,e.day="يوم",e.default=m,e.deleteEvent="حذف",e.month="شهر",e.months=a,e.noEvent=y,e.today=d,e.week=o,e.weekDays=t,e.year="سنة",e.years=n,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/i18n/ar.cjs.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
"use strict"
|
|
2
|
-
|
|
3
|
-
*
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* vue-cal v4.10.1
|
|
4
|
+
* (c) 2025 Antoni Andre <antoniandre.web@gmail.com>
|
|
4
5
|
* @license MIT
|
|
5
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"],t=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر"," ديسمبر"],o="سنوات",r="أسبوع",s="اليوم",a="لا حدث",p="طوال اليوم",d="إنشاء حدث",n="dddd D MMMM YYYY",x={weekDays:e,months:t,years:o,year:"سنة",month:"شهر",week:r,day:"يوم",today:s,noEvent:a,allDay:p,deleteEvent:"حذف",createEvent:d,dateFormat:n};exports.allDay=p,exports.createEvent=d,exports.dateFormat=n,exports.day="يوم",exports.default=x,exports.deleteEvent="حذف",exports.month="شهر",exports.months=t,exports.noEvent=a,exports.today=s,exports.week=r,exports.weekDays=e,exports.year="سنة",exports.years=o;
|
package/dist/i18n/ar.es.js
CHANGED
|
@@ -1,22 +1,70 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue-cal v4.
|
|
3
|
-
* (c)
|
|
2
|
+
* vue-cal v4.10.1
|
|
3
|
+
* (c) 2025 Antoni Andre <antoniandre.web@gmail.com>
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
6
|
+
const weekDays = [
|
|
7
|
+
"الإثنين",
|
|
8
|
+
"الثلاثاء",
|
|
9
|
+
"الأربعاء",
|
|
10
|
+
"الخميس",
|
|
11
|
+
"الجمعة",
|
|
12
|
+
"السبت",
|
|
13
|
+
"الأحد"
|
|
14
|
+
];
|
|
15
|
+
const months = [
|
|
16
|
+
"يناير",
|
|
17
|
+
"فبراير",
|
|
18
|
+
"مارس",
|
|
19
|
+
"أبريل",
|
|
20
|
+
"مايو",
|
|
21
|
+
"يونيو",
|
|
22
|
+
"يوليو",
|
|
23
|
+
"أغسطس",
|
|
24
|
+
"سبتمبر",
|
|
25
|
+
"أكتوبر",
|
|
26
|
+
"نوفمبر",
|
|
27
|
+
" ديسمبر"
|
|
28
|
+
];
|
|
29
|
+
const years = "سنوات";
|
|
30
|
+
const year = "سنة";
|
|
31
|
+
const month = "شهر";
|
|
32
|
+
const week = "أسبوع";
|
|
33
|
+
const day = "يوم";
|
|
34
|
+
const today = "اليوم";
|
|
35
|
+
const noEvent = "لا حدث";
|
|
36
|
+
const allDay = "طوال اليوم";
|
|
37
|
+
const deleteEvent = "حذف";
|
|
38
|
+
const createEvent = "إنشاء حدث";
|
|
39
|
+
const dateFormat = "dddd D MMMM YYYY";
|
|
40
|
+
const ar = {
|
|
41
|
+
weekDays,
|
|
42
|
+
months,
|
|
43
|
+
years,
|
|
44
|
+
year,
|
|
45
|
+
month,
|
|
46
|
+
week,
|
|
47
|
+
day,
|
|
48
|
+
today,
|
|
49
|
+
noEvent,
|
|
50
|
+
allDay,
|
|
51
|
+
deleteEvent,
|
|
52
|
+
createEvent,
|
|
53
|
+
dateFormat
|
|
54
|
+
};
|
|
7
55
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
56
|
+
allDay,
|
|
57
|
+
createEvent,
|
|
58
|
+
dateFormat,
|
|
59
|
+
day,
|
|
60
|
+
ar as default,
|
|
61
|
+
deleteEvent,
|
|
62
|
+
month,
|
|
63
|
+
months,
|
|
64
|
+
noEvent,
|
|
65
|
+
today,
|
|
66
|
+
week,
|
|
67
|
+
weekDays,
|
|
68
|
+
year,
|
|
69
|
+
years
|
|
22
70
|
};
|
package/dist/i18n/bg.amd.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* vue-cal v4.
|
|
3
|
-
* (c)
|
|
2
|
+
* vue-cal v4.10.1
|
|
3
|
+
* (c) 2025 Antoni Andre <antoniandre.web@gmail.com>
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/
|
|
5
|
+
*/
|
|
6
|
+
define(["exports"],(function(e){"use strict";const t=["Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота","Неделя"],a=["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],n="Години",o="Година",d="Месец",y="Седмица",r="Днес",l="Няма събития",s="Цял ден",m="Изтрий",v="Създай събитие",c="dddd D MMMM YYYY",E={weekDays:t,months:a,years:n,year:o,month:d,week:y,day:"Ден",today:r,noEvent:l,allDay:s,deleteEvent:m,createEvent:v,dateFormat:c};e.allDay=s,e.createEvent=v,e.dateFormat=c,e.day="Ден",e.default=E,e.deleteEvent=m,e.month=d,e.months=a,e.noEvent=l,e.today=r,e.week=y,e.weekDays=t,e.year=o,e.years=n,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/i18n/bg.cjs.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
"use strict"
|
|
2
|
-
|
|
3
|
-
*
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* vue-cal v4.10.1
|
|
4
|
+
* (c) 2025 Antoni Andre <antoniandre.web@gmail.com>
|
|
4
5
|
* @license MIT
|
|
5
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота","Неделя"],t=["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],o="Години",r="Година",s="Месец",a="Седмица",p="Днес",d="Няма събития",n="Цял ден",x="Изтрий",y="Създай събитие",l="dddd D MMMM YYYY",m={weekDays:e,months:t,years:o,year:r,month:s,week:a,day:"Ден",today:p,noEvent:d,allDay:n,deleteEvent:x,createEvent:y,dateFormat:l};exports.allDay=n,exports.createEvent=y,exports.dateFormat=l,exports.day="Ден",exports.default=m,exports.deleteEvent=x,exports.month=s,exports.months=t,exports.noEvent=d,exports.today=p,exports.week=a,exports.weekDays=e,exports.year=r,exports.years=o;
|