From f23e74c2eb0cae2f6ce674881e86ab5d5659ad77 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Tue, 29 Jan 2019 23:41:38 +0100 Subject: API documentation for KVision 0.0.23 --- api/alltypes/index.html | 36 ++- api/index-outline.html | 279 ++++++++++++++++----- api/pl.treksoft.kvision.core/-container/index.html | 2 +- api/pl.treksoft.kvision.core/-widget/index.html | 4 +- .../-data-container/-init-.html | 18 +- .../-data-container/clear-on-update.html | 2 +- .../-data-container/data-container.html | 8 +- .../-data-container/index.html | 12 +- .../-data-container/on-update.html | 2 +- .../-data-updatable/index.html | 2 +- .../-sorter-type/-a-s-c.html | 14 ++ .../-sorter-type/-d-e-s-c.html | 14 ++ .../-sorter-type/index.html | 33 +++ api/pl.treksoft.kvision.data/index.html | 11 +- .../-check-box-input/-init-.html | 21 ++ .../-check-box-input/check-box-input.html | 16 ++ .../-check-box-input/index.html | 185 ++++++++++++++ .../-check-box/index.html | 2 +- .../-check-box/input.html | 2 +- .../-check-input/check-input.html | 16 -- .../-check-input/index.html | 19 +- .../-radio-group-input/-init-.html | 25 ++ .../-radio-group-input/blur.html | 14 ++ .../-radio-group-input/disabled.html | 16 ++ .../-radio-group-input/focus.html | 14 ++ .../-radio-group-input/get-sn-class.html | 18 ++ .../-radio-group-input/index.html | 206 +++++++++++++++ .../-radio-group-input/inline.html | 21 ++ .../-radio-group-input/name.html | 16 ++ .../-radio-group-input/options.html | 21 ++ .../-radio-group-input/radio-group-input.html | 16 ++ .../-radio-group-input/size.html | 16 ++ .../-radio-group-input/value.html | 21 ++ .../-radio-group/index.html | 2 +- .../-radio-group/input.html | 2 +- .../-radio-input/-init-.html | 21 ++ .../-radio-input/index.html | 185 ++++++++++++++ .../-radio-input/radio-input.html | 16 ++ .../-radio/index.html | 2 +- .../-radio/input.html | 2 +- api/pl.treksoft.kvision.form.check/index.html | 29 ++- .../-select-opt-group/index.html | 15 ++ .../-select-opt-group/select-opt-group.html | 18 ++ .../-select-option/index.html | 16 ++ .../-select-option/select-option.html | 20 ++ .../-spinner-input/-init-.html | 6 +- .../-spinner-input/index.html | 8 +- .../-spinner-input/max.html | 2 +- .../-spinner-input/min.html | 2 +- .../-spinner-input/spinner-input.html | 2 +- .../-spinner/-init-.html | 6 +- .../-spinner/index.html | 8 +- .../-spinner/max.html | 2 +- .../-spinner/min.html | 2 +- .../-spinner/spinner.html | 2 +- .../-upload/get-native-file.html | 3 +- .../-upload/index.html | 2 +- .../-form-input/index.html | 11 +- .../-form-panel/get-data-with-file-content.html | 17 ++ .../-form-panel/index.html | 9 + .../-form/get-data-with-file-content.html | 17 ++ api/pl.treksoft.kvision.form/-form/index.html | 9 + .../-k-files-form-control/get-native-file.html | 20 ++ .../-k-files-form-control/index.html | 9 + .../-simple-panel/index.html | 9 + .../-k-v-service-manager/add-route.html | 4 +- .../-k-v-service-manager/call.html | 4 +- .../-k-v-service-manager/delete-requests.html | 2 +- .../-k-v-service-manager/index.html | 12 +- .../-k-v-service-manager/options-requests.html | 2 +- .../-k-v-service-manager/post-requests.html | 2 +- .../-k-v-service-manager/put-requests.html | 2 +- api/pl.treksoft.kvision.remote/-request.html | 29 --- api/pl.treksoft.kvision.remote/index.html | 12 +- api/pl.treksoft.kvision.remote/with-profile.html | 4 +- .../-date-serializer/deserialize.html | 2 +- .../-date-serializer/index.html | 4 +- .../-date-serializer/serialize.html | 2 +- .../-k-v_-d-a-t-e_-f-o-r-m-a-t.html | 14 -- .../-k-v_-d-e-f-a-u-l-t_-d-a-t-e_-f-o-r-m-a-t.html | 14 ++ .../-k-v_-j-s-o-n_-d-a-t-e_-f-o-r-m-a-t.html | 14 ++ api/pl.treksoft.kvision.types/index.html | 11 +- .../java.util.-date/index.html | 2 +- .../java.util.-date/to-string-f.html | 2 +- .../kotlin.-string/index.html | 2 +- .../kotlin.-string/to-date-f.html | 2 +- api/pl.treksoft.kvision.utils/-j-s-o-n/index.html | 18 +- .../-j-s-o-n/nonstrict.html | 2 +- api/pl.treksoft.kvision.utils/-j-s-o-n/plain.html | 2 +- api/pl.treksoft.kvision.utils/-j-s-o-n/to-obj.html | 15 ++ 90 files changed, 1526 insertions(+), 229 deletions(-) create mode 100644 api/pl.treksoft.kvision.data/-sorter-type/-a-s-c.html create mode 100644 api/pl.treksoft.kvision.data/-sorter-type/-d-e-s-c.html create mode 100644 api/pl.treksoft.kvision.data/-sorter-type/index.html create mode 100644 api/pl.treksoft.kvision.form.check/-check-box-input/-init-.html create mode 100644 api/pl.treksoft.kvision.form.check/-check-box-input/check-box-input.html create mode 100644 api/pl.treksoft.kvision.form.check/-check-box-input/index.html delete mode 100644 api/pl.treksoft.kvision.form.check/-check-input/check-input.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-group-input/-init-.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-group-input/blur.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-group-input/disabled.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-group-input/focus.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-group-input/get-sn-class.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-group-input/index.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-group-input/inline.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-group-input/name.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-group-input/options.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-group-input/radio-group-input.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-group-input/size.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-group-input/value.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-input/-init-.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-input/index.html create mode 100644 api/pl.treksoft.kvision.form.check/-radio-input/radio-input.html create mode 100644 api/pl.treksoft.kvision.form.select/-select-opt-group/select-opt-group.html create mode 100644 api/pl.treksoft.kvision.form.select/-select-option/select-option.html create mode 100644 api/pl.treksoft.kvision.form/-form-panel/get-data-with-file-content.html create mode 100644 api/pl.treksoft.kvision.form/-form/get-data-with-file-content.html create mode 100644 api/pl.treksoft.kvision.form/-k-files-form-control/get-native-file.html delete mode 100644 api/pl.treksoft.kvision.remote/-request.html delete mode 100644 api/pl.treksoft.kvision.types/-k-v_-d-a-t-e_-f-o-r-m-a-t.html create mode 100644 api/pl.treksoft.kvision.types/-k-v_-d-e-f-a-u-l-t_-d-a-t-e_-f-o-r-m-a-t.html create mode 100644 api/pl.treksoft.kvision.types/-k-v_-j-s-o-n_-d-a-t-e_-f-o-r-m-a-t.html create mode 100644 api/pl.treksoft.kvision.utils/-j-s-o-n/to-obj.html diff --git a/api/alltypes/index.html b/api/alltypes/index.html index fc9ecd55..d8bc1d69 100644 --- a/api/alltypes/index.html +++ b/api/alltypes/index.html @@ -207,6 +207,13 @@ +pl.treksoft.kvision.form.check.CheckBoxInput + +

The basic input component rendered as HTML input type="checkbox".

+ + + + pl.treksoft.kvision.form.check.CheckBoxStyle

Checkbox style options.

@@ -961,6 +968,20 @@ Not used on the js platform.

+pl.treksoft.kvision.form.check.RadioGroupInput + +

The input component rendered as a group of HTML input type="radio" elements with the same name attribute.

+ + + + +pl.treksoft.kvision.form.check.RadioInput + +

The basic input component rendered as HTML input type="radio".

+ + + + pl.treksoft.kvision.form.check.RadioStyle

Radio style options.

@@ -989,14 +1010,6 @@ Not used on the js platform.

-pl.treksoft.kvision.remote.Request - -

A server request. -Not used on the js platform.

- - - - pl.treksoft.kvision.core.ResString

This type is used for accessing resources with CommonJS require function.

@@ -1143,6 +1156,13 @@ Not used on the js platform.

+pl.treksoft.kvision.data.SorterType + +

Sorter types.

+ + + + pl.treksoft.kvision.form.spinner.Spinner

The form field component for spinner control.

