{#if hint} {@html alertIcon} {@html hint} {/if} { fieldsPane.height = e.detail.height; }} > {#each fieldsData as field, index} {@const content = fieldStores[index]} { $focusedField = fields[index]; bridgeCommand(`focus:${index}`); }} on:focusout={() => { $focusedField = null; bridgeCommand( `blur:${index}:${getNoteId()}:${transformContentBeforeSave( get(content), )}`, ); }} on:mouseenter={() => { $hoveredField = fields[index]; }} on:mouseleave={() => { $hoveredField = null; }} collapsed={fieldsCollapsed[index]} --focus-color={cols[index] === "dupe" ? "var(--accent-danger)" : "var(--border-focus)"} > { fieldsCollapsed[index] = !fieldsCollapsed[index]; const defaultInput = !plainTextDefaults[index] ? richTextInputs[index] : plainTextInputs[index]; if (!fieldsCollapsed[index]) { refocusInput(defaultInput.api); } else if (!plainTextDefaults[index]) { plainTextsHidden[index] = true; } else { richTextsHidden[index] = true; } }} > {field.name} {#if cols[index] === "dupe"} {/if} {#if plainTextDefaults[index]} { richTextsHidden[index] = !richTextsHidden[index]; if (!richTextsHidden[index]) { refocusInput( richTextInputs[index].api, ); } }} /> {:else} { plainTextsHidden[index] = !plainTextsHidden[index]; if (!plainTextsHidden[index]) { refocusInput( plainTextInputs[index].api, ); } }} /> {/if} { saveFieldNow(); $focusedInput = null; }} bind:this={richTextInputs[index]} > {field.description} { saveFieldNow(); $focusedInput = null; }} bind:this={plainTextInputs[index]} /> {/each} {#if insertSymbols} {/if} snapResizer(!$tagsCollapsed)} on:release={() => { snapResizer(snapTags); }} >
{ tagEditor.appendEmptyTag(); }} keyCombination="Control+Shift+T" > {@html tagAmount > 0 ? `${tagAmount} Tags` : ""}
{ tagsPane.height = e.detail.height; if (tagsPane.maxHeight > 0) { snapTags = tagsPane.height < tagsPane.maxHeight / 2; } }} --opacity={(() => { if (!$tagsCollapsed) { return 1; } else { return snapTags ? tagsPane.height / tagsPane.maxHeight : 1; } })()} > { expandTags(); $tagsCollapsed = false; }} on:heightChange={(e) => { tagsPane.maxHeight = e.detail.height; if (!$tagsCollapsed) { expandTags(); } }} />