{
+ if (action.id !== $hoverStore) {
+ $hoverStore = action.id
+ }
+ }}
+ on:mouseout|stopPropagation={() => {
+ if ($hoverStore !== undefined) {
+ $hoverStore = undefined
+ }
+ }}
+ on:pointerdown|stopPropagation={() => {
+ if ($selectedComponent?.includes(action.id)) {
+ $selectedComponent = []
+ } else {
+ $selectedComponent = [action.id]
+ }
+ }}
+ class={twMerge(
+ ($selectedComponent?.includes(action.id) || $hoverStore === action.id) &&
+ $mode !== 'preview'
+ ? 'outline outline-indigo-500 outline-1 outline-offset-1 relative z-50'
+ : 'relative'
+ )}
+ >
+ {#if $mode !== 'preview'}
+
+
+
{
+ $selectedComponent = [action.id]
+ }}
+ >
+ {action.id}
+
+
+ {#if $connectingInput.opened}
+
+
+
+
+
+
+ connectOutput(connectingInput, 'buttoncomponent', action.id, detail)}
+ componentId={action.id}
+ />
+
+
+ {/if}
+ {/if}
+ {#if rowIndex === 0}
+ {@const controls = {
+ left: () => {
+ if (actionIndex === 0) {
+ $selectedComponent = [id]
+ return true
+ } else if (actionIndex > 0) {
+ $selectedComponent = [actions[actionIndex - 1].id]
+ return true
+ }
+ return false
+ },
+ right: () => {
+ if (actionIndex === actions.length - 1) {
+ return id
+ } else if (actionIndex < actions.length - 1) {
+ $selectedComponent = [actions[actionIndex + 1].id]
+ return true
+ }
+ return false
+ }
+ }}
+ {#if action.type == 'buttoncomponent'}
+
{
+ dispatch('toggleRow')
+ }}
+ id={action.id}
+ customCss={action.customCss}
+ configuration={action.configuration}
+ recomputeIds={action.recomputeIds}
+ extraQueryParams={{
+ row
+ }}
+ componentInput={action.componentInput}
+ verticalAlignment="center"
+ {controls}
+ />
+ {:else if action.type == 'checkboxcomponent'}
+ {
+ dispatch('toggleRow')
+ }}
+ verticalAlignment="center"
+ {controls}
+ />
+ {:else if action.type == 'selectcomponent'}
+
+
{
+ dispatch('toggleRow')
+ }}
+ {controls}
+ />
+
+ {/if}
+ {:else if action.type == 'buttoncomponent'}
+ {
+ dispatch('toggleRow')
+ }}
+ noWFull
+ id={action.id}
+ customCss={action.customCss}
+ configuration={action.configuration}
+ recomputeIds={action.recomputeIds}
+ extraQueryParams={{
+ row
+ }}
+ componentInput={action.componentInput}
+ />
+ {:else if action.type == 'checkboxcomponent'}
+ {
+ dispatch('toggleRow')
+ }}
+ />
+ {:else if action.type == 'selectcomponent'}
+
+
{
+ dispatch('toggleRow')
+ }}
+ />
+
+ {/if}
+