|
|
|
@ -9,33 +9,37 @@
|
|
|
|
class="tooltip"
|
|
|
|
class="tooltip"
|
|
|
|
:data-tip="t('draw_initials')"
|
|
|
|
:data-tip="t('draw_initials')"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<button
|
|
|
|
<a
|
|
|
|
id="type_text_button"
|
|
|
|
id="type_text_button"
|
|
|
|
|
|
|
|
href="#"
|
|
|
|
class="btn btn-sm btn-circle"
|
|
|
|
class="btn btn-sm btn-circle"
|
|
|
|
:class="{ 'btn-neutral': isDrawInitials, 'btn-outline': !isDrawInitials }"
|
|
|
|
:class="{ 'btn-neutral': isDrawInitials, 'btn-outline': !isDrawInitials }"
|
|
|
|
@click.prevent="toggleTextInput"
|
|
|
|
@click.prevent="toggleTextInput"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<IconSignature :width="16" />
|
|
|
|
<IconSignature :width="16" />
|
|
|
|
</button>
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<button
|
|
|
|
<a
|
|
|
|
v-if="modelValue"
|
|
|
|
v-if="modelValue"
|
|
|
|
|
|
|
|
href="#"
|
|
|
|
class="btn btn-outline btn-sm"
|
|
|
|
class="btn btn-outline btn-sm"
|
|
|
|
@click.prevent="remove"
|
|
|
|
@click.prevent="remove"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<IconReload :width="16" />
|
|
|
|
<IconReload :width="16" />
|
|
|
|
{{ t('clear') }}
|
|
|
|
{{ t('clear') }}
|
|
|
|
</button>
|
|
|
|
</a>
|
|
|
|
<button
|
|
|
|
<a
|
|
|
|
v-else
|
|
|
|
v-else
|
|
|
|
|
|
|
|
href="#"
|
|
|
|
class="btn btn-outline btn-sm"
|
|
|
|
class="btn btn-outline btn-sm"
|
|
|
|
@click.prevent="clear"
|
|
|
|
@click.prevent="clear"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<IconReload :width="16" />
|
|
|
|
<IconReload :width="16" />
|
|
|
|
{{ t('clear') }}
|
|
|
|
{{ t('clear') }}
|
|
|
|
</button>
|
|
|
|
</a>
|
|
|
|
<button
|
|
|
|
<a
|
|
|
|
title="Minimize"
|
|
|
|
title="Minimize"
|
|
|
|
|
|
|
|
href="#"
|
|
|
|
class="py-1.5 inline md:hidden"
|
|
|
|
class="py-1.5 inline md:hidden"
|
|
|
|
@click.prevent="$emit('minimize')"
|
|
|
|
@click.prevent="$emit('minimize')"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
@ -43,7 +47,7 @@
|
|
|
|
:width="20"
|
|
|
|
:width="20"
|
|
|
|
:height="20"
|
|
|
|
:height="20"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</button>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<input
|
|
|
|
<input
|
|
|
|
@ -66,7 +70,7 @@
|
|
|
|
id="initials_text_input"
|
|
|
|
id="initials_text_input"
|
|
|
|
ref="textInput"
|
|
|
|
ref="textInput"
|
|
|
|
class="base-input !text-2xl w-full mt-6 text-center"
|
|
|
|
class="base-input !text-2xl w-full mt-6 text-center"
|
|
|
|
:required="field.required && !isInitialsStarted"
|
|
|
|
:required="field.required && !isInitialsStarted && !modelValue"
|
|
|
|
:placeholder="`${t('type_initial_here')}...`"
|
|
|
|
:placeholder="`${t('type_initial_here')}...`"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
@focus="$emit('focus')"
|
|
|
|
@focus="$emit('focus')"
|
|
|
|
|