diff --git a/api/index-outline.html b/api/index-outline.html index e78d6a3f..0f57d8aa 100644 --- a/api/index-outline.html +++ b/api/index-outline.html @@ -520,7 +520,7 @@ open fun focus(): Unit
protected open fun getSnClass(): List<StringBoolPair>
var inline: Boolean
-val input: CheckInput
+val input: CheckBoxInput
var label: String?
open fun onClick(handler: CheckBox.(MouseEvent) -> Unit): CheckBox
open fun removeEventListeners(): Widget
@@ -534,6 +534,20 @@ +open class CheckBoxInput : CheckInput
+ enum class CheckBoxStyle
-open class CheckInput : Widget, FormInput
+abstract class CheckInput : Widget, FormInput
interface DataComponent
-class DataContainer<M, C : Component> : Widget, Container, DataUpdatable
+class DataContainer<M, C : Component, CONT : Container> : Widget, Container, DataUpdatable
@@ -1446,6 +1460,7 @@ fun getControl(key: KProperty1<K, *>): FormControl?
fun getData(): K
fun getDataJson(): Json
+suspend fun getDataWithFileContent(): K
fun remove(key: KProperty1<K, *>): Form<K>
fun removeAll(): Form<K>
fun setData(model: K): Unit
@@ -1547,6 +1562,7 @@ open fun getControl(key: KProperty1<K, *>): FormControl?
open fun getData(): K
open fun getDataJson(): Json
+suspend fun getDataWithFileContent(): K
protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
var method: FormMethod?
@@ -1963,8 +1979,9 @@ -val nonstrict: JSON
-val plain: JSON
+val nonstrict: Json
+val plain: Json
+inline fun <reified T : Any> T.toObj(): Any
@@ -2009,6 +2026,7 @@ +abstract fun getNativeFile(kFile: KFile): File?
open fun getValue(): List<KFile>?
open fun getValueAsString(): String?
open fun setValue(v: Any?): Unit
@@ -2085,7 +2103,7 @@ KVServiceManager(serviceClass: KClass<T>)
val LOG: <ERROR CLASS>
-fun addRoute(method: RpcHttpMethod, path: String, handler: (Request, <ERROR CLASS>) -> Unit): Unit
+fun addRoute(method: RpcHttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): Unit
actual fun applyRoutes(k: KVServer): Unit
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
@@ -2094,16 +2112,16 @@ 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 actual fun bind(function: T.(String?, String?) -> List<<ERROR CLASS>>): Unit
-fun call(method: RpcHttpMethod, path: String, handler: (Request, <ERROR CLASS>) -> Unit): KVServer.() -> Unit
+fun call(method: RpcHttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): KVServer.() -> Unit
protected val calls: MutableMap<String, Pair<String, RpcHttpMethod>>
var counter: Int
-val deleteRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit>
+val deleteRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit>
open fun getCalls(): Map<String, Pair<String, RpcHttpMethod>>
protected inline fun <reified T> getParameter(str: String?): T
val mapper: <ERROR CLASS>
-val optionsRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit>
-val postRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit>
-val putRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit>
+val optionsRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit>
+val postRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit>
+val putRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit>
protected val routes: MutableList<KVServer.() -> Unit>
val serviceClass: KClass<T>
@@ -2492,7 +2510,7 @@ open fun focus(): Unit
protected open fun getSnClass(): List<StringBoolPair>
var inline: Boolean
-val input: CheckInput
+val input: RadioInput
var label: String?
open fun onClick(handler: Radio.(MouseEvent) -> Unit): Radio
fun Container.radio(value: Boolean = false, extraValue: String? = null, name: String? = null, label: String? = null, rich: Boolean = false, init: Radio.() -> Unit = null): Radio
@@ -2524,7 +2542,7 @@ open fun focus(): Unit
protected open fun getSnClass(): List<StringBoolPair>
var inline: Boolean
-val input: CheckInput
+val input: RadioInput
var label: String?
open var name: String?
var options: List<StringPair>?
@@ -2536,6 +2554,43 @@ +open class RadioGroupInput : SimplePanel, FormInput
+ +open class RadioInput : CheckInput
+ enum class RadioStyle
-actual interface Request
typealias ResString = String
enum class Resize
@@ -2900,6 +2956,9 @@ var icon: String?
var label: String?
protected open fun render(): VNode
+fun Select.selectOption(value: String? = null, label: String? = null, subtext: String? = null, icon: String? = null, divider: Boolean = false, disabled: Boolean = false, selected: Boolean = false, classes: Set<String> = setOf(), init: SelectOption.() -> Unit = null): SelectOption
+fun SelectInput.selectOption(value: String? = null, label: String? = null, subtext: String? = null, icon: String? = null, divider: Boolean = false, disabled: Boolean = false, selected: Boolean = false, classes: Set<String> = setOf(), init: SelectOption.() -> Unit = null): SelectOption
+fun SelectOptGroup.selectOption(value: String? = null, label: String? = null, subtext: String? = null, icon: String? = null, divider: Boolean = false, disabled: Boolean = false, selected: Boolean = false, classes: Set<String> = setOf(), init: SelectOption.() -> Unit = null): SelectOption
var selected: Boolean
var subtext: String?
var value: String?
@@ -3007,6 +3066,20 @@ +enum class SorterType
+ open class Spinner : SimplePanel, NumberFormControl
@@ -4037,7 +4110,7 @@ -expect fun String.toDateF(format: String = KV_DATE_FORMAT): Date
+expect fun String.toDateF(format: String = KV_DEFAULT_DATE_FORMAT): Date
@@ -5037,7 +5110,7 @@ interface DataComponent
-class DataContainer<M, C : Component> : Widget, Container, DataUpdatable
+class DataContainer<M, C : Component, CONT : Container> : Widget, Container, DataUpdatable
+enum class SorterType
+ @@ -5259,6 +5347,7 @@ fun getControl(key: KProperty1<K, *>): FormControl?
fun getData(): K
fun getDataJson(): Json
+suspend fun getDataWithFileContent(): K
fun remove(key: KProperty1<K, *>): Form<K>
fun removeAll(): Form<K>
fun setData(model: K): Unit
@@ -5360,6 +5449,7 @@ open fun getControl(key: KProperty1<K, *>): FormControl?
open fun getData(): K
open fun getDataJson(): Json
+suspend fun getDataWithFileContent(): K
protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
var method: FormMethod?
@@ -5443,6 +5533,7 @@ +abstract fun getNativeFile(kFile: KFile): File?
open fun getValue(): List<KFile>?
open fun getValueAsString(): String?
open fun setValue(v: Any?): Unit
@@ -5537,7 +5628,7 @@ open fun focus(): Unit
protected open fun getSnClass(): List<StringBoolPair>
var inline: Boolean
-val input: CheckInput
+val input: CheckBoxInput
var label: String?
open fun onClick(handler: CheckBox.(MouseEvent) -> Unit): CheckBox
open fun removeEventListeners(): Widget
@@ -5551,6 +5642,20 @@ +open class CheckBoxInput : CheckInput
+ enum class CheckBoxStyle
-open class CheckInput : Widget, FormInput
+abstract class CheckInput : Widget, FormInput
+open class RadioGroupInput : SimplePanel, FormInput
+ +open class RadioInput : CheckInput
+ enum class RadioStyle
@@ -5939,6 +6082,9 @@ var icon: String?
var label: String?
protected open fun render(): VNode
+fun Select.selectOption(value: String? = null, label: String? = null, subtext: String? = null, icon: String? = null, divider: Boolean = false, disabled: Boolean = false, selected: Boolean = false, classes: Set<String> = setOf(), init: SelectOption.() -> Unit = null): SelectOption
+fun SelectInput.selectOption(value: String? = null, label: String? = null, subtext: String? = null, icon: String? = null, divider: Boolean = false, disabled: Boolean = false, selected: Boolean = false, classes: Set<String> = setOf(), init: SelectOption.() -> Unit = null): SelectOption
+fun SelectOptGroup.selectOption(value: String? = null, label: String? = null, subtext: String? = null, icon: String? = null, divider: Boolean = false, disabled: Boolean = false, selected: Boolean = false, classes: Set<String> = setOf(), init: SelectOption.() -> Unit = null): SelectOption
var selected: Boolean
var subtext: String?
var value: String?
@@ -6013,7 +6159,7 @@ -Spinner(value: Number? = null, name: String? = null, min: Int = 0, max: Int = DEFAULT_MAX, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, label: String? = null, rich: Boolean = false)
+Spinner(value: Number? = null, name: String? = null, min: Int? = null, max: Int? = null, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, label: String? = null, rich: Boolean = false)
var autofocus: Boolean?
open fun blur(): Unit
var buttonsType: ButtonsType
@@ -6026,8 +6172,8 @@ protected val idc: String
val input: SpinnerInput
var label: String?
-var max: Int
-var min: Int
+var max: Int?
+var min: Int?
var placeholder: String?
var readonly: Boolean?
open fun removeEventListeners(): Widget
@@ -6036,7 +6182,7 @@ open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget
open fun spinDown(): Spinner
open fun spinUp(): Spinner
-fun Container.spinner(value: Number? = null, name: String? = null, min: Int = 0, max: Int = DEFAULT_MAX, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, label: String? = null, rich: Boolean = false, init: Spinner.() -> Unit = null): Spinner
+fun Container.spinner(value: Number? = null, name: String? = null, min: Int? = null, max: Int? = null, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, label: String? = null, rich: Boolean = false, init: Spinner.() -> Unit = null): Spinner
var startValue: Number?
var step: Double
val validationInfo: HelpBlock
@@ -6053,7 +6199,7 @@ -SpinnerInput(value: Number? = null, min: Int = 0, max: Int = DEFAULT_MAX, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, classes: Set<String> = setOf())
+SpinnerInput(value: Number? = null, min: Int? = null, max: Int? = null, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, classes: Set<String> = setOf())
protected open fun afterDestroy(): Unit
protected open fun afterInsert(node: VNode): Unit
var autofocus: Boolean?
@@ -6067,8 +6213,8 @@ protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
fun getValueAsString(): String?
-var max: Int
-var min: Int
+var max: Int?
+var min: Int?
open var name: String?
var placeholder: String?
var readonly: Boolean?
@@ -6076,7 +6222,7 @@ open var size: InputSize?
fun spinDown(): SpinnerInput
fun spinUp(): SpinnerInput
-fun Container.spinnerInput(value: Number? = null, min: Int = 0, max: Int = DEFAULT_MAX, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, classes: Set<String> = setOf(), init: SpinnerInput.() -> Unit = null): SpinnerInput
+fun Container.spinnerInput(value: Number? = null, min: Int? = null, max: Int? = null, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, classes: Set<String> = setOf(), init: SpinnerInput.() -> Unit = null): SpinnerInput
var startValue: Number?
var step: Double
var value: Number?
@@ -6418,7 +6564,7 @@ var explorerTheme: Boolean
val flabel: FieldLabel
open fun focus(): Unit
-fun getNativeFile(kFile: KFile): File?
+open fun getNativeFile(kFile: KFile): File?
protected open fun getSnClass(): List<StringBoolPair>
open fun getValueAsString(): String?
protected val idc: String
@@ -7925,7 +8071,7 @@ KVServiceManager(serviceClass: KClass<T>)
val LOG: <ERROR CLASS>
-fun addRoute(method: RpcHttpMethod, path: String, handler: (Request, <ERROR CLASS>) -> Unit): Unit
+fun addRoute(method: RpcHttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): Unit
actual fun applyRoutes(k: KVServer): Unit
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
@@ -7934,16 +8080,16 @@ 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 actual fun bind(function: T.(String?, String?) -> List<<ERROR CLASS>>): Unit
-fun call(method: RpcHttpMethod, path: String, handler: (Request, <ERROR CLASS>) -> Unit): KVServer.() -> Unit
+fun call(method: RpcHttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): KVServer.() -> Unit
protected val calls: MutableMap<String, Pair<String, RpcHttpMethod>>
var counter: Int
-val deleteRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit>
+val deleteRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit>
open fun getCalls(): Map<String, Pair<String, RpcHttpMethod>>
protected inline fun <reified T> getParameter(str: String?): T
val mapper: <ERROR CLASS>
-val optionsRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit>
-val postRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit>
-val putRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit>
+val optionsRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit>
+val postRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit>
+val putRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit>
protected val routes: MutableList<KVServer.() -> Unit>
val serviceClass: KClass<T>
@@ -8006,7 +8152,6 @@ interface RemoteAgent
-actual interface Request
class SecurityException : Exception
fun <ERROR CLASS>.addPathPatternsFromServices(services: List<KVServiceManager<*>>): Unit
-fun <RESP> Request.withProfile(block: (Profile) -> RESP): RESP
+fun <RESP> <ERROR CLASS>.withProfile(block: (Profile) -> RESP): RESP
fun <RESP> withProfile(block: (Profile) -> RESP): RESP
fun <ERROR CLASS>.writeJSON(json: String): Unit
@@ -8294,8 +8439,8 @@ val descriptor: SerialDescriptor
-fun deserialize(input: Decoder): Date
-fun serialize(output: Encoder, obj: Date): Unit
+fun deserialize(decoder: Decoder): Date
+fun serialize(encoder: Encoder, obj: Date): Unit
@@ -8315,7 +8460,8 @@ -expect val KV_DATE_FORMAT: String
+expect val KV_DEFAULT_DATE_FORMAT: String
+expect val KV_JSON_DATE_FORMAT: String
java.util.Date
@@ -8338,7 +8484,7 @@ -expect fun String.toDateF(format: String = KV_DATE_FORMAT): Date
+expect fun String.toDateF(format: String = KV_DEFAULT_DATE_FORMAT): Date
@@ -8379,8 +8525,9 @@ -val nonstrict: JSON
-val plain: JSON
+val nonstrict: Json
+val plain: Json
+inline fun <reified T : Any> T.toObj(): Any
diff --git a/api/pl.treksoft.kvision.core/-container/index.html b/api/pl.treksoft.kvision.core/-container/index.html index e3831282..9a3c71fd 100644 --- a/api/pl.treksoft.kvision.core/-container/index.html +++ b/api/pl.treksoft.kvision.core/-container/index.html @@ -168,7 +168,7 @@

