Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fullcalendar/vue

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fullcalendar/vue - npm Package Compare versions

Comparing version 6.1.4 to 6.1.5

19

dist/FullCalendar.js

@@ -22,3 +22,3 @@ import Vue from 'vue';

buildOptions(suppliedOptions) {
return Object.assign(Object.assign({}, suppliedOptions), { customRenderingMetaMap: this.$scopedSlots, handleCustomRendering: getSecret(this).handleCustomRendering, customRenderingReplacesEl: true });
return Object.assign(Object.assign({}, suppliedOptions), { customRenderingMetaMap: kebabToCamelKeys(this.$scopedSlots), handleCustomRendering: getSecret(this).handleCustomRendering, customRenderingReplacesEl: true });
},

@@ -124,2 +124,19 @@ },

}
// General Utils
function kebabToCamelKeys(map) {
const newMap = {};
for (const key in map) {
newMap[kebabToCamel(key)] = map[key];
}
return newMap;
}
function kebabToCamel(s) {
return s
.split('-')
.map((word, index) => index ? capitalize(word) : word)
.join('');
}
function capitalize(s) {
return s.charAt(0).toUpperCase() + s.slice(1);
}
//# sourceMappingURL=FullCalendar.js.map

41

dist/index.global.js

@@ -17,3 +17,3 @@ this.FullCalendar = this.FullCalendar || {};

