@event-calendar/build 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -194,8 +194,8 @@ import '@event-calendar/core/index.css';
194
194
  ### Pre-built browser ready bundle
195
195
  Include the following lines of code in the `<head>` section of your page:
196
196
  ```html
197
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.5.0/event-calendar.min.css">
198
- <script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.5.0/event-calendar.min.js"></script>
197
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.5.1/event-calendar.min.css">
198
+ <script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.5.1/event-calendar.min.js"></script>
199
199
  ```
200
200
 
201
201
  <details>
@@ -284,24 +284,35 @@ When hidden with `false`, all-day events will not be displayed in `timeGrid`/`re
284
284
 
285
285
  ### buttonText
286
286
  - Type `object` or `function`
287
- - Default `{today: 'today', dayGridMonth: 'month', listDay: 'list', listWeek: 'list', listMonth: 'list', listYear: 'list', resourceTimeGridDay: 'day', resourceTimeGridWeek: 'week', timeGridDay: 'day', timeGridWeek: 'week'}`
287
+ - Default `{close: 'Close', dayGridMonth: 'month', listDay: 'list', listMonth: 'list', listWeek: 'list', listYear: 'list', resourceTimeGridDay: 'day', resourceTimeGridWeek: 'week', timeGridDay: 'day', timeGridWeek: 'week', today: 'today'}`
288
+ > Views override the default value as follows:
289
+ > - dayGridMonth `function (text) { return {...text, next: 'Next month', prev: 'Previous month'}; }`
290
+ > - listDay `function (text) { return {...text, next: 'Next day', prev: 'Previous day'}; }`
291
+ > - listMonth `function (text) { return {...text, next: 'Next month', prev: 'Previous month'}; }`
292
+ > - listWeek `function (text) { return {...text, next: 'Next week', prev: 'Previous week'}; }`
293
+ > - listYear `function (text) { return {...text, next: 'Next year', prev: 'Previous year'}; }`
294
+ > - resourceTimeGridDay `function (text) { return {...text, next: 'Next day', prev: 'Previous day'}; }`
295
+ > - resourceTimeGridWeek `function (text) { return {...text, next: 'Next week', prev: 'Previous week'}; }`
296
+ > - timeGridDay `function (text) { return {...text, next: 'Next day', prev: 'Previous day'}; }`
297
+ > - timeGridWeek `function (text) { return {...text, next: 'Next week', prev: 'Previous week'}; }`
298
+
288
299
 
289
300
  Text that is displayed in buttons of the header toolbar.
290
301
 
291
- 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:
302
+ 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:
292
303
 
293
304
  ```js
294
- function (texts) {
295
- // return new button texts object
305
+ function (text) {
306
+ // return new button text object
296
307
  }
297
308
  ```
298
309
  <table>
299
310
  <tr>
300
311
  <td>
301
312
 
302
- `texts`
313
+ `text`
303
314
  </td>
304
- <td>An object with default button texts</td>
315
+ <td>An object with default button text</td>
305
316
  </tr>
306
317
  </table>
307
318