DataContainer

-class DataContainer<M, C : Component> : Widget, Container, DataUpdatable +class DataContainer<M, C : Component, CONT : Container> : Widget, Container, DataUpdatable

A container class with support for observable data model.

diff --git a/api/pl.treksoft.kvision.core/-widget/index.html b/api/pl.treksoft.kvision.core/-widget/index.html index 30f392af..75382ba0 100644 --- a/api/pl.treksoft.kvision.core/-widget/index.html +++ b/api/pl.treksoft.kvision.core/-widget/index.html @@ -936,7 +936,7 @@

CheckInput

-open class CheckInput : Widget, FormInput +abstract class CheckInput : Widget, FormInput

The basic input component rendered as HTML input type="checkbox" or input type="radio".

@@ -954,7 +954,7 @@

DataContainer

-class DataContainer<M, C : Component> : Widget, Container, DataUpdatable +class DataContainer<M, C : Component, CONT : Container> : Widget, Container, DataUpdatable

A container class with support for observable data model.

diff --git a/api/pl.treksoft.kvision.data/-data-container/-init-.html b/api/pl.treksoft.kvision.data/-data-container/-init-.html index 5fc34642..7bf3994d 100644 --- a/api/pl.treksoft.kvision.data/-data-container/-init-.html +++ b/api/pl.treksoft.kvision.data/-data-container/-init-.html @@ -8,24 +8,30 @@ kvision / pl.treksoft.kvision.data / DataContainer / <init>

<init>

- -DataContainer(model: ObservableList<M>, factory: (Int, M) -> C, filter: (Int, M) -> Boolean = null, mapping: (List<Pair<Int, M>>) -> List<Pair<Int, M>> = null, container: Container = VPanel(), init: DataContainer<M, C>.() -> Unit = null) + +DataContainer(model: ObservableList<M>, factory: (M, Int, ObservableList<M>) -> C, container: CONT, containerAdd: CONT.(C, M) -> Unit = null, filter: (M) -> Boolean = null, sorter: (M) -> Comparable<*>? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: DataContainer<M, C, CONT>.() -> Unit = null)

Creates DataContainer bound to given data model.

Parameters

M - data model type

C - visual component type

+

+CONT - container type

model - data model of type ObservableList

factory - a function which creates component C from data model at given index

+

+container - internal container

+

+containerAdd - function to add component C to the internal container CONT

filter - a filtering function

-

-mapping - a mapping function

-

-container - internal container (defaults to VPanel)

+

+sorter - a sorting function

+

+sorterType - a sorting type selection function

init - an initializer extension function

Constructor
diff --git a/api/pl.treksoft.kvision.data/-data-container/clear-on-update.html b/api/pl.treksoft.kvision.data/-data-container/clear-on-update.html index 4d57fe8e..f427030a 100644 --- a/api/pl.treksoft.kvision.data/-data-container/clear-on-update.html +++ b/api/pl.treksoft.kvision.data/-data-container/clear-on-update.html @@ -9,7 +9,7 @@

clearOnUpdate

-fun clearOnUpdate(): DataContainer<M, C> +fun clearOnUpdate(): DataContainer<M, C, CONT>

Clears notification handler.

Return
current container

diff --git a/api/pl.treksoft.kvision.data/-data-container/data-container.html b/api/pl.treksoft.kvision.data/-data-container/data-container.html index 920b49cf..6c6029ef 100644 --- a/api/pl.treksoft.kvision.data/-data-container/data-container.html +++ b/api/pl.treksoft.kvision.data/-data-container/data-container.html @@ -8,9 +8,13 @@ kvision / pl.treksoft.kvision.data / DataContainer / dataContainer

dataContainer

- -fun <M, C : Component> Container.dataContainer(model: ObservableList<M>, factory: (Int, M) -> C, filter: (Int, M) -> Boolean = null, mapping: (List<Pair<Int, M>>) -> List<Pair<Int, M>> = null, container: Container = VPanel(), init: DataContainer<M, C>.() -> Unit = null): DataContainer<M, C> + +fun <M, C : Component, CONT : Container> Container.dataContainer(model: ObservableList<M>, factory: (M, Int, ObservableList<M>) -> C, container: CONT, containerAdd: CONT.(C, M) -> Unit = null, filter: (M) -> Boolean = null, sorter: (M) -> Comparable<*>? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: DataContainer<M, C, CONT>.() -> Unit = null): DataContainer<M, C, CONT>

DSL builder extension function.

It takes the same parameters as the constructor of the built component.

+ +fun <M, C : Component> Container.dataContainer(model: ObservableList<M>, factory: (M, Int, ObservableList<M>) -> C, containerAdd: VPanel.(C, M) -> Unit = null, filter: (M) -> Boolean = null, sorter: (M) -> Comparable<*>? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: DataContainer<M, C, VPanel>.() -> Unit = null): DataContainer<M, C, VPanel> +

DSL builder extension function with VPanel default.

+

It takes the same parameters as the constructor of the built component.

diff --git a/api/pl.treksoft.kvision.data/-data-container/index.html b/api/pl.treksoft.kvision.data/-data-container/index.html index c5db6a9b..d04561fb 100644 --- a/api/pl.treksoft.kvision.data/-data-container/index.html +++ b/api/pl.treksoft.kvision.data/-data-container/index.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.data / DataContainer

DataContainer

-class DataContainer<M, C : Component> : Widget, Container, DataUpdatable +class DataContainer<M, C : Component, CONT : Container> : Widget, Container, DataUpdatable

A container class with support for observable data model.

Constructors

@@ -18,7 +18,7 @@

<init>

@@ -135,7 +135,7 @@

clearOnUpdate

@@ -153,7 +153,7 @@

onUpdate

@@ -461,8 +461,10 @@

dataContainer

diff --git a/api/pl.treksoft.kvision.data/-data-container/on-update.html b/api/pl.treksoft.kvision.data/-data-container/on-update.html index 97e7df54..a625809a 100644 --- a/api/pl.treksoft.kvision.data/-data-container/on-update.html +++ b/api/pl.treksoft.kvision.data/-data-container/on-update.html @@ -9,7 +9,7 @@

onUpdate

-fun onUpdate(handler: () -> Unit): DataContainer<M, C> +fun onUpdate(handler: () -> Unit): DataContainer<M, C, CONT>

Sets a notification handler called after every update.

Parameters

diff --git a/api/pl.treksoft.kvision.data/-data-updatable/index.html b/api/pl.treksoft.kvision.data/-data-updatable/index.html index d1c815ce..c6fbfb71 100644 --- a/api/pl.treksoft.kvision.data/-data-updatable/index.html +++ b/api/pl.treksoft.kvision.data/-data-updatable/index.html @@ -30,7 +30,7 @@

DataContainer

diff --git a/api/pl.treksoft.kvision.data/-sorter-type/-a-s-c.html b/api/pl.treksoft.kvision.data/-sorter-type/-a-s-c.html new file mode 100644 index 00000000..bd62af2d --- /dev/null +++ b/api/pl.treksoft.kvision.data/-sorter-type/-a-s-c.html @@ -0,0 +1,14 @@ + + + +SorterType.ASC - kvision + + + +kvision / pl.treksoft.kvision.data / SorterType / ASC
+
+

ASC

+ +ASC + + diff --git a/api/pl.treksoft.kvision.data/-sorter-type/-d-e-s-c.html b/api/pl.treksoft.kvision.data/-sorter-type/-d-e-s-c.html new file mode 100644 index 00000000..88c6aa01 --- /dev/null +++ b/api/pl.treksoft.kvision.data/-sorter-type/-d-e-s-c.html @@ -0,0 +1,14 @@ + + + +SorterType.DESC - kvision + + + +kvision / pl.treksoft.kvision.data / SorterType / DESC
+
+

DESC

+ +DESC + + diff --git a/api/pl.treksoft.kvision.data/-sorter-type/index.html b/api/pl.treksoft.kvision.data/-sorter-type/index.html new file mode 100644 index 00000000..14bfbb60 --- /dev/null +++ b/api/pl.treksoft.kvision.data/-sorter-type/index.html @@ -0,0 +1,33 @@ + + + +SorterType - kvision + + + +kvision / pl.treksoft.kvision.data / SorterType
+
+

SorterType

+enum class SorterType +

Sorter types.

+

Enum Values

+
-DataContainer(model: ObservableList<M>, factory: (Int, M) -> C, filter: (Int, M) -> Boolean = null, mapping: (List<Pair<Int, M>>) -> List<Pair<Int, M>> = null, container: Container = VPanel(), init: DataContainer<M, C>.() -> Unit = null) +DataContainer(model: ObservableList<M>, factory: (M, Int, ObservableList<M>) -> C, container: CONT, containerAdd: CONT.(C, M) -> Unit = null, filter: (M) -> Boolean = null, sorter: (M) -> Comparable<*>? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: DataContainer<M, C, CONT>.() -> Unit = null)

Creates DataContainer bound to given data model.

-fun clearOnUpdate(): DataContainer<M, C> +fun clearOnUpdate(): DataContainer<M, C, CONT>

Clears notification handler.

-fun onUpdate(handler: () -> Unit): DataContainer<M, C> +fun onUpdate(handler: () -> Unit): DataContainer<M, C, CONT>

Sets a notification handler called after every update.

-fun <M, C : Component> Container.dataContainer(model: ObservableList<M>, factory: (Int, M) -> C, filter: (Int, M) -> Boolean = null, mapping: (List<Pair<Int, M>>) -> List<Pair<Int, M>> = null, container: Container = VPanel(), init: DataContainer<M, C>.() -> Unit = null): DataContainer<M, C> +fun <M, C : Component, CONT : Container> Container.dataContainer(model: ObservableList<M>, factory: (M, Int, ObservableList<M>) -> C, container: CONT, containerAdd: CONT.(C, M) -> Unit = null, filter: (M) -> Boolean = null, sorter: (M) -> Comparable<*>? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: DataContainer<M, C, CONT>.() -> Unit = null): DataContainer<M, C, CONT>

DSL builder extension function.

