@event-calendar/core 2.1.0 → 2.2.0

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 CHANGED
@@ -26,6 +26,7 @@ Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options
26
26
  - [dateClick](#dateclick)
27
27
  - [datesAboveResources](#datesaboveresources)
28
28
  - [datesSet](#datesset)
29
+ - [dayCellFormat](#daycellformat)
29
30
  - [dayHeaderFormat](#dayheaderformat)
30
31
  - [dayMaxEvents](#daymaxevents)
31
32
  - [dayPopoverFormat](#daypopoverformat)
@@ -44,9 +45,9 @@ Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options
44
45
  - [eventDragStart](#eventdragstart)
45
46
  - [eventDragStop](#eventdragstop)
46
47
  - [eventDrop](#eventdrop)
47
- - [eventDurationEditable](#eventdurationeditable)
48
48
  </td><td>
49
49
 
50
+ - [eventDurationEditable](#eventdurationeditable)
50
51
  - [eventLongPressDelay](#eventlongpressdelay)
51
52
  - [eventMouseEnter](#eventmouseenter)
52
53
  - [eventMouseLeave](#eventmouseleave)
@@ -72,9 +73,9 @@ Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options
72
73
  - [longPressDelay](#longpressdelay)
73
74
  - [moreLinkContent](#morelinkcontent)
74
75
  - [noEventsClick](#noeventsclick)
75
- - [noEventsContent](#noeventscontent)
76
76
  </td><td>
77
77
 
78
+ - [noEventsContent](#noeventscontent)
78
79
  - [nowIndicator](#nowindicator)
79
80
  - [pointer](#pointer)
80
81
  - [resources](#resources)
@@ -195,8 +196,8 @@ import '@event-calendar/core/index.css';
195
196
  ### Pre-built browser ready bundle
196
197
  Include the following lines of code in the `<head>` section of your page:
197
198
  ```html
198
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.1.0/event-calendar.min.css">
199
- <script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.1.0/event-calendar.min.js"></script>
199
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.2.0/event-calendar.min.css">
200
+ <script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.2.0/event-calendar.min.js"></script>
200
201
  ```
201
202
 
202
203
  <details>
@@ -453,6 +454,29 @@ The current [View](#view-object) object
453
454
  </tr>
454
455
  </table>
455
456
 
457
+ ### dayCellFormat
458
+ - Type `object` or `function`
459
+ - Default `{day: 'numeric'}`
460
+
461
+ Defines the text that is displayed inside the day cell in the `dayGrid` view.
462
+
463
+ This value can be either an object with options for the native JavaScript [Intl.DateTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat) object, or a callback function that returns a [Content](#content) with the formatted string:
464
+
465
+ ```js
466
+ function (date) {
467
+ // return Content with the formatted date string
468
+ }
469
+ ```
470
+ <table>
471
+ <tr>
472
+ <td>
473
+
474
+ `date`
475
+ </td>
476
+ <td>JavaScript Date object that needs to be formatted</td>
477
+ </tr>
478
+ </table>
479
+
456
480
  ### dayHeaderFormat
457
481
  - Type `object` or `function`
458
482
  - Default `{weekday: 'short', month: 'numeric', day: 'numeric'}`
package/index.js CHANGED
@@ -2216,7 +2216,7 @@ function create_fragment(ctx) {
2216
2216
  attr(div, "class", div_class_value);
2217
2217
  }
2218
2218
 
2219
- if (!current || dirty[0] & /*$height*/ 8) {
2219
+ if (dirty[0] & /*$height*/ 8) {
2220
2220
  set_style(div, "height", /*$height*/ ctx[3]);
2221
2221
  }
2222
2222
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@event-calendar/core",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "title": "Event Calendar Core package",
5
5
  "description": "Full-sized drag & drop event calendar with resource view",
6
6
  "keywords": [
@@ -131,7 +131,7 @@
131
131
 
132
132
  <div
133
133
  class="{$theme.calendar} {$theme.view}{$_scrollable ? ' ' + $theme.withScroll : ''}{$_iClass ? ' ' + $theme[$_iClass] : ''}"
134
- style="height: {$height}"
134
+ style:height={$height}
135
135
  >
136
136
  <Toolbar/>
137
137
  <svelte:component this={$_viewComponent}/>