@stonecrop/atable 0.4.24 → 0.4.25
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/atable.d.ts +13 -67
- package/dist/atable.js +885 -851
- package/dist/atable.js.map +1 -1
- package/dist/atable.umd.cjs +2 -2
- package/dist/atable.umd.cjs.map +1 -1
- package/dist/src/stores/table.d.ts +12 -67
- package/dist/src/stores/table.d.ts.map +1 -1
- package/dist/stores/table.js +81 -34
- package/package.json +3 -3
- package/src/stores/table.ts +91 -39
package/dist/atable.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { Ref } from 'vue';
|
|
|
14
14
|
import type { ShallowRef } from 'vue';
|
|
15
15
|
import { Store } from 'pinia';
|
|
16
16
|
import { useElementBounding } from '@vueuse/core';
|
|
17
|
+
import { WritableComputedRef } from 'vue';
|
|
17
18
|
|
|
18
19
|
export { ACell }
|
|
19
20
|
|
|
@@ -148,10 +149,6 @@ export declare const createTableStore: (initData: {
|
|
|
148
149
|
rows: TableRow[];
|
|
149
150
|
id?: string;
|
|
150
151
|
config?: TableConfig;
|
|
151
|
-
table?: {
|
|
152
|
-
[key: string]: any;
|
|
153
|
-
};
|
|
154
|
-
display?: TableDisplay[];
|
|
155
152
|
modal?: TableModal;
|
|
156
153
|
}) => Store<`table-${string}`, Pick<{
|
|
157
154
|
columns: Ref< {
|
|
@@ -254,25 +251,7 @@ width?: number | undefined;
|
|
|
254
251
|
} | undefined;
|
|
255
252
|
label?: string | undefined;
|
|
256
253
|
}[]>;
|
|
257
|
-
display:
|
|
258
|
-
expanded?: boolean | undefined;
|
|
259
|
-
childrenOpen?: boolean | undefined;
|
|
260
|
-
isParent?: boolean | undefined;
|
|
261
|
-
isRoot?: boolean | undefined;
|
|
262
|
-
open?: boolean | undefined;
|
|
263
|
-
indent?: number | undefined;
|
|
264
|
-
parent?: number | undefined;
|
|
265
|
-
rowModified?: boolean | undefined;
|
|
266
|
-
}[], TableDisplay[] | {
|
|
267
|
-
expanded?: boolean | undefined;
|
|
268
|
-
childrenOpen?: boolean | undefined;
|
|
269
|
-
isParent?: boolean | undefined;
|
|
270
|
-
isRoot?: boolean | undefined;
|
|
271
|
-
open?: boolean | undefined;
|
|
272
|
-
indent?: number | undefined;
|
|
273
|
-
parent?: number | undefined;
|
|
274
|
-
rowModified?: boolean | undefined;
|
|
275
|
-
}[]>;
|
|
254
|
+
display: WritableComputedRef<TableDisplay[], TableDisplay[]>;
|
|
276
255
|
ganttBars: Ref< {
|
|
277
256
|
id: string;
|
|
278
257
|
rowIndex: number;
|
|
@@ -344,7 +323,7 @@ endIndex?: number | undefined;
|
|
|
344
323
|
colspan?: number | undefined;
|
|
345
324
|
} | undefined;
|
|
346
325
|
}[]>;
|
|
347
|
-
table:
|
|
326
|
+
table: ComputedRef< {}>;
|
|
348
327
|
updates: Ref<Record<string, string>, Record<string, string>>;
|
|
349
328
|
hasPinnedColumns: ComputedRef<boolean>;
|
|
350
329
|
isGanttView: ComputedRef<boolean>;
|
|
@@ -402,7 +381,8 @@ toggleRowExpand: (rowIndex: number) => void;
|
|
|
402
381
|
unregisterConnectionHandle: (handleId: string) => void;
|
|
403
382
|
unregisterGanttBar: (barId: string) => void;
|
|
404
383
|
updateGanttBar: (event: GanttDragEvent) => void;
|
|
405
|
-
|
|
384
|
+
updateRows: (newRows: TableRow[]) => void;
|
|
385
|
+
}, "columns" | "config" | "connectionHandles" | "connectionPaths" | "ganttBars" | "modal" | "rows" | "updates">, Pick<{
|
|
406
386
|
columns: Ref< {
|
|
407
387
|
name: string;
|
|
408
388
|
align?: CanvasTextAlign | undefined;
|
|
@@ -503,25 +483,7 @@ width?: number | undefined;
|
|
|
503
483
|
} | undefined;
|
|
504
484
|
label?: string | undefined;
|
|
505
485
|
}[]>;
|
|
506
|
-
display:
|
|
507
|
-
expanded?: boolean | undefined;
|
|
508
|
-
childrenOpen?: boolean | undefined;
|
|
509
|
-
isParent?: boolean | undefined;
|
|
510
|
-
isRoot?: boolean | undefined;
|
|
511
|
-
open?: boolean | undefined;
|
|
512
|
-
indent?: number | undefined;
|
|
513
|
-
parent?: number | undefined;
|
|
514
|
-
rowModified?: boolean | undefined;
|
|
515
|
-
}[], TableDisplay[] | {
|
|
516
|
-
expanded?: boolean | undefined;
|
|
517
|
-
childrenOpen?: boolean | undefined;
|
|
518
|
-
isParent?: boolean | undefined;
|
|
519
|
-
isRoot?: boolean | undefined;
|
|
520
|
-
open?: boolean | undefined;
|
|
521
|
-
indent?: number | undefined;
|
|
522
|
-
parent?: number | undefined;
|
|
523
|
-
rowModified?: boolean | undefined;
|
|
524
|
-
}[]>;
|
|
486
|
+
display: WritableComputedRef<TableDisplay[], TableDisplay[]>;
|
|
525
487
|
ganttBars: Ref< {
|
|
526
488
|
id: string;
|
|
527
489
|
rowIndex: number;
|
|
@@ -593,7 +555,7 @@ endIndex?: number | undefined;
|
|
|
593
555
|
colspan?: number | undefined;
|
|
594
556
|
} | undefined;
|
|
595
557
|
}[]>;
|
|
596
|
-
table:
|
|
558
|
+
table: ComputedRef< {}>;
|
|
597
559
|
updates: Ref<Record<string, string>, Record<string, string>>;
|
|
598
560
|
hasPinnedColumns: ComputedRef<boolean>;
|
|
599
561
|
isGanttView: ComputedRef<boolean>;
|
|
@@ -651,7 +613,8 @@ toggleRowExpand: (rowIndex: number) => void;
|
|
|
651
613
|
unregisterConnectionHandle: (handleId: string) => void;
|
|
652
614
|
unregisterGanttBar: (barId: string) => void;
|
|
653
615
|
updateGanttBar: (event: GanttDragEvent) => void;
|
|
654
|
-
|
|
616
|
+
updateRows: (newRows: TableRow[]) => void;
|
|
617
|
+
}, "display" | "table" | "hasPinnedColumns" | "isGanttView" | "isTreeView" | "numberedRowWidth" | "zeroColumn">, Pick<{
|
|
655
618
|
columns: Ref< {
|
|
656
619
|
name: string;
|
|
657
620
|
align?: CanvasTextAlign | undefined;
|
|
@@ -752,25 +715,7 @@ width?: number | undefined;
|
|
|
752
715
|
} | undefined;
|
|
753
716
|
label?: string | undefined;
|
|
754
717
|
}[]>;
|
|
755
|
-
display:
|
|
756
|
-
expanded?: boolean | undefined;
|
|
757
|
-
childrenOpen?: boolean | undefined;
|
|
758
|
-
isParent?: boolean | undefined;
|
|
759
|
-
isRoot?: boolean | undefined;
|
|
760
|
-
open?: boolean | undefined;
|
|
761
|
-
indent?: number | undefined;
|
|
762
|
-
parent?: number | undefined;
|
|
763
|
-
rowModified?: boolean | undefined;
|
|
764
|
-
}[], TableDisplay[] | {
|
|
765
|
-
expanded?: boolean | undefined;
|
|
766
|
-
childrenOpen?: boolean | undefined;
|
|
767
|
-
isParent?: boolean | undefined;
|
|
768
|
-
isRoot?: boolean | undefined;
|
|
769
|
-
open?: boolean | undefined;
|
|
770
|
-
indent?: number | undefined;
|
|
771
|
-
parent?: number | undefined;
|
|
772
|
-
rowModified?: boolean | undefined;
|
|
773
|
-
}[]>;
|
|
718
|
+
display: WritableComputedRef<TableDisplay[], TableDisplay[]>;
|
|
774
719
|
ganttBars: Ref< {
|
|
775
720
|
id: string;
|
|
776
721
|
rowIndex: number;
|
|
@@ -842,7 +787,7 @@ endIndex?: number | undefined;
|
|
|
842
787
|
colspan?: number | undefined;
|
|
843
788
|
} | undefined;
|
|
844
789
|
}[]>;
|
|
845
|
-
table:
|
|
790
|
+
table: ComputedRef< {}>;
|
|
846
791
|
updates: Ref<Record<string, string>, Record<string, string>>;
|
|
847
792
|
hasPinnedColumns: ComputedRef<boolean>;
|
|
848
793
|
isGanttView: ComputedRef<boolean>;
|
|
@@ -900,7 +845,8 @@ toggleRowExpand: (rowIndex: number) => void;
|
|
|
900
845
|
unregisterConnectionHandle: (handleId: string) => void;
|
|
901
846
|
unregisterGanttBar: (barId: string) => void;
|
|
902
847
|
updateGanttBar: (event: GanttDragEvent) => void;
|
|
903
|
-
|
|
848
|
+
updateRows: (newRows: TableRow[]) => void;
|
|
849
|
+
}, "closeModal" | "createConnection" | "deleteConnection" | "getCellData" | "getCellDisplayValue" | "getConnectionsForBar" | "getFormattedValue" | "getHandlesForBar" | "getHeaderCellStyle" | "getIndent" | "getRowExpandSymbol" | "isRowGantt" | "isRowVisible" | "registerConnectionHandle" | "registerGanttBar" | "resizeColumn" | "setCellData" | "setCellText" | "toggleRowExpand" | "unregisterConnectionHandle" | "unregisterGanttBar" | "updateGanttBar" | "updateRows">>;
|
|
904
850
|
|
|
905
851
|
/**
|
|
906
852
|
* Gantt bar information for VueFlow integration.
|