Remove datalist parts

This commit is contained in:
Alexander Nozik 2021-06-13 21:30:19 +03:00
parent 9b99df88a5
commit 9cc3f65a18

View File

@ -1,27 +0,0 @@
@file:JsModule("@jetbrains/ring-ui/components/data-list/selection")
package ringui.datalist
public external interface SelectionProperties<T> {
public var data: Array<dynamic>
public var selected: Set<T>
public var focused: T?
public var getKey: (T) -> dynamic
public var getChildren: (T) -> Array<T>
public var isItemSelectable: (T) -> Boolean
}
@JsName("default")
public external class Selection<T>(args: SelectionProperties<T> = definedExternally) {
public fun select(item: T = definedExternally)
public fun deselect(item: T = definedExternally)
public fun toggleSelection(item: T = definedExternally)
public fun selectAll()
public fun resetFocus()
public fun resetSelection()
public fun reset()
public fun isFocused(value: T): Boolean
public fun isSelected(value: T): Boolean
public fun getFocused(): T
public fun getSelected(): Set<T>
public fun getActive(): Set<T>
}