From c7169d6e9dec101fc5523f84766b6fd0c3ecb656 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 16 Feb 2019 23:29:42 +0100 Subject: API documentation for KVision 0.0.25 --- api/alltypes/index.html | 49 ++-- api/index-outline.html | 292 +++++++++++---------- api/package-list | 2 +- .../-header/index.html | 15 ++ .../-separator/index.html | 15 ++ .../-field-label/index.html | 15 ++ .../-help-block/index.html | 15 ++ api/pl.treksoft.kvision.html/-div/index.html | 15 ++ api/pl.treksoft.kvision.html/-icon/index.html | 15 ++ api/pl.treksoft.kvision.html/-label/index.html | 15 ++ api/pl.treksoft.kvision.html/-tag/index.html | 15 ++ api/pl.treksoft.kvision.html/-template/index.html | 15 ++ api/pl.treksoft.kvision.html/index.html | 15 ++ api/pl.treksoft.kvision.html/set-data.html | 17 ++ .../-nav-form/index.html | 15 ++ api/pl.treksoft.kvision.navbar/-nav/index.html | 15 ++ .../-call-agent/call.html | 104 ++++++++ .../-call-agent/index.html | 23 +- .../-call-agent/json-rpc-call.html | 8 +- .../-call-agent/remote-call.html | 64 +++++ .../-call-module/-init-.html | 14 + .../-call-module/configure.html | 14 + .../-call-module/index.html | 37 +++ .../-i-n-j-e-c-t-o-r_-k-e-y.html | 14 + .../-k-v-controller/application-context.html | 14 + .../-k-v-controller/index.html | 11 +- .../-k-v-controller/kv-server.html | 14 - .../-k-v-controller/services.html | 14 + .../-k-v-server/-init-.html | 22 -- .../-k-v-server/index.html | 46 ---- .../-k-v-server/services.html | 14 - .../-k-v-service-manager/add-route.html | 6 +- .../-k-v-service-manager/apply-routes.html | 16 -- .../-k-v-service-manager/bind.html | 28 +- .../-k-v-service-manager/call.html | 4 +- .../-k-v-service-manager/calls.html | 2 +- .../-k-v-service-manager/delete-requests.html | 2 +- .../-k-v-service-manager/get-calls.html | 2 +- .../-k-v-service-manager/get-requests.html | 14 + .../-k-v-service-manager/index.html | 48 ++-- .../-k-v-service-manager/options-requests.html | 2 +- .../-k-v-service-manager/post-requests.html | 2 +- .../-k-v-service-manager/put-requests.html | 2 +- .../-k-v-service-manager/routes.html | 2 +- .../-login-service/-init-.html | 6 +- .../-login-service/index.html | 15 +- .../-login-service/login-endpoint.html | 14 + .../-login-service/login.html | 2 +- .../-main-module/-init-.html | 14 + .../-main-module/configure.html | 14 + .../-main-module/index.html | 37 +++ .../-security-mgr/-init-.html | 2 +- .../-security-mgr/index.html | 4 +- .../-spring-context/-init-.html | 14 - .../-spring-context/get-bean.html | 21 -- .../-spring-context/index.html | 55 ---- .../-spring-context/set-application-context.html | 14 - api/pl.treksoft.kvision.remote/apply-routes.html | 14 + api/pl.treksoft.kvision.remote/index.html | 68 +++-- api/pl.treksoft.kvision.remote/injector.html | 14 + api/pl.treksoft.kvision.remote/kvision-init.html | 16 ++ api/pl.treksoft.kvision.remote/with-profile.html | 8 +- api/pl.treksoft.kvision.table/-cell/index.html | 15 ++ .../-header-cell/index.html | 15 ++ api/pl.treksoft.kvision.table/-row/index.html | 15 ++ api/pl.treksoft.kvision.types/-date-converter.html | 13 - api/pl.treksoft.kvision.types/index.html | 14 - api/pl.treksoft.kvision.types/kv-table-config.html | 14 - api/pl.treksoft.kvision.utils/-j-s-o-n/index.html | 4 +- api/pl.treksoft.kvision.utils/-j-s-o-n/to-obj.html | 8 +- .../index.html | 25 -- .../sync-with-list.html | 15 -- api/pl.treksoft.kvision.utils/index.html | 10 +- .../kotlin.collections.-mutable-list/index.html | 25 ++ .../sync-with-list.html | 15 ++ 75 files changed, 1040 insertions(+), 563 deletions(-) create mode 100644 api/pl.treksoft.kvision.html/set-data.html create mode 100644 api/pl.treksoft.kvision.remote/-call-agent/call.html create mode 100644 api/pl.treksoft.kvision.remote/-call-module/-init-.html create mode 100644 api/pl.treksoft.kvision.remote/-call-module/configure.html create mode 100644 api/pl.treksoft.kvision.remote/-call-module/index.html create mode 100644 api/pl.treksoft.kvision.remote/-i-n-j-e-c-t-o-r_-k-e-y.html create mode 100644 api/pl.treksoft.kvision.remote/-k-v-controller/application-context.html delete mode 100644 api/pl.treksoft.kvision.remote/-k-v-controller/kv-server.html create mode 100644 api/pl.treksoft.kvision.remote/-k-v-controller/services.html delete mode 100644 api/pl.treksoft.kvision.remote/-k-v-server/-init-.html delete mode 100644 api/pl.treksoft.kvision.remote/-k-v-server/index.html delete mode 100644 api/pl.treksoft.kvision.remote/-k-v-server/services.html delete mode 100644 api/pl.treksoft.kvision.remote/-k-v-service-manager/apply-routes.html create mode 100644 api/pl.treksoft.kvision.remote/-k-v-service-manager/get-requests.html create mode 100644 api/pl.treksoft.kvision.remote/-login-service/login-endpoint.html create mode 100644 api/pl.treksoft.kvision.remote/-main-module/-init-.html create mode 100644 api/pl.treksoft.kvision.remote/-main-module/configure.html create mode 100644 api/pl.treksoft.kvision.remote/-main-module/index.html delete mode 100644 api/pl.treksoft.kvision.remote/-spring-context/-init-.html delete mode 100644 api/pl.treksoft.kvision.remote/-spring-context/get-bean.html delete mode 100644 api/pl.treksoft.kvision.remote/-spring-context/index.html delete mode 100644 api/pl.treksoft.kvision.remote/-spring-context/set-application-context.html create mode 100644 api/pl.treksoft.kvision.remote/apply-routes.html create mode 100644 api/pl.treksoft.kvision.remote/injector.html create mode 100644 api/pl.treksoft.kvision.remote/kvision-init.html delete mode 100644 api/pl.treksoft.kvision.types/-date-converter.html delete mode 100644 api/pl.treksoft.kvision.types/kv-table-config.html delete mode 100644 api/pl.treksoft.kvision.utils/com.lightningkite.kotlin.observable.list.-observable-list/index.html delete mode 100644 api/pl.treksoft.kvision.utils/com.lightningkite.kotlin.observable.list.-observable-list/sync-with-list.html create mode 100644 api/pl.treksoft.kvision.utils/kotlin.collections.-mutable-list/index.html create mode 100644 api/pl.treksoft.kvision.utils/kotlin.collections.-mutable-list/sync-with-list.html diff --git a/api/alltypes/index.html b/api/alltypes/index.html index d8bc1d69..0c408bd3 100644 --- a/api/alltypes/index.html +++ b/api/alltypes/index.html @@ -186,6 +186,12 @@ +pl.treksoft.kvision.remote.CallModule + + + + + pl.treksoft.kvision.html.Canvas

Canvas component.

@@ -352,12 +358,6 @@ -pl.treksoft.kvision.types.DateConverter - - - - - pl.treksoft.kvision.form.DateFormControl

Base interface of a form control with a date value.

@@ -731,6 +731,7 @@ pl.treksoft.kvision.utils.JSON +

JSON utility functions

@@ -774,14 +775,6 @@ -pl.treksoft.kvision.remote.KVServer - -

A server. -Not used on the js platform.

- - - - pl.treksoft.kvision.remote.KVServiceManager

Multiplatform service manager.

@@ -826,7 +819,13 @@ Not used on the js platform.

pl.treksoft.kvision.remote.LoginService -

Pac4j form login dispatcher.

+

Form login dispatcher.

+ + + + +pl.treksoft.kvision.remote.MainModule + @@ -858,6 +857,12 @@ Not used on the js platform.

+kotlin.collections.MutableList (extensions in package pl.treksoft.kvision.utils) + + + + + pl.treksoft.kvision.navbar.Nav

