From 2febd99a43e367e7100e9fc21bd6eef1cd1ea47e Mon Sep 17 00:00:00 2001
From: Robert Jaros Simple observable list implementation. Simple observable list implementation. Simple observable list implementation. Helper function for creating JavaScript objects from dynamic constructors. Utility extension function to synchronise elements of the MutableList. Overrides ObservableList.onUpdate Observable list interface. Helper function for creating JavaScript objects from dynamic constructors. Utility extension function to synchronise elements of the MutableList. Simple observable list implementation.
+
+<init>
+
+ObservableListWrapper(mutableList: MutableList<T> = mutableListOf())
+
+
+addAll
+
+fun addAll(elements: Collection<T>): Boolean
+
+fun addAll(index: Int, elements: Collection<T>): Boolean
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/add.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/add.html
new file mode 100644
index 00000000..f27df790
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/add.html
@@ -0,0 +1,16 @@
+
+
+
+
+
+add
+
+fun add(element: T): Boolean
+
+fun add(index: Int, element: T): Unit
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/clear.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/clear.html
new file mode 100644
index 00000000..133083cc
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/clear.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+clear
+
+fun clear(): Unit
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/contains-all.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/contains-all.html
new file mode 100644
index 00000000..0efa9d8f
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/contains-all.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+containsAll
+
+fun containsAll(elements: Collection<T>): Boolean
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/contains.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/contains.html
new file mode 100644
index 00000000..9ae02722
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/contains.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+contains
+
+fun contains(element: T): Boolean
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/get.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/get.html
new file mode 100644
index 00000000..6366a1a8
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/get.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+get
+
+fun get(index: Int): T
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/index-of.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/index-of.html
new file mode 100644
index 00000000..6124cd75
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/index-of.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+indexOf
+
+fun indexOf(element: T): Int
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/index.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/index.html
new file mode 100644
index 00000000..76a51d0d
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/index.html
@@ -0,0 +1,204 @@
+
+
+
+
+
+ObservableListWrapper
+class ObservableListWrapper<T> : MutableList<T>, ObservableList<T>
+Constructors
+
+
+
+
+
+
+
+
+
+
+
+ObservableListWrapper(mutableList: MutableList<T> = mutableListOf())
+Properties
+
+
+
+
+
+
+
+
+
+
+val mutableList: MutableList<T>
+
+
+
+
+
+
+val onUpdate: MutableCollection<(MutableList<T>) -> Unit>
+
+
+
+
+
+
+
+val size: Int
Functions
+
+
+
+
+
+
+
+
+
+
+fun add(element: T): Boolean
+fun add(index: Int, element: T): Unit
+
+
+
+
+
+
+fun addAll(elements: Collection<T>): Boolean
+fun addAll(index: Int, elements: Collection<T>): Boolean
+
+
+
+
+
+
+fun clear(): Unit
+
+
+
+
+
+
+fun contains(element: T): Boolean
+
+
+
+
+
+
+fun containsAll(elements: Collection<T>): Boolean
+
+
+
+
+
+
+fun get(index: Int): T
+
+
+
+
+
+
+fun indexOf(element: T): Int
+
+
+
+
+
+
+fun isEmpty(): Boolean
+
+
+
+
+
+
+fun iterator(): MutableIterator<T>
+
+
+
+
+
+
+fun lastIndexOf(element: T): Int
+
+
+
+
+
+
+fun listIterator(): MutableListIterator<T>
+fun listIterator(index: Int): MutableListIterator<T>
+
+
+
+
+
+
+fun remove(element: T): Boolean
+
+
+
+
+
+
+fun removeAll(elements: Collection<T>): Boolean
+
+
+
+
+
+
+fun removeAt(index: Int): T
+
+
+
+
+
+
+fun retainAll(elements: Collection<T>): Boolean
+
+
+
+
+
+
+fun set(index: Int, element: T): T
+
+
+
+
+
+
+
+fun subList(fromIndex: Int, toIndex: Int): MutableList<T>
Extension Functions
+
+
+
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/is-empty.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/is-empty.html
new file mode 100644
index 00000000..7476ad91
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/is-empty.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+fun <T> Any?.createInstance(vararg args: dynamic): T
+
+
+
+
+
+
+
+
+fun <T> MutableList<T>.syncWithList(list: List<T>): Unit
+
+
+isEmpty
+
+fun isEmpty(): Boolean
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/iterator.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/iterator.html
new file mode 100644
index 00000000..6451260c
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/iterator.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+iterator
+
+fun iterator(): MutableIterator<T>
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/last-index-of.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/last-index-of.html
new file mode 100644
index 00000000..65196cd5
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/last-index-of.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+lastIndexOf
+
+fun lastIndexOf(element: T): Int
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/list-iterator.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/list-iterator.html
new file mode 100644
index 00000000..3266abd0
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/list-iterator.html
@@ -0,0 +1,16 @@
+
+
+
+
+
+listIterator
+
+fun listIterator(): MutableListIterator<T>
+
+fun listIterator(index: Int): MutableListIterator<T>
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/mutable-list.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/mutable-list.html
new file mode 100644
index 00000000..ed123582
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/mutable-list.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+mutableList
+
+val mutableList: MutableList<T>
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/on-update.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/on-update.html
new file mode 100644
index 00000000..67a6abde
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/on-update.html
@@ -0,0 +1,15 @@
+
+
+
+
+
+onUpdate
+
+val onUpdate: MutableCollection<(MutableList<T>) -> Unit>
+
+
+removeAll
+
+fun removeAll(elements: Collection<T>): Boolean
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/remove-at.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/remove-at.html
new file mode 100644
index 00000000..cc02b15d
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/remove-at.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+removeAt
+
+fun removeAt(index: Int): T
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/remove.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/remove.html
new file mode 100644
index 00000000..4e89fb6f
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/remove.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+remove
+
+fun remove(element: T): Boolean
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/retain-all.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/retain-all.html
new file mode 100644
index 00000000..7675f11e
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/retain-all.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+retainAll
+
+fun retainAll(elements: Collection<T>): Boolean
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/set.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/set.html
new file mode 100644
index 00000000..f0c5f4b5
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/set.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+set
+
+fun set(index: Int, element: T): T
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/size.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/size.html
new file mode 100644
index 00000000..92e321d5
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/size.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+size
+
+val size: Int
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list-wrapper/sub-list.html b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/sub-list.html
new file mode 100644
index 00000000..c4635f9b
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list-wrapper/sub-list.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+subList
+
+fun subList(fromIndex: Int, toIndex: Int): MutableList<T>
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list/index.html b/api/pl.treksoft.kvision.utils/-observable-list/index.html
new file mode 100644
index 00000000..07b47de8
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list/index.html
@@ -0,0 +1,63 @@
+
+
+
+
+
+ObservableList
+interface ObservableList<T> : MutableList<T>
+Properties
+
+
+
+
+
+
+
+
+
+
+
+abstract val onUpdate: MutableCollection<(MutableList<T>) -> Unit>
Extension Functions
+
+
+
+
+
+
+
+
+
+
+fun <T> Any?.createInstance(vararg args: dynamic): T
+
+
+
+
+
+
+
+
+fun <T> MutableList<T>.syncWithList(list: List<T>): Unit
+Inheritors
+
+
+
+
+
diff --git a/api/pl.treksoft.kvision.utils/-observable-list/on-update.html b/api/pl.treksoft.kvision.utils/-observable-list/on-update.html
new file mode 100644
index 00000000..3ffa447f
--- /dev/null
+++ b/api/pl.treksoft.kvision.utils/-observable-list/on-update.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+class ObservableListWrapper<T> : MutableList<T>, ObservableList<T>
+
+
+onUpdate
+
+abstract val onUpdate: MutableCollection<(MutableList<T>) -> Unit>
+
+
diff --git a/api/pl.treksoft.kvision.utils/index.html b/api/pl.treksoft.kvision.utils/index.html
index ff0cd878..0a14333f 100644
--- a/api/pl.treksoft.kvision.utils/index.html
+++ b/api/pl.treksoft.kvision.utils/index.html
@@ -66,6 +66,24 @@ performance is O(1) and for cache eviction, it is O(1).
JavaScript Object type
+interface ObservableList<T> : MutableList<T>
+Observable list interface.
+class ObservableListWrapper<T> : MutableList<T>, ObservableList<T>
+Simple observable list implementation.
+fun <T> observableListOf(vararg items: T): ObservableListWrapper<T>
+Creates an instance of ObservableList
+val Int.ch: CssSize
-Extension property to convert Int to CSS ch units.
- - diff --git a/api/pl.treksoft.kvision.utils/kotlin.-int/cm.html b/api/pl.treksoft.kvision.utils/kotlin.-int/cm.html deleted file mode 100644 index dbc1f12a..00000000 --- a/api/pl.treksoft.kvision.utils/kotlin.-int/cm.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -val Int.cm: CssSize
-Extension property to convert Int to CSS cm units.
- - diff --git a/api/pl.treksoft.kvision.utils/kotlin.-int/em.html b/api/pl.treksoft.kvision.utils/kotlin.-int/em.html deleted file mode 100644 index 686672a7..00000000 --- a/api/pl.treksoft.kvision.utils/kotlin.-int/em.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -val Int.em: CssSize
-Extension property to convert Int to CSS em units.
- - diff --git a/api/pl.treksoft.kvision.utils/kotlin.-int/in.html b/api/pl.treksoft.kvision.utils/kotlin.-int/in.html deleted file mode 100644 index cb492cfc..00000000 --- a/api/pl.treksoft.kvision.utils/kotlin.-int/in.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -val Int.in: CssSize
-Extension property to convert Int to CSS in units.
- - diff --git a/api/pl.treksoft.kvision.utils/kotlin.-int/index.html b/api/pl.treksoft.kvision.utils/kotlin.-int/index.html index 771352cc..264af1d0 100644 --- a/api/pl.treksoft.kvision.utils/kotlin.-int/index.html +++ b/api/pl.treksoft.kvision.utils/kotlin.-int/index.html @@ -12,69 +12,6 @@val Int.ch: CssSize
-Extension property to convert Int to CSS ch units.
-val Int.cm: CssSize
-Extension property to convert Int to CSS cm units.
-val Int.em: CssSize
-Extension property to convert Int to CSS em units.
-val Int.in: CssSize
-Extension property to convert Int to CSS in units.
-val Int.mm: CssSize
-Extension property to convert Int to CSS mm units.
-val Int.pc: CssSize
-Extension property to convert Int to CSS pc units.
-val Int.perc: CssSize
-Extension property to convert Int to CSS percent units.
-val Int.rem: CssSize
-Extension property to convert Int to CSS rem units.
-Extension function to convert Int to hex format.
val Int.vh: CssSize
-Extension property to convert Int to CSS vh units.
-val Int.vmax: CssSize
-Extension property to convert Int to CSS vmax units.
-val Int.vmin: CssSize
-Extension property to convert Int to CSS vmin units.
-val Int.vw: CssSize
-Extension property to convert Int to CSS vw units.
-val Int.mm: CssSize
-Extension property to convert Int to CSS mm units.
-diff --git a/api/pl.treksoft.kvision.utils/kotlin.-int/mm.html b/api/pl.treksoft.kvision.utils/kotlin.-int/mm.html deleted file mode 100644 index 10b6c608..00000000 --- a/api/pl.treksoft.kvision.utils/kotlin.-int/mm.html +++ /dev/null @@ -1,15 +0,0 @@ - -
- -
- - -
-