Socket
Socket
Sign inDemoInstall

@schedule-x/vue

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@schedule-x/vue - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

dist/types/types/custom-components.d.ts

2

dist/schedule-x-vue.umd.js

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

(function(e,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],d):(e=typeof globalThis<"u"?globalThis:e||self,d(e["schedule-x-vue"]={},e.Vue))})(this,function(e,d){"use strict";const n=d.defineComponent({name:"ScheduleXCalendar",props:{calendarApp:{type:Object,required:!0}},data(){return{elId:"sx"+Math.random().toString(36).substr(2,9)}},mounted(){this.calendarApp.render(document.getElementById(this.elId))},render(){return d.h("div",{id:this.elId,class:"sx-vue-calendar-wrapper"})}});e.ScheduleXCalendar=n,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
(function(o,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o["schedule-x-vue"]={},o.Vue))})(this,function(o,e){"use strict";const m=(n,t)=>(s,d)=>{const c={Component:e.h(t,d),wrapperElement:s};n(c)},p=e.defineComponent({name:"ScheduleXCalendar",props:{calendarApp:{type:Object,required:!0},customComponents:{type:Object,default:()=>({})}},data(){return{elId:"sx"+Math.random().toString(36).substr(2,9),customComponentsMeta:[]}},mounted(){for(const[n,t]of Object.entries(this.customComponents||{}))this.calendarApp._setCustomComponentFn(n,m(this.setCustomComponentMeta,t));this.calendarApp.render(document.getElementById(this.elId))},methods:{setCustomComponentMeta(n){const t=[...this.customComponentsMeta],s=n.wrapperElement.dataset.ccid,d=t.find(({wrapperElement:c})=>c.dataset.ccid===s);d&&t.splice(t.indexOf(d),1),this.customComponentsMeta=[...t,n]}},render(){const n=this.customComponentsMeta.map(({Component:t,wrapperElement:s})=>e.h(e.Teleport,{to:s},t));return e.h("div",{id:this.elId,class:"sx-vue-calendar-wrapper"},e.h(e.Fragment,{},n))}});o.ScheduleXCalendar=p,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
import { PropType } from 'vue';
import { CalendarApp } from '@schedule-x/calendar';
import type { CustomComponentMeta, CustomComponents, CustomComponentsMeta } from './types/custom-components';
declare const _default: import("vue").DefineComponent<{

@@ -8,5 +9,12 @@ calendarApp: {

};
customComponents: {
type: PropType<CustomComponents>;
default: () => {};
};
}, unknown, {
elId: string;
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
customComponentsMeta: CustomComponentsMeta;
}, {}, {
setCustomComponentMeta(component: CustomComponentMeta): void;
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
calendarApp: {

@@ -16,3 +24,9 @@ type: PropType<CalendarApp>;

};
}>>, {}, {}>;
customComponents: {
type: PropType<CustomComponents>;
default: () => {};
};
}>>, {
customComponents: CustomComponents;
}, {}>;
export default _default;
{
"name": "@schedule-x/vue",
"version": "0.4.0",
"version": "0.5.0",
"main": "./dist/schedule-x-vue.umd.js",

@@ -24,4 +24,4 @@ "module": "./dist/schedule-x-vue.mjs",

"peerDependencies": {
"vue": "^3",
"@schedule-x/calendar": "^0.4.0"
"@schedule-x/calendar": "^0.5.0",
"vue": "^3"
},

@@ -31,6 +31,8 @@ "devDependencies": {

"@rollup/plugin-typescript": "^11.1.5",
"@schedule-x/e2e-testing": "^0.3.0",
"@schedule-x/eslint-config": "^0.3.0",
"@schedule-x/prettier-config": "^0.3.0",
"@schedule-x/theme-default": "^0.3.0",
"@schedule-x/drag-and-drop": "^0.5.0",
"@schedule-x/e2e-testing": "^0.5.0",
"@schedule-x/eslint-config": "^0.5.0",
"@schedule-x/event-modal": "^0.5.0",
"@schedule-x/prettier-config": "^0.5.0",
"@schedule-x/theme-default": "^0.5.0",
"@typescript-eslint/eslint-plugin": "^6.15.0",

@@ -44,2 +46,3 @@ "@typescript-eslint/parser": "^6.15.0",

"prettier": "^3.1.1",
"sass": "^1.69.5",
"typescript": "^5.2.2",

@@ -46,0 +49,0 @@ "vite": "^5.0.8",

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