@stonecrop/stonecrop 0.8.13 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stonecrop.d.ts +20 -3063
- package/dist/stonecrop.js +865 -1179
- package/dist/stonecrop.js.map +1 -1
- package/package.json +17 -18
- package/dist/stonecrop.umd.cjs +0 -6
- package/dist/stonecrop.umd.cjs.map +0 -1
- /package/dist/{src/tsdoc-metadata.json → tsdoc-metadata.json} +0 -0
package/dist/stonecrop.d.ts
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import type { AnyStateNodeConfig } from 'xstate';
|
|
2
2
|
import { Component } from 'vue';
|
|
3
3
|
import { ComputedRef } from 'vue';
|
|
4
|
-
import { CSSProperties } from 'vue';
|
|
5
4
|
import { List } from 'immutable';
|
|
6
5
|
import { Map as Map_2 } from 'immutable';
|
|
7
6
|
import { Plugin as Plugin_2 } from 'vue';
|
|
8
7
|
import { Ref } from 'vue';
|
|
9
8
|
import { Router } from 'vue-router';
|
|
10
|
-
import
|
|
9
|
+
import { SchemaTypes } from '@stonecrop/aform';
|
|
11
10
|
import { Store } from 'pinia';
|
|
12
11
|
import { StoreDefinition } from 'pinia';
|
|
13
12
|
import type { UnknownMachineConfig } from 'xstate';
|
|
14
|
-
import { useElementBounding } from '@vueuse/core';
|
|
15
|
-
import { WritableComputedRef } from 'vue';
|
|
16
13
|
|
|
17
14
|
/**
|
|
18
15
|
* Result of executing a field action
|
|
@@ -46,33 +43,6 @@ export declare interface ActionRegistry {
|
|
|
46
43
|
list(): string[];
|
|
47
44
|
}
|
|
48
45
|
|
|
49
|
-
/**
|
|
50
|
-
* Basic field structure for AForm schemas
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
export declare type BaseSchema = {
|
|
54
|
-
/**
|
|
55
|
-
* The fieldname for the schema field
|
|
56
|
-
* @public
|
|
57
|
-
*/
|
|
58
|
-
fieldname: string;
|
|
59
|
-
/**
|
|
60
|
-
* The component to render
|
|
61
|
-
*
|
|
62
|
-
* @remarks
|
|
63
|
-
* This must be a string that represents the component to render. The registration of the component
|
|
64
|
-
* should be done in the main application.
|
|
65
|
-
*
|
|
66
|
-
* @public
|
|
67
|
-
*/
|
|
68
|
-
component?: string;
|
|
69
|
-
/**
|
|
70
|
-
* A placeholder value for the field
|
|
71
|
-
* @beta
|
|
72
|
-
*/
|
|
73
|
-
value?: any;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
46
|
/**
|
|
77
47
|
* Base Stonecrop composable return type - includes operation log functionality
|
|
78
48
|
* @public
|
|
@@ -82,34 +52,6 @@ export declare type BaseStonecropReturn = {
|
|
|
82
52
|
operationLog: OperationLogAPI;
|
|
83
53
|
};
|
|
84
54
|
|
|
85
|
-
/**
|
|
86
|
-
* Base table configuration properties shared across all view types.
|
|
87
|
-
* @public
|
|
88
|
-
*/
|
|
89
|
-
export declare interface BaseTableConfig {
|
|
90
|
-
/**
|
|
91
|
-
* Control whether the table should be allowed to use the full width of its container.
|
|
92
|
-
*
|
|
93
|
-
* @defaultValue false
|
|
94
|
-
*/
|
|
95
|
-
fullWidth?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Configuration for row-level actions (add, delete, duplicate, etc.).
|
|
98
|
-
*/
|
|
99
|
-
rowActions?: RowActionsConfig;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Table configuration for basic view types (uncounted, list, list-expansion).
|
|
104
|
-
* @public
|
|
105
|
-
*/
|
|
106
|
-
export declare interface BasicTableConfig extends BaseTableConfig {
|
|
107
|
-
/**
|
|
108
|
-
* The type of view to display the table in.
|
|
109
|
-
*/
|
|
110
|
-
view?: 'uncounted' | 'list' | 'list-expansion';
|
|
111
|
-
}
|
|
112
|
-
|
|
113
55
|
/**
|
|
114
56
|
* Batch operation wrapper
|
|
115
57
|
* @public
|
|
@@ -127,159 +69,6 @@ export declare interface BatchOperation {
|
|
|
127
69
|
reversible: boolean;
|
|
128
70
|
}
|
|
129
71
|
|
|
130
|
-
/**
|
|
131
|
-
* Table cell context definition.
|
|
132
|
-
* @public
|
|
133
|
-
*/
|
|
134
|
-
export declare interface CellContext {
|
|
135
|
-
/**
|
|
136
|
-
* The row object for the current cell.
|
|
137
|
-
*/
|
|
138
|
-
row: TableRow;
|
|
139
|
-
/**
|
|
140
|
-
* The column object for the current cell.
|
|
141
|
-
*/
|
|
142
|
-
column: TableColumn;
|
|
143
|
-
/**
|
|
144
|
-
* The table object for the current cell.
|
|
145
|
-
*/
|
|
146
|
-
table: {
|
|
147
|
-
[key: string]: any;
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Defined props for AForm components
|
|
153
|
-
* @public
|
|
154
|
-
*/
|
|
155
|
-
export declare type ComponentProps = {
|
|
156
|
-
/**
|
|
157
|
-
* The schema object to pass to the component
|
|
158
|
-
* @public
|
|
159
|
-
*/
|
|
160
|
-
schema?: SchemaTypes;
|
|
161
|
-
/**
|
|
162
|
-
* The label to display in the component
|
|
163
|
-
* @public
|
|
164
|
-
*/
|
|
165
|
-
label?: string;
|
|
166
|
-
/**
|
|
167
|
-
* The masking string to apply to inputs inside the component
|
|
168
|
-
* @public
|
|
169
|
-
*/
|
|
170
|
-
mask?: string;
|
|
171
|
-
/**
|
|
172
|
-
* Indicate whether input is required for text and/or select elements inside the component
|
|
173
|
-
* @public
|
|
174
|
-
*/
|
|
175
|
-
required?: boolean;
|
|
176
|
-
/**
|
|
177
|
-
* Indicate whether elements inside the component are read-only
|
|
178
|
-
* @public
|
|
179
|
-
*/
|
|
180
|
-
readOnly?: boolean;
|
|
181
|
-
/**
|
|
182
|
-
* Set a unique identifier for elements inside the component
|
|
183
|
-
* @public
|
|
184
|
-
*/
|
|
185
|
-
uuid?: string;
|
|
186
|
-
/**
|
|
187
|
-
* Validation options for elements inside the component
|
|
188
|
-
* @public
|
|
189
|
-
*/
|
|
190
|
-
validation?: {
|
|
191
|
-
/**
|
|
192
|
-
* The error message to display when validation fails
|
|
193
|
-
* @public
|
|
194
|
-
*/
|
|
195
|
-
errorMessage: string;
|
|
196
|
-
[key: string]: any;
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Connection event for handling connection creation/deletion.
|
|
202
|
-
* @public
|
|
203
|
-
*/
|
|
204
|
-
export declare type ConnectionEvent = {
|
|
205
|
-
type: 'create' | 'delete';
|
|
206
|
-
connection: ConnectionPath;
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Connection handle information for gantt bar connections.
|
|
211
|
-
* @public
|
|
212
|
-
*/
|
|
213
|
-
export declare interface ConnectionHandle {
|
|
214
|
-
/**
|
|
215
|
-
* Unique identifier for the connection handle.
|
|
216
|
-
*/
|
|
217
|
-
id: string;
|
|
218
|
-
/**
|
|
219
|
-
* The row index of the gantt bar this handle belongs to.
|
|
220
|
-
*/
|
|
221
|
-
rowIndex: number;
|
|
222
|
-
/**
|
|
223
|
-
* The column index of the gantt bar this handle belongs to.
|
|
224
|
-
*/
|
|
225
|
-
colIndex: number;
|
|
226
|
-
/**
|
|
227
|
-
* The side of the gantt bar where this handle is located.
|
|
228
|
-
*/
|
|
229
|
-
side: 'left' | 'right';
|
|
230
|
-
/**
|
|
231
|
-
* The position of the connection handle.
|
|
232
|
-
*/
|
|
233
|
-
position: {
|
|
234
|
-
x: ShallowRef<number>;
|
|
235
|
-
y: ShallowRef<number>;
|
|
236
|
-
};
|
|
237
|
-
/**
|
|
238
|
-
* Whether the handle is currently visible (on hover).
|
|
239
|
-
*/
|
|
240
|
-
visible: Ref<boolean>;
|
|
241
|
-
/**
|
|
242
|
-
* Reference to the gantt bar this handle belongs to.
|
|
243
|
-
*/
|
|
244
|
-
barId: string;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Connection path between two gantt bars.
|
|
249
|
-
* @public
|
|
250
|
-
*/
|
|
251
|
-
export declare interface ConnectionPath {
|
|
252
|
-
/**
|
|
253
|
-
* Unique identifier for the connection path.
|
|
254
|
-
*/
|
|
255
|
-
id: string;
|
|
256
|
-
/**
|
|
257
|
-
* The source connection handle.
|
|
258
|
-
*/
|
|
259
|
-
from: {
|
|
260
|
-
barId: string;
|
|
261
|
-
side: 'left' | 'right';
|
|
262
|
-
};
|
|
263
|
-
/**
|
|
264
|
-
* The target connection handle.
|
|
265
|
-
*/
|
|
266
|
-
to: {
|
|
267
|
-
barId: string;
|
|
268
|
-
side: 'left' | 'right';
|
|
269
|
-
};
|
|
270
|
-
/**
|
|
271
|
-
* Optional styling for the connection path.
|
|
272
|
-
*/
|
|
273
|
-
style?: {
|
|
274
|
-
color?: string;
|
|
275
|
-
width?: number;
|
|
276
|
-
};
|
|
277
|
-
/**
|
|
278
|
-
* Optional label for the connection.
|
|
279
|
-
*/
|
|
280
|
-
label?: string;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
72
|
/**
|
|
284
73
|
* Factory function for HST creation
|
|
285
74
|
* Creates a new HSTNode proxy for hierarchical state tree navigation.
|
|
@@ -293,1976 +82,6 @@ export declare interface ConnectionPath {
|
|
|
293
82
|
*/
|
|
294
83
|
export declare function createHST(target: any, doctype: string, parentDoctype?: string): HSTNode;
|
|
295
84
|
|
|
296
|
-
/**
|
|
297
|
-
* Create a table store
|
|
298
|
-
* @param initData - Initial data for the table store
|
|
299
|
-
* @returns table store instance
|
|
300
|
-
* @public
|
|
301
|
-
*/
|
|
302
|
-
declare const createTableStore: (initData: {
|
|
303
|
-
columns: TableColumn[];
|
|
304
|
-
rows: TableRow[];
|
|
305
|
-
id?: string;
|
|
306
|
-
config?: TableConfig;
|
|
307
|
-
modal?: TableModal;
|
|
308
|
-
}) => Store<`table-${string}`, Pick<{
|
|
309
|
-
columns: Ref< {
|
|
310
|
-
name: string;
|
|
311
|
-
align?: CanvasTextAlign | undefined;
|
|
312
|
-
edit?: boolean | undefined;
|
|
313
|
-
label?: string | undefined;
|
|
314
|
-
fieldtype?: string | undefined;
|
|
315
|
-
width?: string | undefined;
|
|
316
|
-
pinned?: boolean | undefined;
|
|
317
|
-
resizable?: boolean | undefined;
|
|
318
|
-
sortable?: boolean | undefined;
|
|
319
|
-
filterable?: boolean | undefined;
|
|
320
|
-
filterType?: "text" | "select" | "number" | "date" | "dateRange" | "checkbox" | "component" | undefined;
|
|
321
|
-
filterOptions?: any[] | undefined;
|
|
322
|
-
filterComponent?: string | undefined;
|
|
323
|
-
cellComponent?: string | undefined;
|
|
324
|
-
cellComponentProps?: Record<string, any> | undefined;
|
|
325
|
-
modalComponent?: string | ((context: CellContext) => string) | undefined;
|
|
326
|
-
modalComponentExtraProps?: Record<string, any> | undefined;
|
|
327
|
-
format?: string | ((value: any, context: CellContext) => string) | undefined;
|
|
328
|
-
mask?: ((value: any) => any) | undefined;
|
|
329
|
-
isGantt?: boolean | undefined;
|
|
330
|
-
ganttComponent?: string | undefined;
|
|
331
|
-
colspan?: number | undefined;
|
|
332
|
-
originalIndex?: number | undefined;
|
|
333
|
-
}[], TableColumn[] | {
|
|
334
|
-
name: string;
|
|
335
|
-
align?: CanvasTextAlign | undefined;
|
|
336
|
-
edit?: boolean | undefined;
|
|
337
|
-
label?: string | undefined;
|
|
338
|
-
fieldtype?: string | undefined;
|
|
339
|
-
width?: string | undefined;
|
|
340
|
-
pinned?: boolean | undefined;
|
|
341
|
-
resizable?: boolean | undefined;
|
|
342
|
-
sortable?: boolean | undefined;
|
|
343
|
-
filterable?: boolean | undefined;
|
|
344
|
-
filterType?: "text" | "select" | "number" | "date" | "dateRange" | "checkbox" | "component" | undefined;
|
|
345
|
-
filterOptions?: any[] | undefined;
|
|
346
|
-
filterComponent?: string | undefined;
|
|
347
|
-
cellComponent?: string | undefined;
|
|
348
|
-
cellComponentProps?: Record<string, any> | undefined;
|
|
349
|
-
modalComponent?: string | ((context: CellContext) => string) | undefined;
|
|
350
|
-
modalComponentExtraProps?: Record<string, any> | undefined;
|
|
351
|
-
format?: string | ((value: any, context: CellContext) => string) | undefined;
|
|
352
|
-
mask?: ((value: any) => any) | undefined;
|
|
353
|
-
isGantt?: boolean | undefined;
|
|
354
|
-
ganttComponent?: string | undefined;
|
|
355
|
-
colspan?: number | undefined;
|
|
356
|
-
originalIndex?: number | undefined;
|
|
357
|
-
}[]>;
|
|
358
|
-
config: Ref< {
|
|
359
|
-
view?: "uncounted" | "list" | "list-expansion" | undefined;
|
|
360
|
-
fullWidth?: boolean | undefined;
|
|
361
|
-
rowActions?: {
|
|
362
|
-
enabled: boolean;
|
|
363
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
364
|
-
dropdownThreshold?: number | undefined;
|
|
365
|
-
forceDropdown?: boolean | undefined;
|
|
366
|
-
actions?: {
|
|
367
|
-
add?: boolean | {
|
|
368
|
-
enabled?: boolean | undefined;
|
|
369
|
-
label?: string | undefined;
|
|
370
|
-
icon?: string | undefined;
|
|
371
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
372
|
-
} | undefined;
|
|
373
|
-
delete?: boolean | {
|
|
374
|
-
enabled?: boolean | undefined;
|
|
375
|
-
label?: string | undefined;
|
|
376
|
-
icon?: string | undefined;
|
|
377
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
378
|
-
} | undefined;
|
|
379
|
-
duplicate?: boolean | {
|
|
380
|
-
enabled?: boolean | undefined;
|
|
381
|
-
label?: string | undefined;
|
|
382
|
-
icon?: string | undefined;
|
|
383
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
384
|
-
} | undefined;
|
|
385
|
-
insertAbove?: boolean | {
|
|
386
|
-
enabled?: boolean | undefined;
|
|
387
|
-
label?: string | undefined;
|
|
388
|
-
icon?: string | undefined;
|
|
389
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
390
|
-
} | undefined;
|
|
391
|
-
insertBelow?: boolean | {
|
|
392
|
-
enabled?: boolean | undefined;
|
|
393
|
-
label?: string | undefined;
|
|
394
|
-
icon?: string | undefined;
|
|
395
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
396
|
-
} | undefined;
|
|
397
|
-
move?: boolean | {
|
|
398
|
-
enabled?: boolean | undefined;
|
|
399
|
-
label?: string | undefined;
|
|
400
|
-
icon?: string | undefined;
|
|
401
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
402
|
-
} | undefined;
|
|
403
|
-
} | undefined;
|
|
404
|
-
} | undefined;
|
|
405
|
-
} | {
|
|
406
|
-
view: "tree";
|
|
407
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
408
|
-
fullWidth?: boolean | undefined;
|
|
409
|
-
rowActions?: {
|
|
410
|
-
enabled: boolean;
|
|
411
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
412
|
-
dropdownThreshold?: number | undefined;
|
|
413
|
-
forceDropdown?: boolean | undefined;
|
|
414
|
-
actions?: {
|
|
415
|
-
add?: boolean | {
|
|
416
|
-
enabled?: boolean | undefined;
|
|
417
|
-
label?: string | undefined;
|
|
418
|
-
icon?: string | undefined;
|
|
419
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
420
|
-
} | undefined;
|
|
421
|
-
delete?: boolean | {
|
|
422
|
-
enabled?: boolean | undefined;
|
|
423
|
-
label?: string | undefined;
|
|
424
|
-
icon?: string | undefined;
|
|
425
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
426
|
-
} | undefined;
|
|
427
|
-
duplicate?: boolean | {
|
|
428
|
-
enabled?: boolean | undefined;
|
|
429
|
-
label?: string | undefined;
|
|
430
|
-
icon?: string | undefined;
|
|
431
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
432
|
-
} | undefined;
|
|
433
|
-
insertAbove?: boolean | {
|
|
434
|
-
enabled?: boolean | undefined;
|
|
435
|
-
label?: string | undefined;
|
|
436
|
-
icon?: string | undefined;
|
|
437
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
438
|
-
} | undefined;
|
|
439
|
-
insertBelow?: boolean | {
|
|
440
|
-
enabled?: boolean | undefined;
|
|
441
|
-
label?: string | undefined;
|
|
442
|
-
icon?: string | undefined;
|
|
443
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
444
|
-
} | undefined;
|
|
445
|
-
move?: boolean | {
|
|
446
|
-
enabled?: boolean | undefined;
|
|
447
|
-
label?: string | undefined;
|
|
448
|
-
icon?: string | undefined;
|
|
449
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
450
|
-
} | undefined;
|
|
451
|
-
} | undefined;
|
|
452
|
-
} | undefined;
|
|
453
|
-
} | {
|
|
454
|
-
view: "gantt";
|
|
455
|
-
dependencyGraph?: boolean | undefined;
|
|
456
|
-
fullWidth?: boolean | undefined;
|
|
457
|
-
rowActions?: {
|
|
458
|
-
enabled: boolean;
|
|
459
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
460
|
-
dropdownThreshold?: number | undefined;
|
|
461
|
-
forceDropdown?: boolean | undefined;
|
|
462
|
-
actions?: {
|
|
463
|
-
add?: boolean | {
|
|
464
|
-
enabled?: boolean | undefined;
|
|
465
|
-
label?: string | undefined;
|
|
466
|
-
icon?: string | undefined;
|
|
467
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
468
|
-
} | undefined;
|
|
469
|
-
delete?: boolean | {
|
|
470
|
-
enabled?: boolean | undefined;
|
|
471
|
-
label?: string | undefined;
|
|
472
|
-
icon?: string | undefined;
|
|
473
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
474
|
-
} | undefined;
|
|
475
|
-
duplicate?: boolean | {
|
|
476
|
-
enabled?: boolean | undefined;
|
|
477
|
-
label?: string | undefined;
|
|
478
|
-
icon?: string | undefined;
|
|
479
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
480
|
-
} | undefined;
|
|
481
|
-
insertAbove?: boolean | {
|
|
482
|
-
enabled?: boolean | undefined;
|
|
483
|
-
label?: string | undefined;
|
|
484
|
-
icon?: string | undefined;
|
|
485
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
486
|
-
} | undefined;
|
|
487
|
-
insertBelow?: boolean | {
|
|
488
|
-
enabled?: boolean | undefined;
|
|
489
|
-
label?: string | undefined;
|
|
490
|
-
icon?: string | undefined;
|
|
491
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
492
|
-
} | undefined;
|
|
493
|
-
move?: boolean | {
|
|
494
|
-
enabled?: boolean | undefined;
|
|
495
|
-
label?: string | undefined;
|
|
496
|
-
icon?: string | undefined;
|
|
497
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
498
|
-
} | undefined;
|
|
499
|
-
} | undefined;
|
|
500
|
-
} | undefined;
|
|
501
|
-
} | {
|
|
502
|
-
view: "tree-gantt";
|
|
503
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
504
|
-
dependencyGraph?: boolean | 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
|
-
}, TableConfig | {
|
|
551
|
-
view?: "uncounted" | "list" | "list-expansion" | undefined;
|
|
552
|
-
fullWidth?: boolean | undefined;
|
|
553
|
-
rowActions?: {
|
|
554
|
-
enabled: boolean;
|
|
555
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
556
|
-
dropdownThreshold?: number | undefined;
|
|
557
|
-
forceDropdown?: boolean | undefined;
|
|
558
|
-
actions?: {
|
|
559
|
-
add?: boolean | {
|
|
560
|
-
enabled?: boolean | undefined;
|
|
561
|
-
label?: string | undefined;
|
|
562
|
-
icon?: string | undefined;
|
|
563
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
564
|
-
} | undefined;
|
|
565
|
-
delete?: boolean | {
|
|
566
|
-
enabled?: boolean | undefined;
|
|
567
|
-
label?: string | undefined;
|
|
568
|
-
icon?: string | undefined;
|
|
569
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
570
|
-
} | undefined;
|
|
571
|
-
duplicate?: boolean | {
|
|
572
|
-
enabled?: boolean | undefined;
|
|
573
|
-
label?: string | undefined;
|
|
574
|
-
icon?: string | undefined;
|
|
575
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
576
|
-
} | undefined;
|
|
577
|
-
insertAbove?: boolean | {
|
|
578
|
-
enabled?: boolean | undefined;
|
|
579
|
-
label?: string | undefined;
|
|
580
|
-
icon?: string | undefined;
|
|
581
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
582
|
-
} | undefined;
|
|
583
|
-
insertBelow?: boolean | {
|
|
584
|
-
enabled?: boolean | undefined;
|
|
585
|
-
label?: string | undefined;
|
|
586
|
-
icon?: string | undefined;
|
|
587
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
588
|
-
} | undefined;
|
|
589
|
-
move?: boolean | {
|
|
590
|
-
enabled?: boolean | undefined;
|
|
591
|
-
label?: string | undefined;
|
|
592
|
-
icon?: string | undefined;
|
|
593
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
594
|
-
} | undefined;
|
|
595
|
-
} | undefined;
|
|
596
|
-
} | undefined;
|
|
597
|
-
} | {
|
|
598
|
-
view: "tree";
|
|
599
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
600
|
-
fullWidth?: boolean | undefined;
|
|
601
|
-
rowActions?: {
|
|
602
|
-
enabled: boolean;
|
|
603
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
604
|
-
dropdownThreshold?: number | undefined;
|
|
605
|
-
forceDropdown?: boolean | undefined;
|
|
606
|
-
actions?: {
|
|
607
|
-
add?: boolean | {
|
|
608
|
-
enabled?: boolean | undefined;
|
|
609
|
-
label?: string | undefined;
|
|
610
|
-
icon?: string | undefined;
|
|
611
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
612
|
-
} | undefined;
|
|
613
|
-
delete?: boolean | {
|
|
614
|
-
enabled?: boolean | undefined;
|
|
615
|
-
label?: string | undefined;
|
|
616
|
-
icon?: string | undefined;
|
|
617
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
618
|
-
} | undefined;
|
|
619
|
-
duplicate?: boolean | {
|
|
620
|
-
enabled?: boolean | undefined;
|
|
621
|
-
label?: string | undefined;
|
|
622
|
-
icon?: string | undefined;
|
|
623
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
624
|
-
} | undefined;
|
|
625
|
-
insertAbove?: boolean | {
|
|
626
|
-
enabled?: boolean | undefined;
|
|
627
|
-
label?: string | undefined;
|
|
628
|
-
icon?: string | undefined;
|
|
629
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
630
|
-
} | undefined;
|
|
631
|
-
insertBelow?: boolean | {
|
|
632
|
-
enabled?: boolean | undefined;
|
|
633
|
-
label?: string | undefined;
|
|
634
|
-
icon?: string | undefined;
|
|
635
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
636
|
-
} | undefined;
|
|
637
|
-
move?: boolean | {
|
|
638
|
-
enabled?: boolean | undefined;
|
|
639
|
-
label?: string | undefined;
|
|
640
|
-
icon?: string | undefined;
|
|
641
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
642
|
-
} | undefined;
|
|
643
|
-
} | undefined;
|
|
644
|
-
} | undefined;
|
|
645
|
-
} | {
|
|
646
|
-
view: "gantt";
|
|
647
|
-
dependencyGraph?: boolean | undefined;
|
|
648
|
-
fullWidth?: boolean | undefined;
|
|
649
|
-
rowActions?: {
|
|
650
|
-
enabled: boolean;
|
|
651
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
652
|
-
dropdownThreshold?: number | undefined;
|
|
653
|
-
forceDropdown?: boolean | undefined;
|
|
654
|
-
actions?: {
|
|
655
|
-
add?: boolean | {
|
|
656
|
-
enabled?: boolean | undefined;
|
|
657
|
-
label?: string | undefined;
|
|
658
|
-
icon?: string | undefined;
|
|
659
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
660
|
-
} | undefined;
|
|
661
|
-
delete?: boolean | {
|
|
662
|
-
enabled?: boolean | undefined;
|
|
663
|
-
label?: string | undefined;
|
|
664
|
-
icon?: string | undefined;
|
|
665
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
666
|
-
} | undefined;
|
|
667
|
-
duplicate?: boolean | {
|
|
668
|
-
enabled?: boolean | undefined;
|
|
669
|
-
label?: string | undefined;
|
|
670
|
-
icon?: string | undefined;
|
|
671
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
672
|
-
} | undefined;
|
|
673
|
-
insertAbove?: boolean | {
|
|
674
|
-
enabled?: boolean | undefined;
|
|
675
|
-
label?: string | undefined;
|
|
676
|
-
icon?: string | undefined;
|
|
677
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
678
|
-
} | undefined;
|
|
679
|
-
insertBelow?: boolean | {
|
|
680
|
-
enabled?: boolean | undefined;
|
|
681
|
-
label?: string | undefined;
|
|
682
|
-
icon?: string | undefined;
|
|
683
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
684
|
-
} | undefined;
|
|
685
|
-
move?: boolean | {
|
|
686
|
-
enabled?: boolean | undefined;
|
|
687
|
-
label?: string | undefined;
|
|
688
|
-
icon?: string | undefined;
|
|
689
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
690
|
-
} | undefined;
|
|
691
|
-
} | undefined;
|
|
692
|
-
} | undefined;
|
|
693
|
-
} | {
|
|
694
|
-
view: "tree-gantt";
|
|
695
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
696
|
-
dependencyGraph?: boolean | undefined;
|
|
697
|
-
fullWidth?: boolean | undefined;
|
|
698
|
-
rowActions?: {
|
|
699
|
-
enabled: boolean;
|
|
700
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
701
|
-
dropdownThreshold?: number | undefined;
|
|
702
|
-
forceDropdown?: boolean | undefined;
|
|
703
|
-
actions?: {
|
|
704
|
-
add?: boolean | {
|
|
705
|
-
enabled?: boolean | undefined;
|
|
706
|
-
label?: string | undefined;
|
|
707
|
-
icon?: string | undefined;
|
|
708
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
709
|
-
} | undefined;
|
|
710
|
-
delete?: boolean | {
|
|
711
|
-
enabled?: boolean | undefined;
|
|
712
|
-
label?: string | undefined;
|
|
713
|
-
icon?: string | undefined;
|
|
714
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
715
|
-
} | undefined;
|
|
716
|
-
duplicate?: boolean | {
|
|
717
|
-
enabled?: boolean | undefined;
|
|
718
|
-
label?: string | undefined;
|
|
719
|
-
icon?: string | undefined;
|
|
720
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
721
|
-
} | undefined;
|
|
722
|
-
insertAbove?: boolean | {
|
|
723
|
-
enabled?: boolean | undefined;
|
|
724
|
-
label?: string | undefined;
|
|
725
|
-
icon?: string | undefined;
|
|
726
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
727
|
-
} | undefined;
|
|
728
|
-
insertBelow?: boolean | {
|
|
729
|
-
enabled?: boolean | undefined;
|
|
730
|
-
label?: string | undefined;
|
|
731
|
-
icon?: string | undefined;
|
|
732
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
733
|
-
} | undefined;
|
|
734
|
-
move?: boolean | {
|
|
735
|
-
enabled?: boolean | undefined;
|
|
736
|
-
label?: string | undefined;
|
|
737
|
-
icon?: string | undefined;
|
|
738
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
739
|
-
} | undefined;
|
|
740
|
-
} | undefined;
|
|
741
|
-
} | undefined;
|
|
742
|
-
}>;
|
|
743
|
-
connectionHandles: Ref< {
|
|
744
|
-
id: string;
|
|
745
|
-
rowIndex: number;
|
|
746
|
-
colIndex: number;
|
|
747
|
-
side: "left" | "right";
|
|
748
|
-
position: {
|
|
749
|
-
x: number;
|
|
750
|
-
y: number;
|
|
751
|
-
};
|
|
752
|
-
visible: boolean;
|
|
753
|
-
barId: string;
|
|
754
|
-
}[], ConnectionHandle[] | {
|
|
755
|
-
id: string;
|
|
756
|
-
rowIndex: number;
|
|
757
|
-
colIndex: number;
|
|
758
|
-
side: "left" | "right";
|
|
759
|
-
position: {
|
|
760
|
-
x: number;
|
|
761
|
-
y: number;
|
|
762
|
-
};
|
|
763
|
-
visible: boolean;
|
|
764
|
-
barId: string;
|
|
765
|
-
}[]>;
|
|
766
|
-
connectionPaths: Ref< {
|
|
767
|
-
id: string;
|
|
768
|
-
from: {
|
|
769
|
-
barId: string;
|
|
770
|
-
side: "left" | "right";
|
|
771
|
-
};
|
|
772
|
-
to: {
|
|
773
|
-
barId: string;
|
|
774
|
-
side: "left" | "right";
|
|
775
|
-
};
|
|
776
|
-
style?: {
|
|
777
|
-
color?: string | undefined;
|
|
778
|
-
width?: number | undefined;
|
|
779
|
-
} | undefined;
|
|
780
|
-
label?: string | undefined;
|
|
781
|
-
}[], ConnectionPath[] | {
|
|
782
|
-
id: string;
|
|
783
|
-
from: {
|
|
784
|
-
barId: string;
|
|
785
|
-
side: "left" | "right";
|
|
786
|
-
};
|
|
787
|
-
to: {
|
|
788
|
-
barId: string;
|
|
789
|
-
side: "left" | "right";
|
|
790
|
-
};
|
|
791
|
-
style?: {
|
|
792
|
-
color?: string | undefined;
|
|
793
|
-
width?: number | undefined;
|
|
794
|
-
} | undefined;
|
|
795
|
-
label?: string | undefined;
|
|
796
|
-
}[]>;
|
|
797
|
-
display: WritableComputedRef<TableDisplay[], TableDisplay[]>;
|
|
798
|
-
filterState: Ref<FilterStateRecord, FilterStateRecord>;
|
|
799
|
-
ganttBars: Ref< {
|
|
800
|
-
id: string;
|
|
801
|
-
rowIndex: number;
|
|
802
|
-
colIndex: number;
|
|
803
|
-
startIndex: number;
|
|
804
|
-
endIndex: number;
|
|
805
|
-
color: string;
|
|
806
|
-
position: {
|
|
807
|
-
x: number;
|
|
808
|
-
y: number;
|
|
809
|
-
};
|
|
810
|
-
label?: string | undefined;
|
|
811
|
-
}[], GanttBarInfo[] | {
|
|
812
|
-
id: string;
|
|
813
|
-
rowIndex: number;
|
|
814
|
-
colIndex: number;
|
|
815
|
-
startIndex: number;
|
|
816
|
-
endIndex: number;
|
|
817
|
-
color: string;
|
|
818
|
-
position: {
|
|
819
|
-
x: number;
|
|
820
|
-
y: number;
|
|
821
|
-
};
|
|
822
|
-
label?: string | undefined;
|
|
823
|
-
}[]>;
|
|
824
|
-
modal: Ref< {
|
|
825
|
-
visible?: boolean | undefined;
|
|
826
|
-
cell?: (HTMLTableCellElement | null) | undefined;
|
|
827
|
-
parent?: HTMLElement | undefined;
|
|
828
|
-
colIndex?: number | undefined;
|
|
829
|
-
rowIndex?: number | undefined;
|
|
830
|
-
component?: string | undefined;
|
|
831
|
-
componentProps?: Record<string, any> | undefined;
|
|
832
|
-
bottom?: number | undefined;
|
|
833
|
-
height?: number | undefined;
|
|
834
|
-
left?: number | undefined;
|
|
835
|
-
width?: number | undefined;
|
|
836
|
-
}, TableModal | {
|
|
837
|
-
visible?: boolean | undefined;
|
|
838
|
-
cell?: (HTMLTableCellElement | null) | undefined;
|
|
839
|
-
parent?: HTMLElement | undefined;
|
|
840
|
-
colIndex?: number | undefined;
|
|
841
|
-
rowIndex?: number | undefined;
|
|
842
|
-
component?: string | undefined;
|
|
843
|
-
componentProps?: Record<string, any> | undefined;
|
|
844
|
-
bottom?: number | undefined;
|
|
845
|
-
height?: number | undefined;
|
|
846
|
-
left?: number | undefined;
|
|
847
|
-
width?: number | undefined;
|
|
848
|
-
}>;
|
|
849
|
-
rows: Ref< {
|
|
850
|
-
[x: string]: any;
|
|
851
|
-
indent?: number | undefined;
|
|
852
|
-
parent?: number | undefined;
|
|
853
|
-
gantt?: {
|
|
854
|
-
color?: string | undefined;
|
|
855
|
-
startIndex?: number | undefined;
|
|
856
|
-
endIndex?: number | undefined;
|
|
857
|
-
colspan?: number | undefined;
|
|
858
|
-
} | undefined;
|
|
859
|
-
}[], TableRow[] | {
|
|
860
|
-
[x: string]: any;
|
|
861
|
-
indent?: number | undefined;
|
|
862
|
-
parent?: number | undefined;
|
|
863
|
-
gantt?: {
|
|
864
|
-
color?: string | undefined;
|
|
865
|
-
startIndex?: number | undefined;
|
|
866
|
-
endIndex?: number | undefined;
|
|
867
|
-
colspan?: number | undefined;
|
|
868
|
-
} | undefined;
|
|
869
|
-
}[]>;
|
|
870
|
-
sortState: Ref< {
|
|
871
|
-
column: number | null;
|
|
872
|
-
direction: "asc" | "desc" | null;
|
|
873
|
-
}, {
|
|
874
|
-
column: number | null;
|
|
875
|
-
direction: "asc" | "desc" | null;
|
|
876
|
-
} | {
|
|
877
|
-
column: number | null;
|
|
878
|
-
direction: "asc" | "desc" | null;
|
|
879
|
-
}>;
|
|
880
|
-
table: ComputedRef< {}>;
|
|
881
|
-
updates: Ref<Record<string, string>, Record<string, string>>;
|
|
882
|
-
filteredRows: ComputedRef< {
|
|
883
|
-
originalIndex: number;
|
|
884
|
-
indent?: number | undefined;
|
|
885
|
-
parent?: number | undefined;
|
|
886
|
-
gantt?: {
|
|
887
|
-
color?: string | undefined;
|
|
888
|
-
startIndex?: number | undefined;
|
|
889
|
-
endIndex?: number | undefined;
|
|
890
|
-
colspan?: number | undefined;
|
|
891
|
-
} | undefined;
|
|
892
|
-
}[]>;
|
|
893
|
-
hasPinnedColumns: ComputedRef<boolean>;
|
|
894
|
-
isGanttView: ComputedRef<boolean>;
|
|
895
|
-
isTreeView: ComputedRef<boolean>;
|
|
896
|
-
isDependencyGraphEnabled: ComputedRef<boolean>;
|
|
897
|
-
numberedRowWidth: ComputedRef<string>;
|
|
898
|
-
zeroColumn: ComputedRef<boolean>;
|
|
899
|
-
addRow: (rowData?: Partial<TableRow>, position?: "start" | "end" | number) => number;
|
|
900
|
-
clearFilter: (colIndex: number) => void;
|
|
901
|
-
closeModal: (event: MouseEvent) => void;
|
|
902
|
-
createConnection: (fromHandleId: string, toHandleId: string, options?: {
|
|
903
|
-
style?: ConnectionPath["style"];
|
|
904
|
-
label?: string;
|
|
905
|
-
}) => ConnectionPath | null;
|
|
906
|
-
deleteConnection: (connectionId: string) => boolean;
|
|
907
|
-
deleteRow: (rowIndex: number) => TableRow | null;
|
|
908
|
-
duplicateRow: (rowIndex: number) => number;
|
|
909
|
-
getCellData: <T = any>(colIndex: number, rowIndex: number) => T;
|
|
910
|
-
getCellDisplayValue: (colIndex: number, rowIndex: number) => any;
|
|
911
|
-
getConnectionsForBar: (barId: string) => {
|
|
912
|
-
id: string;
|
|
913
|
-
from: {
|
|
914
|
-
barId: string;
|
|
915
|
-
side: "left" | "right";
|
|
916
|
-
};
|
|
917
|
-
to: {
|
|
918
|
-
barId: string;
|
|
919
|
-
side: "left" | "right";
|
|
920
|
-
};
|
|
921
|
-
style?: {
|
|
922
|
-
color?: string | undefined;
|
|
923
|
-
width?: number | undefined;
|
|
924
|
-
} | undefined;
|
|
925
|
-
label?: string | undefined;
|
|
926
|
-
}[];
|
|
927
|
-
getFormattedValue: (colIndex: number, rowIndex: number, value: any) => any;
|
|
928
|
-
getHandlesForBar: (barId: string) => {
|
|
929
|
-
id: string;
|
|
930
|
-
rowIndex: number;
|
|
931
|
-
colIndex: number;
|
|
932
|
-
side: "left" | "right";
|
|
933
|
-
position: {
|
|
934
|
-
x: number;
|
|
935
|
-
y: number;
|
|
936
|
-
};
|
|
937
|
-
visible: boolean;
|
|
938
|
-
barId: string;
|
|
939
|
-
}[];
|
|
940
|
-
getHeaderCellStyle: (column: TableColumn) => CSSProperties;
|
|
941
|
-
getIndent: (colIndex: number, indentLevel?: number) => string;
|
|
942
|
-
getRowExpandSymbol: (rowIndex: number) => "" | "▼" | "►";
|
|
943
|
-
insertRowAbove: (rowIndex: number, rowData?: Partial<TableRow>) => number;
|
|
944
|
-
insertRowBelow: (rowIndex: number, rowData?: Partial<TableRow>) => number;
|
|
945
|
-
isRowGantt: (rowIndex: number) => boolean;
|
|
946
|
-
isRowVisible: (rowIndex: number) => boolean | undefined;
|
|
947
|
-
moveRow: (fromIndex: number, toIndex: number) => boolean;
|
|
948
|
-
registerConnectionHandle: (handleInfo: ConnectionHandle) => void;
|
|
949
|
-
registerGanttBar: (barInfo: GanttBarInfo) => void;
|
|
950
|
-
resizeColumn: (colIndex: number, newWidth: number) => void;
|
|
951
|
-
setCellData: (colIndex: number, rowIndex: number, value: any) => void;
|
|
952
|
-
setCellText: (colIndex: number, rowIndex: number, value: string) => void;
|
|
953
|
-
setFilter: (colIndex: number, filter: FilterState) => void;
|
|
954
|
-
sortByColumn: (colIndex: number) => void;
|
|
955
|
-
toggleRowExpand: (rowIndex: number) => void;
|
|
956
|
-
unregisterConnectionHandle: (handleId: string) => void;
|
|
957
|
-
unregisterGanttBar: (barId: string) => void;
|
|
958
|
-
updateGanttBar: (event: GanttDragEvent) => void;
|
|
959
|
-
updateRows: (newRows: TableRow[]) => void;
|
|
960
|
-
}, "columns" | "config" | "connectionHandles" | "connectionPaths" | "filterState" | "ganttBars" | "modal" | "rows" | "sortState" | "updates">, Pick<{
|
|
961
|
-
columns: Ref< {
|
|
962
|
-
name: string;
|
|
963
|
-
align?: CanvasTextAlign | undefined;
|
|
964
|
-
edit?: boolean | undefined;
|
|
965
|
-
label?: string | undefined;
|
|
966
|
-
fieldtype?: string | undefined;
|
|
967
|
-
width?: string | undefined;
|
|
968
|
-
pinned?: boolean | undefined;
|
|
969
|
-
resizable?: boolean | undefined;
|
|
970
|
-
sortable?: boolean | undefined;
|
|
971
|
-
filterable?: boolean | undefined;
|
|
972
|
-
filterType?: "text" | "select" | "number" | "date" | "dateRange" | "checkbox" | "component" | undefined;
|
|
973
|
-
filterOptions?: any[] | undefined;
|
|
974
|
-
filterComponent?: string | undefined;
|
|
975
|
-
cellComponent?: string | undefined;
|
|
976
|
-
cellComponentProps?: Record<string, any> | undefined;
|
|
977
|
-
modalComponent?: string | ((context: CellContext) => string) | undefined;
|
|
978
|
-
modalComponentExtraProps?: Record<string, any> | undefined;
|
|
979
|
-
format?: string | ((value: any, context: CellContext) => string) | undefined;
|
|
980
|
-
mask?: ((value: any) => any) | undefined;
|
|
981
|
-
isGantt?: boolean | undefined;
|
|
982
|
-
ganttComponent?: string | undefined;
|
|
983
|
-
colspan?: number | undefined;
|
|
984
|
-
originalIndex?: number | undefined;
|
|
985
|
-
}[], TableColumn[] | {
|
|
986
|
-
name: string;
|
|
987
|
-
align?: CanvasTextAlign | undefined;
|
|
988
|
-
edit?: boolean | undefined;
|
|
989
|
-
label?: string | undefined;
|
|
990
|
-
fieldtype?: string | undefined;
|
|
991
|
-
width?: string | undefined;
|
|
992
|
-
pinned?: boolean | undefined;
|
|
993
|
-
resizable?: boolean | undefined;
|
|
994
|
-
sortable?: boolean | undefined;
|
|
995
|
-
filterable?: boolean | undefined;
|
|
996
|
-
filterType?: "text" | "select" | "number" | "date" | "dateRange" | "checkbox" | "component" | undefined;
|
|
997
|
-
filterOptions?: any[] | undefined;
|
|
998
|
-
filterComponent?: string | undefined;
|
|
999
|
-
cellComponent?: string | undefined;
|
|
1000
|
-
cellComponentProps?: Record<string, any> | undefined;
|
|
1001
|
-
modalComponent?: string | ((context: CellContext) => string) | undefined;
|
|
1002
|
-
modalComponentExtraProps?: Record<string, any> | undefined;
|
|
1003
|
-
format?: string | ((value: any, context: CellContext) => string) | undefined;
|
|
1004
|
-
mask?: ((value: any) => any) | undefined;
|
|
1005
|
-
isGantt?: boolean | undefined;
|
|
1006
|
-
ganttComponent?: string | undefined;
|
|
1007
|
-
colspan?: number | undefined;
|
|
1008
|
-
originalIndex?: number | undefined;
|
|
1009
|
-
}[]>;
|
|
1010
|
-
config: Ref< {
|
|
1011
|
-
view?: "uncounted" | "list" | "list-expansion" | undefined;
|
|
1012
|
-
fullWidth?: boolean | undefined;
|
|
1013
|
-
rowActions?: {
|
|
1014
|
-
enabled: boolean;
|
|
1015
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1016
|
-
dropdownThreshold?: number | undefined;
|
|
1017
|
-
forceDropdown?: boolean | undefined;
|
|
1018
|
-
actions?: {
|
|
1019
|
-
add?: boolean | {
|
|
1020
|
-
enabled?: boolean | undefined;
|
|
1021
|
-
label?: string | undefined;
|
|
1022
|
-
icon?: string | undefined;
|
|
1023
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1024
|
-
} | undefined;
|
|
1025
|
-
delete?: boolean | {
|
|
1026
|
-
enabled?: boolean | undefined;
|
|
1027
|
-
label?: string | undefined;
|
|
1028
|
-
icon?: string | undefined;
|
|
1029
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1030
|
-
} | undefined;
|
|
1031
|
-
duplicate?: boolean | {
|
|
1032
|
-
enabled?: boolean | undefined;
|
|
1033
|
-
label?: string | undefined;
|
|
1034
|
-
icon?: string | undefined;
|
|
1035
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1036
|
-
} | undefined;
|
|
1037
|
-
insertAbove?: boolean | {
|
|
1038
|
-
enabled?: boolean | undefined;
|
|
1039
|
-
label?: string | undefined;
|
|
1040
|
-
icon?: string | undefined;
|
|
1041
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1042
|
-
} | undefined;
|
|
1043
|
-
insertBelow?: boolean | {
|
|
1044
|
-
enabled?: boolean | undefined;
|
|
1045
|
-
label?: string | undefined;
|
|
1046
|
-
icon?: string | undefined;
|
|
1047
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1048
|
-
} | undefined;
|
|
1049
|
-
move?: boolean | {
|
|
1050
|
-
enabled?: boolean | undefined;
|
|
1051
|
-
label?: string | undefined;
|
|
1052
|
-
icon?: string | undefined;
|
|
1053
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1054
|
-
} | undefined;
|
|
1055
|
-
} | undefined;
|
|
1056
|
-
} | undefined;
|
|
1057
|
-
} | {
|
|
1058
|
-
view: "tree";
|
|
1059
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
1060
|
-
fullWidth?: boolean | undefined;
|
|
1061
|
-
rowActions?: {
|
|
1062
|
-
enabled: boolean;
|
|
1063
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1064
|
-
dropdownThreshold?: number | undefined;
|
|
1065
|
-
forceDropdown?: boolean | undefined;
|
|
1066
|
-
actions?: {
|
|
1067
|
-
add?: boolean | {
|
|
1068
|
-
enabled?: boolean | undefined;
|
|
1069
|
-
label?: string | undefined;
|
|
1070
|
-
icon?: string | undefined;
|
|
1071
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1072
|
-
} | undefined;
|
|
1073
|
-
delete?: boolean | {
|
|
1074
|
-
enabled?: boolean | undefined;
|
|
1075
|
-
label?: string | undefined;
|
|
1076
|
-
icon?: string | undefined;
|
|
1077
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1078
|
-
} | undefined;
|
|
1079
|
-
duplicate?: boolean | {
|
|
1080
|
-
enabled?: boolean | undefined;
|
|
1081
|
-
label?: string | undefined;
|
|
1082
|
-
icon?: string | undefined;
|
|
1083
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1084
|
-
} | undefined;
|
|
1085
|
-
insertAbove?: boolean | {
|
|
1086
|
-
enabled?: boolean | undefined;
|
|
1087
|
-
label?: string | undefined;
|
|
1088
|
-
icon?: string | undefined;
|
|
1089
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1090
|
-
} | undefined;
|
|
1091
|
-
insertBelow?: boolean | {
|
|
1092
|
-
enabled?: boolean | undefined;
|
|
1093
|
-
label?: string | undefined;
|
|
1094
|
-
icon?: string | undefined;
|
|
1095
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1096
|
-
} | undefined;
|
|
1097
|
-
move?: boolean | {
|
|
1098
|
-
enabled?: boolean | undefined;
|
|
1099
|
-
label?: string | undefined;
|
|
1100
|
-
icon?: string | undefined;
|
|
1101
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1102
|
-
} | undefined;
|
|
1103
|
-
} | undefined;
|
|
1104
|
-
} | undefined;
|
|
1105
|
-
} | {
|
|
1106
|
-
view: "gantt";
|
|
1107
|
-
dependencyGraph?: boolean | undefined;
|
|
1108
|
-
fullWidth?: boolean | undefined;
|
|
1109
|
-
rowActions?: {
|
|
1110
|
-
enabled: boolean;
|
|
1111
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1112
|
-
dropdownThreshold?: number | undefined;
|
|
1113
|
-
forceDropdown?: boolean | undefined;
|
|
1114
|
-
actions?: {
|
|
1115
|
-
add?: boolean | {
|
|
1116
|
-
enabled?: boolean | undefined;
|
|
1117
|
-
label?: string | undefined;
|
|
1118
|
-
icon?: string | undefined;
|
|
1119
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1120
|
-
} | undefined;
|
|
1121
|
-
delete?: boolean | {
|
|
1122
|
-
enabled?: boolean | undefined;
|
|
1123
|
-
label?: string | undefined;
|
|
1124
|
-
icon?: string | undefined;
|
|
1125
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1126
|
-
} | undefined;
|
|
1127
|
-
duplicate?: boolean | {
|
|
1128
|
-
enabled?: boolean | undefined;
|
|
1129
|
-
label?: string | undefined;
|
|
1130
|
-
icon?: string | undefined;
|
|
1131
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1132
|
-
} | undefined;
|
|
1133
|
-
insertAbove?: boolean | {
|
|
1134
|
-
enabled?: boolean | undefined;
|
|
1135
|
-
label?: string | undefined;
|
|
1136
|
-
icon?: string | undefined;
|
|
1137
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1138
|
-
} | undefined;
|
|
1139
|
-
insertBelow?: boolean | {
|
|
1140
|
-
enabled?: boolean | undefined;
|
|
1141
|
-
label?: string | undefined;
|
|
1142
|
-
icon?: string | undefined;
|
|
1143
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1144
|
-
} | undefined;
|
|
1145
|
-
move?: boolean | {
|
|
1146
|
-
enabled?: boolean | undefined;
|
|
1147
|
-
label?: string | undefined;
|
|
1148
|
-
icon?: string | undefined;
|
|
1149
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1150
|
-
} | undefined;
|
|
1151
|
-
} | undefined;
|
|
1152
|
-
} | undefined;
|
|
1153
|
-
} | {
|
|
1154
|
-
view: "tree-gantt";
|
|
1155
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
1156
|
-
dependencyGraph?: boolean | 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
|
-
}, TableConfig | {
|
|
1203
|
-
view?: "uncounted" | "list" | "list-expansion" | undefined;
|
|
1204
|
-
fullWidth?: boolean | undefined;
|
|
1205
|
-
rowActions?: {
|
|
1206
|
-
enabled: boolean;
|
|
1207
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1208
|
-
dropdownThreshold?: number | undefined;
|
|
1209
|
-
forceDropdown?: boolean | undefined;
|
|
1210
|
-
actions?: {
|
|
1211
|
-
add?: boolean | {
|
|
1212
|
-
enabled?: boolean | undefined;
|
|
1213
|
-
label?: string | undefined;
|
|
1214
|
-
icon?: string | undefined;
|
|
1215
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1216
|
-
} | undefined;
|
|
1217
|
-
delete?: boolean | {
|
|
1218
|
-
enabled?: boolean | undefined;
|
|
1219
|
-
label?: string | undefined;
|
|
1220
|
-
icon?: string | undefined;
|
|
1221
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1222
|
-
} | undefined;
|
|
1223
|
-
duplicate?: boolean | {
|
|
1224
|
-
enabled?: boolean | undefined;
|
|
1225
|
-
label?: string | undefined;
|
|
1226
|
-
icon?: string | undefined;
|
|
1227
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1228
|
-
} | undefined;
|
|
1229
|
-
insertAbove?: boolean | {
|
|
1230
|
-
enabled?: boolean | undefined;
|
|
1231
|
-
label?: string | undefined;
|
|
1232
|
-
icon?: string | undefined;
|
|
1233
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1234
|
-
} | undefined;
|
|
1235
|
-
insertBelow?: boolean | {
|
|
1236
|
-
enabled?: boolean | undefined;
|
|
1237
|
-
label?: string | undefined;
|
|
1238
|
-
icon?: string | undefined;
|
|
1239
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1240
|
-
} | undefined;
|
|
1241
|
-
move?: boolean | {
|
|
1242
|
-
enabled?: boolean | undefined;
|
|
1243
|
-
label?: string | undefined;
|
|
1244
|
-
icon?: string | undefined;
|
|
1245
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1246
|
-
} | undefined;
|
|
1247
|
-
} | undefined;
|
|
1248
|
-
} | undefined;
|
|
1249
|
-
} | {
|
|
1250
|
-
view: "tree";
|
|
1251
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
1252
|
-
fullWidth?: boolean | undefined;
|
|
1253
|
-
rowActions?: {
|
|
1254
|
-
enabled: boolean;
|
|
1255
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1256
|
-
dropdownThreshold?: number | undefined;
|
|
1257
|
-
forceDropdown?: boolean | undefined;
|
|
1258
|
-
actions?: {
|
|
1259
|
-
add?: boolean | {
|
|
1260
|
-
enabled?: boolean | undefined;
|
|
1261
|
-
label?: string | undefined;
|
|
1262
|
-
icon?: string | undefined;
|
|
1263
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1264
|
-
} | undefined;
|
|
1265
|
-
delete?: boolean | {
|
|
1266
|
-
enabled?: boolean | undefined;
|
|
1267
|
-
label?: string | undefined;
|
|
1268
|
-
icon?: string | undefined;
|
|
1269
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1270
|
-
} | undefined;
|
|
1271
|
-
duplicate?: boolean | {
|
|
1272
|
-
enabled?: boolean | undefined;
|
|
1273
|
-
label?: string | undefined;
|
|
1274
|
-
icon?: string | undefined;
|
|
1275
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1276
|
-
} | undefined;
|
|
1277
|
-
insertAbove?: boolean | {
|
|
1278
|
-
enabled?: boolean | undefined;
|
|
1279
|
-
label?: string | undefined;
|
|
1280
|
-
icon?: string | undefined;
|
|
1281
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1282
|
-
} | undefined;
|
|
1283
|
-
insertBelow?: boolean | {
|
|
1284
|
-
enabled?: boolean | undefined;
|
|
1285
|
-
label?: string | undefined;
|
|
1286
|
-
icon?: string | undefined;
|
|
1287
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1288
|
-
} | undefined;
|
|
1289
|
-
move?: boolean | {
|
|
1290
|
-
enabled?: boolean | undefined;
|
|
1291
|
-
label?: string | undefined;
|
|
1292
|
-
icon?: string | undefined;
|
|
1293
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1294
|
-
} | undefined;
|
|
1295
|
-
} | undefined;
|
|
1296
|
-
} | undefined;
|
|
1297
|
-
} | {
|
|
1298
|
-
view: "gantt";
|
|
1299
|
-
dependencyGraph?: boolean | undefined;
|
|
1300
|
-
fullWidth?: boolean | undefined;
|
|
1301
|
-
rowActions?: {
|
|
1302
|
-
enabled: boolean;
|
|
1303
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1304
|
-
dropdownThreshold?: number | undefined;
|
|
1305
|
-
forceDropdown?: boolean | undefined;
|
|
1306
|
-
actions?: {
|
|
1307
|
-
add?: boolean | {
|
|
1308
|
-
enabled?: boolean | undefined;
|
|
1309
|
-
label?: string | undefined;
|
|
1310
|
-
icon?: string | undefined;
|
|
1311
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1312
|
-
} | undefined;
|
|
1313
|
-
delete?: boolean | {
|
|
1314
|
-
enabled?: boolean | undefined;
|
|
1315
|
-
label?: string | undefined;
|
|
1316
|
-
icon?: string | undefined;
|
|
1317
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1318
|
-
} | undefined;
|
|
1319
|
-
duplicate?: boolean | {
|
|
1320
|
-
enabled?: boolean | undefined;
|
|
1321
|
-
label?: string | undefined;
|
|
1322
|
-
icon?: string | undefined;
|
|
1323
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1324
|
-
} | undefined;
|
|
1325
|
-
insertAbove?: boolean | {
|
|
1326
|
-
enabled?: boolean | undefined;
|
|
1327
|
-
label?: string | undefined;
|
|
1328
|
-
icon?: string | undefined;
|
|
1329
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1330
|
-
} | undefined;
|
|
1331
|
-
insertBelow?: boolean | {
|
|
1332
|
-
enabled?: boolean | undefined;
|
|
1333
|
-
label?: string | undefined;
|
|
1334
|
-
icon?: string | undefined;
|
|
1335
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1336
|
-
} | undefined;
|
|
1337
|
-
move?: boolean | {
|
|
1338
|
-
enabled?: boolean | undefined;
|
|
1339
|
-
label?: string | undefined;
|
|
1340
|
-
icon?: string | undefined;
|
|
1341
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1342
|
-
} | undefined;
|
|
1343
|
-
} | undefined;
|
|
1344
|
-
} | undefined;
|
|
1345
|
-
} | {
|
|
1346
|
-
view: "tree-gantt";
|
|
1347
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
1348
|
-
dependencyGraph?: boolean | undefined;
|
|
1349
|
-
fullWidth?: boolean | undefined;
|
|
1350
|
-
rowActions?: {
|
|
1351
|
-
enabled: boolean;
|
|
1352
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1353
|
-
dropdownThreshold?: number | undefined;
|
|
1354
|
-
forceDropdown?: boolean | undefined;
|
|
1355
|
-
actions?: {
|
|
1356
|
-
add?: boolean | {
|
|
1357
|
-
enabled?: boolean | undefined;
|
|
1358
|
-
label?: string | undefined;
|
|
1359
|
-
icon?: string | undefined;
|
|
1360
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1361
|
-
} | undefined;
|
|
1362
|
-
delete?: boolean | {
|
|
1363
|
-
enabled?: boolean | undefined;
|
|
1364
|
-
label?: string | undefined;
|
|
1365
|
-
icon?: string | undefined;
|
|
1366
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1367
|
-
} | undefined;
|
|
1368
|
-
duplicate?: boolean | {
|
|
1369
|
-
enabled?: boolean | undefined;
|
|
1370
|
-
label?: string | undefined;
|
|
1371
|
-
icon?: string | undefined;
|
|
1372
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1373
|
-
} | undefined;
|
|
1374
|
-
insertAbove?: boolean | {
|
|
1375
|
-
enabled?: boolean | undefined;
|
|
1376
|
-
label?: string | undefined;
|
|
1377
|
-
icon?: string | undefined;
|
|
1378
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1379
|
-
} | undefined;
|
|
1380
|
-
insertBelow?: boolean | {
|
|
1381
|
-
enabled?: boolean | undefined;
|
|
1382
|
-
label?: string | undefined;
|
|
1383
|
-
icon?: string | undefined;
|
|
1384
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1385
|
-
} | undefined;
|
|
1386
|
-
move?: boolean | {
|
|
1387
|
-
enabled?: boolean | undefined;
|
|
1388
|
-
label?: string | undefined;
|
|
1389
|
-
icon?: string | undefined;
|
|
1390
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1391
|
-
} | undefined;
|
|
1392
|
-
} | undefined;
|
|
1393
|
-
} | undefined;
|
|
1394
|
-
}>;
|
|
1395
|
-
connectionHandles: Ref< {
|
|
1396
|
-
id: string;
|
|
1397
|
-
rowIndex: number;
|
|
1398
|
-
colIndex: number;
|
|
1399
|
-
side: "left" | "right";
|
|
1400
|
-
position: {
|
|
1401
|
-
x: number;
|
|
1402
|
-
y: number;
|
|
1403
|
-
};
|
|
1404
|
-
visible: boolean;
|
|
1405
|
-
barId: string;
|
|
1406
|
-
}[], ConnectionHandle[] | {
|
|
1407
|
-
id: string;
|
|
1408
|
-
rowIndex: number;
|
|
1409
|
-
colIndex: number;
|
|
1410
|
-
side: "left" | "right";
|
|
1411
|
-
position: {
|
|
1412
|
-
x: number;
|
|
1413
|
-
y: number;
|
|
1414
|
-
};
|
|
1415
|
-
visible: boolean;
|
|
1416
|
-
barId: string;
|
|
1417
|
-
}[]>;
|
|
1418
|
-
connectionPaths: Ref< {
|
|
1419
|
-
id: string;
|
|
1420
|
-
from: {
|
|
1421
|
-
barId: string;
|
|
1422
|
-
side: "left" | "right";
|
|
1423
|
-
};
|
|
1424
|
-
to: {
|
|
1425
|
-
barId: string;
|
|
1426
|
-
side: "left" | "right";
|
|
1427
|
-
};
|
|
1428
|
-
style?: {
|
|
1429
|
-
color?: string | undefined;
|
|
1430
|
-
width?: number | undefined;
|
|
1431
|
-
} | undefined;
|
|
1432
|
-
label?: string | undefined;
|
|
1433
|
-
}[], ConnectionPath[] | {
|
|
1434
|
-
id: string;
|
|
1435
|
-
from: {
|
|
1436
|
-
barId: string;
|
|
1437
|
-
side: "left" | "right";
|
|
1438
|
-
};
|
|
1439
|
-
to: {
|
|
1440
|
-
barId: string;
|
|
1441
|
-
side: "left" | "right";
|
|
1442
|
-
};
|
|
1443
|
-
style?: {
|
|
1444
|
-
color?: string | undefined;
|
|
1445
|
-
width?: number | undefined;
|
|
1446
|
-
} | undefined;
|
|
1447
|
-
label?: string | undefined;
|
|
1448
|
-
}[]>;
|
|
1449
|
-
display: WritableComputedRef<TableDisplay[], TableDisplay[]>;
|
|
1450
|
-
filterState: Ref<FilterStateRecord, FilterStateRecord>;
|
|
1451
|
-
ganttBars: Ref< {
|
|
1452
|
-
id: string;
|
|
1453
|
-
rowIndex: number;
|
|
1454
|
-
colIndex: number;
|
|
1455
|
-
startIndex: number;
|
|
1456
|
-
endIndex: number;
|
|
1457
|
-
color: string;
|
|
1458
|
-
position: {
|
|
1459
|
-
x: number;
|
|
1460
|
-
y: number;
|
|
1461
|
-
};
|
|
1462
|
-
label?: string | undefined;
|
|
1463
|
-
}[], GanttBarInfo[] | {
|
|
1464
|
-
id: string;
|
|
1465
|
-
rowIndex: number;
|
|
1466
|
-
colIndex: number;
|
|
1467
|
-
startIndex: number;
|
|
1468
|
-
endIndex: number;
|
|
1469
|
-
color: string;
|
|
1470
|
-
position: {
|
|
1471
|
-
x: number;
|
|
1472
|
-
y: number;
|
|
1473
|
-
};
|
|
1474
|
-
label?: string | undefined;
|
|
1475
|
-
}[]>;
|
|
1476
|
-
modal: Ref< {
|
|
1477
|
-
visible?: boolean | undefined;
|
|
1478
|
-
cell?: (HTMLTableCellElement | null) | undefined;
|
|
1479
|
-
parent?: HTMLElement | undefined;
|
|
1480
|
-
colIndex?: number | undefined;
|
|
1481
|
-
rowIndex?: number | undefined;
|
|
1482
|
-
component?: string | undefined;
|
|
1483
|
-
componentProps?: Record<string, any> | undefined;
|
|
1484
|
-
bottom?: number | undefined;
|
|
1485
|
-
height?: number | undefined;
|
|
1486
|
-
left?: number | undefined;
|
|
1487
|
-
width?: number | undefined;
|
|
1488
|
-
}, TableModal | {
|
|
1489
|
-
visible?: boolean | undefined;
|
|
1490
|
-
cell?: (HTMLTableCellElement | null) | undefined;
|
|
1491
|
-
parent?: HTMLElement | undefined;
|
|
1492
|
-
colIndex?: number | undefined;
|
|
1493
|
-
rowIndex?: number | undefined;
|
|
1494
|
-
component?: string | undefined;
|
|
1495
|
-
componentProps?: Record<string, any> | undefined;
|
|
1496
|
-
bottom?: number | undefined;
|
|
1497
|
-
height?: number | undefined;
|
|
1498
|
-
left?: number | undefined;
|
|
1499
|
-
width?: number | undefined;
|
|
1500
|
-
}>;
|
|
1501
|
-
rows: Ref< {
|
|
1502
|
-
[x: string]: any;
|
|
1503
|
-
indent?: number | undefined;
|
|
1504
|
-
parent?: number | undefined;
|
|
1505
|
-
gantt?: {
|
|
1506
|
-
color?: string | undefined;
|
|
1507
|
-
startIndex?: number | undefined;
|
|
1508
|
-
endIndex?: number | undefined;
|
|
1509
|
-
colspan?: number | undefined;
|
|
1510
|
-
} | undefined;
|
|
1511
|
-
}[], TableRow[] | {
|
|
1512
|
-
[x: string]: any;
|
|
1513
|
-
indent?: number | undefined;
|
|
1514
|
-
parent?: number | undefined;
|
|
1515
|
-
gantt?: {
|
|
1516
|
-
color?: string | undefined;
|
|
1517
|
-
startIndex?: number | undefined;
|
|
1518
|
-
endIndex?: number | undefined;
|
|
1519
|
-
colspan?: number | undefined;
|
|
1520
|
-
} | undefined;
|
|
1521
|
-
}[]>;
|
|
1522
|
-
sortState: Ref< {
|
|
1523
|
-
column: number | null;
|
|
1524
|
-
direction: "asc" | "desc" | null;
|
|
1525
|
-
}, {
|
|
1526
|
-
column: number | null;
|
|
1527
|
-
direction: "asc" | "desc" | null;
|
|
1528
|
-
} | {
|
|
1529
|
-
column: number | null;
|
|
1530
|
-
direction: "asc" | "desc" | null;
|
|
1531
|
-
}>;
|
|
1532
|
-
table: ComputedRef< {}>;
|
|
1533
|
-
updates: Ref<Record<string, string>, Record<string, string>>;
|
|
1534
|
-
filteredRows: ComputedRef< {
|
|
1535
|
-
originalIndex: number;
|
|
1536
|
-
indent?: number | undefined;
|
|
1537
|
-
parent?: number | undefined;
|
|
1538
|
-
gantt?: {
|
|
1539
|
-
color?: string | undefined;
|
|
1540
|
-
startIndex?: number | undefined;
|
|
1541
|
-
endIndex?: number | undefined;
|
|
1542
|
-
colspan?: number | undefined;
|
|
1543
|
-
} | undefined;
|
|
1544
|
-
}[]>;
|
|
1545
|
-
hasPinnedColumns: ComputedRef<boolean>;
|
|
1546
|
-
isGanttView: ComputedRef<boolean>;
|
|
1547
|
-
isTreeView: ComputedRef<boolean>;
|
|
1548
|
-
isDependencyGraphEnabled: ComputedRef<boolean>;
|
|
1549
|
-
numberedRowWidth: ComputedRef<string>;
|
|
1550
|
-
zeroColumn: ComputedRef<boolean>;
|
|
1551
|
-
addRow: (rowData?: Partial<TableRow>, position?: "start" | "end" | number) => number;
|
|
1552
|
-
clearFilter: (colIndex: number) => void;
|
|
1553
|
-
closeModal: (event: MouseEvent) => void;
|
|
1554
|
-
createConnection: (fromHandleId: string, toHandleId: string, options?: {
|
|
1555
|
-
style?: ConnectionPath["style"];
|
|
1556
|
-
label?: string;
|
|
1557
|
-
}) => ConnectionPath | null;
|
|
1558
|
-
deleteConnection: (connectionId: string) => boolean;
|
|
1559
|
-
deleteRow: (rowIndex: number) => TableRow | null;
|
|
1560
|
-
duplicateRow: (rowIndex: number) => number;
|
|
1561
|
-
getCellData: <T = any>(colIndex: number, rowIndex: number) => T;
|
|
1562
|
-
getCellDisplayValue: (colIndex: number, rowIndex: number) => any;
|
|
1563
|
-
getConnectionsForBar: (barId: string) => {
|
|
1564
|
-
id: string;
|
|
1565
|
-
from: {
|
|
1566
|
-
barId: string;
|
|
1567
|
-
side: "left" | "right";
|
|
1568
|
-
};
|
|
1569
|
-
to: {
|
|
1570
|
-
barId: string;
|
|
1571
|
-
side: "left" | "right";
|
|
1572
|
-
};
|
|
1573
|
-
style?: {
|
|
1574
|
-
color?: string | undefined;
|
|
1575
|
-
width?: number | undefined;
|
|
1576
|
-
} | undefined;
|
|
1577
|
-
label?: string | undefined;
|
|
1578
|
-
}[];
|
|
1579
|
-
getFormattedValue: (colIndex: number, rowIndex: number, value: any) => any;
|
|
1580
|
-
getHandlesForBar: (barId: string) => {
|
|
1581
|
-
id: string;
|
|
1582
|
-
rowIndex: number;
|
|
1583
|
-
colIndex: number;
|
|
1584
|
-
side: "left" | "right";
|
|
1585
|
-
position: {
|
|
1586
|
-
x: number;
|
|
1587
|
-
y: number;
|
|
1588
|
-
};
|
|
1589
|
-
visible: boolean;
|
|
1590
|
-
barId: string;
|
|
1591
|
-
}[];
|
|
1592
|
-
getHeaderCellStyle: (column: TableColumn) => CSSProperties;
|
|
1593
|
-
getIndent: (colIndex: number, indentLevel?: number) => string;
|
|
1594
|
-
getRowExpandSymbol: (rowIndex: number) => "" | "▼" | "►";
|
|
1595
|
-
insertRowAbove: (rowIndex: number, rowData?: Partial<TableRow>) => number;
|
|
1596
|
-
insertRowBelow: (rowIndex: number, rowData?: Partial<TableRow>) => number;
|
|
1597
|
-
isRowGantt: (rowIndex: number) => boolean;
|
|
1598
|
-
isRowVisible: (rowIndex: number) => boolean | undefined;
|
|
1599
|
-
moveRow: (fromIndex: number, toIndex: number) => boolean;
|
|
1600
|
-
registerConnectionHandle: (handleInfo: ConnectionHandle) => void;
|
|
1601
|
-
registerGanttBar: (barInfo: GanttBarInfo) => void;
|
|
1602
|
-
resizeColumn: (colIndex: number, newWidth: number) => void;
|
|
1603
|
-
setCellData: (colIndex: number, rowIndex: number, value: any) => void;
|
|
1604
|
-
setCellText: (colIndex: number, rowIndex: number, value: string) => void;
|
|
1605
|
-
setFilter: (colIndex: number, filter: FilterState) => void;
|
|
1606
|
-
sortByColumn: (colIndex: number) => void;
|
|
1607
|
-
toggleRowExpand: (rowIndex: number) => void;
|
|
1608
|
-
unregisterConnectionHandle: (handleId: string) => void;
|
|
1609
|
-
unregisterGanttBar: (barId: string) => void;
|
|
1610
|
-
updateGanttBar: (event: GanttDragEvent) => void;
|
|
1611
|
-
updateRows: (newRows: TableRow[]) => void;
|
|
1612
|
-
}, "display" | "table" | "filteredRows" | "hasPinnedColumns" | "isGanttView" | "isTreeView" | "isDependencyGraphEnabled" | "numberedRowWidth" | "zeroColumn">, Pick<{
|
|
1613
|
-
columns: Ref< {
|
|
1614
|
-
name: string;
|
|
1615
|
-
align?: CanvasTextAlign | undefined;
|
|
1616
|
-
edit?: boolean | undefined;
|
|
1617
|
-
label?: string | undefined;
|
|
1618
|
-
fieldtype?: string | undefined;
|
|
1619
|
-
width?: string | undefined;
|
|
1620
|
-
pinned?: boolean | undefined;
|
|
1621
|
-
resizable?: boolean | undefined;
|
|
1622
|
-
sortable?: boolean | undefined;
|
|
1623
|
-
filterable?: boolean | undefined;
|
|
1624
|
-
filterType?: "text" | "select" | "number" | "date" | "dateRange" | "checkbox" | "component" | undefined;
|
|
1625
|
-
filterOptions?: any[] | undefined;
|
|
1626
|
-
filterComponent?: string | undefined;
|
|
1627
|
-
cellComponent?: string | undefined;
|
|
1628
|
-
cellComponentProps?: Record<string, any> | undefined;
|
|
1629
|
-
modalComponent?: string | ((context: CellContext) => string) | undefined;
|
|
1630
|
-
modalComponentExtraProps?: Record<string, any> | undefined;
|
|
1631
|
-
format?: string | ((value: any, context: CellContext) => string) | undefined;
|
|
1632
|
-
mask?: ((value: any) => any) | undefined;
|
|
1633
|
-
isGantt?: boolean | undefined;
|
|
1634
|
-
ganttComponent?: string | undefined;
|
|
1635
|
-
colspan?: number | undefined;
|
|
1636
|
-
originalIndex?: number | undefined;
|
|
1637
|
-
}[], TableColumn[] | {
|
|
1638
|
-
name: string;
|
|
1639
|
-
align?: CanvasTextAlign | undefined;
|
|
1640
|
-
edit?: boolean | undefined;
|
|
1641
|
-
label?: string | undefined;
|
|
1642
|
-
fieldtype?: string | undefined;
|
|
1643
|
-
width?: string | undefined;
|
|
1644
|
-
pinned?: boolean | undefined;
|
|
1645
|
-
resizable?: boolean | undefined;
|
|
1646
|
-
sortable?: boolean | undefined;
|
|
1647
|
-
filterable?: boolean | undefined;
|
|
1648
|
-
filterType?: "text" | "select" | "number" | "date" | "dateRange" | "checkbox" | "component" | undefined;
|
|
1649
|
-
filterOptions?: any[] | undefined;
|
|
1650
|
-
filterComponent?: string | undefined;
|
|
1651
|
-
cellComponent?: string | undefined;
|
|
1652
|
-
cellComponentProps?: Record<string, any> | undefined;
|
|
1653
|
-
modalComponent?: string | ((context: CellContext) => string) | undefined;
|
|
1654
|
-
modalComponentExtraProps?: Record<string, any> | undefined;
|
|
1655
|
-
format?: string | ((value: any, context: CellContext) => string) | undefined;
|
|
1656
|
-
mask?: ((value: any) => any) | undefined;
|
|
1657
|
-
isGantt?: boolean | undefined;
|
|
1658
|
-
ganttComponent?: string | undefined;
|
|
1659
|
-
colspan?: number | undefined;
|
|
1660
|
-
originalIndex?: number | undefined;
|
|
1661
|
-
}[]>;
|
|
1662
|
-
config: Ref< {
|
|
1663
|
-
view?: "uncounted" | "list" | "list-expansion" | undefined;
|
|
1664
|
-
fullWidth?: boolean | undefined;
|
|
1665
|
-
rowActions?: {
|
|
1666
|
-
enabled: boolean;
|
|
1667
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1668
|
-
dropdownThreshold?: number | undefined;
|
|
1669
|
-
forceDropdown?: boolean | undefined;
|
|
1670
|
-
actions?: {
|
|
1671
|
-
add?: boolean | {
|
|
1672
|
-
enabled?: boolean | undefined;
|
|
1673
|
-
label?: string | undefined;
|
|
1674
|
-
icon?: string | undefined;
|
|
1675
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1676
|
-
} | undefined;
|
|
1677
|
-
delete?: boolean | {
|
|
1678
|
-
enabled?: boolean | undefined;
|
|
1679
|
-
label?: string | undefined;
|
|
1680
|
-
icon?: string | undefined;
|
|
1681
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1682
|
-
} | undefined;
|
|
1683
|
-
duplicate?: boolean | {
|
|
1684
|
-
enabled?: boolean | undefined;
|
|
1685
|
-
label?: string | undefined;
|
|
1686
|
-
icon?: string | undefined;
|
|
1687
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1688
|
-
} | undefined;
|
|
1689
|
-
insertAbove?: boolean | {
|
|
1690
|
-
enabled?: boolean | undefined;
|
|
1691
|
-
label?: string | undefined;
|
|
1692
|
-
icon?: string | undefined;
|
|
1693
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1694
|
-
} | undefined;
|
|
1695
|
-
insertBelow?: boolean | {
|
|
1696
|
-
enabled?: boolean | undefined;
|
|
1697
|
-
label?: string | undefined;
|
|
1698
|
-
icon?: string | undefined;
|
|
1699
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1700
|
-
} | undefined;
|
|
1701
|
-
move?: boolean | {
|
|
1702
|
-
enabled?: boolean | undefined;
|
|
1703
|
-
label?: string | undefined;
|
|
1704
|
-
icon?: string | undefined;
|
|
1705
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1706
|
-
} | undefined;
|
|
1707
|
-
} | undefined;
|
|
1708
|
-
} | undefined;
|
|
1709
|
-
} | {
|
|
1710
|
-
view: "tree";
|
|
1711
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
1712
|
-
fullWidth?: boolean | undefined;
|
|
1713
|
-
rowActions?: {
|
|
1714
|
-
enabled: boolean;
|
|
1715
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1716
|
-
dropdownThreshold?: number | undefined;
|
|
1717
|
-
forceDropdown?: boolean | undefined;
|
|
1718
|
-
actions?: {
|
|
1719
|
-
add?: boolean | {
|
|
1720
|
-
enabled?: boolean | undefined;
|
|
1721
|
-
label?: string | undefined;
|
|
1722
|
-
icon?: string | undefined;
|
|
1723
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1724
|
-
} | undefined;
|
|
1725
|
-
delete?: boolean | {
|
|
1726
|
-
enabled?: boolean | undefined;
|
|
1727
|
-
label?: string | undefined;
|
|
1728
|
-
icon?: string | undefined;
|
|
1729
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1730
|
-
} | undefined;
|
|
1731
|
-
duplicate?: boolean | {
|
|
1732
|
-
enabled?: boolean | undefined;
|
|
1733
|
-
label?: string | undefined;
|
|
1734
|
-
icon?: string | undefined;
|
|
1735
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1736
|
-
} | undefined;
|
|
1737
|
-
insertAbove?: boolean | {
|
|
1738
|
-
enabled?: boolean | undefined;
|
|
1739
|
-
label?: string | undefined;
|
|
1740
|
-
icon?: string | undefined;
|
|
1741
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1742
|
-
} | undefined;
|
|
1743
|
-
insertBelow?: boolean | {
|
|
1744
|
-
enabled?: boolean | undefined;
|
|
1745
|
-
label?: string | undefined;
|
|
1746
|
-
icon?: string | undefined;
|
|
1747
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1748
|
-
} | undefined;
|
|
1749
|
-
move?: boolean | {
|
|
1750
|
-
enabled?: boolean | undefined;
|
|
1751
|
-
label?: string | undefined;
|
|
1752
|
-
icon?: string | undefined;
|
|
1753
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1754
|
-
} | undefined;
|
|
1755
|
-
} | undefined;
|
|
1756
|
-
} | undefined;
|
|
1757
|
-
} | {
|
|
1758
|
-
view: "gantt";
|
|
1759
|
-
dependencyGraph?: boolean | undefined;
|
|
1760
|
-
fullWidth?: boolean | undefined;
|
|
1761
|
-
rowActions?: {
|
|
1762
|
-
enabled: boolean;
|
|
1763
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1764
|
-
dropdownThreshold?: number | undefined;
|
|
1765
|
-
forceDropdown?: boolean | undefined;
|
|
1766
|
-
actions?: {
|
|
1767
|
-
add?: boolean | {
|
|
1768
|
-
enabled?: boolean | undefined;
|
|
1769
|
-
label?: string | undefined;
|
|
1770
|
-
icon?: string | undefined;
|
|
1771
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1772
|
-
} | undefined;
|
|
1773
|
-
delete?: boolean | {
|
|
1774
|
-
enabled?: boolean | undefined;
|
|
1775
|
-
label?: string | undefined;
|
|
1776
|
-
icon?: string | undefined;
|
|
1777
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1778
|
-
} | undefined;
|
|
1779
|
-
duplicate?: boolean | {
|
|
1780
|
-
enabled?: boolean | undefined;
|
|
1781
|
-
label?: string | undefined;
|
|
1782
|
-
icon?: string | undefined;
|
|
1783
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1784
|
-
} | undefined;
|
|
1785
|
-
insertAbove?: boolean | {
|
|
1786
|
-
enabled?: boolean | undefined;
|
|
1787
|
-
label?: string | undefined;
|
|
1788
|
-
icon?: string | undefined;
|
|
1789
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1790
|
-
} | undefined;
|
|
1791
|
-
insertBelow?: boolean | {
|
|
1792
|
-
enabled?: boolean | undefined;
|
|
1793
|
-
label?: string | undefined;
|
|
1794
|
-
icon?: string | undefined;
|
|
1795
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1796
|
-
} | undefined;
|
|
1797
|
-
move?: boolean | {
|
|
1798
|
-
enabled?: boolean | undefined;
|
|
1799
|
-
label?: string | undefined;
|
|
1800
|
-
icon?: string | undefined;
|
|
1801
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1802
|
-
} | undefined;
|
|
1803
|
-
} | undefined;
|
|
1804
|
-
} | undefined;
|
|
1805
|
-
} | {
|
|
1806
|
-
view: "tree-gantt";
|
|
1807
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
1808
|
-
dependencyGraph?: boolean | 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
|
-
}, TableConfig | {
|
|
1855
|
-
view?: "uncounted" | "list" | "list-expansion" | undefined;
|
|
1856
|
-
fullWidth?: boolean | undefined;
|
|
1857
|
-
rowActions?: {
|
|
1858
|
-
enabled: boolean;
|
|
1859
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1860
|
-
dropdownThreshold?: number | undefined;
|
|
1861
|
-
forceDropdown?: boolean | undefined;
|
|
1862
|
-
actions?: {
|
|
1863
|
-
add?: boolean | {
|
|
1864
|
-
enabled?: boolean | undefined;
|
|
1865
|
-
label?: string | undefined;
|
|
1866
|
-
icon?: string | undefined;
|
|
1867
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1868
|
-
} | undefined;
|
|
1869
|
-
delete?: boolean | {
|
|
1870
|
-
enabled?: boolean | undefined;
|
|
1871
|
-
label?: string | undefined;
|
|
1872
|
-
icon?: string | undefined;
|
|
1873
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1874
|
-
} | undefined;
|
|
1875
|
-
duplicate?: boolean | {
|
|
1876
|
-
enabled?: boolean | undefined;
|
|
1877
|
-
label?: string | undefined;
|
|
1878
|
-
icon?: string | undefined;
|
|
1879
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1880
|
-
} | undefined;
|
|
1881
|
-
insertAbove?: boolean | {
|
|
1882
|
-
enabled?: boolean | undefined;
|
|
1883
|
-
label?: string | undefined;
|
|
1884
|
-
icon?: string | undefined;
|
|
1885
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1886
|
-
} | undefined;
|
|
1887
|
-
insertBelow?: boolean | {
|
|
1888
|
-
enabled?: boolean | undefined;
|
|
1889
|
-
label?: string | undefined;
|
|
1890
|
-
icon?: string | undefined;
|
|
1891
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1892
|
-
} | undefined;
|
|
1893
|
-
move?: boolean | {
|
|
1894
|
-
enabled?: boolean | undefined;
|
|
1895
|
-
label?: string | undefined;
|
|
1896
|
-
icon?: string | undefined;
|
|
1897
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1898
|
-
} | undefined;
|
|
1899
|
-
} | undefined;
|
|
1900
|
-
} | undefined;
|
|
1901
|
-
} | {
|
|
1902
|
-
view: "tree";
|
|
1903
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
1904
|
-
fullWidth?: boolean | undefined;
|
|
1905
|
-
rowActions?: {
|
|
1906
|
-
enabled: boolean;
|
|
1907
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1908
|
-
dropdownThreshold?: number | undefined;
|
|
1909
|
-
forceDropdown?: boolean | undefined;
|
|
1910
|
-
actions?: {
|
|
1911
|
-
add?: boolean | {
|
|
1912
|
-
enabled?: boolean | undefined;
|
|
1913
|
-
label?: string | undefined;
|
|
1914
|
-
icon?: string | undefined;
|
|
1915
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1916
|
-
} | undefined;
|
|
1917
|
-
delete?: boolean | {
|
|
1918
|
-
enabled?: boolean | undefined;
|
|
1919
|
-
label?: string | undefined;
|
|
1920
|
-
icon?: string | undefined;
|
|
1921
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1922
|
-
} | undefined;
|
|
1923
|
-
duplicate?: boolean | {
|
|
1924
|
-
enabled?: boolean | undefined;
|
|
1925
|
-
label?: string | undefined;
|
|
1926
|
-
icon?: string | undefined;
|
|
1927
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1928
|
-
} | undefined;
|
|
1929
|
-
insertAbove?: boolean | {
|
|
1930
|
-
enabled?: boolean | undefined;
|
|
1931
|
-
label?: string | undefined;
|
|
1932
|
-
icon?: string | undefined;
|
|
1933
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1934
|
-
} | undefined;
|
|
1935
|
-
insertBelow?: boolean | {
|
|
1936
|
-
enabled?: boolean | undefined;
|
|
1937
|
-
label?: string | undefined;
|
|
1938
|
-
icon?: string | undefined;
|
|
1939
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1940
|
-
} | undefined;
|
|
1941
|
-
move?: boolean | {
|
|
1942
|
-
enabled?: boolean | undefined;
|
|
1943
|
-
label?: string | undefined;
|
|
1944
|
-
icon?: string | undefined;
|
|
1945
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1946
|
-
} | undefined;
|
|
1947
|
-
} | undefined;
|
|
1948
|
-
} | undefined;
|
|
1949
|
-
} | {
|
|
1950
|
-
view: "gantt";
|
|
1951
|
-
dependencyGraph?: boolean | undefined;
|
|
1952
|
-
fullWidth?: boolean | undefined;
|
|
1953
|
-
rowActions?: {
|
|
1954
|
-
enabled: boolean;
|
|
1955
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
1956
|
-
dropdownThreshold?: number | undefined;
|
|
1957
|
-
forceDropdown?: boolean | undefined;
|
|
1958
|
-
actions?: {
|
|
1959
|
-
add?: boolean | {
|
|
1960
|
-
enabled?: boolean | undefined;
|
|
1961
|
-
label?: string | undefined;
|
|
1962
|
-
icon?: string | undefined;
|
|
1963
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1964
|
-
} | undefined;
|
|
1965
|
-
delete?: boolean | {
|
|
1966
|
-
enabled?: boolean | undefined;
|
|
1967
|
-
label?: string | undefined;
|
|
1968
|
-
icon?: string | undefined;
|
|
1969
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1970
|
-
} | undefined;
|
|
1971
|
-
duplicate?: boolean | {
|
|
1972
|
-
enabled?: boolean | undefined;
|
|
1973
|
-
label?: string | undefined;
|
|
1974
|
-
icon?: string | undefined;
|
|
1975
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1976
|
-
} | undefined;
|
|
1977
|
-
insertAbove?: boolean | {
|
|
1978
|
-
enabled?: boolean | undefined;
|
|
1979
|
-
label?: string | undefined;
|
|
1980
|
-
icon?: string | undefined;
|
|
1981
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1982
|
-
} | undefined;
|
|
1983
|
-
insertBelow?: boolean | {
|
|
1984
|
-
enabled?: boolean | undefined;
|
|
1985
|
-
label?: string | undefined;
|
|
1986
|
-
icon?: string | undefined;
|
|
1987
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1988
|
-
} | undefined;
|
|
1989
|
-
move?: boolean | {
|
|
1990
|
-
enabled?: boolean | undefined;
|
|
1991
|
-
label?: string | undefined;
|
|
1992
|
-
icon?: string | undefined;
|
|
1993
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
1994
|
-
} | undefined;
|
|
1995
|
-
} | undefined;
|
|
1996
|
-
} | undefined;
|
|
1997
|
-
} | {
|
|
1998
|
-
view: "tree-gantt";
|
|
1999
|
-
defaultTreeExpansion?: "root" | "branch" | "leaf" | undefined;
|
|
2000
|
-
dependencyGraph?: boolean | undefined;
|
|
2001
|
-
fullWidth?: boolean | undefined;
|
|
2002
|
-
rowActions?: {
|
|
2003
|
-
enabled: boolean;
|
|
2004
|
-
position?: "before-index" | "after-index" | "end" | undefined;
|
|
2005
|
-
dropdownThreshold?: number | undefined;
|
|
2006
|
-
forceDropdown?: boolean | undefined;
|
|
2007
|
-
actions?: {
|
|
2008
|
-
add?: boolean | {
|
|
2009
|
-
enabled?: boolean | undefined;
|
|
2010
|
-
label?: string | undefined;
|
|
2011
|
-
icon?: string | undefined;
|
|
2012
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
2013
|
-
} | undefined;
|
|
2014
|
-
delete?: boolean | {
|
|
2015
|
-
enabled?: boolean | undefined;
|
|
2016
|
-
label?: string | undefined;
|
|
2017
|
-
icon?: string | undefined;
|
|
2018
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
2019
|
-
} | undefined;
|
|
2020
|
-
duplicate?: boolean | {
|
|
2021
|
-
enabled?: boolean | undefined;
|
|
2022
|
-
label?: string | undefined;
|
|
2023
|
-
icon?: string | undefined;
|
|
2024
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
2025
|
-
} | undefined;
|
|
2026
|
-
insertAbove?: boolean | {
|
|
2027
|
-
enabled?: boolean | undefined;
|
|
2028
|
-
label?: string | undefined;
|
|
2029
|
-
icon?: string | undefined;
|
|
2030
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
2031
|
-
} | undefined;
|
|
2032
|
-
insertBelow?: boolean | {
|
|
2033
|
-
enabled?: boolean | undefined;
|
|
2034
|
-
label?: string | undefined;
|
|
2035
|
-
icon?: string | undefined;
|
|
2036
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
2037
|
-
} | undefined;
|
|
2038
|
-
move?: boolean | {
|
|
2039
|
-
enabled?: boolean | undefined;
|
|
2040
|
-
label?: string | undefined;
|
|
2041
|
-
icon?: string | undefined;
|
|
2042
|
-
handler?: ((rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean) | undefined;
|
|
2043
|
-
} | undefined;
|
|
2044
|
-
} | undefined;
|
|
2045
|
-
} | undefined;
|
|
2046
|
-
}>;
|
|
2047
|
-
connectionHandles: Ref< {
|
|
2048
|
-
id: string;
|
|
2049
|
-
rowIndex: number;
|
|
2050
|
-
colIndex: number;
|
|
2051
|
-
side: "left" | "right";
|
|
2052
|
-
position: {
|
|
2053
|
-
x: number;
|
|
2054
|
-
y: number;
|
|
2055
|
-
};
|
|
2056
|
-
visible: boolean;
|
|
2057
|
-
barId: string;
|
|
2058
|
-
}[], ConnectionHandle[] | {
|
|
2059
|
-
id: string;
|
|
2060
|
-
rowIndex: number;
|
|
2061
|
-
colIndex: number;
|
|
2062
|
-
side: "left" | "right";
|
|
2063
|
-
position: {
|
|
2064
|
-
x: number;
|
|
2065
|
-
y: number;
|
|
2066
|
-
};
|
|
2067
|
-
visible: boolean;
|
|
2068
|
-
barId: string;
|
|
2069
|
-
}[]>;
|
|
2070
|
-
connectionPaths: Ref< {
|
|
2071
|
-
id: string;
|
|
2072
|
-
from: {
|
|
2073
|
-
barId: string;
|
|
2074
|
-
side: "left" | "right";
|
|
2075
|
-
};
|
|
2076
|
-
to: {
|
|
2077
|
-
barId: string;
|
|
2078
|
-
side: "left" | "right";
|
|
2079
|
-
};
|
|
2080
|
-
style?: {
|
|
2081
|
-
color?: string | undefined;
|
|
2082
|
-
width?: number | undefined;
|
|
2083
|
-
} | undefined;
|
|
2084
|
-
label?: string | undefined;
|
|
2085
|
-
}[], ConnectionPath[] | {
|
|
2086
|
-
id: string;
|
|
2087
|
-
from: {
|
|
2088
|
-
barId: string;
|
|
2089
|
-
side: "left" | "right";
|
|
2090
|
-
};
|
|
2091
|
-
to: {
|
|
2092
|
-
barId: string;
|
|
2093
|
-
side: "left" | "right";
|
|
2094
|
-
};
|
|
2095
|
-
style?: {
|
|
2096
|
-
color?: string | undefined;
|
|
2097
|
-
width?: number | undefined;
|
|
2098
|
-
} | undefined;
|
|
2099
|
-
label?: string | undefined;
|
|
2100
|
-
}[]>;
|
|
2101
|
-
display: WritableComputedRef<TableDisplay[], TableDisplay[]>;
|
|
2102
|
-
filterState: Ref<FilterStateRecord, FilterStateRecord>;
|
|
2103
|
-
ganttBars: Ref< {
|
|
2104
|
-
id: string;
|
|
2105
|
-
rowIndex: number;
|
|
2106
|
-
colIndex: number;
|
|
2107
|
-
startIndex: number;
|
|
2108
|
-
endIndex: number;
|
|
2109
|
-
color: string;
|
|
2110
|
-
position: {
|
|
2111
|
-
x: number;
|
|
2112
|
-
y: number;
|
|
2113
|
-
};
|
|
2114
|
-
label?: string | undefined;
|
|
2115
|
-
}[], GanttBarInfo[] | {
|
|
2116
|
-
id: string;
|
|
2117
|
-
rowIndex: number;
|
|
2118
|
-
colIndex: number;
|
|
2119
|
-
startIndex: number;
|
|
2120
|
-
endIndex: number;
|
|
2121
|
-
color: string;
|
|
2122
|
-
position: {
|
|
2123
|
-
x: number;
|
|
2124
|
-
y: number;
|
|
2125
|
-
};
|
|
2126
|
-
label?: string | undefined;
|
|
2127
|
-
}[]>;
|
|
2128
|
-
modal: Ref< {
|
|
2129
|
-
visible?: boolean | undefined;
|
|
2130
|
-
cell?: (HTMLTableCellElement | null) | undefined;
|
|
2131
|
-
parent?: HTMLElement | undefined;
|
|
2132
|
-
colIndex?: number | undefined;
|
|
2133
|
-
rowIndex?: number | undefined;
|
|
2134
|
-
component?: string | undefined;
|
|
2135
|
-
componentProps?: Record<string, any> | undefined;
|
|
2136
|
-
bottom?: number | undefined;
|
|
2137
|
-
height?: number | undefined;
|
|
2138
|
-
left?: number | undefined;
|
|
2139
|
-
width?: number | undefined;
|
|
2140
|
-
}, TableModal | {
|
|
2141
|
-
visible?: boolean | undefined;
|
|
2142
|
-
cell?: (HTMLTableCellElement | null) | undefined;
|
|
2143
|
-
parent?: HTMLElement | undefined;
|
|
2144
|
-
colIndex?: number | undefined;
|
|
2145
|
-
rowIndex?: number | undefined;
|
|
2146
|
-
component?: string | undefined;
|
|
2147
|
-
componentProps?: Record<string, any> | undefined;
|
|
2148
|
-
bottom?: number | undefined;
|
|
2149
|
-
height?: number | undefined;
|
|
2150
|
-
left?: number | undefined;
|
|
2151
|
-
width?: number | undefined;
|
|
2152
|
-
}>;
|
|
2153
|
-
rows: Ref< {
|
|
2154
|
-
[x: string]: any;
|
|
2155
|
-
indent?: number | undefined;
|
|
2156
|
-
parent?: number | undefined;
|
|
2157
|
-
gantt?: {
|
|
2158
|
-
color?: string | undefined;
|
|
2159
|
-
startIndex?: number | undefined;
|
|
2160
|
-
endIndex?: number | undefined;
|
|
2161
|
-
colspan?: number | undefined;
|
|
2162
|
-
} | undefined;
|
|
2163
|
-
}[], TableRow[] | {
|
|
2164
|
-
[x: string]: any;
|
|
2165
|
-
indent?: number | undefined;
|
|
2166
|
-
parent?: number | undefined;
|
|
2167
|
-
gantt?: {
|
|
2168
|
-
color?: string | undefined;
|
|
2169
|
-
startIndex?: number | undefined;
|
|
2170
|
-
endIndex?: number | undefined;
|
|
2171
|
-
colspan?: number | undefined;
|
|
2172
|
-
} | undefined;
|
|
2173
|
-
}[]>;
|
|
2174
|
-
sortState: Ref< {
|
|
2175
|
-
column: number | null;
|
|
2176
|
-
direction: "asc" | "desc" | null;
|
|
2177
|
-
}, {
|
|
2178
|
-
column: number | null;
|
|
2179
|
-
direction: "asc" | "desc" | null;
|
|
2180
|
-
} | {
|
|
2181
|
-
column: number | null;
|
|
2182
|
-
direction: "asc" | "desc" | null;
|
|
2183
|
-
}>;
|
|
2184
|
-
table: ComputedRef< {}>;
|
|
2185
|
-
updates: Ref<Record<string, string>, Record<string, string>>;
|
|
2186
|
-
filteredRows: ComputedRef< {
|
|
2187
|
-
originalIndex: number;
|
|
2188
|
-
indent?: number | undefined;
|
|
2189
|
-
parent?: number | undefined;
|
|
2190
|
-
gantt?: {
|
|
2191
|
-
color?: string | undefined;
|
|
2192
|
-
startIndex?: number | undefined;
|
|
2193
|
-
endIndex?: number | undefined;
|
|
2194
|
-
colspan?: number | undefined;
|
|
2195
|
-
} | undefined;
|
|
2196
|
-
}[]>;
|
|
2197
|
-
hasPinnedColumns: ComputedRef<boolean>;
|
|
2198
|
-
isGanttView: ComputedRef<boolean>;
|
|
2199
|
-
isTreeView: ComputedRef<boolean>;
|
|
2200
|
-
isDependencyGraphEnabled: ComputedRef<boolean>;
|
|
2201
|
-
numberedRowWidth: ComputedRef<string>;
|
|
2202
|
-
zeroColumn: ComputedRef<boolean>;
|
|
2203
|
-
addRow: (rowData?: Partial<TableRow>, position?: "start" | "end" | number) => number;
|
|
2204
|
-
clearFilter: (colIndex: number) => void;
|
|
2205
|
-
closeModal: (event: MouseEvent) => void;
|
|
2206
|
-
createConnection: (fromHandleId: string, toHandleId: string, options?: {
|
|
2207
|
-
style?: ConnectionPath["style"];
|
|
2208
|
-
label?: string;
|
|
2209
|
-
}) => ConnectionPath | null;
|
|
2210
|
-
deleteConnection: (connectionId: string) => boolean;
|
|
2211
|
-
deleteRow: (rowIndex: number) => TableRow | null;
|
|
2212
|
-
duplicateRow: (rowIndex: number) => number;
|
|
2213
|
-
getCellData: <T = any>(colIndex: number, rowIndex: number) => T;
|
|
2214
|
-
getCellDisplayValue: (colIndex: number, rowIndex: number) => any;
|
|
2215
|
-
getConnectionsForBar: (barId: string) => {
|
|
2216
|
-
id: string;
|
|
2217
|
-
from: {
|
|
2218
|
-
barId: string;
|
|
2219
|
-
side: "left" | "right";
|
|
2220
|
-
};
|
|
2221
|
-
to: {
|
|
2222
|
-
barId: string;
|
|
2223
|
-
side: "left" | "right";
|
|
2224
|
-
};
|
|
2225
|
-
style?: {
|
|
2226
|
-
color?: string | undefined;
|
|
2227
|
-
width?: number | undefined;
|
|
2228
|
-
} | undefined;
|
|
2229
|
-
label?: string | undefined;
|
|
2230
|
-
}[];
|
|
2231
|
-
getFormattedValue: (colIndex: number, rowIndex: number, value: any) => any;
|
|
2232
|
-
getHandlesForBar: (barId: string) => {
|
|
2233
|
-
id: string;
|
|
2234
|
-
rowIndex: number;
|
|
2235
|
-
colIndex: number;
|
|
2236
|
-
side: "left" | "right";
|
|
2237
|
-
position: {
|
|
2238
|
-
x: number;
|
|
2239
|
-
y: number;
|
|
2240
|
-
};
|
|
2241
|
-
visible: boolean;
|
|
2242
|
-
barId: string;
|
|
2243
|
-
}[];
|
|
2244
|
-
getHeaderCellStyle: (column: TableColumn) => CSSProperties;
|
|
2245
|
-
getIndent: (colIndex: number, indentLevel?: number) => string;
|
|
2246
|
-
getRowExpandSymbol: (rowIndex: number) => "" | "▼" | "►";
|
|
2247
|
-
insertRowAbove: (rowIndex: number, rowData?: Partial<TableRow>) => number;
|
|
2248
|
-
insertRowBelow: (rowIndex: number, rowData?: Partial<TableRow>) => number;
|
|
2249
|
-
isRowGantt: (rowIndex: number) => boolean;
|
|
2250
|
-
isRowVisible: (rowIndex: number) => boolean | undefined;
|
|
2251
|
-
moveRow: (fromIndex: number, toIndex: number) => boolean;
|
|
2252
|
-
registerConnectionHandle: (handleInfo: ConnectionHandle) => void;
|
|
2253
|
-
registerGanttBar: (barInfo: GanttBarInfo) => void;
|
|
2254
|
-
resizeColumn: (colIndex: number, newWidth: number) => void;
|
|
2255
|
-
setCellData: (colIndex: number, rowIndex: number, value: any) => void;
|
|
2256
|
-
setCellText: (colIndex: number, rowIndex: number, value: string) => void;
|
|
2257
|
-
setFilter: (colIndex: number, filter: FilterState) => void;
|
|
2258
|
-
sortByColumn: (colIndex: number) => void;
|
|
2259
|
-
toggleRowExpand: (rowIndex: number) => void;
|
|
2260
|
-
unregisterConnectionHandle: (handleId: string) => void;
|
|
2261
|
-
unregisterGanttBar: (barId: string) => void;
|
|
2262
|
-
updateGanttBar: (event: GanttDragEvent) => void;
|
|
2263
|
-
updateRows: (newRows: TableRow[]) => void;
|
|
2264
|
-
}, "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">>;
|
|
2265
|
-
|
|
2266
85
|
/**
|
|
2267
86
|
* Creates a validator with the given registry
|
|
2268
87
|
* @param registry - Registry instance
|
|
@@ -2358,50 +177,6 @@ export declare class DoctypeMeta {
|
|
|
2358
177
|
get slug(): string;
|
|
2359
178
|
}
|
|
2360
179
|
|
|
2361
|
-
/**
|
|
2362
|
-
* Schema structure for defining nested doctype fields inside AForm
|
|
2363
|
-
*
|
|
2364
|
-
* @remarks
|
|
2365
|
-
* When a field has `fieldtype: 'Doctype'`, the `options` property contains the slug
|
|
2366
|
-
* of the referenced doctype. The `schema` property is populated by the framework's
|
|
2367
|
-
* `registry.resolveSchema()` method with the resolved child schema fields.
|
|
2368
|
-
*
|
|
2369
|
-
* Before resolution: `{ fieldname: 'address', fieldtype: 'Doctype', options: 'address' }`
|
|
2370
|
-
* After resolution: `{ fieldname: 'address', fieldtype: 'Doctype', options: 'address', schema: [...resolved fields...] }`
|
|
2371
|
-
*
|
|
2372
|
-
* Users can also manually provide the `schema` property without using the framework registry.
|
|
2373
|
-
*
|
|
2374
|
-
* @public
|
|
2375
|
-
*/
|
|
2376
|
-
export declare type DoctypeSchema = BaseSchema & {
|
|
2377
|
-
/**
|
|
2378
|
-
* The field type - must be 'Doctype' for nested doctype fields
|
|
2379
|
-
* @public
|
|
2380
|
-
*/
|
|
2381
|
-
fieldtype: 'Doctype';
|
|
2382
|
-
/**
|
|
2383
|
-
* The slug of the referenced doctype in the registry
|
|
2384
|
-
* @public
|
|
2385
|
-
*/
|
|
2386
|
-
options: string;
|
|
2387
|
-
/**
|
|
2388
|
-
* The label to display above the nested form section
|
|
2389
|
-
* @public
|
|
2390
|
-
*/
|
|
2391
|
-
label?: string;
|
|
2392
|
-
/**
|
|
2393
|
-
* The resolved child schema fields, populated by `registry.resolveSchema()`
|
|
2394
|
-
* or provided manually for standalone usage
|
|
2395
|
-
* @public
|
|
2396
|
-
*/
|
|
2397
|
-
schema?: SchemaTypes[];
|
|
2398
|
-
/**
|
|
2399
|
-
* Indicate whether the nested form is read-only
|
|
2400
|
-
* @public
|
|
2401
|
-
*/
|
|
2402
|
-
readOnly?: boolean;
|
|
2403
|
-
};
|
|
2404
|
-
|
|
2405
180
|
/**
|
|
2406
181
|
* Supported action types for field triggers
|
|
2407
182
|
* @public
|
|
@@ -2445,28 +220,6 @@ export declare interface FieldChangeContext {
|
|
|
2445
220
|
store?: HSTNode;
|
|
2446
221
|
}
|
|
2447
222
|
|
|
2448
|
-
/**
|
|
2449
|
-
* Schema structure for defining fieldsets inside AForm
|
|
2450
|
-
* @public
|
|
2451
|
-
*/
|
|
2452
|
-
export declare type FieldsetSchema = BaseSchema & {
|
|
2453
|
-
/**
|
|
2454
|
-
* The label to display in the fieldset
|
|
2455
|
-
* @public
|
|
2456
|
-
*/
|
|
2457
|
-
label?: string;
|
|
2458
|
-
/**
|
|
2459
|
-
* The schemas to be rendered inside the fieldset
|
|
2460
|
-
* @public
|
|
2461
|
-
*/
|
|
2462
|
-
schema?: (FormSchema | TableSchema)[];
|
|
2463
|
-
/**
|
|
2464
|
-
* Indicate whether the fieldset is collapsible
|
|
2465
|
-
* @public
|
|
2466
|
-
*/
|
|
2467
|
-
collapsible?: boolean;
|
|
2468
|
-
};
|
|
2469
|
-
|
|
2470
223
|
/**
|
|
2471
224
|
* Configuration for a single field trigger
|
|
2472
225
|
* @public
|
|
@@ -2654,200 +407,6 @@ export declare interface FieldTriggerOptions {
|
|
|
2654
407
|
enableRollback?: boolean;
|
|
2655
408
|
}
|
|
2656
409
|
|
|
2657
|
-
/**
|
|
2658
|
-
* Represents the state of a single filter
|
|
2659
|
-
* @public
|
|
2660
|
-
*/
|
|
2661
|
-
declare interface FilterState {
|
|
2662
|
-
/** The main filter value */
|
|
2663
|
-
value: any;
|
|
2664
|
-
/** Start value for date range filters */
|
|
2665
|
-
startValue?: any;
|
|
2666
|
-
/** End value for date range filters */
|
|
2667
|
-
endValue?: any;
|
|
2668
|
-
}
|
|
2669
|
-
|
|
2670
|
-
/**
|
|
2671
|
-
* Record mapping column indices to their filter states
|
|
2672
|
-
* @public
|
|
2673
|
-
*/
|
|
2674
|
-
declare type FilterStateRecord = Record<number, FilterState>;
|
|
2675
|
-
|
|
2676
|
-
/**
|
|
2677
|
-
* Schema structure for defining forms inside AForm
|
|
2678
|
-
* @public
|
|
2679
|
-
*/
|
|
2680
|
-
export declare type FormSchema = BaseSchema & {
|
|
2681
|
-
/**
|
|
2682
|
-
* Align the field in the form
|
|
2683
|
-
* @beta
|
|
2684
|
-
*/
|
|
2685
|
-
align?: string;
|
|
2686
|
-
/**
|
|
2687
|
-
* Indicate whether the field is editable
|
|
2688
|
-
* @beta
|
|
2689
|
-
*/
|
|
2690
|
-
edit?: boolean;
|
|
2691
|
-
/**
|
|
2692
|
-
* The field type for the schema field
|
|
2693
|
-
*
|
|
2694
|
-
* @remarks
|
|
2695
|
-
* This must be a string that represents the field type. A mask string will be automatically
|
|
2696
|
-
* applied for the following field types:
|
|
2697
|
-
* - Date ('##/##/####')
|
|
2698
|
-
* - Datetime ('####/##/## ##:##')
|
|
2699
|
-
* - Time ('##:##')
|
|
2700
|
-
* - Fulltime ('##:##:##')
|
|
2701
|
-
* - Phone ('(###) ### - ####')
|
|
2702
|
-
* - Card ('#### #### #### ####')
|
|
2703
|
-
*
|
|
2704
|
-
* @public
|
|
2705
|
-
*/
|
|
2706
|
-
fieldtype?: string;
|
|
2707
|
-
/**
|
|
2708
|
-
* The label to display in the form
|
|
2709
|
-
* @public
|
|
2710
|
-
*/
|
|
2711
|
-
label?: string;
|
|
2712
|
-
/**
|
|
2713
|
-
* The unique identifier for the field
|
|
2714
|
-
* @beta
|
|
2715
|
-
*/
|
|
2716
|
-
name?: string;
|
|
2717
|
-
/**
|
|
2718
|
-
* The width of the field element.
|
|
2719
|
-
* @beta
|
|
2720
|
-
*/
|
|
2721
|
-
width?: string;
|
|
2722
|
-
/**
|
|
2723
|
-
* The mask string for the field
|
|
2724
|
-
* @beta
|
|
2725
|
-
*/
|
|
2726
|
-
mask?: string;
|
|
2727
|
-
};
|
|
2728
|
-
|
|
2729
|
-
/**
|
|
2730
|
-
* Gantt bar information for VueFlow integration.
|
|
2731
|
-
* @public
|
|
2732
|
-
*/
|
|
2733
|
-
export declare interface GanttBarInfo {
|
|
2734
|
-
/**
|
|
2735
|
-
* Unique identifier for the gantt bar.
|
|
2736
|
-
*/
|
|
2737
|
-
id: string;
|
|
2738
|
-
/**
|
|
2739
|
-
* The row index of the gantt bar.
|
|
2740
|
-
*/
|
|
2741
|
-
rowIndex: number;
|
|
2742
|
-
/**
|
|
2743
|
-
* The primary column index of the gantt bar (typically the start index).
|
|
2744
|
-
*/
|
|
2745
|
-
colIndex: number;
|
|
2746
|
-
/**
|
|
2747
|
-
* Starting column index of the gantt bar.
|
|
2748
|
-
*/
|
|
2749
|
-
startIndex: Ref<number>;
|
|
2750
|
-
/**
|
|
2751
|
-
* Ending column index of the gantt bar.
|
|
2752
|
-
*/
|
|
2753
|
-
endIndex: Ref<number>;
|
|
2754
|
-
/**
|
|
2755
|
-
* Color of the gantt bar.
|
|
2756
|
-
*/
|
|
2757
|
-
color: Ref<string>;
|
|
2758
|
-
/**
|
|
2759
|
-
* The position of the gantt bar in the ATable component.
|
|
2760
|
-
*/
|
|
2761
|
-
position: {
|
|
2762
|
-
x: ShallowRef<number>;
|
|
2763
|
-
y: ShallowRef<number>;
|
|
2764
|
-
};
|
|
2765
|
-
/**
|
|
2766
|
-
* Display label for the gantt bar.
|
|
2767
|
-
*/
|
|
2768
|
-
label?: string;
|
|
2769
|
-
}
|
|
2770
|
-
|
|
2771
|
-
/**
|
|
2772
|
-
* Gantt table drag event definition.
|
|
2773
|
-
* @public
|
|
2774
|
-
*/
|
|
2775
|
-
export declare type GanttDragEvent = {
|
|
2776
|
-
rowIndex: number;
|
|
2777
|
-
colIndex: number;
|
|
2778
|
-
delta: number;
|
|
2779
|
-
} & ({
|
|
2780
|
-
type: 'bar';
|
|
2781
|
-
oldStart: number;
|
|
2782
|
-
oldEnd: number;
|
|
2783
|
-
newStart: number;
|
|
2784
|
-
newEnd: number;
|
|
2785
|
-
colspan: number;
|
|
2786
|
-
} | {
|
|
2787
|
-
type: 'resize';
|
|
2788
|
-
edge: 'start';
|
|
2789
|
-
oldStart: number;
|
|
2790
|
-
newStart: number;
|
|
2791
|
-
end: number;
|
|
2792
|
-
oldColspan: number;
|
|
2793
|
-
newColspan: number;
|
|
2794
|
-
} | {
|
|
2795
|
-
type: 'resize';
|
|
2796
|
-
edge: 'end';
|
|
2797
|
-
oldEnd: number;
|
|
2798
|
-
newEnd: number;
|
|
2799
|
-
start: number;
|
|
2800
|
-
oldColspan: number;
|
|
2801
|
-
newColspan: number;
|
|
2802
|
-
});
|
|
2803
|
-
|
|
2804
|
-
/**
|
|
2805
|
-
* Gantt chart options for table rows.
|
|
2806
|
-
* @public
|
|
2807
|
-
*/
|
|
2808
|
-
export declare interface GanttOptions {
|
|
2809
|
-
/**
|
|
2810
|
-
* The color to be applied to the row's gantt bar.
|
|
2811
|
-
*
|
|
2812
|
-
* @defaultValue '#cccccc'
|
|
2813
|
-
*/
|
|
2814
|
-
color?: string;
|
|
2815
|
-
/**
|
|
2816
|
-
* The starting column index for the gantt bar.
|
|
2817
|
-
*
|
|
2818
|
-
* @defaultValue 0
|
|
2819
|
-
*/
|
|
2820
|
-
startIndex?: number;
|
|
2821
|
-
/**
|
|
2822
|
-
* The ending column index for the gantt bar. If endIndex and colspan are not provided,
|
|
2823
|
-
* the bar will stretch to the end of the table.
|
|
2824
|
-
*/
|
|
2825
|
-
endIndex?: number;
|
|
2826
|
-
/**
|
|
2827
|
-
* The length of the gantt bar in columns. Useful when only the start index is provided.
|
|
2828
|
-
* If colspan and endIndex are not provided, the bar will stretch to the end of the table.
|
|
2829
|
-
*/
|
|
2830
|
-
colspan?: number;
|
|
2831
|
-
}
|
|
2832
|
-
|
|
2833
|
-
/**
|
|
2834
|
-
* Table configuration for gantt view types.
|
|
2835
|
-
* @public
|
|
2836
|
-
*/
|
|
2837
|
-
export declare interface GanttTableConfig extends BaseTableConfig {
|
|
2838
|
-
/**
|
|
2839
|
-
* The type of view to display the table in.
|
|
2840
|
-
*/
|
|
2841
|
-
view: 'gantt';
|
|
2842
|
-
/**
|
|
2843
|
-
* Control whether dependency graph connections should be enabled for Gantt views.
|
|
2844
|
-
* When false, connection handles and dependency lines will be hidden.
|
|
2845
|
-
*
|
|
2846
|
-
* @defaultValue true
|
|
2847
|
-
*/
|
|
2848
|
-
dependencyGraph?: boolean;
|
|
2849
|
-
}
|
|
2850
|
-
|
|
2851
410
|
/**
|
|
2852
411
|
* Get or create the global field trigger engine singleton
|
|
2853
412
|
* @param options - Optional configuration for the field trigger engine
|
|
@@ -3320,152 +879,26 @@ export declare class Registry {
|
|
|
3320
879
|
* @param schema - The schema array to derive defaults from
|
|
3321
880
|
* @returns A plain object with default values for each field
|
|
3322
881
|
*
|
|
3323
|
-
* @example
|
|
3324
|
-
* ```ts
|
|
3325
|
-
* const defaults = registry.initializeRecord(addressSchema)
|
|
3326
|
-
* // { street: '', city: '', state: '', zip_code: '' }
|
|
3327
|
-
* ```
|
|
3328
|
-
*
|
|
3329
|
-
* @public
|
|
3330
|
-
*/
|
|
3331
|
-
initializeRecord(schema: SchemaTypes[]): Record<string, any>;
|
|
3332
|
-
}
|
|
3333
|
-
|
|
3334
|
-
/**
|
|
3335
|
-
* Route context passed to getMeta function
|
|
3336
|
-
* @public
|
|
3337
|
-
*/
|
|
3338
|
-
export declare interface RouteContext {
|
|
3339
|
-
/** The full route path (e.g., "/todo/1" or "/todo") */
|
|
3340
|
-
path: string;
|
|
3341
|
-
/** Path segments split by "/" (e.g., ["todo", "1"] or ["todo"]) */
|
|
3342
|
-
segments: string[];
|
|
3343
|
-
}
|
|
3344
|
-
|
|
3345
|
-
/**
|
|
3346
|
-
* Options for configuring individual row actions.
|
|
3347
|
-
* @public
|
|
3348
|
-
*/
|
|
3349
|
-
export declare interface RowActionOptions {
|
|
3350
|
-
/**
|
|
3351
|
-
* Whether the action is enabled.
|
|
3352
|
-
*
|
|
3353
|
-
* @defaultValue true
|
|
3354
|
-
*/
|
|
3355
|
-
enabled?: boolean;
|
|
3356
|
-
/**
|
|
3357
|
-
* Custom label for the action (used in dropdown mode).
|
|
3358
|
-
*/
|
|
3359
|
-
label?: string;
|
|
3360
|
-
/**
|
|
3361
|
-
* Custom icon override (raw SVG string).
|
|
3362
|
-
*/
|
|
3363
|
-
icon?: string;
|
|
3364
|
-
/**
|
|
3365
|
-
* Custom handler for the action. Return false to prevent the default behavior.
|
|
3366
|
-
*
|
|
3367
|
-
* @param rowIndex - The index of the row the action is being performed on
|
|
3368
|
-
* @param store - The table store instance
|
|
3369
|
-
* @returns void or false to prevent default behavior
|
|
3370
|
-
*/
|
|
3371
|
-
handler?: (rowIndex: number, store: ReturnType<typeof createTableStore>) => void | boolean;
|
|
3372
|
-
}
|
|
3373
|
-
|
|
3374
|
-
/**
|
|
3375
|
-
* Configuration for row-level actions (add, delete, duplicate, etc.).
|
|
3376
|
-
* @public
|
|
3377
|
-
*/
|
|
3378
|
-
export declare interface RowActionsConfig {
|
|
3379
|
-
/**
|
|
3380
|
-
* Whether row actions are enabled.
|
|
3381
|
-
*
|
|
3382
|
-
* @defaultValue false
|
|
3383
|
-
*/
|
|
3384
|
-
enabled: boolean;
|
|
3385
|
-
/**
|
|
3386
|
-
* Position of the row actions column relative to the index column.
|
|
3387
|
-
*
|
|
3388
|
-
* @defaultValue 'before-index'
|
|
3389
|
-
*/
|
|
3390
|
-
position?: 'before-index' | 'after-index' | 'end';
|
|
3391
|
-
/**
|
|
3392
|
-
* Pixel width threshold at which to switch from icons to dropdown mode.
|
|
3393
|
-
* Set to 0 to always use icons, or a large number to always use dropdown.
|
|
3394
|
-
*
|
|
3395
|
-
* @defaultValue 150
|
|
3396
|
-
*/
|
|
3397
|
-
dropdownThreshold?: number;
|
|
3398
|
-
/**
|
|
3399
|
-
* Force dropdown mode regardless of available width.
|
|
3400
|
-
*
|
|
3401
|
-
* @defaultValue false
|
|
3402
|
-
*/
|
|
3403
|
-
forceDropdown?: boolean;
|
|
3404
|
-
/**
|
|
3405
|
-
* Configuration for individual actions. Set to true to enable with defaults,
|
|
3406
|
-
* false to disable, or provide RowActionOptions for custom configuration.
|
|
3407
|
-
*/
|
|
3408
|
-
actions?: {
|
|
3409
|
-
add?: boolean | RowActionOptions;
|
|
3410
|
-
delete?: boolean | RowActionOptions;
|
|
3411
|
-
duplicate?: boolean | RowActionOptions;
|
|
3412
|
-
insertAbove?: boolean | RowActionOptions;
|
|
3413
|
-
insertBelow?: boolean | RowActionOptions;
|
|
3414
|
-
move?: boolean | RowActionOptions;
|
|
3415
|
-
};
|
|
3416
|
-
}
|
|
3417
|
-
|
|
3418
|
-
/**
|
|
3419
|
-
* Row action type identifiers.
|
|
3420
|
-
* @public
|
|
3421
|
-
*/
|
|
3422
|
-
export declare type RowActionType = 'add' | 'delete' | 'duplicate' | 'insertAbove' | 'insertBelow' | 'move';
|
|
3423
|
-
|
|
3424
|
-
/**
|
|
3425
|
-
* Event payload for row:add event.
|
|
3426
|
-
* @public
|
|
3427
|
-
*/
|
|
3428
|
-
export declare interface RowAddEvent {
|
|
3429
|
-
rowIndex: number;
|
|
3430
|
-
row: TableRow;
|
|
3431
|
-
}
|
|
3432
|
-
|
|
3433
|
-
/**
|
|
3434
|
-
* Event payload for row:delete event.
|
|
3435
|
-
* @public
|
|
3436
|
-
*/
|
|
3437
|
-
export declare interface RowDeleteEvent {
|
|
3438
|
-
rowIndex: number;
|
|
3439
|
-
row: TableRow;
|
|
3440
|
-
}
|
|
3441
|
-
|
|
3442
|
-
/**
|
|
3443
|
-
* Event payload for row:duplicate event.
|
|
3444
|
-
* @public
|
|
3445
|
-
*/
|
|
3446
|
-
export declare interface RowDuplicateEvent {
|
|
3447
|
-
sourceIndex: number;
|
|
3448
|
-
newIndex: number;
|
|
3449
|
-
row: TableRow;
|
|
3450
|
-
}
|
|
3451
|
-
|
|
3452
|
-
/**
|
|
3453
|
-
* Event payload for row:insert-above and row:insert-below events.
|
|
3454
|
-
* @public
|
|
3455
|
-
*/
|
|
3456
|
-
export declare interface RowInsertEvent {
|
|
3457
|
-
targetIndex: number;
|
|
3458
|
-
newIndex: number;
|
|
3459
|
-
row: TableRow;
|
|
882
|
+
* @example
|
|
883
|
+
* ```ts
|
|
884
|
+
* const defaults = registry.initializeRecord(addressSchema)
|
|
885
|
+
* // { street: '', city: '', state: '', zip_code: '' }
|
|
886
|
+
* ```
|
|
887
|
+
*
|
|
888
|
+
* @public
|
|
889
|
+
*/
|
|
890
|
+
initializeRecord(schema: SchemaTypes[]): Record<string, any>;
|
|
3460
891
|
}
|
|
3461
892
|
|
|
3462
893
|
/**
|
|
3463
|
-
*
|
|
894
|
+
* Route context passed to getMeta function
|
|
3464
895
|
* @public
|
|
3465
896
|
*/
|
|
3466
|
-
export declare interface
|
|
3467
|
-
|
|
3468
|
-
|
|
897
|
+
export declare interface RouteContext {
|
|
898
|
+
/** The full route path (e.g., "/todo/1" or "/todo") */
|
|
899
|
+
path: string;
|
|
900
|
+
/** Path segments split by "/" (e.g., ["todo", "1"] or ["todo"]) */
|
|
901
|
+
segments: string[];
|
|
3469
902
|
}
|
|
3470
903
|
|
|
3471
904
|
/**
|
|
@@ -3477,12 +910,6 @@ export declare type Schema = {
|
|
|
3477
910
|
schema: List<SchemaTypes>;
|
|
3478
911
|
};
|
|
3479
912
|
|
|
3480
|
-
/**
|
|
3481
|
-
* Superset of all schema types for AForm
|
|
3482
|
-
* @public
|
|
3483
|
-
*/
|
|
3484
|
-
export declare type SchemaTypes = FormSchema | TableSchema | FieldsetSchema | DoctypeSchema | TableDoctypeSchema;
|
|
3485
|
-
|
|
3486
913
|
/**
|
|
3487
914
|
* Schema validator class
|
|
3488
915
|
* @public
|
|
@@ -3900,433 +1327,6 @@ export declare class Stonecrop {
|
|
|
3900
1327
|
getStore(): HSTNode;
|
|
3901
1328
|
}
|
|
3902
1329
|
|
|
3903
|
-
/**
|
|
3904
|
-
* Table column definition.
|
|
3905
|
-
* @public
|
|
3906
|
-
*/
|
|
3907
|
-
export declare interface TableColumn {
|
|
3908
|
-
/**
|
|
3909
|
-
* The key of the column. This is used to identify the column in the table.
|
|
3910
|
-
*/
|
|
3911
|
-
name: string;
|
|
3912
|
-
/**
|
|
3913
|
-
* The alignment of the column. Possible values:
|
|
3914
|
-
* - `left` - left aligned
|
|
3915
|
-
* - `center` - center aligned
|
|
3916
|
-
* - `right` - right aligned
|
|
3917
|
-
* - `start` - aligned to the start of the column
|
|
3918
|
-
* - `end` - aligned to the end of the column
|
|
3919
|
-
*
|
|
3920
|
-
* @defaultValue 'center'
|
|
3921
|
-
*/
|
|
3922
|
-
align?: CanvasTextAlign;
|
|
3923
|
-
/**
|
|
3924
|
-
* Control whether cells for the column is editable.
|
|
3925
|
-
*
|
|
3926
|
-
* @defaultValue false
|
|
3927
|
-
*/
|
|
3928
|
-
edit?: boolean;
|
|
3929
|
-
/**
|
|
3930
|
-
* The label of the column. This is displayed in the table header.
|
|
3931
|
-
*
|
|
3932
|
-
* @defaultValue If no label is provided, a character will be assigned alphabetically,
|
|
3933
|
-
* starting from 'A' for the first column, 'B' for the second column, and so on.
|
|
3934
|
-
*/
|
|
3935
|
-
label?: string;
|
|
3936
|
-
/**
|
|
3937
|
-
* The semantic field type of the column. Uses the same StonecropFieldType enum as forms.
|
|
3938
|
-
* Common values: 'Data', 'Text', 'Int', 'Float', 'Date', 'Select', 'Link', 'Check', etc.
|
|
3939
|
-
*
|
|
3940
|
-
* @public
|
|
3941
|
-
*/
|
|
3942
|
-
fieldtype?: string;
|
|
3943
|
-
/**
|
|
3944
|
-
* The width of the column. This can be a number (in pixels) or a string (in CSS units).
|
|
3945
|
-
*
|
|
3946
|
-
* @defaultValue '40ch'
|
|
3947
|
-
*/
|
|
3948
|
-
width?: string;
|
|
3949
|
-
/**
|
|
3950
|
-
* Control whether the column should be pinned to the table.
|
|
3951
|
-
*
|
|
3952
|
-
* @defaultValue false
|
|
3953
|
-
*/
|
|
3954
|
-
pinned?: boolean;
|
|
3955
|
-
/**
|
|
3956
|
-
* Control whether the column can be resized by the user.
|
|
3957
|
-
*
|
|
3958
|
-
* @defaultValue false
|
|
3959
|
-
*/
|
|
3960
|
-
resizable?: boolean;
|
|
3961
|
-
/**
|
|
3962
|
-
* Control whether the column should be sortable.
|
|
3963
|
-
*
|
|
3964
|
-
* @defaultValue true
|
|
3965
|
-
*/
|
|
3966
|
-
sortable?: boolean;
|
|
3967
|
-
/**
|
|
3968
|
-
* Control whether the column should be filterable and define filter configuration.
|
|
3969
|
-
*
|
|
3970
|
-
* @defaultValue true
|
|
3971
|
-
*/
|
|
3972
|
-
filterable?: boolean;
|
|
3973
|
-
/**
|
|
3974
|
-
* The type of filter for the column.
|
|
3975
|
-
*
|
|
3976
|
-
* @defaultValue 'text'
|
|
3977
|
-
*/
|
|
3978
|
-
filterType?: 'text' | 'select' | 'number' | 'date' | 'dateRange' | 'checkbox' | 'component';
|
|
3979
|
-
/**
|
|
3980
|
-
* Options for select-type filters.
|
|
3981
|
-
*/
|
|
3982
|
-
filterOptions?: any[];
|
|
3983
|
-
/**
|
|
3984
|
-
* Custom component for filtering.
|
|
3985
|
-
*/
|
|
3986
|
-
filterComponent?: string;
|
|
3987
|
-
/**
|
|
3988
|
-
* The component to use to render the cell for the column. If not provided, the table will
|
|
3989
|
-
* render the default `<td>` element.
|
|
3990
|
-
*/
|
|
3991
|
-
cellComponent?: string;
|
|
3992
|
-
/**
|
|
3993
|
-
* Additional properties to pass to the table's cell component.
|
|
3994
|
-
*
|
|
3995
|
-
* Only applicable if the `cellComponent` property is set for the column.
|
|
3996
|
-
*/
|
|
3997
|
-
cellComponentProps?: Record<string, any>;
|
|
3998
|
-
/**
|
|
3999
|
-
* The component to use for the modal. If a function is provided, it will be called with the cell context.
|
|
4000
|
-
* The following properties are available on the cell context:
|
|
4001
|
-
* - `row` - the row object
|
|
4002
|
-
* - `column` - the column object
|
|
4003
|
-
* - `table` - the table object
|
|
4004
|
-
*
|
|
4005
|
-
* The function should return the name of the component to use for the modal.
|
|
4006
|
-
*
|
|
4007
|
-
* Additionally, the following properties will be automatically passed to the modal component:
|
|
4008
|
-
* - `colIndex` - the column index of the current cell
|
|
4009
|
-
* - `rowIndex` - the row index of the current cell
|
|
4010
|
-
* - `store` - the table data store
|
|
4011
|
-
*/
|
|
4012
|
-
modalComponent?: string | ((context: CellContext) => string);
|
|
4013
|
-
/**
|
|
4014
|
-
* Additional properties to pass to the modal component.
|
|
4015
|
-
*
|
|
4016
|
-
* Only applicable if the `modalComponent` property is set for the column.
|
|
4017
|
-
*/
|
|
4018
|
-
modalComponentExtraProps?: Record<string, any>;
|
|
4019
|
-
/**
|
|
4020
|
-
* The format function to use to format the value of the cell. This can either be a normal or stringified
|
|
4021
|
-
* function that takes the value and the cell context and returns a string.
|
|
4022
|
-
*/
|
|
4023
|
-
format?: string | ((value: any, context: CellContext) => string);
|
|
4024
|
-
/**
|
|
4025
|
-
* The masking function to use to apply an input mask to the cell. This will accept an input value and
|
|
4026
|
-
* return the masked value.
|
|
4027
|
-
*/
|
|
4028
|
-
mask?: (value: any) => any;
|
|
4029
|
-
/**
|
|
4030
|
-
* Whether the column is a Gantt column.
|
|
4031
|
-
*
|
|
4032
|
-
* Only applicable for Gantt tables.
|
|
4033
|
-
*
|
|
4034
|
-
* @defaultValue false
|
|
4035
|
-
*/
|
|
4036
|
-
isGantt?: boolean;
|
|
4037
|
-
/**
|
|
4038
|
-
* The component to use to render the Gantt bar for the column.
|
|
4039
|
-
*
|
|
4040
|
-
* Only applicable for Gantt tables.
|
|
4041
|
-
*
|
|
4042
|
-
* @defaultValue 'AGanttCell'
|
|
4043
|
-
*/
|
|
4044
|
-
ganttComponent?: string;
|
|
4045
|
-
/**
|
|
4046
|
-
* The colspan of the Gantt bar for the column. This determines how many columns
|
|
4047
|
-
* the Gantt bar should span across.
|
|
4048
|
-
*
|
|
4049
|
-
* Only applicable for Gantt tables.
|
|
4050
|
-
*
|
|
4051
|
-
* @defaultValue The number of columns in the table, excluding any pinned columns.
|
|
4052
|
-
*/
|
|
4053
|
-
colspan?: number;
|
|
4054
|
-
/**
|
|
4055
|
-
* The original column index for the Gantt bar, excluding any pinned columns.
|
|
4056
|
-
* This is evaluated automatically while rendering the table.
|
|
4057
|
-
*
|
|
4058
|
-
* Only applicable for Gantt tables.
|
|
4059
|
-
*
|
|
4060
|
-
* @defaultValue 0
|
|
4061
|
-
*/
|
|
4062
|
-
originalIndex?: number;
|
|
4063
|
-
}
|
|
4064
|
-
|
|
4065
|
-
/**
|
|
4066
|
-
* Table configuration definition using discriminated unions for type safety.
|
|
4067
|
-
* @public
|
|
4068
|
-
*/
|
|
4069
|
-
export declare type TableConfig = BasicTableConfig | TreeTableConfig | GanttTableConfig | TreeGanttTableConfig;
|
|
4070
|
-
|
|
4071
|
-
/**
|
|
4072
|
-
* Table display definition.
|
|
4073
|
-
* @public
|
|
4074
|
-
*/
|
|
4075
|
-
export declare interface TableDisplay {
|
|
4076
|
-
/**
|
|
4077
|
-
* Indicates whether a row node is expanded or collapsed.
|
|
4078
|
-
*
|
|
4079
|
-
* Only applicable for list-expansion views.
|
|
4080
|
-
*
|
|
4081
|
-
* @defaultValue false
|
|
4082
|
-
*/
|
|
4083
|
-
expanded?: boolean;
|
|
4084
|
-
/**
|
|
4085
|
-
* Indicates whether a row node's child nodes are open or closed.
|
|
4086
|
-
*
|
|
4087
|
-
* Only applicable for tree views.
|
|
4088
|
-
*
|
|
4089
|
-
* @defaultValue false
|
|
4090
|
-
*/
|
|
4091
|
-
childrenOpen?: boolean;
|
|
4092
|
-
/**
|
|
4093
|
-
* Indicates whether a row node is a parent node. This is evaluated automatically
|
|
4094
|
-
* while rendering the table.
|
|
4095
|
-
*
|
|
4096
|
-
* Only applicable for tree views.
|
|
4097
|
-
*/
|
|
4098
|
-
isParent?: boolean;
|
|
4099
|
-
/**
|
|
4100
|
-
* Indicates whether a row node is a root node. This is evaluated automatically
|
|
4101
|
-
* while rendering the table.
|
|
4102
|
-
*
|
|
4103
|
-
* Only applicable for tree views.
|
|
4104
|
-
*/
|
|
4105
|
-
isRoot?: boolean;
|
|
4106
|
-
/**
|
|
4107
|
-
* Indicates whether a row node is visible. This is evaluated automatically
|
|
4108
|
-
* while rendering the table.
|
|
4109
|
-
*
|
|
4110
|
-
* Only applicable for tree views.
|
|
4111
|
-
*/
|
|
4112
|
-
open?: boolean;
|
|
4113
|
-
/**
|
|
4114
|
-
* The indentation level of the row node.
|
|
4115
|
-
*
|
|
4116
|
-
* Only applicable for tree and gantt views.
|
|
4117
|
-
*
|
|
4118
|
-
* @defaultValue 0
|
|
4119
|
-
*/
|
|
4120
|
-
indent?: number;
|
|
4121
|
-
/**
|
|
4122
|
-
* The HTML parent element for the row node. This is evaluated automatically while rendering
|
|
4123
|
-
* the table.
|
|
4124
|
-
*
|
|
4125
|
-
* Only applicable for tree and gantt views.
|
|
4126
|
-
*/
|
|
4127
|
-
parent?: number;
|
|
4128
|
-
/**
|
|
4129
|
-
* Indicates whether a row node has been modified. This is evaluated automatically when a cell
|
|
4130
|
-
* is edited.
|
|
4131
|
-
*
|
|
4132
|
-
* @defaultValue false
|
|
4133
|
-
*/
|
|
4134
|
-
rowModified?: boolean;
|
|
4135
|
-
}
|
|
4136
|
-
|
|
4137
|
-
/**
|
|
4138
|
-
* Schema structure for defining 1:many child table fields inside AForm
|
|
4139
|
-
*
|
|
4140
|
-
* @remarks
|
|
4141
|
-
* When a field has `fieldtype: 'Table'`, the `options` property contains the slug
|
|
4142
|
-
* of the child doctype whose records appear as table rows.
|
|
4143
|
-
*
|
|
4144
|
-
* `Registry.resolveSchema()` auto-derives `columns` from the child doctype's schema
|
|
4145
|
-
* fields and sets sensible defaults for `component` (`'ATable'`) and `config` (`{ view: 'list' }`).
|
|
4146
|
-
*
|
|
4147
|
-
* Users can override any auto-derived property by specifying it explicitly on the schema field.
|
|
4148
|
-
* Row data comes from the parent form's data model at `data[fieldname]` (an array).
|
|
4149
|
-
*
|
|
4150
|
-
* @public
|
|
4151
|
-
*/
|
|
4152
|
-
export declare type TableDoctypeSchema = BaseSchema & {
|
|
4153
|
-
/**
|
|
4154
|
-
* The field type — must be 'Table' for 1:many child table fields
|
|
4155
|
-
* @public
|
|
4156
|
-
*/
|
|
4157
|
-
fieldtype: 'Table';
|
|
4158
|
-
/**
|
|
4159
|
-
* The slug of the child doctype in the registry
|
|
4160
|
-
* @public
|
|
4161
|
-
*/
|
|
4162
|
-
options: string;
|
|
4163
|
-
/**
|
|
4164
|
-
* The label to display above the table section
|
|
4165
|
-
* @public
|
|
4166
|
-
*/
|
|
4167
|
-
label?: string;
|
|
4168
|
-
/**
|
|
4169
|
-
* Table columns — auto-derived from child doctype schema if not provided
|
|
4170
|
-
* @public
|
|
4171
|
-
*/
|
|
4172
|
-
columns?: TableColumn[];
|
|
4173
|
-
/**
|
|
4174
|
-
* Table configuration — defaults to `{ view: 'list' }` if not provided
|
|
4175
|
-
* @public
|
|
4176
|
-
*/
|
|
4177
|
-
config?: TableConfig;
|
|
4178
|
-
/**
|
|
4179
|
-
* Table rows — populated from the parent form's data model at `data[fieldname]`
|
|
4180
|
-
* @public
|
|
4181
|
-
*/
|
|
4182
|
-
rows?: TableRow[];
|
|
4183
|
-
/**
|
|
4184
|
-
* Indicate whether the table is read-only
|
|
4185
|
-
* @public
|
|
4186
|
-
*/
|
|
4187
|
-
readOnly?: boolean;
|
|
4188
|
-
};
|
|
4189
|
-
|
|
4190
|
-
/**
|
|
4191
|
-
* Table modal definition.
|
|
4192
|
-
* @public
|
|
4193
|
-
*/
|
|
4194
|
-
export declare interface TableModal {
|
|
4195
|
-
/**
|
|
4196
|
-
* Indicates whether the table modal is currently visible.
|
|
4197
|
-
*
|
|
4198
|
-
* @defaultValue false
|
|
4199
|
-
*/
|
|
4200
|
-
visible?: boolean;
|
|
4201
|
-
/**
|
|
4202
|
-
* The HTML cell element that the modal is currently being displayed for. The field is unset
|
|
4203
|
-
* when the modal is not being displayed.
|
|
4204
|
-
*/
|
|
4205
|
-
cell?: HTMLTableCellElement | null;
|
|
4206
|
-
/**
|
|
4207
|
-
* The HTML parent element that the modal is currently being displayed for. The field is unset
|
|
4208
|
-
* when the modal is not being displayed.
|
|
4209
|
-
*/
|
|
4210
|
-
parent?: HTMLElement;
|
|
4211
|
-
/**
|
|
4212
|
-
* The index of the column that the modal is currently being displayed for. The field is
|
|
4213
|
-
* unset when the modal is not being displayed.
|
|
4214
|
-
*/
|
|
4215
|
-
colIndex?: number;
|
|
4216
|
-
/**
|
|
4217
|
-
* The index of the row that the modal is currently being displayed for. The field is
|
|
4218
|
-
* unset when the modal is not being displayed.
|
|
4219
|
-
*/
|
|
4220
|
-
rowIndex?: number;
|
|
4221
|
-
/**
|
|
4222
|
-
* The component to use to render the modal. If not provided, the table will
|
|
4223
|
-
* try to use the column's `modalComponent` property, if set. If that is not set,
|
|
4224
|
-
* the table will not display a modal.
|
|
4225
|
-
*
|
|
4226
|
-
* @see {@link TableColumn.modalComponent}
|
|
4227
|
-
*/
|
|
4228
|
-
component?: string;
|
|
4229
|
-
/**
|
|
4230
|
-
* Additional properties to pass to the table's modal component.
|
|
4231
|
-
*/
|
|
4232
|
-
componentProps?: Record<string, any>;
|
|
4233
|
-
/**
|
|
4234
|
-
* Reactive bottom value for the modal's bounding box. The field is unset when the modal
|
|
4235
|
-
* is not being displayed.
|
|
4236
|
-
*/
|
|
4237
|
-
bottom?: ReturnType<typeof useElementBounding>['bottom'];
|
|
4238
|
-
/**
|
|
4239
|
-
* Reactive height value for the modal's bounding box. The field is unset when the modal
|
|
4240
|
-
* is not being displayed.
|
|
4241
|
-
*/
|
|
4242
|
-
height?: ReturnType<typeof useElementBounding>['height'];
|
|
4243
|
-
/**
|
|
4244
|
-
* Reactive left value for the modal's bounding box. The field is unset when the modal
|
|
4245
|
-
* is not being displayed.
|
|
4246
|
-
*/
|
|
4247
|
-
left?: ReturnType<typeof useElementBounding>['left'];
|
|
4248
|
-
/**
|
|
4249
|
-
* Reactive width value for the modal's bounding box. The field is unset when the modal
|
|
4250
|
-
* is not being displayed.
|
|
4251
|
-
*/
|
|
4252
|
-
width?: ReturnType<typeof useElementBounding>['width'];
|
|
4253
|
-
}
|
|
4254
|
-
|
|
4255
|
-
/**
|
|
4256
|
-
* Table modal component props definition.
|
|
4257
|
-
* @public
|
|
4258
|
-
*/
|
|
4259
|
-
export declare interface TableModalProps {
|
|
4260
|
-
/**
|
|
4261
|
-
* Additional arbitrary properties that can be passed to the modal component.
|
|
4262
|
-
*/
|
|
4263
|
-
[key: string]: any;
|
|
4264
|
-
/**
|
|
4265
|
-
* The index of the column that the modal is currently being displayed for.
|
|
4266
|
-
*/
|
|
4267
|
-
colIndex: number;
|
|
4268
|
-
/**
|
|
4269
|
-
* The index of the row that the modal is currently being displayed for.
|
|
4270
|
-
*/
|
|
4271
|
-
rowIndex: number;
|
|
4272
|
-
/**
|
|
4273
|
-
* The store for managing the current table's state.
|
|
4274
|
-
*/
|
|
4275
|
-
store: ReturnType<typeof createTableStore>;
|
|
4276
|
-
}
|
|
4277
|
-
|
|
4278
|
-
/**
|
|
4279
|
-
* Table row definition.
|
|
4280
|
-
* @public
|
|
4281
|
-
*/
|
|
4282
|
-
export declare interface TableRow {
|
|
4283
|
-
/**
|
|
4284
|
-
* Additional arbitrary properties that can be passed to the row object.
|
|
4285
|
-
*/
|
|
4286
|
-
[key: string]: any;
|
|
4287
|
-
/**
|
|
4288
|
-
* The indentation level of the row node.
|
|
4289
|
-
*
|
|
4290
|
-
* Only applicable for tree and gantt views.
|
|
4291
|
-
*
|
|
4292
|
-
* @defaultValue 0
|
|
4293
|
-
*/
|
|
4294
|
-
indent?: number;
|
|
4295
|
-
/**
|
|
4296
|
-
* The HTML parent element for the row node. This is evaluated automatically while rendering
|
|
4297
|
-
* the table.
|
|
4298
|
-
*
|
|
4299
|
-
* Only applicable for tree and gantt views.
|
|
4300
|
-
*/
|
|
4301
|
-
parent?: number;
|
|
4302
|
-
/**
|
|
4303
|
-
* The options to use when rendering the row as a Gantt table.
|
|
4304
|
-
*/
|
|
4305
|
-
gantt?: GanttOptions;
|
|
4306
|
-
}
|
|
4307
|
-
|
|
4308
|
-
/**
|
|
4309
|
-
* Schema structure for defining tables inside AForm
|
|
4310
|
-
* @public
|
|
4311
|
-
*/
|
|
4312
|
-
export declare type TableSchema = BaseSchema & {
|
|
4313
|
-
/**
|
|
4314
|
-
* The columns to display in the table
|
|
4315
|
-
* @public
|
|
4316
|
-
*/
|
|
4317
|
-
columns?: TableColumn[];
|
|
4318
|
-
/**
|
|
4319
|
-
* The configuration for the table
|
|
4320
|
-
* @public
|
|
4321
|
-
*/
|
|
4322
|
-
config?: TableConfig;
|
|
4323
|
-
/**
|
|
4324
|
-
* The rows to display in the table
|
|
4325
|
-
* @public
|
|
4326
|
-
*/
|
|
4327
|
-
rows?: TableRow[];
|
|
4328
|
-
};
|
|
4329
|
-
|
|
4330
1330
|
/**
|
|
4331
1331
|
* Supported action types for XState transitions
|
|
4332
1332
|
* Can be either a transition-specific function or a string reference
|
|
@@ -4374,53 +1374,6 @@ export declare interface TransitionExecutionResult {
|
|
|
4374
1374
|
transition: string;
|
|
4375
1375
|
}
|
|
4376
1376
|
|
|
4377
|
-
/**
|
|
4378
|
-
* Table configuration for tree-gantt view types.
|
|
4379
|
-
* @public
|
|
4380
|
-
*/
|
|
4381
|
-
export declare interface TreeGanttTableConfig extends BaseTableConfig {
|
|
4382
|
-
/**
|
|
4383
|
-
* The type of view to display the table in.
|
|
4384
|
-
*/
|
|
4385
|
-
view: 'tree-gantt';
|
|
4386
|
-
/**
|
|
4387
|
-
* Default expansion state for tree views. Possible values:
|
|
4388
|
-
* - `root` - Only top-level nodes are visible (fully collapsed)
|
|
4389
|
-
* - `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
|
|
4390
|
-
* - `leaf` - All nodes are visible (fully expanded)
|
|
4391
|
-
*
|
|
4392
|
-
* @defaultValue undefined (default behavior is 'leaf' mode)
|
|
4393
|
-
*/
|
|
4394
|
-
defaultTreeExpansion?: 'root' | 'branch' | 'leaf';
|
|
4395
|
-
/**
|
|
4396
|
-
* Control whether dependency graph connections should be enabled for Gantt views.
|
|
4397
|
-
* When false, connection handles and dependency lines will be hidden.
|
|
4398
|
-
*
|
|
4399
|
-
* @defaultValue true
|
|
4400
|
-
*/
|
|
4401
|
-
dependencyGraph?: boolean;
|
|
4402
|
-
}
|
|
4403
|
-
|
|
4404
|
-
/**
|
|
4405
|
-
* Table configuration for tree view types.
|
|
4406
|
-
* @public
|
|
4407
|
-
*/
|
|
4408
|
-
export declare interface TreeTableConfig extends BaseTableConfig {
|
|
4409
|
-
/**
|
|
4410
|
-
* The type of view to display the table in.
|
|
4411
|
-
*/
|
|
4412
|
-
view: 'tree';
|
|
4413
|
-
/**
|
|
4414
|
-
* Default expansion state for tree views. Possible values:
|
|
4415
|
-
* - `root` - Only top-level nodes are visible (fully collapsed)
|
|
4416
|
-
* - `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
|
|
4417
|
-
* - `leaf` - All nodes are visible (fully expanded)
|
|
4418
|
-
*
|
|
4419
|
-
* @defaultValue undefined (default behavior is 'leaf' mode)
|
|
4420
|
-
*/
|
|
4421
|
-
defaultTreeExpansion?: 'root' | 'branch' | 'leaf';
|
|
4422
|
-
}
|
|
4423
|
-
|
|
4424
1377
|
/**
|
|
4425
1378
|
* Manually trigger an XState transition for a specific doctype/record
|
|
4426
1379
|
* This can be called directly when you need to execute transition actions programmatically
|
|
@@ -4956,4 +1909,8 @@ export declare interface ValidatorOptions {
|
|
|
4956
1909
|
*/
|
|
4957
1910
|
export declare function withBatch<T>(fn: () => T | Promise<T>, description?: string): Promise<string | null>;
|
|
4958
1911
|
|
|
1912
|
+
|
|
1913
|
+
export * from "@stonecrop/aform/types";
|
|
1914
|
+
export * from "@stonecrop/atable/types";
|
|
1915
|
+
|
|
4959
1916
|
export { }
|