diff --git a/packages/web/src/datagrid/DataGridCore.svelte b/packages/web/src/datagrid/DataGridCore.svelte index 113ae80d..50562a84 100644 --- a/packages/web/src/datagrid/DataGridCore.svelte +++ b/packages/web/src/datagrid/DataGridCore.svelte @@ -276,7 +276,7 @@ export let selectedCellsPublished = () => []; // export let generalAllowSave = false; - export const activator = createActivator('DataGridCore', false, 'FormView'); + export const activator = createActivator('DataGridCore', false); const wheelRowCount = 5; const tabVisible: any = getContext('tabVisible'); diff --git a/packages/web/src/formview/FormView.svelte b/packages/web/src/formview/FormView.svelte index 31fd1e72..b6558335 100644 --- a/packages/web/src/formview/FormView.svelte +++ b/packages/web/src/formview/FormView.svelte @@ -263,7 +263,7 @@ formDisplay.addFilterColumn(getCellColumn(currentCell)); } - export const activator = createActivator('FormView', false, 'DataGridCore'); + export const activator = createActivator('FormView', false); const handleTableMouseDown = event => { if (event.target.closest('.buttonLike')) return; @@ -436,91 +436,91 @@ } -{#if isLoading} - -{:else} -
-
- {#each columnChunks as chunk, chunkIndex} - - {#each chunk as col, rowIndex} - - - - {#if $inplaceEditorState.cell && rowIndex == $inplaceEditorState.cell[0] && chunkIndex * 2 + 1 == $inplaceEditorState.cell[1]} - { - former.setCellValue(col.uniqueName, value); +
+
+ {#each columnChunks as chunk, chunkIndex} +
1 ? `height: ${rowHeight}px` : undefined} - class:isSelected={currentCell[0] == rowIndex && currentCell[1] == chunkIndex * 2} - bind:this={domCells[`${rowIndex},${chunkIndex * 2}`]} - > -
- {#if col.foreignKey} - { - e.stopPropagation(); - formDisplay.toggleExpandedColumn(col.uniqueName); - }} - /> - {:else} - - {/if} - - ${col.foreignKey.refTableName}` : null} - /> -
-
+ {#each chunk as col, rowIndex} + + - {/each} -
1 ? `height: ${rowHeight}px` : undefined} + class:isSelected={currentCell[0] == rowIndex && currentCell[1] == chunkIndex * 2} + bind:this={domCells[`${rowIndex},${chunkIndex * 2}`]} + > +
+ {#if col.foreignKey} + { + e.stopPropagation(); + formDisplay.toggleExpandedColumn(col.uniqueName); }} /> + {:else} + {/if} - -
- {/each} - { - activator.activate(); - invalidateCommands(); - }} - on:keydown={handleKeyDown} - on:copy={copyToClipboard} - /> -
- {#if rowCountInfo} -
- {rowCountInfo} -
- {/if} + + ${col.foreignKey.refTableName}` : null} + /> +
+ + + {#if $inplaceEditorState.cell && rowIndex == $inplaceEditorState.cell[0] && chunkIndex * 2 + 1 == $inplaceEditorState.cell[1]} + { + former.setCellValue(col.uniqueName, value); + }} + /> + {/if} + + + {/each} + + {/each} + { + activator.activate(); + invalidateCommands(); + }} + on:keydown={handleKeyDown} + on:copy={copyToClipboard} + /> + {#if rowCountInfo} +
+ {rowCountInfo} +
+ {/if} + + +{#if isLoading} + {/if}