const dummyContainer$1 = document.createDocumentFragment();
const dummyContainer$1 = typeof document !== 'undefined' ? document.createDocumentFragment() : null;
const OffscreenFragment = Vue__default["default"].extend({

@@ -30,13 +30,17 @@ render(h) {

mounted() {
dummyContainer$1.appendChild(this.$el);
if (dummyContainer$1) {
dummyContainer$1.appendChild(this.$el);
}
},
beforeDestroy() {
dummyContainer$1.removeChild(this.$el);
if (dummyContainer$1) {
dummyContainer$1.removeChild(this.$el);
}
}
});
const dummyContainer = document.createDocumentFragment();
const dummyContainer = typeof document !== 'undefined' ? document.createDocumentFragment() : null;
const TransportContainer = Vue__default["default"].extend({
props: {
inPlaceOf: Element,
inPlaceOf: typeof Element !== 'undefined' ? Element : Object,
reportEl: Function,

@@ -65,3 +69,3 @@ elTag: String,

*/
if (this.inPlaceOf.parentNode !== dummyContainer) {
if (dummyContainer && this.inPlaceOf.parentNode !== dummyContainer) {
replaceEl(this.$el, this.inPlaceOf);

@@ -73,3 +77,3 @@ this.reportEl(this.$el);

// protect against Preact recreating and rerooting inPlaceOf element
if (this.inPlaceOf.parentNode === dummyContainer) {
if (dummyContainer && this.inPlaceOf.parentNode === dummyContainer) {
dummyContainer.removeChild(this.inPlaceOf);

@@ -83,3 +87,5 @@ }

(_a = inPlaceOf.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(subject, inPlaceOf.nextSibling);
dummyContainer.appendChild(inPlaceOf);
if (dummyContainer) {
dummyContainer.appendChild(inPlaceOf);
}
}

@@ -102,3 +108,3 @@

buildOptions(suppliedOptions) {
return Object.assign(Object.assign({}, suppliedOptions), { customRenderingMetaMap: this.$scopedSlots, handleCustomRendering: getSecret(this).handleCustomRendering, customRenderingReplacesEl: true });
return Object.assign(Object.assign({}, suppliedOptions), { customRenderingMetaMap: kebabToCamelKeys(this.$scopedSlots), handleCustomRendering: getSecret(this).handleCustomRendering, customRenderingReplacesEl: true });
},

@@ -203,2 +209,19 @@ },

}
// General Utils
function kebabToCamelKeys(map) {
const newMap = {};
for (const key in map) {
newMap[kebabToCamel(key)] = map[key];
}
return newMap;
}
function kebabToCamel(s) {
return s
.split('-')
.map((word, index) => index ? capitalize(word) : word)
.join('');
}
function capitalize(s) {
return s.charAt(0).toUpperCase() + s.slice(1);
}

@@ -205,0 +228,0 @@ /*

@@ -1,1 +0,1 @@

this.FullCalendar=this.FullCalendar||{},this.FullCalendar.Vue=function(e,t,n,s){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(t);const l={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},d=document.createDocumentFragment(),o=i.default.extend({render(e){return e("aside",{style:{display:"none"}},this.$slots.default||[])},mounted(){d.appendChild(this.$el)},beforeDestroy(){d.removeChild(this.$el)}}),a=document.createDocumentFragment(),u=i.default.extend({props:{inPlaceOf:Element,reportEl:Function,elTag:String,elClasses:Array,elStyle:Object,elAttrs:Object},render(e){return e(this.elTag,{class:this.elClasses,style:this.elStyle,attrs:this.elAttrs},this.$slots.default||[])},mounted(){h(this.$el,this.inPlaceOf),this.inPlaceOf.style.display="none",this.reportEl(this.$el)},updated(){this.inPlaceOf.parentNode!==a&&(h(this.$el,this.inPlaceOf),this.reportEl(this.$el))},beforeDestroy(){this.inPlaceOf.parentNode===a&&a.removeChild(this.inPlaceOf),this.reportEl(null)}});function h(e,t){var n;null===(n=t.parentNode)||void 0===n||n.insertBefore(e,t.nextSibling),a.appendChild(t)}const p=i.default.extend({props:{options:Object},data:()=>({renderId:0,customRenderingMap:new Map}),methods:{getApi(){return this.calendar},buildOptions(e){return Object.assign(Object.assign({},e),{customRenderingMetaMap:this.$scopedSlots,handleCustomRendering:this.handleCustomRendering,customRenderingReplacesEl:!0})}},render(e){const t=[];for(const n of this.customRenderingMap.values()){const s="function"==typeof n.generatorMeta?n.generatorMeta(n.renderProps):n.generatorMeta;t.push(e("div",{key:n.id},[e(u,{key:n.id,props:{inPlaceOf:n.containerEl,reportEl:n.reportNewContainerEl,elTag:n.elTag,elClasses:n.elClasses,elStyle:n.elStyle,elAttrs:n.elAttrs}},s)]))}return e("div",{attrs:{"data-fc-render-id":this.renderId}},[e(o,t)])},mounted(){const e=new s.CustomRenderingStore;this.handleCustomRendering=e.handle.bind(e);const t=this.buildOptions(this.options),r=new n.Calendar(this.$el,t);this.calendar=r,r.render(),e.subscribe((e=>{this.customRenderingMap=e,this.renderId++,this.needCustomRenderingResize=!0}))},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeDestroy(){this.getApi().destroy()},watch:function(){let e={options:{deep:!0,handler(e){let t=this.getApi();t.pauseRendering();let n=this.buildOptions(e);t.resetOptions(n),this.renderId++}}};for(let t in l)e[`options.${t}`]={deep:!0,handler(e){if(void 0!==e){let n=this.getApi();n.pauseRendering(),n.resetOptions({[t]:e},[t]),this.renderId++}}};return e}()});let c,f=!1;function g(e){f||(f=!0,e.component("FullCalendar",p))}return c="undefined"!=typeof globalThis?globalThis.Vue:window.Vue,c&&c.use({install:g}),e.default=p,e.install=g,Object.defineProperty(e,"__esModule",{value:!0}),e}({},Vue,FullCalendar,FullCalendar.Internal);
this.FullCalendar=this.FullCalendar||{},this.FullCalendar.Vue=function(e,t,n,s){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=r(t);const l={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},o="undefined"!=typeof document?document.createDocumentFragment():null,d=i.default.extend({render(e){return e("aside",{style:{display:"none"}},this.$slots.default||[])},mounted(){o&&o.appendChild(this.$el)},beforeDestroy(){o&&o.removeChild(this.$el)}}),a="undefined"!=typeof document?document.createDocumentFragment():null,u=i.default.extend({props:{inPlaceOf:"undefined"!=typeof Element?Element:Object,reportEl:Function,elTag:String,elClasses:Array,elStyle:Object,elAttrs:Object},render(e){return e(this.elTag,{class:this.elClasses,style:this.elStyle,attrs:this.elAttrs},this.$slots.default||[])},mounted(){p(this.$el,this.inPlaceOf),this.inPlaceOf.style.display="none",this.reportEl(this.$el)},updated(){a&&this.inPlaceOf.parentNode!==a&&(p(this.$el,this.inPlaceOf),this.reportEl(this.$el))},beforeDestroy(){a&&this.inPlaceOf.parentNode===a&&a.removeChild(this.inPlaceOf),this.reportEl(null)}});function p(e,t){var n;null===(n=t.parentNode)||void 0===n||n.insertBefore(e,t.nextSibling),a&&a.appendChild(t)}const h=i.default.extend({props:{options:Object},data:()=>({renderId:0,customRenderingMap:new Map}),methods:{getApi(){return this.calendar},buildOptions(e){return Object.assign(Object.assign({},e),{customRenderingMetaMap:c(this.$scopedSlots),handleCustomRendering:this.handleCustomRendering,customRenderingReplacesEl:!0})}},render(e){const t=[];for(const n of this.customRenderingMap.values()){const s="function"==typeof n.generatorMeta?n.generatorMeta(n.renderProps):n.generatorMeta;t.push(e("div",{key:n.id},[e(u,{key:n.id,props:{inPlaceOf:n.containerEl,reportEl:n.reportNewContainerEl,elTag:n.elTag,elClasses:n.elClasses,elStyle:n.elStyle,elAttrs:n.elAttrs}},s)]))}return e("div",{attrs:{"data-fc-render-id":this.renderId}},[e(d,t)])},mounted(){const e=new s.CustomRenderingStore;this.handleCustomRendering=e.handle.bind(e);const t=this.buildOptions(this.options),r=new n.Calendar(this.$el,t);this.calendar=r,r.render(),e.subscribe((e=>{this.customRenderingMap=e,this.renderId++,this.needCustomRenderingResize=!0}))},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeDestroy(){this.getApi().destroy()},watch:function(){let e={options:{deep:!0,handler(e){let t=this.getApi();t.pauseRendering();let n=this.buildOptions(e);t.resetOptions(n),this.renderId++}}};for(let t in l)e[`options.${t}`]={deep:!0,handler(e){if(void 0!==e){let n=this.getApi();n.pauseRendering(),n.resetOptions({[t]:e},[t]),this.renderId++}}};return e}()});function c(e){const t={};for(const s in e)t[(n=s,n.split("-").map(((e,t)=>t?function(e){return e.charAt(0).toUpperCase()+e.slice(1)}(e):e)).join(""))]=e[s];var n;return t}let f,g=!1;function m(e){g||(g=!0,e.component("FullCalendar",h))}return f="undefined"!=typeof globalThis?globalThis.Vue:window.Vue,f&&f.use({install:m}),e.default=h,e.install=m,Object.defineProperty(e,"__esModule",{value:!0}),e}({},Vue,FullCalendar,FullCalendar.Internal);
import Vue from 'vue';
const dummyContainer = document.createDocumentFragment();
const dummyContainer = typeof document !== 'undefined' ? document.createDocumentFragment() : null;
const OffscreenFragment = Vue.extend({

@@ -14,6 +14,10 @@ render(h) {

mounted() {
dummyContainer.appendChild(this.$el);
if (dummyContainer) {
dummyContainer.appendChild(this.$el);
}
},
beforeDestroy() {
dummyContainer.removeChild(this.$el);
if (dummyContainer) {
dummyContainer.removeChild(this.$el);
}
}

@@ -20,0 +24,0 @@ });

import Vue from 'vue';
declare const TransportContainer: import("vue/types/vue").ExtendedVue<Vue<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => Vue<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown, {
inPlaceOf: Element;
inPlaceOf: any;
reportEl: Function;

@@ -5,0 +5,0 @@ elTag: string;

import Vue from 'vue';
const dummyContainer = document.createDocumentFragment();
const dummyContainer = typeof document !== 'undefined' ? document.createDocumentFragment() : null;
const TransportContainer = Vue.extend({
props: {
inPlaceOf: Element,
inPlaceOf: typeof Element !== 'undefined' ? Element : Object,
reportEl: Function,

@@ -29,3 +29,3 @@ elTag: String,

*/
if (this.inPlaceOf.parentNode !== dummyContainer) {
if (dummyContainer && this.inPlaceOf.parentNode !== dummyContainer) {
replaceEl(this.$el, this.inPlaceOf);

@@ -37,3 +37,3 @@ this.reportEl(this.$el);

// protect against Preact recreating and rerooting inPlaceOf element
if (this.inPlaceOf.parentNode === dummyContainer) {
if (dummyContainer && this.inPlaceOf.parentNode === dummyContainer) {
dummyContainer.removeChild(this.inPlaceOf);

@@ -48,4 +48,6 @@ }

(_a = inPlaceOf.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(subject, inPlaceOf.nextSibling);
dummyContainer.appendChild(inPlaceOf);
if (dummyContainer) {
dummyContainer.appendChild(inPlaceOf);
}
}
//# sourceMappingURL=TransportContainer.js.map
{
"name": "@fullcalendar/vue",
"version": "6.1.4",
"version": "6.1.5",
"title": "FullCalendar Vue 2 Component",

@@ -21,3 +21,3 @@ "description": "The official Vue 2 component for FullCalendar",

"peerDependencies": {
"@fullcalendar/core": "~6.1.4",
"@fullcalendar/core": "~6.1.5",
"vue": "^2.6.12"

@@ -30,7 +30,7 @@ },

"@babel/runtime": "^7.12.1",
"@fullcalendar/core": "~6.1.4",
"@fullcalendar/daygrid": "~6.1.4",
"@fullcalendar/interaction": "~6.1.4",
"@fullcalendar/resource": "~6.1.4",
"@fullcalendar/resource-timeline": "~6.1.4",
"@fullcalendar/core": "~6.1.5",
"@fullcalendar/daygrid": "~6.1.5",
"@fullcalendar/interaction": "~6.1.5",
"@fullcalendar/resource": "~6.1.5",
"@fullcalendar/resource-timeline": "~6.1.5",
"@vue/test-utils": "^1.0.3",

@@ -37,0 +37,0 @@ "babel-loader": "^8.1.0",

@@ -28,3 +28,3 @@ import Vue, { PropType, VNode } from 'vue'

...suppliedOptions,
customRenderingMetaMap: this.$scopedSlots,
customRenderingMetaMap: kebabToCamelKeys(this.$scopedSlots),
handleCustomRendering: getSecret(this).handleCustomRendering,

@@ -168,1 +168,24 @@ customRenderingReplacesEl: true,

}
// General Utils
function kebabToCamelKeys<V>(map: { [key: string]: V }): { [key: string]: V } {
const newMap: { [key: string]: V } = {}
for (const key in map) {
newMap[kebabToCamel(key)] = map[key]
}
return newMap
}
function kebabToCamel(s: string): string {
return s
.split('-')
.map((word, index) => index ? capitalize(word) : word)
.join('')
}
function capitalize(s: string): string {
return s.charAt(0).toUpperCase() + s.slice(1)
}
import Vue from 'vue'
const dummyContainer = document.createDocumentFragment()
const dummyContainer = typeof document !== 'undefined' ? document.createDocumentFragment() : null

@@ -17,7 +17,11 @@ const OffscreenFragment = Vue.extend({

mounted() {
dummyContainer.appendChild(this.$el)
if (dummyContainer) {
dummyContainer.appendChild(this.$el)
}
},
beforeDestroy() {
dummyContainer.removeChild(this.$el)
if (dummyContainer) {
dummyContainer.removeChild(this.$el)
}
}

@@ -24,0 +28,0 @@ })

import Vue from 'vue'
const dummyContainer = document.createDocumentFragment()
const dummyContainer = typeof document !== 'undefined' ? document.createDocumentFragment() : null
const TransportContainer = Vue.extend({
props: {
inPlaceOf: Element,
inPlaceOf: typeof Element !== 'undefined' ? Element : Object,
reportEl: Function, // TODO: better type

@@ -37,3 +37,3 @@ elTag: String,

*/
if (this.inPlaceOf.parentNode !== dummyContainer) {
if (dummyContainer && this.inPlaceOf.parentNode !== dummyContainer) {
replaceEl(this.$el, this.inPlaceOf)

@@ -46,3 +46,3 @@ this.reportEl(this.$el)

// protect against Preact recreating and rerooting inPlaceOf element
if (this.inPlaceOf.parentNode === dummyContainer) {
if (dummyContainer && this.inPlaceOf.parentNode === dummyContainer) {
dummyContainer.removeChild(this.inPlaceOf)

@@ -59,3 +59,6 @@ }

inPlaceOf.parentNode?.insertBefore(subject, inPlaceOf.nextSibling)
dummyContainer.appendChild(inPlaceOf)
if (dummyContainer) {
dummyContainer.appendChild(inPlaceOf)
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc