@chaaanito/event-resource-calendar 1.0.0 → 1.0.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 +34 -21
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -2,34 +2,47 @@
|
|
|
2
2
|
|
|
3
3
|
A lightweight, high-performance vanilla JavaScript resource calendar library. Features O(1) internal event mapping, extensible rich HTML layout renderers, holiday detection, and scroll freezing.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
# Installation
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```bash
|
|
8
8
|
npm install event-resource-calendar
|
|
9
|
-
|
|
9
|
+
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
# Quick Start
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
import EventResource from
|
|
13
|
+
```javascript
|
|
14
|
+
import EventResource from "event-resource-calendar";
|
|
15
15
|
|
|
16
16
|
const calendar = new EventResource({
|
|
17
|
-
container:
|
|
18
|
-
defaultView:
|
|
19
|
-
defaultDate:
|
|
20
|
-
showControls: true,
|
|
21
|
-
stickyHeaders: true,
|
|
22
|
-
rooms: [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
17
|
+
container: "#calendar-root",
|
|
18
|
+
defaultView: "daily",
|
|
19
|
+
defaultDate: "2026-06-24",
|
|
20
|
+
showControls: true,
|
|
21
|
+
stickyHeaders: true,
|
|
22
|
+
rooms: [
|
|
23
|
+
{
|
|
24
|
+
id: "r1",
|
|
25
|
+
name: "Studio A",
|
|
26
|
+
capacity: 10,
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
timeSlots: [
|
|
30
|
+
{
|
|
31
|
+
id: "t1",
|
|
32
|
+
label: "09:00 AM",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
initialEvents: [
|
|
36
|
+
{
|
|
37
|
+
id: "evt-1",
|
|
38
|
+
roomId: "r1",
|
|
39
|
+
timeId: "t1",
|
|
40
|
+
title: "Morning Sync",
|
|
41
|
+
color: "#10b981",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
31
44
|
});
|
|
32
|
-
|
|
45
|
+
```
|
|
33
46
|
|
|
34
47
|
## Configuration Options
|
|
35
48
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chaaanito/event-resource-calendar",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/chaaanito/event-resource-calendar.git"
|
|
7
|
+
},
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/chaaanito/event-resource-calendar/issues"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/chaaanito/event-resource-calendar#readme",
|
|
4
12
|
"type": "module",
|
|
5
13
|
"main": "src/index.js",
|
|
6
14
|
"exports": {
|