The Bootstrap Nav container.

@@ -900,12 +905,6 @@ Not used on the js platform.

-com.lightningkite.kotlin.observable.list.ObservableList (extensions in package pl.treksoft.kvision.utils) - - - - - pl.treksoft.kvision.core.Overflow

Definitions of CSS overflow options.

@@ -1082,7 +1081,7 @@ Not used on the js platform.

pl.treksoft.kvision.remote.SecurityMgr -

Pac4j form login dispatcher.

+

Form login dispatcher.

@@ -1184,12 +1183,6 @@ Not used on the js platform.

-pl.treksoft.kvision.remote.SpringContext - - - - - pl.treksoft.kvision.panel.StackPanel

The container with only one active (visible) child at any moment.

diff --git a/api/index-outline.html b/api/index-outline.html index 0f57d8aa..aa7f8c94 100644 --- a/api/index-outline.html +++ b/api/index-outline.html @@ -464,8 +464,30 @@ CallAgent()
-fun jsonRpcCall(url: String, data: List<String?> = listOf(), method: RpcHttpMethod = RpcHttpMethod.POST): Promise<String>
+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>
+ + + +class CallModule
+ @@ -971,7 +993,6 @@ -object DateConverter
interface DateFormControl : FormControl
@@ -2044,8 +2066,9 @@ KVController()
+lateinit var applicationContext: <ERROR CLASS>
open fun kVMapping(req: <ERROR CLASS>, res: <ERROR CLASS>): Unit
-lateinit var kvServer: KVServer
+lateinit var services: List<KVServiceManager<*>>
@@ -2076,22 +2099,6 @@ -open actual class KVServer
- open actual class KVServiceManager<T : Any>
+class MainModule
+ @@ -3174,23 +3197,6 @@ -class SpringContext
- open class StackPanel : SimplePanel
-com.lightningkite.kotlin.observable.list.ObservableList
- java.util.Date
+kotlin.collections.MutableList
+ kotlin.js.Date
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+inline fun <reified K : Any> Template.setData(obj: K): Unit
@@ -7981,8 +7989,30 @@ CallAgent()
-fun jsonRpcCall(url: String, data: List<String?> = listOf(), method: RpcHttpMethod = RpcHttpMethod.POST): Promise<String>
+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>
+ + + +class CallModule
+ @@ -8002,6 +8032,7 @@ const val HTTP_UNAUTHORIZED: Int
+val INJECTOR_KEY: <ERROR CLASS>
open class KVController
@@ -8044,22 +8076,6 @@ -open actual class KVServer
- open actual class KVServiceManager<T : Any>
+class MainModule
+ @@ -8182,26 +8214,13 @@ -class SpringContext
- fun <ERROR CLASS>.addPathPatternsFromServices(services: List<KVServiceManager<*>>): Unit
-fun <RESP> <ERROR CLASS>.withProfile(block: (Profile) -> RESP): RESP
-fun <RESP> withProfile(block: (Profile) -> RESP): RESP
+fun <T : Any> <ERROR CLASS>.applyRoutes(serviceManager: KVServiceManager<T>): Unit
+val <ERROR CLASS>.injector: <ERROR CLASS>
+fun <ERROR CLASS>.kvisionInit(): Unit
+fun <ERROR CLASS>.kvisionInit(vararg modules: <ERROR CLASS>): Unit
+suspend fun <RESP> <ERROR CLASS>.withProfile(block: suspend (Profile) -> RESP): RESP
+suspend fun <RESP> withProfile(block: suspend (Profile) -> RESP): RESP
fun <ERROR CLASS>.writeJSON(json: String): Unit
@@ -8428,7 +8447,6 @@ -object DateConverter
object DateSerializer : KSerializer<Date>
-val kvTableConfig: <ERROR CLASS>
@@ -8527,7 +8544,8 @@ val nonstrict: Json
val plain: Json
-inline fun <reified T : Any> T.toObj(): Any
+inline fun <reified T : Any> T.toObj(): dynamic
+fun <T> T.toObj(serializer: SerializationStrategy<T>): dynamic
@@ -8559,19 +8577,6 @@ val auto: CssSize
-com.lightningkite.kotlin.observable.list.ObservableList
- fun isIE11(): Boolean
kotlin.Int
+kotlin.collections.MutableList
+ val normal: CssSize
fun obj(init: dynamic.() -> Unit): dynamic
org.w3c.files.File
diff --git a/api/package-list b/api/package-list index eb099b4a..12bea19e 100644 --- a/api/package-list +++ b/api/package-list @@ -35,7 +35,7 @@ $dokka.location:pl.treksoft.kvision.utils$perc#kotlin.Intpl.treksoft.kvision.ut $dokka.location:pl.treksoft.kvision.utils$pt#kotlin.Intpl.treksoft.kvision.utils/kotlin.-int/pt.html $dokka.location:pl.treksoft.kvision.utils$px#kotlin.Intpl.treksoft.kvision.utils/kotlin.-int/px.html $dokka.location:pl.treksoft.kvision.utils$rem#kotlin.Intpl.treksoft.kvision.utils/kotlin.-int/rem.html -$dokka.location:pl.treksoft.kvision.utils$syncWithList(com.lightningkite.kotlin.observable.list.ObservableList((pl.treksoft.kvision.utils.syncWithList.T)), kotlin.collections.List((pl.treksoft.kvision.utils.syncWithList.T)))pl.treksoft.kvision.utils/com.lightningkite.kotlin.observable.list.-observable-list/sync-with-list.html +$dokka.location:pl.treksoft.kvision.utils$syncWithList(kotlin.collections.MutableList((pl.treksoft.kvision.utils.syncWithList.T)), kotlin.collections.List((pl.treksoft.kvision.utils.syncWithList.T)))pl.treksoft.kvision.utils/kotlin.collections.-mutable-list/sync-with-list.html $dokka.location:pl.treksoft.kvision.utils$toHexString(kotlin.Int)pl.treksoft.kvision.utils/kotlin.-int/to-hex-string.html $dokka.location:pl.treksoft.kvision.utils$vh#kotlin.Intpl.treksoft.kvision.utils/kotlin.-int/vh.html $dokka.location:pl.treksoft.kvision.utils$vmax#kotlin.Intpl.treksoft.kvision.utils/kotlin.-int/vmax.html diff --git a/api/pl.treksoft.kvision.dropdown/-header/index.html b/api/pl.treksoft.kvision.dropdown/-header/index.html index 4146a17c..42fe633c 100644 --- a/api/pl.treksoft.kvision.dropdown/-header/index.html +++ b/api/pl.treksoft.kvision.dropdown/-header/index.html @@ -119,5 +119,20 @@ +

Extension Functions

+ + + + + + + +
+

setData

+
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+fun <K : Any> Template.setData(obj: K): Unit +

Extension function to set serializable object as a template data.

+
diff --git a/api/pl.treksoft.kvision.dropdown/-separator/index.html b/api/pl.treksoft.kvision.dropdown/-separator/index.html index 7881324b..bc7f876d 100644 --- a/api/pl.treksoft.kvision.dropdown/-separator/index.html +++ b/api/pl.treksoft.kvision.dropdown/-separator/index.html @@ -119,5 +119,20 @@ +

Extension Functions

+ + + + + + + +
+

setData

+
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+fun <K : Any> Template.setData(obj: K): Unit +

Extension function to set serializable object as a template data.

+
diff --git a/api/pl.treksoft.kvision.form/-field-label/index.html b/api/pl.treksoft.kvision.form/-field-label/index.html index 6ae50480..4c7cf63e 100644 --- a/api/pl.treksoft.kvision.form/-field-label/index.html +++ b/api/pl.treksoft.kvision.form/-field-label/index.html @@ -118,5 +118,20 @@ +

Extension Functions

+ + + + + + + +
+

setData

+
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+fun <K : Any> Template.setData(obj: K): Unit +

Extension function to set serializable object as a template data.

+
diff --git a/api/pl.treksoft.kvision.form/-help-block/index.html b/api/pl.treksoft.kvision.form/-help-block/index.html index f0e51946..1c24cf06 100644 --- a/api/pl.treksoft.kvision.form/-help-block/index.html +++ b/api/pl.treksoft.kvision.form/-help-block/index.html @@ -104,5 +104,20 @@ +

Extension Functions

+ + + + + + + +
+

setData

+
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+fun <K : Any> Template.setData(obj: K): Unit +

Extension function to set serializable object as a template data.

