Skip to content

Commit

Permalink
v1.5.1
Browse files Browse the repository at this point in the history
Fixed A11y warnings after updating to Svelte 4.x
  • Loading branch information
vkurko committed Jul 26, 2023
1 parent e4bd9f5 commit 88b9630
Show file tree
Hide file tree
Showing 36 changed files with 1,127 additions and 681 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Event Calendar changelog

## 1.5.1
July 26, 2023

* Fixed A11y warnings after updating to Svelte 4.x ([160](https://github.com/vkurko/calendar/issues/160))

## 1.5.0
June 14, 2023

Expand Down
27 changes: 19 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ import '@event-calendar/core/index.css';
### Pre-built browser ready bundle
Include the following lines of code in the `<head>` section of your page:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.5.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.5.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.5.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.5.1/event-calendar.min.js"></script>
```

<details>
Expand Down Expand Up @@ -284,24 +284,35 @@ When hidden with `false`, all-day events will not be displayed in `timeGrid`/`re

### buttonText
- Type `object` or `function`
- Default `{today: 'today', dayGridMonth: 'month', listDay: 'list', listWeek: 'list', listMonth: 'list', listYear: 'list', resourceTimeGridDay: 'day', resourceTimeGridWeek: 'week', timeGridDay: 'day', timeGridWeek: 'week'}`
- Default `{close: 'Close', dayGridMonth: 'month', listDay: 'list', listMonth: 'list', listWeek: 'list', listYear: 'list', resourceTimeGridDay: 'day', resourceTimeGridWeek: 'week', timeGridDay: 'day', timeGridWeek: 'week', today: 'today'}`
> Views override the default value as follows:
> - dayGridMonth `function (text) { return {...text, next: 'Next month', prev: 'Previous month'}; }`
> - listDay `function (text) { return {...text, next: 'Next day', prev: 'Previous day'}; }`
> - listMonth `function (text) { return {...text, next: 'Next month', prev: 'Previous month'}; }`
> - listWeek `function (text) { return {...text, next: 'Next week', prev: 'Previous week'}; }`
> - listYear `function (text) { return {...text, next: 'Next year', prev: 'Previous year'}; }`
> - resourceTimeGridDay `function (text) { return {...text, next: 'Next day', prev: 'Previous day'}; }`
> - resourceTimeGridWeek `function (text) { return {...text, next: 'Next week', prev: 'Previous week'}; }`
> - timeGridDay `function (text) { return {...text, next: 'Next day', prev: 'Previous day'}; }`
> - timeGridWeek `function (text) { return {...text, next: 'Next week', prev: 'Previous week'}; }`

Text that is displayed in buttons of the header toolbar.

This value can be either a plain object with all necessary properties, or a callback function that receives default button texts object and should return a new one:
This value can be either a plain object with all necessary properties, or a callback function that receives default button text object and should return a new one:

```js
function (texts) {
// return new button texts object
function (text) {
// return new button text object
}
```
<table>
<tr>
<td>

`texts`
`text`
</td>
<td>An object with default button texts</td>
<td>An object with default button text</td>
</tr>
</table>

Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<link rel="manifest" href="site.webmanifest">
<link rel="stylesheet" href="global.css">

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.5.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.5.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.5.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.5.1/event-calendar.min.js"></script>
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
Expand Down
Loading

0 comments on commit 88b9630

Please sign in to comment.