+fun <M, C : Component> Container.dataContainer(model: ObservableList<M>, factory: (M, Int, ObservableList<M>) -> C, containerAdd: VPanel.(C, M) -> Unit = null, filter: (M) -> Boolean = null, sorter: (M) -> Comparable<*>? = null, sorterType: () -> SorterType = { SorterType.ASC }, init: DataContainer<M, C, VPanel>.() -> Unit = null): DataContainer<M, C, VPanel> +

DSL builder extension function with VPanel default.

-class DataContainer<M, C : Component> : Widget, Container, DataUpdatable +class DataContainer<M, C : Component, CONT : Container> : Widget, Container, DataUpdatable

A container class with support for observable data model.

+ + + + + + + + + + +
+

ASC

+
+
+

DESC

+
+
+ + diff --git a/api/pl.treksoft.kvision.data/index.html b/api/pl.treksoft.kvision.data/index.html index b3430917..e848b334 100644 --- a/api/pl.treksoft.kvision.data/index.html +++ b/api/pl.treksoft.kvision.data/index.html @@ -35,7 +35,7 @@

DataContainer

-class DataContainer<M, C : Component> : Widget, Container, DataUpdatable +class DataContainer<M, C : Component, CONT : Container> : Widget, Container, DataUpdatable

A container class with support for observable data model.

@@ -48,6 +48,15 @@

Interface for updatable container.

+ + +

SorterType

+ + +enum class SorterType +

Sorter types.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-check-box-input/-init-.html b/api/pl.treksoft.kvision.form.check/-check-box-input/-init-.html new file mode 100644 index 00000000..91dd6807 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-check-box-input/-init-.html @@ -0,0 +1,21 @@ + + + +CheckBoxInput.<init> - kvision + + + +kvision / pl.treksoft.kvision.form.check / CheckBoxInput / <init>
+
+

<init>

+ +CheckBoxInput(value: Boolean = false, classes: Set<String> = setOf()) +

Parameters

+

+value - selection state

+

+classes - a set of CSS class names

+

Constructor
+

+ + diff --git a/api/pl.treksoft.kvision.form.check/-check-box-input/check-box-input.html b/api/pl.treksoft.kvision.form.check/-check-box-input/check-box-input.html new file mode 100644 index 00000000..6a12e3b0 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-check-box-input/check-box-input.html @@ -0,0 +1,16 @@ + + + +CheckBoxInput.checkBoxInput - kvision + + + +kvision / pl.treksoft.kvision.form.check / CheckBoxInput / checkBoxInput
+
+

checkBoxInput

+ +fun Container.checkBoxInput(value: Boolean = false, classes: Set<String> = setOf(), init: CheckInput.() -> Unit = null): CheckBoxInput +

DSL builder extension function.

+

It takes the same parameters as the constructor of the built component.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-check-box-input/index.html b/api/pl.treksoft.kvision.form.check/-check-box-input/index.html new file mode 100644 index 00000000..4e1ba876 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-check-box-input/index.html @@ -0,0 +1,185 @@ + + + +CheckBoxInput - kvision + + + +kvision / pl.treksoft.kvision.form.check / CheckBoxInput
+
+

CheckBoxInput

+open class CheckBoxInput : CheckInput +

The basic input component rendered as HTML input type="checkbox".

+

Constructors

+ + + + + + + +
+

<init>

+
+CheckBoxInput(value: Boolean = false, classes: Set<String> = setOf())
+

Inherited Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

disabled

+
+open var disabled: Boolean +

Determines if the field is disabled.

+
+

extraValue

+
+var extraValue: String? +

The additional String value used for the radio button group.

+
+

name

+
+open var name: String? +

The name attribute of the generated HTML input element.

+
+

size

+
+open var size: InputSize? +

The size of the input.

+
+

startValue

+
+var startValue: Boolean +

The value attribute of the generated HTML input element.

+
+

type

+
+var type: CheckInputType +

The type of the generated HTML input element.

+
+

value

+
+var value: Boolean +

The selection state of the input.

+
+

Inherited Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

afterInsert

+
+open fun afterInsert(node: VNode): Unit +

Method called after inserting Snabbdom vnode into the DOM.

+
+

afterPostpatch

+
+open fun afterPostpatch(node: VNode): Unit +

Method called after updating Snabbdom vnode.

+
+

blur

+
+open fun blur(): Unit +

Makes the input element blur.

+
+

focus

+
+open fun focus(): Unit +

Makes the input element focused.

+
+

getSnAttrs

+
+open fun getSnAttrs(): List<StringPair> +

Returns list of element attributes in the form of a List.

+
+

getSnClass

+
+open fun getSnClass(): List<StringBoolPair> +

Returns list of CSS class names for current widget in the form of a List.

+
+

onClick

+
+open fun onClick(handler: CheckInput.(MouseEvent) -> Unit): CheckInput +

A convenient helper for easy setting onClick event handler.

+
+

render

+
+open fun render(): VNode +

Renders current component as a Snabbdom vnode.

+
+

Companion Object Functions

+ + + + + + + +
+

checkBoxInput

+
+fun Container.checkBoxInput(value: Boolean = false, classes: Set<String> = setOf(), init: CheckInput.() -> Unit = null): CheckBoxInput +

DSL builder extension function.

+
+ + diff --git a/api/pl.treksoft.kvision.form.check/-check-box/index.html b/api/pl.treksoft.kvision.form.check/-check-box/index.html index dbcc8daa..f25c0be0 100644 --- a/api/pl.treksoft.kvision.form.check/-check-box/index.html +++ b/api/pl.treksoft.kvision.form.check/-check-box/index.html @@ -57,7 +57,7 @@

input

-val input: CheckInput +val input: CheckBoxInput

The actual input component.

diff --git a/api/pl.treksoft.kvision.form.check/-check-box/input.html b/api/pl.treksoft.kvision.form.check/-check-box/input.html index 95850692..57533da8 100644 --- a/api/pl.treksoft.kvision.form.check/-check-box/input.html +++ b/api/pl.treksoft.kvision.form.check/-check-box/input.html @@ -9,7 +9,7 @@

input

-val input: CheckInput +val input: CheckBoxInput

Overrides FormControl.input

The actual input component.

diff --git a/api/pl.treksoft.kvision.form.check/-check-input/check-input.html b/api/pl.treksoft.kvision.form.check/-check-input/check-input.html deleted file mode 100644 index 9ac1b396..00000000 --- a/api/pl.treksoft.kvision.form.check/-check-input/check-input.html +++ /dev/null @@ -1,16 +0,0 @@ - - - -CheckInput.checkInput - kvision - - - -kvision / pl.treksoft.kvision.form.check / CheckInput / checkInput
-
-

checkInput

- -fun Container.checkInput(type: CheckInputType = CheckInputType.CHECKBOX, value: Boolean = false, classes: Set<String> = setOf(), init: CheckInput.() -> Unit = null): CheckInput -

DSL builder extension function.

-

It takes the same parameters as the constructor of the built component.

- - diff --git a/api/pl.treksoft.kvision.form.check/-check-input/index.html b/api/pl.treksoft.kvision.form.check/-check-input/index.html index be8a7947..b6c4d287 100644 --- a/api/pl.treksoft.kvision.form.check/-check-input/index.html +++ b/api/pl.treksoft.kvision.form.check/-check-input/index.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.check / CheckInput

CheckInput

-open class CheckInput : Widget, FormInput +abstract class CheckInput : Widget, FormInput

The basic input component rendered as HTML input type="checkbox" or input type="radio".

Constructors

@@ -468,16 +468,25 @@
-

Companion Object Functions

+

Inheritors

+ + + + diff --git a/api/pl.treksoft.kvision.form.check/-radio-group-input/-init-.html b/api/pl.treksoft.kvision.form.check/-radio-group-input/-init-.html new file mode 100644 index 00000000..9fe38137 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio-group-input/-init-.html @@ -0,0 +1,25 @@ + + + +RadioGroupInput.<init> - kvision + + + +kvision / pl.treksoft.kvision.form.check / RadioGroupInput / <init>
+
+

<init>

+ +RadioGroupInput(options: List<StringPair>? = null, value: String? = null, name: String? = null, inline: Boolean = false) +

Parameters

+

+options - an optional list of options (label to value pairs) for the group

+

+value - selected option

+

+name - the name attribute of the generated HTML input element

+

+inline - determines if the options are rendered inline

+

Constructor
+

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio-group-input/blur.html b/api/pl.treksoft.kvision.form.check/-radio-group-input/blur.html new file mode 100644 index 00000000..cdfaed41 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio-group-input/blur.html @@ -0,0 +1,14 @@ + + + +RadioGroupInput.blur - kvision + + + +kvision / pl.treksoft.kvision.form.check / RadioGroupInput / blur
+
+

blur

+ +fun blur(): Unit + + diff --git a/api/pl.treksoft.kvision.form.check/-radio-group-input/disabled.html b/api/pl.treksoft.kvision.form.check/-radio-group-input/disabled.html new file mode 100644 index 00000000..d84a2325 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio-group-input/disabled.html @@ -0,0 +1,16 @@ + + + +RadioGroupInput.disabled - kvision + + + +kvision / pl.treksoft.kvision.form.check / RadioGroupInput / disabled
+
+

disabled

+ +open var disabled: Boolean +

Overrides FormInput.disabled

+

Determines if the field is disabled.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio-group-input/focus.html b/api/pl.treksoft.kvision.form.check/-radio-group-input/focus.html new file mode 100644 index 00000000..798e048d --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio-group-input/focus.html @@ -0,0 +1,14 @@ + + + +RadioGroupInput.focus - kvision + + + +kvision / pl.treksoft.kvision.form.check / RadioGroupInput / focus
+
+

focus

+ +fun focus(): Unit + + diff --git a/api/pl.treksoft.kvision.form.check/-radio-group-input/get-sn-class.html b/api/pl.treksoft.kvision.form.check/-radio-group-input/get-sn-class.html new file mode 100644 index 00000000..c2922ecd --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio-group-input/get-sn-class.html @@ -0,0 +1,18 @@ + + + +RadioGroupInput.getSnClass - kvision + + + +kvision / pl.treksoft.kvision.form.check / RadioGroupInput / getSnClass
+
+

getSnClass

+ +protected open fun getSnClass(): List<StringBoolPair> +

Overrides Widget.getSnClass

+

Returns list of CSS class names for current widget in the form of a List.

+

Return
+list of CSS class names

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio-group-input/index.html b/api/pl.treksoft.kvision.form.check/-radio-group-input/index.html new file mode 100644 index 00000000..e70ea8bf --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio-group-input/index.html @@ -0,0 +1,206 @@ + + + +RadioGroupInput - kvision + + + +kvision / pl.treksoft.kvision.form.check / RadioGroupInput
+
+

RadioGroupInput

+open class RadioGroupInput : SimplePanel, FormInput +

The input component rendered as a group of HTML input type="radio" elements with the same name attribute.

+

The radio group can be populated directly from options parameter or manually by adding +Radio components to the container.

+

Constructors

+
-

checkInput

+

CheckBoxInput

-fun Container.checkInput(type: CheckInputType = CheckInputType.CHECKBOX, value: Boolean = false, classes: Set<String> = setOf(), init: CheckInput.() -> Unit = null): CheckInput -

