@event-calendar/core
Advanced tools
Comparing version 1.5.0 to 1.5.1
{ | ||
"name": "@event-calendar/core", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"title": "Event Calendar Core package", | ||
@@ -30,4 +30,4 @@ "description": "Full-sized drag & drop event calendar with resource view", | ||
"dependencies": { | ||
"svelte": "^3.59.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 @@ | ||
export * from './lib/a11y.js'; | ||
export * from './lib/actions'; | ||
@@ -2,0 +3,0 @@ export * from './lib/date'; |
@@ -75,3 +75,3 @@ import {writable} from 'svelte/store'; | ||
for (let view of views) { | ||
let viewOpts = assign({}, options.views[view] || {}, input.views && input.views[view] || {}); | ||
let viewOpts = assign({}, options.views[view] ?? {}, input.views?.[view] ?? {}); | ||
parseOpts(viewOpts, this); | ||
@@ -78,0 +78,0 @@ let opts = assign({}, commonOpts, viewOpts); |
@@ -23,3 +23,3 @@ import {derived, writable, readable} from 'svelte/store'; | ||
export function monthMode(state) { | ||
return derived(state.view, $view => $view.startsWith?.('dayGrid')); | ||
return derived(state.view, $view => $view?.startsWith('dayGrid')); | ||
} | ||
@@ -26,0 +26,0 @@ |
Sorry, the diff of this file is too big to display
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
191901
23
3761
2681
+ Added@ampproject/remapping@2.3.0(transitive)
+ Added@jridgewell/gen-mapping@0.3.8(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Added@types/estree@1.0.6(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedaria-query@5.3.2(transitive)
+ Addedaxobject-query@4.1.0(transitive)
+ Addedcode-red@1.0.4(transitive)
+ Addedcss-tree@2.3.1(transitive)
+ Addedestree-walker@3.0.3(transitive)
+ Addedis-reference@3.0.3(transitive)
+ Addedlocate-character@3.0.0(transitive)
+ Addedmagic-string@0.30.15(transitive)
+ Addedmdn-data@2.0.30(transitive)
+ Addedperiscopic@3.1.0(transitive)
+ Addedsource-map-js@1.2.1(transitive)
+ Addedsvelte@4.2.19(transitive)
- Removedsvelte@3.59.2(transitive)
Updatedsvelte@^4.1.1