+
diff --git a/api/pl.treksoft.kvision.html/-div/index.html b/api/pl.treksoft.kvision.html/-div/index.html index 1bafe2bc..92c164f9 100644 --- a/api/pl.treksoft.kvision.html/-div/index.html +++ b/api/pl.treksoft.kvision.html/-div/index.html @@ -118,5 +118,20 @@ +

Extension Functions

+ + + + + + + +
+

setData

+
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+fun <K : Any> Template.setData(obj: K): Unit +

Extension function to set serializable object as a template data.

+
diff --git a/api/pl.treksoft.kvision.html/-icon/index.html b/api/pl.treksoft.kvision.html/-icon/index.html index 53bc8b48..0846762e 100644 --- a/api/pl.treksoft.kvision.html/-icon/index.html +++ b/api/pl.treksoft.kvision.html/-icon/index.html @@ -137,5 +137,20 @@ +

Extension Functions

+ + + + + + + +
+

setData

+
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+fun <K : Any> Template.setData(obj: K): Unit +

Extension function to set serializable object as a template data.

+
diff --git a/api/pl.treksoft.kvision.html/-label/index.html b/api/pl.treksoft.kvision.html/-label/index.html index b6012f1f..ea1a5d6a 100644 --- a/api/pl.treksoft.kvision.html/-label/index.html +++ b/api/pl.treksoft.kvision.html/-label/index.html @@ -118,5 +118,20 @@ +

Extension Functions

+ + + + + + + +
+

setData

+
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+fun <K : Any> Template.setData(obj: K): Unit +

Extension function to set serializable object as a template data.

+
diff --git a/api/pl.treksoft.kvision.html/-tag/index.html b/api/pl.treksoft.kvision.html/-tag/index.html index 0fd2fc5f..a73de3e0 100644 --- a/api/pl.treksoft.kvision.html/-tag/index.html +++ b/api/pl.treksoft.kvision.html/-tag/index.html @@ -200,6 +200,21 @@ +

Extension Functions

+ + + + + + + +
+

setData

+
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+fun <K : Any> Template.setData(obj: K): Unit +

Extension function to set serializable object as a template data.

+

Inheritors

diff --git a/api/pl.treksoft.kvision.html/-template/index.html b/api/pl.treksoft.kvision.html/-template/index.html index c5c15400..69e49a6e 100644 --- a/api/pl.treksoft.kvision.html/-template/index.html +++ b/api/pl.treksoft.kvision.html/-template/index.html @@ -52,6 +52,21 @@
+

Extension Functions

+ + + + + + + +
+

setData

+
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+fun <K : Any> Template.setData(obj: K): Unit +

Extension function to set serializable object as a template data.

+

Inheritors

diff --git a/api/pl.treksoft.kvision.html/index.html b/api/pl.treksoft.kvision.html/index.html index e9ff52a5..44a97d1d 100644 --- a/api/pl.treksoft.kvision.html/index.html +++ b/api/pl.treksoft.kvision.html/index.html @@ -186,5 +186,20 @@ Support for Handlebars.js templates is included.

+

Functions

+ + + + + + + +
+

setData

+
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+fun <K : Any> Template.setData(obj: K): Unit +

Extension function to set serializable object as a template data.

+
diff --git a/api/pl.treksoft.kvision.html/set-data.html b/api/pl.treksoft.kvision.html/set-data.html new file mode 100644 index 00000000..c1ef1e82 --- /dev/null +++ b/api/pl.treksoft.kvision.html/set-data.html @@ -0,0 +1,17 @@ + + + +setData - kvision + + + +kvision / pl.treksoft.kvision.html / setData
+
+

setData

+ +fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+ +inline fun <reified K : Any> Template.setData(obj: K): Unit +

Extension function to set serializable object as a template data.

+ + diff --git a/api/pl.treksoft.kvision.navbar/-nav-form/index.html b/api/pl.treksoft.kvision.navbar/-nav-form/index.html index 1693a29d..9747cc7d 100644 --- a/api/pl.treksoft.kvision.navbar/-nav-form/index.html +++ b/api/pl.treksoft.kvision.navbar/-nav-form/index.html @@ -137,5 +137,20 @@ +

Extension Functions

+ + + + + + + +
+

setData

+
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+fun <K : Any> Template.setData(obj: K): Unit +

Extension function to set serializable object as a template data.

+
diff --git a/api/pl.treksoft.kvision.navbar/-nav/index.html b/api/pl.treksoft.kvision.navbar/-nav/index.html index fcc991bc..4bd6673a 100644 --- a/api/pl.treksoft.kvision.navbar/-nav/index.html +++ b/api/pl.treksoft.kvision.navbar/-nav/index.html @@ -137,5 +137,20 @@ +

Extension Functions

+ + + + + + + +
+

setData

+
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+fun <K : Any> Template.setData(obj: K): Unit +

Extension function to set serializable object as a template data.

+
diff --git a/api/pl.treksoft.kvision.remote/-call-agent/call.html b/api/pl.treksoft.kvision.remote/-call-agent/call.html new file mode 100644 index 00000000..5d908ee6 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-call-agent/call.html @@ -0,0 +1,104 @@ + + + +CallAgent.call - kvision + + + +kvision / pl.treksoft.kvision.remote / CallAgent / call
+
+

call

+ +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> +

Helper inline function to automatically get deserializer for the result value with dynamic data.

+

Parameters

+

+url - an URL address

+

+data - data to be sent

+

+method - a HTTP method

+

+contentType - a content type of the request

+

+beforeSend - a content type of the request

+

+transform - a function to transform the result of the call

+

Return
+a promise of the result

+ +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> +

Helper inline function to automatically get serializer for the data.

+

Parameters

+

+url - an URL address

+

+data - data to be sent

+

+method - a HTTP method

+

+contentType - a content type of the request

+

+beforeSend - a content type of the request

+

Return
+a promise of the result

+ +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> +

Helper inline function to automatically get serializer for the data.

+

Parameters

+

+url - an URL address

+

+data - data to be sent

+

+deserializer - a deserializer for the result value

+

+method - a HTTP method

+

+contentType - a content type of the request

+

+beforeSend - a content type of the request

+

+transform - a function to transform the result of the call

+

Return
+a promise of the result

+ +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> +

Helper inline function to automatically deserializer for the result value with typed data.

+

Parameters

+

+url - an URL address

+

+serializer - for the data

+

+data - data to be sent

+

+method - a HTTP method

+

+contentType - a content type of the request

+

+beforeSend - a content type of the request

+

+transform - a function to transform the result of the call

+

Return
+a promise of the result

+ +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> +

Helper inline function to automatically get serializer for the data and deserializer for the result value.

+

Parameters

+

+url - an URL address

+

+data - data to be sent

+

+method - a HTTP method

+

+contentType - a content type of the request

+

+beforeSend - a content type of the request

+

+transform - a function to transform the result of the call

+

Return
+a promise of the result

+ + diff --git a/api/pl.treksoft.kvision.remote/-call-agent/index.html b/api/pl.treksoft.kvision.remote/-call-agent/index.html index 041e1ef1..650b46ef 100644 --- a/api/pl.treksoft.kvision.remote/-call-agent/index.html +++ b/api/pl.treksoft.kvision.remote/-call-agent/index.html @@ -29,10 +29,26 @@ +

call

