Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@event-calendar/core

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@event-calendar/core - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

src/lib/a11y.js

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc