@ollap/gantt-vue3 0.1.2 → 0.1.3

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.
@@ -1,9 +1,102 @@
1
+ import { ComponentOptionsMixin } from 'vue';
2
+ import { ComponentProvideOptions } from 'vue';
1
3
  import { CSSProperties } from 'vue';
2
- import { default as GanttChart } from './components/GanttChart.vue';
4
+ import { DefineComponent } from 'vue';
5
+ import { Property } from 'csstype';
6
+ import { PublicProps } from 'vue';
7
+
8
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
9
+ "update:list": (args_0: GanttItem[]) => any;
10
+ toggle: (args_0: string | number) => any;
11
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ "onUpdate:list"?: ((args_0: GanttItem[]) => any) | undefined;
13
+ onToggle?: ((args_0: string | number) => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
15
+ headerRef: HTMLDivElement;
16
+ leftPanelRef: HTMLDivElement;
17
+ }, HTMLDivElement>;
18
+
19
+ declare type __VLS_Props = {
20
+ list: GanttItem[];
21
+ dateRange: [string, string];
22
+ showToday?: boolean;
23
+ };
24
+
25
+ declare function __VLS_template(): {
26
+ attrs: Partial<{}>;
27
+ slots: {
28
+ leftPanelHeader?(_: {}): any;
29
+ headerCell?(_: {
30
+ date: string;
31
+ }): any;
32
+ leftPanelItem?(_: {
33
+ item: {
34
+ id: string | number;
35
+ name: string;
36
+ tasks: {
37
+ id: string | number;
38
+ name: string;
39
+ startDate: string;
40
+ endDate: string;
41
+ color?: Property.Color | undefined;
42
+ }[];
43
+ expanded?: boolean | undefined;
44
+ };
45
+ }): any;
46
+ count?(_: {
47
+ style: {
48
+ left: string;
49
+ width: string;
50
+ height: string;
51
+ };
52
+ item: {
53
+ id: string | number;
54
+ name: string;
55
+ tasks: {
56
+ id: string | number;
57
+ name: string;
58
+ startDate: string;
59
+ endDate: string;
60
+ color?: Property.Color | undefined;
61
+ }[];
62
+ expanded?: boolean | undefined;
63
+ };
64
+ date: string;
65
+ count: number;
66
+ }): any;
67
+ task?(_: {
68
+ task: {
69
+ id: string | number;
70
+ name: string;
71
+ startDate: string;
72
+ endDate: string;
73
+ color?: Property.Color | undefined;
74
+ };
75
+ style: {
76
+ left: string;
77
+ width: string;
78
+ position: string;
79
+ };
80
+ }): any;
81
+ };
82
+ refs: {
83
+ headerRef: HTMLDivElement;
84
+ leftPanelRef: HTMLDivElement;
85
+ };
86
+ rootEl: HTMLDivElement;
87
+ };
88
+
89
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
90
+
91
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
92
+ new (): {
93
+ $slots: S;
94
+ };
95
+ };
3
96
 
4
97
  export declare const GANTT_VERSION = "0.1.0";
5
98
 
6
- export { GanttChart }
99
+ export declare const GanttChart: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
7
100
 
8
101
  export declare type GanttItem = {
9
102
  id: string | number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ollap/gantt-vue3",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -27,6 +27,7 @@
27
27
  "devDependencies": {
28
28
  "@vitejs/plugin-vue": "^6.0.3",
29
29
  "@vitejs/plugin-vue-jsx": "^5.1.3",
30
+ "csstype": "^3.2.3",
30
31
  "typescript": "~5.9.3",
31
32
  "vite": "^6.0.0",
32
33
  "vite-plugin-dts": "^4.5.4",