+ + +fun <T : Any> call(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T> +

Helper inline function to automatically get deserializer for the result value with dynamic data.

+fun <V : Any> call(url: String, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic>
+fun <T : Any, V : Any> call(url: String, data: V, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T> +

Helper inline function to automatically get serializer for the data.

+fun <T : Any, V : Any> call(url: String, serializer: SerializationStrategy<V>, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T> +

Helper inline function to automatically deserializer for the result value with typed data.

+fun <T : Any, V : Any> call(url: String, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T> +

Helper inline function to automatically get serializer for the data and deserializer for the result value.

+ + + +

jsonRpcCall

-fun jsonRpcCall(url: String, data: List<String?> = listOf(), method: RpcHttpMethod = RpcHttpMethod.POST): Promise<String> +fun jsonRpcCall(url: String, data: List<String?> = listOf(), method: HttpMethod = HttpMethod.POST): Promise<String>

Makes an JSON-RPC call to the remote server.

@@ -41,7 +57,10 @@

remoteCall

-fun remoteCall(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic> +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>

Makes a remote call to the remote server.

diff --git a/api/pl.treksoft.kvision.remote/-call-agent/json-rpc-call.html b/api/pl.treksoft.kvision.remote/-call-agent/json-rpc-call.html index 2a0e976c..12ab8c4a 100644 --- a/api/pl.treksoft.kvision.remote/-call-agent/json-rpc-call.html +++ b/api/pl.treksoft.kvision.remote/-call-agent/json-rpc-call.html @@ -8,16 +8,16 @@ kvision / pl.treksoft.kvision.remote / CallAgent / jsonRpcCall

jsonRpcCall

- -fun jsonRpcCall(url: String, data: List<String?> = listOf(), method: RpcHttpMethod = RpcHttpMethod.POST): Promise<String> + +fun jsonRpcCall(url: String, data: List<String?> = listOf(), method: HttpMethod = HttpMethod.POST): Promise<String>

Makes an JSON-RPC call to the remote server.

Parameters

url - an URL address

-

-method - a HTTP method

data - data to be sent

+

+method - a HTTP method

Return
a promise of the result

diff --git a/api/pl.treksoft.kvision.remote/-call-agent/remote-call.html b/api/pl.treksoft.kvision.remote/-call-agent/remote-call.html index 1da57940..939fcb8a 100644 --- a/api/pl.treksoft.kvision.remote/-call-agent/remote-call.html +++ b/api/pl.treksoft.kvision.remote/-call-agent/remote-call.html @@ -14,10 +14,74 @@

Parameters

url - an URL address

+

+data - data to be sent

+

+method - a HTTP method

+

+contentType - a content type of the request

+

+beforeSend - a content type of the request

+

Return
+a promise of the result

+ +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> +

Makes a remote call to the remote server.

+

Parameters

+

+url - an URL address

+

+data - data to be sent

+

+deserializer - a deserializer for the result value

+

+method - a HTTP method

+

+contentType - a content type of the request

+

+beforeSend - a content type of the request

+

+transform - a function to transform the result of the call

+

Return
+a promise of the result

+ +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> +

Makes a remote call to the remote server.

+

Parameters

+

+url - an URL address

+

+serializer - for the data

+

+data - data to be sent

method - a HTTP method

+

+contentType - a content type of the request

+

+beforeSend - a content type of the request

+

Return
+a promise of the result

+ +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> +

Makes a remote call to the remote server.

+

Parameters

+

+url - an URL address

+

+serializer - for the data

data - data to be sent

+

+deserializer - a deserializer for the result value

+

+method - a HTTP method

+

+contentType - a content type of the request

+

+beforeSend - a content type of the request

+

+transform - a function to transform the result of the call

Return
a promise of the result

diff --git a/api/pl.treksoft.kvision.remote/-call-module/-init-.html b/api/pl.treksoft.kvision.remote/-call-module/-init-.html new file mode 100644 index 00000000..01125757 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-call-module/-init-.html @@ -0,0 +1,14 @@ + + + +CallModule.<init> - kvision + + + +kvision / pl.treksoft.kvision.remote / CallModule / <init>
+
+

<init>

+ +CallModule(call: <ERROR CLASS>) + + diff --git a/api/pl.treksoft.kvision.remote/-call-module/configure.html b/api/pl.treksoft.kvision.remote/-call-module/configure.html new file mode 100644 index 00000000..8a72a68c --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-call-module/configure.html @@ -0,0 +1,14 @@ + + + +CallModule.configure - kvision + + + +kvision / pl.treksoft.kvision.remote / CallModule / configure
+
+

configure

+ +fun configure(): Unit + + diff --git a/api/pl.treksoft.kvision.remote/-call-module/index.html b/api/pl.treksoft.kvision.remote/-call-module/index.html new file mode 100644 index 00000000..907c004f --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-call-module/index.html @@ -0,0 +1,37 @@ + + + +CallModule - kvision + + + +kvision / pl.treksoft.kvision.remote / CallModule
+
+

CallModule

+class CallModule +

Constructors

+ + + + + + + +
+

<init>

+
+CallModule(call: <ERROR CLASS>)
+

Functions

+ + + + + + + +
+

configure

+
+fun configure(): Unit
+ + diff --git a/api/pl.treksoft.kvision.remote/-i-n-j-e-c-t-o-r_-k-e-y.html b/api/pl.treksoft.kvision.remote/-i-n-j-e-c-t-o-r_-k-e-y.html new file mode 100644 index 00000000..fc432e44 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-i-n-j-e-c-t-o-r_-k-e-y.html @@ -0,0 +1,14 @@ + + + +INJECTOR_KEY - kvision + + + +kvision / pl.treksoft.kvision.remote / INJECTOR_KEY
+
+

INJECTOR_KEY

+ +val INJECTOR_KEY: <ERROR CLASS> + + diff --git a/api/pl.treksoft.kvision.remote/-k-v-controller/application-context.html b/api/pl.treksoft.kvision.remote/-k-v-controller/application-context.html new file mode 100644 index 00000000..7d5b1bb8 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-k-v-controller/application-context.html @@ -0,0 +1,14 @@ + + + +KVController.applicationContext - kvision + + + +kvision / pl.treksoft.kvision.remote / KVController / applicationContext
+
+

applicationContext

+ +lateinit var applicationContext: <ERROR CLASS> + + diff --git a/api/pl.treksoft.kvision.remote/-k-v-controller/index.html b/api/pl.treksoft.kvision.remote/-k-v-controller/index.html index 40ced1a9..20a36779 100644 --- a/api/pl.treksoft.kvision.remote/-k-v-controller/index.html +++ b/api/pl.treksoft.kvision.remote/-k-v-controller/index.html @@ -26,10 +26,17 @@ -

kvServer

+

applicationContext

-lateinit var kvServer: KVServer +lateinit var applicationContext: <ERROR CLASS> + + + +

services

+ + +lateinit var services: List<KVServiceManager<*>> diff --git a/api/pl.treksoft.kvision.remote/-k-v-controller/kv-server.html b/api/pl.treksoft.kvision.remote/-k-v-controller/kv-server.html deleted file mode 100644 index f47e94f8..00000000 --- a/api/pl.treksoft.kvision.remote/-k-v-controller/kv-server.html +++ /dev/null @@ -1,14 +0,0 @@ - - - -KVController.kvServer - kvision - - - -kvision / pl.treksoft.kvision.remote / KVController / kvServer
-
-

kvServer

- -lateinit var kvServer: KVServer - - diff --git a/api/pl.treksoft.kvision.remote/-k-v-controller/services.html b/api/pl.treksoft.kvision.remote/-k-v-controller/services.html new file mode 100644 index 00000000..15d401c6 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-k-v-controller/services.html @@ -0,0 +1,14 @@ + + + +KVController.services - kvision + + + +kvision / pl.treksoft.kvision.remote / KVController / services
+
+

services

+ +lateinit var services: List<KVServiceManager<*>> + + diff --git a/api/pl.treksoft.kvision.remote/-k-v-server/-init-.html b/api/pl.treksoft.kvision.remote/-k-v-server/-init-.html deleted file mode 100644 index 4b06965e..00000000 --- a/api/pl.treksoft.kvision.remote/-k-v-server/-init-.html +++ /dev/null @@ -1,22 +0,0 @@ - - - -KVServer.<init> - kvision - - - -kvision / pl.treksoft.kvision.remote / KVServer / <init>
-
-

<init>

- -KVServer() -

A server. -Not used on the js platform.

- -KVServer(init: KVServer.() -> Unit) -

A Jooby based server.

- -KVServer(services: List<KVServiceManager<*>>) -

A Spring boot based server.

- - diff --git a/api/pl.treksoft.kvision.remote/-k-v-server/index.html b/api/pl.treksoft.kvision.remote/-k-v-server/index.html deleted file mode 100644 index 131bfe1e..00000000 --- a/api/pl.treksoft.kvision.remote/-k-v-server/index.html +++ /dev/null @@ -1,46 +0,0 @@ - - - -KVServer - kvision - - - -kvision / pl.treksoft.kvision.remote / KVServer
-
-

KVServer

-open actual class KVServer -

A server. -Not used on the js platform.

-

Constructors

- - - - - - - -
-

<init>

-
-KVServer() -

A server. -Not used on the js platform.

-KVServer(init: KVServer.() -> Unit) -

A Jooby based server.

-KVServer(services: List<KVServiceManager<*>>) -

A Spring boot based server.

-
-

Properties

- - - - - - - -
-

services

-
-val services: List<KVServiceManager<*>>
- - diff --git a/api/pl.treksoft.kvision.remote/-k-v-server/services.html b/api/pl.treksoft.kvision.remote/-k-v-server/services.html deleted file mode 100644 index 9d72a47b..00000000 --- a/api/pl.treksoft.kvision.remote/-k-v-server/services.html +++ /dev/null @@ -1,14 +0,0 @@ - - - -KVServer.services - kvision - - - -kvision / pl.treksoft.kvision.remote / KVServer / services
-
-

services

- -val services: List<KVServiceManager<*>> - - diff --git a/api/pl.treksoft.kvision.remote/-k-v-service-manager/add-route.html b/api/pl.treksoft.kvision.remote/-k-v-service-manager/add-route.html index a144afab..928116e2 100644 --- a/api/pl.treksoft.kvision.remote/-k-v-service-manager/add-route.html +++ b/api/pl.treksoft.kvision.remote/-k-v-service-manager/add-route.html @@ -8,7 +8,9 @@ kvision / pl.treksoft.kvision.remote / KVServiceManager / addRoute

addRoute

- -fun addRoute(method: RpcHttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): Unit + +fun addRoute(method: HttpMethod, path: String, handler: suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit): Unit
+ +fun addRoute(method: HttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>, <ERROR CLASS>) -> Unit): Unit diff --git a/api/pl.treksoft.kvision.remote/-k-v-service-manager/apply-routes.html b/api/pl.treksoft.kvision.remote/-k-v-service-manager/apply-routes.html deleted file mode 100644 index 96e7e799..00000000 --- a/api/pl.treksoft.kvision.remote/-k-v-service-manager/apply-routes.html +++ /dev/null @@ -1,16 +0,0 @@ - - - -KVServiceManager.applyRoutes - kvision - - - -kvision / pl.treksoft.kvision.remote / KVServiceManager / applyRoutes
-
-

applyRoutes

- -actual fun applyRoutes(k: KVServer): Unit -

Applies all defined routes to the given server. -Not used on the js platform.

- - diff --git a/api/pl.treksoft.kvision.remote/-k-v-service-manager/bind.html b/api/pl.treksoft.kvision.remote/-k-v-service-manager/bind.html index cd647656..d4ed2d6b 100644 --- a/api/pl.treksoft.kvision.remote/-k-v-service-manager/bind.html +++ b/api/pl.treksoft.kvision.remote/-k-v-service-manager/bind.html @@ -8,26 +8,26 @@ kvision / pl.treksoft.kvision.remote / KVServiceManager / bind

bind

- -protected inline actual fun <reified RET> bind(noinline function: suspend T.() -> RET, route: String?, method: RpcHttpMethod): Unit
- -protected inline actual fun <reified PAR, reified RET> bind(noinline function: suspend T.(PAR) -> RET, route: String?, method: RpcHttpMethod): Unit
- -protected inline actual fun <reified PAR1, reified PAR2, reified RET> bind(noinline function: suspend T.(PAR1, PAR2) -> RET, route: String?, method: RpcHttpMethod): Unit
- -protected inline actual fun <reified PAR1, reified PAR2, reified PAR3, reified RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3) -> RET, route: String?, method: RpcHttpMethod): Unit
- -protected inline actual fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, route: String?, method: RpcHttpMethod): 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, route: String?, method: RpcHttpMethod): Unit + +protected inline actual fun <reified RET> bind(noinline function: suspend T.() -> RET, method: HttpMethod, route: String?): Unit
+ +protected inline actual fun <reified PAR, reified RET> bind(noinline function: suspend T.(PAR) -> RET, method: HttpMethod, route: String?): Unit
+ +protected inline actual fun <reified PAR1, reified PAR2, reified RET> bind(noinline function: suspend T.(PAR1, PAR2) -> RET, method: HttpMethod, route: String?): Unit
+ +protected inline actual fun <reified PAR1, reified PAR2, reified PAR3, reified RET> bind(noinline function: suspend T.(PAR1, PAR2, PAR3) -> RET, method: HttpMethod, route: String?): Unit
+ +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

Binds a given route with a function of the receiver.

Parameters

function - a function of the receiver

-

-route - a route

method - a HTTP method

+

+route - a route

protected actual fun bind(function: T.(String?, String?) -> List<<ERROR CLASS>>): Unit

Binds a given function of the receiver as a select options source

diff --git a/api/pl.treksoft.kvision.remote/-k-v-service-manager/call.html b/api/pl.treksoft.kvision.remote/-k-v-service-manager/call.html index baed88fa..d5959ccd 100644 --- a/api/pl.treksoft.kvision.remote/-k-v-service-manager/call.html +++ b/api/pl.treksoft.kvision.remote/-k-v-service-manager/call.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.remote / KVServiceManager / call

call

- -fun call(method: RpcHttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): KVServer.() -> Unit + +fun call(method: HttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): <ERROR CLASS>.() -> Unit diff --git a/api/pl.treksoft.kvision.remote/-k-v-service-manager/calls.html b/api/pl.treksoft.kvision.remote/-k-v-service-manager/calls.html index 79c1a020..7ec715d7 100644 --- a/api/pl.treksoft.kvision.remote/-k-v-service-manager/calls.html +++ b/api/pl.treksoft.kvision.remote/-k-v-service-manager/calls.html @@ -9,6 +9,6 @@

calls

-protected val calls: MutableMap<String, Pair<String, RpcHttpMethod>> +protected val calls: MutableMap<String, Pair<String, HttpMethod>> diff --git a/api/pl.treksoft.kvision.remote/-k-v-service-manager/delete-requests.html b/api/pl.treksoft.kvision.remote/-k-v-service-manager/delete-requests.html index a3a2efcc..6398ff4a 100644 --- a/api/pl.treksoft.kvision.remote/-k-v-service-manager/delete-requests.html +++ b/api/pl.treksoft.kvision.remote/-k-v-service-manager/delete-requests.html @@ -9,6 +9,6 @@

deleteRequests

-val deleteRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit> +val deleteRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit> diff --git a/api/pl.treksoft.kvision.remote/-k-v-service-manager/get-calls.html b/api/pl.treksoft.kvision.remote/-k-v-service-manager/get-calls.html index f665a679..eb5887ff 100644 --- a/api/pl.treksoft.kvision.remote/-k-v-service-manager/get-calls.html +++ b/api/pl.treksoft.kvision.remote/-k-v-service-manager/get-calls.html @@ -9,7 +9,7 @@

getCalls

-open fun getCalls(): Map<String, Pair<String, RpcHttpMethod>> +fun getCalls(): Map<String, Pair<String, HttpMethod>>

Returns the map of defined paths.

diff --git a/api/pl.treksoft.kvision.remote/-k-v-service-manager/get-requests.html b/api/pl.treksoft.kvision.remote/-k-v-service-manager/get-requests.html new file mode 100644 index 00000000..714b7d36 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-k-v-service-manager/get-requests.html @@ -0,0 +1,14 @@ + + + +KVServiceManager.getRequests - kvision + + + +kvision / pl.treksoft.kvision.remote / KVServiceManager / getRequests
+
+

getRequests

+ +val getRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit> + + diff --git a/api/pl.treksoft.kvision.remote/-k-v-service-manager/index.html b/api/pl.treksoft.kvision.remote/-k-v-service-manager/index.html index 3e703de4..f2cf9b89 100644 --- a/api/pl.treksoft.kvision.remote/-k-v-service-manager/index.html +++ b/api/pl.treksoft.kvision.remote/-k-v-service-manager/index.html @@ -32,7 +32,7 @@

calls

-val calls: MutableMap<String, Pair<String, RpcHttpMethod>> +val calls: MutableMap<String, Pair<String, HttpMethod>> @@ -46,7 +46,14 @@

deleteRequests

-val deleteRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit> +val deleteRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit> + + + +

getRequests

+ + +val getRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit> @@ -60,28 +67,28 @@

optionsRequests

-val optionsRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit> +val optionsRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit>

postRequests

-val postRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit> +val postRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit>

putRequests

-val putRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit> +val putRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit>

routes

-val routes: MutableList<KVServer.() -> Unit> +val routes: MutableList<<ERROR CLASS>.() -> Unit> @@ -100,29 +107,20 @@

addRoute

-fun addRoute(method: RpcHttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): Unit - - - -

applyRoutes

- - -actual fun applyRoutes(k: KVServer): Unit -

Applies all defined routes to the given server. -Not used on the js platform.

- +fun addRoute(method: HttpMethod, path: String, handler: suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit): Unit
+fun addRoute(method: HttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>, <ERROR CLASS>) -> Unit): Unit

