autofill - forgotten from react

This commit is contained in:
Jan Prochazka 2021-04-11 09:47:39 +02:00
parent 1d401e302a
commit c1778bea26
4 changed files with 22 additions and 0 deletions

View File

@ -39,6 +39,7 @@
export let hideContent = false; export let hideContent = false;
export let onSetFormView; export let onSetFormView;
export let isDynamicStructure = false; export let isDynamicStructure = false;
export let isAutoFillMarker = false;
$: value = col.isStructured ? _.get(rowData || {}, col.uniquePath) : (rowData || {})[col.uniqueName]; $: value = col.isStructured ? _.get(rowData || {}, col.uniquePath) : (rowData || {})[col.uniqueName];
</script> </script>
@ -114,6 +115,10 @@
<ShowFormButton on:click={() => onSetFormView(rowData, col)} /> <ShowFormButton on:click={() => onSetFormView(rowData, col)} />
{/if} {/if}
{/if} {/if}
{#if isAutoFillMarker}
<div class="autoFillMarker autofillHandleMarker" />
{/if}
</td> </td>
<!-- {#if _.isArray(value.data)} <!-- {#if _.isArray(value.data)}
@ -175,4 +180,15 @@
.value { .value {
color: var(--theme-icon-green); color: var(--theme-icon-green);
} }
.autoFillMarker {
width: 8px;
height: 8px;
background: var(--theme-bg-selected-point);
position: absolute;
right: 0px;
bottom: 0px;
overflow: visible;
cursor: crosshair;
}
</style> </style>

View File

@ -64,6 +64,9 @@
(rowStatus.deletedFields && rowStatus.deletedFields.has(col.uniqueName))} (rowStatus.deletedFields && rowStatus.deletedFields.has(col.uniqueName))}
{onSetFormView} {onSetFormView}
{isDynamicStructure} {isDynamicStructure}
isAutoFillMarker={autofillMarkerCell &&
autofillMarkerCell[1] == col.colIndex &&
autofillMarkerCell[0] == rowIndex}
/> />
{/if} {/if}
{/each} {/each}

View File

@ -50,6 +50,7 @@
--theme-bg-hover: #112a45; --theme-bg-hover: #112a45;
--theme-bg-selected: #15395b; /* blue-3 */ --theme-bg-selected: #15395b; /* blue-3 */
--theme-bg-selected-point: #1765ad; /* blue-5 */
--theme-bg-statusbar-inv: blue; --theme-bg-statusbar-inv: blue;
--theme-bg-modalheader: rgb(43, 60, 61); --theme-bg-modalheader: rgb(43, 60, 61);

View File

@ -43,6 +43,8 @@
--theme-bg-hover: #bae7ff; --theme-bg-hover: #bae7ff;
--theme-bg-selected: #91d5ff; /* blue-3 */ --theme-bg-selected: #91d5ff; /* blue-3 */
--theme-bg-selected-point: #40a9ff; /* blue-5 */
--theme-bg-statusbar-inv: blue; --theme-bg-statusbar-inv: blue;
--theme-bg-modalheader: #eff; --theme-bg-modalheader: #eff;