Browse Source

refactor: change placeholder text

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/6323/head
Raju Udava 1 year ago committed by DarkPhoenix2704
parent
commit
6276c9287a
  1. 2
      packages/nc-gui/components/cell/Currency.vue
  2. 2
      packages/nc-gui/components/cell/Decimal.vue
  3. 2
      packages/nc-gui/components/cell/Duration.vue
  4. 2
      packages/nc-gui/components/cell/Email.vue
  5. 2
      packages/nc-gui/components/cell/Float.vue
  6. 2
      packages/nc-gui/components/cell/Integer.vue
  7. 2
      packages/nc-gui/components/cell/Percent.vue
  8. 2
      packages/nc-gui/components/cell/PhoneNumber.vue
  9. 2
      packages/nc-gui/components/cell/Text.vue
  10. 2
      packages/nc-gui/components/cell/TextArea.vue

2
packages/nc-gui/components/cell/Currency.vue

@ -79,7 +79,7 @@ onMounted(() => {
v-model="vModel"
type="number"
class="w-full h-full text-sm border-none rounded-md outline-none"
:placeholder="isEditColumn ? 'Enter default value (Optional)' : ''"
:placeholder="isEditColumn ? '(Optional)' : ''"
@blur="submitCurrency"
@keydown.down.stop
@keydown.left.stop

2
packages/nc-gui/components/cell/Decimal.vue

@ -97,7 +97,7 @@ watch(isExpandedFormOpen, () => {
class="outline-none !py-2 !px-1 border-none rounded-md w-full h-full !text-sm"
type="number"
:step="precision"
:placeholder="isEditColumn ? 'Enter default value (Optional)' : ''"
:placeholder="isEditColumn ? '(Optional)' : ''"
style="letter-spacing: 0.06rem"
@blur="editEnabled = false"
@keydown.down.stop="onKeyDown"

2
packages/nc-gui/components/cell/Duration.vue

@ -40,7 +40,7 @@ const isEditColumn = inject(EditColumnInj, ref(false))
const durationType = computed(() => parseProp(column?.value?.meta)?.duration || 0)
const durationPlaceholder = computed(() =>
isEditColumn.value ? 'Enter default value (Optional)' : durationOptions[durationType.value].title,
isEditColumn.value ? '(Optional)' : durationOptions[durationType.value].title,
)
const localState = computed({

2
packages/nc-gui/components/cell/Email.vue

@ -71,7 +71,7 @@ watch(
:ref="focus"
v-model="vModel"
class="w-full outline-none text-sm px-1 py-2"
:placeholder="isEditColumn ? 'Enter default value (Optional)' : ''"
:placeholder="isEditColumn ? '(Optional)' : ''"
@blur="editEnabled = false"
@keydown.down.stop
@keydown.left.stop

2
packages/nc-gui/components/cell/Float.vue

@ -51,7 +51,7 @@ const focus: VNodeRef = (el) => !isExpandedFormOpen.value && !isEditColumn.value
class="outline-none px-1 border-none w-full h-full text-sm"
type="number"
step="0.1"
:placeholder="isEditColumn ? 'Enter default value (Optional)' : ''"
:placeholder="isEditColumn ? '(Optional)' : ''"
@blur="editEnabled = false"
@keydown.down.stop
@keydown.left.stop

2
packages/nc-gui/components/cell/Integer.vue

@ -88,7 +88,7 @@ function onKeyDown(e: any) {
class="outline-none py-2 px-1 border-none w-full h-full text-sm"
type="number"
style="letter-spacing: 0.06rem"
:placeholder="isEditColumn ? 'Enter default value (Optional)' : ''"
:placeholder="isEditColumn ? '(Optional)' : ''"
@blur="editEnabled = false"
@keydown="onKeyDown"
@keydown.down.stop

2
packages/nc-gui/components/cell/Percent.vue

@ -42,7 +42,7 @@ const focus: VNodeRef = (el) => !isExpandedFormOpen.value && !isEditColumn.value
class="w-full !text-sm !border-none !outline-none focus:ring-0 text-base p-1"
:class="{ '!px-2': editEnabled }"
type="number"
:placeholder="isEditColumn ? 'Enter default value (Optional)' : ''"
:placeholder="isEditColumn ? '(Optional)' : ''"
@blur="editEnabled = false"
@keydown.down.stop
@keydown.left.stop

2
packages/nc-gui/components/cell/PhoneNumber.vue

@ -61,7 +61,7 @@ watch(
:ref="focus"
v-model="vModel"
class="w-full outline-none text-sm px-1 py-2"
:placeholder="isEditColumn ? 'Enter default value (Optional)' : ''"
:placeholder="isEditColumn ? '(Optional)' : ''"
@blur="editEnabled = false"
@keydown.down.stop
@keydown.left.stop

2
packages/nc-gui/components/cell/Text.vue

@ -33,7 +33,7 @@ const focus: VNodeRef = (el) => !isExpandedFormOpen.value && !isEditColumn.value
:ref="focus"
v-model="vModel"
class="h-full w-full outline-none p-2 bg-transparent"
:placeholder="isEditColumn ? 'Enter default value (Optional)' : ''"
:placeholder="isEditColumn ? '(Optional)' : ''"
@blur="editEnabled = false"
@keydown.down.stop
@keydown.left.stop

2
packages/nc-gui/components/cell/TextArea.vue

@ -81,7 +81,7 @@ onClickOutside(inputWrapperRef, (e) => {
:style="{
minHeight: `${height}px`,
}"
:placeholder="isEditColumn ? 'Enter default value (Optional)' : ''"
:placeholder="isEditColumn ? '(Optional)' : ''"
@blur="editEnabled = false"
@keydown.alt.enter.stop
@keydown.shift.enter.stop

Loading…
Cancel
Save