Socket
Book a DemoInstallSign in
Socket

@evomark/evo-calendar

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evomark/evo-calendar

A calendar and date picker plugin for Vue.js.

4.0.1
latest
Source
npmnpm
Version published
Weekly downloads
4
100%
Maintainers
0
Weekly downloads
 
Created
Source

evoMark company logo

Downloads Version Licence

Evo Calendar for Vue 3

A calendar and date picker plugin for Vue.js.

Vue.js 3.2+, Popper.js 2.0+ are required.

Install Plugin

NPM

npm install @evomark/evo-calendar @popperjs/core

Yarn

yarn add @evomark/evo-calendar @popperjs/core

Use Plugin

:warning: All installation methods require manual import of component styles. This is due to Vite build restrictions in library mode.

import '@evomark/evo-calendar/style.css';

Method 1: Use Globally

import { InstallEvoCalendar } from '@evomark/evo-calendar';
import '@evomark/evo-calendar/style.css';

// Use plugin with optional defaults
app.use(InstallEvoCalendar, {})
<!-- MyComponent.vue -->
<template>
  <VCalendar />
  <VDatePicker v-model="date" />
</template>

Method 2: Use Components Globally

// main.js
import { setupCalendar, Calendar, DatePicker } from '@evomark/evo-calendar';
import '@evomark/evo-calendar/style.css';

// Use plugin defaults (optional)
app.use(setupCalendar, {})

// Use the components
app.component('VCalendar', Calendar)
app.component('VDatePicker', DatePicker)
<!-- MyComponent.vue -->
<template>
  <VCalendar />
  <VDatePicker v-model="date" />
</template>

Method 3: Use Components As Needed

// main.js
import { setupCalendar } from '@evomark/evo-calendar';

// Use calendar defaults (optional)
app.use(setupCalendar, {})
<!-- MyComponent.vue -->
<template>
  <EvoCalendar />
  <EvoDatePicker v-model="date">
</template>

<script>
import { EvoCalendar, EvoDatePicker } from '@evomark/evo-calendar';
import '@evomark/evo-calendar/style.css';

export default {
  components: {
    EvoCalendar,
    EvoDatePicker,
  },
  data() {
    return {
      date: new Date(),
    };
  },
}
</script>

Source setup

Please follow below mentioned steps to clone and build this project:

Clone the repo

git clone https://github.com/evo-mark/evo-calendar

# Move to directory
cd evo-calendar

Install dependencies

yarn

Build library

# Types, ES, ESM, CommonJS, IIFE
yarn build

Lint and fix files

yarn lint

Test library

# Types, ES, ESM, CommonJS, IIFE
yarn test

Keywords

vue

FAQs

Package last updated on 04 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.