@stonecrop/aform 0.8.13 → 0.9.1
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/aform.d.ts +4 -2773
- package/package.json +18 -17
- package/dist/aform.umd.cjs +0 -51
- package/dist/aform.umd.cjs.map +0 -1
- /package/dist/{src/tsdoc-metadata.json → tsdoc-metadata.json} +0 -0
package/dist/aform.d.ts
CHANGED
|
@@ -9,14 +9,10 @@ import AForm from './components/AForm.vue';
|
|
|
9
9
|
import ANumericInput from './components/form/ANumericInput.vue';
|
|
10
10
|
import type { App } from 'vue';
|
|
11
11
|
import ATextInput from './components/form/ATextInput.vue';
|
|
12
|
-
import { ComputedRef } from 'vue';
|
|
13
|
-
import { CSSProperties } from 'vue';
|
|
14
12
|
import Login from './components/utilities/Login.vue';
|
|
15
|
-
import {
|
|
16
|
-
import type {
|
|
17
|
-
import {
|
|
18
|
-
import { useElementBounding } from '@vueuse/core';
|
|
19
|
-
import { WritableComputedRef } from 'vue';
|
|
13
|
+
import type { TableColumn } from '@stonecrop/atable';
|
|
14
|
+
import type { TableConfig } from '@stonecrop/atable';
|
|
15
|
+
import type { TableRow } from '@stonecrop/atable';
|
|
20
16
|
|
|
21
17
|
export { ACheckbox }
|
|
22
18
|
|
|
@@ -65,55 +61,6 @@ export declare type BaseSchema = {
|
|
|
65
61
|
value?: any;
|
|
66
62
|
};
|
|
67
63
|
|
|
68
|
-
/**
|
|
69
|
-
* Base table configuration properties shared across all view types.
|
|
70
|
-
* @public
|
|
71
|
-
*/
|
|
72
|
-
export declare interface BaseTableConfig {
|
|
73
|
-
/**
|
|
74
|
-
* Control whether the table should be allowed to use the full width of its container.
|
|
75
|
-
*
|
|
76
|
-
* @defaultValue false
|
|
77
|
-
*/
|
|
78
|
-
fullWidth?: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Configuration for row-level actions (add, delete, duplicate, etc.).
|
|
81
|
-
*/
|
|
82
|
-
rowActions?: RowActionsConfig;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Table configuration for basic view types (uncounted, list, list-expansion).
|
|
87
|
-
* @public
|
|
88
|
-
*/
|
|
89
|
-
export declare interface BasicTableConfig extends BaseTableConfig {
|
|
90
|
-
/**
|
|
91
|
-
* The type of view to display the table in.
|
|
92
|
-
*/
|
|
93
|
-
view?: 'uncounted' | 'list' | 'list-expansion';
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Table cell context definition.
|
|
98
|
-
* @public
|
|
99
|
-
*/
|
|
100
|
-
export declare interface CellContext {
|
|
101
|
-
/**
|
|
102
|
-
* The row object for the current cell.
|
|
103
|
-
*/
|
|
104
|
-
row: TableRow;
|
|
105
|
-
/**
|
|
106
|
-
* The column object for the current cell.
|
|
107
|
-
*/
|
|
108
|
-
column: TableColumn;
|
|
109
|
-
/**
|
|
110
|
-
* The table object for the current cell.
|
|
111
|
-
*/
|
|
112
|
-
table: {
|
|
113
|
-
[key: string]: any;
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
|
|
117
64
|
/**
|
|
118
65
|
* Defined props for AForm components
|
|
119
66
|
* @public
|
|
@@ -163,2059 +110,6 @@ export declare type ComponentProps = {
|
|
|
163
110
|
};
|
|
164
111
|
};
|
|
165
112
|
|
|
166
|
-
/**
|
|
167
|
-
* Connection event for handling connection creation/deletion.
|
|
168
|
-
* @public
|
|
169
|
-
*/
|
|
170
|
-
export declare type ConnectionEvent = {
|
|
171
|
-
type: 'create' | 'delete';
|
|
172
|
-
connection: ConnectionPath;
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Connection handle information for gantt bar connections.
|
|
177
|
-
* @public
|
|
178
|
-
*/
|
|
179
|
-
export declare interface ConnectionHandle {
|
|
180
|
-
/**
|
|
181
|
-
* Unique identifier for the connection handle.
|
|
182
|
-
*/
|
|
183
|
-
id: string;
|
|
184
|
-
/**
|
|
185
|
-
* The row index of the gantt bar this handle belongs to.
|
|
186
|
-
*/
|
|
187
|
-
rowIndex: number;
|
|
188
|
-
/**
|
|
189
|
-
* The column index of the gantt bar this handle belongs to.
|
|
190
|
-
*/
|
|
191
|
-
colIndex: number;
|
|
192
|
-
/**
|
|
193
|
-
* The side of the gantt bar where this handle is located.
|
|
194
|
-
*/
|
|
195
|
-
side: 'left' | 'right';
|
|
196
|
-
/**
|
|
197
|
-
* The position of the connection handle.
|
|
198
|
-
*/
|
|
199
|
-
position: {
|
|
200
|
-
x: ShallowRef<number>;
|
|
201
|
-
y: ShallowRef<number>;
|
|
202
|
-
};
|
|
203
|
-
/**
|
|
204
|
-
* Whether the handle is currently visible (on hover).
|
|
205
|
-
*/
|
|
206
|
-
visible: Ref<boolean>;
|
|
207
|
-
/**
|
|
208
|
-
* Reference to the gantt bar this handle belongs to.
|
|
209
|
-
*/
|
|
210
|
-
barId: string;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Connection path between two gantt bars.
|
|
215
|
-
* @public
|
|
216
|
-
*/
|
|
217
|
-
export declare interface ConnectionPath {
|
|
218
|
-
/**
|
|
219
|
-
* Unique identifier for the connection path.
|
|
220
|
-
*/
|
|
221
|
-
id: string;
|
|
222
|
-
/**
|
|
223
|
-
* The source connection handle.
|
|
224
|
-
*/
|
|
225
|
-
from: {
|
|
226
|
-
barId: string;
|
|
227
|
-
side: 'left' | 'right';
|
|
228
|
-
};
|
|
229
|
-
/**
|
|
230
|
-
* The target connection handle.
|
|
231
|
-
*/
|
|
232
|
-
to: {
|
|
233
|
-
barId: string;
|
|
234
|
-
side: 'left' | 'right';
|
|
235
|
-
};
|
|
236
|
-
/**
|
|
237
|
-
* Optional styling for the connection path.
|
|
238
|
-
*/
|
|
239
|
-
style?: {
|
|
240
|
-
color?: string;
|
|
241
|
-
width?: number;
|
|
242
|
-
};
|
|
243
|
-
/**
|
|
244
|
-
* Optional label for the connection.
|
|
245
|
-
*/
|
|
246
|
-
label?: string;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* Create a table store
|
|
251
|
-
* @param initData - Initial data for the table store
|
|
252
|
-
* @returns table store instance
|
|
253
|
-
* @public
|
|
254
|
-
*/
|
|
255
|
-
declare const createTableStore: (initData: {
|
|
256
|
-
columns: TableColumn[];
|
|
257
|
-
rows: TableRow[];
|
|
258
|
-
id?: string;
|
|
259
|
-
config?: TableConfig;
|
|
260
|
-
modal?: TableModal;
|
|
261
|
-
}) => Store<`table-${string}`, Pick<{
|
|
262
|
-
columns: Ref< {
|
|
263
|
-
name: string;
|
|
264
|
-
align?: CanvasTextAlign | undefined;
|
|
265
|
-
edit?: boolean | undefined;
|
|
266
|
-
label?: string | undefined;
|
|
267
|
-
fieldtype?: string | undefined;
|
|
268
|
-
width?: string | undefined;
|
|
269
|
-
pinned?: boolean | undefined;
|
|
270
|
-
resizable?: boolean | undefined;
|
|
271
|
-
sortable?: boolean | undefined;
|
|
272
|
-
filterable?: boolean | undefined;
|
|
273
|
-
filterType?: "text" | "select" | "number" | "date" | "dateRange" | "checkbox" | "component" | undefined;
|
|
274
|
-
filterOptions?: any[] | undefined;
|
|
275
|
-
filterComponent?: string | undefined;
|
|
276
|
-
cellComponent?: string | undefined;
|
|
277
|
-
cellComponentProps?: Record<string, any> | undefined;
|
|
278
|
-
modalComponent?: string | ((context: CellContext) => string) | undefined;
|
|
279
|
-
modalComponentExtraProps?: Record<string, any> | undefined;
|
|
280
|
-
format?: string | ((value: any, context: CellContext) => string) | undefined;
|
|
281
|
-
mask?: ((value: any) => any) | undefined;
|
|
282
|
-
isGantt?: boolean | undefined;
|
|
283
|
-
ganttComponent?: string | undefined;
|
|
284
|
-
colspan?: number | undefined;
|
|
285
|
-
originalIndex?: number | undefined;
|
|
286
|
-
}[], TableColumn[] | {
|
|
287
|
-
name: string;
|
|
288
|
-
align?: CanvasTextAlign | undefined;
|
|
289
|
-
edit?: boolean | undefined;
|
|
290
|
-
label?: string | undefined;
|
|
291
|
-
fieldtype?: string | undefined;
|
|
292
|
-
width?: string | undefined;
|
|
293
|
-
pinned?: boolean | undefined;
|
|
294
|
-
resizable?: boolean | undefined;
|
|
295
|
-
sortable?: boolean | undefined;
|
|
296
|
-
filterable?: boolean | undefined;
|
|
297
|
-
filterType?: "text" | "select" | "number" | "date" | "dateRange" | "checkbox" | "component" | undefined;
|
|
298
|
-
filterOptions?: any[] | undefined;
|
|
299
|
-
filterComponent?: string | undefined;
|
|
300
|
-
cellComponent?: string | undefined;
|
|
301
|
-
cellComponentProps?: Record<string, any> | undefined;
|
|
302
|
-
modalComponent?: string | ((context: CellContext) => string) | undefined;
|
|
303
|
-
modalComponentExtraProps?: Record<string, any> | undefined;
|
|
304
|
-
format?: string | ((value: any, context: CellContext) => string) | undefined;
|
|
305
|
-
mask?: ((value: any) => any) | undefined;
|
|
306
|
-
isGantt?: boolean | undefined;
|
|
307
|
-
ganttComponent?: string | undefined;
|
|
308
|
-
colspan?: number | undefined;
|
|
309
|
-
originalIndex?: number | undefined;
|
|
310
|
-
}[]>;
|
|
311
|
-
config: Ref< {
|
|
312
|
-
view?: "uncounted" | "list" | "list-expansion" | undefined;
|
|
313
|
-
fullWidth?: boolean | undefined;
|
|
314
|
-
rowActions?: {
|
|
315
|
-
enabled: boolean;
|
|
316
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
317
|
-
dropdownThreshold?: number | undefined;
|
|
318
|
-
forceDropdown?: boolean | undefined;
|
|
319
|
-
actions?: {
|
|
320
|
-
add?: boolean | {
|
|
321
|
-
enabled?: boolean | undefined;
|
|
322
|
-
label?: string | undefined;
|
|
323
|
-
icon?: string | undefined;
|
|
324
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
325
|
-
} | undefined;
|
|
326
|
-
delete?: boolean | {
|
|
327
|
-
enabled?: boolean | undefined;
|
|
328
|
-
label?: string | undefined;
|
|
329
|
-
icon?: string | undefined;
|
|
330
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
331
|
-
} | undefined;
|
|
332
|
-
duplicate?: boolean | {
|
|
333
|
-
enabled?: boolean | undefined;
|
|
334
|
-
label?: string | undefined;
|
|
335
|
-
icon?: string | undefined;
|
|
336
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
337
|
-
} | undefined;
|
|
338
|
-
insertAbove?: boolean | {
|
|
339
|
-
enabled?: boolean | undefined;
|
|
340
|
-
label?: string | undefined;
|
|
341
|
-
icon?: string | undefined;
|
|
342
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
343
|
-
} | undefined;
|
|
344
|
-
insertBelow?: boolean | {
|
|
345
|
-
enabled?: boolean | undefined;
|
|
346
|
-
label?: string | undefined;
|
|
347
|
-
icon?: string | undefined;
|
|
348
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
349
|
-
} | undefined;
|
|
350
|
-
move?: boolean | {
|
|
351
|
-
enabled?: boolean | undefined;
|
|
352
|
-
label?: string | undefined;
|
|
353
|
-
icon?: string | undefined;
|
|
354
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
355
|
-
} | undefined;
|
|
356
|
-
} | undefined;
|
|
357
|
-
} | undefined;
|
|
358
|
-
} | {
|
|
359
|
-
view: "tree";
|
|
360
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
361
|
-
fullWidth?: boolean | undefined;
|
|
362
|
-
rowActions?: {
|
|
363
|
-
enabled: boolean;
|
|
364
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
365
|
-
dropdownThreshold?: number | undefined;
|
|
366
|
-
forceDropdown?: boolean | undefined;
|
|
367
|
-
actions?: {
|
|
368
|
-
add?: boolean | {
|
|
369
|
-
enabled?: boolean | undefined;
|
|
370
|
-
label?: string | undefined;
|
|
371
|
-
icon?: string | undefined;
|
|
372
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
373
|
-
} | undefined;
|
|
374
|
-
delete?: boolean | {
|
|
375
|
-
enabled?: boolean | undefined;
|
|
376
|
-
label?: string | undefined;
|
|
377
|
-
icon?: string | undefined;
|
|
378
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
379
|
-
} | undefined;
|
|
380
|
-
duplicate?: boolean | {
|
|
381
|
-
enabled?: boolean | undefined;
|
|
382
|
-
label?: string | undefined;
|
|
383
|
-
icon?: string | undefined;
|
|
384
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
385
|
-
} | undefined;
|
|
386
|
-
insertAbove?: boolean | {
|
|
387
|
-
enabled?: boolean | undefined;
|
|
388
|
-
label?: string | undefined;
|
|
389
|
-
icon?: string | undefined;
|
|
390
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
391
|
-
} | undefined;
|
|
392
|
-
insertBelow?: boolean | {
|
|
393
|
-
enabled?: boolean | undefined;
|
|
394
|
-
label?: string | undefined;
|
|
395
|
-
icon?: string | undefined;
|
|
396
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
397
|
-
} | undefined;
|
|
398
|
-
move?: boolean | {
|
|
399
|
-
enabled?: boolean | undefined;
|
|
400
|
-
label?: string | undefined;
|
|
401
|
-
icon?: string | undefined;
|
|
402
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
403
|
-
} | undefined;
|
|
404
|
-
} | undefined;
|
|
405
|
-
} | undefined;
|
|
406
|
-
} | {
|
|
407
|
-
view: "gantt";
|
|
408
|
-
dependencyGraph?: boolean | undefined;
|
|
409
|
-
fullWidth?: boolean | undefined;
|
|
410
|
-
rowActions?: {
|
|
411
|
-
enabled: boolean;
|
|
412
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
413
|
-
dropdownThreshold?: number | undefined;
|
|
414
|
-
forceDropdown?: boolean | undefined;
|
|
415
|
-
actions?: {
|
|
416
|
-
add?: boolean | {
|
|
417
|
-
enabled?: boolean | undefined;
|
|
418
|
-
label?: string | undefined;
|
|
419
|
-
icon?: string | undefined;
|
|
420
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
421
|
-
} | undefined;
|
|
422
|
-
delete?: boolean | {
|
|
423
|
-
enabled?: boolean | undefined;
|
|
424
|
-
label?: string | undefined;
|
|
425
|
-
icon?: string | undefined;
|
|
426
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
427
|
-
} | undefined;
|
|
428
|
-
duplicate?: boolean | {
|
|
429
|
-
enabled?: boolean | undefined;
|
|
430
|
-
label?: string | undefined;
|
|
431
|
-
icon?: string | undefined;
|
|
432
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
433
|
-
} | undefined;
|
|
434
|
-
insertAbove?: boolean | {
|
|
435
|
-
enabled?: boolean | undefined;
|
|
436
|
-
label?: string | undefined;
|
|
437
|
-
icon?: string | undefined;
|
|
438
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
439
|
-
} | undefined;
|
|
440
|
-
insertBelow?: boolean | {
|
|
441
|
-
enabled?: boolean | undefined;
|
|
442
|
-
label?: string | undefined;
|
|
443
|
-
icon?: string | undefined;
|
|
444
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
445
|
-
} | undefined;
|
|
446
|
-
move?: boolean | {
|
|
447
|
-
enabled?: boolean | undefined;
|
|
448
|
-
label?: string | undefined;
|
|
449
|
-
icon?: string | undefined;
|
|
450
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
451
|
-
} | undefined;
|
|
452
|
-
} | undefined;
|
|
453
|
-
} | undefined;
|
|
454
|
-
} | {
|
|
455
|
-
view: "tree-gantt";
|
|
456
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
457
|
-
dependencyGraph?: boolean | undefined;
|
|
458
|
-
fullWidth?: boolean | undefined;
|
|
459
|
-
rowActions?: {
|
|
460
|
-
enabled: boolean;
|
|
461
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
462
|
-
dropdownThreshold?: number | undefined;
|
|
463
|
-
forceDropdown?: boolean | undefined;
|
|
464
|
-
actions?: {
|
|
465
|
-
add?: boolean | {
|
|
466
|
-
enabled?: boolean | undefined;
|
|
467
|
-
label?: string | undefined;
|
|
468
|
-
icon?: string | undefined;
|
|
469
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
470
|
-
} | undefined;
|
|
471
|
-
delete?: boolean | {
|
|
472
|
-
enabled?: boolean | undefined;
|
|
473
|
-
label?: string | undefined;
|
|
474
|
-
icon?: string | undefined;
|
|
475
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
476
|
-
} | undefined;
|
|
477
|
-
duplicate?: boolean | {
|
|
478
|
-
enabled?: boolean | undefined;
|
|
479
|
-
label?: string | undefined;
|
|
480
|
-
icon?: string | undefined;
|
|
481
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
482
|
-
} | undefined;
|
|
483
|
-
insertAbove?: boolean | {
|
|
484
|
-
enabled?: boolean | undefined;
|
|
485
|
-
label?: string | undefined;
|
|
486
|
-
icon?: string | undefined;
|
|
487
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
488
|
-
} | undefined;
|
|
489
|
-
insertBelow?: boolean | {
|
|
490
|
-
enabled?: boolean | undefined;
|
|
491
|
-
label?: string | undefined;
|
|
492
|
-
icon?: string | undefined;
|
|
493
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
494
|
-
} | undefined;
|
|
495
|
-
move?: boolean | {
|
|
496
|
-
enabled?: boolean | undefined;
|
|
497
|
-
label?: string | undefined;
|
|
498
|
-
icon?: string | undefined;
|
|
499
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
500
|
-
} | undefined;
|
|
501
|
-
} | undefined;
|
|
502
|
-
} | undefined;
|
|
503
|
-
}, TableConfig | {
|
|
504
|
-
view?: "uncounted" | "list" | "list-expansion" | undefined;
|
|
505
|
-
fullWidth?: boolean | undefined;
|
|
506
|
-
rowActions?: {
|
|
507
|
-
enabled: boolean;
|
|
508
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
509
|
-
dropdownThreshold?: number | undefined;
|
|
510
|
-
forceDropdown?: boolean | undefined;
|
|
511
|
-
actions?: {
|
|
512
|
-
add?: boolean | {
|
|
513
|
-
enabled?: boolean | undefined;
|
|
514
|
-
label?: string | undefined;
|
|
515
|
-
icon?: string | undefined;
|
|
516
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
517
|
-
} | undefined;
|
|
518
|
-
delete?: boolean | {
|
|
519
|
-
enabled?: boolean | undefined;
|
|
520
|
-
label?: string | undefined;
|
|
521
|
-
icon?: string | undefined;
|
|
522
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
523
|
-
} | undefined;
|
|
524
|
-
duplicate?: boolean | {
|
|
525
|
-
enabled?: boolean | undefined;
|
|
526
|
-
label?: string | undefined;
|
|
527
|
-
icon?: string | undefined;
|
|
528
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
529
|
-
} | undefined;
|
|
530
|
-
insertAbove?: boolean | {
|
|
531
|
-
enabled?: boolean | undefined;
|
|
532
|
-
label?: string | undefined;
|
|
533
|
-
icon?: string | undefined;
|
|
534
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
535
|
-
} | undefined;
|
|
536
|
-
insertBelow?: boolean | {
|
|
537
|
-
enabled?: boolean | undefined;
|
|
538
|
-
label?: string | undefined;
|
|
539
|
-
icon?: string | undefined;
|
|
540
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
541
|
-
} | undefined;
|
|
542
|
-
move?: boolean | {
|
|
543
|
-
enabled?: boolean | undefined;
|
|
544
|
-
label?: string | undefined;
|
|
545
|
-
icon?: string | undefined;
|
|
546
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
547
|
-
} | undefined;
|
|
548
|
-
} | undefined;
|
|
549
|
-
} | undefined;
|
|
550
|
-
} | {
|
|
551
|
-
view: "tree";
|
|
552
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
553
|
-
fullWidth?: boolean | undefined;
|
|
554
|
-
rowActions?: {
|
|
555
|
-
enabled: boolean;
|
|
556
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
557
|
-
dropdownThreshold?: number | undefined;
|
|
558
|
-
forceDropdown?: boolean | undefined;
|
|
559
|
-
actions?: {
|
|
560
|
-
add?: boolean | {
|
|
561
|
-
enabled?: boolean | undefined;
|
|
562
|
-
label?: string | undefined;
|
|
563
|
-
icon?: string | undefined;
|
|
564
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
565
|
-
} | undefined;
|
|
566
|
-
delete?: boolean | {
|
|
567
|
-
enabled?: boolean | undefined;
|
|
568
|
-
label?: string | undefined;
|
|
569
|
-
icon?: string | undefined;
|
|
570
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
571
|
-
} | undefined;
|
|
572
|
-
duplicate?: boolean | {
|
|
573
|
-
enabled?: boolean | undefined;
|
|
574
|
-
label?: string | undefined;
|
|
575
|
-
icon?: string | undefined;
|
|
576
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
577
|
-
} | undefined;
|
|
578
|
-
insertAbove?: boolean | {
|
|
579
|
-
enabled?: boolean | undefined;
|
|
580
|
-
label?: string | undefined;
|
|
581
|
-
icon?: string | undefined;
|
|
582
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
583
|
-
} | undefined;
|
|
584
|
-
insertBelow?: boolean | {
|
|
585
|
-
enabled?: boolean | undefined;
|
|
586
|
-
label?: string | undefined;
|
|
587
|
-
icon?: string | undefined;
|
|
588
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
589
|
-
} | undefined;
|
|
590
|
-
move?: boolean | {
|
|
591
|
-
enabled?: boolean | undefined;
|
|
592
|
-
label?: string | undefined;
|
|
593
|
-
icon?: string | undefined;
|
|
594
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
595
|
-
} | undefined;
|
|
596
|
-
} | undefined;
|
|
597
|
-
} | undefined;
|
|
598
|
-
} | {
|
|
599
|
-
view: "gantt";
|
|
600
|
-
dependencyGraph?: boolean | undefined;
|
|
601
|
-
fullWidth?: boolean | undefined;
|
|
602
|
-
rowActions?: {
|
|
603
|
-
enabled: boolean;
|
|
604
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
605
|
-
dropdownThreshold?: number | undefined;
|
|
606
|
-
forceDropdown?: boolean | undefined;
|
|
607
|
-
actions?: {
|
|
608
|
-
add?: boolean | {
|
|
609
|
-
enabled?: boolean | undefined;
|
|
610
|
-
label?: string | undefined;
|
|
611
|
-
icon?: string | undefined;
|
|
612
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
613
|
-
} | undefined;
|
|
614
|
-
delete?: boolean | {
|
|
615
|
-
enabled?: boolean | undefined;
|
|
616
|
-
label?: string | undefined;
|
|
617
|
-
icon?: string | undefined;
|
|
618
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
619
|
-
} | undefined;
|
|
620
|
-
duplicate?: boolean | {
|
|
621
|
-
enabled?: boolean | undefined;
|
|
622
|
-
label?: string | undefined;
|
|
623
|
-
icon?: string | undefined;
|
|
624
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
625
|
-
} | undefined;
|
|
626
|
-
insertAbove?: boolean | {
|
|
627
|
-
enabled?: boolean | undefined;
|
|
628
|
-
label?: string | undefined;
|
|
629
|
-
icon?: string | undefined;
|
|
630
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
631
|
-
} | undefined;
|
|
632
|
-
insertBelow?: boolean | {
|
|
633
|
-
enabled?: boolean | undefined;
|
|
634
|
-
label?: string | undefined;
|
|
635
|
-
icon?: string | undefined;
|
|
636
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
637
|
-
} | undefined;
|
|
638
|
-
move?: boolean | {
|
|
639
|
-
enabled?: boolean | undefined;
|
|
640
|
-
label?: string | undefined;
|
|
641
|
-
icon?: string | undefined;
|
|
642
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
643
|
-
} | undefined;
|
|
644
|
-
} | undefined;
|
|
645
|
-
} | undefined;
|
|
646
|
-
} | {
|
|
647
|
-
view: "tree-gantt";
|
|
648
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
649
|
-
dependencyGraph?: boolean | undefined;
|
|
650
|
-
fullWidth?: boolean | undefined;
|
|
651
|
-
rowActions?: {
|
|
652
|
-
enabled: boolean;
|
|
653
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
654
|
-
dropdownThreshold?: number | undefined;
|
|
655
|
-
forceDropdown?: boolean | undefined;
|
|
656
|
-
actions?: {
|
|
657
|
-
add?: boolean | {
|
|
658
|
-
enabled?: boolean | undefined;
|
|
659
|
-
label?: string | undefined;
|
|
660
|
-
icon?: string | undefined;
|
|
661
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
662
|
-
} | undefined;
|
|
663
|
-
delete?: boolean | {
|
|
664
|
-
enabled?: boolean | undefined;
|
|
665
|
-
label?: string | undefined;
|
|
666
|
-
icon?: string | undefined;
|
|
667
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
668
|
-
} | undefined;
|
|
669
|
-
duplicate?: boolean | {
|
|
670
|
-
enabled?: boolean | undefined;
|
|
671
|
-
label?: string | undefined;
|
|
672
|
-
icon?: string | undefined;
|
|
673
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
674
|
-
} | undefined;
|
|
675
|
-
insertAbove?: boolean | {
|
|
676
|
-
enabled?: boolean | undefined;
|
|
677
|
-
label?: string | undefined;
|
|
678
|
-
icon?: string | undefined;
|
|
679
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
680
|
-
} | undefined;
|
|
681
|
-
insertBelow?: boolean | {
|
|
682
|
-
enabled?: boolean | undefined;
|
|
683
|
-
label?: string | undefined;
|
|
684
|
-
icon?: string | undefined;
|
|
685
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
686
|
-
} | undefined;
|
|
687
|
-
move?: boolean | {
|
|
688
|
-
enabled?: boolean | undefined;
|
|
689
|
-
label?: string | undefined;
|
|
690
|
-
icon?: string | undefined;
|
|
691
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
692
|
-
} | undefined;
|
|
693
|
-
} | undefined;
|
|
694
|
-
} | undefined;
|
|
695
|
-
}>;
|
|
696
|
-
connectionHandles: Ref< {
|
|
697
|
-
id: string;
|
|
698
|
-
rowIndex: number;
|
|
699
|
-
colIndex: number;
|
|
700
|
-
side: "left" | "right";
|
|
701
|
-
position: {
|
|
702
|
-
x: number;
|
|
703
|
-
y: number;
|
|
704
|
-
};
|
|
705
|
-
visible: boolean;
|
|
706
|
-
barId: string;
|
|
707
|
-
}[], ConnectionHandle[] | {
|
|
708
|
-
id: string;
|
|
709
|
-
rowIndex: number;
|
|
710
|
-
colIndex: number;
|
|
711
|
-
side: "left" | "right";
|
|
712
|
-
position: {
|
|
713
|
-
x: number;
|
|
714
|
-
y: number;
|
|
715
|
-
};
|
|
716
|
-
visible: boolean;
|
|
717
|
-
barId: string;
|
|
718
|
-
}[]>;
|
|
719
|
-
connectionPaths: Ref< {
|
|
720
|
-
id: string;
|
|
721
|
-
from: {
|
|
722
|
-
barId: string;
|
|
723
|
-
side: "left" | "right";
|
|
724
|
-
};
|
|
725
|
-
to: {
|
|
726
|
-
barId: string;
|
|
727
|
-
side: "left" | "right";
|
|
728
|
-
};
|
|
729
|
-
style?: {
|
|
730
|
-
color?: string | undefined;
|
|
731
|
-
width?: number | undefined;
|
|
732
|
-
} | undefined;
|
|
733
|
-
label?: string | undefined;
|
|
734
|
-
}[], ConnectionPath[] | {
|
|
735
|
-
id: string;
|
|
736
|
-
from: {
|
|
737
|
-
barId: string;
|
|
738
|
-
side: "left" | "right";
|
|
739
|
-
};
|
|
740
|
-
to: {
|
|
741
|
-
barId: string;
|
|
742
|
-
side: "left" | "right";
|
|
743
|
-
};
|
|
744
|
-
style?: {
|
|
745
|
-
color?: string | undefined;
|
|
746
|
-
width?: number | undefined;
|
|
747
|
-
} | undefined;
|
|
748
|
-
label?: string | undefined;
|
|
749
|
-
}[]>;
|
|
750
|
-
display: WritableComputedRef<TableDisplay[], TableDisplay[]>;
|
|
751
|
-
filterState: Ref<FilterStateRecord, FilterStateRecord>;
|
|
752
|
-
ganttBars: Ref< {
|
|
753
|
-
id: string;
|
|
754
|
-
rowIndex: number;
|
|
755
|
-
colIndex: number;
|
|
756
|
-
startIndex: number;
|
|
757
|
-
endIndex: number;
|
|
758
|
-
color: string;
|
|
759
|
-
position: {
|
|
760
|
-
x: number;
|
|
761
|
-
y: number;
|
|
762
|
-
};
|
|
763
|
-
label?: string | undefined;
|
|
764
|
-
}[], GanttBarInfo[] | {
|
|
765
|
-
id: string;
|
|
766
|
-
rowIndex: number;
|
|
767
|
-
colIndex: number;
|
|
768
|
-
startIndex: number;
|
|
769
|
-
endIndex: number;
|
|
770
|
-
color: string;
|
|
771
|
-
position: {
|
|
772
|
-
x: number;
|
|
773
|
-
y: number;
|
|
774
|
-
};
|
|
775
|
-
label?: string | undefined;
|
|
776
|
-
}[]>;
|
|
777
|
-
modal: Ref< {
|
|
778
|
-
visible?: boolean | undefined;
|
|
779
|
-
cell?: (HTMLTableCellElement | null) | undefined;
|
|
780
|
-
parent?: HTMLElement | undefined;
|
|
781
|
-
colIndex?: number | undefined;
|
|
782
|
-
rowIndex?: number | undefined;
|
|
783
|
-
component?: string | undefined;
|
|
784
|
-
componentProps?: Record<string, any> | undefined;
|
|
785
|
-
bottom?: number | undefined;
|
|
786
|
-
height?: number | undefined;
|
|
787
|
-
left?: number | undefined;
|
|
788
|
-
width?: number | undefined;
|
|
789
|
-
}, TableModal | {
|
|
790
|
-
visible?: boolean | undefined;
|
|
791
|
-
cell?: (HTMLTableCellElement | null) | undefined;
|
|
792
|
-
parent?: HTMLElement | undefined;
|
|
793
|
-
colIndex?: number | undefined;
|
|
794
|
-
rowIndex?: number | undefined;
|
|
795
|
-
component?: string | undefined;
|
|
796
|
-
componentProps?: Record<string, any> | undefined;
|
|
797
|
-
bottom?: number | undefined;
|
|
798
|
-
height?: number | undefined;
|
|
799
|
-
left?: number | undefined;
|
|
800
|
-
width?: number | undefined;
|
|
801
|
-
}>;
|
|
802
|
-
rows: Ref< {
|
|
803
|
-
[x: string]: any;
|
|
804
|
-
indent?: number | undefined;
|
|
805
|
-
parent?: number | undefined;
|
|
806
|
-
gantt?: {
|
|
807
|
-
color?: string | undefined;
|
|
808
|
-
startIndex?: number | undefined;
|
|
809
|
-
endIndex?: number | undefined;
|
|
810
|
-
colspan?: number | undefined;
|
|
811
|
-
} | undefined;
|
|
812
|
-
}[], TableRow[] | {
|
|
813
|
-
[x: string]: any;
|
|
814
|
-
indent?: number | undefined;
|
|
815
|
-
parent?: number | undefined;
|
|
816
|
-
gantt?: {
|
|
817
|
-
color?: string | undefined;
|
|
818
|
-
startIndex?: number | undefined;
|
|
819
|
-
endIndex?: number | undefined;
|
|
820
|
-
colspan?: number | undefined;
|
|
821
|
-
} | undefined;
|
|
822
|
-
}[]>;
|
|
823
|
-
sortState: Ref< {
|
|
824
|
-
column: number | null;
|
|
825
|
-
direction: "asc" | "desc" | null;
|
|
826
|
-
}, {
|
|
827
|
-
column: number | null;
|
|
828
|
-
direction: "asc" | "desc" | null;
|
|
829
|
-
} | {
|
|
830
|
-
column: number | null;
|
|
831
|
-
direction: "asc" | "desc" | null;
|
|
832
|
-
}>;
|
|
833
|
-
table: ComputedRef< {}>;
|
|
834
|
-
updates: Ref<Record<string, string>, Record<string, string>>;
|
|
835
|
-
filteredRows: ComputedRef< {
|
|
836
|
-
originalIndex: number;
|
|
837
|
-
indent?: number | undefined;
|
|
838
|
-
parent?: number | undefined;
|
|
839
|
-
gantt?: {
|
|
840
|
-
color?: string | undefined;
|
|
841
|
-
startIndex?: number | undefined;
|
|
842
|
-
endIndex?: number | undefined;
|
|
843
|
-
colspan?: number | undefined;
|
|
844
|
-
} | undefined;
|
|
845
|
-
}[]>;
|
|
846
|
-
hasPinnedColumns: ComputedRef<boolean>;
|
|
847
|
-
isGanttView: ComputedRef<boolean>;
|
|
848
|
-
isTreeView: ComputedRef<boolean>;
|
|
849
|
-
isDependencyGraphEnabled: ComputedRef<boolean>;
|
|
850
|
-
numberedRowWidth: ComputedRef<string>;
|
|
851
|
-
zeroColumn: ComputedRef<boolean>;
|
|
852
|
-
addRow: (rowData?: Partial<TableRow>, position?: "start" | "end" | number) => number;
|
|
853
|
-
clearFilter: (colIndex: number) => void;
|
|
854
|
-
closeModal: (event: MouseEvent) => void;
|
|
855
|
-
createConnection: (fromHandleId: string, toHandleId: string, options?: {
|
|
856
|
-
style?: ConnectionPath["style"];
|
|
857
|
-
label?: string;
|
|
858
|
-
}) => ConnectionPath | null;
|
|
859
|
-
deleteConnection: (connectionId: string) => boolean;
|
|
860
|
-
deleteRow: (rowIndex: number) => TableRow | null;
|
|
861
|
-
duplicateRow: (rowIndex: number) => number;
|
|
862
|
-
getCellData: <T = any>(colIndex: number, rowIndex: number) => T;
|
|
863
|
-
getCellDisplayValue: (colIndex: number, rowIndex: number) => any;
|
|
864
|
-
getConnectionsForBar: (barId: string) => {
|
|
865
|
-
id: string;
|
|
866
|
-
from: {
|
|
867
|
-
barId: string;
|
|
868
|
-
side: "left" | "right";
|
|
869
|
-
};
|
|
870
|
-
to: {
|
|
871
|
-
barId: string;
|
|
872
|
-
side: "left" | "right";
|
|
873
|
-
};
|
|
874
|
-
style?: {
|
|
875
|
-
color?: string | undefined;
|
|
876
|
-
width?: number | undefined;
|
|
877
|
-
} | undefined;
|
|
878
|
-
label?: string | undefined;
|
|
879
|
-
}[];
|
|
880
|
-
getFormattedValue: (colIndex: number, rowIndex: number, value: any) => any;
|
|
881
|
-
getHandlesForBar: (barId: string) => {
|
|
882
|
-
id: string;
|
|
883
|
-
rowIndex: number;
|
|
884
|
-
colIndex: number;
|
|
885
|
-
side: "left" | "right";
|
|
886
|
-
position: {
|
|
887
|
-
x: number;
|
|
888
|
-
y: number;
|
|
889
|
-
};
|
|
890
|
-
visible: boolean;
|
|
891
|
-
barId: string;
|
|
892
|
-
}[];
|
|
893
|
-
getHeaderCellStyle: (column: TableColumn) => CSSProperties;
|
|
894
|
-
getIndent: (colIndex: number, indentLevel?: number) => string;
|
|
895
|
-
getRowExpandSymbol: (rowIndex: number) => "" | "▼" | "►";
|
|
896
|
-
insertRowAbove: (rowIndex: number, rowData?: Partial<TableRow>) => number;
|
|
897
|
-
insertRowBelow: (rowIndex: number, rowData?: Partial<TableRow>) => number;
|
|
898
|
-
isRowGantt: (rowIndex: number) => boolean;
|
|
899
|
-
isRowVisible: (rowIndex: number) => boolean | undefined;
|
|
900
|
-
moveRow: (fromIndex: number, toIndex: number) => boolean;
|
|
901
|
-
registerConnectionHandle: (handleInfo: ConnectionHandle) => void;
|
|
902
|
-
registerGanttBar: (barInfo: GanttBarInfo) => void;
|
|
903
|
-
resizeColumn: (colIndex: number, newWidth: number) => void;
|
|
904
|
-
setCellData: (colIndex: number, rowIndex: number, value: any) => void;
|
|
905
|
-
setCellText: (colIndex: number, rowIndex: number, value: string) => void;
|
|
906
|
-
setFilter: (colIndex: number, filter: FilterState) => void;
|
|
907
|
-
sortByColumn: (colIndex: number) => void;
|
|
908
|
-
toggleRowExpand: (rowIndex: number) => void;
|
|
909
|
-
unregisterConnectionHandle: (handleId: string) => void;
|
|
910
|
-
unregisterGanttBar: (barId: string) => void;
|
|
911
|
-
updateGanttBar: (event: GanttDragEvent) => void;
|
|
912
|
-
updateRows: (newRows: TableRow[]) => void;
|
|
913
|
-
}, "columns" | "config" | "connectionHandles" | "connectionPaths" | "filterState" | "ganttBars" | "modal" | "rows" | "sortState" | "updates">, Pick<{
|
|
914
|
-
columns: Ref< {
|
|
915
|
-
name: string;
|
|
916
|
-
align?: CanvasTextAlign | undefined;
|
|
917
|
-
edit?: boolean | undefined;
|
|
918
|
-
label?: string | undefined;
|
|
919
|
-
fieldtype?: string | undefined;
|
|
920
|
-
width?: string | undefined;
|
|
921
|
-
pinned?: boolean | undefined;
|
|
922
|
-
resizable?: boolean | undefined;
|
|
923
|
-
sortable?: boolean | undefined;
|
|
924
|
-
filterable?: boolean | undefined;
|
|
925
|
-
filterType?: "text" | "select" | "number" | "date" | "dateRange" | "checkbox" | "component" | undefined;
|
|
926
|
-
filterOptions?: any[] | undefined;
|
|
927
|
-
filterComponent?: string | undefined;
|
|
928
|
-
cellComponent?: string | undefined;
|
|
929
|
-
cellComponentProps?: Record<string, any> | undefined;
|
|
930
|
-
modalComponent?: string | ((context: CellContext) => string) | undefined;
|
|
931
|
-
modalComponentExtraProps?: Record<string, any> | undefined;
|
|
932
|
-
format?: string | ((value: any, context: CellContext) => string) | undefined;
|
|
933
|
-
mask?: ((value: any) => any) | undefined;
|
|
934
|
-
isGantt?: boolean | undefined;
|
|
935
|
-
ganttComponent?: string | undefined;
|
|
936
|
-
colspan?: number | undefined;
|
|
937
|
-
originalIndex?: number | undefined;
|
|
938
|
-
}[], TableColumn[] | {
|
|
939
|
-
name: string;
|
|
940
|
-
align?: CanvasTextAlign | undefined;
|
|
941
|
-
edit?: boolean | undefined;
|
|
942
|
-
label?: string | undefined;
|
|
943
|
-
fieldtype?: string | undefined;
|
|
944
|
-
width?: string | undefined;
|
|
945
|
-
pinned?: boolean | undefined;
|
|
946
|
-
resizable?: boolean | undefined;
|
|
947
|
-
sortable?: boolean | undefined;
|
|
948
|
-
filterable?: boolean | undefined;
|
|
949
|
-
filterType?: "text" | "select" | "number" | "date" | "dateRange" | "checkbox" | "component" | undefined;
|
|
950
|
-
filterOptions?: any[] | undefined;
|
|
951
|
-
filterComponent?: string | undefined;
|
|
952
|
-
cellComponent?: string | undefined;
|
|
953
|
-
cellComponentProps?: Record<string, any> | undefined;
|
|
954
|
-
modalComponent?: string | ((context: CellContext) => string) | undefined;
|
|
955
|
-
modalComponentExtraProps?: Record<string, any> | undefined;
|
|
956
|
-
format?: string | ((value: any, context: CellContext) => string) | undefined;
|
|
957
|
-
mask?: ((value: any) => any) | undefined;
|
|
958
|
-
isGantt?: boolean | undefined;
|
|
959
|
-
ganttComponent?: string | undefined;
|
|
960
|
-
colspan?: number | undefined;
|
|
961
|
-
originalIndex?: number | undefined;
|
|
962
|
-
}[]>;
|
|
963
|
-
config: Ref< {
|
|
964
|
-
view?: "uncounted" | "list" | "list-expansion" | undefined;
|
|
965
|
-
fullWidth?: boolean | undefined;
|
|
966
|
-
rowActions?: {
|
|
967
|
-
enabled: boolean;
|
|
968
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
969
|
-
dropdownThreshold?: number | undefined;
|
|
970
|
-
forceDropdown?: boolean | undefined;
|
|
971
|
-
actions?: {
|
|
972
|
-
add?: boolean | {
|
|
973
|
-
enabled?: boolean | undefined;
|
|
974
|
-
label?: string | undefined;
|
|
975
|
-
icon?: string | undefined;
|
|
976
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
977
|
-
} | undefined;
|
|
978
|
-
delete?: boolean | {
|
|
979
|
-
enabled?: boolean | undefined;
|
|
980
|
-
label?: string | undefined;
|
|
981
|
-
icon?: string | undefined;
|
|
982
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
983
|
-
} | undefined;
|
|
984
|
-
duplicate?: boolean | {
|
|
985
|
-
enabled?: boolean | undefined;
|
|
986
|
-
label?: string | undefined;
|
|
987
|
-
icon?: string | undefined;
|
|
988
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
989
|
-
} | undefined;
|
|
990
|
-
insertAbove?: boolean | {
|
|
991
|
-
enabled?: boolean | undefined;
|
|
992
|
-
label?: string | undefined;
|
|
993
|
-
icon?: string | undefined;
|
|
994
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
995
|
-
} | undefined;
|
|
996
|
-
insertBelow?: boolean | {
|
|
997
|
-
enabled?: boolean | undefined;
|
|
998
|
-
label?: string | undefined;
|
|
999
|
-
icon?: string | undefined;
|
|
1000
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1001
|
-
} | undefined;
|
|
1002
|
-
move?: boolean | {
|
|
1003
|
-
enabled?: boolean | undefined;
|
|
1004
|
-
label?: string | undefined;
|
|
1005
|
-
icon?: string | undefined;
|
|
1006
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1007
|
-
} | undefined;
|
|
1008
|
-
} | undefined;
|
|
1009
|
-
} | undefined;
|
|
1010
|
-
} | {
|
|
1011
|
-
view: "tree";
|
|
1012
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
1013
|
-
fullWidth?: boolean | undefined;
|
|
1014
|
-
rowActions?: {
|
|
1015
|
-
enabled: boolean;
|
|
1016
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1017
|
-
dropdownThreshold?: number | undefined;
|
|
1018
|
-
forceDropdown?: boolean | undefined;
|
|
1019
|
-
actions?: {
|
|
1020
|
-
add?: boolean | {
|
|
1021
|
-
enabled?: boolean | undefined;
|
|
1022
|
-
label?: string | undefined;
|
|
1023
|
-
icon?: string | undefined;
|
|
1024
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1025
|
-
} | undefined;
|
|
1026
|
-
delete?: boolean | {
|
|
1027
|
-
enabled?: boolean | undefined;
|
|
1028
|
-
label?: string | undefined;
|
|
1029
|
-
icon?: string | undefined;
|
|
1030
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1031
|
-
} | undefined;
|
|
1032
|
-
duplicate?: boolean | {
|
|
1033
|
-
enabled?: boolean | undefined;
|
|
1034
|
-
label?: string | undefined;
|
|
1035
|
-
icon?: string | undefined;
|
|
1036
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1037
|
-
} | undefined;
|
|
1038
|
-
insertAbove?: boolean | {
|
|
1039
|
-
enabled?: boolean | undefined;
|
|
1040
|
-
label?: string | undefined;
|
|
1041
|
-
icon?: string | undefined;
|
|
1042
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1043
|
-
} | undefined;
|
|
1044
|
-
insertBelow?: boolean | {
|
|
1045
|
-
enabled?: boolean | undefined;
|
|
1046
|
-
label?: string | undefined;
|
|
1047
|
-
icon?: string | undefined;
|
|
1048
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1049
|
-
} | undefined;
|
|
1050
|
-
move?: boolean | {
|
|
1051
|
-
enabled?: boolean | undefined;
|
|
1052
|
-
label?: string | undefined;
|
|
1053
|
-
icon?: string | undefined;
|
|
1054
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1055
|
-
} | undefined;
|
|
1056
|
-
} | undefined;
|
|
1057
|
-
} | undefined;
|
|
1058
|
-
} | {
|
|
1059
|
-
view: "gantt";
|
|
1060
|
-
dependencyGraph?: boolean | undefined;
|
|
1061
|
-
fullWidth?: boolean | undefined;
|
|
1062
|
-
rowActions?: {
|
|
1063
|
-
enabled: boolean;
|
|
1064
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1065
|
-
dropdownThreshold?: number | undefined;
|
|
1066
|
-
forceDropdown?: boolean | undefined;
|
|
1067
|
-
actions?: {
|
|
1068
|
-
add?: boolean | {
|
|
1069
|
-
enabled?: boolean | undefined;
|
|
1070
|
-
label?: string | undefined;
|
|
1071
|
-
icon?: string | undefined;
|
|
1072
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1073
|
-
} | undefined;
|
|
1074
|
-
delete?: boolean | {
|
|
1075
|
-
enabled?: boolean | undefined;
|
|
1076
|
-
label?: string | undefined;
|
|
1077
|
-
icon?: string | undefined;
|
|
1078
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1079
|
-
} | undefined;
|
|
1080
|
-
duplicate?: boolean | {
|
|
1081
|
-
enabled?: boolean | undefined;
|
|
1082
|
-
label?: string | undefined;
|
|
1083
|
-
icon?: string | undefined;
|
|
1084
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1085
|
-
} | undefined;
|
|
1086
|
-
insertAbove?: boolean | {
|
|
1087
|
-
enabled?: boolean | undefined;
|
|
1088
|
-
label?: string | undefined;
|
|
1089
|
-
icon?: string | undefined;
|
|
1090
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1091
|
-
} | undefined;
|
|
1092
|
-
insertBelow?: boolean | {
|
|
1093
|
-
enabled?: boolean | undefined;
|
|
1094
|
-
label?: string | undefined;
|
|
1095
|
-
icon?: string | undefined;
|
|
1096
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1097
|
-
} | undefined;
|
|
1098
|
-
move?: boolean | {
|
|
1099
|
-
enabled?: boolean | undefined;
|
|
1100
|
-
label?: string | undefined;
|
|
1101
|
-
icon?: string | undefined;
|
|
1102
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1103
|
-
} | undefined;
|
|
1104
|
-
} | undefined;
|
|
1105
|
-
} | undefined;
|
|
1106
|
-
} | {
|
|
1107
|
-
view: "tree-gantt";
|
|
1108
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
1109
|
-
dependencyGraph?: boolean | undefined;
|
|
1110
|
-
fullWidth?: boolean | undefined;
|
|
1111
|
-
rowActions?: {
|
|
1112
|
-
enabled: boolean;
|
|
1113
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1114
|
-
dropdownThreshold?: number | undefined;
|
|
1115
|
-
forceDropdown?: boolean | undefined;
|
|
1116
|
-
actions?: {
|
|
1117
|
-
add?: boolean | {
|
|
1118
|
-
enabled?: boolean | undefined;
|
|
1119
|
-
label?: string | undefined;
|
|
1120
|
-
icon?: string | undefined;
|
|
1121
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1122
|
-
} | undefined;
|
|
1123
|
-
delete?: boolean | {
|
|
1124
|
-
enabled?: boolean | undefined;
|
|
1125
|
-
label?: string | undefined;
|
|
1126
|
-
icon?: string | undefined;
|
|
1127
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1128
|
-
} | undefined;
|
|
1129
|
-
duplicate?: boolean | {
|
|
1130
|
-
enabled?: boolean | undefined;
|
|
1131
|
-
label?: string | undefined;
|
|
1132
|
-
icon?: string | undefined;
|
|
1133
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1134
|
-
} | undefined;
|
|
1135
|
-
insertAbove?: boolean | {
|
|
1136
|
-
enabled?: boolean | undefined;
|
|
1137
|
-
label?: string | undefined;
|
|
1138
|
-
icon?: string | undefined;
|
|
1139
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1140
|
-
} | undefined;
|
|
1141
|
-
insertBelow?: boolean | {
|
|
1142
|
-
enabled?: boolean | undefined;
|
|
1143
|
-
label?: string | undefined;
|
|
1144
|
-
icon?: string | undefined;
|
|
1145
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1146
|
-
} | undefined;
|
|
1147
|
-
move?: boolean | {
|
|
1148
|
-
enabled?: boolean | undefined;
|
|
1149
|
-
label?: string | undefined;
|
|
1150
|
-
icon?: string | undefined;
|
|
1151
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1152
|
-
} | undefined;
|
|
1153
|
-
} | undefined;
|
|
1154
|
-
} | undefined;
|
|
1155
|
-
}, TableConfig | {
|
|
1156
|
-
view?: "uncounted" | "list" | "list-expansion" | undefined;
|
|
1157
|
-
fullWidth?: boolean | undefined;
|
|
1158
|
-
rowActions?: {
|
|
1159
|
-
enabled: boolean;
|
|
1160
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1161
|
-
dropdownThreshold?: number | undefined;
|
|
1162
|
-
forceDropdown?: boolean | undefined;
|
|
1163
|
-
actions?: {
|
|
1164
|
-
add?: boolean | {
|
|
1165
|
-
enabled?: boolean | undefined;
|
|
1166
|
-
label?: string | undefined;
|
|
1167
|
-
icon?: string | undefined;
|
|
1168
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1169
|
-
} | undefined;
|
|
1170
|
-
delete?: boolean | {
|
|
1171
|
-
enabled?: boolean | undefined;
|
|
1172
|
-
label?: string | undefined;
|
|
1173
|
-
icon?: string | undefined;
|
|
1174
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1175
|
-
} | undefined;
|
|
1176
|
-
duplicate?: boolean | {
|
|
1177
|
-
enabled?: boolean | undefined;
|
|
1178
|
-
label?: string | undefined;
|
|
1179
|
-
icon?: string | undefined;
|
|
1180
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1181
|
-
} | undefined;
|
|
1182
|
-
insertAbove?: boolean | {
|
|
1183
|
-
enabled?: boolean | undefined;
|
|
1184
|
-
label?: string | undefined;
|
|
1185
|
-
icon?: string | undefined;
|
|
1186
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1187
|
-
} | undefined;
|
|
1188
|
-
insertBelow?: boolean | {
|
|
1189
|
-
enabled?: boolean | undefined;
|
|
1190
|
-
label?: string | undefined;
|
|
1191
|
-
icon?: string | undefined;
|
|
1192
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1193
|
-
} | undefined;
|
|
1194
|
-
move?: boolean | {
|
|
1195
|
-
enabled?: boolean | undefined;
|
|
1196
|
-
label?: string | undefined;
|
|
1197
|
-
icon?: string | undefined;
|
|
1198
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1199
|
-
} | undefined;
|
|
1200
|
-
} | undefined;
|
|
1201
|
-
} | undefined;
|
|
1202
|
-
} | {
|
|
1203
|
-
view: "tree";
|
|
1204
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
1205
|
-
fullWidth?: boolean | undefined;
|
|
1206
|
-
rowActions?: {
|
|
1207
|
-
enabled: boolean;
|
|
1208
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1209
|
-
dropdownThreshold?: number | undefined;
|
|
1210
|
-
forceDropdown?: boolean | undefined;
|
|
1211
|
-
actions?: {
|
|
1212
|
-
add?: boolean | {
|
|
1213
|
-
enabled?: boolean | undefined;
|
|
1214
|
-
label?: string | undefined;
|
|
1215
|
-
icon?: string | undefined;
|
|
1216
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1217
|
-
} | undefined;
|
|
1218
|
-
delete?: boolean | {
|
|
1219
|
-
enabled?: boolean | undefined;
|
|
1220
|
-
label?: string | undefined;
|
|
1221
|
-
icon?: string | undefined;
|
|
1222
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1223
|
-
} | undefined;
|
|
1224
|
-
duplicate?: boolean | {
|
|
1225
|
-
enabled?: boolean | undefined;
|
|
1226
|
-
label?: string | undefined;
|
|
1227
|
-
icon?: string | undefined;
|
|
1228
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1229
|
-
} | undefined;
|
|
1230
|
-
insertAbove?: boolean | {
|
|
1231
|
-
enabled?: boolean | undefined;
|
|
1232
|
-
label?: string | undefined;
|
|
1233
|
-
icon?: string | undefined;
|
|
1234
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1235
|
-
} | undefined;
|
|
1236
|
-
insertBelow?: boolean | {
|
|
1237
|
-
enabled?: boolean | undefined;
|
|
1238
|
-
label?: string | undefined;
|
|
1239
|
-
icon?: string | undefined;
|
|
1240
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1241
|
-
} | undefined;
|
|
1242
|
-
move?: boolean | {
|
|
1243
|
-
enabled?: boolean | undefined;
|
|
1244
|
-
label?: string | undefined;
|
|
1245
|
-
icon?: string | undefined;
|
|
1246
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1247
|
-
} | undefined;
|
|
1248
|
-
} | undefined;
|
|
1249
|
-
} | undefined;
|
|
1250
|
-
} | {
|
|
1251
|
-
view: "gantt";
|
|
1252
|
-
dependencyGraph?: boolean | undefined;
|
|
1253
|
-
fullWidth?: boolean | undefined;
|
|
1254
|
-
rowActions?: {
|
|
1255
|
-
enabled: boolean;
|
|
1256
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1257
|
-
dropdownThreshold?: number | undefined;
|
|
1258
|
-
forceDropdown?: boolean | undefined;
|
|
1259
|
-
actions?: {
|
|
1260
|
-
add?: boolean | {
|
|
1261
|
-
enabled?: boolean | undefined;
|
|
1262
|
-
label?: string | undefined;
|
|
1263
|
-
icon?: string | undefined;
|
|
1264
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1265
|
-
} | undefined;
|
|
1266
|
-
delete?: boolean | {
|
|
1267
|
-
enabled?: boolean | undefined;
|
|
1268
|
-
label?: string | undefined;
|
|
1269
|
-
icon?: string | undefined;
|
|
1270
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1271
|
-
} | undefined;
|
|
1272
|
-
duplicate?: boolean | {
|
|
1273
|
-
enabled?: boolean | undefined;
|
|
1274
|
-
label?: string | undefined;
|
|
1275
|
-
icon?: string | undefined;
|
|
1276
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1277
|
-
} | undefined;
|
|
1278
|
-
insertAbove?: boolean | {
|
|
1279
|
-
enabled?: boolean | undefined;
|
|
1280
|
-
label?: string | undefined;
|
|
1281
|
-
icon?: string | undefined;
|
|
1282
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1283
|
-
} | undefined;
|
|
1284
|
-
insertBelow?: boolean | {
|
|
1285
|
-
enabled?: boolean | undefined;
|
|
1286
|
-
label?: string | undefined;
|
|
1287
|
-
icon?: string | undefined;
|
|
1288
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1289
|
-
} | undefined;
|
|
1290
|
-
move?: boolean | {
|
|
1291
|
-
enabled?: boolean | undefined;
|
|
1292
|
-
label?: string | undefined;
|
|
1293
|
-
icon?: string | undefined;
|
|
1294
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1295
|
-
} | undefined;
|
|
1296
|
-
} | undefined;
|
|
1297
|
-
} | undefined;
|
|
1298
|
-
} | {
|
|
1299
|
-
view: "tree-gantt";
|
|
1300
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
1301
|
-
dependencyGraph?: boolean | undefined;
|
|
1302
|
-
fullWidth?: boolean | undefined;
|
|
1303
|
-
rowActions?: {
|
|
1304
|
-
enabled: boolean;
|
|
1305
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1306
|
-
dropdownThreshold?: number | undefined;
|
|
1307
|
-
forceDropdown?: boolean | undefined;
|
|
1308
|
-
actions?: {
|
|
1309
|
-
add?: boolean | {
|
|
1310
|
-
enabled?: boolean | undefined;
|
|
1311
|
-
label?: string | undefined;
|
|
1312
|
-
icon?: string | undefined;
|
|
1313
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1314
|
-
} | undefined;
|
|
1315
|
-
delete?: boolean | {
|
|
1316
|
-
enabled?: boolean | undefined;
|
|
1317
|
-
label?: string | undefined;
|
|
1318
|
-
icon?: string | undefined;
|
|
1319
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1320
|
-
} | undefined;
|
|
1321
|
-
duplicate?: boolean | {
|
|
1322
|
-
enabled?: boolean | undefined;
|
|
1323
|
-
label?: string | undefined;
|
|
1324
|
-
icon?: string | undefined;
|
|
1325
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1326
|
-
} | undefined;
|
|
1327
|
-
insertAbove?: boolean | {
|
|
1328
|
-
enabled?: boolean | undefined;
|
|
1329
|
-
label?: string | undefined;
|
|
1330
|
-
icon?: string | undefined;
|
|
1331
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1332
|
-
} | undefined;
|
|
1333
|
-
insertBelow?: boolean | {
|
|
1334
|
-
enabled?: boolean | undefined;
|
|
1335
|
-
label?: string | undefined;
|
|
1336
|
-
icon?: string | undefined;
|
|
1337
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1338
|
-
} | undefined;
|
|
1339
|
-
move?: boolean | {
|
|
1340
|
-
enabled?: boolean | undefined;
|
|
1341
|
-
label?: string | undefined;
|
|
1342
|
-
icon?: string | undefined;
|
|
1343
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1344
|
-
} | undefined;
|
|
1345
|
-
} | undefined;
|
|
1346
|
-
} | undefined;
|
|
1347
|
-
}>;
|
|
1348
|
-
connectionHandles: Ref< {
|
|
1349
|
-
id: string;
|
|
1350
|
-
rowIndex: number;
|
|
1351
|
-
colIndex: number;
|
|
1352
|
-
side: "left" | "right";
|
|
1353
|
-
position: {
|
|
1354
|
-
x: number;
|
|
1355
|
-
y: number;
|
|
1356
|
-
};
|
|
1357
|
-
visible: boolean;
|
|
1358
|
-
barId: string;
|
|
1359
|
-
}[], ConnectionHandle[] | {
|
|
1360
|
-
id: string;
|
|
1361
|
-
rowIndex: number;
|
|
1362
|
-
colIndex: number;
|
|
1363
|
-
side: "left" | "right";
|
|
1364
|
-
position: {
|
|
1365
|
-
x: number;
|
|
1366
|
-
y: number;
|
|
1367
|
-
};
|
|
1368
|
-
visible: boolean;
|
|
1369
|
-
barId: string;
|
|
1370
|
-
}[]>;
|
|
1371
|
-
connectionPaths: Ref< {
|
|
1372
|
-
id: string;
|
|
1373
|
-
from: {
|
|
1374
|
-
barId: string;
|
|
1375
|
-
side: "left" | "right";
|
|
1376
|
-
};
|
|
1377
|
-
to: {
|
|
1378
|
-
barId: string;
|
|
1379
|
-
side: "left" | "right";
|
|
1380
|
-
};
|
|
1381
|
-
style?: {
|
|
1382
|
-
color?: string | undefined;
|
|
1383
|
-
width?: number | undefined;
|
|
1384
|
-
} | undefined;
|
|
1385
|
-
label?: string | undefined;
|
|
1386
|
-
}[], ConnectionPath[] | {
|
|
1387
|
-
id: string;
|
|
1388
|
-
from: {
|
|
1389
|
-
barId: string;
|
|
1390
|
-
side: "left" | "right";
|
|
1391
|
-
};
|
|
1392
|
-
to: {
|
|
1393
|
-
barId: string;
|
|
1394
|
-
side: "left" | "right";
|
|
1395
|
-
};
|
|
1396
|
-
style?: {
|
|
1397
|
-
color?: string | undefined;
|
|
1398
|
-
width?: number | undefined;
|
|
1399
|
-
} | undefined;
|
|
1400
|
-
label?: string | undefined;
|
|
1401
|
-
}[]>;
|
|
1402
|
-
display: WritableComputedRef<TableDisplay[], TableDisplay[]>;
|
|
1403
|
-
filterState: Ref<FilterStateRecord, FilterStateRecord>;
|
|
1404
|
-
ganttBars: Ref< {
|
|
1405
|
-
id: string;
|
|
1406
|
-
rowIndex: number;
|
|
1407
|
-
colIndex: number;
|
|
1408
|
-
startIndex: number;
|
|
1409
|
-
endIndex: number;
|
|
1410
|
-
color: string;
|
|
1411
|
-
position: {
|
|
1412
|
-
x: number;
|
|
1413
|
-
y: number;
|
|
1414
|
-
};
|
|
1415
|
-
label?: string | undefined;
|
|
1416
|
-
}[], GanttBarInfo[] | {
|
|
1417
|
-
id: string;
|
|
1418
|
-
rowIndex: number;
|
|
1419
|
-
colIndex: number;
|
|
1420
|
-
startIndex: number;
|
|
1421
|
-
endIndex: number;
|
|
1422
|
-
color: string;
|
|
1423
|
-
position: {
|
|
1424
|
-
x: number;
|
|
1425
|
-
y: number;
|
|
1426
|
-
};
|
|
1427
|
-
label?: string | undefined;
|
|
1428
|
-
}[]>;
|
|
1429
|
-
modal: Ref< {
|
|
1430
|
-
visible?: boolean | undefined;
|
|
1431
|
-
cell?: (HTMLTableCellElement | null) | undefined;
|
|
1432
|
-
parent?: HTMLElement | undefined;
|
|
1433
|
-
colIndex?: number | undefined;
|
|
1434
|
-
rowIndex?: number | undefined;
|
|
1435
|
-
component?: string | undefined;
|
|
1436
|
-
componentProps?: Record<string, any> | undefined;
|
|
1437
|
-
bottom?: number | undefined;
|
|
1438
|
-
height?: number | undefined;
|
|
1439
|
-
left?: number | undefined;
|
|
1440
|
-
width?: number | undefined;
|
|
1441
|
-
}, TableModal | {
|
|
1442
|
-
visible?: boolean | undefined;
|
|
1443
|
-
cell?: (HTMLTableCellElement | null) | undefined;
|
|
1444
|
-
parent?: HTMLElement | undefined;
|
|
1445
|
-
colIndex?: number | undefined;
|
|
1446
|
-
rowIndex?: number | undefined;
|
|
1447
|
-
component?: string | undefined;
|
|
1448
|
-
componentProps?: Record<string, any> | undefined;
|
|
1449
|
-
bottom?: number | undefined;
|
|
1450
|
-
height?: number | undefined;
|
|
1451
|
-
left?: number | undefined;
|
|
1452
|
-
width?: number | undefined;
|
|
1453
|
-
}>;
|
|
1454
|
-
rows: Ref< {
|
|
1455
|
-
[x: string]: any;
|
|
1456
|
-
indent?: number | undefined;
|
|
1457
|
-
parent?: number | undefined;
|
|
1458
|
-
gantt?: {
|
|
1459
|
-
color?: string | undefined;
|
|
1460
|
-
startIndex?: number | undefined;
|
|
1461
|
-
endIndex?: number | undefined;
|
|
1462
|
-
colspan?: number | undefined;
|
|
1463
|
-
} | undefined;
|
|
1464
|
-
}[], TableRow[] | {
|
|
1465
|
-
[x: string]: any;
|
|
1466
|
-
indent?: number | undefined;
|
|
1467
|
-
parent?: number | undefined;
|
|
1468
|
-
gantt?: {
|
|
1469
|
-
color?: string | undefined;
|
|
1470
|
-
startIndex?: number | undefined;
|
|
1471
|
-
endIndex?: number | undefined;
|
|
1472
|
-
colspan?: number | undefined;
|
|
1473
|
-
} | undefined;
|
|
1474
|
-
}[]>;
|
|
1475
|
-
sortState: Ref< {
|
|
1476
|
-
column: number | null;
|
|
1477
|
-
direction: "asc" | "desc" | null;
|
|
1478
|
-
}, {
|
|
1479
|
-
column: number | null;
|
|
1480
|
-
direction: "asc" | "desc" | null;
|
|
1481
|
-
} | {
|
|
1482
|
-
column: number | null;
|
|
1483
|
-
direction: "asc" | "desc" | null;
|
|
1484
|
-
}>;
|
|
1485
|
-
table: ComputedRef< {}>;
|
|
1486
|
-
updates: Ref<Record<string, string>, Record<string, string>>;
|
|
1487
|
-
filteredRows: ComputedRef< {
|
|
1488
|
-
originalIndex: number;
|
|
1489
|
-
indent?: number | undefined;
|
|
1490
|
-
parent?: number | undefined;
|
|
1491
|
-
gantt?: {
|
|
1492
|
-
color?: string | undefined;
|
|
1493
|
-
startIndex?: number | undefined;
|
|
1494
|
-
endIndex?: number | undefined;
|
|
1495
|
-
colspan?: number | undefined;
|
|
1496
|
-
} | undefined;
|
|
1497
|
-
}[]>;
|
|
1498
|
-
hasPinnedColumns: ComputedRef<boolean>;
|
|
1499
|
-
isGanttView: ComputedRef<boolean>;
|
|
1500
|
-
isTreeView: ComputedRef<boolean>;
|
|
1501
|
-
isDependencyGraphEnabled: ComputedRef<boolean>;
|
|
1502
|
-
numberedRowWidth: ComputedRef<string>;
|
|
1503
|
-
zeroColumn: ComputedRef<boolean>;
|
|
1504
|
-
addRow: (rowData?: Partial<TableRow>, position?: "start" | "end" | number) => number;
|
|
1505
|
-
clearFilter: (colIndex: number) => void;
|
|
1506
|
-
closeModal: (event: MouseEvent) => void;
|
|
1507
|
-
createConnection: (fromHandleId: string, toHandleId: string, options?: {
|
|
1508
|
-
style?: ConnectionPath["style"];
|
|
1509
|
-
label?: string;
|
|
1510
|
-
}) => ConnectionPath | null;
|
|
1511
|
-
deleteConnection: (connectionId: string) => boolean;
|
|
1512
|
-
deleteRow: (rowIndex: number) => TableRow | null;
|
|
1513
|
-
duplicateRow: (rowIndex: number) => number;
|
|
1514
|
-
getCellData: <T = any>(colIndex: number, rowIndex: number) => T;
|
|
1515
|
-
getCellDisplayValue: (colIndex: number, rowIndex: number) => any;
|
|
1516
|
-
getConnectionsForBar: (barId: string) => {
|
|
1517
|
-
id: string;
|
|
1518
|
-
from: {
|
|
1519
|
-
barId: string;
|
|
1520
|
-
side: "left" | "right";
|
|
1521
|
-
};
|
|
1522
|
-
to: {
|
|
1523
|
-
barId: string;
|
|
1524
|
-
side: "left" | "right";
|
|
1525
|
-
};
|
|
1526
|
-
style?: {
|
|
1527
|
-
color?: string | undefined;
|
|
1528
|
-
width?: number | undefined;
|
|
1529
|
-
} | undefined;
|
|
1530
|
-
label?: string | undefined;
|
|
1531
|
-
}[];
|
|
1532
|
-
getFormattedValue: (colIndex: number, rowIndex: number, value: any) => any;
|
|
1533
|
-
getHandlesForBar: (barId: string) => {
|
|
1534
|
-
id: string;
|
|
1535
|
-
rowIndex: number;
|
|
1536
|
-
colIndex: number;
|
|
1537
|
-
side: "left" | "right";
|
|
1538
|
-
position: {
|
|
1539
|
-
x: number;
|
|
1540
|
-
y: number;
|
|
1541
|
-
};
|
|
1542
|
-
visible: boolean;
|
|
1543
|
-
barId: string;
|
|
1544
|
-
}[];
|
|
1545
|
-
getHeaderCellStyle: (column: TableColumn) => CSSProperties;
|
|
1546
|
-
getIndent: (colIndex: number, indentLevel?: number) => string;
|
|
1547
|
-
getRowExpandSymbol: (rowIndex: number) => "" | "▼" | "►";
|
|
1548
|
-
insertRowAbove: (rowIndex: number, rowData?: Partial<TableRow>) => number;
|
|
1549
|
-
insertRowBelow: (rowIndex: number, rowData?: Partial<TableRow>) => number;
|
|
1550
|
-
isRowGantt: (rowIndex: number) => boolean;
|
|
1551
|
-
isRowVisible: (rowIndex: number) => boolean | undefined;
|
|
1552
|
-
moveRow: (fromIndex: number, toIndex: number) => boolean;
|
|
1553
|
-
registerConnectionHandle: (handleInfo: ConnectionHandle) => void;
|
|
1554
|
-
registerGanttBar: (barInfo: GanttBarInfo) => void;
|
|
1555
|
-
resizeColumn: (colIndex: number, newWidth: number) => void;
|
|
1556
|
-
setCellData: (colIndex: number, rowIndex: number, value: any) => void;
|
|
1557
|
-
setCellText: (colIndex: number, rowIndex: number, value: string) => void;
|
|
1558
|
-
setFilter: (colIndex: number, filter: FilterState) => void;
|
|
1559
|
-
sortByColumn: (colIndex: number) => void;
|
|
1560
|
-
toggleRowExpand: (rowIndex: number) => void;
|
|
1561
|
-
unregisterConnectionHandle: (handleId: string) => void;
|
|
1562
|
-
unregisterGanttBar: (barId: string) => void;
|
|
1563
|
-
updateGanttBar: (event: GanttDragEvent) => void;
|
|
1564
|
-
updateRows: (newRows: TableRow[]) => void;
|
|
1565
|
-
}, "display" | "table" | "filteredRows" | "hasPinnedColumns" | "isGanttView" | "isTreeView" | "isDependencyGraphEnabled" | "numberedRowWidth" | "zeroColumn">, Pick<{
|
|
1566
|
-
columns: Ref< {
|
|
1567
|
-
name: string;
|
|
1568
|
-
align?: CanvasTextAlign | undefined;
|
|
1569
|
-
edit?: boolean | undefined;
|
|
1570
|
-
label?: string | undefined;
|
|
1571
|
-
fieldtype?: string | undefined;
|
|
1572
|
-
width?: string | undefined;
|
|
1573
|
-
pinned?: boolean | undefined;
|
|
1574
|
-
resizable?: boolean | undefined;
|
|
1575
|
-
sortable?: boolean | undefined;
|
|
1576
|
-
filterable?: boolean | undefined;
|
|
1577
|
-
filterType?: "text" | "select" | "number" | "date" | "dateRange" | "checkbox" | "component" | undefined;
|
|
1578
|
-
filterOptions?: any[] | undefined;
|
|
1579
|
-
filterComponent?: string | undefined;
|
|
1580
|
-
cellComponent?: string | undefined;
|
|
1581
|
-
cellComponentProps?: Record<string, any> | undefined;
|
|
1582
|
-
modalComponent?: string | ((context: CellContext) => string) | undefined;
|
|
1583
|
-
modalComponentExtraProps?: Record<string, any> | undefined;
|
|
1584
|
-
format?: string | ((value: any, context: CellContext) => string) | undefined;
|
|
1585
|
-
mask?: ((value: any) => any) | undefined;
|
|
1586
|
-
isGantt?: boolean | undefined;
|
|
1587
|
-
ganttComponent?: string | undefined;
|
|
1588
|
-
colspan?: number | undefined;
|
|
1589
|
-
originalIndex?: number | undefined;
|
|
1590
|
-
}[], TableColumn[] | {
|
|
1591
|
-
name: string;
|
|
1592
|
-
align?: CanvasTextAlign | undefined;
|
|
1593
|
-
edit?: boolean | undefined;
|
|
1594
|
-
label?: string | undefined;
|
|
1595
|
-
fieldtype?: string | undefined;
|
|
1596
|
-
width?: string | undefined;
|
|
1597
|
-
pinned?: boolean | undefined;
|
|
1598
|
-
resizable?: boolean | undefined;
|
|
1599
|
-
sortable?: boolean | undefined;
|
|
1600
|
-
filterable?: boolean | undefined;
|
|
1601
|
-
filterType?: "text" | "select" | "number" | "date" | "dateRange" | "checkbox" | "component" | undefined;
|
|
1602
|
-
filterOptions?: any[] | undefined;
|
|
1603
|
-
filterComponent?: string | undefined;
|
|
1604
|
-
cellComponent?: string | undefined;
|
|
1605
|
-
cellComponentProps?: Record<string, any> | undefined;
|
|
1606
|
-
modalComponent?: string | ((context: CellContext) => string) | undefined;
|
|
1607
|
-
modalComponentExtraProps?: Record<string, any> | undefined;
|
|
1608
|
-
format?: string | ((value: any, context: CellContext) => string) | undefined;
|
|
1609
|
-
mask?: ((value: any) => any) | undefined;
|
|
1610
|
-
isGantt?: boolean | undefined;
|
|
1611
|
-
ganttComponent?: string | undefined;
|
|
1612
|
-
colspan?: number | undefined;
|
|
1613
|
-
originalIndex?: number | undefined;
|
|
1614
|
-
}[]>;
|
|
1615
|
-
config: Ref< {
|
|
1616
|
-
view?: "uncounted" | "list" | "list-expansion" | undefined;
|
|
1617
|
-
fullWidth?: boolean | undefined;
|
|
1618
|
-
rowActions?: {
|
|
1619
|
-
enabled: boolean;
|
|
1620
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1621
|
-
dropdownThreshold?: number | undefined;
|
|
1622
|
-
forceDropdown?: boolean | undefined;
|
|
1623
|
-
actions?: {
|
|
1624
|
-
add?: boolean | {
|
|
1625
|
-
enabled?: boolean | undefined;
|
|
1626
|
-
label?: string | undefined;
|
|
1627
|
-
icon?: string | undefined;
|
|
1628
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1629
|
-
} | undefined;
|
|
1630
|
-
delete?: boolean | {
|
|
1631
|
-
enabled?: boolean | undefined;
|
|
1632
|
-
label?: string | undefined;
|
|
1633
|
-
icon?: string | undefined;
|
|
1634
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1635
|
-
} | undefined;
|
|
1636
|
-
duplicate?: boolean | {
|
|
1637
|
-
enabled?: boolean | undefined;
|
|
1638
|
-
label?: string | undefined;
|
|
1639
|
-
icon?: string | undefined;
|
|
1640
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1641
|
-
} | undefined;
|
|
1642
|
-
insertAbove?: boolean | {
|
|
1643
|
-
enabled?: boolean | undefined;
|
|
1644
|
-
label?: string | undefined;
|
|
1645
|
-
icon?: string | undefined;
|
|
1646
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1647
|
-
} | undefined;
|
|
1648
|
-
insertBelow?: boolean | {
|
|
1649
|
-
enabled?: boolean | undefined;
|
|
1650
|
-
label?: string | undefined;
|
|
1651
|
-
icon?: string | undefined;
|
|
1652
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1653
|
-
} | undefined;
|
|
1654
|
-
move?: boolean | {
|
|
1655
|
-
enabled?: boolean | undefined;
|
|
1656
|
-
label?: string | undefined;
|
|
1657
|
-
icon?: string | undefined;
|
|
1658
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1659
|
-
} | undefined;
|
|
1660
|
-
} | undefined;
|
|
1661
|
-
} | undefined;
|
|
1662
|
-
} | {
|
|
1663
|
-
view: "tree";
|
|
1664
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
1665
|
-
fullWidth?: boolean | undefined;
|
|
1666
|
-
rowActions?: {
|
|
1667
|
-
enabled: boolean;
|
|
1668
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1669
|
-
dropdownThreshold?: number | undefined;
|
|
1670
|
-
forceDropdown?: boolean | undefined;
|
|
1671
|
-
actions?: {
|
|
1672
|
-
add?: boolean | {
|
|
1673
|
-
enabled?: boolean | undefined;
|
|
1674
|
-
label?: string | undefined;
|
|
1675
|
-
icon?: string | undefined;
|
|
1676
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1677
|
-
} | undefined;
|
|
1678
|
-
delete?: boolean | {
|
|
1679
|
-
enabled?: boolean | undefined;
|
|
1680
|
-
label?: string | undefined;
|
|
1681
|
-
icon?: string | undefined;
|
|
1682
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1683
|
-
} | undefined;
|
|
1684
|
-
duplicate?: boolean | {
|
|
1685
|
-
enabled?: boolean | undefined;
|
|
1686
|
-
label?: string | undefined;
|
|
1687
|
-
icon?: string | undefined;
|
|
1688
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1689
|
-
} | undefined;
|
|
1690
|
-
insertAbove?: boolean | {
|
|
1691
|
-
enabled?: boolean | undefined;
|
|
1692
|
-
label?: string | undefined;
|
|
1693
|
-
icon?: string | undefined;
|
|
1694
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1695
|
-
} | undefined;
|
|
1696
|
-
insertBelow?: boolean | {
|
|
1697
|
-
enabled?: boolean | undefined;
|
|
1698
|
-
label?: string | undefined;
|
|
1699
|
-
icon?: string | undefined;
|
|
1700
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1701
|
-
} | undefined;
|
|
1702
|
-
move?: boolean | {
|
|
1703
|
-
enabled?: boolean | undefined;
|
|
1704
|
-
label?: string | undefined;
|
|
1705
|
-
icon?: string | undefined;
|
|
1706
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1707
|
-
} | undefined;
|
|
1708
|
-
} | undefined;
|
|
1709
|
-
} | undefined;
|
|
1710
|
-
} | {
|
|
1711
|
-
view: "gantt";
|
|
1712
|
-
dependencyGraph?: boolean | undefined;
|
|
1713
|
-
fullWidth?: boolean | undefined;
|
|
1714
|
-
rowActions?: {
|
|
1715
|
-
enabled: boolean;
|
|
1716
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1717
|
-
dropdownThreshold?: number | undefined;
|
|
1718
|
-
forceDropdown?: boolean | undefined;
|
|
1719
|
-
actions?: {
|
|
1720
|
-
add?: boolean | {
|
|
1721
|
-
enabled?: boolean | undefined;
|
|
1722
|
-
label?: string | undefined;
|
|
1723
|
-
icon?: string | undefined;
|
|
1724
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1725
|
-
} | undefined;
|
|
1726
|
-
delete?: boolean | {
|
|
1727
|
-
enabled?: boolean | undefined;
|
|
1728
|
-
label?: string | undefined;
|
|
1729
|
-
icon?: string | undefined;
|
|
1730
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1731
|
-
} | undefined;
|
|
1732
|
-
duplicate?: boolean | {
|
|
1733
|
-
enabled?: boolean | undefined;
|
|
1734
|
-
label?: string | undefined;
|
|
1735
|
-
icon?: string | undefined;
|
|
1736
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1737
|
-
} | undefined;
|
|
1738
|
-
insertAbove?: boolean | {
|
|
1739
|
-
enabled?: boolean | undefined;
|
|
1740
|
-
label?: string | undefined;
|
|
1741
|
-
icon?: string | undefined;
|
|
1742
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1743
|
-
} | undefined;
|
|
1744
|
-
insertBelow?: boolean | {
|
|
1745
|
-
enabled?: boolean | undefined;
|
|
1746
|
-
label?: string | undefined;
|
|
1747
|
-
icon?: string | undefined;
|
|
1748
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1749
|
-
} | undefined;
|
|
1750
|
-
move?: boolean | {
|
|
1751
|
-
enabled?: boolean | undefined;
|
|
1752
|
-
label?: string | undefined;
|
|
1753
|
-
icon?: string | undefined;
|
|
1754
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1755
|
-
} | undefined;
|
|
1756
|
-
} | undefined;
|
|
1757
|
-
} | undefined;
|
|
1758
|
-
} | {
|
|
1759
|
-
view: "tree-gantt";
|
|
1760
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
1761
|
-
dependencyGraph?: boolean | undefined;
|
|
1762
|
-
fullWidth?: boolean | undefined;
|
|
1763
|
-
rowActions?: {
|
|
1764
|
-
enabled: boolean;
|
|
1765
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1766
|
-
dropdownThreshold?: number | undefined;
|
|
1767
|
-
forceDropdown?: boolean | undefined;
|
|
1768
|
-
actions?: {
|
|
1769
|
-
add?: boolean | {
|
|
1770
|
-
enabled?: boolean | undefined;
|
|
1771
|
-
label?: string | undefined;
|
|
1772
|
-
icon?: string | undefined;
|
|
1773
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1774
|
-
} | undefined;
|
|
1775
|
-
delete?: boolean | {
|
|
1776
|
-
enabled?: boolean | undefined;
|
|
1777
|
-
label?: string | undefined;
|
|
1778
|
-
icon?: string | undefined;
|
|
1779
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1780
|
-
} | undefined;
|
|
1781
|
-
duplicate?: boolean | {
|
|
1782
|
-
enabled?: boolean | undefined;
|
|
1783
|
-
label?: string | undefined;
|
|
1784
|
-
icon?: string | undefined;
|
|
1785
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1786
|
-
} | undefined;
|
|
1787
|
-
insertAbove?: boolean | {
|
|
1788
|
-
enabled?: boolean | undefined;
|
|
1789
|
-
label?: string | undefined;
|
|
1790
|
-
icon?: string | undefined;
|
|
1791
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1792
|
-
} | undefined;
|
|
1793
|
-
insertBelow?: boolean | {
|
|
1794
|
-
enabled?: boolean | undefined;
|
|
1795
|
-
label?: string | undefined;
|
|
1796
|
-
icon?: string | undefined;
|
|
1797
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1798
|
-
} | undefined;
|
|
1799
|
-
move?: boolean | {
|
|
1800
|
-
enabled?: boolean | undefined;
|
|
1801
|
-
label?: string | undefined;
|
|
1802
|
-
icon?: string | undefined;
|
|
1803
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1804
|
-
} | undefined;
|
|
1805
|
-
} | undefined;
|
|
1806
|
-
} | undefined;
|
|
1807
|
-
}, TableConfig | {
|
|
1808
|
-
view?: "uncounted" | "list" | "list-expansion" | undefined;
|
|
1809
|
-
fullWidth?: boolean | undefined;
|
|
1810
|
-
rowActions?: {
|
|
1811
|
-
enabled: boolean;
|
|
1812
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1813
|
-
dropdownThreshold?: number | undefined;
|
|
1814
|
-
forceDropdown?: boolean | undefined;
|
|
1815
|
-
actions?: {
|
|
1816
|
-
add?: boolean | {
|
|
1817
|
-
enabled?: boolean | undefined;
|
|
1818
|
-
label?: string | undefined;
|
|
1819
|
-
icon?: string | undefined;
|
|
1820
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1821
|
-
} | undefined;
|
|
1822
|
-
delete?: boolean | {
|
|
1823
|
-
enabled?: boolean | undefined;
|
|
1824
|
-
label?: string | undefined;
|
|
1825
|
-
icon?: string | undefined;
|
|
1826
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1827
|
-
} | undefined;
|
|
1828
|
-
duplicate?: boolean | {
|
|
1829
|
-
enabled?: boolean | undefined;
|
|
1830
|
-
label?: string | undefined;
|
|
1831
|
-
icon?: string | undefined;
|
|
1832
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1833
|
-
} | undefined;
|
|
1834
|
-
insertAbove?: boolean | {
|
|
1835
|
-
enabled?: boolean | undefined;
|
|
1836
|
-
label?: string | undefined;
|
|
1837
|
-
icon?: string | undefined;
|
|
1838
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1839
|
-
} | undefined;
|
|
1840
|
-
insertBelow?: boolean | {
|
|
1841
|
-
enabled?: boolean | undefined;
|
|
1842
|
-
label?: string | undefined;
|
|
1843
|
-
icon?: string | undefined;
|
|
1844
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1845
|
-
} | undefined;
|
|
1846
|
-
move?: boolean | {
|
|
1847
|
-
enabled?: boolean | undefined;
|
|
1848
|
-
label?: string | undefined;
|
|
1849
|
-
icon?: string | undefined;
|
|
1850
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1851
|
-
} | undefined;
|
|
1852
|
-
} | undefined;
|
|
1853
|
-
} | undefined;
|
|
1854
|
-
} | {
|
|
1855
|
-
view: "tree";
|
|
1856
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
1857
|
-
fullWidth?: boolean | undefined;
|
|
1858
|
-
rowActions?: {
|
|
1859
|
-
enabled: boolean;
|
|
1860
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1861
|
-
dropdownThreshold?: number | undefined;
|
|
1862
|
-
forceDropdown?: boolean | undefined;
|
|
1863
|
-
actions?: {
|
|
1864
|
-
add?: boolean | {
|
|
1865
|
-
enabled?: boolean | undefined;
|
|
1866
|
-
label?: string | undefined;
|
|
1867
|
-
icon?: string | undefined;
|
|
1868
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1869
|
-
} | undefined;
|
|
1870
|
-
delete?: boolean | {
|
|
1871
|
-
enabled?: boolean | undefined;
|
|
1872
|
-
label?: string | undefined;
|
|
1873
|
-
icon?: string | undefined;
|
|
1874
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1875
|
-
} | undefined;
|
|
1876
|
-
duplicate?: boolean | {
|
|
1877
|
-
enabled?: boolean | undefined;
|
|
1878
|
-
label?: string | undefined;
|
|
1879
|
-
icon?: string | undefined;
|
|
1880
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1881
|
-
} | undefined;
|
|
1882
|
-
insertAbove?: boolean | {
|
|
1883
|
-
enabled?: boolean | undefined;
|
|
1884
|
-
label?: string | undefined;
|
|
1885
|
-
icon?: string | undefined;
|
|
1886
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1887
|
-
} | undefined;
|
|
1888
|
-
insertBelow?: boolean | {
|
|
1889
|
-
enabled?: boolean | undefined;
|
|
1890
|
-
label?: string | undefined;
|
|
1891
|
-
icon?: string | undefined;
|
|
1892
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1893
|
-
} | undefined;
|
|
1894
|
-
move?: boolean | {
|
|
1895
|
-
enabled?: boolean | undefined;
|
|
1896
|
-
label?: string | undefined;
|
|
1897
|
-
icon?: string | undefined;
|
|
1898
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1899
|
-
} | undefined;
|
|
1900
|
-
} | undefined;
|
|
1901
|
-
} | undefined;
|
|
1902
|
-
} | {
|
|
1903
|
-
view: "gantt";
|
|
1904
|
-
dependencyGraph?: boolean | undefined;
|
|
1905
|
-
fullWidth?: boolean | undefined;
|
|
1906
|
-
rowActions?: {
|
|
1907
|
-
enabled: boolean;
|
|
1908
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1909
|
-
dropdownThreshold?: number | undefined;
|
|
1910
|
-
forceDropdown?: boolean | undefined;
|
|
1911
|
-
actions?: {
|
|
1912
|
-
add?: boolean | {
|
|
1913
|
-
enabled?: boolean | undefined;
|
|
1914
|
-
label?: string | undefined;
|
|
1915
|
-
icon?: string | undefined;
|
|
1916
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1917
|
-
} | undefined;
|
|
1918
|
-
delete?: boolean | {
|
|
1919
|
-
enabled?: boolean | undefined;
|
|
1920
|
-
label?: string | undefined;
|
|
1921
|
-
icon?: string | undefined;
|
|
1922
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1923
|
-
} | undefined;
|
|
1924
|
-
duplicate?: boolean | {
|
|
1925
|
-
enabled?: boolean | undefined;
|
|
1926
|
-
label?: string | undefined;
|
|
1927
|
-
icon?: string | undefined;
|
|
1928
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1929
|
-
} | undefined;
|
|
1930
|
-
insertAbove?: boolean | {
|
|
1931
|
-
enabled?: boolean | undefined;
|
|
1932
|
-
label?: string | undefined;
|
|
1933
|
-
icon?: string | undefined;
|
|
1934
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1935
|
-
} | undefined;
|
|
1936
|
-
insertBelow?: boolean | {
|
|
1937
|
-
enabled?: boolean | undefined;
|
|
1938
|
-
label?: string | undefined;
|
|
1939
|
-
icon?: string | undefined;
|
|
1940
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1941
|
-
} | undefined;
|
|
1942
|
-
move?: boolean | {
|
|
1943
|
-
enabled?: boolean | undefined;
|
|
1944
|
-
label?: string | undefined;
|
|
1945
|
-
icon?: string | undefined;
|
|
1946
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1947
|
-
} | undefined;
|
|
1948
|
-
} | undefined;
|
|
1949
|
-
} | undefined;
|
|
1950
|
-
} | {
|
|
1951
|
-
view: "tree-gantt";
|
|
1952
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
1953
|
-
dependencyGraph?: boolean | undefined;
|
|
1954
|
-
fullWidth?: boolean | undefined;
|
|
1955
|
-
rowActions?: {
|
|
1956
|
-
enabled: boolean;
|
|
1957
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1958
|
-
dropdownThreshold?: number | undefined;
|
|
1959
|
-
forceDropdown?: boolean | undefined;
|
|
1960
|
-
actions?: {
|
|
1961
|
-
add?: boolean | {
|
|
1962
|
-
enabled?: boolean | undefined;
|
|
1963
|
-
label?: string | undefined;
|
|
1964
|
-
icon?: string | undefined;
|
|
1965
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1966
|
-
} | undefined;
|
|
1967
|
-
delete?: boolean | {
|
|
1968
|
-
enabled?: boolean | undefined;
|
|
1969
|
-
label?: string | undefined;
|
|
1970
|
-
icon?: string | undefined;
|
|
1971
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1972
|
-
} | undefined;
|
|
1973
|
-
duplicate?: boolean | {
|
|
1974
|
-
enabled?: boolean | undefined;
|
|
1975
|
-
label?: string | undefined;
|
|
1976
|
-
icon?: string | undefined;
|
|
1977
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1978
|
-
} | undefined;
|
|
1979
|
-
insertAbove?: boolean | {
|
|
1980
|
-
enabled?: boolean | undefined;
|
|
1981
|
-
label?: string | undefined;
|
|
1982
|
-
icon?: string | undefined;
|
|
1983
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1984
|
-
} | undefined;
|
|
1985
|
-
insertBelow?: boolean | {
|
|
1986
|
-
enabled?: boolean | undefined;
|
|
1987
|
-
label?: string | undefined;
|
|
1988
|
-
icon?: string | undefined;
|
|
1989
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1990
|
-
} | undefined;
|
|
1991
|
-
move?: boolean | {
|
|
1992
|
-
enabled?: boolean | undefined;
|
|
1993
|
-
label?: string | undefined;
|
|
1994
|
-
icon?: string | undefined;
|
|
1995
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1996
|
-
} | undefined;
|
|
1997
|
-
} | undefined;
|
|
1998
|
-
} | undefined;
|
|
1999
|
-
}>;
|
|
2000
|
-
connectionHandles: Ref< {
|
|
2001
|
-
id: string;
|
|
2002
|
-
rowIndex: number;
|
|
2003
|
-
colIndex: number;
|
|
2004
|
-
side: "left" | "right";
|
|
2005
|
-
position: {
|
|
2006
|
-
x: number;
|
|
2007
|
-
y: number;
|
|
2008
|
-
};
|
|
2009
|
-
visible: boolean;
|
|
2010
|
-
barId: string;
|
|
2011
|
-
}[], ConnectionHandle[] | {
|
|
2012
|
-
id: string;
|
|
2013
|
-
rowIndex: number;
|
|
2014
|
-
colIndex: number;
|
|
2015
|
-
side: "left" | "right";
|
|
2016
|
-
position: {
|
|
2017
|
-
x: number;
|
|
2018
|
-
y: number;
|
|
2019
|
-
};
|
|
2020
|
-
visible: boolean;
|
|
2021
|
-
barId: string;
|
|
2022
|
-
}[]>;
|
|
2023
|
-
connectionPaths: Ref< {
|
|
2024
|
-
id: string;
|
|
2025
|
-
from: {
|
|
2026
|
-
barId: string;
|
|
2027
|
-
side: "left" | "right";
|
|
2028
|
-
};
|
|
2029
|
-
to: {
|
|
2030
|
-
barId: string;
|
|
2031
|
-
side: "left" | "right";
|
|
2032
|
-
};
|
|
2033
|
-
style?: {
|
|
2034
|
-
color?: string | undefined;
|
|
2035
|
-
width?: number | undefined;
|
|
2036
|
-
} | undefined;
|
|
2037
|
-
label?: string | undefined;
|
|
2038
|
-
}[], ConnectionPath[] | {
|
|
2039
|
-
id: string;
|
|
2040
|
-
from: {
|
|
2041
|
-
barId: string;
|
|
2042
|
-
side: "left" | "right";
|
|
2043
|
-
};
|
|
2044
|
-
to: {
|
|
2045
|
-
barId: string;
|
|
2046
|
-
side: "left" | "right";
|
|
2047
|
-
};
|
|
2048
|
-
style?: {
|
|
2049
|
-
color?: string | undefined;
|
|
2050
|
-
width?: number | undefined;
|
|
2051
|
-
} | undefined;
|
|
2052
|
-
label?: string | undefined;
|
|
2053
|
-
}[]>;
|
|
2054
|
-
display: WritableComputedRef<TableDisplay[], TableDisplay[]>;
|
|
2055
|
-
filterState: Ref<FilterStateRecord, FilterStateRecord>;
|
|
2056
|
-
ganttBars: Ref< {
|
|
2057
|
-
id: string;
|
|
2058
|
-
rowIndex: number;
|
|
2059
|
-
colIndex: number;
|
|
2060
|
-
startIndex: number;
|
|
2061
|
-
endIndex: number;
|
|
2062
|
-
color: string;
|
|
2063
|
-
position: {
|
|
2064
|
-
x: number;
|
|
2065
|
-
y: number;
|
|
2066
|
-
};
|
|
2067
|
-
label?: string | undefined;
|
|
2068
|
-
}[], GanttBarInfo[] | {
|
|
2069
|
-
id: string;
|
|
2070
|
-
rowIndex: number;
|
|
2071
|
-
colIndex: number;
|
|
2072
|
-
startIndex: number;
|
|
2073
|
-
endIndex: number;
|
|
2074
|
-
color: string;
|
|
2075
|
-
position: {
|
|
2076
|
-
x: number;
|
|
2077
|
-
y: number;
|
|
2078
|
-
};
|
|
2079
|
-
label?: string | undefined;
|
|
2080
|
-
}[]>;
|
|
2081
|
-
modal: Ref< {
|
|
2082
|
-
visible?: boolean | undefined;
|
|
2083
|
-
cell?: (HTMLTableCellElement | null) | undefined;
|
|
2084
|
-
parent?: HTMLElement | undefined;
|
|
2085
|
-
colIndex?: number | undefined;
|
|
2086
|
-
rowIndex?: number | undefined;
|
|
2087
|
-
component?: string | undefined;
|
|
2088
|
-
componentProps?: Record<string, any> | undefined;
|
|
2089
|
-
bottom?: number | undefined;
|
|
2090
|
-
height?: number | undefined;
|
|
2091
|
-
left?: number | undefined;
|
|
2092
|
-
width?: number | undefined;
|
|
2093
|
-
}, TableModal | {
|
|
2094
|
-
visible?: boolean | undefined;
|
|
2095
|
-
cell?: (HTMLTableCellElement | null) | undefined;
|
|
2096
|
-
parent?: HTMLElement | undefined;
|
|
2097
|
-
colIndex?: number | undefined;
|
|
2098
|
-
rowIndex?: number | undefined;
|
|
2099
|
-
component?: string | undefined;
|
|
2100
|
-
componentProps?: Record<string, any> | undefined;
|
|
2101
|
-
bottom?: number | undefined;
|
|
2102
|
-
height?: number | undefined;
|
|
2103
|
-
left?: number | undefined;
|
|
2104
|
-
width?: number | undefined;
|
|
2105
|
-
}>;
|
|
2106
|
-
rows: Ref< {
|
|
2107
|
-
[x: string]: any;
|
|
2108
|
-
indent?: number | undefined;
|
|
2109
|
-
parent?: number | undefined;
|
|
2110
|
-
gantt?: {
|
|
2111
|
-
color?: string | undefined;
|
|
2112
|
-
startIndex?: number | undefined;
|
|
2113
|
-
endIndex?: number | undefined;
|
|
2114
|
-
colspan?: number | undefined;
|
|
2115
|
-
} | undefined;
|
|
2116
|
-
}[], TableRow[] | {
|
|
2117
|
-
[x: string]: any;
|
|
2118
|
-
indent?: number | undefined;
|
|
2119
|
-
parent?: number | undefined;
|
|
2120
|
-
gantt?: {
|
|
2121
|
-
color?: string | undefined;
|
|
2122
|
-
startIndex?: number | undefined;
|
|
2123
|
-
endIndex?: number | undefined;
|
|
2124
|
-
colspan?: number | undefined;
|
|
2125
|
-
} | undefined;
|
|
2126
|
-
}[]>;
|
|
2127
|
-
sortState: Ref< {
|
|
2128
|
-
column: number | null;
|
|
2129
|
-
direction: "asc" | "desc" | null;
|
|
2130
|
-
}, {
|
|
2131
|
-
column: number | null;
|
|
2132
|
-
direction: "asc" | "desc" | null;
|
|
2133
|
-
} | {
|
|
2134
|
-
column: number | null;
|
|
2135
|
-
direction: "asc" | "desc" | null;
|
|
2136
|
-
}>;
|
|
2137
|
-
table: ComputedRef< {}>;
|
|
2138
|
-
updates: Ref<Record<string, string>, Record<string, string>>;
|
|
2139
|
-
filteredRows: ComputedRef< {
|
|
2140
|
-
originalIndex: number;
|
|
2141
|
-
indent?: number | undefined;
|
|
2142
|
-
parent?: number | undefined;
|
|
2143
|
-
gantt?: {
|
|
2144
|
-
color?: string | undefined;
|
|
2145
|
-
startIndex?: number | undefined;
|
|
2146
|
-
endIndex?: number | undefined;
|
|
2147
|
-
colspan?: number | undefined;
|
|
2148
|
-
} | undefined;
|
|
2149
|
-
}[]>;
|
|
2150
|
-
hasPinnedColumns: ComputedRef<boolean>;
|
|
2151
|
-
isGanttView: ComputedRef<boolean>;
|
|
2152
|
-
isTreeView: ComputedRef<boolean>;
|
|
2153
|
-
isDependencyGraphEnabled: ComputedRef<boolean>;
|
|
2154
|
-
numberedRowWidth: ComputedRef<string>;
|
|
2155
|
-
zeroColumn: ComputedRef<boolean>;
|
|
2156
|
-
addRow: (rowData?: Partial<TableRow>, position?: "start" | "end" | number) => number;
|
|
2157
|
-
clearFilter: (colIndex: number) => void;
|
|
2158
|
-
closeModal: (event: MouseEvent) => void;
|
|
2159
|
-
createConnection: (fromHandleId: string, toHandleId: string, options?: {
|
|
2160
|
-
style?: ConnectionPath["style"];
|
|
2161
|
-
label?: string;
|
|
2162
|
-
}) => ConnectionPath | null;
|
|
2163
|
-
deleteConnection: (connectionId: string) => boolean;
|
|
2164
|
-
deleteRow: (rowIndex: number) => TableRow | null;
|
|
2165
|
-
duplicateRow: (rowIndex: number) => number;
|
|
2166
|
-
getCellData: <T = any>(colIndex: number, rowIndex: number) => T;
|
|
2167
|
-
getCellDisplayValue: (colIndex: number, rowIndex: number) => any;
|
|
2168
|
-
getConnectionsForBar: (barId: string) => {
|
|
2169
|
-
id: string;
|
|
2170
|
-
from: {
|
|
2171
|
-
barId: string;
|
|
2172
|
-
side: "left" | "right";
|
|
2173
|
-
};
|
|
2174
|
-
to: {
|
|
2175
|
-
barId: string;
|
|
2176
|
-
side: "left" | "right";
|
|
2177
|
-
};
|
|
2178
|
-
style?: {
|
|
2179
|
-
color?: string | undefined;
|
|
2180
|
-
width?: number | undefined;
|
|
2181
|
-
} | undefined;
|
|
2182
|
-
label?: string | undefined;
|
|
2183
|
-
}[];
|
|
2184
|
-
getFormattedValue: (colIndex: number, rowIndex: number, value: any) => any;
|
|
2185
|
-
getHandlesForBar: (barId: string) => {
|
|
2186
|
-
id: string;
|
|
2187
|
-
rowIndex: number;
|
|
2188
|
-
colIndex: number;
|
|
2189
|
-
side: "left" | "right";
|
|
2190
|
-
position: {
|
|
2191
|
-
x: number;
|
|
2192
|
-
y: number;
|
|
2193
|
-
};
|
|
2194
|
-
visible: boolean;
|
|
2195
|
-
barId: string;
|
|
2196
|
-
}[];
|
|
2197
|
-
getHeaderCellStyle: (column: TableColumn) => CSSProperties;
|
|
2198
|
-
getIndent: (colIndex: number, indentLevel?: number) => string;
|
|
2199
|
-
getRowExpandSymbol: (rowIndex: number) => "" | "▼" | "►";
|
|
2200
|
-
insertRowAbove: (rowIndex: number, rowData?: Partial<TableRow>) => number;
|
|
2201
|
-
insertRowBelow: (rowIndex: number, rowData?: Partial<TableRow>) => number;
|
|
2202
|
-
isRowGantt: (rowIndex: number) => boolean;
|
|
2203
|
-
isRowVisible: (rowIndex: number) => boolean | undefined;
|
|
2204
|
-
moveRow: (fromIndex: number, toIndex: number) => boolean;
|
|
2205
|
-
registerConnectionHandle: (handleInfo: ConnectionHandle) => void;
|
|
2206
|
-
registerGanttBar: (barInfo: GanttBarInfo) => void;
|
|
2207
|
-
resizeColumn: (colIndex: number, newWidth: number) => void;
|
|
2208
|
-
setCellData: (colIndex: number, rowIndex: number, value: any) => void;
|
|
2209
|
-
setCellText: (colIndex: number, rowIndex: number, value: string) => void;
|
|
2210
|
-
setFilter: (colIndex: number, filter: FilterState) => void;
|
|
2211
|
-
sortByColumn: (colIndex: number) => void;
|
|
2212
|
-
toggleRowExpand: (rowIndex: number) => void;
|
|
2213
|
-
unregisterConnectionHandle: (handleId: string) => void;
|
|
2214
|
-
unregisterGanttBar: (barId: string) => void;
|
|
2215
|
-
updateGanttBar: (event: GanttDragEvent) => void;
|
|
2216
|
-
updateRows: (newRows: TableRow[]) => void;
|
|
2217
|
-
}, "addRow" | "clearFilter" | "closeModal" | "createConnection" | "deleteConnection" | "deleteRow" | "duplicateRow" | "getCellData" | "getCellDisplayValue" | "getConnectionsForBar" | "getFormattedValue" | "getHandlesForBar" | "getHeaderCellStyle" | "getIndent" | "getRowExpandSymbol" | "insertRowAbove" | "insertRowBelow" | "isRowGantt" | "isRowVisible" | "moveRow" | "registerConnectionHandle" | "registerGanttBar" | "resizeColumn" | "setCellData" | "setCellText" | "setFilter" | "sortByColumn" | "toggleRowExpand" | "unregisterConnectionHandle" | "unregisterGanttBar" | "updateGanttBar" | "updateRows">>;
|
|
2218
|
-
|
|
2219
113
|
/**
|
|
2220
114
|
* Schema structure for defining nested doctype fields inside AForm
|
|
2221
115
|
*
|
|
@@ -2282,25 +176,6 @@ export declare type FieldsetSchema = BaseSchema & {
|
|
|
2282
176
|
collapsible?: boolean;
|
|
2283
177
|
};
|
|
2284
178
|
|
|
2285
|
-
/**
|
|
2286
|
-
* Represents the state of a single filter
|
|
2287
|
-
* @public
|
|
2288
|
-
*/
|
|
2289
|
-
declare interface FilterState {
|
|
2290
|
-
/** The main filter value */
|
|
2291
|
-
value: any;
|
|
2292
|
-
/** Start value for date range filters */
|
|
2293
|
-
startValue?: any;
|
|
2294
|
-
/** End value for date range filters */
|
|
2295
|
-
endValue?: any;
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2298
|
-
/**
|
|
2299
|
-
* Record mapping column indices to their filter states
|
|
2300
|
-
* @public
|
|
2301
|
-
*/
|
|
2302
|
-
declare type FilterStateRecord = Record<number, FilterState>;
|
|
2303
|
-
|
|
2304
179
|
/**
|
|
2305
180
|
* Schema structure for defining forms inside AForm
|
|
2306
181
|
* @public
|
|
@@ -2354,128 +229,6 @@ export declare type FormSchema = BaseSchema & {
|
|
|
2354
229
|
mask?: string;
|
|
2355
230
|
};
|
|
2356
231
|
|
|
2357
|
-
/**
|
|
2358
|
-
* Gantt bar information for VueFlow integration.
|
|
2359
|
-
* @public
|
|
2360
|
-
*/
|
|
2361
|
-
export declare interface GanttBarInfo {
|
|
2362
|
-
/**
|
|
2363
|
-
* Unique identifier for the gantt bar.
|
|
2364
|
-
*/
|
|
2365
|
-
id: string;
|
|
2366
|
-
/**
|
|
2367
|
-
* The row index of the gantt bar.
|
|
2368
|
-
*/
|
|
2369
|
-
rowIndex: number;
|
|
2370
|
-
/**
|
|
2371
|
-
* The primary column index of the gantt bar (typically the start index).
|
|
2372
|
-
*/
|
|
2373
|
-
colIndex: number;
|
|
2374
|
-
/**
|
|
2375
|
-
* Starting column index of the gantt bar.
|
|
2376
|
-
*/
|
|
2377
|
-
startIndex: Ref<number>;
|
|
2378
|
-
/**
|
|
2379
|
-
* Ending column index of the gantt bar.
|
|
2380
|
-
*/
|
|
2381
|
-
endIndex: Ref<number>;
|
|
2382
|
-
/**
|
|
2383
|
-
* Color of the gantt bar.
|
|
2384
|
-
*/
|
|
2385
|
-
color: Ref<string>;
|
|
2386
|
-
/**
|
|
2387
|
-
* The position of the gantt bar in the ATable component.
|
|
2388
|
-
*/
|
|
2389
|
-
position: {
|
|
2390
|
-
x: ShallowRef<number>;
|
|
2391
|
-
y: ShallowRef<number>;
|
|
2392
|
-
};
|
|
2393
|
-
/**
|
|
2394
|
-
* Display label for the gantt bar.
|
|
2395
|
-
*/
|
|
2396
|
-
label?: string;
|
|
2397
|
-
}
|
|
2398
|
-
|
|
2399
|
-
/**
|
|
2400
|
-
* Gantt table drag event definition.
|
|
2401
|
-
* @public
|
|
2402
|
-
*/
|
|
2403
|
-
export declare type GanttDragEvent = {
|
|
2404
|
-
rowIndex: number;
|
|
2405
|
-
colIndex: number;
|
|
2406
|
-
delta: number;
|
|
2407
|
-
} & ({
|
|
2408
|
-
type: 'bar';
|
|
2409
|
-
oldStart: number;
|
|
2410
|
-
oldEnd: number;
|
|
2411
|
-
newStart: number;
|
|
2412
|
-
newEnd: number;
|
|
2413
|
-
colspan: number;
|
|
2414
|
-
} | {
|
|
2415
|
-
type: 'resize';
|
|
2416
|
-
edge: 'start';
|
|
2417
|
-
oldStart: number;
|
|
2418
|
-
newStart: number;
|
|
2419
|
-
end: number;
|
|
2420
|
-
oldColspan: number;
|
|
2421
|
-
newColspan: number;
|
|
2422
|
-
} | {
|
|
2423
|
-
type: 'resize';
|
|
2424
|
-
edge: 'end';
|
|
2425
|
-
oldEnd: number;
|
|
2426
|
-
newEnd: number;
|
|
2427
|
-
start: number;
|
|
2428
|
-
oldColspan: number;
|
|
2429
|
-
newColspan: number;
|
|
2430
|
-
});
|
|
2431
|
-
|
|
2432
|
-
/**
|
|
2433
|
-
* Gantt chart options for table rows.
|
|
2434
|
-
* @public
|
|
2435
|
-
*/
|
|
2436
|
-
export declare interface GanttOptions {
|
|
2437
|
-
/**
|
|
2438
|
-
* The color to be applied to the row's gantt bar.
|
|
2439
|
-
*
|
|
2440
|
-
* @defaultValue '#cccccc'
|
|
2441
|
-
*/
|
|
2442
|
-
color?: string;
|
|
2443
|
-
/**
|
|
2444
|
-
* The starting column index for the gantt bar.
|
|
2445
|
-
*
|
|
2446
|
-
* @defaultValue 0
|
|
2447
|
-
*/
|
|
2448
|
-
startIndex?: number;
|
|
2449
|
-
/**
|
|
2450
|
-
* The ending column index for the gantt bar. If endIndex and colspan are not provided,
|
|
2451
|
-
* the bar will stretch to the end of the table.
|
|
2452
|
-
*/
|
|
2453
|
-
endIndex?: number;
|
|
2454
|
-
/**
|
|
2455
|
-
* The length of the gantt bar in columns. Useful when only the start index is provided.
|
|
2456
|
-
* If colspan and endIndex are not provided, the bar will stretch to the end of the table.
|
|
2457
|
-
*/
|
|
2458
|
-
colspan?: number;
|
|
2459
|
-
}
|
|
2460
|
-
|
|
2461
|
-
/**
|
|
2462
|
-
* Table configuration for gantt view types.
|
|
2463
|
-
* @public
|
|
2464
|
-
*/
|
|
2465
|
-
export declare interface GanttTableConfig extends BaseTableConfig {
|
|
2466
|
-
/**
|
|
2467
|
-
* The type of view to display the table in.
|
|
2468
|
-
*/
|
|
2469
|
-
view: 'gantt';
|
|
2470
|
-
/**
|
|
2471
|
-
* Control whether dependency graph connections should be enabled for Gantt views.
|
|
2472
|
-
* When false, connection handles and dependency lines will be hidden.
|
|
2473
|
-
*
|
|
2474
|
-
* @defaultValue true
|
|
2475
|
-
*/
|
|
2476
|
-
dependencyGraph?: boolean;
|
|
2477
|
-
}
|
|
2478
|
-
|
|
2479
232
|
/**
|
|
2480
233
|
* Install all AForm components
|
|
2481
234
|
* @param app - Vue app instance
|
|
@@ -2485,372 +238,12 @@ export declare function install(app: App): void;
|
|
|
2485
238
|
|
|
2486
239
|
export { Login }
|
|
2487
240
|
|
|
2488
|
-
/**
|
|
2489
|
-
* Options for configuring individual row actions.
|
|
2490
|
-
* @public
|
|
2491
|
-
*/
|
|
2492
|
-
export declare interface RowActionOptions {
|
|
2493
|
-
/**
|
|
2494
|
-
* Whether the action is enabled.
|
|
2495
|
-
*
|
|
2496
|
-
* @defaultValue true
|
|
2497
|
-
*/
|
|
2498
|
-
enabled?: boolean;
|
|
2499
|
-
/**
|
|
2500
|
-
* Custom label for the action (used in dropdown mode).
|
|
2501
|
-
*/
|
|
2502
|
-
label?: string;
|
|
2503
|
-
/**
|
|
2504
|
-
* Custom icon override (raw SVG string).
|
|
2505
|
-
*/
|
|
2506
|
-
icon?: string;
|
|
2507
|
-
/**
|
|
2508
|
-
* Custom handler for the action. Return false to prevent the default behavior.
|
|
2509
|
-
*
|
|
2510
|
-
* @param rowIndex - The index of the row the action is being performed on
|
|
2511
|
-
* @param store - The table store instance
|
|
2512
|
-
* @returns void or false to prevent default behavior
|
|
2513
|
-
*/
|
|
2514
|
-
handler?: (rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean;
|
|
2515
|
-
}
|
|
2516
|
-
|
|
2517
|
-
/**
|
|
2518
|
-
* Configuration for row-level actions (add, delete, duplicate, etc.).
|
|
2519
|
-
* @public
|
|
2520
|
-
*/
|
|
2521
|
-
export declare interface RowActionsConfig {
|
|
2522
|
-
/**
|
|
2523
|
-
* Whether row actions are enabled.
|
|
2524
|
-
*
|
|
2525
|
-
* @defaultValue false
|
|
2526
|
-
*/
|
|
2527
|
-
enabled: boolean;
|
|
2528
|
-
/**
|
|
2529
|
-
* Position of the row actions column relative to the index column.
|
|
2530
|
-
*
|
|
2531
|
-
* @defaultValue 'before-index'
|
|
2532
|
-
*/
|
|
2533
|
-
position?: 'before-index' | 'after-index' | 'end';
|
|
2534
|
-
/**
|
|
2535
|
-
* Pixel width threshold at which to switch from icons to dropdown mode.
|
|
2536
|
-
* Set to 0 to always use icons, or a large number to always use dropdown.
|
|
2537
|
-
*
|
|
2538
|
-
* @defaultValue 150
|
|
2539
|
-
*/
|
|
2540
|
-
dropdownThreshold?: number;
|
|
2541
|
-
/**
|
|
2542
|
-
* Force dropdown mode regardless of available width.
|
|
2543
|
-
*
|
|
2544
|
-
* @defaultValue false
|
|
2545
|
-
*/
|
|
2546
|
-
forceDropdown?: boolean;
|
|
2547
|
-
/**
|
|
2548
|
-
* Configuration for individual actions. Set to true to enable with defaults,
|
|
2549
|
-
* false to disable, or provide RowActionOptions for custom configuration.
|
|
2550
|
-
*/
|
|
2551
|
-
actions?: {
|
|
2552
|
-
add?: boolean | RowActionOptions;
|
|
2553
|
-
delete?: boolean | RowActionOptions;
|
|
2554
|
-
duplicate?: boolean | RowActionOptions;
|
|
2555
|
-
insertAbove?: boolean | RowActionOptions;
|
|
2556
|
-
insertBelow?: boolean | RowActionOptions;
|
|
2557
|
-
move?: boolean | RowActionOptions;
|
|
2558
|
-
};
|
|
2559
|
-
}
|
|
2560
|
-
|
|
2561
|
-
/**
|
|
2562
|
-
* Row action type identifiers.
|
|
2563
|
-
* @public
|
|
2564
|
-
*/
|
|
2565
|
-
export declare type RowActionType = 'add' | 'delete' | 'duplicate' | 'insertAbove' | 'insertBelow' | 'move';
|
|
2566
|
-
|
|
2567
|
-
/**
|
|
2568
|
-
* Event payload for row:add event.
|
|
2569
|
-
* @public
|
|
2570
|
-
*/
|
|
2571
|
-
export declare interface RowAddEvent {
|
|
2572
|
-
rowIndex: number;
|
|
2573
|
-
row: TableRow;
|
|
2574
|
-
}
|
|
2575
|
-
|
|
2576
|
-
/**
|
|
2577
|
-
* Event payload for row:delete event.
|
|
2578
|
-
* @public
|
|
2579
|
-
*/
|
|
2580
|
-
export declare interface RowDeleteEvent {
|
|
2581
|
-
rowIndex: number;
|
|
2582
|
-
row: TableRow;
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
|
-
/**
|
|
2586
|
-
* Event payload for row:duplicate event.
|
|
2587
|
-
* @public
|
|
2588
|
-
*/
|
|
2589
|
-
export declare interface RowDuplicateEvent {
|
|
2590
|
-
sourceIndex: number;
|
|
2591
|
-
newIndex: number;
|
|
2592
|
-
row: TableRow;
|
|
2593
|
-
}
|
|
2594
|
-
|
|
2595
|
-
/**
|
|
2596
|
-
* Event payload for row:insert-above and row:insert-below events.
|
|
2597
|
-
* @public
|
|
2598
|
-
*/
|
|
2599
|
-
export declare interface RowInsertEvent {
|
|
2600
|
-
targetIndex: number;
|
|
2601
|
-
newIndex: number;
|
|
2602
|
-
row: TableRow;
|
|
2603
|
-
}
|
|
2604
|
-
|
|
2605
|
-
/**
|
|
2606
|
-
* Event payload for row:move event.
|
|
2607
|
-
* @public
|
|
2608
|
-
*/
|
|
2609
|
-
export declare interface RowMoveEvent {
|
|
2610
|
-
fromIndex: number;
|
|
2611
|
-
toIndex: number;
|
|
2612
|
-
}
|
|
2613
|
-
|
|
2614
241
|
/**
|
|
2615
242
|
* Superset of all schema types for AForm
|
|
2616
243
|
* @public
|
|
2617
244
|
*/
|
|
2618
245
|
export declare type SchemaTypes = FormSchema | TableSchema | FieldsetSchema | DoctypeSchema | TableDoctypeSchema;
|
|
2619
246
|
|
|
2620
|
-
/**
|
|
2621
|
-
* Table column definition.
|
|
2622
|
-
* @public
|
|
2623
|
-
*/
|
|
2624
|
-
export declare interface TableColumn {
|
|
2625
|
-
/**
|
|
2626
|
-
* The key of the column. This is used to identify the column in the table.
|
|
2627
|
-
*/
|
|
2628
|
-
name: string;
|
|
2629
|
-
/**
|
|
2630
|
-
* The alignment of the column. Possible values:
|
|
2631
|
-
* - `left` - left aligned
|
|
2632
|
-
* - `center` - center aligned
|
|
2633
|
-
* - `right` - right aligned
|
|
2634
|
-
* - `start` - aligned to the start of the column
|
|
2635
|
-
* - `end` - aligned to the end of the column
|
|
2636
|
-
*
|
|
2637
|
-
* @defaultValue 'center'
|
|
2638
|
-
*/
|
|
2639
|
-
align?: CanvasTextAlign;
|
|
2640
|
-
/**
|
|
2641
|
-
* Control whether cells for the column is editable.
|
|
2642
|
-
*
|
|
2643
|
-
* @defaultValue false
|
|
2644
|
-
*/
|
|
2645
|
-
edit?: boolean;
|
|
2646
|
-
/**
|
|
2647
|
-
* The label of the column. This is displayed in the table header.
|
|
2648
|
-
*
|
|
2649
|
-
* @defaultValue If no label is provided, a character will be assigned alphabetically,
|
|
2650
|
-
* starting from 'A' for the first column, 'B' for the second column, and so on.
|
|
2651
|
-
*/
|
|
2652
|
-
label?: string;
|
|
2653
|
-
/**
|
|
2654
|
-
* The semantic field type of the column. Uses the same StonecropFieldType enum as forms.
|
|
2655
|
-
* Common values: 'Data', 'Text', 'Int', 'Float', 'Date', 'Select', 'Link', 'Check', etc.
|
|
2656
|
-
*
|
|
2657
|
-
* @public
|
|
2658
|
-
*/
|
|
2659
|
-
fieldtype?: string;
|
|
2660
|
-
/**
|
|
2661
|
-
* The width of the column. This can be a number (in pixels) or a string (in CSS units).
|
|
2662
|
-
*
|
|
2663
|
-
* @defaultValue '40ch'
|
|
2664
|
-
*/
|
|
2665
|
-
width?: string;
|
|
2666
|
-
/**
|
|
2667
|
-
* Control whether the column should be pinned to the table.
|
|
2668
|
-
*
|
|
2669
|
-
* @defaultValue false
|
|
2670
|
-
*/
|
|
2671
|
-
pinned?: boolean;
|
|
2672
|
-
/**
|
|
2673
|
-
* Control whether the column can be resized by the user.
|
|
2674
|
-
*
|
|
2675
|
-
* @defaultValue false
|
|
2676
|
-
*/
|
|
2677
|
-
resizable?: boolean;
|
|
2678
|
-
/**
|
|
2679
|
-
* Control whether the column should be sortable.
|
|
2680
|
-
*
|
|
2681
|
-
* @defaultValue true
|
|
2682
|
-
*/
|
|
2683
|
-
sortable?: boolean;
|
|
2684
|
-
/**
|
|
2685
|
-
* Control whether the column should be filterable and define filter configuration.
|
|
2686
|
-
*
|
|
2687
|
-
* @defaultValue true
|
|
2688
|
-
*/
|
|
2689
|
-
filterable?: boolean;
|
|
2690
|
-
/**
|
|
2691
|
-
* The type of filter for the column.
|
|
2692
|
-
*
|
|
2693
|
-
* @defaultValue 'text'
|
|
2694
|
-
*/
|
|
2695
|
-
filterType?: 'text' | 'select' | 'number' | 'date' | 'dateRange' | 'checkbox' | 'component';
|
|
2696
|
-
/**
|
|
2697
|
-
* Options for select-type filters.
|
|
2698
|
-
*/
|
|
2699
|
-
filterOptions?: any[];
|
|
2700
|
-
/**
|
|
2701
|
-
* Custom component for filtering.
|
|
2702
|
-
*/
|
|
2703
|
-
filterComponent?: string;
|
|
2704
|
-
/**
|
|
2705
|
-
* The component to use to render the cell for the column. If not provided, the table will
|
|
2706
|
-
* render the default `<td>` element.
|
|
2707
|
-
*/
|
|
2708
|
-
cellComponent?: string;
|
|
2709
|
-
/**
|
|
2710
|
-
* Additional properties to pass to the table's cell component.
|
|
2711
|
-
*
|
|
2712
|
-
* Only applicable if the `cellComponent` property is set for the column.
|
|
2713
|
-
*/
|
|
2714
|
-
cellComponentProps?: Record<string, any>;
|
|
2715
|
-
/**
|
|
2716
|
-
* The component to use for the modal. If a function is provided, it will be called with the cell context.
|
|
2717
|
-
* The following properties are available on the cell context:
|
|
2718
|
-
* - `row` - the row object
|
|
2719
|
-
* - `column` - the column object
|
|
2720
|
-
* - `table` - the table object
|
|
2721
|
-
*
|
|
2722
|
-
* The function should return the name of the component to use for the modal.
|
|
2723
|
-
*
|
|
2724
|
-
* Additionally, the following properties will be automatically passed to the modal component:
|
|
2725
|
-
* - `colIndex` - the column index of the current cell
|
|
2726
|
-
* - `rowIndex` - the row index of the current cell
|
|
2727
|
-
* - `store` - the table data store
|
|
2728
|
-
*/
|
|
2729
|
-
modalComponent?: string | ((context: CellContext) => string);
|
|
2730
|
-
/**
|
|
2731
|
-
* Additional properties to pass to the modal component.
|
|
2732
|
-
*
|
|
2733
|
-
* Only applicable if the `modalComponent` property is set for the column.
|
|
2734
|
-
*/
|
|
2735
|
-
modalComponentExtraProps?: Record<string, any>;
|
|
2736
|
-
/**
|
|
2737
|
-
* The format function to use to format the value of the cell. This can either be a normal or stringified
|
|
2738
|
-
* function that takes the value and the cell context and returns a string.
|
|
2739
|
-
*/
|
|
2740
|
-
format?: string | ((value: any, context: CellContext) => string);
|
|
2741
|
-
/**
|
|
2742
|
-
* The masking function to use to apply an input mask to the cell. This will accept an input value and
|
|
2743
|
-
* return the masked value.
|
|
2744
|
-
*/
|
|
2745
|
-
mask?: (value: any) => any;
|
|
2746
|
-
/**
|
|
2747
|
-
* Whether the column is a Gantt column.
|
|
2748
|
-
*
|
|
2749
|
-
* Only applicable for Gantt tables.
|
|
2750
|
-
*
|
|
2751
|
-
* @defaultValue false
|
|
2752
|
-
*/
|
|
2753
|
-
isGantt?: boolean;
|
|
2754
|
-
/**
|
|
2755
|
-
* The component to use to render the Gantt bar for the column.
|
|
2756
|
-
*
|
|
2757
|
-
* Only applicable for Gantt tables.
|
|
2758
|
-
*
|
|
2759
|
-
* @defaultValue 'AGanttCell'
|
|
2760
|
-
*/
|
|
2761
|
-
ganttComponent?: string;
|
|
2762
|
-
/**
|
|
2763
|
-
* The colspan of the Gantt bar for the column. This determines how many columns
|
|
2764
|
-
* the Gantt bar should span across.
|
|
2765
|
-
*
|
|
2766
|
-
* Only applicable for Gantt tables.
|
|
2767
|
-
*
|
|
2768
|
-
* @defaultValue The number of columns in the table, excluding any pinned columns.
|
|
2769
|
-
*/
|
|
2770
|
-
colspan?: number;
|
|
2771
|
-
/**
|
|
2772
|
-
* The original column index for the Gantt bar, excluding any pinned columns.
|
|
2773
|
-
* This is evaluated automatically while rendering the table.
|
|
2774
|
-
*
|
|
2775
|
-
* Only applicable for Gantt tables.
|
|
2776
|
-
*
|
|
2777
|
-
* @defaultValue 0
|
|
2778
|
-
*/
|
|
2779
|
-
originalIndex?: number;
|
|
2780
|
-
}
|
|
2781
|
-
|
|
2782
|
-
/**
|
|
2783
|
-
* Table configuration definition using discriminated unions for type safety.
|
|
2784
|
-
* @public
|
|
2785
|
-
*/
|
|
2786
|
-
export declare type TableConfig = BasicTableConfig | TreeTableConfig | GanttTableConfig | TreeGanttTableConfig;
|
|
2787
|
-
|
|
2788
|
-
/**
|
|
2789
|
-
* Table display definition.
|
|
2790
|
-
* @public
|
|
2791
|
-
*/
|
|
2792
|
-
export declare interface TableDisplay {
|
|
2793
|
-
/**
|
|
2794
|
-
* Indicates whether a row node is expanded or collapsed.
|
|
2795
|
-
*
|
|
2796
|
-
* Only applicable for list-expansion views.
|
|
2797
|
-
*
|
|
2798
|
-
* @defaultValue false
|
|
2799
|
-
*/
|
|
2800
|
-
expanded?: boolean;
|
|
2801
|
-
/**
|
|
2802
|
-
* Indicates whether a row node's child nodes are open or closed.
|
|
2803
|
-
*
|
|
2804
|
-
* Only applicable for tree views.
|
|
2805
|
-
*
|
|
2806
|
-
* @defaultValue false
|
|
2807
|
-
*/
|
|
2808
|
-
childrenOpen?: boolean;
|
|
2809
|
-
/**
|
|
2810
|
-
* Indicates whether a row node is a parent node. This is evaluated automatically
|
|
2811
|
-
* while rendering the table.
|
|
2812
|
-
*
|
|
2813
|
-
* Only applicable for tree views.
|
|
2814
|
-
*/
|
|
2815
|
-
isParent?: boolean;
|
|
2816
|
-
/**
|
|
2817
|
-
* Indicates whether a row node is a root node. This is evaluated automatically
|
|
2818
|
-
* while rendering the table.
|
|
2819
|
-
*
|
|
2820
|
-
* Only applicable for tree views.
|
|
2821
|
-
*/
|
|
2822
|
-
isRoot?: boolean;
|
|
2823
|
-
/**
|
|
2824
|
-
* Indicates whether a row node is visible. This is evaluated automatically
|
|
2825
|
-
* while rendering the table.
|
|
2826
|
-
*
|
|
2827
|
-
* Only applicable for tree views.
|
|
2828
|
-
*/
|
|
2829
|
-
open?: boolean;
|
|
2830
|
-
/**
|
|
2831
|
-
* The indentation level of the row node.
|
|
2832
|
-
*
|
|
2833
|
-
* Only applicable for tree and gantt views.
|
|
2834
|
-
*
|
|
2835
|
-
* @defaultValue 0
|
|
2836
|
-
*/
|
|
2837
|
-
indent?: number;
|
|
2838
|
-
/**
|
|
2839
|
-
* The HTML parent element for the row node. This is evaluated automatically while rendering
|
|
2840
|
-
* the table.
|
|
2841
|
-
*
|
|
2842
|
-
* Only applicable for tree and gantt views.
|
|
2843
|
-
*/
|
|
2844
|
-
parent?: number;
|
|
2845
|
-
/**
|
|
2846
|
-
* Indicates whether a row node has been modified. This is evaluated automatically when a cell
|
|
2847
|
-
* is edited.
|
|
2848
|
-
*
|
|
2849
|
-
* @defaultValue false
|
|
2850
|
-
*/
|
|
2851
|
-
rowModified?: boolean;
|
|
2852
|
-
}
|
|
2853
|
-
|
|
2854
247
|
/**
|
|
2855
248
|
* Schema structure for defining 1:many child table fields inside AForm
|
|
2856
249
|
*
|
|
@@ -2904,124 +297,6 @@ export declare type TableDoctypeSchema = BaseSchema & {
|
|
|
2904
297
|
readOnly?: boolean;
|
|
2905
298
|
};
|
|
2906
299
|
|
|
2907
|
-
/**
|
|
2908
|
-
* Table modal definition.
|
|
2909
|
-
* @public
|
|
2910
|
-
*/
|
|
2911
|
-
export declare interface TableModal {
|
|
2912
|
-
/**
|
|
2913
|
-
* Indicates whether the table modal is currently visible.
|
|
2914
|
-
*
|
|
2915
|
-
* @defaultValue false
|
|
2916
|
-
*/
|
|
2917
|
-
visible?: boolean;
|
|
2918
|
-
/**
|
|
2919
|
-
* The HTML cell element that the modal is currently being displayed for. The field is unset
|
|
2920
|
-
* when the modal is not being displayed.
|
|
2921
|
-
*/
|
|
2922
|
-
cell?: HTMLTableCellElement | null;
|
|
2923
|
-
/**
|
|
2924
|
-
* The HTML parent element that the modal is currently being displayed for. The field is unset
|
|
2925
|
-
* when the modal is not being displayed.
|
|
2926
|
-
*/
|
|
2927
|
-
parent?: HTMLElement;
|
|
2928
|
-
/**
|
|
2929
|
-
* The index of the column that the modal is currently being displayed for. The field is
|
|
2930
|
-
* unset when the modal is not being displayed.
|
|
2931
|
-
*/
|
|
2932
|
-
colIndex?: number;
|
|
2933
|
-
/**
|
|
2934
|
-
* The index of the row that the modal is currently being displayed for. The field is
|
|
2935
|
-
* unset when the modal is not being displayed.
|
|
2936
|
-
*/
|
|
2937
|
-
rowIndex?: number;
|
|
2938
|
-
/**
|
|
2939
|
-
* The component to use to render the modal. If not provided, the table will
|
|
2940
|
-
* try to use the column's `modalComponent` property, if set. If that is not set,
|
|
2941
|
-
* the table will not display a modal.
|
|
2942
|
-
*
|
|
2943
|
-
* @see {@link TableColumn.modalComponent}
|
|
2944
|
-
*/
|
|
2945
|
-
component?: string;
|
|
2946
|
-
/**
|
|
2947
|
-
* Additional properties to pass to the table's modal component.
|
|
2948
|
-
*/
|
|
2949
|
-
componentProps?: Record<string, any>;
|
|
2950
|
-
/**
|
|
2951
|
-
* Reactive bottom value for the modal's bounding box. The field is unset when the modal
|
|
2952
|
-
* is not being displayed.
|
|
2953
|
-
*/
|
|
2954
|
-
bottom?: ReturnType<typeof useElementBounding>['bottom'];
|
|
2955
|
-
/**
|
|
2956
|
-
* Reactive height value for the modal's bounding box. The field is unset when the modal
|
|
2957
|
-
* is not being displayed.
|
|
2958
|
-
*/
|
|
2959
|
-
height?: ReturnType<typeof useElementBounding>['height'];
|
|
2960
|
-
/**
|
|
2961
|
-
* Reactive left value for the modal's bounding box. The field is unset when the modal
|
|
2962
|
-
* is not being displayed.
|
|
2963
|
-
*/
|
|
2964
|
-
left?: ReturnType<typeof useElementBounding>['left'];
|
|
2965
|
-
/**
|
|
2966
|
-
* Reactive width value for the modal's bounding box. The field is unset when the modal
|
|
2967
|
-
* is not being displayed.
|
|
2968
|
-
*/
|
|
2969
|
-
width?: ReturnType<typeof useElementBounding>['width'];
|
|
2970
|
-
}
|
|
2971
|
-
|
|
2972
|
-
/**
|
|
2973
|
-
* Table modal component props definition.
|
|
2974
|
-
* @public
|
|
2975
|
-
*/
|
|
2976
|
-
export declare interface TableModalProps {
|
|
2977
|
-
/**
|
|
2978
|
-
* Additional arbitrary properties that can be passed to the modal component.
|
|
2979
|
-
*/
|
|
2980
|
-
[key: string]: any;
|
|
2981
|
-
/**
|
|
2982
|
-
* The index of the column that the modal is currently being displayed for.
|
|
2983
|
-
*/
|
|
2984
|
-
colIndex: number;
|
|
2985
|
-
/**
|
|
2986
|
-
* The index of the row that the modal is currently being displayed for.
|
|
2987
|
-
*/
|
|
2988
|
-
rowIndex: number;
|
|
2989
|
-
/**
|
|
2990
|
-
* The store for managing the current table's state.
|
|
2991
|
-
*/
|
|
2992
|
-
store: ReturnType<typeof createTableStore>;
|
|
2993
|
-
}
|
|
2994
|
-
|
|
2995
|
-
/**
|
|
2996
|
-
* Table row definition.
|
|
2997
|
-
* @public
|
|
2998
|
-
*/
|
|
2999
|
-
export declare interface TableRow {
|
|
3000
|
-
/**
|
|
3001
|
-
* Additional arbitrary properties that can be passed to the row object.
|
|
3002
|
-
*/
|
|
3003
|
-
[key: string]: any;
|
|
3004
|
-
/**
|
|
3005
|
-
* The indentation level of the row node.
|
|
3006
|
-
*
|
|
3007
|
-
* Only applicable for tree and gantt views.
|
|
3008
|
-
*
|
|
3009
|
-
* @defaultValue 0
|
|
3010
|
-
*/
|
|
3011
|
-
indent?: number;
|
|
3012
|
-
/**
|
|
3013
|
-
* The HTML parent element for the row node. This is evaluated automatically while rendering
|
|
3014
|
-
* the table.
|
|
3015
|
-
*
|
|
3016
|
-
* Only applicable for tree and gantt views.
|
|
3017
|
-
*/
|
|
3018
|
-
parent?: number;
|
|
3019
|
-
/**
|
|
3020
|
-
* The options to use when rendering the row as a Gantt table.
|
|
3021
|
-
*/
|
|
3022
|
-
gantt?: GanttOptions;
|
|
3023
|
-
}
|
|
3024
|
-
|
|
3025
300
|
/**
|
|
3026
301
|
* Schema structure for defining tables inside AForm
|
|
3027
302
|
* @public
|
|
@@ -3044,51 +319,7 @@ export declare type TableSchema = BaseSchema & {
|
|
|
3044
319
|
rows?: TableRow[];
|
|
3045
320
|
};
|
|
3046
321
|
|
|
3047
|
-
/**
|
|
3048
|
-
* Table configuration for tree-gantt view types.
|
|
3049
|
-
* @public
|
|
3050
|
-
*/
|
|
3051
|
-
export declare interface TreeGanttTableConfig extends BaseTableConfig {
|
|
3052
|
-
/**
|
|
3053
|
-
* The type of view to display the table in.
|
|
3054
|
-
*/
|
|
3055
|
-
view: 'tree-gantt';
|
|
3056
|
-
/**
|
|
3057
|
-
* Default expansion state for tree views. Possible values:
|
|
3058
|
-
* - `root` - Only top-level nodes are visible (fully collapsed)
|
|
3059
|
-
* - `branch` - Shows minimal tree to display all gantt nodes. Expands only the necessary paths to gantt nodes, stops at gantt nodes with no gantt descendants
|
|
3060
|
-
* - `leaf` - All nodes are visible (fully expanded)
|
|
3061
|
-
*
|
|
3062
|
-
* @defaultValue undefined (default behavior is 'leaf' mode)
|
|
3063
|
-
*/
|
|
3064
|
-
defaultTreeExpansion?: 'root' | 'branch' | 'leaf';
|
|
3065
|
-
/**
|
|
3066
|
-
* Control whether dependency graph connections should be enabled for Gantt views.
|
|
3067
|
-
* When false, connection handles and dependency lines will be hidden.
|
|
3068
|
-
*
|
|
3069
|
-
* @defaultValue true
|
|
3070
|
-
*/
|
|
3071
|
-
dependencyGraph?: boolean;
|
|
3072
|
-
}
|
|
3073
322
|
|
|
3074
|
-
|
|
3075
|
-
* Table configuration for tree view types.
|
|
3076
|
-
* @public
|
|
3077
|
-
*/
|
|
3078
|
-
export declare interface TreeTableConfig extends BaseTableConfig {
|
|
3079
|
-
/**
|
|
3080
|
-
* The type of view to display the table in.
|
|
3081
|
-
*/
|
|
3082
|
-
view: 'tree';
|
|
3083
|
-
/**
|
|
3084
|
-
* Default expansion state for tree views. Possible values:
|
|
3085
|
-
* - `root` - Only top-level nodes are visible (fully collapsed)
|
|
3086
|
-
* - `branch` - Shows minimal tree to display all gantt nodes. Expands only the necessary paths to gantt nodes, stops at gantt nodes with no gantt descendants
|
|
3087
|
-
* - `leaf` - All nodes are visible (fully expanded)
|
|
3088
|
-
*
|
|
3089
|
-
* @defaultValue undefined (default behavior is 'leaf' mode)
|
|
3090
|
-
*/
|
|
3091
|
-
defaultTreeExpansion?: 'root' | 'branch' | 'leaf';
|
|
3092
|
-
}
|
|
323
|
+
export * from "@stonecrop/atable/types";
|
|
3093
324
|
|
|
3094
325
|
export { }
|