{# v-on="$listeners" needed becaues vue/compat removes them from $attrs #}
{# New mt-number-field component #}
<mt-number-field
    v-if="useMeteorComponent"
    v-bind="$attrs"
    :model-value="currentValue"
    v-on="listeners"
    @change="currentValue = $event"
>
    <template
        v-for="(index, name) in getSlots()"
        #[name]="data"
    >
        <slot
            :name="name"
            v-bind="data"
        >
        </slot>
    </template>
    <slot></slot>
</mt-number-field>

{# v-on="$listeners" needed becaues vue/compat removes them from $attrs #}
{# Deprecated component #}
<sw-number-field-deprecated
    v-else
    v-bind="$attrs"
    :value="value"
    v-on="listeners"
>
    <template
        v-for="(index, name) in getSlots()"
        #[name]="data"
    >
        <slot
            :name="name"
            v-bind="data"
        >
        </slot>
    </template>
    <slot></slot>
</sw-number-field-deprecated>
