{"_id":"@cogors/v-calendar","name":"@cogors/v-calendar","dist-tags":{"latest":"3.1.3-beta.1"},"versions":{"3.1.3-beta.1":{"name":"@cogors/v-calendar","type":"module","version":"3.1.3-beta.1","description":"A calendar and date picker plugin for Vue.js.","author":{"name":"Nathan Reyes","email":"nathanreyes@me.com"},"repository":{"type":"git","url":"git+https://github.com/nathanreyes/v-calendar.git"},"homepage":"https://vcalendar.io","main":"dist/cjs/index.js","module":"dist/es/index.js","jsdelivr":"dist/iife/index.js","unpkg":"dist/iife/index.js","types":"dist/types/src/index.d.ts","keywords":["vue","vue3","vuejs","plugin","calendar","v-calendar","datepicker","date picker"],"license":"MIT","exports":{".":{"types":"./dist/types/src/index.d.ts","import":{"node":"./dist/mjs/index.mjs","default":"./dist/es/index.js"},"require":"./dist/cjs/index.js"},"./style.css":"./dist/style.css","./dist/*":"./dist/*"},"scripts":{"build":"tsx build/build.ts","build:docs":"cd docs && yarn build","build:all":"yarn build && yarn build:docs","test":"vitest","lint":"eslint . --ext .js,.vue","format":"prettier --write \"src/**/*.{js,jsx,ts,tsx,json,vue}\""},"dependencies":{"@types/lodash":"^4.14.165","@types/resize-observer-browser":"^0.1.7","date-fns":"^2.16.1","date-fns-tz":"^2.0.0","lodash":"^4.17.20","vue-screen-utils":"^1.0.0-beta.13"},"peerDependencies":{"@popperjs/core":"^2.0.0","vue":"^3.2.0"},"devDependencies":{"@popperjs/core":"^2.11.6","@trivago/prettier-plugin-sort-imports":"^4.2.0","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","@vitejs/plugin-vue":"^4.0.0","@vue/compiler-sfc":"^3.2.0","@vue/eslint-config-prettier":"6.0.0","@vue/eslint-config-typescript":"^11.0.0","@vue/test-utils":"^2.3.2","autoprefixer":"^9.7.8","eslint":"^8.17.0","eslint-plugin-prettier":"3.1.3","eslint-plugin-vue":"^9.1.1","jsdom":"^21.1.1","lint-staged":"^10.4.2","postcss":"^8.0.0","postcss-import":"^14.0.2","postcss-inline-svg":"^4.1.0","postcss-nested":"^4.2.1","postcss-simple-vars":"5.0.2","postcss-url":"^8.0.0","prettier":"^3.0.3","regenerator-runtime":"^0.13.9","resize-observer-polyfill":"^1.5.1","rollup-plugin-visualizer":"^5.5.4","terser":"^5.16.1","tslib":"^2.4.0","tsx":"^3.12.2","typescript":"^4.8.4","vite":"^4.0.4","vitest":"^0.29.7","vue":"^3.2.0","vue-tsc":"^1.0.24"},"gitHead":"9de6ae84c17a746b7c74da582a729cff95f80ed6","bugs":{"url":"https://github.com/nathanreyes/v-calendar/issues"},"_id":"@cogors/v-calendar@3.1.3-beta.1","_nodeVersion":"18.14.2","_npmVersion":"9.5.0","dist":{"integrity":"sha512-Su92CVARvqb3TyqUpngoMfDmdBZvgxKPN9K4Rqhr+M0yqKQKaalgRKGLzHctYB8t3dUvBvY9DnRcv6UG18q50A==","shasum":"f19f4ddaf4cc31cc9d0c40d5698edb4cb0cec13a","tarball":"https://registry.npmjs.org/@cogors/v-calendar/-/v-calendar-3.1.3-beta.1.tgz","fileCount":155,"unpackedSize":10305240,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAnHSwKGIYZZz1e8iKxH4N+35G3qxGUjN4QWojZUIJSxAiABM9OnP/8VtazqUZLBC4BCytjQ0do26CyCrxo4Kvd3Wg=="}]},"_npmUser":{"name":"cogors","email":"ilya.sosidka@gmail.com"},"directories":{},"maintainers":[{"name":"cogors","email":"ilya.sosidka@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/v-calendar_3.1.3-beta.1_1726587017825_0.5633697650120113"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-17T15:30:17.725Z","3.1.3-beta.1":"2024-09-17T15:30:18.176Z","modified":"2024-09-17T15:30:18.461Z"},"maintainers":[{"name":"cogors","email":"ilya.sosidka@gmail.com"}],"description":"A calendar and date picker plugin for Vue.js.","homepage":"https://vcalendar.io","keywords":["vue","vue3","vuejs","plugin","calendar","v-calendar","datepicker","date picker"],"repository":{"type":"git","url":"git+https://github.com/nathanreyes/v-calendar.git"},"author":{"name":"Nathan Reyes","email":"nathanreyes@me.com"},"bugs":{"url":"https://github.com/nathanreyes/v-calendar/issues"},"license":"MIT","readme":"# VCalendar Plugin for Vue 3\n\nA calendar and date picker plugin for [Vue.js](https://vuejs.org).\n\n[Vue.js](https://vuejs.org) 3.2+, [Popper.js](https://popper.js.org/docs/v2/) 2.0+ are required.\n\n## Install Plugin\n\n### NPM\n\n```shell\nnpm install v-calendar@next @popperjs/core\n```\n\n### Yarn\n\n```shell\nyarn add v-calendar@next @popperjs/core\n```\n\n## Use Plugin\n\n:warning: **As of `v3.0.0-alpha.7`, all installation methods require manual import of component styles. This is due to Vite build restrictions in libary mode.**\n\n```js\nimport 'v-calendar/style.css';\n```\n\n### Method 1: Use Globally\n\n```js\nimport VCalendar from 'v-calendar';\nimport 'v-calendar/style.css';\n\n// Use plugin with optional defaults\napp.use(VCalendar, {})\n```\n\n```html\n<!-- MyComponent.vue -->\n<template>\n  <VCalendar />\n  <VDatePicker v-model=\"date\" />\n</template>\n```\n\n### Method 2: Use Components Globally\n\n```js\n// main.js\nimport { setupCalendar, Calendar, DatePicker } from 'v-calendar';\nimport 'v-calendar/style.css';\n\n// Use plugin defaults (optional)\napp.use(setupCalendar, {})\n\n// Use the components\napp.component('VCalendar', Calendar)\napp.component('VDatePicker', DatePicker)\n```\n\n```html\n<!-- MyComponent.vue -->\n<template>\n  <VCalendar />\n  <VDatePicker v-model=\"date\" />\n</template>\n```\n\n### Method 3: Use Components As Needed\n\n```js\n// main.js\nimport { setupCalendar } from 'v-calendar';\n\n// Use calendar defaults (optional)\napp.use(setupCalendar, {})\n```\n\n```vue\n<!-- MyComponent.vue -->\n<template>\n  <Calendar />\n  <DatePicker v-model=\"date\">\n</template>\n\n<script>\nimport { Calendar, DatePicker } from 'v-calendar';\nimport 'v-calendar/style.css';\n\nexport default {\n  components: {\n    Calendar,\n    DatePicker,\n  },\n  data() {\n    return {\n      date: new Date(),\n    };\n  },\n}\n</script>\n```\n\n## Source setup\n\nPlease follow below mentioned steps to clone and build this project:\n\n### Clone the repo\n\n```sh\ngit clone https://github.com/nathanreyes/v-calendar\n\n# Move to directory\ncd v-calendar\n```\n\n### Install dependencies\n\n```sh\nyarn\n```\n\n### Build library\n\n```sh\n# Types, ES, ESM, CommonJS, IIFE\nyarn build\n```\n\n### Lint and fix files\n\n```sh\nyarn lint\n```\n\n### Test library\n\n```sh\n# Types, ES, ESM, CommonJS, IIFE\nyarn test\n```","readmeFilename":"README.md"}