bind

-actual fun <RET> bind(function: suspend T.() -> RET, route: String?, method: RpcHttpMethod): Unit
-actual fun <PAR, RET> bind(function: suspend T.(PAR) -> RET, route: String?, method: RpcHttpMethod): Unit
-actual fun <PAR1, PAR2, RET> bind(function: suspend T.(PAR1, PAR2) -> RET, route: String?, method: RpcHttpMethod): Unit
-actual fun <PAR1, PAR2, PAR3, RET> bind(function: suspend T.(PAR1, PAR2, PAR3) -> RET, route: String?, method: RpcHttpMethod): Unit
-actual fun <PAR1, PAR2, PAR3, PAR4, RET> bind(function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, route: String?, method: RpcHttpMethod): Unit
-actual fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET> bind(function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET, route: String?, method: RpcHttpMethod): Unit +actual fun <RET> bind(function: suspend T.() -> RET, method: HttpMethod, route: String?): Unit
+actual fun <PAR, RET> bind(function: suspend T.(PAR) -> RET, method: HttpMethod, route: String?): Unit
+actual fun <PAR1, PAR2, RET> bind(function: suspend T.(PAR1, PAR2) -> RET, method: HttpMethod, route: String?): Unit
+actual fun <PAR1, PAR2, PAR3, RET> bind(function: suspend T.(PAR1, PAR2, PAR3) -> RET, method: HttpMethod, route: String?): Unit
+actual fun <PAR1, PAR2, PAR3, PAR4, RET> bind(function: suspend T.(PAR1, PAR2, PAR3, PAR4) -> RET, method: HttpMethod, route: String?): Unit
+actual fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET> bind(function: suspend T.(PAR1, PAR2, PAR3, PAR4, PAR5) -> RET, method: HttpMethod, route: String?): Unit

