{"id":18264864,"url":"https://github.com/bem/bem-calendar","last_synced_at":"2025-04-04T21:30:55.634Z","repository":{"id":74758204,"uuid":"82196008","full_name":"bem/bem-calendar","owner":"bem","description":"calendar based on bem-components","archived":false,"fork":false,"pushed_at":"2018-10-15T10:47:12.000Z","size":135,"stargazers_count":17,"open_issues_count":14,"forks_count":7,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-20T19:18:07.082Z","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/bem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-02-16T15:36:24.000Z","updated_at":"2024-10-04T00:58:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ba110bf-a003-45e4-ab8a-0ff8a12b418e","html_url":"https://github.com/bem/bem-calendar","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bem%2Fbem-calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bem%2Fbem-calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bem%2Fbem-calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bem%2Fbem-calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bem","download_url":"https://codeload.github.com/bem/bem-calendar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247252039,"owners_count":20908613,"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":[],"created_at":"2024-11-05T11:16:20.480Z","updated_at":"2025-04-04T21:30:55.628Z","avatar_url":"https://github.com/bem.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Calendar for bem-components\n\n![calendar](preview/desktop_en.png)\n\nOn iOS and Android system calendar is used.\n\n## Usage example\n\nTogether with `input`:\n```js\n{\n    block: 'input',\n    mods: {\n        'has-calendar': true,\n        size: 'm',\n        theme: 'islands'\n    },\n    weekdays: ['mo', 'tu', 'we', 'th', 'fr', 'sa', 'su'],\n    months: ['January', 'February', 'March',\n        'April', 'May', 'June', 'July',\n        'August', 'September', 'October',\n        'November', 'December'],\n    val: '16.02.2017'\n}\n```\n\nAs a separate block:\n```js\n{\n    block: 'calendar',\n    js: {\n        weekdays: ['mo', 'tu', 'we', 'th', 'fr', 'sa', 'su'],\n        months: ['January', 'February', 'March',\n            'April', 'May', 'June', 'July',\n            'August', 'September', 'October',\n            'November', 'December'],\n\n    },\n    mods: {\n        theme: 'islands'\n    }\n}\n```\n\nYou can set limits for dates using `earlierLimit` and `laterLimit` parameters.\n```js\n{\n    block: 'input',\n    mods: {\n        'has-calendar': true,\n        size: 'm',\n        theme: 'islands'\n    },\n    weekdays: ['mo', 'tu', 'we', 'th', 'fr', 'sa', 'su'],\n    months: ['January', 'February', 'March',\n            'April', 'May', 'June', 'July',\n            'August', 'September', 'October',\n            'November', 'December'],\n    earlierLimit: '13.02.2017',\n    laterLimit: '18.02.2017',\n    val: '17.02.2017'\n}\n```\n![calendar](preview/limits_en.png)\n\nNorth-American date and calendar format can be enabled by using `format:'north-american'` modifier.\nDate format: `mm/dd/yyyy`\n```js\n{\n    block: 'input',\n    mods: {\n        'has-calendar': true,\n        size: 'm',\n        theme: 'islands',\n        'calendar-format': 'north-american'\n    },\n    weekdays: ['su','mo', 'tu', 'we', 'th', 'fr', 'sa'],\n    months: ['January', 'February', 'March',\n            'April', 'May', 'June', 'July',\n            'August', 'September', 'October',\n            'November', 'December'],\n    earlierLimit: '02.13.2017',\n    laterLimit: '02.18.2017',\n    val: '02.17.2017'\n}\n```\n![calendar](preview/na_en.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbem%2Fbem-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbem%2Fbem-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbem%2Fbem-calendar/lists"}