Skip to content

Commit d44f7bb

Browse files
committed
chore: fix ESLint rule vue/v-on-event-hyphenation
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 5cbff18 commit d44f7bb

File tree

19 files changed

+35
-35
lines changed

19 files changed

+35
-35
lines changed

src/components/NcActionInput/NcActionInput.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ For the `NcSelect` component, all events will be passed through. Please see the
169169
class="action-input__datetimepicker"
170170
appendToBody
171171
v-bind="$attrs"
172-
@update:model-value="onUpdateModelValue" />
172+
@update:modelValue="onUpdateModelValue" />
173173

174174
<NcDateTimePickerNative
175175
v-else-if="isNativePicker"
@@ -180,7 +180,7 @@ For the `NcSelect` component, all events will be passed through. Please see the
180180
:inputClass="{ focusable: isFocusable }"
181181
class="action-input__datetimepicker"
182182
v-bind="$attrs"
183-
@update:model-value="onUpdateModelValue" />
183+
@update:modelValue="onUpdateModelValue" />
184184

185185
<NcSelect
186186
v-else-if="isMultiselectType"
@@ -191,7 +191,7 @@ For the `NcSelect` component, all events will be passed through. Please see the
191191
:inputClass="{ focusable: isFocusable }"
192192
class="action-input__multi"
193193
v-bind="$attrs"
194-
@update:model-value="onUpdateModelValue" />
194+
@update:modelValue="onUpdateModelValue" />
195195

196196
<NcPasswordField
197197
v-else-if="type === 'password'"
@@ -204,7 +204,7 @@ For the `NcSelect` component, all events will be passed through. Please see the
204204
:inputClass="{ focusable: isFocusable }"
205205
:showTrailingButton="showTrailingButton && !disabled"
206206
v-bind="$attrs"
207-
@update:model-value="onUpdateModelValue" />
207+
@update:modelValue="onUpdateModelValue" />
208208

209209
<div v-else-if="type === 'color'" class="action-input__container">
210210
<label
@@ -220,7 +220,7 @@ For the `NcSelect` component, all events will be passed through. Please see the
220220
:modelValue="modelValue"
221221
class="colorpicker__trigger"
222222
v-bind="$attrs"
223-
@update:model-value="onUpdateModelValue"
223+
@update:modelValue="onUpdateModelValue"
224224
@submit="$refs.form.requestSubmit()">
225225
<button
226226
class="colorpicker__preview"
@@ -244,8 +244,8 @@ For the `NcSelect` component, all events will be passed through. Please see the
244244
:trailingButtonLabel="trailingButtonLabel"
245245
:showTrailingButton="showTrailingButton && !disabled"
246246
v-bind="$attrs"
247-
@trailing-button-click="$refs.form.requestSubmit()"
248-
@update:model-value="onUpdateModelValue" />
247+
@trailingButtonClick="$refs.form.requestSubmit()"
248+
@update:modelValue="onUpdateModelValue" />
249249
</div>
250250
</div>
251251
</form>

