@event-calendar/list
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -995,3 +995,3 @@ import { SvelteComponent, init, safe_not_equal, create_slot, element, attr, insert, append, update_slot_base, get_all_dirty_from_scope, get_slot_changes, transition_in, transition_out, detach, component_subscribe, binding_callbacks, space, action_destroyer, listen, is_function, noop, run_all, empty, group_outros, check_outros, text, set_data, update_keyed_each, outro_and_destroy_block, create_component, mount_component, destroy_component, set_store_value, destroy_each } from 'svelte/internal'; | ||
for (let event of $_events) { | ||
if (event.display === 'auto' && event.start < end && event.end > start) { | ||
if (!bgEvent(event.display) && event.start < end && event.end > start) { | ||
$$invalidate(2, noEvents = false); | ||
@@ -998,0 +998,0 @@ break; |
{ | ||
"name": "@event-calendar/list", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"title": "Event Calendar List plugin", | ||
@@ -29,5 +29,5 @@ "description": "Full-sized drag & drop event calendar with resource view", | ||
"dependencies": { | ||
"@event-calendar/core": "~1.2.0", | ||
"@event-calendar/core": "~1.3.0", | ||
"svelte": "^3.59.1" | ||
} | ||
} |
@@ -196,4 +196,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.2.0/event-calendar.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.2.0/event-calendar.min.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.3.0/event-calendar.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.3.0/event-calendar.min.js"></script> | ||
``` | ||
@@ -286,3 +286,3 @@ | ||
### buttonText | ||
- Type `object` | ||
- 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'}` | ||
@@ -292,2 +292,19 @@ | ||
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: | ||
```js | ||
function (texts) { | ||
// return new button texts object | ||
} | ||
``` | ||
<table> | ||
<tr> | ||
<td> | ||
`texts` | ||
</td> | ||
<td>An object with default button texts</td> | ||
</tr> | ||
</table> | ||
### date | ||
@@ -1276,3 +1293,3 @@ - Type `Date` or `string` | ||
### flexibleSlotTimeLimits | ||
- Type `boolean` | ||
- Type `boolean` or `object` | ||
- Default `false` | ||
@@ -1282,2 +1299,38 @@ | ||
If set to `true`, then the decision on whether to expand the limits will be made based on the analysis of currently displayed events, but excluding background events. | ||
If you want background events not to be ignored, then instead of `true` you can pass an object with the following properties: | ||
<table> | ||
<tr> | ||
<td> | ||
`eventFilter` | ||
</td> | ||
<td> | ||
A function to determine whether a given event should be taken into account or not. | ||
```js | ||
function(event) { | ||
// return true or false | ||
} | ||
``` | ||
<table> | ||
<tr> | ||
<td> | ||
`event` | ||
</td> | ||
<td> | ||
[Event](#event-object) object to be analyzed. The function must return `true` to have this event counted, or `false` to ignore it | ||
</td> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
### headerToolbar | ||
@@ -1801,3 +1854,3 @@ - Type `object` | ||
This value can be either a plain object with all necessary properties, or a callback function that receives default theme object and should return an actual one: | ||
This value can be either a plain object with all necessary properties, or a callback function that receives default theme object and should return a new one: | ||
@@ -1804,0 +1857,0 @@ ```js |
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
95409
2630
+ Added@event-calendar/core@1.3.1(transitive)
- Removed@event-calendar/core@1.2.0(transitive)
Updated@event-calendar/core@~1.3.0