DSL builder extension function.

+open class CheckBoxInput : CheckInput +

The basic input component rendered as HTML input type="checkbox".

+
+

RadioInput

+
+open class RadioInput : CheckInput +

The basic input component rendered as HTML input type="radio".

+ + + + + + +
+

<init>

+
+RadioGroupInput(options: List<StringPair>? = null, value: String? = null, name: String? = null, inline: Boolean = false)
+

Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

disabled

+
+open var disabled: Boolean +

Determines if the field is disabled.

+
+

inline

+
+var inline: Boolean +

Determines if the options are rendered inline.

+
+

name

+
+open var name: String? +

The name attribute of the generated HTML input element.

+
+

options

+
+var options: List<StringPair>? +

A list of options (label to value pairs) for the group.

+
+

size

+
+open var size: InputSize? +

Input control field size.

+
+

value

+
+var value: String? +

A value of the selected option.

+
+

Functions

+ + + + + + + + + + + + + + + +
+

blur

+
+fun blur(): Unit
+

focus

+
+fun focus(): Unit
+

getSnClass

+
+open fun getSnClass(): List<StringBoolPair> +

Returns list of CSS class names for current widget in the form of a List.

+
+

Inherited Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

add

+
+open fun add(child: Component): SimplePanel +

Adds given component to the current container.

+
+

addAll

+
+open fun addAll(children: List<Component>): SimplePanel +

Adds a list of components to the current container.

+
+

addInternal

+
+fun addInternal(child: Component): SimplePanel +

Protected and final method to add given component to the current container.

+
+

childrenVNodes

+
+open fun childrenVNodes(): Array<VNode> +

Returns the array of the children Snabbdom vnodes.

+
+

getChildren

+
+open fun getChildren(): List<Component> +

Returns a list of children of the current container.

+
+

remove

+
+open fun remove(child: Component): SimplePanel +

Removes given component from the current container.

+
+

removeAll

+
+open fun removeAll(): SimplePanel +

Removes all children from the current container.

+
+

render

+
+open fun render(): VNode +

Renders current component as a Snabbdom vnode.

+
+

Companion Object Functions

+ + + + + + + +
+

radioGroupInput

+
+fun Container.radioGroupInput(options: List<StringPair>? = null, value: String? = null, name: String? = null, inline: Boolean = false, init: RadioGroupInput.() -> Unit = null): RadioGroupInput +

DSL builder extension function.

+
+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio-group-input/inline.html b/api/pl.treksoft.kvision.form.check/-radio-group-input/inline.html new file mode 100644 index 00000000..56b90f63 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio-group-input/inline.html @@ -0,0 +1,21 @@ + + + +RadioGroupInput.inline - kvision + + + +kvision / pl.treksoft.kvision.form.check / RadioGroupInput / inline
+
+

inline

+ +var inline: Boolean +

Determines if the options are rendered inline.

+

Getter
+

Determines if the options are rendered inline.

+

+

Setter
+

Determines if the options are rendered inline.

+

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio-group-input/name.html b/api/pl.treksoft.kvision.form.check/-radio-group-input/name.html new file mode 100644 index 00000000..eebd6161 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio-group-input/name.html @@ -0,0 +1,16 @@ + + + +RadioGroupInput.name - kvision + + + +kvision / pl.treksoft.kvision.form.check / RadioGroupInput / name
+
+

name

+ +open var name: String? +

Overrides FormInput.name

+

The name attribute of the generated HTML input element.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio-group-input/options.html b/api/pl.treksoft.kvision.form.check/-radio-group-input/options.html new file mode 100644 index 00000000..e2234e8c --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio-group-input/options.html @@ -0,0 +1,21 @@ + + + +RadioGroupInput.options - kvision + + + +kvision / pl.treksoft.kvision.form.check / RadioGroupInput / options
+
+

options

+ +var options: List<StringPair>? +

A list of options (label to value pairs) for the group.

+

Getter
+

A list of options (label to value pairs) for the group.

+

+

Setter
+

A list of options (label to value pairs) for the group.

+

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio-group-input/radio-group-input.html b/api/pl.treksoft.kvision.form.check/-radio-group-input/radio-group-input.html new file mode 100644 index 00000000..4d9c367f --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio-group-input/radio-group-input.html @@ -0,0 +1,16 @@ + + + +RadioGroupInput.radioGroupInput - kvision + + + +kvision / pl.treksoft.kvision.form.check / RadioGroupInput / radioGroupInput
+
+

radioGroupInput

+ +fun Container.radioGroupInput(options: List<StringPair>? = null, value: String? = null, name: String? = null, inline: Boolean = false, init: RadioGroupInput.() -> Unit = null): RadioGroupInput +

DSL builder extension function.

+

It takes the same parameters as the constructor of the built component.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio-group-input/size.html b/api/pl.treksoft.kvision.form.check/-radio-group-input/size.html new file mode 100644 index 00000000..740e8ff0 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio-group-input/size.html @@ -0,0 +1,16 @@ + + + +RadioGroupInput.size - kvision + + + +kvision / pl.treksoft.kvision.form.check / RadioGroupInput / size
+
+

size

+ +open var size: InputSize? +

Overrides FormInput.size

+

Input control field size.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio-group-input/value.html b/api/pl.treksoft.kvision.form.check/-radio-group-input/value.html new file mode 100644 index 00000000..b5622ae7 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio-group-input/value.html @@ -0,0 +1,21 @@ + + + +RadioGroupInput.value - kvision + + + +kvision / pl.treksoft.kvision.form.check / RadioGroupInput / value
+
+

value

+ +var value: String? +

A value of the selected option.

+

Getter
+

A value of the selected option.

+

+

Setter
+

A value of the selected option.

+

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio-group/index.html b/api/pl.treksoft.kvision.form.check/-radio-group/index.html index d1775942..00e95496 100644 --- a/api/pl.treksoft.kvision.form.check/-radio-group/index.html +++ b/api/pl.treksoft.kvision.form.check/-radio-group/index.html @@ -59,7 +59,7 @@

input

-val input: CheckInput +val input: RadioInput

The actual input component.

diff --git a/api/pl.treksoft.kvision.form.check/-radio-group/input.html b/api/pl.treksoft.kvision.form.check/-radio-group/input.html index 3b1eccae..2c2d9070 100644 --- a/api/pl.treksoft.kvision.form.check/-radio-group/input.html +++ b/api/pl.treksoft.kvision.form.check/-radio-group/input.html @@ -9,7 +9,7 @@

input

-val input: CheckInput +val input: RadioInput

Overrides FormControl.input

The actual input component.

diff --git a/api/pl.treksoft.kvision.form.check/-radio-input/-init-.html b/api/pl.treksoft.kvision.form.check/-radio-input/-init-.html new file mode 100644 index 00000000..b5bda4e0 --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio-input/-init-.html @@ -0,0 +1,21 @@ + + + +RadioInput.<init> - kvision + + + +kvision / pl.treksoft.kvision.form.check / RadioInput / <init>
+
+

<init>

+ +RadioInput(value: Boolean = false, classes: Set<String> = setOf()) +

Parameters

+

+value - selection state

+

+classes - a set of CSS class names

+

Constructor
+

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio-input/index.html b/api/pl.treksoft.kvision.form.check/-radio-input/index.html new file mode 100644 index 00000000..b506399a --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio-input/index.html @@ -0,0 +1,185 @@ + + + +RadioInput - kvision + + + +kvision / pl.treksoft.kvision.form.check / RadioInput
+
+

RadioInput

+open class RadioInput : CheckInput +

The basic input component rendered as HTML input type="radio".

+

Constructors

+ + + + + + + +
+

<init>

+
+RadioInput(value: Boolean = false, classes: Set<String> = setOf())
+

Inherited Properties

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

disabled

+
+open var disabled: Boolean +

Determines if the field is disabled.

+
+

extraValue

+
+var extraValue: String? +

The additional String value used for the radio button group.

+
+

name

+
+open var name: String? +

The name attribute of the generated HTML input element.

+
+

size

+
+open var size: InputSize? +

The size of the input.

+
+

startValue

+
+var startValue: Boolean +

The value attribute of the generated HTML input element.

+
+

type

+
+var type: CheckInputType +

The type of the generated HTML input element.

+
+

value

+
+var value: Boolean +

The selection state of the input.

+
+

Inherited Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

afterInsert

+
+open fun afterInsert(node: VNode): Unit +

Method called after inserting Snabbdom vnode into the DOM.

+
+

afterPostpatch

+
+open fun afterPostpatch(node: VNode): Unit +

Method called after updating Snabbdom vnode.

+
+

blur

+
+open fun blur(): Unit +

Makes the input element blur.

+
+

focus

+
+open fun focus(): Unit +

Makes the input element focused.

+
+

getSnAttrs

+
+open fun getSnAttrs(): List<StringPair> +

Returns list of element attributes in the form of a List.

+
+

getSnClass

+
+open fun getSnClass(): List<StringBoolPair> +

Returns list of CSS class names for current widget in the form of a List.

+
+

onClick

+
+open fun onClick(handler: CheckInput.(MouseEvent) -> Unit): CheckInput +

A convenient helper for easy setting onClick event handler.

+
+

render

+
+open fun render(): VNode +

Renders current component as a Snabbdom vnode.

+
+

Companion Object Functions

+ + + + + + + +
+

radioInput

+
+fun Container.radioInput(value: Boolean = false, classes: Set<String> = setOf(), init: CheckInput.() -> Unit = null): RadioInput +

DSL builder extension function.

+
+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio-input/radio-input.html b/api/pl.treksoft.kvision.form.check/-radio-input/radio-input.html new file mode 100644 index 00000000..47a73daf --- /dev/null +++ b/api/pl.treksoft.kvision.form.check/-radio-input/radio-input.html @@ -0,0 +1,16 @@ + + + +RadioInput.radioInput - kvision + + + +kvision / pl.treksoft.kvision.form.check / RadioInput / radioInput
+
+

radioInput

+ +fun Container.radioInput(value: Boolean = false, classes: Set<String> = setOf(), init: CheckInput.() -> Unit = null): RadioInput +

DSL builder extension function.

+

It takes the same parameters as the constructor of the built component.

+ + diff --git a/api/pl.treksoft.kvision.form.check/-radio/index.html b/api/pl.treksoft.kvision.form.check/-radio/index.html index e7d9d2f4..e9d7ab74 100644 --- a/api/pl.treksoft.kvision.form.check/-radio/index.html +++ b/api/pl.treksoft.kvision.form.check/-radio/index.html @@ -57,7 +57,7 @@

input

-val input: CheckInput +val input: RadioInput

The actual input component.

diff --git a/api/pl.treksoft.kvision.form.check/-radio/input.html b/api/pl.treksoft.kvision.form.check/-radio/input.html index d7c2a1d9..e69f00cc 100644 --- a/api/pl.treksoft.kvision.form.check/-radio/input.html +++ b/api/pl.treksoft.kvision.form.check/-radio/input.html @@ -9,7 +9,7 @@

input

-val input: CheckInput +val input: RadioInput

Overrides FormControl.input

The actual input component.

diff --git a/api/pl.treksoft.kvision.form.check/index.html b/api/pl.treksoft.kvision.form.check/index.html index d61b4b2a..3f550ef8 100644 --- a/api/pl.treksoft.kvision.form.check/index.html +++ b/api/pl.treksoft.kvision.form.check/index.html @@ -23,6 +23,15 @@ +

CheckBoxInput

+ + +open class CheckBoxInput : CheckInput +

The basic input component rendered as HTML input type="checkbox".

+ + + +

CheckBoxStyle

@@ -35,7 +44,7 @@

CheckInput

-open class CheckInput : Widget, FormInput +abstract class CheckInput : Widget, FormInput

The basic input component rendered as HTML input type="checkbox" or input type="radio".

@@ -68,6 +77,24 @@ +

RadioGroupInput

+ + +open class RadioGroupInput : SimplePanel, FormInput +

The input component rendered as a group of HTML input type="radio" elements with the same name attribute.

+ + + + +

RadioInput

+ + +open class RadioInput : CheckInput +

The basic input component rendered as HTML input type="radio".

+ + + +

RadioStyle

diff --git a/api/pl.treksoft.kvision.form.select/-select-opt-group/index.html b/api/pl.treksoft.kvision.form.select/-select-opt-group/index.html index f3a5bc45..21c5859f 100644 --- a/api/pl.treksoft.kvision.form.select/-select-opt-group/index.html +++ b/api/pl.treksoft.kvision.form.select/-select-opt-group/index.html @@ -156,5 +156,20 @@ +

Companion Object Functions

+ + + + + + + +
+

selectOptGroup

+
+fun Select.selectOptGroup(label: String, options: List<StringPair>? = null, maxOptions: Int? = null, disabled: Boolean = false, classes: Set<String> = setOf(), init: SelectOptGroup.() -> Unit = null): SelectOptGroup
+fun SelectInput.selectOptGroup(label: String, options: List<StringPair>? = null, maxOptions: Int? = null, disabled: Boolean = false, classes: Set<String> = setOf(), init: SelectOptGroup.() -> Unit = null): SelectOptGroup +

DSL builder extension function.

+
diff --git a/api/pl.treksoft.kvision.form.select/-select-opt-group/select-opt-group.html b/api/pl.treksoft.kvision.form.select/-select-opt-group/select-opt-group.html new file mode 100644 index 00000000..31165db2 --- /dev/null +++ b/api/pl.treksoft.kvision.form.select/-select-opt-group/select-opt-group.html @@ -0,0 +1,18 @@ + + + +SelectOptGroup.selectOptGroup - kvision + + + +kvision / pl.treksoft.kvision.form.select / SelectOptGroup / selectOptGroup
+
+

selectOptGroup

+ +fun Select.selectOptGroup(label: String, options: List<StringPair>? = null, maxOptions: Int? = null, disabled: Boolean = false, classes: Set<String> = setOf(), init: SelectOptGroup.() -> Unit = null): SelectOptGroup
+ +fun SelectInput.selectOptGroup(label: String, options: List<StringPair>? = null, maxOptions: Int? = null, disabled: Boolean = false, classes: Set<String> = setOf(), init: SelectOptGroup.() -> Unit = null): SelectOptGroup +

DSL builder extension function.

+

It takes the same parameters as the constructor of the built component.

+ + diff --git a/api/pl.treksoft.kvision.form.select/-select-option/index.html b/api/pl.treksoft.kvision.form.select/-select-option/index.html index 7fe840ac..3ec9ba3c 100644 --- a/api/pl.treksoft.kvision.form.select/-select-option/index.html +++ b/api/pl.treksoft.kvision.form.select/-select-option/index.html @@ -441,5 +441,21 @@ +

Companion Object Functions

+ + + + + + + +
+

selectOption

+
+fun Select.selectOption(value: String? = null, label: String? = null, subtext: String? = null, icon: String? = null, divider: Boolean = false, disabled: Boolean = false, selected: Boolean = false, classes: Set<String> = setOf(), init: SelectOption.() -> Unit = null): SelectOption
+fun SelectInput.selectOption(value: String? = null, label: String? = null, subtext: String? = null, icon: String? = null, divider: Boolean = false, disabled: Boolean = false, selected: Boolean = false, classes: Set<String> = setOf(), init: SelectOption.() -> Unit = null): SelectOption
+fun SelectOptGroup.selectOption(value: String? = null, label: String? = null, subtext: String? = null, icon: String? = null, divider: Boolean = false, disabled: Boolean = false, selected: Boolean = false, classes: Set<String> = setOf(), init: SelectOption.() -> Unit = null): SelectOption +

DSL builder extension function.

+
diff --git a/api/pl.treksoft.kvision.form.select/-select-option/select-option.html b/api/pl.treksoft.kvision.form.select/-select-option/select-option.html new file mode 100644 index 00000000..d5620bd3 --- /dev/null +++ b/api/pl.treksoft.kvision.form.select/-select-option/select-option.html @@ -0,0 +1,20 @@ + + + +SelectOption.selectOption - kvision + + + +kvision / pl.treksoft.kvision.form.select / SelectOption / selectOption
+
+

selectOption

+ +fun Select.selectOption(value: String? = null, label: String? = null, subtext: String? = null, icon: String? = null, divider: Boolean = false, disabled: Boolean = false, selected: Boolean = false, classes: Set<String> = setOf(), init: SelectOption.() -> Unit = null): SelectOption
+ +fun SelectInput.selectOption(value: String? = null, label: String? = null, subtext: String? = null, icon: String? = null, divider: Boolean = false, disabled: Boolean = false, selected: Boolean = false, classes: Set<String> = setOf(), init: SelectOption.() -> Unit = null): SelectOption
+ +fun SelectOptGroup.selectOption(value: String? = null, label: String? = null, subtext: String? = null, icon: String? = null, divider: Boolean = false, disabled: Boolean = false, selected: Boolean = false, classes: Set<String> = setOf(), init: SelectOption.() -> Unit = null): SelectOption +

DSL builder extension function.

+

It takes the same parameters as the constructor of the built component.

+ + diff --git a/api/pl.treksoft.kvision.form.spinner/-spinner-input/-init-.html b/api/pl.treksoft.kvision.form.spinner/-spinner-input/-init-.html index 3365a4f2..0799e4b2 100644 --- a/api/pl.treksoft.kvision.form.spinner/-spinner-input/-init-.html +++ b/api/pl.treksoft.kvision.form.spinner/-spinner-input/-init-.html @@ -9,14 +9,14 @@

<init>

-SpinnerInput(value: Number? = null, min: Int = 0, max: Int = DEFAULT_MAX, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, classes: Set<String> = setOf()) +SpinnerInput(value: Number? = null, min: Int? = null, max: Int? = null, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, classes: Set<String> = setOf())

Parameters

value - spinner value

-min - minimal value (default 0)

+min - minimal value

-max - maximal value (default 100)

+max - maximal value

step - step value (default 1)

diff --git a/api/pl.treksoft.kvision.form.spinner/-spinner-input/index.html b/api/pl.treksoft.kvision.form.spinner/-spinner-input/index.html index a80e5dcd..6ca2f593 100644 --- a/api/pl.treksoft.kvision.form.spinner/-spinner-input/index.html +++ b/api/pl.treksoft.kvision.form.spinner/-spinner-input/index.html @@ -18,7 +18,7 @@

<init>

-SpinnerInput(value: Number? = null, min: Int = 0, max: Int = DEFAULT_MAX, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, classes: Set<String> = setOf()) +SpinnerInput(value: Number? = null, min: Int? = null, max: Int? = null, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, classes: Set<String> = setOf()) @@ -75,7 +75,7 @@

max

-var max: Int +var max: Int?

Maximal value.

@@ -84,7 +84,7 @@

min

-var min: Int +var min: Int?

Minimal value.

@@ -564,7 +564,7 @@

spinnerInput

-fun Container.spinnerInput(value: Number? = null, min: Int = 0, max: Int = DEFAULT_MAX, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, classes: Set<String> = setOf(), init: SpinnerInput.() -> Unit = null): SpinnerInput +fun Container.spinnerInput(value: Number? = null, min: Int? = null, max: Int? = null, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, classes: Set<String> = setOf(), init: SpinnerInput.() -> Unit = null): SpinnerInput

DSL builder extension function.

diff --git a/api/pl.treksoft.kvision.form.spinner/-spinner-input/max.html b/api/pl.treksoft.kvision.form.spinner/-spinner-input/max.html index 1f55e1b7..e13b1005 100644 --- a/api/pl.treksoft.kvision.form.spinner/-spinner-input/max.html +++ b/api/pl.treksoft.kvision.form.spinner/-spinner-input/max.html @@ -9,7 +9,7 @@

max

-var max: Int +var max: Int?

Maximal value.

Getter

Maximal value.

diff --git a/api/pl.treksoft.kvision.form.spinner/-spinner-input/min.html b/api/pl.treksoft.kvision.form.spinner/-spinner-input/min.html index 09354166..53235e6e 100644 --- a/api/pl.treksoft.kvision.form.spinner/-spinner-input/min.html +++ b/api/pl.treksoft.kvision.form.spinner/-spinner-input/min.html @@ -9,7 +9,7 @@

min

-var min: Int +var min: Int?

Minimal value.

Getter

Minimal value.

diff --git a/api/pl.treksoft.kvision.form.spinner/-spinner-input/spinner-input.html b/api/pl.treksoft.kvision.form.spinner/-spinner-input/spinner-input.html index dc197be0..a1861f9b 100644 --- a/api/pl.treksoft.kvision.form.spinner/-spinner-input/spinner-input.html +++ b/api/pl.treksoft.kvision.form.spinner/-spinner-input/spinner-input.html @@ -9,7 +9,7 @@

spinnerInput

-fun Container.spinnerInput(value: Number? = null, min: Int = 0, max: Int = DEFAULT_MAX, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, classes: Set<String> = setOf(), init: SpinnerInput.() -> Unit = null): SpinnerInput +fun Container.spinnerInput(value: Number? = null, min: Int? = null, max: Int? = null, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, classes: Set<String> = setOf(), init: SpinnerInput.() -> Unit = null): SpinnerInput

DSL builder extension function.

It takes the same parameters as the constructor of the built component.

diff --git a/api/pl.treksoft.kvision.form.spinner/-spinner/-init-.html b/api/pl.treksoft.kvision.form.spinner/-spinner/-init-.html index 64202d9d..c1b6525e 100644 --- a/api/pl.treksoft.kvision.form.spinner/-spinner/-init-.html +++ b/api/pl.treksoft.kvision.form.spinner/-spinner/-init-.html @@ -9,16 +9,16 @@

<init>

-Spinner(value: Number? = null, name: String? = null, min: Int = 0, max: Int = DEFAULT_MAX, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, label: String? = null, rich: Boolean = false) +Spinner(value: Number? = null, name: String? = null, min: Int? = null, max: Int? = null, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, label: String? = null, rich: Boolean = false)

Parameters

value - spinner value

name - the name attribute of the generated HTML input element

-min - minimal value (default 0)

+min - minimal value

-max - maximal value (default 100)

+max - maximal value

step - step value (default 1)

diff --git a/api/pl.treksoft.kvision.form.spinner/-spinner/index.html b/api/pl.treksoft.kvision.form.spinner/-spinner/index.html index f2d8bda6..fed522a0 100644 --- a/api/pl.treksoft.kvision.form.spinner/-spinner/index.html +++ b/api/pl.treksoft.kvision.form.spinner/-spinner/index.html @@ -18,7 +18,7 @@

<init>

-Spinner(value: Number? = null, name: String? = null, min: Int = 0, max: Int = DEFAULT_MAX, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, label: String? = null, rich: Boolean = false) +Spinner(value: Number? = null, name: String? = null, min: Int? = null, max: Int? = null, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, label: String? = null, rich: Boolean = false) @@ -100,7 +100,7 @@

max

-var max: Int +var max: Int?

Maximal value.

@@ -109,7 +109,7 @@

min

-var min: Int +var min: Int?

Minimal value.

@@ -360,7 +360,7 @@

spinner

-fun Container.spinner(value: Number? = null, name: String? = null, min: Int = 0, max: Int = DEFAULT_MAX, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, label: String? = null, rich: Boolean = false, init: Spinner.() -> Unit = null): Spinner +fun Container.spinner(value: Number? = null, name: String? = null, min: Int? = null, max: Int? = null, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, label: String? = null, rich: Boolean = false, init: Spinner.() -> Unit = null): Spinner

DSL builder extension function.

diff --git a/api/pl.treksoft.kvision.form.spinner/-spinner/max.html b/api/pl.treksoft.kvision.form.spinner/-spinner/max.html index 713b977d..9316fe68 100644 --- a/api/pl.treksoft.kvision.form.spinner/-spinner/max.html +++ b/api/pl.treksoft.kvision.form.spinner/-spinner/max.html @@ -9,7 +9,7 @@

max

-var max: Int +var max: Int?

Maximal value.

diff --git a/api/pl.treksoft.kvision.form.spinner/-spinner/min.html b/api/pl.treksoft.kvision.form.spinner/-spinner/min.html index 9cbca796..1ff8c2ad 100644 --- a/api/pl.treksoft.kvision.form.spinner/-spinner/min.html +++ b/api/pl.treksoft.kvision.form.spinner/-spinner/min.html @@ -9,7 +9,7 @@

min

-var min: Int +var min: Int?

Minimal value.

diff --git a/api/pl.treksoft.kvision.form.spinner/-spinner/spinner.html b/api/pl.treksoft.kvision.form.spinner/-spinner/spinner.html index ee16eaa9..e156f60f 100644 --- a/api/pl.treksoft.kvision.form.spinner/-spinner/spinner.html +++ b/api/pl.treksoft.kvision.form.spinner/-spinner/spinner.html @@ -9,7 +9,7 @@

spinner

-fun Container.spinner(value: Number? = null, name: String? = null, min: Int = 0, max: Int = DEFAULT_MAX, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, label: String? = null, rich: Boolean = false, init: Spinner.() -> Unit = null): Spinner +fun Container.spinner(value: Number? = null, name: String? = null, min: Int? = null, max: Int? = null, step: Double = DEFAULT_STEP, decimals: Int = 0, buttonsType: ButtonsType = ButtonsType.VERTICAL, forceType: ForceType = ForceType.NONE, label: String? = null, rich: Boolean = false, init: Spinner.() -> Unit = null): Spinner

DSL builder extension function.

It takes the same parameters as the constructor of the built component.

diff --git a/api/pl.treksoft.kvision.form.upload/-upload/get-native-file.html b/api/pl.treksoft.kvision.form.upload/-upload/get-native-file.html index ff85e083..b5331ca8 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload/get-native-file.html +++ b/api/pl.treksoft.kvision.form.upload/-upload/get-native-file.html @@ -9,7 +9,8 @@

getNativeFile

-fun getNativeFile(kFile: KFile): File? +open fun getNativeFile(kFile: KFile): File? +

Overrides KFilesFormControl.getNativeFile

Returns the native JavaScript File object.

Parameters

diff --git a/api/pl.treksoft.kvision.form.upload/-upload/index.html b/api/pl.treksoft.kvision.form.upload/-upload/index.html index e9bfc5a0..957e698d 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload/index.html +++ b/api/pl.treksoft.kvision.form.upload/-upload/index.html @@ -277,7 +277,7 @@ If not set the upload button action will default to form submission.

getNativeFile

-fun getNativeFile(kFile: KFile): File? +open fun getNativeFile(kFile: KFile): File?

Returns the native JavaScript File object.

diff --git a/api/pl.treksoft.kvision.form/-form-input/index.html b/api/pl.treksoft.kvision.form/-form-input/index.html index fd61b517..5382b541 100644 --- a/api/pl.treksoft.kvision.form/-form-input/index.html +++ b/api/pl.treksoft.kvision.form/-form-input/index.html @@ -149,7 +149,7 @@

CheckInput

-open class CheckInput : Widget, FormInput +abstract class CheckInput : Widget, FormInput

The basic input component rendered as HTML input type="checkbox" or input type="radio".

@@ -164,6 +164,15 @@ +

RadioGroupInput

+ + +open class RadioGroupInput : SimplePanel, FormInput +

The input component rendered as a group of HTML input type="radio" elements with the same name attribute.

+ + + +

SelectInput

diff --git a/api/pl.treksoft.kvision.form/-form-panel/get-data-with-file-content.html b/api/pl.treksoft.kvision.form/-form-panel/get-data-with-file-content.html new file mode 100644 index 00000000..9afc0f15 --- /dev/null +++ b/api/pl.treksoft.kvision.form/-form-panel/get-data-with-file-content.html @@ -0,0 +1,17 @@ + + + +FormPanel.getDataWithFileContent - kvision + + + +kvision / pl.treksoft.kvision.form / FormPanel / getDataWithFileContent
+
+

getDataWithFileContent

+ +suspend fun getDataWithFileContent(): K +

Returns current data model with file content read for all KFiles controls.

+

Return
+data model

+ + diff --git a/api/pl.treksoft.kvision.form/-form-panel/index.html b/api/pl.treksoft.kvision.form/-form-panel/index.html index 03973484..39813a1a 100644 --- a/api/pl.treksoft.kvision.form/-form-panel/index.html +++ b/api/pl.treksoft.kvision.form/-form-panel/index.html @@ -182,6 +182,15 @@ +

getDataWithFileContent

+ + +suspend fun getDataWithFileContent(): K +

Returns current data model with file content read for all KFiles controls.

+ + + +

getSnAttrs

diff --git a/api/pl.treksoft.kvision.form/-form/get-data-with-file-content.html b/api/pl.treksoft.kvision.form/-form/get-data-with-file-content.html new file mode 100644 index 00000000..c3384ce8 --- /dev/null +++ b/api/pl.treksoft.kvision.form/-form/get-data-with-file-content.html @@ -0,0 +1,17 @@ + + + +Form.getDataWithFileContent - kvision + + + +kvision / pl.treksoft.kvision.form / Form / getDataWithFileContent
+
+

getDataWithFileContent

+ +suspend fun getDataWithFileContent(): K +

Returns current data model with file content read for all KFiles controls.

+

Return
+data model

+ + diff --git a/api/pl.treksoft.kvision.form/-form/index.html b/api/pl.treksoft.kvision.form/-form/index.html index 693f2c30..61f1edcd 100644 --- a/api/pl.treksoft.kvision.form/-form/index.html +++ b/api/pl.treksoft.kvision.form/-form/index.html @@ -91,6 +91,15 @@ +

getDataWithFileContent

+ + +suspend fun getDataWithFileContent(): K +

Returns current data model with file content read for all KFiles controls.

+ + + +

remove

diff --git a/api/pl.treksoft.kvision.form/-k-files-form-control/get-native-file.html b/api/pl.treksoft.kvision.form/-k-files-form-control/get-native-file.html new file mode 100644 index 00000000..7223eed8 --- /dev/null +++ b/api/pl.treksoft.kvision.form/-k-files-form-control/get-native-file.html @@ -0,0 +1,20 @@ + + + +KFilesFormControl.getNativeFile - kvision + + + +kvision / pl.treksoft.kvision.form / KFilesFormControl / getNativeFile
+
+

getNativeFile

+ +abstract fun getNativeFile(kFile: KFile): File? +

Returns the native JavaScript File object.

+

Parameters

+

+kFile - KFile object

+

Return
+File object

+ + diff --git a/api/pl.treksoft.kvision.form/-k-files-form-control/index.html b/api/pl.treksoft.kvision.form/-k-files-form-control/index.html index 056d1394..ca7b451d 100644 --- a/api/pl.treksoft.kvision.form/-k-files-form-control/index.html +++ b/api/pl.treksoft.kvision.form/-k-files-form-control/index.html @@ -97,6 +97,15 @@ +

getNativeFile

+ + +abstract fun getNativeFile(kFile: KFile): File? +

Returns the native JavaScript File object.

+ + + +

getValue

diff --git a/api/pl.treksoft.kvision.panel/-simple-panel/index.html b/api/pl.treksoft.kvision.panel/-simple-panel/index.html index 0c136800..1b542ccd 100644 --- a/api/pl.treksoft.kvision.panel/-simple-panel/index.html +++ b/api/pl.treksoft.kvision.panel/-simple-panel/index.html @@ -608,6 +608,15 @@ +

RadioGroupInput

+ + +open class RadioGroupInput : SimplePanel, FormInput +

The input component rendered as a group of HTML input type="radio" elements with the same name attribute.

+ + + +

RemoteSelect

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 fe7b0ff8..a144afab 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,7 @@ kvision / pl.treksoft.kvision.remote / KVServiceManager / addRoute

addRoute

- -fun addRoute(method: RpcHttpMethod, path: String, handler: (Request, <ERROR CLASS>) -> Unit): Unit + +fun addRoute(method: RpcHttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): Unit 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 c241f29f..baed88fa 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: (Request, <ERROR CLASS>) -> Unit): KVServer.() -> Unit + +fun call(method: RpcHttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): KVServer.() -> Unit 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 efd6e9fa..a3a2efcc 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, (Request, <ERROR CLASS>) -> Unit> +val deleteRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> 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 c3d7aa1e..3e703de4 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 @@ -46,7 +46,7 @@

deleteRequests

-val deleteRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit> +val deleteRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit> @@ -60,21 +60,21 @@

optionsRequests

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

postRequests

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

putRequests

-val putRequests: MutableMap<String, (Request, <ERROR CLASS>) -> Unit> +val putRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit> @@ -100,7 +100,7 @@

addRoute

-fun addRoute(method: RpcHttpMethod, path: String, handler: (Request, <ERROR CLASS>) -> Unit): Unit +fun addRoute(method: RpcHttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): Unit @@ -133,7 +133,7 @@ Not used on the js platform.

call

