@super-calendar/core 2.14.2 → 2.15.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 +4 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
- package/src/types.ts +2 -0
package/README.md
CHANGED
|
@@ -63,6 +63,10 @@ Use `resolveDraggedBounds` to commit a move or resize. Equal start and end delta
|
|
|
63
63
|
move the event while preserving elapsed duration, including across daylight
|
|
64
64
|
saving changes. For a resize, pass zero for the edge you want to keep fixed.
|
|
65
65
|
|
|
66
|
+
`CalendarEvent<T>` includes an optional `dragHandleColor: string` for the native
|
|
67
|
+
renderer's time-grid and resource-timeline resize grips. When omitted, those
|
|
68
|
+
grips use `theme.colors.eventText`. Core preserves the field without interpreting it.
|
|
69
|
+
|
|
66
70
|
## Documentation
|
|
67
71
|
|
|
68
72
|
See the [full documentation](https://super-calendar.afonsojramos.me) and the [API reference](https://super-calendar.afonsojramos.me/reference/api).
|
package/dist/index.d.mts
CHANGED
|
@@ -48,6 +48,8 @@ export interface ICalendarEvent {
|
|
|
48
48
|
* move. A `draggable: false` event ignores this (it can neither move nor resize).
|
|
49
49
|
*/
|
|
50
50
|
durationEditable?: boolean;
|
|
51
|
+
/** Colour of this event's resize grips in the native time grid and resource timeline. Defaults to the theme's eventText colour. */
|
|
52
|
+
dragHandleColor?: string;
|
|
51
53
|
/**
|
|
52
54
|
* How the event renders. `"auto"` (default) is a normal event box/chip;
|
|
53
55
|
* `"background"` paints the event's time range as a non-interactive shaded
|
package/dist/index.d.ts
CHANGED
|
@@ -48,6 +48,8 @@ export interface ICalendarEvent {
|
|
|
48
48
|
* move. A `draggable: false` event ignores this (it can neither move nor resize).
|
|
49
49
|
*/
|
|
50
50
|
durationEditable?: boolean;
|
|
51
|
+
/** Colour of this event's resize grips in the native time grid and resource timeline. Defaults to the theme's eventText colour. */
|
|
52
|
+
dragHandleColor?: string;
|
|
51
53
|
/**
|
|
52
54
|
* How the event renders. `"auto"` (default) is a normal event box/chip;
|
|
53
55
|
* `"background"` paints the event's time range as a non-interactive shaded
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@super-calendar/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "Render-agnostic core for super-calendar: date math, selection model, event layout, the month-grid builder, headless hooks, and neutral theme tokens. No renderer.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"calendar",
|
package/src/types.ts
CHANGED
|
@@ -47,6 +47,8 @@ export interface ICalendarEvent {
|
|
|
47
47
|
* move. A `draggable: false` event ignores this (it can neither move nor resize).
|
|
48
48
|
*/
|
|
49
49
|
durationEditable?: boolean;
|
|
50
|
+
/** Colour of this event's resize grips in the native time grid and resource timeline. Defaults to the theme's eventText colour. */
|
|
51
|
+
dragHandleColor?: string;
|
|
50
52
|
/**
|
|
51
53
|
* How the event renders. `"auto"` (default) is a normal event box/chip;
|
|
52
54
|
* `"background"` paints the event's time range as a non-interactive shaded
|