@svar-ui/trial-vue-gantt 2.7.4 → 2.8.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@svar-ui/trial-vue-gantt",
3
- "version": "2.7.4",
3
+ "version": "2.8.3",
4
4
  "description": "SVAR Vue Gantt library",
5
5
  "productTag": "gantt",
6
6
  "productTrial": true,
@@ -36,29 +36,29 @@
36
36
  "dist-full/index.css"
37
37
  ],
38
38
  "dependencies": {
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",
43
- "@svar-ui/lib-dom": "0.14.0",
44
- "@svar-ui/lib-state": "1.9.7",
45
- "@svar-ui/lib-vue": "1.1.0",
46
- "@svar-ui/vue-core": "2.6.1",
47
- "@svar-ui/vue-editor": "2.6.1",
48
- "@svar-ui/vue-grid": "2.7.3",
49
- "@svar-ui/vue-menu": "2.6.1",
50
- "@svar-ui/vue-toolbar": "2.6.1"
39
+ "@svar-ui/core-locales": "2.6.2",
40
+ "@svar-ui/gantt-data-provider": "2.8.3",
41
+ "@svar-ui/gantt-locales": "2.8.3",
42
+ "@svar-ui/trial-gantt-store": "2.8.3",
43
+ "@svar-ui/grid-store": "2.7.6",
44
+ "@svar-ui/lib-dom": "0.14.2",
45
+ "@svar-ui/lib-state": "1.10.1",
46
+ "@svar-ui/lib-vue": "1.1.1",
47
+ "@svar-ui/vue-core": "2.6.2",
48
+ "@svar-ui/vue-editor": "2.7.1",
49
+ "@svar-ui/vue-grid": "2.7.7",
50
+ "@svar-ui/vue-menu": "2.6.2",
51
+ "@svar-ui/vue-toolbar": "2.6.2"
51
52
  },
52
53
  "peerDependencies": {
53
54
  "vue": "^3.0.0"
54
55
  },
55
56
  "devDependencies": {
56
57
  "@vitejs/plugin-vue": "^6.0.1",
57
- "@svar-ui/gantt-data-provider": "2.7.2",
58
- "@svar-ui/vue-comments": "2.6.1",
59
- "@svar-ui/vue-excel-import": "2.6.0",
60
- "@svar-ui/vue-filter": "2.6.1",
61
- "@svar-ui/vue-tasklist": "2.6.1",
58
+ "@svar-ui/vue-comments": "2.6.2",
59
+ "@svar-ui/vue-excel-import": "2.7.1",
60
+ "@svar-ui/vue-filter": "2.6.2",
61
+ "@svar-ui/vue-tasklist": "2.6.2",
62
62
  "eslint": "^9.35.0",
63
63
  "eslint-plugin-vue": "^10.5.1",
64
64
  "globals": "^16.5.0",
package/types/index.d.ts CHANGED
@@ -12,12 +12,51 @@ 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
+
44
+ export type IInnerApi = Pick<
45
+ IApi,
46
+ | "getReactiveState"
47
+ | "getState"
48
+ | "exec"
49
+ | "on"
50
+ | "detach"
51
+ | "getTask"
52
+ | "getTaskCalendar"
53
+ | "getResourceCalendar"
54
+ | "getCalendar"
55
+ | "getTaskResources"
56
+ | "getHistory"
57
+ | "getLinkValidator"
58
+ >;
59
+
21
60
  export interface IColumnConfig extends Omit<IGanttColumn, "header"> {
22
61
  cell?: ITableColumn["cell"];
23
62
  header?: ITableColumn["header"];
@@ -29,7 +68,7 @@ export declare const Gantt: VueComponent<
29
68
  columns?: false | IColumnConfig[];
30
69
  taskTemplate?: VueComponent<{
31
70
  data: ITask;
32
- api: IApi;
71
+ api: IInnerApi;
33
72
  onaction: (ev: {
34
73
  action: string;
35
74
  data: { [key: string]: any };
@@ -37,9 +76,12 @@ export declare const Gantt: VueComponent<
37
76
  }>;
38
77
  readonly?: boolean;
39
78
  cellBorders?: "column" | "full";
40
- highlightTime?: (date: Date, unit: "day" | "hour") => string;
79
+ highlightTime?: (
80
+ date: Date,
81
+ unit: NonNullable<IConfig["lengthUnit"]>
82
+ ) => string;
41
83
  init?: (api: IApi) => void;
42
- } & IConfig &
84
+ } & Omit<IConfig, "columns"> &
43
85
  GanttActions<TMethodsConfig>
44
86
  >;
45
87
 
@@ -67,15 +109,35 @@ export declare const Editor: VueComponent<
67
109
  }
68
110
  >;
69
111
 
112
+ type TooltipContentData =
113
+ | { task: ITask; segmentIndex: number | null; violated?: boolean }
114
+ | { constraint: ITask; violated?: boolean }
115
+ | { link: ILink }
116
+ | { rollup: ITask }
117
+ | { resource: IResource }
118
+ | { histogram: IResourceHistogramTooltip }
119
+ | { sCurve: ISCurveTooltip }
120
+ | { deadline: ITask };
121
+
70
122
  export declare const Tooltip: VueComponent<{
71
123
  content?: VueComponent<{
72
- data: ITask;
124
+ data: TooltipContentData;
73
125
  }>;
74
126
  api?: IApi;
75
127
  }>;
76
128
 
77
- export declare const Fullscreen: VueComponent<{
78
- hotkey?: string;
129
+ export declare const ResourceLoad: VueComponent<{
130
+ api?: IApi;
131
+ columns?: false | IResourceColumn[];
132
+ mode?: "utilization" | "histogram";
133
+ histogram?: IResourceHistogramConfig;
134
+ template?: (load: IResourceLoad) => string;
135
+ draggableRows?: boolean | ((row: IResource) => boolean);
136
+ }>;
137
+
138
+ export declare const ConflictReport: VueComponent<{
139
+ api?: IApi;
140
+ onclose?: () => void;
79
141
  }>;
80
142
 
81
143
  export declare const Willow: VueComponent<{