@event-calendar/resource-time-grid
Advanced tools
Comparing version 1.5.0 to 1.5.1
122
index.js
@@ -0,6 +1,6 @@ | ||
import { setContent, toLocalDate, btnTextDay, btnTextWeek } from '@event-calendar/core'; | ||
import TimeGrid, { Section, Body, Week, Day } from '@event-calendar/time-grid'; | ||
import { derived } from 'svelte/store'; | ||
import { SvelteComponent, init, safe_not_equal, element, attr, insert, action_destroyer, is_function, noop, detach, component_subscribe, binding_callbacks, create_component, space, mount_component, append, transition_in, group_outros, transition_out, check_outros, destroy_component, set_store_value, empty, destroy_each, text, set_data } from 'svelte/internal'; | ||
import { SvelteComponent, init, safe_not_equal, element, attr, insert, action_destroyer, is_function, noop, detach, component_subscribe, binding_callbacks, create_component, space, mount_component, append, transition_in, group_outros, transition_out, check_outros, destroy_component, set_store_value, ensure_array_like, empty, destroy_each, text, set_data } from 'svelte/internal'; | ||
import { getContext, onMount } from 'svelte'; | ||
import { setContent, toLocalDate } from '@event-calendar/core'; | ||
@@ -38,3 +38,3 @@ function viewResources(state) { | ||
/* packages/resource-time-grid/src/Label.svelte generated by Svelte v3.59.1 */ | ||
/* packages/resource-time-grid/src/Label.svelte generated by Svelte v4.1.1 */ | ||
@@ -72,3 +72,6 @@ function create_fragment$1(ctx) { | ||
d(detaching) { | ||
if (detaching) detach(div); | ||
if (detaching) { | ||
detach(div); | ||
} | ||
/*div_binding*/ ctx[9](null); | ||
@@ -155,3 +158,3 @@ mounted = false; | ||
/* packages/resource-time-grid/src/View.svelte generated by Svelte v3.59.1 */ | ||
/* packages/resource-time-grid/src/View.svelte generated by Svelte v4.1.1 */ | ||
@@ -261,3 +264,5 @@ function get_each_context(ctx, list, i) { | ||
d(detaching) { | ||
if (detaching) detach(div); | ||
if (detaching) { | ||
detach(div); | ||
} | ||
} | ||
@@ -272,3 +277,3 @@ }; | ||
let current; | ||
let each_value_6 = /*loops*/ ctx[3][1]; | ||
let each_value_6 = ensure_array_like(/*loops*/ ctx[3][1]); | ||
let each_blocks = []; | ||
@@ -307,3 +312,3 @@ | ||
if (dirty[0] & /*loops, $datesAboveResources, $theme, $_intlDayHeader*/ 60) { | ||
each_value_6 = /*loops*/ ctx[3][1]; | ||
each_value_6 = ensure_array_like(/*loops*/ ctx[3][1]); | ||
let i; | ||
@@ -357,3 +362,6 @@ | ||
d(detaching) { | ||
if (detaching) detach(div); | ||
if (detaching) { | ||
detach(div); | ||
} | ||
destroy_each(each_blocks, detaching); | ||
@@ -391,3 +399,5 @@ } | ||
d(detaching) { | ||
if (detaching) detach(div); | ||
if (detaching) { | ||
detach(div); | ||
} | ||
} | ||
@@ -502,4 +512,7 @@ }; | ||
d(detaching) { | ||
if (detaching) { | ||
detach(if_block_anchor); | ||
} | ||
if_blocks[current_block_type_index].d(detaching); | ||
if (detaching) detach(if_block_anchor); | ||
} | ||
@@ -613,3 +626,6 @@ }; | ||
d(detaching) { | ||
if (detaching) detach(div); | ||
if (detaching) { | ||
detach(div); | ||
} | ||
if_blocks[current_block_type_index].d(); | ||
@@ -625,3 +641,3 @@ if (if_block1) if_block1.d(); | ||
let current; | ||
let each_value_5 = /*loops*/ ctx[3][0]; | ||
let each_value_5 = ensure_array_like(/*loops*/ ctx[3][0]); | ||
let each_blocks = []; | ||
@@ -657,3 +673,3 @@ | ||
if (dirty[0] & /*$theme, loops, $datesAboveResources, $_intlDayHeader*/ 60) { | ||
each_value_5 = /*loops*/ ctx[3][0]; | ||
each_value_5 = ensure_array_like(/*loops*/ ctx[3][0]); | ||
let i; | ||
@@ -703,4 +719,7 @@ | ||
d(detaching) { | ||
if (detaching) { | ||
detach(each_1_anchor); | ||
} | ||
destroy_each(each_blocks, detaching); | ||
if (detaching) detach(each_1_anchor); | ||
} | ||
@@ -779,3 +798,6 @@ }; | ||
d(detaching) { | ||
if (detaching) detach(div2); | ||
if (detaching) { | ||
detach(div2); | ||
} | ||
destroy_component(section); | ||
@@ -790,3 +812,3 @@ } | ||
let current; | ||
let each_value_4 = /*$_viewResources*/ ctx[1]; | ||
let each_value_4 = ensure_array_like(/*$_viewResources*/ ctx[1]); | ||
let each_blocks = []; | ||
@@ -822,3 +844,3 @@ | ||
if (dirty[0] & /*$theme, $_viewDates, $_viewResources*/ 19) { | ||
each_value_4 = /*$_viewResources*/ ctx[1]; | ||
each_value_4 = ensure_array_like(/*$_viewResources*/ ctx[1]); | ||
let i; | ||
@@ -868,4 +890,7 @@ | ||
d(detaching) { | ||
if (detaching) { | ||
detach(each_1_anchor); | ||
} | ||
destroy_each(each_blocks, detaching); | ||
if (detaching) detach(each_1_anchor); | ||
} | ||
@@ -879,3 +904,3 @@ }; | ||
let current; | ||
let each_value_2 = /*$_viewDates*/ ctx[0]; | ||
let each_value_2 = ensure_array_like(/*$_viewDates*/ ctx[0]); | ||
let each_blocks = []; | ||
@@ -911,3 +936,3 @@ | ||
if (dirty[0] & /*$theme, $_viewResources, $_viewDates*/ 19) { | ||
each_value_2 = /*$_viewDates*/ ctx[0]; | ||
each_value_2 = ensure_array_like(/*$_viewDates*/ ctx[0]); | ||
let i; | ||
@@ -957,4 +982,7 @@ | ||
d(detaching) { | ||
if (detaching) { | ||
detach(each_1_anchor); | ||
} | ||
destroy_each(each_blocks, detaching); | ||
if (detaching) detach(each_1_anchor); | ||
} | ||
@@ -1012,3 +1040,6 @@ }; | ||
d(detaching) { | ||
if (detaching) detach(div); | ||
if (detaching) { | ||
detach(div); | ||
} | ||
destroy_component(week); | ||
@@ -1066,3 +1097,3 @@ } | ||
let current; | ||
let each_value_3 = /*$_viewResources*/ ctx[1]; | ||
let each_value_3 = ensure_array_like(/*$_viewResources*/ ctx[1]); | ||
let each_blocks = []; | ||
@@ -1103,3 +1134,3 @@ | ||
if (dirty[0] & /*$_viewDates, $_viewResources*/ 3) { | ||
each_value_3 = /*$_viewResources*/ ctx[1]; | ||
each_value_3 = ensure_array_like(/*$_viewResources*/ ctx[1]); | ||
let i; | ||
@@ -1153,3 +1184,6 @@ | ||
d(detaching) { | ||
if (detaching) detach(div); | ||
if (detaching) { | ||
detach(div); | ||
} | ||
destroy_each(each_blocks, detaching); | ||
@@ -1224,4 +1258,7 @@ } | ||
d(detaching) { | ||
if (detaching) { | ||
detach(if_block_anchor); | ||
} | ||
if_blocks[current_block_type_index].d(detaching); | ||
if (detaching) detach(if_block_anchor); | ||
} | ||
@@ -1289,3 +1326,3 @@ }; | ||
let current; | ||
let each_value_1 = /*loops*/ ctx[3][1]; | ||
let each_value_1 = ensure_array_like(/*loops*/ ctx[3][1]); | ||
let each_blocks = []; | ||
@@ -1326,3 +1363,3 @@ | ||
if (dirty[0] & /*$datesAboveResources, loops*/ 12) { | ||
each_value_1 = /*loops*/ ctx[3][1]; | ||
each_value_1 = ensure_array_like(/*loops*/ ctx[3][1]); | ||
let i; | ||
@@ -1376,3 +1413,6 @@ | ||
d(detaching) { | ||
if (detaching) detach(div); | ||
if (detaching) { | ||
detach(div); | ||
} | ||
destroy_each(each_blocks, detaching); | ||
@@ -1387,3 +1427,3 @@ } | ||
let current; | ||
let each_value = /*loops*/ ctx[3][0]; | ||
let each_value = ensure_array_like(/*loops*/ ctx[3][0]); | ||
let each_blocks = []; | ||
@@ -1419,3 +1459,3 @@ | ||
if (dirty[0] & /*$theme, loops, $datesAboveResources*/ 28) { | ||
each_value = /*loops*/ ctx[3][0]; | ||
each_value = ensure_array_like(/*loops*/ ctx[3][0]); | ||
let i; | ||
@@ -1465,4 +1505,7 @@ | ||
d(detaching) { | ||
if (detaching) { | ||
detach(each_1_anchor); | ||
} | ||
destroy_each(each_blocks, detaching); | ||
if (detaching) detach(each_1_anchor); | ||
} | ||
@@ -1586,7 +1629,10 @@ }; | ||
d(detaching) { | ||
if (detaching) detach(div1); | ||
if (detaching) { | ||
detach(div1); | ||
detach(t1); | ||
detach(t2); | ||
} | ||
destroy_component(section); | ||
if (detaching) detach(t1); | ||
if (if_block) if_block.d(detaching); | ||
if (detaching) detach(t2); | ||
destroy_component(body, detaching); | ||
@@ -1649,3 +1695,3 @@ } | ||
/* packages/resource-time-grid/src/Auxiliary.svelte generated by Svelte v3.59.1 */ | ||
/* packages/resource-time-grid/src/Auxiliary.svelte generated by Svelte v4.1.1 */ | ||
@@ -1703,2 +1749,3 @@ function instance($$self, $$props, $$invalidate) { | ||
options.views.resourceTimeGridDay = { | ||
buttonText: btnTextDay, | ||
component: View, | ||
@@ -1708,2 +1755,3 @@ duration: {days: 1} | ||
options.views.resourceTimeGridWeek = { | ||
buttonText: btnTextWeek, | ||
component: View, | ||
@@ -1710,0 +1758,0 @@ duration: {weeks: 1} |
{ | ||
"name": "@event-calendar/resource-time-grid", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"title": "Event Calendar ResourceTimeGrid plugin", | ||
@@ -29,6 +29,6 @@ "description": "Full-sized drag & drop event calendar with resource view", | ||
"dependencies": { | ||
"@event-calendar/core": "~1.5.0", | ||
"@event-calendar/time-grid": "~1.5.0", | ||
"svelte": "^3.59.1" | ||
"@event-calendar/core": "~1.5.1", | ||
"@event-calendar/time-grid": "~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 TimeGrid from '@event-calendar/time-grid'; | ||
@@ -20,2 +21,3 @@ import {viewResources} from './stores.js'; | ||
options.views.resourceTimeGridDay = { | ||
buttonText: btnTextDay, | ||
component: View, | ||
@@ -25,2 +27,3 @@ duration: {days: 1} | ||
options.views.resourceTimeGridWeek = { | ||
buttonText: btnTextWeek, | ||
component: View, | ||
@@ -27,0 +30,0 @@ duration: {weeks: 1} |
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
110211
1580
2681
- Removedsvelte@3.59.2(transitive)
Updated@event-calendar/core@~1.5.1
Updatedsvelte@^4.1.1