From 8883419bfcec00947863741d48dbd89cc877615a Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Thu, 4 Apr 2019 13:10:28 +0200 Subject: API documentation for KVision 0.0.32 --- api/index-outline.html | 904 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 873 insertions(+), 31 deletions(-) (limited to 'api/index-outline.html') diff --git a/api/index-outline.html b/api/index-outline.html index 68046587..eff79b36 100644 --- a/api/index-outline.html +++ b/api/index-outline.html @@ -111,6 +111,7 @@ +typealias ActionCreator<A, S> = (Dispatch<A>, GetState<S>) -> Unit
external interface AddRepresentationOptions
@@ -2818,13 +2811,17 @@ abstract fun addCssClass(css: String): Component
+abstract fun addCssClass(css: Style): Component
abstract fun addSurroundingCssClass(css: String): Component
+abstract fun addSurroundingCssClass(css: Style): Component
abstract fun getElement(): Node?
abstract fun getElementJQuery(): JQuery?
abstract fun getElementJQueryD(): dynamic
abstract var parent: Container?
abstract fun removeCssClass(css: String): Component
+abstract fun removeCssClass(css: Style): Component
abstract fun removeSurroundingCssClass(css: String): Component
+abstract fun removeSurroundingCssClass(css: Style): Component
abstract var visible: Boolean
@@ -3867,6 +3864,42 @@ +class DummyWebSocketServerSession
+ +class DummyWsSessionModule
+ external interface EditFlags
+open class Footer : Tag
+ enum class ForceType
+open class H1 : Tag
+ +open class H2 : Tag
+ +open class H3 : Tag
+ +open class H4 : Tag
+ +open class H5 : Tag
+ +open class H6 : Tag
+ open class HPanel : FlexPanel
+open class Header : Tag
+ open class HeaderCell : Tag
+enum class HttpMethod
+ enum class HttpType
@@ -5467,6 +5631,7 @@ protected inline actual fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, method: HttpMethod, route: String?): Unit
protected inline actual fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET, method: HttpMethod, route: String?): Unit
protected actual fun bind(function: T.(String?, String?) -> List<<ERROR CLASS>>): Unit
+protected inline actual fun <reified PAR1 : Any, reified PAR2 : Any> bind(noinline function: suspend T.(<ERROR CLASS><PAR1>, <ERROR CLASS><PAR2>) -> Unit, route: String?): Unit
fun call(method: HttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): <ERROR CLASS>.() -> Unit
protected val calls: MutableMap<String, Pair<String, HttpMethod>>
var counter: Int
@@ -5480,6 +5645,7 @@ val putRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit>
val routes: MutableList<<ERROR CLASS>.() -> Unit>
val serviceClass: KClass<T>
+val webSocketRequests: MutableMap<String, suspend <ERROR CLASS>.() -> Unit>
@@ -5497,7 +5663,7 @@ -open class Label : Tag
+open class Label : Span
@@ -6071,11 +6237,14 @@ protected open fun afterInsert(node: VNode): Unit
var animation: Boolean
var caption: String?
+open fun clearParent(): Widget
var closeButton: Boolean
open fun getChildren(): List<Component>
+open fun getRoot(): Root?
protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
open fun hide(): Widget
+open var parent: Container?
open fun remove(child: Component): SimplePanel
open fun removeAll(): SimplePanel
open fun removeAllButtons(): Modal
@@ -6733,6 +6902,20 @@ +open class P : Tag
+ external interface PageFaviconUpdatedEvent : Event
+enum class Placement
+ external interface PluginCrashedEvent : Event
+data class PopoverOptions
+ external interface PopupOptions
+open class RestClient
+ external interface Result
+open class Section : Tag
+ class SecurityException : Exception
+class Socket
+ +class SocketClosedException : Throwable
+ enum class SorterType
+open class Span : Tag
+ open class Spinner : SimplePanel, NumberFormControl
-class StateBinding<S : Any, A, CONT : Container> : Widget
+class StateBinding<S : Any, A, CONT : Container, CONTENT> : Widget
typealias StringPair = Pair<String, String>
+open class Style : StyledComponent
+ abstract class StyledComponent : Component
+data class TooltipOptions
+ enum class TooltipPosition
+enum class Trigger
+ enum class UNIT
+class Updateable<S : Any, CONTENT>
+ open class Upload : SimplePanel, KFilesFormControl
+class WsSessionModule
+ kotlin.Any
+enum class Placement
+ +data class PopoverOptions
+ @@ -13413,6 +13868,35 @@ typealias StringBoolPair = Pair<String, Boolean>
typealias StringPair = Pair<String, String>
+open class Style : StyledComponent
+ abstract class StyledComponent : Component
+data class TooltipOptions
+ +enum class Trigger
+ enum class UNIT
+fun TooltipOptions.toJs(): dynamic
+fun PopoverOptions.toJs(): dynamic
@@ -20491,6 +21027,118 @@ +open class Footer : Tag
+ +open class H1 : Tag
+ +open class H2 : Tag
+ +open class H3 : Tag
+ +open class H4 : Tag
+ +open class H5 : Tag
+ +open class H6 : Tag
+ +open class Header : Tag
+ open class Icon : Tag
-open class Label : Tag
+open class Label : Span
@@ -20643,6 +21291,20 @@ +open class P : Tag
+ enum class Sandbox
+open class Section : Tag
+ +open class Span : Tag
+ enum class TAG
-class StateBinding<S : Any, A, CONT : Container> : Widget
+class StateBinding<S : Any, A, CONT : Container, CONTENT> : Widget
+class Updateable<S : Any, CONTENT>
+ inline fun <reified S : Any, A> createReduxStore(noinline reducer: <ERROR CLASS><S, A>, initialState: S, vararg middlewares: dynamic): ReduxStore<S, A>
@@ -21680,16 +22390,8 @@ CallAgent()
-inline fun <reified T : Any> call(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, noinline transform: (dynamic) -> dynamic = null): Promise<T>
-inline fun <reified V : Any> call(url: String, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic>
-inline fun <T : Any, reified V : Any> call(url: String, data: V, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, noinline transform: (dynamic) -> dynamic = null): Promise<T>
-inline fun <reified T : Any, V : Any> call(url: String, serializer: SerializationStrategy<V>, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, noinline transform: (dynamic) -> dynamic = null): Promise<T>
-inline fun <reified T : Any, reified V : Any> call(url: String, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, noinline transform: (dynamic) -> dynamic = null): Promise<T>
fun jsonRpcCall(url: String, data: List<String?> = listOf(), method: HttpMethod = HttpMethod.POST): Promise<String>
fun remoteCall(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic>
-fun <T : Any> remoteCall(url: String, data: dynamic = null, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T>
-fun <V : Any> remoteCall(url: String, serializer: SerializationStrategy<V>, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic>
-fun <T : Any, V : Any> remoteCall(url: String, serializer: SerializationStrategy<V>, data: V, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T>
@@ -21722,6 +22424,42 @@ +class DummyWebSocketServerSession
+ +class DummyWsSessionModule
+ const val HTTP_UNAUTHORIZED: Int
object JSON
@@ -21801,6 +22541,7 @@ protected inline actual fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, method: HttpMethod, route: String?): Unit
protected inline actual fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET, method: HttpMethod, route: String?): Unit
protected actual fun bind(function: T.(String?, String?) -> List<<ERROR CLASS>>): Unit
+protected inline actual fun <reified PAR1 : Any, reified PAR2 : Any> bind(noinline function: suspend T.(<ERROR CLASS><PAR1>, <ERROR CLASS><PAR2>) -> Unit, route: String?): Unit
fun call(method: HttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): <ERROR CLASS>.() -> Unit
protected val calls: MutableMap<String, Pair<String, HttpMethod>>
var counter: Int
@@ -21814,6 +22555,7 @@ val putRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit>
val routes: MutableList<<ERROR CLASS>.() -> Unit>
val serviceClass: KClass<T>
+val webSocketRequests: MutableMap<String, suspend <ERROR CLASS>.() -> Unit>
@@ -21932,8 +22674,56 @@ +class Socket
+ +class SocketClosedException : Throwable
+ +class WsSessionModule
+ fun <ERROR CLASS>.addPathPatternsFromServices(services: List<KVServiceManager<*>>): Unit
fun <T : Any> <ERROR CLASS>.applyRoutes(serviceManager: KVServiceManager<T>): Unit
+fun getWebSocketUrl(url: String): String
val <ERROR CLASS>.injector: <ERROR CLASS>
val injectorKey: <ERROR CLASS>
fun <ERROR CLASS>.kvisionInit(): Unit
@@ -21945,6 +22735,58 @@ +package pl.treksoft.kvision.rest
+ package pl.treksoft.kvision.routing