style: apply fixes for eslint issues [cw-3590] (#10210)

These fixes are all auto generated and can be merged directly

Fixes the following issues

1. Event used on components should be hypenated
2. Attribute orders in components
3. Use `unmounted` instead of `destroyed`
4. Add explicit `emits` declarations for components, autofixed [using
this
script](https://gist.github.com/scmmishra/6f549109b96400006bb69bbde392eddf)


We ignore the top level v-if for now, we will fix it later
This commit is contained in:
Shivam Mishra
2024-10-03 15:02:12 +05:30
committed by GitHub
parent b8d0252511
commit c51a458c25
257 changed files with 1013 additions and 310 deletions

View File

@@ -26,8 +26,8 @@ const activeCountryCode = ref(getActiveCountryCode());
const activeDialCode = ref(getActiveDialCode());
const phoneNumber = ref('');
const dropdownRef = useTemplateRef('dropdown');
const searchbarRef = useTemplateRef('searchbar');
const dropdownRef = useTemplateRef('dropdownRef');
const searchbarRef = useTemplateRef('searchbarRef');
const placeholder = computed(() => context?.attrs?.placeholder || '');
const hasErrorInPhoneInput = computed(() => context.hasErrorInPhoneInput);
@@ -261,7 +261,7 @@ function onSelect() {
</div>
<div
v-if="showDropdown"
ref="dropdown"
ref="dropdownRef"
v-on-clickaway="closeDropdown"
:class="dropdownBackgroundClass"
class="absolute z-10 h-48 px-0 pt-0 pb-1 pl-1 pr-1 overflow-y-auto rounded shadow-lg country-dropdown top-12"
@@ -271,8 +271,8 @@ function onSelect() {
>
<div class="sticky top-0" :class="dropdownBackgroundClass">
<input
ref="searchbarRef"
v-model="searchCountry"
ref="searchbar"
type="text"
:placeholder="$t('PRE_CHAT_FORM.FIELDS.PHONE_NUMBER.DROPDOWN_SEARCH')"
class="w-full h-8 px-3 py-2 mt-1 mb-1 text-sm border border-solid rounded outline-none dropdown-search"