@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
- if (
42
- Object.keys(tableContext.table.columnVisibility).length ||
43
- tableContext.table.columnPinning.left?.size ||
44
- 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();
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
- private readonly debug;
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);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lavalogic/scoria",
3
3
  "description": "Svelte components used for the FloWMS Web Frontend",
4
- "version": "0.19.0",
4
+ "version": "0.19.2",
5
5
  "publishConfig": {
6
6
  "access": "restricted"
7
7
  },