Giter Site home page Giter Site logo

pawankolhe / color-calendar Goto Github PK

View Code? Open in Web Editor NEW
170.0 5.0 68.0 5.14 MB

πŸ“… A customizable calendar JavaScript UI widget/component library with the ability to show events.

Home Page: https://www.npmjs.com/package/color-calendar

License: MIT License

JavaScript 2.82% TypeScript 74.95% SCSS 22.23%
color-calendar calendar calendar-widget calendar-picker date-picker calendar-ui javascript

color-calendar's Introduction

Banner

Building the web. One line at a time.

AWS SAA logo

πŸ’› In love with JavaScript
🎨 Love writing CSS / Sass
πŸ”­ Currently working with TypeScript 🟦, React πŸ’™, Redux 🟣, Strapi πŸŸͺ
⭐️ Previously worked with Vuejs πŸ’š, Angular ❀️, Ionic πŸ”΅, MobX 🟧, Next.js πŸ–€
🌱 Learning Python 🐍 and Cloud ☁️
πŸ’¬ Ask me anything web dev


I'm a Night πŸ¦‰

🌞 Morning    98 commits     β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   15.38% 
πŸŒ† Daytime    199 commits    β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   31.24% 
πŸŒƒ Evening    242 commits    β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   37.99% 
πŸŒ™ Night      98 commits     β–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   15.38%

πŸ“Š This Week I Spent My Time On

πŸ’¬ Programming Languages: 
JavaScript               23 hrs 50 mins      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   55.73% 
SCSS                     12 hrs 48 mins      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   29.95% 
HTML                     3 hrs 42 mins       β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   8.66% 
Markdown                 59 mins             β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   2.3% 
Other                    35 mins             β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   1.36%

πŸ”₯ Editors: 
VS Code                  42 hrs 46 mins      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ   100.0%



color-calendar's People

Contributors

pawankolhe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

color-calendar's Issues

current day remain selected even if you change date

i notice that even if i change date on the calendar the current day remain higlithed with the custom background.

i want to disable this for user friendly questions

i'm using this plugin for a chek-in/check-out component.

Also it is possible to start another calendar and setting the current day to the next day based on the selected day of the previous calendar?

Translate weekdays

Hi, is there a way to translate the weekdays? Changing the values (of long-lower for example) in bundle.js doesn't do anything. Thanks in advance!

Disable days

Hi, how i can programmatically disable days in month?

How to configure date month only picker

Thanks for the script! Looks nice.

I have problem finding a configuration option how to create month/year only picker like it's shown on the screenshot (bottom third example). Maybe I am missing something.

Changing months also changes 'current date'

when moving between months, this also fires the event dateChanged

I notice that dateChanged fires when moving through months. This doesn't make sense as there is also a monthChanged event.

is there a way to isolate dateChanged to only fire when a date has been clicked on?

angular throws error

Error: node_modules/color-calendar/dist/index.d.ts:1:141 - error TS2307: Cannot find module './types.d' or its corresponding type declarations.

import { CalendarSize, LayoutModifier, CalendarOptions, EventData, Day, MonthDisplayType, WeekdayDisplayType, Weekdays, StartWeekday } from "./types.d";

image

Events longer than 1 month are not displayed

Events that start on one month and end on another are not being displayed at all. In the reproduction code there are three events, 1 day long, 1 week long and 1 month long, but only the first two are in the calendar.

Reproduction code
<!DOCTYPE html>
<html lang="en">
<head>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/color-calendar/dist/css/theme-basic.css" />
  <script src="https://cdn.jsdelivr.net/npm/color-calendar/dist/bundle.js"></script>
</head>
<body>
  <div id="color-calendar"></div>
  <div class="dayEvents"></div>
  <script>
    const today = new Date();
    const eventsData = [
      { start: today, end: today, name: "one day event" },
      { start: today, end: new Date(new Date(today.getTime() + 7 * 24 * 60 * 60 * 1000)), name: "one week event" },
      { start: today, end: new Date(new Date(today.getTime() + 30 * 24 * 60 * 60 * 1000)), name: "one month event" },
    ];
    new Calendar({
      id: "#color-calendar",
      calendarSize: "large",
      eventsData,
      dateChanged: (_date, events) => {
        document.querySelector(".dayEvents").innerText = JSON.stringify(events, null, "  ");
      },
    });
  </script>
</body>
</html>

Same code on codepen.io

Multiple Date selected Effect

How can I give color to multiple dates like color/ affect given to current date, I want to give different color on different dates. How can I resolve this issue in color-calendar npm , Thanks.

Set date range to display

Is it possible to select a range of dates in the calendar? For example, you need to display events in the period from 2022-05-05 to 2022-08-08. Other dates are not available for selection. Thanks.

customWeekdayValues seems to not working

I tried set up customWeekdayValues in calendar options but it seems to not working.
My setup is like this:

let calA = new Calendar({
id: "#calendar-a",
theme: "basic",
customWeekdayValues: ["Pon", "Wto", "Sro", "Czw", "Ptk", "Sob", "Nie"],
weekdayDisplayType: "long-lower"
})

Reccuring events

We would like to manage recurring events. For example, we want to add an event every Monday from today until December of the current year. We would like also to set manually the language for days and months. Thanks in advance

i18n

Hello,

thanks for the nice calendar.
I plan on using this in a multi-language website. Is there any way to localize the calendar?

Cheers mate.

Is there a trigger event for clicking the current day?

When clicking a different day, dateChanged is triggered, but what about clicking the existing selected day? Is there a way to have something happen when clicking the current day? Even having it trigger dateChanged is ok with me. Currently I have to click another day and then click back the original date to trigger a dateChanged for the existing day.

Customize weekend days

I'd like to customize weekend days, for example, disable them and/or change their color. How can I do this?
Thanks in advance.

Omit certain dates

Does this have the ability to hide certain dates?
I want the user to only be able to select x, y date but not z date.

Right now the unselectable dates are the ones that aren't in the same month

Is there any way to limit the date range?

I would like the calendar to only allow viewing/selecting days that are in the next 3 months and none from the past. Any ways to currently disable browsing/selecting dates outside of a specified range?

How to change event dots colors

I have a list of events which is categorized as "Casual" & "Sick" so how can I have different colors for each events category?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.