@artesa/fullcalendar-vue
Advanced tools
Comparing version
@@ -74,2 +74,4 @@ import { Calendar } from '@fullcalendar/core'; | ||
expose(exposed); | ||
// @ts-ignore | ||
root.getApi = getApi; | ||
return exposed; | ||
@@ -76,0 +78,0 @@ } |
@@ -176,2 +176,4 @@ 'use strict'; | ||
expose(exposed); | ||
// @ts-ignore | ||
root.getApi = getApi; | ||
return exposed; | ||
@@ -178,0 +180,0 @@ } |
@@ -172,2 +172,4 @@ var FullCalendarVue = (function (exports, core, Vue) { | ||
expose(exposed); | ||
// @ts-ignore | ||
root.getApi = getApi; | ||
return exposed; | ||
@@ -174,0 +176,0 @@ } |
@@ -1,1 +0,1 @@ | ||
var FullCalendarVue=function(e,n,t){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(t);const u={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0};function s(e){return"object"==typeof e&&(Array.isArray(e)?e=Array.prototype.slice.call(e):e&&(e={...e})),e}function a(e){return function(n){return{vue:e(n)}}}function c(e){return n.createPlugin({contentTypeHandlers:{vue:()=>function(e){let n,t;return{render:function(r,u){if(n!==r&&(n&&t&&t.$destroy(),n=r),t)t.content=u;else{t=function(e,n){return new o.default({parent:n,data:{content:e},render(e){let{content:n}=this;return 1===n.length?n[0]:e("span",{},n)}})}(u,e);let n=document.createElement("span");r.appendChild(n),t.$mount(n)}},destroy:function(){t&&t.$destroy()}}}(e)}})}var i=t.defineComponent({name:"FullCalendar",props:{options:{type:Object,default:()=>({})}},render(e){return e("div",{attrs:{"data-fc-render-id":this.renderId}})},setup(e,{expose:r}){const o=t.ref(0),i=t.getCurrentInstance(),d=i&&i.proxy;if(!d)return{};function l(e){return e=e||{},{...(d&&d.$options).scopedSlotOptions,...e,plugins:(e.plugins||[]).concat([c(d)])}}function p(){return(d&&d.$options).calendar}t.onMounted(()=>{let t=d.$options;t.scopedSlotOptions=function(e,n){const t={};for(const r in e)e.hasOwnProperty(r)&&(t[r]=n(e[r],r));return t}(d.$scopedSlots,a);const r=new n.Calendar(d.$el,l(e.options));t.calendar=r,r.render()}),t.onBeforeUpdate(()=>p().resumeRendering()),t.onBeforeUnmount(()=>p().destroy()),t.watch(()=>e.options,e=>{let n=p();n.pauseRendering(),n.resetOptions(l(e)),o.value++},{deep:!0});for(const n in u)t.watch(()=>e.options[n],e=>{if(void 0!==e){let t=p();t.pauseRendering(),t.resetOptions({[n]:s(e)},!0),o.value++}});const f={getApi:p,renderId:o};return r(f),f}});return e.default=i,Object.keys(n).forEach((function(t){"default"===t||e.hasOwnProperty(t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})),Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,Vue); | ||
var FullCalendarVue=function(e,n,t){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(t);const u={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0};function s(e){return"object"==typeof e&&(Array.isArray(e)?e=Array.prototype.slice.call(e):e&&(e={...e})),e}function a(e){return function(n){return{vue:e(n)}}}function c(e){return n.createPlugin({contentTypeHandlers:{vue:()=>function(e){let n,t;return{render:function(r,u){if(n!==r&&(n&&t&&t.$destroy(),n=r),t)t.content=u;else{t=function(e,n){return new o.default({parent:n,data:{content:e},render(e){let{content:n}=this;return 1===n.length?n[0]:e("span",{},n)}})}(u,e);let n=document.createElement("span");r.appendChild(n),t.$mount(n)}},destroy:function(){t&&t.$destroy()}}}(e)}})}var i=t.defineComponent({name:"FullCalendar",props:{options:{type:Object,default:()=>({})}},render(e){return e("div",{attrs:{"data-fc-render-id":this.renderId}})},setup(e,{expose:r}){const o=t.ref(0),i=t.getCurrentInstance(),d=i&&i.proxy;if(!d)return{};function l(e){return e=e||{},{...(d&&d.$options).scopedSlotOptions,...e,plugins:(e.plugins||[]).concat([c(d)])}}function p(){return(d&&d.$options).calendar}t.onMounted(()=>{let t=d.$options;t.scopedSlotOptions=function(e,n){const t={};for(const r in e)e.hasOwnProperty(r)&&(t[r]=n(e[r],r));return t}(d.$scopedSlots,a);const r=new n.Calendar(d.$el,l(e.options));t.calendar=r,r.render()}),t.onBeforeUpdate(()=>p().resumeRendering()),t.onBeforeUnmount(()=>p().destroy()),t.watch(()=>e.options,e=>{let n=p();n.pauseRendering(),n.resetOptions(l(e)),o.value++},{deep:!0});for(const n in u)t.watch(()=>e.options[n],e=>{if(void 0!==e){let t=p();t.pauseRendering(),t.resetOptions({[n]:s(e)},!0),o.value++}});const f={getApi:p,renderId:o};return r(f),d.getApi=p,f}});return e.default=i,Object.keys(n).forEach((function(t){"default"===t||e.hasOwnProperty(t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})})),Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,Vue); |
{ | ||
"name": "@artesa/fullcalendar-vue", | ||
"version": "5.13.6", | ||
"version": "5.13.7", | ||
"title": "FullCalendar Vue 2 Component", | ||
@@ -5,0 +5,0 @@ "description": "An official FullCalendar component for Vue 2", |
@@ -93,4 +93,7 @@ import { Calendar } from '@fullcalendar/core'; | ||
// @ts-ignore | ||
root.getApi = getApi; | ||
return exposed; | ||
} | ||
}); |
Sorry, the diff of this file is not supported yet
36398
0.74%750
1.08%