@timelinekit/vue 1.0.0 → 1.0.5
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 +8 -9
- package/package.json +35 -35
package/README.md
CHANGED
|
@@ -17,8 +17,8 @@ Requires Vue 3.3 or later.
|
|
|
17
17
|
| Component | Import | Ref Type | Styles Import |
|
|
18
18
|
|-----------|--------|----------|---------------|
|
|
19
19
|
| Gantt Chart | `GanttChart` | `GanttChartRef` | `@timelinekit/core/styles` |
|
|
20
|
-
| Resource Scheduler | `ResourceScheduler` | `ResourceSchedulerRef` | `@timelinekit/core/styles
|
|
21
|
-
| Event Calendar | `EventCalendar` | `EventCalendarRef` | `@timelinekit/core/styles
|
|
20
|
+
| Resource Scheduler | `ResourceScheduler` | `ResourceSchedulerRef` | `@timelinekit/core/styles` |
|
|
21
|
+
| Event Calendar | `EventCalendar` | `EventCalendarRef` | `@timelinekit/core/styles` |
|
|
22
22
|
|
|
23
23
|
All types from `@timelinekit/core` are re-exported from this package for convenience.
|
|
24
24
|
|
|
@@ -54,7 +54,7 @@ onMounted(() => {
|
|
|
54
54
|
<script setup lang="ts">
|
|
55
55
|
import { ref, onMounted } from 'vue';
|
|
56
56
|
import { ResourceScheduler, type ResourceSchedulerRef, SchedulerResource, SchedulerEvent } from '@timelinekit/vue';
|
|
57
|
-
import '@timelinekit/core/styles
|
|
57
|
+
import '@timelinekit/core/styles';
|
|
58
58
|
|
|
59
59
|
const schedulerRef = ref<ResourceSchedulerRef>();
|
|
60
60
|
|
|
@@ -82,7 +82,7 @@ onMounted(() => {
|
|
|
82
82
|
<script setup lang="ts">
|
|
83
83
|
import { ref, onMounted } from 'vue';
|
|
84
84
|
import { EventCalendar, type EventCalendarRef, CalendarItem } from '@timelinekit/vue';
|
|
85
|
-
import '@timelinekit/core/styles
|
|
85
|
+
import '@timelinekit/core/styles';
|
|
86
86
|
|
|
87
87
|
const calendarRef = ref<EventCalendarRef>();
|
|
88
88
|
|
|
@@ -129,15 +129,14 @@ function handleReady() {
|
|
|
129
129
|
|
|
130
130
|
## Styling
|
|
131
131
|
|
|
132
|
-
Import the
|
|
132
|
+
Import the combined stylesheet for all components:
|
|
133
133
|
|
|
134
134
|
```typescript
|
|
135
|
-
import '@timelinekit/core/styles';
|
|
136
|
-
import '@timelinekit/core/styles/rs'; // Resource Scheduler
|
|
137
|
-
import '@timelinekit/core/styles/ec'; // Event Calendar
|
|
135
|
+
import '@timelinekit/core/styles';
|
|
138
136
|
```
|
|
139
137
|
|
|
140
|
-
|
|
138
|
+
To import only a specific component, use `@timelinekit/core/styles/gc`, `styles/rs`, or `styles/ec`.
|
|
139
|
+
SCSS sources are available via `@timelinekit/core/styles/scss`.
|
|
141
140
|
|
|
142
141
|
## Licensing
|
|
143
142
|
|
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@timelinekit/vue",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.js"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
},
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@timelinekit/vue",
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"peerDependencies": {
|
|
14
|
+
"vue": ">=3.3.0",
|
|
15
|
+
"@timelinekit/core": "1.0.5"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@timelinekit/core": "1.0.5"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"vue": "^3.5.0",
|
|
22
|
+
"vitest": "^4.0.8",
|
|
23
|
+
"jsdom": "^26.1.0"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"README.md",
|
|
28
|
+
"LICENSE"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "rollup -c",
|
|
32
|
+
"test": "vitest run",
|
|
33
|
+
"test:watch": "vitest"
|
|
34
|
+
}
|
|
35
|
+
}
|