Binds a given route with a function of the receiver.

actual fun bind(function: T.(String?, String?) -> List<<ERROR CLASS>>): Unit

Binds a given function of the receiver as a select options source

@@ -133,14 +131,14 @@ Not used on the js platform.

call

-fun call(method: RpcHttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): KVServer.() -> Unit +fun call(method: HttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): <ERROR CLASS>.() -> Unit

getCalls

-open fun getCalls(): Map<String, Pair<String, RpcHttpMethod>> +fun getCalls(): Map<String, Pair<String, HttpMethod>>

Returns the map of defined paths.

diff --git a/api/pl.treksoft.kvision.remote/-k-v-service-manager/options-requests.html b/api/pl.treksoft.kvision.remote/-k-v-service-manager/options-requests.html index 36fb3334..83d19fd1 100644 --- a/api/pl.treksoft.kvision.remote/-k-v-service-manager/options-requests.html +++ b/api/pl.treksoft.kvision.remote/-k-v-service-manager/options-requests.html @@ -9,6 +9,6 @@

optionsRequests

-val optionsRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit> +val optionsRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit> diff --git a/api/pl.treksoft.kvision.remote/-k-v-service-manager/post-requests.html b/api/pl.treksoft.kvision.remote/-k-v-service-manager/post-requests.html index 8022e055..1f819332 100644 --- a/api/pl.treksoft.kvision.remote/-k-v-service-manager/post-requests.html +++ b/api/pl.treksoft.kvision.remote/-k-v-service-manager/post-requests.html @@ -9,6 +9,6 @@

postRequests

-val postRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit> +val postRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit> diff --git a/api/pl.treksoft.kvision.remote/-k-v-service-manager/put-requests.html b/api/pl.treksoft.kvision.remote/-k-v-service-manager/put-requests.html index 4538803e..a17d543c 100644 --- a/api/pl.treksoft.kvision.remote/-k-v-service-manager/put-requests.html +++ b/api/pl.treksoft.kvision.remote/-k-v-service-manager/put-requests.html @@ -9,6 +9,6 @@

putRequests

-val putRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit> +val putRequests: MutableMap<String, suspend <ERROR CLASS><Unit, <ERROR CLASS>>.(Unit) -> Unit> diff --git a/api/pl.treksoft.kvision.remote/-k-v-service-manager/routes.html b/api/pl.treksoft.kvision.remote/-k-v-service-manager/routes.html index 252f1ccc..49b7318a 100644 --- a/api/pl.treksoft.kvision.remote/-k-v-service-manager/routes.html +++ b/api/pl.treksoft.kvision.remote/-k-v-service-manager/routes.html @@ -9,6 +9,6 @@

routes

-protected val routes: MutableList<KVServer.() -> Unit> +val routes: MutableList<<ERROR CLASS>.() -> Unit> diff --git a/api/pl.treksoft.kvision.remote/-login-service/-init-.html b/api/pl.treksoft.kvision.remote/-login-service/-init-.html index fc85eeab..eb38c216 100644 --- a/api/pl.treksoft.kvision.remote/-login-service/-init-.html +++ b/api/pl.treksoft.kvision.remote/-login-service/-init-.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.remote / LoginService / <init>

<init>

- -LoginService() -

Pac4j form login dispatcher.

+ +LoginService(loginEndpoint: String) +

Form login dispatcher.

diff --git a/api/pl.treksoft.kvision.remote/-login-service/index.html b/api/pl.treksoft.kvision.remote/-login-service/index.html index c0c2bd83..45f65f43 100644 --- a/api/pl.treksoft.kvision.remote/-login-service/index.html +++ b/api/pl.treksoft.kvision.remote/-login-service/index.html @@ -9,7 +9,7 @@

LoginService

class LoginService -

Pac4j form login dispatcher.

+

Form login dispatcher.

Constructors

@@ -18,8 +18,8 @@

<init>

@@ -34,6 +34,13 @@ + + + +
-LoginService() -

Pac4j form login dispatcher.

+LoginService(loginEndpoint: String) +

Form login dispatcher.

val loginAgent: CallAgent
+

loginEndpoint

+
+val loginEndpoint: String

Functions

@@ -45,7 +52,7 @@ suspend fun login(credentials: Credentials?): Boolean -

Login with Pac4j FormClient.

+

Login with a form.

diff --git a/api/pl.treksoft.kvision.remote/-login-service/login-endpoint.html b/api/pl.treksoft.kvision.remote/-login-service/login-endpoint.html new file mode 100644 index 00000000..ac24b0d5 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-login-service/login-endpoint.html @@ -0,0 +1,14 @@ + + + +LoginService.loginEndpoint - kvision + + + +kvision / pl.treksoft.kvision.remote / LoginService / loginEndpoint
+
+

loginEndpoint

+ +val loginEndpoint: String + + diff --git a/api/pl.treksoft.kvision.remote/-login-service/login.html b/api/pl.treksoft.kvision.remote/-login-service/login.html index 0141d535..bc43ce98 100644 --- a/api/pl.treksoft.kvision.remote/-login-service/login.html +++ b/api/pl.treksoft.kvision.remote/-login-service/login.html @@ -10,7 +10,7 @@

login

suspend fun login(credentials: Credentials?): Boolean -

Login with Pac4j FormClient.

+

Login with a form.

Parameters

credentials - username and password credentials

diff --git a/api/pl.treksoft.kvision.remote/-main-module/-init-.html b/api/pl.treksoft.kvision.remote/-main-module/-init-.html new file mode 100644 index 00000000..6c6b8317 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-main-module/-init-.html @@ -0,0 +1,14 @@ + + + +MainModule.<init> - kvision + + + +kvision / pl.treksoft.kvision.remote / MainModule / <init>
+
+

<init>

+ +MainModule(application: <ERROR CLASS>) + + diff --git a/api/pl.treksoft.kvision.remote/-main-module/configure.html b/api/pl.treksoft.kvision.remote/-main-module/configure.html new file mode 100644 index 00000000..07871bc5 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-main-module/configure.html @@ -0,0 +1,14 @@ + + + +MainModule.configure - kvision + + + +kvision / pl.treksoft.kvision.remote / MainModule / configure
+
+

configure

+ +fun configure(): Unit + + diff --git a/api/pl.treksoft.kvision.remote/-main-module/index.html b/api/pl.treksoft.kvision.remote/-main-module/index.html new file mode 100644 index 00000000..0e930267 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-main-module/index.html @@ -0,0 +1,37 @@ + + + +MainModule - kvision + + + +kvision / pl.treksoft.kvision.remote / MainModule
+
+

MainModule

+class MainModule +

Constructors

+ + + + + + + +
+

<init>

+
+MainModule(application: <ERROR CLASS>)
+

Functions

+ + + + + + + +
+

configure

+
+fun configure(): Unit
+ + diff --git a/api/pl.treksoft.kvision.remote/-security-mgr/-init-.html b/api/pl.treksoft.kvision.remote/-security-mgr/-init-.html index 4e31e55d..d276e99a 100644 --- a/api/pl.treksoft.kvision.remote/-security-mgr/-init-.html +++ b/api/pl.treksoft.kvision.remote/-security-mgr/-init-.html @@ -10,6 +10,6 @@

