mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
* initial dependency update with initial setup * initial dependency update with initial setup * lock update * Revert "initial dependency update with initial setup" This reverts commit aa71afc3eca20042a1e13066bee1730a15606dd2. * admin - moved to vite * feat(admin): migration packages update (#3327) * bump apollo package * extend vue config * create useCreationMonths composable * WIP * temporary * install dependencies * adjust configs * rework footer component * remove not needed spaces, * rework overview page * rework component * rework user search page * rework navbar * navbar adjustments * add depenedencies * style adjustment in footer * composable adjustments * update node version * rework search and pagination * feat(admin) - disable unit tests for migration time * feat(admin) - update eslint * wip on search user * rework creation formular component * feat(admin) - update eslint babel * feat(admin) - change stylelint version, fix eslint errors * feat(admin) - update dependency * feat(admin) - update dependency * feat(admin) - update dependency * feat(admin) - update dependency * feat(admin) - update dependency * feat(admin) - update dependency * feat(admin) - update dependency, update node * feat(admin) - update icons --------- Co-authored-by: Mateusz Michałowski <mateusz.michalowski@monterail.com> --------- Co-authored-by: Kamila Lach <80581523+unnunhexium@users.noreply.github.com>
54 lines
1.2 KiB
Vue
54 lines
1.2 KiB
Vue
<template>
|
|
<div>
|
|
<div class="d-flex">
|
|
<BFormInput
|
|
v-model="currentValue"
|
|
type="text"
|
|
class="test-input-criteria"
|
|
:placeholder="placeholderText"
|
|
/>
|
|
<div append class="test-click-clear-criteria" @click="onClear">
|
|
<BInputGroupText class="pointer h-100">
|
|
<IIcBaselineClose />
|
|
</BInputGroupText>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ref, watch, computed } from 'vue'
|
|
import { useI18n } from 'vue-i18n'
|
|
import { BInputGroupText, BFormInput } from 'bootstrap-vue-next'
|
|
|
|
const props = defineProps({
|
|
modelValue: { type: String, default: '' },
|
|
placeholder: { type: String, default: '' },
|
|
})
|
|
|
|
const emit = defineEmits(['update:modelValue'])
|
|
|
|
const { t } = useI18n()
|
|
|
|
const placeholderText = computed(() => props.placeholder || t('user_search'))
|
|
|
|
const onClear = () => {
|
|
currentValue.value = ''
|
|
}
|
|
|
|
const currentValue = ref(props.modelValue)
|
|
|
|
watch(currentValue, (newValue) => {
|
|
emit('update:modelValue', newValue)
|
|
})
|
|
|
|
watch(
|
|
() => props.modelValue,
|
|
(newValue) => {
|
|
if (newValue !== currentValue.value) {
|
|
currentValue.value = newValue
|
|
}
|
|
},
|
|
)
|
|
</script>
|