Transfer
Choose items in a source or target list, then move them between the two lists.
Import
import { HuiTransfer } from '@nscode/handy-ui'
import type { TransferDataItem, TransferKey, TransferProps, TransferEmits } from '@nscode/handy-ui'
Internal state and controlled updates
Omitting modelValue, including with an update listener only, stores target keys internally from an empty array. A passed prop, including undefined, remains controlled; rejected updates retain the parent value. Pending checks and search text follow the existing move cleanup.
<script setup lang="ts">
import { ref } from 'vue'
import { HuiTransfer, HuiButton, HuiSpace } from '@nscode/handy-ui'
const q1Redraw = ref(0)
const q1Last = ref('No request')
const q1Model = ref<(string | number)[]>([])
const q1Data = [
{ key: 1, label: 'First' },
{ key: 2, label: 'Second' },
{ key: 3, label: 'Disabled', disabled: true }
]
</script>
<template>
<div class="transfer-q1-demo">
<HuiButton class="q1-redraw" @click="q1Redraw++">Parent redraw {{ q1Redraw }}</HuiButton>
<HuiSpace direction="vertical" fill>
<div>
<p>Omitted prop: internal state</p>
<HuiTransfer class="q1-local" :data="q1Data" />
</div>
<div>
<p>Update listener only: internal state</p>
<HuiTransfer
class="q1-listener"
:data="q1Data"
@update:model-value="q1Last = JSON.stringify($event)"
/>
</div>
<div>
<p>Explicit undefined: controlled</p>
<HuiTransfer class="q1-empty" :data="q1Data" :model-value="undefined" />
</div>
<div>
<p>Fixed controlled value: parent rejects</p>
<HuiTransfer
class="q1-fixed"
:data="q1Data"
:model-value="[1]"
@update:model-value="q1Last = JSON.stringify($event)"
/>
</div>
<div>
<p>Two-way binding</p>
<HuiTransfer class="q1-bound" :data="q1Data" v-model="q1Model" />
</div>
<p class="q1-notification">Bound value: {{ q1Model }}; latest request: {{ q1Last }}</p>
</HuiSpace>
</div>
</template>
Basic usage
The bound value contains target-list keys. Check items in either list, then use the corresponding move button.
<script setup lang="ts">
import { ref } from 'vue'
import { HuiTransfer } from '@nscode/handy-ui'
import type { TransferDataItem, TransferKey } from '@nscode/handy-ui'
const value = ref<TransferKey[]>([1, 2])
const data: TransferDataItem[] = Array.from({ length: 12 }, (_, index) => ({
key: index + 1,
label: `Item ${index + 1}`
}))
</script>
<template>
<HuiTransfer v-model="value" :data="data" />
</template>
Target order
The default target-order="original" displays target items in data order. push and unshift display them in bound-key order. Newly moved keys are appended with push and prepended with unshift; each batch retains its check order. Transfer never rewrites the supplied data or model array.
<script setup lang="ts">
import { ref } from 'vue'
import { HuiSpace, HuiTransfer } from '@nscode/handy-ui'
import type { TransferKey, TransferTargetOrder } from '@nscode/handy-ui'
const orders: TransferTargetOrder[] = ['original', 'push', 'unshift']
const values = ref<Record<TransferTargetOrder, TransferKey[]>>({
original: [3, 1],
push: [3, 1],
unshift: [3, 1]
})
const data = [
{ key: 1, label: 'Alpha' },
{ key: 2, label: 'Bravo' },
{ key: 3, label: 'Charlie' },
{ key: 4, label: 'Delta' }
]
</script>
<template>
<HuiSpace direction="vertical" fill>
<div v-for="order in orders" :key="order">
<p>{{ order }}: {{ values[order] }}</p>
<HuiTransfer v-model="values[order]" :data="data" :target-order="order" />
</div>
</HuiSpace>
</template>
Target sorting
Enable target-sortable to display the target in bound-key order and reorder it with hover/focus buttons, Alt+ArrowUp / Alt+ArrowDown, or dragging to the upper/lower half of another row. Sorting only requests a new key order; checks remain unchanged. Focus follows the same key, and a live status announces its actual position after parent feedback.
A disabled item cannot be the sort source; enabled items may cross it. A nonempty target search disables buttons, shortcuts and dragging until cleared. Changes to data, key order, disabled state or sorting availability invalidate an active drag. A parent that refuses feedback keeps the actual order and receives no successful-move announcement. Explicit target-order="original" with target-sortable produces one development warning; use push or unshift for this combination.
<script setup lang="ts">
import { ref } from 'vue'
import { HuiSpace, HuiTransfer } from '@nscode/handy-ui'
import type { TransferChangeDirection, TransferKey } from '@nscode/handy-ui'
const value = ref<TransferKey[]>([3, 1, 2])
const lastEvent = ref('No sorting yet')
const refused = ref('No request yet')
const data = [
{ key: 1, label: 'Alpha' },
{ key: 2, label: 'Bravo (disabled)', disabled: true },
{ key: 3, label: 'Charlie' },
{ key: 4, label: 'Delta' }
]
const record = (
keys: TransferKey[],
direction: TransferChangeDirection,
moved: TransferKey[]
) => {
lastEvent.value = `${direction}: ${JSON.stringify(moved)} → ${JSON.stringify(keys)}`
}
</script>
<template>
<HuiSpace direction="vertical" fill>
<div class="transfer-sort-demo">
<p>Use hover buttons, dragging or Alt+arrows. Target search pauses sorting.</p>
<HuiTransfer
v-model="value"
:data="data"
target-order="push"
target-sortable
filterable
@change="record"
/>
<p class="transfer-sort-value">{{ JSON.stringify(value) }}</p>
<p class="transfer-sort-event">{{ lastEvent }}</p>
</div>
<div>
<p>Parent refuses feedback: order remains [3,1,2].</p>
<HuiTransfer
:model-value="[3, 1, 2]"
:data="data"
target-order="push"
target-sortable
@update:model-value="refused = JSON.stringify($event)"
/>
<p>Latest request: {{ refused }}</p>
</div>
</HuiSpace>
</template>
Custom titles and buttons
titles and buttonTexts configure both sides. An empty button string uses the default arrow.
<script setup lang="ts">
import { ref } from 'vue'
import { HuiTransfer } from '@nscode/handy-ui'
import type { TransferDataItem, TransferKey } from '@nscode/handy-ui'
const value = ref<TransferKey[]>([1, 2])
const data: TransferDataItem[] = [
{ key: 1, label: 'Alex' },
{ key: 2, label: 'Blair' },
{ key: 3, label: 'Casey' },
{ key: 4, label: 'Drew' },
{ key: 5, label: 'Evan' },
{ key: 6, label: 'Frankie' }
]
</script>
<template>
<HuiTransfer
v-model="value"
:data="data"
:titles="['All members', 'Project members']"
:button-texts="['Add', 'Move back']"
/>
</template>
Select All
Header checkboxes affect enabled visible items. Disabled items remain unavailable.
<script setup lang="ts">
import { ref } from 'vue'
import { HuiTransfer } from '@nscode/handy-ui'
import type { TransferDataItem, TransferKey } from '@nscode/handy-ui'
const value = ref<TransferKey[]>([1, 2, 3])
const data: TransferDataItem[] = Array.from({ length: 8 }, (_, index) => ({
key: index + 1,
label: `Item ${index + 1}`,
disabled: index + 1 === 5
}))
</script>
<template>
<HuiTransfer v-model="value" :data="data" />
</template>
Filtering
Enable filterable for both lists. Default matching ignores case; filterMethod receives the original query when custom matching is needed.
<script setup lang="ts">
import { ref } from 'vue'
import { HuiTransfer } from '@nscode/handy-ui'
import type { TransferDataItem, TransferKey } from '@nscode/handy-ui'
const value = ref<TransferKey[]>([])
const data: TransferDataItem[] = [
{ key: 1, label: 'Beijing' },
{ key: 2, label: 'Shanghai' },
{ key: 3, label: 'Guangzhou' },
{ key: 4, label: 'Shenzhen' },
{ key: 5, label: 'Hangzhou' },
{ key: 6, label: 'Nanjing' },
{ key: 7, label: 'Chengdu' },
{ key: 8, label: 'Chongqing' }
]
</script>
<template>
<HuiTransfer v-model="value" :data="data" filterable filter-placeholder="Enter a keyword" />
</template>
Custom filtering
Use filterMethod to match a business field such as an employee number instead of the displayed label.
<script setup lang="ts">
import { ref } from 'vue'
import { HuiTransfer } from '@nscode/handy-ui'
import type { TransferDataItem, TransferKey } from '@nscode/handy-ui'
const value = ref<TransferKey[]>([])
const data: TransferDataItem[] = [
{ key: 1001, label: 'Alex' },
{ key: 1002, label: 'Blair' },
{ key: 2001, label: 'Drew' }
]
const filterMethod = (query: string, item: TransferDataItem) =>
String(item.key).startsWith(query.trim())
</script>
<template>
<HuiTransfer
v-model="value"
:data="data"
filterable
:filter-method="filterMethod"
filter-placeholder="Enter an employee number"
/>
</template>
Disabled
disabled disables the entire Transfer; per-item disabled flags affect individual entries.
<script setup lang="ts">
import { ref } from 'vue'
import { HuiTransfer, HuiSpace } from '@nscode/handy-ui'
import type { TransferDataItem, TransferKey } from '@nscode/handy-ui'
const value = ref<TransferKey[]>([2])
const data: TransferDataItem[] = [
{ key: 1, label: 'Item 1' },
{ key: 2, label: 'Item 2' },
{ key: 3, label: 'Item 3 (disabled)', disabled: true }
]
</script>
<template>
<HuiSpace direction="vertical" fill>
<HuiTransfer v-model="value" :data="data" />
<HuiTransfer v-model="value" :data="data" filterable disabled />
</HuiSpace>
</template>
Custom item content
The default slot receives item. Narrow additional fields before reading them.
<script setup lang="ts">
import { ref } from 'vue'
import { HuiTransfer } from '@nscode/handy-ui'
import type { TransferDataItem, TransferKey } from '@nscode/handy-ui'
const value = ref<TransferKey[]>([1002])
const data: TransferDataItem[] = [
{ key: 1001, label: 'Alex' },
{ key: 1002, label: 'Blair' },
{ key: 1003, label: 'Casey' },
{ key: 2001, label: 'Drew' }
]
</script>
<template>
<HuiTransfer v-model="value" :data="data">
<template #default="{ item }">{{ item.key }} - {{ item.label }}</template>
</HuiTransfer>
</template>
List footers
left-footer and right-footer add business controls outside the scrolling item lists.
<script setup lang="ts">
import { ref } from 'vue'
import { HuiTransfer, HuiButton } from '@nscode/handy-ui'
import type { TransferDataItem, TransferKey } from '@nscode/handy-ui'
const value = ref<TransferKey[]>([1])
const data = ref<TransferDataItem[]>([
{ key: 1, label: 'Item 1' },
{ key: 2, label: 'Item 2' }
])
const add = () => {
const next = data.value.length + 1
data.value = [...data.value, { key: next, label: `Item ${next}` }]
}
</script>
<template>
<HuiTransfer v-model="value" :data="data">
<template #left-footer>
<HuiButton size="small" @click="add">Add an item</HuiButton>
</template>
<template #right-footer>
<HuiButton size="small" @click="value = []">Move all back</HuiButton>
</template>
</HuiTransfer>
</template>
Clear temporary checks
clearChecked clears both checked sets and emits the respective check-change events, leaving the target value unchanged.
<script setup lang="ts">
import { ref } from 'vue'
import { HuiButton, HuiSpace, HuiTransfer } from '@nscode/handy-ui'
import type { TransferDataItem, TransferKey } from '@nscode/handy-ui'
const transferRef = ref<InstanceType<typeof HuiTransfer>>()
const value = ref<TransferKey[]>([1])
const data: TransferDataItem[] = Array.from({ length: 6 }, (_, index) => ({
key: index + 1,
label: `Item ${index + 1}`
}))
</script>
<template>
<HuiSpace direction="vertical" align="start">
<HuiButton @click="transferRef?.clearChecked()">Clear checks (clearChecked)</HuiButton>
<HuiTransfer ref="transferRef" v-model="value" :data="data" />
</HuiSpace>
</template>
Events
Observe moved keys, direction, target value, and temporary check changes in the rendered event log.
<script setup lang="ts">
import { ref } from 'vue'
import { HuiSpace, HuiTransfer } from '@nscode/handy-ui'
import type { TransferDataItem, TransferKey } from '@nscode/handy-ui'
const value = ref<TransferKey[]>([4])
const logs = ref<string[]>([])
const data: TransferDataItem[] = Array.from({ length: 6 }, (_, index) => ({
key: index + 1,
label: `Item ${index + 1}`
}))
const log = (text: string) => {
logs.value = [text, ...logs.value].slice(0, 6)
}
const onChange = (
keys: TransferKey[],
direction: 'left' | 'right' | 'sort',
moved: TransferKey[]
) =>
log(`change: ${direction}; moved ${JSON.stringify(moved)}; target keys ${JSON.stringify(keys)}`)
const onLeftCheck = (keys: TransferKey[]) => log(`leftCheckChange: ${JSON.stringify(keys)}`)
const onRightCheck = (keys: TransferKey[]) => log(`rightCheckChange: ${JSON.stringify(keys)}`)
</script>
<template>
<HuiSpace direction="vertical" align="start">
<HuiTransfer
v-model="value"
:data="data"
@change="onChange"
@left-check-change="onLeftCheck"
@right-check-change="onRightCheck"
/>
<div class="logs">
<div v-if="logs.length === 0">No events yet</div>
<div v-for="(item, index) in logs" :key="index">{{ item }}</div>
</div>
</HuiSpace>
</template>
<style scoped>
.logs {
color: var(--hui-text-color-secondary);
font-size: var(--hui-font-size-sm);
}
</style>
Larger datasets
Lists scroll within the component. Override the panel width and maximum height through CSS variables or local styles.
<script setup lang="ts">
import { ref } from 'vue'
import { HuiTransfer } from '@nscode/handy-ui'
import type { TransferDataItem, TransferKey } from '@nscode/handy-ui'
const value = ref<TransferKey[]>([1, 2, 3])
const data: TransferDataItem[] = Array.from({ length: 50 }, (_, index) => ({
key: index + 1,
label: `Employee ${String(index + 1).padStart(3, '0')}`
}))
</script>
<template>
<HuiTransfer v-model="value" :data="data" filterable class="wide-transfer" />
</template>
<style scoped>
.wide-transfer.hui-transfer {
max-height: 280px;
}
.wide-transfer :deep(.hui-transfer__panel) {
width: 260px;
}
</style>
Form validation
Transfer remains a business field: model changes validate the containing FormItem unless validateEvent=false. Search and temporary checks do not change the business value.
<script setup lang="ts">
import { reactive, ref } from 'vue'
import {
HuiButton,
HuiForm,
HuiFormItem,
HuiMessage,
HuiSpace,
HuiTransfer
} from '@nscode/handy-ui'
import type { FormRule, TransferDataItem, TransferKey } from '@nscode/handy-ui'
const formRef = ref<InstanceType<typeof HuiForm>>()
const model = reactive<{ members: TransferKey[] }>({ members: [1] })
const rules: Record<string, FormRule[]> = {
members: [{ required: true, message: 'Select at least one member', trigger: 'change' }]
}
const data: TransferDataItem[] = [
{ key: 1, label: 'Alex' },
{ key: 2, label: 'Blair' },
{ key: 3, label: 'Casey' },
{ key: 4, label: 'Drew' }
]
const submit = async () => {
const result = await formRef.value?.validate()
if (result?.valid) HuiMessage.success('Validation passed')
}
</script>
<template>
<HuiForm ref="formRef" :model="model" :rules="rules" label-width="80px">
<HuiFormItem label="Project members" prop="members">
<HuiTransfer
v-model="model.members"
:data="data"
:titles="['All members', 'Selected members']"
/>
</HuiFormItem>
<HuiFormItem>
<HuiSpace>
<HuiButton type="primary" @click="submit">Submit</HuiButton>
<HuiButton @click="formRef?.resetFields()">Reset</HuiButton>
</HuiSpace>
</HuiFormItem>
</HuiForm>
</template>
Form isolation
Only built-in search and checkboxes are isolated from duplicate form registration. Transfer keeps inherited disabled/readonly behavior and forwards it explicitly. The prior checkbox size chain is preserved: Form small still wins over the previously isolated FormItem large. User item/footer slots get no extra isolation.
<script setup lang="ts">
import { ref } from 'vue'
import { HuiForm, HuiFormItem, HuiInput, HuiTransfer } from '@nscode/handy-ui'
const boundaryValue = ref<(string | number)[]>([])
const boundaryData = [
{ key: 1, label: 'Assignments' },
{ key: 2, label: 'Disabled item', disabled: true }
]
</script>
<template>
<HuiForm disabled size="small">
<HuiFormItem label="Assignments" size="large">
<HuiTransfer v-model="boundaryValue" :data="boundaryData" filterable>
<template #left-footer><HuiInput model-value="Additional business input" /></template>
</HuiTransfer>
</HuiFormItem>
</HuiForm>
</template>
Keyboard navigation
Each list has one Tab stop. ArrowUp and ArrowDown move between enabled visible items; Home and End focus the first and last. Enter or Space toggles the focused item. Move buttons and each list's select-all checkbox remain separate Tab stops.
Removing an item, changing its side, or setting its own disabled flag clears that side's cached check and count, with the corresponding check-change event. A move includes only checked items still enabled on their current side; an empty eligible set emits no value request. Parent rejection keeps the original lists and still clears this move's checks. Disabling the entire Transfer only pauses interaction and preserves valid checks for re-enabling.
PageUp and PageDown move one viewport, measured separately for each side, or 10 items when measurement is unavailable. Navigation stops at the boundaries. Stable keys preserve the stop across reordering; removal or disabling yields to a nearby enabled item. Filtering changes only that side's navigation range. Data updates do not move actual focus.
Characters typed within 500ms form a label prefix; repeating one character cycles through matches. Space inside that prefix is consumed without checking an item; an independent Space still toggles it. Composition, key code 229, Ctrl/Meta/Alt shortcuts, and already prevented events do not perform ordinary navigation or checking. Target sorting separately supports Alt+ArrowUp / Alt+ArrowDown when enabled and not searching; it stops at the ends. Search fields and custom row inputs retain their native keyboard behavior.
<template>
<HuiSpace direction="vertical" fill>
<span>Tab into a list, press B to skip disabled Blackberry, then Enter to check Bravo.</span>
<HuiTransfer
v-model="value"
:data="data"
filterable
@left-check-change="checked = JSON.stringify($event)"
/>
<span>Left checked: {{ checked }}; target keys: {{ value }}</span>
</HuiSpace>
</template>
<script setup>
import { ref } from 'vue'
import { HuiTransfer, HuiSpace } from '@nscode/handy-ui'
const value = ref([100, 101])
const checked = ref('[]')
const data = [
{ key: 1, label: 'Alpha' },
{ key: 'disabled', label: 'Blackberry', disabled: true },
{ key: 2, label: 'Bravo' },
...Array.from({ length: 18 }, (_, index) => ({ key: index + 10, label: `Item ${index + 1}` })),
{ key: 100, label: 'Amber target' },
{ key: 101, label: 'Bravo target' }
]
</script>
Focus methods
Use a typed TransferExpose ref. focus() moves to the first available Tab stop without changing temporary checks or target keys. Disabled and read-only forms block focus(). blur() only removes focus from inside this component. Moving between its controls emits no extra focus or blur; leaving the entire group emits blur. Saved focus/blur methods do nothing after unmount.
<script setup lang="ts">
import { ref } from 'vue'
import { HuiButton, HuiSpace, HuiTransfer } from '@nscode/handy-ui'
import type { TransferDataItem, TransferExpose, TransferKey } from '@nscode/handy-ui'
const control = ref<TransferExpose>()
const value = ref<TransferKey[]>([2])
const disabled = ref(false)
const focused = ref(false)
const updates = ref(0)
const events = ref<string[]>([])
const data: TransferDataItem[] = [
{ key: 0, label: 'Zero' },
{ key: '', label: 'Empty string' },
{ key: 2, label: 'B' }
]
const recordFocus = (inside: boolean) => {
focused.value = inside
events.value.push(inside ? 'focus' : 'blur')
}
</script>
<template>
<HuiSpace class="transfer-focus-demo" direction="vertical" fill>
<HuiSpace wrap>
<HuiButton class="transfer-focus-button" @mousedown.prevent @click="control?.focus()"
>Focus</HuiButton
>
<HuiButton class="transfer-blur-button" @mousedown.prevent @click="control?.blur()"
>Blur</HuiButton
>
<HuiButton class="transfer-disable-button" @click="disabled = !disabled">{{
disabled ? 'Enable' : 'Disable'
}}</HuiButton>
</HuiSpace>
<HuiTransfer
ref="control"
v-model="value"
:data="data"
:disabled="disabled"
filterable
@focus="recordFocus(true)"
@blur="recordFocus(false)"
@update:model-value="updates++"
/>
<span class="transfer-focus-status"
>Focus: {{ focused ? 'inside' : 'outside' }};{{ events.join(' → ') || 'No events' }}</span
>
<span class="transfer-focus-value"
>Target: {{ JSON.stringify(value) }};Model updates: {{ updates }}</span
>
</HuiSpace>
</template>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| modelValue / v-model | TransferKey[] | undefined | Target keys. Omit for internal state from an empty array; a passed prop, including undefined, is controlled. |
| data | TransferDataItem[] | [] | Complete item collection. |
| targetOrder | 'original' | 'push' | 'unshift' | 'original' | Target display and insertion order. Sorting always uses bound-key order. |
| targetSortable | boolean | false | Enable target buttons, Alt+arrows and dragging; paused during target search. |
| titles | [string, string] | Locale list titles | Source and target titles. |
| buttonTexts | [string, string] | ['', ''] | Move-right and move-left button text. Empty strings display > and <. |
| filterable | boolean | false | Show a search field in each list. |
| filterMethod | (query: string, item: TransferDataItem) => boolean | — | Custom filtering; otherwise match labels case-insensitively. |
| filterPlaceholder | string | Locale placeholder | Search input placeholder. |
| disabled | boolean | false | Disable this Transfer. Also inherits the containing Form disabled state. |
| validateEvent | boolean | true | Validate the containing FormItem when the bound value changes. |
Events
| Event | Arguments | Description |
|---|---|---|
| update:modelValue | (value: TransferKey[]) | Moves and sorting request new target keys before change. |
| change | (value: TransferKey[], direction: TransferChangeDirection, movedKeys: TransferKey[]) | Requested key snapshot. left/right moves between lists; sort reorders one target item, whose key is in movedKeys. |
| leftCheckChange | (keys: TransferKey[]) | Current checked source keys, also emitted when moving or data changes clear them. |
| rightCheckChange | (keys: TransferKey[]) | Current checked target keys. |
| focus | (event: FocusEvent) | Focus entered this component; moving between its controls does not emit again. |
| blur | (event: FocusEvent) | Focus left the entire component. |
The public checked-key notifications are declared and emitted as leftCheckChange and rightCheckChange. Vue templates can still use @left-check-change and @right-check-change; render functions use onLeftCheckChange and onRightCheckChange. Only the new declared events are emitted. Key types, array copies and notification order when moving or pruning selections remain unchanged.
Slots
| Slot | Scope | Description |
|---|---|---|
| default | { item: TransferDataItem } | Custom item content; otherwise display label. |
| left-footer | — | Source-list footer. |
| right-footer | — | Target-list footer. |
Methods
Access methods through a component ref.
| Method | Signature | Description |
|---|---|---|
| clearChecked | () => void | Clear both temporary checked sets and emit the corresponding check-change events. This does not change modelValue. |
| focus | () => void | Focus the first available Tab stop; preserve checks and target keys. Disabled/read-only or unmounted instances do nothing. |
| blur | () => void | Blur only the active element inside this component; do nothing after unmount. |
Types
import type { TransferExpose } from '@nscode/handy-ui'
interface TransferExpose {
focus: () => void
blur: () => void
clearChecked: () => void
}
type TransferKey = string | number
type TransferTargetOrder = 'original' | 'push' | 'unshift'
type TransferChangeDirection = 'left' | 'right' | 'sort'
interface TransferDataItem {
[key: string]: unknown
key: TransferKey
label: string
disabled?: boolean
}
interface TransferProps {
modelValue?: TransferKey[]
data?: TransferDataItem[]
targetOrder?: TransferTargetOrder
targetSortable?: boolean
titles?: [string, string]
buttonTexts?: [string, string]
filterable?: boolean
filterMethod?: (query: string, item: TransferDataItem) => boolean
filterPlaceholder?: string
disabled?: boolean
validateEvent?: boolean
}
TransferEmits is also exported. Narrow custom item fields before using them; their type is unknown.