|
|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
<div
|
|
|
|
|
v-if="isSelected || isDraw"
|
|
|
|
|
class="top-0 bottom-0 right-0 left-0 absolute border border-1.5 pointer-events-none"
|
|
|
|
|
:class="field.type === 'heading' ? '' : borderColors[submitterIndex]"
|
|
|
|
|
:class="field.type === 'heading' ? '' : borderColors[submitterIndex % borderColors.length]"
|
|
|
|
|
/>
|
|
|
|
|
<div
|
|
|
|
|
v-if="field.type === 'cells' && (isSelected || isDraw)"
|
|
|
|
|
@ -20,7 +20,7 @@
|
|
|
|
|
v-for="(cellW, index) in cells"
|
|
|
|
|
:key="index"
|
|
|
|
|
class="absolute top-0 bottom-0 border-r"
|
|
|
|
|
:class="field.type === 'heading' ? '' : borderColors[submitterIndex]"
|
|
|
|
|
:class="field.type === 'heading' ? '' : borderColors[submitterIndex % borderColors.length]"
|
|
|
|
|
:style="{ left: (cellW / area.w * 100) + '%' }"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
@ -161,7 +161,7 @@
|
|
|
|
|
ref="touchValueTarget"
|
|
|
|
|
class="flex items-center h-full w-full"
|
|
|
|
|
dir="auto"
|
|
|
|
|
:class="[isValueInput ? 'bg-opacity-50' : 'bg-opacity-80', field.type === 'heading' ? 'bg-gray-50' : bgColors[submitterIndex], isDefaultValuePresent || isValueInput || (withFieldPlaceholder && field.areas) ? (alignClasses[field.preferences?.align] || '') : 'justify-center']"
|
|
|
|
|
:class="[isValueInput ? 'bg-opacity-50' : 'bg-opacity-80', field.type === 'heading' ? 'bg-gray-50' : bgColors[submitterIndex % bgColors.length], isDefaultValuePresent || isValueInput || (withFieldPlaceholder && field.areas) ? (alignClasses[field.preferences?.align] || '') : 'justify-center']"
|
|
|
|
|
@click="focusValueInput"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
@ -420,16 +420,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
borderColors () {
|
|
|
|
|
return [
|
|
|
|
|
'border-red-500/80',
|
|
|
|
|
'border-sky-500/80',
|
|
|
|
|
'border-emerald-500/80',
|
|
|
|
|
'border-yellow-300/80',
|
|
|
|
|
'border-purple-600/80',
|
|
|
|
|
'border-pink-500/80',
|
|
|
|
|
'border-cyan-500/80',
|
|
|
|
|
'border-orange-500/80',
|
|
|
|
|
'border-lime-500/80',
|
|
|
|
|
'border-indigo-500/80',
|
|
|
|
|
'border-red-500/80',
|
|
|
|
|
'border-sky-500/80',
|
|
|
|
|
'border-emerald-500/80',
|
|
|
|
|
@ -444,16 +434,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
bgColors () {
|
|
|
|
|
return [
|
|
|
|
|
'bg-red-100',
|
|
|
|
|
'bg-sky-100',
|
|
|
|
|
'bg-emerald-100',
|
|
|
|
|
'bg-yellow-100',
|
|
|
|
|
'bg-purple-100',
|
|
|
|
|
'bg-pink-100',
|
|
|
|
|
'bg-cyan-100',
|
|
|
|
|
'bg-orange-100',
|
|
|
|
|
'bg-lime-100',
|
|
|
|
|
'bg-indigo-100',
|
|
|
|
|
'bg-red-100',
|
|
|
|
|
'bg-sky-100',
|
|
|
|
|
'bg-emerald-100',
|
|
|
|
|
|