<init>

SecurityMgr() -

Pac4j form login dispatcher.

+

Form login dispatcher.

diff --git a/api/pl.treksoft.kvision.remote/-security-mgr/index.html b/api/pl.treksoft.kvision.remote/-security-mgr/index.html index 2c1b3d96..92fefd27 100644 --- a/api/pl.treksoft.kvision.remote/-security-mgr/index.html +++ b/api/pl.treksoft.kvision.remote/-security-mgr/index.html @@ -9,7 +9,7 @@

SecurityMgr

abstract class SecurityMgr -

Pac4j form login dispatcher.

+

Form login dispatcher.

Constructors

@@ -19,7 +19,7 @@ diff --git a/api/pl.treksoft.kvision.remote/-spring-context/-init-.html b/api/pl.treksoft.kvision.remote/-spring-context/-init-.html deleted file mode 100644 index 66b70a2d..00000000 --- a/api/pl.treksoft.kvision.remote/-spring-context/-init-.html +++ /dev/null @@ -1,14 +0,0 @@ - - - -SpringContext.<init> - kvision - - - -kvision / pl.treksoft.kvision.remote / SpringContext / <init>
-
-

<init>

- -SpringContext() - - diff --git a/api/pl.treksoft.kvision.remote/-spring-context/get-bean.html b/api/pl.treksoft.kvision.remote/-spring-context/get-bean.html deleted file mode 100644 index 24be4c0c..00000000 --- a/api/pl.treksoft.kvision.remote/-spring-context/get-bean.html +++ /dev/null @@ -1,21 +0,0 @@ - - - -SpringContext.getBean - kvision - - - -kvision / pl.treksoft.kvision.remote / SpringContext / getBean
-
-

getBean

- -fun <T> getBean(beanClass: Class<T>): T -

Get a Spring bean by type.

- -fun getBean(beanName: String): Any -

Get a Spring bean by name.

- -fun <T> getBean(beanName: String, beanClass: Class<T>): T -

Get a Spring bean by name and type.

- - diff --git a/api/pl.treksoft.kvision.remote/-spring-context/index.html b/api/pl.treksoft.kvision.remote/-spring-context/index.html deleted file mode 100644 index 1fdadc3e..00000000 --- a/api/pl.treksoft.kvision.remote/-spring-context/index.html +++ /dev/null @@ -1,55 +0,0 @@ - - - -SpringContext - kvision - - - -kvision / pl.treksoft.kvision.remote / SpringContext
-
-

SpringContext

-class SpringContext -

Constructors

-
SecurityMgr() -

Pac4j form login dispatcher.

+

Form login dispatcher.

- - - - - - -
-

<init>

-
-SpringContext()
-

Functions

- - - - - - - -
-

setApplicationContext

-
-fun setApplicationContext(applicationContext: <ERROR CLASS>): Unit
-

Companion Object Functions

- - - - - - - -
-

getBean

-
-fun <T> getBean(beanClass: Class<T>): T -

Get a Spring bean by type.

-fun getBean(beanName: String): Any -

Get a Spring bean by name.

-fun <T> getBean(beanName: String, beanClass: Class<T>): T -

Get a Spring bean by name and type.

-
- - diff --git a/api/pl.treksoft.kvision.remote/-spring-context/set-application-context.html b/api/pl.treksoft.kvision.remote/-spring-context/set-application-context.html deleted file mode 100644 index 96f64914..00000000 --- a/api/pl.treksoft.kvision.remote/-spring-context/set-application-context.html +++ /dev/null @@ -1,14 +0,0 @@ - - - -SpringContext.setApplicationContext - kvision - - - -kvision / pl.treksoft.kvision.remote / SpringContext / setApplicationContext
-
-

setApplicationContext

- -fun setApplicationContext(applicationContext: <ERROR CLASS>): Unit - - diff --git a/api/pl.treksoft.kvision.remote/apply-routes.html b/api/pl.treksoft.kvision.remote/apply-routes.html new file mode 100644 index 00000000..764152be --- /dev/null +++ b/api/pl.treksoft.kvision.remote/apply-routes.html @@ -0,0 +1,14 @@ + + + +applyRoutes - kvision + + + +kvision / pl.treksoft.kvision.remote / applyRoutes
+
+

applyRoutes

+ +fun <T : Any> <ERROR CLASS>.applyRoutes(serviceManager: KVServiceManager<T>): Unit + + diff --git a/api/pl.treksoft.kvision.remote/index.html b/api/pl.treksoft.kvision.remote/index.html index fdaa1be6..4bf1959f 100644 --- a/api/pl.treksoft.kvision.remote/index.html +++ b/api/pl.treksoft.kvision.remote/index.html @@ -23,6 +23,13 @@ +

CallModule

+ + +class CallModule + + +

Credentials

@@ -48,16 +55,6 @@ -

KVServer

- - -open actual class KVServer -

A server. -Not used on the js platform.

- - - -

KVServiceManager

@@ -71,11 +68,18 @@ Not used on the js platform.

class LoginService -

Pac4j form login dispatcher.

+

Form login dispatcher.

+

MainModule

+ + +class MainModule + + +

Profile

@@ -98,16 +102,9 @@ Not used on the js platform.

abstract class SecurityMgr -

Pac4j form login dispatcher.

+

Form login dispatcher.

- - -

SpringContext

- - -class SpringContext -

Exceptions

@@ -150,6 +147,20 @@ Not used on the js platform.

HTTP status unauthorized (401).

+ + +

INJECTOR_KEY

+ + +val INJECTOR_KEY: <ERROR CLASS> + + + +

injector

+ + +val <ERROR CLASS>.injector: <ERROR CLASS> +

Functions

@@ -164,11 +175,26 @@ Not used on the js platform.

+

applyRoutes

+ + +fun <T : Any> <ERROR CLASS>.applyRoutes(serviceManager: KVServiceManager<T>): Unit + + + +

kvisionInit

+ + +fun <ERROR CLASS>.kvisionInit(): Unit
+fun <ERROR CLASS>.kvisionInit(vararg modules: <ERROR CLASS>): Unit + + +

withProfile

-fun <RESP> <ERROR CLASS>.withProfile(block: (Profile) -> RESP): RESP
-fun <RESP> withProfile(block: (Profile) -> RESP): RESP +suspend fun <RESP> <ERROR CLASS>.withProfile(block: suspend (Profile) -> RESP): RESP
+suspend fun <RESP> withProfile(block: suspend (Profile) -> RESP): RESP

A helper extension function for processing with authenticated user profile.

diff --git a/api/pl.treksoft.kvision.remote/injector.html b/api/pl.treksoft.kvision.remote/injector.html new file mode 100644 index 00000000..b3251d14 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/injector.html @@ -0,0 +1,14 @@ + + + +injector - kvision + + + +kvision / pl.treksoft.kvision.remote / injector
+
+

injector

+ +val <ERROR CLASS>.injector: <ERROR CLASS> + + diff --git a/api/pl.treksoft.kvision.remote/kvision-init.html b/api/pl.treksoft.kvision.remote/kvision-init.html new file mode 100644 index 00000000..824f1fa6 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/kvision-init.html @@ -0,0 +1,16 @@ + + + +kvisionInit - kvision + + + +kvision / pl.treksoft.kvision.remote / kvisionInit
+
+

kvisionInit

+ +fun <ERROR CLASS>.kvisionInit(): Unit
+ +fun <ERROR CLASS>.kvisionInit(vararg modules: <ERROR CLASS>): Unit + + diff --git a/api/pl.treksoft.kvision.remote/with-profile.html b/api/pl.treksoft.kvision.remote/with-profile.html index 787964b1..5f4c4521 100644 --- a/api/pl.treksoft.kvision.remote/with-profile.html +++ b/api/pl.treksoft.kvision.remote/with-profile.html @@ -8,10 +8,10 @@ kvision / pl.treksoft.kvision.remote / withProfile

withProfile

- -fun <RESP> <ERROR CLASS>.withProfile(block: (Profile) -> RESP): RESP
- -fun <RESP> withProfile(block: (Profile) -> RESP): RESP + +suspend fun <RESP> <ERROR CLASS>.withProfile(block: suspend (Profile) -> RESP): RESP
+ +suspend fun <RESP> withProfile(block: suspend (Profile) -> RESP): RESP

A helper extension function for processing with authenticated user profile.

