{"id":23053521,"url":"https://github.com/component/calendar","last_synced_at":"2025-07-23T04:03:58.846Z","repository":{"id":4703908,"uuid":"5851321","full_name":"component/calendar","owner":"component","description":"Calendar UI component","archived":false,"fork":false,"pushed_at":"2015-04-27T14:54:58.000Z","size":306,"stargazers_count":73,"open_issues_count":11,"forks_count":31,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-03T07:04:56.640Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/component.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-18T04:18:52.000Z","updated_at":"2024-02-12T23:52:05.000Z","dependencies_parsed_at":"2022-09-11T04:51:56.313Z","dependency_job_id":null,"html_url":"https://github.com/component/calendar","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/component/calendar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fcalendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fcalendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fcalendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fcalendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/calendar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fcalendar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266614309,"owners_count":23956342,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-16T00:18:31.786Z","updated_at":"2025-07-23T04:03:58.812Z","avatar_url":"https://github.com/component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Calendar\n\n  Calendar UI component designed for use as a date-picker,\n  full-sized calendar or anything in-between.\n\n  ![javascript calendar component](http://f.cl.ly/items/2u3w1D421W0C370Z3G1U/Screen%20Shot%202012-10-11%20at%2014.32.41.png)\n\n  Live demo is [here](http://component.github.io/calendar/)\n\n## Installation\n\n    $ component install component/calendar\n\n## Example\n\n```js\nvar Calendar = require('calendar');\nvar cal = new Calendar;\ncal.el.appendTo('body');\n```\n\n## Events\n\n  - `view change` (date, action) when the viewed month/year is changed without modification of the selected date. This can be done either by next/prev buttons or dropdown menu. The action will be \"prev\", \"next\", \"month\" or \"year\" depending on what action caused the view to change.\n  - `change` (date) when the selected date is modified\n\n## API\n\n### new Calendar(date)\n\n  Initialize a new `Calendar` with the given `date` shown,\n  defaulting to now.\n\n### Calendar#select(date)\n\n  Select the given `date` (`Date` object).\n\n### Calendar#show(date)\n\n  Show the given `date`. This does _not_ select the given date,\n  it simply ensures that it is visible in the current view.\n\n### Calendar#showMonthSelect()\n\n  Add month selection input.\n\n### Calendar#showYearSelect([from], [to])\n\n  Add year selection input, with optional range specified by `from` and `to`,\n  which default to the current year -10 / +10.\n\n### Calendar#prev()\n\n  Show the previous view (month).\n\n### Calendar#next()\n\n  Show the next view (month).\n\n### Calendar#min()\n\n  Define earliest valid date - calendar won't generate `change` events for dates before this one.\n\n### Calendar#max()\n\n  Define latest valid date - calendar won't generate `change` events for dates after this one.\n\n### Calendar#locale({months, weekdaysMin})\n\n  Set alternative locale:\n  - `months` - an array of 12 strings representing month names _January..December_.\n  - `weekdaysMin` - an array of 7 strings representing day names shortcuts _Sunday..Saturday_\n\n## Themes\n\n  [Aurora](https://github.com/component/aurora-calendar):\n\n  ![](http://f.cl.ly/items/043N1r0e1L130y162R2f/Screen%20Shot%202012-09-17%20at%209.17.32%20PM.png)\n\n# License\n\n  MIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fcalendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Fcalendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fcalendar/lists"}