@event-calendar/time-grid
Advanced tools
Comparing version 1.5.0 to 1.5.1
{ | ||
"name": "@event-calendar/time-grid", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"title": "Event Calendar TimeGrid plugin", | ||
@@ -29,5 +29,5 @@ "description": "Full-sized drag & drop event calendar with resource view", | ||
"dependencies": { | ||
"@event-calendar/core": "~1.5.0", | ||
"svelte": "^3.59.1" | ||
"@event-calendar/core": "~1.5.1", | ||
"svelte": "^4.1.1" | ||
} | ||
} |
@@ -197,4 +197,4 @@ # Event Calendar [![](https://data.jsdelivr.com/v1/package/npm/@event-calendar/build/badge)](https://www.jsdelivr.com/package/npm/@event-calendar/build) [![npm](https://img.shields.io/npm/dm/@event-calendar/core?color=red&label=npm&style=flat-square)](https://www.npmjs.com/package/@event-calendar/core) | ||
```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> | ||
``` | ||
@@ -288,11 +288,22 @@ | ||
- 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 | ||
} | ||
@@ -304,5 +315,5 @@ ``` | ||
`texts` | ||
`text` | ||
</td> | ||
<td>An object with default button texts</td> | ||
<td>An object with default button text</td> | ||
</tr> | ||
@@ -309,0 +320,0 @@ </table> |
@@ -0,1 +1,2 @@ | ||
import {btnTextDay, btnTextWeek} from '@event-calendar/core'; | ||
import {slotTimeLimits, times} from './stores.js'; | ||
@@ -16,2 +17,3 @@ import View from './View.svelte'; | ||
options.views.timeGridDay = { | ||
buttonText: btnTextDay, | ||
component: View, | ||
@@ -23,2 +25,3 @@ dayHeaderFormat: {weekday: 'long'}, | ||
options.views.timeGridWeek = { | ||
buttonText: btnTextWeek, | ||
component: View, | ||
@@ -25,0 +28,0 @@ duration: {weeks: 1} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
172509
3033
2681
- Removedsvelte@3.59.2(transitive)
Updated@event-calendar/core@~1.5.1
Updatedsvelte@^4.1.1