@stonecrop/atable 0.4.23 → 0.4.24
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/dist/assets/index.css +1 -1
- package/dist/atable.d.ts +511 -25
- package/dist/atable.js +1301 -1039
- package/dist/atable.js.map +1 -1
- package/dist/atable.umd.cjs +2 -2
- package/dist/atable.umd.cjs.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/stores/table.d.ts +370 -16
- package/dist/src/stores/table.d.ts.map +1 -1
- package/dist/src/types/index.d.ts +138 -10
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/stores/table.js +111 -13
- package/package.json +3 -3
- package/src/components/AGanttCell.vue +444 -170
- package/src/components/AGanttConnection.vue +164 -0
- package/src/components/ARow.vue +1 -1
- package/src/components/ATable.vue +96 -71
- package/src/components/ATableHeader.vue +1 -1
- package/src/index.ts +4 -0
- package/src/stores/table.ts +129 -13
- package/src/types/index.ts +159 -10
package/dist/src/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import ATableLoading from './components/ATableLoading.vue';
|
|
|
9
9
|
import ATableLoadingBar from './components/ATableLoadingBar.vue';
|
|
10
10
|
import ATableModal from './components/ATableModal.vue';
|
|
11
11
|
export { createTableStore } from './stores/table';
|
|
12
|
-
export type { CellContext, GanttDragEvent, GanttOptions, TableColumn, TableConfig, TableDisplay, TableModal, TableModalProps, TableRow, } from './types';
|
|
12
|
+
export type { CellContext, ConnectionEvent, ConnectionHandle, ConnectionPath, GanttBarInfo, GanttDragEvent, GanttOptions, TableColumn, TableConfig, TableDisplay, TableModal, TableModalProps, TableRow, } from './types';
|
|
13
13
|
/**
|
|
14
14
|
* Install all ATable components
|
|
15
15
|
* @param app - Vue app instance
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"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C,CAAA;AAChE,OAAO,WAAW,MAAM,8BAA8B,CAAA;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,YAAY,EACX,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,WAAW,EACX,WAAW,EACX,YAAY,EACZ,UAAU,EACV,eAAe,EACf,QAAQ,GACR,MAAM,SAAS,CAAA;AAEhB;;;;GAIG;AACH,iBAAS,OAAO,CAAC,GAAG,EAAE,GAAG,QAUxB;AAED,OAAO,EACN,KAAK,EACL,aAAa,EACb,UAAU,EACV,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,OAAO,GACP,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CSSProperties } from 'vue';
|
|
2
|
-
import type { CellContext, GanttDragEvent, TableColumn, TableConfig, TableDisplay, TableModal, TableRow } from '../types';
|
|
2
|
+
import type { CellContext, ConnectionHandle, ConnectionPath, GanttBarInfo, GanttDragEvent, TableColumn, TableConfig, TableDisplay, TableModal, TableRow } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Create a table store
|
|
5
5
|
* @param initData - Initial data for the table store
|
|
@@ -57,12 +57,66 @@ export declare const createTableStore: (initData: {
|
|
|
57
57
|
originalIndex?: number | undefined;
|
|
58
58
|
}[]>;
|
|
59
59
|
config: import("vue").Ref<{
|
|
60
|
-
view?: "uncounted" | "list" | "list-expansion" | "tree" | "gantt" | undefined;
|
|
60
|
+
view?: "uncounted" | "list" | "list-expansion" | "tree" | "gantt" | "tree-gantt" | undefined;
|
|
61
61
|
fullWidth?: boolean | undefined;
|
|
62
62
|
}, TableConfig | {
|
|
63
|
-
view?: "uncounted" | "list" | "list-expansion" | "tree" | "gantt" | undefined;
|
|
63
|
+
view?: "uncounted" | "list" | "list-expansion" | "tree" | "gantt" | "tree-gantt" | undefined;
|
|
64
64
|
fullWidth?: boolean | undefined;
|
|
65
65
|
}>;
|
|
66
|
+
connectionHandles: import("vue").Ref<{
|
|
67
|
+
id: string;
|
|
68
|
+
rowIndex: number;
|
|
69
|
+
colIndex: number;
|
|
70
|
+
side: "left" | "right";
|
|
71
|
+
position: {
|
|
72
|
+
x: number;
|
|
73
|
+
y: number;
|
|
74
|
+
};
|
|
75
|
+
visible: boolean;
|
|
76
|
+
barId: string;
|
|
77
|
+
}[], ConnectionHandle[] | {
|
|
78
|
+
id: string;
|
|
79
|
+
rowIndex: number;
|
|
80
|
+
colIndex: number;
|
|
81
|
+
side: "left" | "right";
|
|
82
|
+
position: {
|
|
83
|
+
x: number;
|
|
84
|
+
y: number;
|
|
85
|
+
};
|
|
86
|
+
visible: boolean;
|
|
87
|
+
barId: string;
|
|
88
|
+
}[]>;
|
|
89
|
+
connectionPaths: import("vue").Ref<{
|
|
90
|
+
id: string;
|
|
91
|
+
from: {
|
|
92
|
+
barId: string;
|
|
93
|
+
side: "left" | "right";
|
|
94
|
+
};
|
|
95
|
+
to: {
|
|
96
|
+
barId: string;
|
|
97
|
+
side: "left" | "right";
|
|
98
|
+
};
|
|
99
|
+
style?: {
|
|
100
|
+
color?: string | undefined;
|
|
101
|
+
width?: number | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
label?: string | undefined;
|
|
104
|
+
}[], ConnectionPath[] | {
|
|
105
|
+
id: string;
|
|
106
|
+
from: {
|
|
107
|
+
barId: string;
|
|
108
|
+
side: "left" | "right";
|
|
109
|
+
};
|
|
110
|
+
to: {
|
|
111
|
+
barId: string;
|
|
112
|
+
side: "left" | "right";
|
|
113
|
+
};
|
|
114
|
+
style?: {
|
|
115
|
+
color?: string | undefined;
|
|
116
|
+
width?: number | undefined;
|
|
117
|
+
} | undefined;
|
|
118
|
+
label?: string | undefined;
|
|
119
|
+
}[]>;
|
|
66
120
|
display: import("vue").Ref<{
|
|
67
121
|
expanded?: boolean | undefined;
|
|
68
122
|
childrenOpen?: boolean | undefined;
|
|
@@ -82,6 +136,31 @@ export declare const createTableStore: (initData: {
|
|
|
82
136
|
parent?: number | undefined;
|
|
83
137
|
rowModified?: boolean | undefined;
|
|
84
138
|
}[]>;
|
|
139
|
+
ganttBars: import("vue").Ref<{
|
|
140
|
+
id: string;
|
|
141
|
+
rowIndex: number;
|
|
142
|
+
colIndex: number;
|
|
143
|
+
startIndex: number;
|
|
144
|
+
endIndex: number;
|
|
145
|
+
color: string;
|
|
146
|
+
position: {
|
|
147
|
+
x: number;
|
|
148
|
+
y: number;
|
|
149
|
+
};
|
|
150
|
+
label?: string | undefined;
|
|
151
|
+
}[], GanttBarInfo[] | {
|
|
152
|
+
id: string;
|
|
153
|
+
rowIndex: number;
|
|
154
|
+
colIndex: number;
|
|
155
|
+
startIndex: number;
|
|
156
|
+
endIndex: number;
|
|
157
|
+
color: string;
|
|
158
|
+
position: {
|
|
159
|
+
x: number;
|
|
160
|
+
y: number;
|
|
161
|
+
};
|
|
162
|
+
label?: string | undefined;
|
|
163
|
+
}[]>;
|
|
85
164
|
modal: import("vue").Ref<{
|
|
86
165
|
visible?: boolean | undefined;
|
|
87
166
|
cell?: (HTMLTableCellElement | null) | undefined;
|
|
@@ -131,23 +210,62 @@ export declare const createTableStore: (initData: {
|
|
|
131
210
|
table: import("vue").Ref<{}, {}>;
|
|
132
211
|
updates: import("vue").Ref<Record<string, string>, Record<string, string>>;
|
|
133
212
|
hasPinnedColumns: import("vue").ComputedRef<boolean>;
|
|
213
|
+
isGanttView: import("vue").ComputedRef<boolean>;
|
|
214
|
+
isTreeView: import("vue").ComputedRef<boolean>;
|
|
134
215
|
numberedRowWidth: import("vue").ComputedRef<string>;
|
|
135
216
|
zeroColumn: import("vue").ComputedRef<boolean>;
|
|
136
217
|
closeModal: (event: MouseEvent) => void;
|
|
218
|
+
createConnection: (fromHandleId: string, toHandleId: string, options?: {
|
|
219
|
+
style?: ConnectionPath["style"];
|
|
220
|
+
label?: string;
|
|
221
|
+
}) => ConnectionPath | null;
|
|
222
|
+
deleteConnection: (connectionId: string) => boolean;
|
|
137
223
|
getCellData: <T = any>(colIndex: number, rowIndex: number) => T;
|
|
138
224
|
getCellDisplayValue: (colIndex: number, rowIndex: number) => any;
|
|
225
|
+
getConnectionsForBar: (barId: string) => {
|
|
226
|
+
id: string;
|
|
227
|
+
from: {
|
|
228
|
+
barId: string;
|
|
229
|
+
side: "left" | "right";
|
|
230
|
+
};
|
|
231
|
+
to: {
|
|
232
|
+
barId: string;
|
|
233
|
+
side: "left" | "right";
|
|
234
|
+
};
|
|
235
|
+
style?: {
|
|
236
|
+
color?: string | undefined;
|
|
237
|
+
width?: number | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
label?: string | undefined;
|
|
240
|
+
}[];
|
|
139
241
|
getFormattedValue: (colIndex: number, rowIndex: number, value: any) => any;
|
|
242
|
+
getHandlesForBar: (barId: string) => {
|
|
243
|
+
id: string;
|
|
244
|
+
rowIndex: number;
|
|
245
|
+
colIndex: number;
|
|
246
|
+
side: "left" | "right";
|
|
247
|
+
position: {
|
|
248
|
+
x: number;
|
|
249
|
+
y: number;
|
|
250
|
+
};
|
|
251
|
+
visible: boolean;
|
|
252
|
+
barId: string;
|
|
253
|
+
}[];
|
|
140
254
|
getHeaderCellStyle: (column: TableColumn) => CSSProperties;
|
|
141
|
-
resizeColumn: (colIndex: number, newWidth: number) => void;
|
|
142
255
|
getIndent: (colIndex: number, indentLevel?: number) => string;
|
|
143
|
-
getRowExpandSymbol: (rowIndex: number) => "" | "
|
|
256
|
+
getRowExpandSymbol: (rowIndex: number) => "" | "▼" | "►";
|
|
144
257
|
isRowGantt: (rowIndex: number) => boolean;
|
|
145
258
|
isRowVisible: (rowIndex: number) => boolean | undefined;
|
|
259
|
+
registerConnectionHandle: (handleInfo: ConnectionHandle) => void;
|
|
260
|
+
registerGanttBar: (barInfo: GanttBarInfo) => void;
|
|
261
|
+
resizeColumn: (colIndex: number, newWidth: number) => void;
|
|
146
262
|
setCellData: (colIndex: number, rowIndex: number, value: any) => void;
|
|
147
263
|
setCellText: (colIndex: number, rowIndex: number, value: string) => void;
|
|
148
264
|
toggleRowExpand: (rowIndex: number) => void;
|
|
265
|
+
unregisterConnectionHandle: (handleId: string) => void;
|
|
266
|
+
unregisterGanttBar: (barId: string) => void;
|
|
149
267
|
updateGanttBar: (event: GanttDragEvent) => void;
|
|
150
|
-
}, "columns" | "config" | "display" | "modal" | "rows" | "table" | "updates">, Pick<{
|
|
268
|
+
}, "columns" | "config" | "connectionHandles" | "connectionPaths" | "display" | "ganttBars" | "modal" | "rows" | "table" | "updates">, Pick<{
|
|
151
269
|
columns: import("vue").Ref<{
|
|
152
270
|
name: string;
|
|
153
271
|
align?: CanvasTextAlign | undefined;
|
|
@@ -188,12 +306,66 @@ export declare const createTableStore: (initData: {
|
|
|
188
306
|
originalIndex?: number | undefined;
|
|
189
307
|
}[]>;
|
|
190
308
|
config: import("vue").Ref<{
|
|
191
|
-
view?: "uncounted" | "list" | "list-expansion" | "tree" | "gantt" | undefined;
|
|
309
|
+
view?: "uncounted" | "list" | "list-expansion" | "tree" | "gantt" | "tree-gantt" | undefined;
|
|
192
310
|
fullWidth?: boolean | undefined;
|
|
193
311
|
}, TableConfig | {
|
|
194
|
-
view?: "uncounted" | "list" | "list-expansion" | "tree" | "gantt" | undefined;
|
|
312
|
+
view?: "uncounted" | "list" | "list-expansion" | "tree" | "gantt" | "tree-gantt" | undefined;
|
|
195
313
|
fullWidth?: boolean | undefined;
|
|
196
314
|
}>;
|
|
315
|
+
connectionHandles: import("vue").Ref<{
|
|
316
|
+
id: string;
|
|
317
|
+
rowIndex: number;
|
|
318
|
+
colIndex: number;
|
|
319
|
+
side: "left" | "right";
|
|
320
|
+
position: {
|
|
321
|
+
x: number;
|
|
322
|
+
y: number;
|
|
323
|
+
};
|
|
324
|
+
visible: boolean;
|
|
325
|
+
barId: string;
|
|
326
|
+
}[], ConnectionHandle[] | {
|
|
327
|
+
id: string;
|
|
328
|
+
rowIndex: number;
|
|
329
|
+
colIndex: number;
|
|
330
|
+
side: "left" | "right";
|
|
331
|
+
position: {
|
|
332
|
+
x: number;
|
|
333
|
+
y: number;
|
|
334
|
+
};
|
|
335
|
+
visible: boolean;
|
|
336
|
+
barId: string;
|
|
337
|
+
}[]>;
|
|
338
|
+
connectionPaths: import("vue").Ref<{
|
|
339
|
+
id: string;
|
|
340
|
+
from: {
|
|
341
|
+
barId: string;
|
|
342
|
+
side: "left" | "right";
|
|
343
|
+
};
|
|
344
|
+
to: {
|
|
345
|
+
barId: string;
|
|
346
|
+
side: "left" | "right";
|
|
347
|
+
};
|
|
348
|
+
style?: {
|
|
349
|
+
color?: string | undefined;
|
|
350
|
+
width?: number | undefined;
|
|
351
|
+
} | undefined;
|
|
352
|
+
label?: string | undefined;
|
|
353
|
+
}[], ConnectionPath[] | {
|
|
354
|
+
id: string;
|
|
355
|
+
from: {
|
|
356
|
+
barId: string;
|
|
357
|
+
side: "left" | "right";
|
|
358
|
+
};
|
|
359
|
+
to: {
|
|
360
|
+
barId: string;
|
|
361
|
+
side: "left" | "right";
|
|
362
|
+
};
|
|
363
|
+
style?: {
|
|
364
|
+
color?: string | undefined;
|
|
365
|
+
width?: number | undefined;
|
|
366
|
+
} | undefined;
|
|
367
|
+
label?: string | undefined;
|
|
368
|
+
}[]>;
|
|
197
369
|
display: import("vue").Ref<{
|
|
198
370
|
expanded?: boolean | undefined;
|
|
199
371
|
childrenOpen?: boolean | undefined;
|
|
@@ -213,6 +385,31 @@ export declare const createTableStore: (initData: {
|
|
|
213
385
|
parent?: number | undefined;
|
|
214
386
|
rowModified?: boolean | undefined;
|
|
215
387
|
}[]>;
|
|
388
|
+
ganttBars: import("vue").Ref<{
|
|
389
|
+
id: string;
|
|
390
|
+
rowIndex: number;
|
|
391
|
+
colIndex: number;
|
|
392
|
+
startIndex: number;
|
|
393
|
+
endIndex: number;
|
|
394
|
+
color: string;
|
|
395
|
+
position: {
|
|
396
|
+
x: number;
|
|
397
|
+
y: number;
|
|
398
|
+
};
|
|
399
|
+
label?: string | undefined;
|
|
400
|
+
}[], GanttBarInfo[] | {
|
|
401
|
+
id: string;
|
|
402
|
+
rowIndex: number;
|
|
403
|
+
colIndex: number;
|
|
404
|
+
startIndex: number;
|
|
405
|
+
endIndex: number;
|
|
406
|
+
color: string;
|
|
407
|
+
position: {
|
|
408
|
+
x: number;
|
|
409
|
+
y: number;
|
|
410
|
+
};
|
|
411
|
+
label?: string | undefined;
|
|
412
|
+
}[]>;
|
|
216
413
|
modal: import("vue").Ref<{
|
|
217
414
|
visible?: boolean | undefined;
|
|
218
415
|
cell?: (HTMLTableCellElement | null) | undefined;
|
|
@@ -262,23 +459,62 @@ export declare const createTableStore: (initData: {
|
|
|
262
459
|
table: import("vue").Ref<{}, {}>;
|
|
263
460
|
updates: import("vue").Ref<Record<string, string>, Record<string, string>>;
|
|
264
461
|
hasPinnedColumns: import("vue").ComputedRef<boolean>;
|
|
462
|
+
isGanttView: import("vue").ComputedRef<boolean>;
|
|
463
|
+
isTreeView: import("vue").ComputedRef<boolean>;
|
|
265
464
|
numberedRowWidth: import("vue").ComputedRef<string>;
|
|
266
465
|
zeroColumn: import("vue").ComputedRef<boolean>;
|
|
267
466
|
closeModal: (event: MouseEvent) => void;
|
|
467
|
+
createConnection: (fromHandleId: string, toHandleId: string, options?: {
|
|
468
|
+
style?: ConnectionPath["style"];
|
|
469
|
+
label?: string;
|
|
470
|
+
}) => ConnectionPath | null;
|
|
471
|
+
deleteConnection: (connectionId: string) => boolean;
|
|
268
472
|
getCellData: <T = any>(colIndex: number, rowIndex: number) => T;
|
|
269
473
|
getCellDisplayValue: (colIndex: number, rowIndex: number) => any;
|
|
474
|
+
getConnectionsForBar: (barId: string) => {
|
|
475
|
+
id: string;
|
|
476
|
+
from: {
|
|
477
|
+
barId: string;
|
|
478
|
+
side: "left" | "right";
|
|
479
|
+
};
|
|
480
|
+
to: {
|
|
481
|
+
barId: string;
|
|
482
|
+
side: "left" | "right";
|
|
483
|
+
};
|
|
484
|
+
style?: {
|
|
485
|
+
color?: string | undefined;
|
|
486
|
+
width?: number | undefined;
|
|
487
|
+
} | undefined;
|
|
488
|
+
label?: string | undefined;
|
|
489
|
+
}[];
|
|
270
490
|
getFormattedValue: (colIndex: number, rowIndex: number, value: any) => any;
|
|
491
|
+
getHandlesForBar: (barId: string) => {
|
|
492
|
+
id: string;
|
|
493
|
+
rowIndex: number;
|
|
494
|
+
colIndex: number;
|
|
495
|
+
side: "left" | "right";
|
|
496
|
+
position: {
|
|
497
|
+
x: number;
|
|
498
|
+
y: number;
|
|
499
|
+
};
|
|
500
|
+
visible: boolean;
|
|
501
|
+
barId: string;
|
|
502
|
+
}[];
|
|
271
503
|
getHeaderCellStyle: (column: TableColumn) => CSSProperties;
|
|
272
|
-
resizeColumn: (colIndex: number, newWidth: number) => void;
|
|
273
504
|
getIndent: (colIndex: number, indentLevel?: number) => string;
|
|
274
|
-
getRowExpandSymbol: (rowIndex: number) => "" | "
|
|
505
|
+
getRowExpandSymbol: (rowIndex: number) => "" | "▼" | "►";
|
|
275
506
|
isRowGantt: (rowIndex: number) => boolean;
|
|
276
507
|
isRowVisible: (rowIndex: number) => boolean | undefined;
|
|
508
|
+
registerConnectionHandle: (handleInfo: ConnectionHandle) => void;
|
|
509
|
+
registerGanttBar: (barInfo: GanttBarInfo) => void;
|
|
510
|
+
resizeColumn: (colIndex: number, newWidth: number) => void;
|
|
277
511
|
setCellData: (colIndex: number, rowIndex: number, value: any) => void;
|
|
278
512
|
setCellText: (colIndex: number, rowIndex: number, value: string) => void;
|
|
279
513
|
toggleRowExpand: (rowIndex: number) => void;
|
|
514
|
+
unregisterConnectionHandle: (handleId: string) => void;
|
|
515
|
+
unregisterGanttBar: (barId: string) => void;
|
|
280
516
|
updateGanttBar: (event: GanttDragEvent) => void;
|
|
281
|
-
}, "hasPinnedColumns" | "numberedRowWidth" | "zeroColumn">, Pick<{
|
|
517
|
+
}, "hasPinnedColumns" | "isGanttView" | "isTreeView" | "numberedRowWidth" | "zeroColumn">, Pick<{
|
|
282
518
|
columns: import("vue").Ref<{
|
|
283
519
|
name: string;
|
|
284
520
|
align?: CanvasTextAlign | undefined;
|
|
@@ -319,12 +555,66 @@ export declare const createTableStore: (initData: {
|
|
|
319
555
|
originalIndex?: number | undefined;
|
|
320
556
|
}[]>;
|
|
321
557
|
config: import("vue").Ref<{
|
|
322
|
-
view?: "uncounted" | "list" | "list-expansion" | "tree" | "gantt" | undefined;
|
|
558
|
+
view?: "uncounted" | "list" | "list-expansion" | "tree" | "gantt" | "tree-gantt" | undefined;
|
|
323
559
|
fullWidth?: boolean | undefined;
|
|
324
560
|
}, TableConfig | {
|
|
325
|
-
view?: "uncounted" | "list" | "list-expansion" | "tree" | "gantt" | undefined;
|
|
561
|
+
view?: "uncounted" | "list" | "list-expansion" | "tree" | "gantt" | "tree-gantt" | undefined;
|
|
326
562
|
fullWidth?: boolean | undefined;
|
|
327
563
|
}>;
|
|
564
|
+
connectionHandles: import("vue").Ref<{
|
|
565
|
+
id: string;
|
|
566
|
+
rowIndex: number;
|
|
567
|
+
colIndex: number;
|
|
568
|
+
side: "left" | "right";
|
|
569
|
+
position: {
|
|
570
|
+
x: number;
|
|
571
|
+
y: number;
|
|
572
|
+
};
|
|
573
|
+
visible: boolean;
|
|
574
|
+
barId: string;
|
|
575
|
+
}[], ConnectionHandle[] | {
|
|
576
|
+
id: string;
|
|
577
|
+
rowIndex: number;
|
|
578
|
+
colIndex: number;
|
|
579
|
+
side: "left" | "right";
|
|
580
|
+
position: {
|
|
581
|
+
x: number;
|
|
582
|
+
y: number;
|
|
583
|
+
};
|
|
584
|
+
visible: boolean;
|
|
585
|
+
barId: string;
|
|
586
|
+
}[]>;
|
|
587
|
+
connectionPaths: import("vue").Ref<{
|
|
588
|
+
id: string;
|
|
589
|
+
from: {
|
|
590
|
+
barId: string;
|
|
591
|
+
side: "left" | "right";
|
|
592
|
+
};
|
|
593
|
+
to: {
|
|
594
|
+
barId: string;
|
|
595
|
+
side: "left" | "right";
|
|
596
|
+
};
|
|
597
|
+
style?: {
|
|
598
|
+
color?: string | undefined;
|
|
599
|
+
width?: number | undefined;
|
|
600
|
+
} | undefined;
|
|
601
|
+
label?: string | undefined;
|
|
602
|
+
}[], ConnectionPath[] | {
|
|
603
|
+
id: string;
|
|
604
|
+
from: {
|
|
605
|
+
barId: string;
|
|
606
|
+
side: "left" | "right";
|
|
607
|
+
};
|
|
608
|
+
to: {
|
|
609
|
+
barId: string;
|
|
610
|
+
side: "left" | "right";
|
|
611
|
+
};
|
|
612
|
+
style?: {
|
|
613
|
+
color?: string | undefined;
|
|
614
|
+
width?: number | undefined;
|
|
615
|
+
} | undefined;
|
|
616
|
+
label?: string | undefined;
|
|
617
|
+
}[]>;
|
|
328
618
|
display: import("vue").Ref<{
|
|
329
619
|
expanded?: boolean | undefined;
|
|
330
620
|
childrenOpen?: boolean | undefined;
|
|
@@ -344,6 +634,31 @@ export declare const createTableStore: (initData: {
|
|
|
344
634
|
parent?: number | undefined;
|
|
345
635
|
rowModified?: boolean | undefined;
|
|
346
636
|
}[]>;
|
|
637
|
+
ganttBars: import("vue").Ref<{
|
|
638
|
+
id: string;
|
|
639
|
+
rowIndex: number;
|
|
640
|
+
colIndex: number;
|
|
641
|
+
startIndex: number;
|
|
642
|
+
endIndex: number;
|
|
643
|
+
color: string;
|
|
644
|
+
position: {
|
|
645
|
+
x: number;
|
|
646
|
+
y: number;
|
|
647
|
+
};
|
|
648
|
+
label?: string | undefined;
|
|
649
|
+
}[], GanttBarInfo[] | {
|
|
650
|
+
id: string;
|
|
651
|
+
rowIndex: number;
|
|
652
|
+
colIndex: number;
|
|
653
|
+
startIndex: number;
|
|
654
|
+
endIndex: number;
|
|
655
|
+
color: string;
|
|
656
|
+
position: {
|
|
657
|
+
x: number;
|
|
658
|
+
y: number;
|
|
659
|
+
};
|
|
660
|
+
label?: string | undefined;
|
|
661
|
+
}[]>;
|
|
347
662
|
modal: import("vue").Ref<{
|
|
348
663
|
visible?: boolean | undefined;
|
|
349
664
|
cell?: (HTMLTableCellElement | null) | undefined;
|
|
@@ -393,21 +708,60 @@ export declare const createTableStore: (initData: {
|
|
|
393
708
|
table: import("vue").Ref<{}, {}>;
|
|
394
709
|
updates: import("vue").Ref<Record<string, string>, Record<string, string>>;
|
|
395
710
|
hasPinnedColumns: import("vue").ComputedRef<boolean>;
|
|
711
|
+
isGanttView: import("vue").ComputedRef<boolean>;
|
|
712
|
+
isTreeView: import("vue").ComputedRef<boolean>;
|
|
396
713
|
numberedRowWidth: import("vue").ComputedRef<string>;
|
|
397
714
|
zeroColumn: import("vue").ComputedRef<boolean>;
|
|
398
715
|
closeModal: (event: MouseEvent) => void;
|
|
716
|
+
createConnection: (fromHandleId: string, toHandleId: string, options?: {
|
|
717
|
+
style?: ConnectionPath["style"];
|
|
718
|
+
label?: string;
|
|
719
|
+
}) => ConnectionPath | null;
|
|
720
|
+
deleteConnection: (connectionId: string) => boolean;
|
|
399
721
|
getCellData: <T = any>(colIndex: number, rowIndex: number) => T;
|
|
400
722
|
getCellDisplayValue: (colIndex: number, rowIndex: number) => any;
|
|
723
|
+
getConnectionsForBar: (barId: string) => {
|
|
724
|
+
id: string;
|
|
725
|
+
from: {
|
|
726
|
+
barId: string;
|
|
727
|
+
side: "left" | "right";
|
|
728
|
+
};
|
|
729
|
+
to: {
|
|
730
|
+
barId: string;
|
|
731
|
+
side: "left" | "right";
|
|
732
|
+
};
|
|
733
|
+
style?: {
|
|
734
|
+
color?: string | undefined;
|
|
735
|
+
width?: number | undefined;
|
|
736
|
+
} | undefined;
|
|
737
|
+
label?: string | undefined;
|
|
738
|
+
}[];
|
|
401
739
|
getFormattedValue: (colIndex: number, rowIndex: number, value: any) => any;
|
|
740
|
+
getHandlesForBar: (barId: string) => {
|
|
741
|
+
id: string;
|
|
742
|
+
rowIndex: number;
|
|
743
|
+
colIndex: number;
|
|
744
|
+
side: "left" | "right";
|
|
745
|
+
position: {
|
|
746
|
+
x: number;
|
|
747
|
+
y: number;
|
|
748
|
+
};
|
|
749
|
+
visible: boolean;
|
|
750
|
+
barId: string;
|
|
751
|
+
}[];
|
|
402
752
|
getHeaderCellStyle: (column: TableColumn) => CSSProperties;
|
|
403
|
-
resizeColumn: (colIndex: number, newWidth: number) => void;
|
|
404
753
|
getIndent: (colIndex: number, indentLevel?: number) => string;
|
|
405
|
-
getRowExpandSymbol: (rowIndex: number) => "" | "
|
|
754
|
+
getRowExpandSymbol: (rowIndex: number) => "" | "▼" | "►";
|
|
406
755
|
isRowGantt: (rowIndex: number) => boolean;
|
|
407
756
|
isRowVisible: (rowIndex: number) => boolean | undefined;
|
|
757
|
+
registerConnectionHandle: (handleInfo: ConnectionHandle) => void;
|
|
758
|
+
registerGanttBar: (barInfo: GanttBarInfo) => void;
|
|
759
|
+
resizeColumn: (colIndex: number, newWidth: number) => void;
|
|
408
760
|
setCellData: (colIndex: number, rowIndex: number, value: any) => void;
|
|
409
761
|
setCellText: (colIndex: number, rowIndex: number, value: string) => void;
|
|
410
762
|
toggleRowExpand: (rowIndex: number) => void;
|
|
763
|
+
unregisterConnectionHandle: (handleId: string) => void;
|
|
764
|
+
unregisterGanttBar: (barId: string) => void;
|
|
411
765
|
updateGanttBar: (event: GanttDragEvent) => void;
|
|
412
|
-
}, "closeModal" | "getCellData" | "getCellDisplayValue" | "getFormattedValue" | "
|
|
766
|
+
}, "closeModal" | "createConnection" | "deleteConnection" | "getCellData" | "getCellDisplayValue" | "getConnectionsForBar" | "getFormattedValue" | "getHandlesForBar" | "getHeaderCellStyle" | "getIndent" | "getRowExpandSymbol" | "isRowGantt" | "isRowVisible" | "registerConnectionHandle" | "registerGanttBar" | "resizeColumn" | "setCellData" | "setCellText" | "toggleRowExpand" | "unregisterConnectionHandle" | "unregisterGanttBar" | "updateGanttBar">>;
|
|
413
767
|
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/stores/table.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAiB,MAAM,KAAK,CAAA;AAEvD,OAAO,KAAK,EACX,WAAW,EACX,cAAc,EACd,WAAW,EACX,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,MAAM,UAAU,CAAA;AAGjB;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU;IAC1C,OAAO,EAAE,WAAW,EAAE,CAAA;IACtB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,KAAK,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAA;IAC9B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,KAAK,CAAC,EAAE,UAAU,CAAA;CAClB
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/stores/table.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAiB,MAAM,KAAK,CAAA;AAEvD,OAAO,KAAK,EACX,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,MAAM,UAAU,CAAA;AAGjB;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU;IAC1C,OAAO,EAAE,WAAW,EAAE,CAAA;IACtB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,KAAK,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAA;IAC9B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,KAAK,CAAC,EAAE,UAAU,CAAA;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