diff --git a/frontend/src/lib/components/apps/components/display/table/AppTable.svelte b/frontend/src/lib/components/apps/components/display/table/AppTable.svelte index af02b3549c..5404d270a3 100644 --- a/frontend/src/lib/components/apps/components/display/table/AppTable.svelte +++ b/frontend/src/lib/components/apps/components/display/table/AppTable.svelte @@ -1,5 +1,7 @@ {#each Object.keys(components['tablecomponent'].initialData.configuration) as key (key)} @@ -421,12 +442,13 @@ {#if displayName} {displayName} {:else if !header.isPlaceholder && component} - + {@const SvelteComponent = component} + {/if} {#if header.column.getIsVisible()} { + onclick={() => { header.column.toggleVisibility() }} > @@ -495,13 +517,13 @@ {#if actionButtons.length > 0} toggleRow(row)} - on:click={() => toggleRow(row)} + onkeypress={() => toggleRow(row)} + onclick={() => toggleRow(row)} style="width: {(actionButtons ?? []).length * 130}px" > {#each actionButtons as actionButton, actionIndex (actionButton?.id)} - + - + { + onmouseover={stopPropagation(() => { if (actionButton.id !== $hoverStore) { $hoverStore = actionButton.id } - }} - on:mouseout|stopPropagation={() => { + })} + onmouseout={stopPropagation(() => { if ($hoverStore !== undefined) { $hoverStore = undefined } - }} + })} class={classNames( ($selectedComponent?.includes(actionButton.id) || $hoverStore === actionButton.id) && @@ -548,8 +570,8 @@ )} > {#if $mode !== 'preview'} - - + + { + onclick={stopPropagation(() => { $selectedComponent = [actionButton.id] - }} + })} > {actionButton.id} @@ -577,14 +599,14 @@ closeOnOtherPopoverOpen contentClasses="p-4" > - + {#snippet trigger()} - - + {/snippet} + {#snippet content()} @@ -596,7 +618,7 @@ )} componentId={actionButton.id} /> - + {/snippet} {/if} diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte index 6df5b170ea..cd55eb2c9e 100644 --- a/frontend/src/lib/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte +++ b/frontend/src/lib/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte @@ -1,4 +1,6 @@ @@ -274,12 +287,12 @@ flipDurationMs, dropTargetStyle: {} }} - on:consider={handleConsider} - on:finalize={handleFinalize} + onconsider={handleConsider} + onfinalize={handleFinalize} > {#each items as item, index (item.id)} - + @@ -293,7 +306,7 @@ - + @@ -301,7 +314,7 @@ deleteElementByType(index)} + onclick={stopPropagation(preventDefault(() => deleteElementByType(index)))} > @@ -339,7 +352,6 @@ } else if (subFieldType === 'ag-grid') { componentInput.value.push({ field: detail, headerName: detail, flex: 1 }) } - componentInput = componentInput if (componentInput.value) { let value = componentInput.value[componentInput.value.length - 1] @@ -350,6 +362,8 @@ }) } } + componentInput.value = $state.snapshot(componentInput.value) + componentInput = componentInput }} /> {/if}