src/components/NcAppNavigationSearch/NcAppNavigationSearch.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export default {
136136
showTrailingButton
137137
:trailingButtonLabel="t('Clear search')"
138138
type="search"
139-
@trailing-button-click="onCloseSearch">
139+
@trailingButtonClick="onCloseSearch">
140140
<template #trailing-button-icon>
141141
<IconClose :size="20" />
142142
</template>

src/components/NcAppSidebar/NcAppSidebar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -739,8 +739,8 @@ If the sidebar should be shown conditionally without any explicit toggle button,
739739
<transition
740740
appear
741741
name="slide-right"
742-
@after-enter="onAfterEnter"
743-
@after-leave="onAfterLeave">
742+
@afterEnter="onAfterEnter"
743+
@afterLeave="onAfterLeave">
744744
<aside
745745
v-show="open"
746746
id="app-sidebar-vue"

src/components/NcCollectionList/NcCollectionList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ occ config:system:set --value true 'projects.enabled'
6363
:key="collection.id"
6464
:collection="collection"
6565
:error="collectionsError[collection.id]"
66-
@rename-collection="renameCollectionFromItem"
67-
@remove-resource="removeResourceFromCollection" />
66+
@renameCollection="renameCollectionFromItem"
67+
@removeResource="removeResourceFromCollection" />
6868
</ul>
6969
</template>
7070

src/components/NcColorPicker/NcColorPicker.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ function hexToRGB(hex: string): [number, number, number] {
369369
v-model:shown="open"
370370
:container="container"
371371
popupRole="dialog"
372-
@apply-hide="emit('closed')">
372+
@applyHide="emit('closed')">
373373
<template #trigger="slotProps">
374374
<slot v-bind="slotProps" />
375375
</template>
@@ -422,7 +422,7 @@ function hexToRGB(hex: string): [number, number, number] {
422422
disableAlpha
423423
:disableFields="!advancedFields"
424424
:modelValue="currentColor ?? '#000000'"
425-
@update:model-value="pickCustomColor" />
425+
@update:modelValue="pickCustomColor" />
426426
</Transition>
427427
<div v-if="!paletteOnly" class="color-picker__navigation">
428428
<NcButton

src/components/NcDateTimePicker/NcDateTimePicker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ function cancelSelection() {
614614
:weekNumbers="showWeekNumber ? { type: 'iso' } : undefined"
615615
:weekStart
616616
v-bind="pickerType"
617-
@update:model-value="onUpdateModelValue">
617+
@update:modelValue="onUpdateModelValue">
618618
<template #action-buttons>
619619
<NcButton size="small" variant="tertiary" @click="cancelSelection">
620620
{{ t('Cancel') }}

src/components/NcEmojiPicker/NcEmojiPicker.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ This component allows the user to pick an emoji.
113113
:container="container"
114114
popupRole="dialog"
115115
:noFocusTrap="true /* Handled manually to remove emoji buttons from TAB sequence */"
116-
@after-show="afterShow"
117-
@after-hide="afterHide">
116+
@afterShow="afterShow"
117+
@afterHide="afterHide">
118118
<template #trigger="slotProps">
119119
<slot v-bind="slotProps" />
120120
</template>
@@ -156,14 +156,14 @@ This component allows the user to pick an emoji.
156156
@keydown.down="callPickerArrowHandlerWithScrollFix('onArrowDown', $event)"
157157
@keydown.up="callPickerArrowHandlerWithScrollFix('onArrowUp', $event)"
158158
@keydown.enter="$refs.picker.onEnter($event)"
159-
@trailing-button-click="clearSearch(); onSearch('');"
160-
@update:model-value="onSearch(search)" />
159+
@trailingButtonClick="clearSearch(); onSearch('');"
160+
@update:modelValue="onSearch(search)" />
161161
<NcColorPicker
162162
paletteOnly
163163
:container
164164
:palette="skinTonePalette"
165165
:modelValue="currentColor.color"
166-
@update:model-value="onChangeSkinTone">
166+
@update:modelValue="onChangeSkinTone">
167167
<NcButton :aria-label="t('Skin tone')" variant="tertiary-no-background">
168168
<template #icon>
169169
<IconCircle :style="{ color: currentColor.color }" :title="currentColor.name" :size="20" />

src/components/NcModal/NcModal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ function clearFocusTrap() {
400400
<transition
401401
name="fade"
402402
appear
403-
@after-enter="useFocusTrap"
404-
@before-leave="clearFocusTrap">
403+
@afterEnter="useFocusTrap"
404+
@beforeLeave="clearFocusTrap">
405405
<div
406406
v-show="showModal"
407407
v-bind="{ ...$attrs, ...scopeIdAttrs }"

src/components/NcPasswordField/NcPasswordField.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ function select() {
304304
:success="success || isValid === true"
305305
:trailingButtonLabel="visible ? t('Hide password') : t('Show password')"
306306
:type="visible || asText ? 'text' : 'password'"
307-
@trailing-button-click="toggleVisibility">
307+
@trailingButtonClick="toggleVisibility">
308308
<template v-if="!!$slots.icon" #icon>
309309
<!-- @slot Leading icon -->
310310
<slot name="icon" />

src/components/NcPopover/NcPopover.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ See: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/
196196
:hideTriggers
197197
:showTriggers
198198
@update:shown="internalShown = $event"
199-
@apply-show="afterShow"
200-
@apply-hide="afterHide">
199+
@applyShow="afterShow"
200+
@applyHide="afterHide">
201201
<NcPopoverTriggerProvider v-slot="slotProps" :shown="internalShown" :popupRole="popupRole">
202202
<!-- This will be the popover target (for the events and position) -->
203203
<slot name="trigger" v-bind="slotProps" />

0 commit comments

Comments
 (0)