@event-calendar/core 3.2.1 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/index.js +8 -1
- package/package.json +1 -1
- package/src/Calendar.svelte +7 -1
package/README.md
CHANGED
|
@@ -204,8 +204,8 @@ import '@event-calendar/core/index.css';
|
|
|
204
204
|
### Pre-built browser ready bundle
|
|
205
205
|
Include the following lines of code in the `<head>` section of your page:
|
|
206
206
|
```html
|
|
207
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.
|
|
208
|
-
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.
|
|
207
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.2/event-calendar.min.css">
|
|
208
|
+
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.2/event-calendar.min.js"></script>
|
|
209
209
|
```
|
|
210
210
|
|
|
211
211
|
<details>
|
package/index.js
CHANGED
|
@@ -2671,7 +2671,14 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
2671
2671
|
|
|
2672
2672
|
function dateFromPoint(x, y) {
|
|
2673
2673
|
let dayEl = getElementWithPayload(x, y);
|
|
2674
|
-
|
|
2674
|
+
|
|
2675
|
+
if (dayEl) {
|
|
2676
|
+
let info = getPayload(dayEl)(x, y);
|
|
2677
|
+
info.date = toLocalDate(info.date);
|
|
2678
|
+
return info;
|
|
2679
|
+
}
|
|
2680
|
+
|
|
2681
|
+
return null;
|
|
2675
2682
|
}
|
|
2676
2683
|
|
|
2677
2684
|
function destroy() {
|
package/package.json
CHANGED
package/src/Calendar.svelte
CHANGED
|
@@ -103,7 +103,13 @@
|
|
|
103
103
|
|
|
104
104
|
export function dateFromPoint(x, y) {
|
|
105
105
|
let dayEl = getElementWithPayload(x, y);
|
|
106
|
-
|
|
106
|
+
if (dayEl) {
|
|
107
|
+
let info = getPayload(dayEl)(x, y);
|
|
108
|
+
info.date = toLocalDate(info.date);
|
|
109
|
+
|
|
110
|
+
return info;
|
|
111
|
+
}
|
|
112
|
+
return null;
|
|
107
113
|
}
|
|
108
114
|
|
|
109
115
|
export function destroy() {
|