-fun call(method: RpcHttpMethod, path: String, handler: (Request, <ERROR CLASS>) -> Unit): KVServer.() -> Unit +fun call(method: RpcHttpMethod, path: String, handler: (<ERROR CLASS>, <ERROR CLASS>) -> Unit): KVServer.() -> Unit 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 186471fc..36fb3334 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, (Request, <ERROR CLASS>) -> Unit> +val optionsRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> 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 3149cbbd..8022e055 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, (Request, <ERROR CLASS>) -> Unit> +val postRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> 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 f81562f7..4538803e 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, (Request, <ERROR CLASS>) -> Unit> +val putRequests: MutableMap<String, (<ERROR CLASS>, <ERROR CLASS>) -> Unit> diff --git a/api/pl.treksoft.kvision.remote/-request.html b/api/pl.treksoft.kvision.remote/-request.html deleted file mode 100644 index 2a406c50..00000000 --- a/api/pl.treksoft.kvision.remote/-request.html +++ /dev/null @@ -1,29 +0,0 @@ - - - -Request - kvision - - - -kvision / pl.treksoft.kvision.remote / Request
-
-

Request

-actual interface Request -

A server request. -Not used on the js platform.

-

Extension Functions

- - - - - - - -
-

withProfile

-
-fun <RESP> Request.withProfile(block: (Profile) -> RESP): RESP -

A helper extension function for processing with authenticated user profile.

-
- - diff --git a/api/pl.treksoft.kvision.remote/index.html b/api/pl.treksoft.kvision.remote/index.html index a2620d5a..fdaa1be6 100644 --- a/api/pl.treksoft.kvision.remote/index.html +++ b/api/pl.treksoft.kvision.remote/index.html @@ -94,16 +94,6 @@ Not used on the js platform.

-

Request

- - -actual interface Request -

A server request. -Not used on the js platform.

- - - -

SecurityMgr

@@ -177,7 +167,7 @@ Not used on the js platform.

withProfile

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

A helper extension function for processing with authenticated user profile.

diff --git a/api/pl.treksoft.kvision.remote/with-profile.html b/api/pl.treksoft.kvision.remote/with-profile.html index 5ff1ee96..787964b1 100644 --- a/api/pl.treksoft.kvision.remote/with-profile.html +++ b/api/pl.treksoft.kvision.remote/with-profile.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.remote / withProfile

withProfile

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

A helper extension function for processing with authenticated user profile.

diff --git a/api/pl.treksoft.kvision.types/-date-serializer/deserialize.html b/api/pl.treksoft.kvision.types/-date-serializer/deserialize.html index a46ae58a..5ef7b2c8 100644 --- a/api/pl.treksoft.kvision.types/-date-serializer/deserialize.html +++ b/api/pl.treksoft.kvision.types/-date-serializer/deserialize.html @@ -9,6 +9,6 @@

deserialize

-fun deserialize(input: Decoder): Date +fun deserialize(decoder: Decoder): Date diff --git a/api/pl.treksoft.kvision.types/-date-serializer/index.html b/api/pl.treksoft.kvision.types/-date-serializer/index.html index 9b0d5d5c..ca78d8c3 100644 --- a/api/pl.treksoft.kvision.types/-date-serializer/index.html +++ b/api/pl.treksoft.kvision.types/-date-serializer/index.html @@ -29,14 +29,14 @@

deserialize

-fun deserialize(input: Decoder): Date +fun deserialize(decoder: Decoder): Date

serialize

-fun serialize(output: Encoder, obj: Date): Unit +fun serialize(encoder: Encoder, obj: Date): Unit diff --git a/api/pl.treksoft.kvision.types/-date-serializer/serialize.html b/api/pl.treksoft.kvision.types/-date-serializer/serialize.html index 9e2162d7..b7716b97 100644 --- a/api/pl.treksoft.kvision.types/-date-serializer/serialize.html +++ b/api/pl.treksoft.kvision.types/-date-serializer/serialize.html @@ -9,6 +9,6 @@

serialize

-fun serialize(output: Encoder, obj: Date): Unit +fun serialize(encoder: Encoder, obj: Date): Unit diff --git a/api/pl.treksoft.kvision.types/-k-v_-d-a-t-e_-f-o-r-m-a-t.html b/api/pl.treksoft.kvision.types/-k-v_-d-a-t-e_-f-o-r-m-a-t.html deleted file mode 100644 index b06464cb..00000000 --- a/api/pl.treksoft.kvision.types/-k-v_-d-a-t-e_-f-o-r-m-a-t.html +++ /dev/null @@ -1,14 +0,0 @@ - - - -KV_DATE_FORMAT - kvision - - - -kvision / pl.treksoft.kvision.types / KV_DATE_FORMAT
-
-

KV_DATE_FORMAT

- -expect val KV_DATE_FORMAT: String - - diff --git a/api/pl.treksoft.kvision.types/-k-v_-d-e-f-a-u-l-t_-d-a-t-e_-f-o-r-m-a-t.html b/api/pl.treksoft.kvision.types/-k-v_-d-e-f-a-u-l-t_-d-a-t-e_-f-o-r-m-a-t.html new file mode 100644 index 00000000..6f14831f --- /dev/null +++ b/api/pl.treksoft.kvision.types/-k-v_-d-e-f-a-u-l-t_-d-a-t-e_-f-o-r-m-a-t.html @@ -0,0 +1,14 @@ + + + +KV_DEFAULT_DATE_FORMAT - kvision + + + +kvision / pl.treksoft.kvision.types / KV_DEFAULT_DATE_FORMAT
+
+

KV_DEFAULT_DATE_FORMAT

+ +expect val KV_DEFAULT_DATE_FORMAT: String + + diff --git a/api/pl.treksoft.kvision.types/-k-v_-j-s-o-n_-d-a-t-e_-f-o-r-m-a-t.html b/api/pl.treksoft.kvision.types/-k-v_-j-s-o-n_-d-a-t-e_-f-o-r-m-a-t.html new file mode 100644 index 00000000..58f1392a --- /dev/null +++ b/api/pl.treksoft.kvision.types/-k-v_-j-s-o-n_-d-a-t-e_-f-o-r-m-a-t.html @@ -0,0 +1,14 @@ + + + +KV_JSON_DATE_FORMAT - kvision + + + +kvision / pl.treksoft.kvision.types / KV_JSON_DATE_FORMAT
+
+

KV_JSON_DATE_FORMAT

+ +expect val KV_JSON_DATE_FORMAT: String + + diff --git a/api/pl.treksoft.kvision.types/index.html b/api/pl.treksoft.kvision.types/index.html index 3ea8cc51..68b55079 100644 --- a/api/pl.treksoft.kvision.types/index.html +++ b/api/pl.treksoft.kvision.types/index.html @@ -87,10 +87,17 @@ -

KV_DATE_FORMAT

+

KV_DEFAULT_DATE_FORMAT

-expect val KV_DATE_FORMAT: String +expect val KV_DEFAULT_DATE_FORMAT: String + + + +

KV_JSON_DATE_FORMAT

+ + +expect val KV_JSON_DATE_FORMAT: String diff --git a/api/pl.treksoft.kvision.types/java.util.-date/index.html b/api/pl.treksoft.kvision.types/java.util.-date/index.html index ac6dddc7..ebd406de 100644 --- a/api/pl.treksoft.kvision.types/java.util.-date/index.html +++ b/api/pl.treksoft.kvision.types/java.util.-date/index.html @@ -15,7 +15,7 @@

toStringF

-expect fun Date.toStringF(format: String = KV_DATE_FORMAT): String +expect fun Date.toStringF(format: String = KV_DEFAULT_DATE_FORMAT): String diff --git a/api/pl.treksoft.kvision.types/java.util.-date/to-string-f.html b/api/pl.treksoft.kvision.types/java.util.-date/to-string-f.html index d9573f60..2cc21a7b 100644 --- a/api/pl.treksoft.kvision.types/java.util.-date/to-string-f.html +++ b/api/pl.treksoft.kvision.types/java.util.-date/to-string-f.html @@ -9,6 +9,6 @@

toStringF

-expect fun Date.toStringF(format: String = KV_DATE_FORMAT): String +expect fun Date.toStringF(format: String = KV_DEFAULT_DATE_FORMAT): String diff --git a/api/pl.treksoft.kvision.types/kotlin.-string/index.html b/api/pl.treksoft.kvision.types/kotlin.-string/index.html index 06fc2d10..87b96850 100644 --- a/api/pl.treksoft.kvision.types/kotlin.-string/index.html +++ b/api/pl.treksoft.kvision.types/kotlin.-string/index.html @@ -15,7 +15,7 @@

toDateF

-expect fun String.toDateF(format: String = KV_DATE_FORMAT): Date +expect fun String.toDateF(format: String = KV_DEFAULT_DATE_FORMAT): Date diff --git a/api/pl.treksoft.kvision.types/kotlin.-string/to-date-f.html b/api/pl.treksoft.kvision.types/kotlin.-string/to-date-f.html index 56082abe..e26819ac 100644 --- a/api/pl.treksoft.kvision.types/kotlin.-string/to-date-f.html +++ b/api/pl.treksoft.kvision.types/kotlin.-string/to-date-f.html @@ -9,6 +9,6 @@

toDateF

-expect fun String.toDateF(format: String = KV_DATE_FORMAT): Date +expect fun String.toDateF(format: String = KV_DEFAULT_DATE_FORMAT): Date 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 e5f94e9b..c60bf35a 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 @@ -17,14 +17,28 @@

nonstrict

-val nonstrict: JSON +val nonstrict: Json

plain

-val plain: JSON +val plain: Json + + + +

Functions

+ + + + +
+

toObj

+
+fun <T : Any> T.toObj(): Any +

An extension function to convert Serializable object to JS dynamic object

+
diff --git a/api/pl.treksoft.kvision.utils/-j-s-o-n/nonstrict.html b/api/pl.treksoft.kvision.utils/-j-s-o-n/nonstrict.html index 485c6161..248c07c4 100644 --- a/api/pl.treksoft.kvision.utils/-j-s-o-n/nonstrict.html +++ b/api/pl.treksoft.kvision.utils/-j-s-o-n/nonstrict.html @@ -9,6 +9,6 @@

nonstrict

-val nonstrict: JSON +val nonstrict: Json diff --git a/api/pl.treksoft.kvision.utils/-j-s-o-n/plain.html b/api/pl.treksoft.kvision.utils/-j-s-o-n/plain.html index f39be14d..866b5b98 100644 --- a/api/pl.treksoft.kvision.utils/-j-s-o-n/plain.html +++ b/api/pl.treksoft.kvision.utils/-j-s-o-n/plain.html @@ -9,6 +9,6 @@

plain

-val plain: JSON +val plain: Json 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 new file mode 100644 index 00000000..2821bd05 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/-j-s-o-n/to-obj.html @@ -0,0 +1,15 @@ + + + +JSON.toObj - kvision + + + +kvision / pl.treksoft.kvision.utils / JSON / toObj
+
+

toObj

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

An extension function to convert Serializable object to JS dynamic object

+ + -- cgit