{"id":16298954,"url":"https://github.com/ghiscoding/vanilla-calendar-picker","last_synced_at":"2025-03-20T05:30:45.256Z","repository":{"id":234809370,"uuid":"789526353","full_name":"ghiscoding/vanilla-calendar-picker","owner":"ghiscoding","description":"Vanilla Calendar is a versatile JavaScript date and time picker with TypeScript support, making it compatible with any JavaScript framework or library. It is designed to be lightweight, simple to use, and feature-rich without relying on external dependencies.","archived":false,"fork":false,"pushed_at":"2024-05-08T17:28:12.000Z","size":336,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-09T05:33:50.426Z","etag":null,"topics":["calendar","date","datepicker","javascript","native","typescript","vanilla"],"latest_commit_sha":null,"homepage":"https://vanilla-calendar.pro/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghiscoding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-20T19:51:45.000Z","updated_at":"2024-06-18T17:53:24.324Z","dependencies_parsed_at":"2024-05-11T20:32:04.536Z","dependency_job_id":null,"html_url":"https://github.com/ghiscoding/vanilla-calendar-picker","commit_stats":null,"previous_names":["ghiscoding/vanilla-calendar-picker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghiscoding%2Fvanilla-calendar-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghiscoding%2Fvanilla-calendar-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghiscoding%2Fvanilla-calendar-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghiscoding%2Fvanilla-calendar-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghiscoding","download_url":"https://codeload.github.com/ghiscoding/vanilla-calendar-picker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056342,"owners_count":20390719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calendar","date","datepicker","javascript","native","typescript","vanilla"],"created_at":"2024-10-10T20:46:06.032Z","updated_at":"2025-03-20T05:30:45.037Z","avatar_url":"https://github.com/ghiscoding.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VanillaCalendar - A Lightweight, Feature-Rich JavaScript Date and Time Picker\n\n\u003e [!WARNING]\n\u003e ## Forked from [Vanilla-Calendar-Pro](https://github.com/uvarov-frontend/vanilla-calendar-pro)\n\u003e\n\u003e This was a fork of the [Vanilla-Calendar-Pro](https://github.com/uvarov-frontend/vanilla-calendar-pro) project but **is no longer supported** since all my PRs (about a dozen of them) for features and fixes were all merged.\n\n---\n\n[![vanilla-calendar preview](https://vanilla-calendar.pro/vanilla-calendar-preview.png)](https://vanilla-calendar.pro/)\n\n[![version](https://img.shields.io/npm/v/vanilla-calendar-pro.svg)](https://npmjs.com/package/vanilla-calendar-pro)\n[![tests](https://github.com/uvarov-frontend/vanilla-calendar/actions/workflows/pull_request.yml/badge.svg)](https://github.com/uvarov-frontend/vanilla-calendar/actions/workflows/pull_request.yml)\n[![downloads](https://img.shields.io/npm/dm/vanilla-calendar-pro.svg)](https://npmjs.com/package/vanilla-calendar-pro)\n\nVanillaCalendar is a versatile JavaScript date and time picker with TypeScript support, making it compatible with any JavaScript framework or library. It is designed to be lightweight, simple to use, and feature-rich without relying on external dependencies.\n\n## Key Features\n\n- **Lightweight**: The final minified .js file is only approximately **37.3 KB**, and with gzip compression, it's just around **9.9 KB**.\n- **No Dependencies**: VanillaCalendar is entirely self-contained, ensuring you don't need to include additional libraries.\n- **Simple Localization**: Supports simple localization for any language.\n- **Customizable**: Can be easily configured using CSS and HTML markup.\n- **Multiple Instances**: Allows for an unlimited number of calendar instances on a single page.\n- **Theme Support**: Includes two themes - the light theme and the dark theme.\n- **Week Start Customization**: Supports both Sunday and Monday as the beginning of the week.\n- **Week Number Display**: Can display week numbers throughout the year.\n- **Not Tied to Input Tags**: Unlike many date pickers, it's not limited to the `\u003cinput\u003e` tag.\n\n## Browser Support\n\nVanillaCalendar is compatible with a wide range of browsers:\n\n![Chrome](https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Edge](https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![Opera](https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Safari](https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png)\n--- | --- | --- | --- | --- |\n57+ ✔ | 52+ ✔ | 80+ ✔ | 44+ ✔ | 10.1+ ✔ |\n\n## Support and Feedback\n\nThis plugin is completely free, and your support is important. Please feel free to report any issues or share your new ideas; it's really important!\n\nIf you like VanillaCalendar, please consider giving it a 🌟 star on GitHub.\n\n## Getting Started\n\n### Installation\n\nYou can install VanillaCalendar using npm or yarn:\n\n```sh\nnpm install vanilla-calendar-picker\n# or\nyarn add vanilla-calendar-picker\n```\n\nIf you prefer not to use a package manager, you can also include it via [CDN](https://cdn.jsdelivr.net/npm/vanilla-calendar-picker/build/) or [download](https://vanilla-calendar.pro/vanilla-calendar.zip) it from the website.\n\n### Usage\n\nHere's a simple example of how to use VanillaCalendar in your HTML:\n\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cdiv id=\"calendar\"\u003e\u003c/div\u003e\n    \u003c!-- or --\u003e\n    \u003c!-- \u003cinput type=\"text\" id=\"calendar-input\"\u003e --\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\nTo add the necessary styles and scripts, you can use the following code:\n\n```js\nimport { VanillaCalendar } from 'vanilla-calendar-picker';\nimport 'vanilla-calendar-picker/build/vanilla-calendar.min.css';\n\n// Initialize the calendar\nconst calendar = new VanillaCalendar('#calendar');\ncalendar.init();\n// or\n// const calendarWithInput = new VanillaCalendar('#calendar-input', { input: true });\n// calendarWithInput.init();\n```\n\nIf you're not using a package manager and prefer manual installation or CDN usage, you can include the necessary files in your HTML document's `\u003chead\u003e`:\n\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003clink href=\"./vanilla-calendar.min.css\" rel=\"stylesheet\"\u003e\n    \u003cscript src=\"./vanilla-calendar.min.js\" defer\u003e\u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cdiv id=\"calendar\"\u003e\u003c/div\u003e\n\n    \u003cscript\u003e\n      document.addEventListener('DOMContentLoaded', () =\u003e {\n        const calendar = new VanillaCalendar('#calendar');\n        calendar.init();\n      });\n    \u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## CSS Themes\n\n```js\n// Only layout calendar\nimport 'vanilla-calendar-picker/build/vanilla-calendar.layout.min.css';\n\n// Themes\nimport 'vanilla-calendar-picker/build/themes/light.min.css';\nimport 'vanilla-calendar-picker/build/themes/dark.min.css';\n```\n\nVanillaCalendar includes two CSS themes: the **light theme** and the **dark theme**.\n\n- The **vanilla-calendar.min.css** file contains all styles with all themes.\n- The **vanilla-calendar.layout.min.css** file contains the essential structural styles for the calendar.\n- The **themes/light.min.css** theme provides a light color scheme.\n- The **themes/dark.min.css** theme offers a dark color scheme.\n\n\nThe calendar will automatically display the theme according to the user's system preferences. If you want to apply a specific theme, it is recommended to import **«vanilla-calendar.layout.min.css»** along with the theme you prefer: **«light.min.css»** or **«dark.min.css»**, instead of **«vanilla-calendar.min.css»**.\n\n## DOM Templates\n\nVanillaCalendar features customizable DOM templates that allow you to modify the structure of the calendar to fit your needs. The templates are identified by tags containing the **#** character, and they should include a trailing slash at the end.\n\nHere's an example of the default template:\n\n```js\nnew VanillaCalendar('#calendar', {\n  DOMTemplates: {\n    default: `\n      \u003cdiv class=\"vanilla-calendar-header\"\u003e\n        \u003c#ArrowPrev /\u003e\n        \u003cdiv class=\"vanilla-calendar-header__content\"\u003e\n          \u003c#Month /\u003e\n          \u003c#Year /\u003e\n        \u003c/div\u003e\n        \u003c#ArrowNext /\u003e\n      \u003c/div\u003e\n      \u003cdiv class=\"vanilla-calendar-wrapper\"\u003e\n        \u003c#WeekNumbers /\u003e\n        \u003cdiv class \"vanilla-calendar-content\"\u003e\n          \u003c#Week /\u003e\n          \u003c#Days /\u003e\n        \u003c/div\u003e\n      \u003c/div\u003e\n      \u003c#ControlTime /\u003e\n    `\n  }\n});\n```\n\n## React Component\n\nFor detailed instructions on using VanillaCalendar in a React component with TypeScript, please visit the [website](https://vanilla-calendar.pro/docs/learn/additional-features/react-component) for comprehensive documentation and examples.\n\n## API Reference\n\nFor detailed information on the available parameters and settings, please refer to the [API reference](https://vanilla-calendar.pro/docs/reference/main/create-an-instance).\n\n## Sponsor\n\nThis project is tested with BrowserStack.\n\n## License\n\nMIT License\n\n## Author\n\nYury Uvarov (*uvarov.frontend@gmail.com*)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghiscoding%2Fvanilla-calendar-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghiscoding%2Fvanilla-calendar-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghiscoding%2Fvanilla-calendar-picker/lists"}