diff --git a/api/pl.treksoft.kvision.table/-cell/index.html b/api/pl.treksoft.kvision.table/-cell/index.html index 7eef1452..7f35361a 100644 --- a/api/pl.treksoft.kvision.table/-cell/index.html +++ b/api/pl.treksoft.kvision.table/-cell/index.html @@ -118,5 +118,20 @@ +

Extension Functions

+ + + + + + + +
+

setData

+
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+fun <K : Any> Template.setData(obj: K): Unit +

Extension function to set serializable object as a template data.

+
diff --git a/api/pl.treksoft.kvision.table/-header-cell/index.html b/api/pl.treksoft.kvision.table/-header-cell/index.html index 138570aa..3990cf9e 100644 --- a/api/pl.treksoft.kvision.table/-header-cell/index.html +++ b/api/pl.treksoft.kvision.table/-header-cell/index.html @@ -118,5 +118,20 @@ +

Extension Functions

+ + + + + + + +
+

setData

+
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+fun <K : Any> Template.setData(obj: K): Unit +

Extension function to set serializable object as a template data.

+
diff --git a/api/pl.treksoft.kvision.table/-row/index.html b/api/pl.treksoft.kvision.table/-row/index.html index 8c97944d..17d20f28 100644 --- a/api/pl.treksoft.kvision.table/-row/index.html +++ b/api/pl.treksoft.kvision.table/-row/index.html @@ -118,5 +118,20 @@ +

Extension Functions

+ + + + + + + +
+

setData

+
+fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
+fun <K : Any> Template.setData(obj: K): Unit +

Extension function to set serializable object as a template data.

+
diff --git a/api/pl.treksoft.kvision.types/-date-converter.html b/api/pl.treksoft.kvision.types/-date-converter.html deleted file mode 100644 index e6e02aa6..00000000 --- a/api/pl.treksoft.kvision.types/-date-converter.html +++ /dev/null @@ -1,13 +0,0 @@ - - - -DateConverter - kvision - - - -kvision / pl.treksoft.kvision.types / DateConverter
-
-

DateConverter

-object DateConverter - - diff --git a/api/pl.treksoft.kvision.types/index.html b/api/pl.treksoft.kvision.types/index.html index 68b55079..36afb3c6 100644 --- a/api/pl.treksoft.kvision.types/index.html +++ b/api/pl.treksoft.kvision.types/index.html @@ -21,13 +21,6 @@ -

DateConverter

- - -object DateConverter - - -

DateSerializer

@@ -99,13 +92,6 @@ expect val KV_JSON_DATE_FORMAT: String - - -

kvTableConfig

- - -val kvTableConfig: <ERROR CLASS> - diff --git a/api/pl.treksoft.kvision.types/kv-table-config.html b/api/pl.treksoft.kvision.types/kv-table-config.html deleted file mode 100644 index 9ec67468..00000000 --- a/api/pl.treksoft.kvision.types/kv-table-config.html +++ /dev/null @@ -1,14 +0,0 @@ - - - -kvTableConfig - kvision - - - -kvision / pl.treksoft.kvision.types / kvTableConfig
-
-

kvTableConfig

- -val kvTableConfig: <ERROR CLASS> - - diff --git a/api/pl.treksoft.kvision.utils/-j-s-o-n/index.html b/api/pl.treksoft.kvision.utils/-j-s-o-n/index.html index c60bf35a..c0e7d846 100644 --- a/api/pl.treksoft.kvision.utils/-j-s-o-n/index.html +++ b/api/pl.treksoft.kvision.utils/-j-s-o-n/index.html @@ -9,6 +9,7 @@

JSON

object JSON +

JSON utility functions

Properties

@@ -36,7 +37,8 @@

toObj

diff --git a/api/pl.treksoft.kvision.utils/-j-s-o-n/to-obj.html b/api/pl.treksoft.kvision.utils/-j-s-o-n/to-obj.html index 2821bd05..13038dd7 100644 --- a/api/pl.treksoft.kvision.utils/-j-s-o-n/to-obj.html +++ b/api/pl.treksoft.kvision.utils/-j-s-o-n/to-obj.html @@ -9,7 +9,13 @@

toObj

-inline fun <reified T : Any> T.toObj(): Any +inline fun <reified T : Any> T.toObj(): dynamic

An extension function to convert Serializable object to JS dynamic object

+ +fun <T> T.toObj(serializer: SerializationStrategy<T>): dynamic +

An extension function to convert Serializable object to JS dynamic object

+

Parameters

+

+serializer - a serializer for T

diff --git a/api/pl.treksoft.kvision.utils/com.lightningkite.kotlin.observable.list.-observable-list/index.html b/api/pl.treksoft.kvision.utils/com.lightningkite.kotlin.observable.list.-observable-list/index.html deleted file mode 100644 index 33599c5b..00000000 --- a/api/pl.treksoft.kvision.utils/com.lightningkite.kotlin.observable.list.-observable-list/index.html +++ /dev/null @@ -1,25 +0,0 @@ - - - -pl.treksoft.kvision.utils.com.lightningkite.kotlin.observable.list.ObservableList - kvision - - - -kvision / pl.treksoft.kvision.utils / com.lightningkite.kotlin.observable.list.ObservableList
-
-

Extensions for com.lightningkite.kotlin.observable.list.ObservableList

-
-fun <T : Any> T.toObj(): Any +fun <T : Any> T.toObj(): dynamic
+fun <T> T.toObj(serializer: SerializationStrategy<T>): dynamic

An extension function to convert Serializable object to JS dynamic object

- - - - - - -
-

syncWithList

-
-fun <T> ObservableList<T>.syncWithList(list: List<T>): Unit -

Utility extension function to synchronise elements of the ObservableList.

-
- - diff --git a/api/pl.treksoft.kvision.utils/com.lightningkite.kotlin.observable.list.-observable-list/sync-with-list.html b/api/pl.treksoft.kvision.utils/com.lightningkite.kotlin.observable.list.-observable-list/sync-with-list.html deleted file mode 100644 index f71f7592..00000000 --- a/api/pl.treksoft.kvision.utils/com.lightningkite.kotlin.observable.list.-observable-list/sync-with-list.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -syncWithList - kvision - - - -kvision / pl.treksoft.kvision.utils / com.lightningkite.kotlin.observable.list.ObservableList / syncWithList
-
-

syncWithList

- -fun <T> ObservableList<T>.syncWithList(list: List<T>): Unit -

Utility extension function to synchronise elements of the ObservableList.

- - diff --git a/api/pl.treksoft.kvision.utils/index.html b/api/pl.treksoft.kvision.utils/index.html index 407d8a11..0f2adbdc 100644 --- a/api/pl.treksoft.kvision.utils/index.html +++ b/api/pl.treksoft.kvision.utils/index.html @@ -17,7 +17,9 @@

JSON

-object JSON +object JSON +

JSON utility functions

+ @@ -44,21 +46,21 @@ -

com.lightningkite.kotlin.observable.list.ObservableList

+

kotlin.Int

-

kotlin.Int

+

kotlin.Pair

-

kotlin.Pair

+

kotlin.collections.MutableList

diff --git a/api/pl.treksoft.kvision.utils/kotlin.collections.-mutable-list/index.html b/api/pl.treksoft.kvision.utils/kotlin.collections.-mutable-list/index.html new file mode 100644 index 00000000..2dffc0c4 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/kotlin.collections.-mutable-list/index.html @@ -0,0 +1,25 @@ + + + +pl.treksoft.kvision.utils.kotlin.collections.MutableList - kvision + + + +kvision / pl.treksoft.kvision.utils / kotlin.collections.MutableList
+
+

Extensions for kotlin.collections.MutableList

+ + + + + + + +
+

syncWithList

+
+fun <T> MutableList<T>.syncWithList(list: List<T>): Unit +

Utility extension function to synchronise elements of the MutableList.

+
+ + diff --git a/api/pl.treksoft.kvision.utils/kotlin.collections.-mutable-list/sync-with-list.html b/api/pl.treksoft.kvision.utils/kotlin.collections.-mutable-list/sync-with-list.html new file mode 100644 index 00000000..d7e76c1e --- /dev/null +++ b/api/pl.treksoft.kvision.utils/kotlin.collections.-mutable-list/sync-with-list.html @@ -0,0 +1,15 @@ + + + +syncWithList - kvision + + + +kvision / pl.treksoft.kvision.utils / kotlin.collections.MutableList / syncWithList
+
+

syncWithList

+ +fun <T> MutableList<T>.syncWithList(list: List<T>): Unit +

Utility extension function to synchronise elements of the MutableList.

+ + -- cgit