@svar-ui/trial-vue-gantt 2.7.3 → 2.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svar-ui/trial-vue-gantt",
3
- "version": "2.7.3",
3
+ "version": "2.8.0",
4
4
  "description": "SVAR Vue Gantt library",
5
5
  "productTag": "gantt",
6
6
  "productTrial": true,
@@ -37,15 +37,16 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@svar-ui/core-locales": "2.6.1",
40
- "@svar-ui/gantt-locales": "2.7.2",
41
- "@svar-ui/trial-gantt-store": "2.7.2",
42
- "@svar-ui/grid-store": "2.7.3",
40
+ "@svar-ui/gantt-data-provider": "2.8.0",
41
+ "@svar-ui/gantt-locales": "2.8.0",
42
+ "@svar-ui/trial-gantt-store": "2.8.0",
43
+ "@svar-ui/grid-store": "2.7.4",
43
44
  "@svar-ui/lib-dom": "0.14.0",
44
- "@svar-ui/lib-state": "1.9.7",
45
- "@svar-ui/lib-vue": "1.1.0",
45
+ "@svar-ui/lib-state": "1.10.1",
46
+ "@svar-ui/lib-vue": "1.1.1",
46
47
  "@svar-ui/vue-core": "2.6.1",
47
- "@svar-ui/vue-editor": "2.6.1",
48
- "@svar-ui/vue-grid": "2.7.3",
48
+ "@svar-ui/vue-editor": "2.7.0",
49
+ "@svar-ui/vue-grid": "2.7.5",
49
50
  "@svar-ui/vue-menu": "2.6.1",
50
51
  "@svar-ui/vue-toolbar": "2.6.1"
51
52
  },
@@ -54,7 +55,6 @@
54
55
  },
55
56
  "devDependencies": {
56
57
  "@vitejs/plugin-vue": "^6.0.1",
57
- "@svar-ui/gantt-data-provider": "2.7.2",
58
58
  "@svar-ui/vue-comments": "2.6.1",
59
59
  "@svar-ui/vue-excel-import": "2.6.0",
60
60
  "@svar-ui/vue-filter": "2.6.1",
package/types/index.d.ts CHANGED
@@ -12,12 +12,35 @@ import type {
12
12
  IApi,
13
13
  IConfig,
14
14
  ITask,
15
+ ILink,
16
+ IResource,
15
17
  IGanttColumn,
18
+ IResourceColumn,
19
+ IResourceLoad,
20
+ IResourceHistogramConfig,
21
+ IResourceHistogramTooltip,
22
+ ISCurveTooltip,
23
+ TID,
16
24
  } from "@svar-ui/trial-gantt-store";
17
25
 
18
26
  export * from "@svar-ui/trial-gantt-store";
19
27
  export { registerEditorItem } from "@svar-ui/vue-editor";
20
28
 
29
+ export declare const version: string;
30
+
31
+ export interface ILocatedTask {
32
+ id: TID;
33
+ node: Element;
34
+ }
35
+
36
+ export declare function locateTask(
37
+ ev:
38
+ | MouseEvent
39
+ | DragEvent
40
+ | { target?: EventTarget | null; clientY?: number },
41
+ api?: IApi
42
+ ): ILocatedTask | null;
43
+
21
44
  export interface IColumnConfig extends Omit<IGanttColumn, "header"> {
22
45
  cell?: ITableColumn["cell"];
23
46
  header?: ITableColumn["header"];
@@ -39,7 +62,7 @@ export declare const Gantt: VueComponent<
39
62
  cellBorders?: "column" | "full";
40
63
  highlightTime?: (date: Date, unit: "day" | "hour") => string;
41
64
  init?: (api: IApi) => void;
42
- } & IConfig &
65
+ } & Omit<IConfig, "columns"> &
43
66
  GanttActions<TMethodsConfig>
44
67
  >;
45
68
 
@@ -67,15 +90,35 @@ export declare const Editor: VueComponent<
67
90
  }
68
91
  >;
69
92
 
93
+ type TooltipContentData =
94
+ | { task: ITask; segmentIndex: number | null; violated?: boolean }
95
+ | { constraint: ITask; violated?: boolean }
96
+ | { link: ILink }
97
+ | { rollup: ITask }
98
+ | { resource: IResource }
99
+ | { histogram: IResourceHistogramTooltip }
100
+ | { sCurve: ISCurveTooltip }
101
+ | { deadline: ITask };
102
+
70
103
  export declare const Tooltip: VueComponent<{
71
104
  content?: VueComponent<{
72
- data: ITask;
105
+ data: TooltipContentData;
73
106
  }>;
74
107
  api?: IApi;
75
108
  }>;
76
109
 
77
- export declare const Fullscreen: VueComponent<{
78
- hotkey?: string;
110
+ export declare const ResourceLoad: VueComponent<{
111
+ api?: IApi;
112
+ columns?: false | IResourceColumn[];
113
+ mode?: "utilization" | "histogram";
114
+ histogram?: IResourceHistogramConfig;
115
+ template?: (load: IResourceLoad) => string;
116
+ draggableRows?: boolean | ((row: IResource) => boolean);
117
+ }>;
118
+
119
+ export declare const ConflictReport: VueComponent<{
120
+ api?: IApi;
121
+ onclose?: () => void;
79
122
  }>;
80
123
 
81
124
  export declare const Willow: VueComponent<{