@lavalogic/scoria 0.19.0 → 0.19.2
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.
|
@@ -38,19 +38,16 @@
|
|
|
38
38
|
const tooltipContext = getContext<TooltipContext>(TooltipContext.identifier);
|
|
39
39
|
|
|
40
40
|
const groups: Array<HeaderGroup<T>> = $derived.by(() => {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
return [];
|
|
41
|
+
void tableContext.table.columnVisibility;
|
|
42
|
+
void Object.keys(tableContext.table.columnVisibility);
|
|
43
|
+
void tableContext.table.columnPinning.left?.size;
|
|
44
|
+
void tableContext.table.columnPinning.right?.size;
|
|
45
|
+
|
|
46
|
+
return side === 'left'
|
|
47
|
+
? tableContext.table.getLeftHeaderGroups()
|
|
48
|
+
: side === 'right'
|
|
49
|
+
? tableContext.table.getRightHeaderGroups()
|
|
50
|
+
: tableContext.table.getCenterHeaderGroups();
|
|
54
51
|
});
|
|
55
52
|
|
|
56
53
|
const iconNames = {
|
|
@@ -59,6 +56,12 @@
|
|
|
59
56
|
none: 'sort-none',
|
|
60
57
|
} as const;
|
|
61
58
|
|
|
59
|
+
$effect(() => {
|
|
60
|
+
if (tableContext.debug && !groups.length) {
|
|
61
|
+
$inspect(side, tableContext.table, tableContext.table.columnVisibility);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
|
|
62
65
|
let currentDropTarget: HTMLTableCellElement | null = $state(null);
|
|
63
66
|
|
|
64
67
|
function setCurrentDropTarget(target: EventTarget | null) {
|
|
@@ -32,7 +32,7 @@ export declare class TableContext<T extends object, RowIdType extends Primitive>
|
|
|
32
32
|
selectionExtractor: TableInitOptions<T, RowIdType>['selectionExtractor'];
|
|
33
33
|
getUserId: () => string | undefined;
|
|
34
34
|
private _onEditCell;
|
|
35
|
-
|
|
35
|
+
readonly debug: boolean;
|
|
36
36
|
static readonly identifier: unique symbol;
|
|
37
37
|
static init<T extends object, RowIdType extends Primitive>(defaultColumnDefs: DefsWrapper<T>, tableName: string, dataRepo: IDataRepository<T>, options: TableInitOptions<T, RowIdType>): TableContext<T, RowIdType>;
|
|
38
38
|
protected constructor(INTERNAL_ONLY: symbol, defaultColumnDefs: DefsWrapper<T>, tableName: string, dataRepo: IDataRepository<T>, allowCopy: boolean, enableResize: boolean, allowColumnReordering: boolean, allowQuickFiltering: boolean, showQuickFilterByDefault: boolean, allowAdvancedFiltering: boolean, toolbarPosition: ToolbarPosition, displayFooter: boolean, selectionExtractor: TableInitOptions<T, RowIdType>['selectionExtractor'], getUserId: () => string | undefined, _onEditCell: TableInitOptions<T, RowIdType>['onEditCell'], debug: boolean);
|