@event-calendar/build 1.0.0 → 1.1.1

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
@@ -4,7 +4,7 @@ See [demo](https://vkurko.github.io/calendar/) and [changelog](CHANGELOG.md).
4
4
 
5
5
  Full-sized drag & drop JavaScript event calendar with resource view:
6
6
 
7
- * Lightweight (34kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
7
+ * Lightweight (28kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
8
8
  * Zero-dependency (pre-built bundle)
9
9
  * Used on over 60,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)
10
10
 
@@ -54,6 +54,7 @@ Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options
54
54
  - [eventResizeStop](#eventresizestop)
55
55
  - [eventSources](#eventsources)
56
56
  - [eventStartEditable](#eventstarteditable)
57
+ - [eventTextColor](#eventtextcolor)
57
58
  - [eventTimeFormat](#eventtimeformat)
58
59
  - [filterResourcesWithEvents](#filterresourceswithevents)
59
60
  - [firstDay](#firstday)
@@ -192,8 +193,8 @@ import '@event-calendar/core/index.css';
192
193
  ### Pre-built browser ready bundle
193
194
  Include the following lines of code in the `<head>` section of your page:
194
195
  ```html
195
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.0.0/event-calendar.min.css">
196
- <script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.0.0/event-calendar.min.js"></script>
196
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.1.1/event-calendar.min.css">
197
+ <script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@1.1.1/event-calendar.min.js"></script>
197
198
  ```
198
199
 
199
200
  <details>
@@ -1248,6 +1249,14 @@ function (time) {
1248
1249
  </tr>
1249
1250
  </table>
1250
1251
 
1252
+ ### eventTextColor
1253
+ - Type `string`
1254
+ - Default `undefined`
1255
+
1256
+ Sets the default text color for events on the calendar.
1257
+
1258
+ You can use any of the CSS color formats such `'#f00'`, `'#ff0000'`, `'rgb(255,0,0)'`, or `'red'`.
1259
+
1251
1260
  ### filterResourcesWithEvents
1252
1261
  - Type `boolean`
1253
1262
  - Default `false`
@@ -2187,6 +2196,16 @@ The [eventBackgroundColor](#eventbackgroundcolor) override for this specific eve
2187
2196
  <tr>
2188
2197
  <td>
2189
2198
 
2199
+ `textColor`
2200
+ </td>
2201
+ <td>
2202
+
2203
+ The [eventTextColor](#eventtextcolor) override for this specific event
2204
+ </td>
2205
+ </tr>
2206
+ <tr>
2207
+ <td>
2208
+
2190
2209
  `extendedProps`
2191
2210
  </td>
2192
2211
  <td>
@@ -2324,6 +2343,16 @@ Here are all admissible fields for the event’s input object:
2324
2343
  <tr>
2325
2344
  <td>
2326
2345
 
2346
+ `textColor`
2347
+ </td>
2348
+ <td>
2349
+
2350
+ `string` Sets the event’s text color just like the calendar-wide [eventTextColor](#eventtextcolor) option. Default `undefined`
2351
+ </td>
2352
+ </tr>
2353
+ <tr>
2354
+ <td>
2355
+
2327
2356
  `color`
2328
2357
  </td>
2329
2358
  <td>
@@ -2426,6 +2455,13 @@ Here are all properties that exist in Resource object:
2426
2455
  </td>
2427
2456
  <td>Default background color for this resource's events</td>
2428
2457
  </tr>
2458
+ <tr>
2459
+ <td>
2460
+
2461
+ `eventTextColor`
2462
+ </td>
2463
+ <td>Default text color for this resource's events</td>
2464
+ </tr>
2429
2465
  </table>
2430
2466
 
2431
2467
  ### Parsing resource from a plain object
@@ -2473,6 +2509,16 @@ Here are all admissible fields for the resource’s input object:
2473
2509
  `string` Sets the default background color for this resource's events just like the calendar-wide [eventBackgroundColor](#eventbackgroundcolor) option. Default `undefined`
2474
2510
  </td>
2475
2511
  </tr>
2512
+ <tr>
2513
+ <td>
2514
+
2515
+ `eventTextColor`
2516
+ </td>
2517
+ <td>
2518
+
2519
+ `string` Sets the default text color for this resource's events just like the calendar-wide [eventTextColor](#eventtextcolor) option. Default `undefined`
2520
+ </td>
2521
+ </tr>
2476
2522
  </table>
2477
2523
 
2478
2524
  ## View object