Skip to content

Commit

Permalink
v3.2.1
Browse files Browse the repository at this point in the history
Fixed an issue with the pointer not hiding when hovering over the all-day slot
  • Loading branch information
vkurko committed Jul 14, 2024
1 parent 9924a0f commit d82aab0
Show file tree
Hide file tree
Showing 25 changed files with 106 additions and 94 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Event Calendar changelog

## 3.2.1
July 15, 2024

* Fixed an issue with the pointer not hiding when hovering over the all-day slot

## 3.2.0
July 14, 2024

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ import '@event-calendar/core/index.css';
### Pre-built browser ready bundle
Include the following lines of code in the `<head>` section of your page:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.1/event-calendar.min.js"></script>
```

<details>
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<link rel="manifest" href="site.webmanifest">
<link rel="stylesheet" href="global.css?20231021">

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.1/event-calendar.min.js"></script>
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
Expand Down
62 changes: 31 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "event-calendar",
"version": "3.2.0",
"version": "3.2.1",
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
Expand All @@ -13,14 +13,14 @@
"@babel/plugin-transform-runtime": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/runtime-corejs3": "^7.24.7",
"@event-calendar/build": "~3.2.0",
"@event-calendar/core": "~3.2.0",
"@event-calendar/day-grid": "~3.2.0",
"@event-calendar/interaction": "~3.2.0",
"@event-calendar/list": "~3.2.0",
"@event-calendar/resource-time-grid": "~3.2.0",
"@event-calendar/resource-timeline": "~3.2.0",
"@event-calendar/time-grid": "~3.2.0",
"@event-calendar/build": "~3.2.1",
"@event-calendar/core": "~3.2.1",
"@event-calendar/day-grid": "~3.2.1",
"@event-calendar/interaction": "~3.2.1",
"@event-calendar/list": "~3.2.1",
"@event-calendar/resource-time-grid": "~3.2.1",
"@event-calendar/resource-timeline": "~3.2.1",
"@event-calendar/time-grid": "~3.2.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ import '@event-calendar/core/index.css';
### Pre-built browser ready bundle
Include the following lines of code in the `<head>` section of your page:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.1/event-calendar.min.js"></script>
```

<details>
Expand Down
14 changes: 7 additions & 7 deletions packages/build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@event-calendar/build",
"version": "3.2.0",
"version": "3.2.1",
"title": "Event Calendar",
"description": "Full-sized drag & drop event calendar with resource & timeline views",
"keywords": [
Expand All @@ -20,11 +20,11 @@
"jsdelivr": "event-calendar.min.js",
"style": "event-calendar.min.css",
"devDependencies": {
"@event-calendar/day-grid": "~3.2.0",
"@event-calendar/interaction": "~3.2.0",
"@event-calendar/list": "~3.2.0",
"@event-calendar/time-grid": "~3.2.0",
"@event-calendar/resource-time-grid": "~3.2.0",
"@event-calendar/resource-timeline": "~3.2.0"
"@event-calendar/day-grid": "~3.2.1",
"@event-calendar/interaction": "~3.2.1",
"@event-calendar/list": "~3.2.1",
"@event-calendar/time-grid": "~3.2.1",
"@event-calendar/resource-time-grid": "~3.2.1",
"@event-calendar/resource-timeline": "~3.2.1"
}
}
4 changes: 2 additions & 2 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ import '@event-calendar/core/index.css';
### Pre-built browser ready bundle
Include the following lines of code in the `<head>` section of your page:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.1/event-calendar.min.js"></script>
```

<details>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@event-calendar/core",
"version": "3.2.0",
"version": "3.2.1",
"title": "Event Calendar Core package",
"description": "Full-sized drag & drop event calendar with resource & timeline views",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions packages/day-grid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ import '@event-calendar/core/index.css';
### Pre-built browser ready bundle
Include the following lines of code in the `<head>` section of your page:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.1/event-calendar.min.js"></script>
```

<details>
Expand Down
4 changes: 2 additions & 2 deletions packages/day-grid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@event-calendar/day-grid",
"version": "3.2.0",
"version": "3.2.1",
"title": "Event Calendar DayGrid plugin",
"description": "Full-sized drag & drop event calendar with resource & timeline views",
"keywords": [
Expand All @@ -27,7 +27,7 @@
"./package.json": "./package.json"
},
"dependencies": {
"@event-calendar/core": "~3.2.0",
"@event-calendar/core": "~3.2.1",
"svelte": "^4.2.16"
}
}
4 changes: 2 additions & 2 deletions packages/day-grid/src/Day.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@
use:setContent={$_intlDayCell.format(date)}
></time>
<!-- Pointer -->
{#if iChunks[1] && datesEqual(iChunks[1].date, date)}
{#if iChunks[2] && datesEqual(iChunks[2].date, date)}
<div class="{$theme.events}">
<Event chunk={iChunks[1]}/>
<Event chunk={iChunks[2]}/>
</div>
{/if}
<!-- Drag & Resize -->
Expand Down
4 changes: 2 additions & 2 deletions packages/interaction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ import '@event-calendar/core/index.css';
### Pre-built browser ready bundle
Include the following lines of code in the `<head>` section of your page:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.1/event-calendar.min.js"></script>
```

<details>
Expand Down
4 changes: 2 additions & 2 deletions packages/interaction/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@event-calendar/interaction",
"version": "3.2.0",
"version": "3.2.1",
"title": "Event Calendar Interaction plugin",
"description": "Full-sized drag & drop event calendar with resource & timeline views",
"keywords": [
Expand All @@ -27,7 +27,7 @@
"./package.json": "./package.json"
},
"dependencies": {
"@event-calendar/core": "~3.2.0",
"@event-calendar/core": "~3.2.1",
"svelte": "^4.2.16"
}
}
18 changes: 10 additions & 8 deletions packages/interaction/src/Pointer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@
let dayEl = getElementWithPayload(x, y);
if (dayEl) {
let {date, resource} = getPayload(dayEl)(x, y);
let {allDay, date, resource} = getPayload(dayEl)(x, y);
let idx = allDay ? 2 : 1;
if (!$_iEvents[1]) {
createPointerEvent();
if (!$_iEvents[idx]) {
createPointerEvent(idx);
}
$_iEvents[1].start = date;
$_iEvents[1].end = addDuration(cloneDate(date), $slotDuration);
$_iEvents[1].resourceIds = resource ? [resource.id] : [];
$_iEvents[idx].start = date;
$_iEvents[idx].end = addDuration(cloneDate(date), $slotDuration);
$_iEvents[idx].resourceIds = resource ? [resource.id] : [];
}
}
Expand All @@ -43,8 +44,8 @@
}
}
function createPointerEvent() {
$_iEvents[1] = {
function createPointerEvent(idx) {
$_iEvents[idx] = {
id: '{pointer}',
title: '',
display: 'pointer',
Expand All @@ -55,6 +56,7 @@
function removePointerEvent() {
$_iEvents[1] = null;
$_iEvents[2] = null;
}
function validEvent(jsEvent) {
Expand Down
4 changes: 2 additions & 2 deletions packages/list/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ import '@event-calendar/core/index.css';
### Pre-built browser ready bundle
Include the following lines of code in the `<head>` section of your page:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.1/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.1/event-calendar.min.js"></script>
```

<details>
Expand Down
Loading

0 comments on commit d82aab0

Please sign in to comment.