From 12d2bd198c9ff5cb197e50da2d024a2418b8ee36 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 2 Jun 2018 00:47:15 +0200 Subject: Upgrade to 0.0.13 --- api/alltypes/index.html | 118 +++- api/index-outline.html | 687 +++++++++++++++++---- api/index.html | 16 + api/package-list | 7 +- api/pl.treksoft.kvision.core/-widget/index.html | 9 + .../-check-box/-init-.html | 2 +- .../-radio-group/-init-.html | 2 +- .../-radio/-init-.html | 2 +- .../-select/-init-.html | 2 +- .../-spinner/-init-.html | 2 +- .../-abstract-text/-init-.html | 2 +- .../-password/-init-.html | 2 +- .../-rich-text/-init-.html | 2 +- .../-text-area/-init-.html | 2 +- .../-text/-init-.html | 2 +- .../-date-time-input/-init-.html | 4 +- .../-date-time-input/date-time-input.html | 4 +- .../-date-time-input/index.html | 6 +- .../-date-time-input/value.html | 2 +- .../-date-time/-init-.html | 6 +- .../-date-time/date-time.html | 4 +- .../-date-time/get-value-as-string.html | 2 +- .../-date-time/index.html | 16 +- .../-date-time/value.html | 4 +- api/pl.treksoft.kvision.form.time/index.html | 2 +- .../-upload-input/get-native-file.html | 20 + .../-upload-input/index.html | 11 +- .../-upload-input/value.html | 2 +- .../-upload/-init-.html | 2 +- .../-upload/get-native-file.html | 20 + .../-upload/get-value-as-string.html | 2 +- .../-upload/index.html | 21 +- .../-upload/value.html | 4 +- api/pl.treksoft.kvision.form.upload/index.html | 2 +- .../-date-form-control/get-value-as-string.html | 16 - .../-date-form-control/get-value.html | 18 - .../-date-form-control/index.html | 165 ----- .../-date-form-control/set-value.html | 19 - .../-date-form-control/value.html | 15 - .../-field-label/-init-.html | 2 +- .../-files-form-control/get-value-as-string.html | 16 - .../-files-form-control/get-value.html | 18 - .../-files-form-control/index.html | 165 ----- .../-files-form-control/set-value.html | 19 - .../-files-form-control/value.html | 15 - .../-form-control/index.html | 8 +- .../-form-panel/-init-.html | 8 +- api/pl.treksoft.kvision.form/-form-panel/add.html | 8 +- .../-form-panel/create.html | 14 + .../-form-panel/form-panel.html | 4 +- .../-form-panel/get-content.html | 22 + .../-form-panel/index.html | 26 +- api/pl.treksoft.kvision.form/-form/-init-.html | 8 +- api/pl.treksoft.kvision.form/-form/add.html | 8 +- api/pl.treksoft.kvision.form/-form/create.html | 14 + .../-form/get-content.html | 22 + api/pl.treksoft.kvision.form/-form/index.html | 29 +- .../-help-block/-init-.html | 2 +- .../-k-date-form-control/get-value-as-string.html | 16 + .../-k-date-form-control/get-value.html | 18 + .../-k-date-form-control/index.html | 165 +++++ .../-k-date-form-control/set-value.html | 19 + .../-k-date-form-control/value.html | 15 + .../-k-files-form-control/get-value-as-string.html | 16 + .../-k-files-form-control/get-value.html | 18 + .../-k-files-form-control/index.html | 165 +++++ .../-k-files-form-control/set-value.html | 19 + .../-k-files-form-control/value.html | 15 + api/pl.treksoft.kvision.form/index.html | 40 +- .../kotlin.collections.-map/bool.html | 15 - .../kotlin.collections.-map/date.html | 15 - .../kotlin.collections.-map/index.html | 36 -- .../kotlin.collections.-map/number.html | 15 - .../kotlin.collections.-map/string.html | 15 - api/pl.treksoft.kvision.html/-canvas/-init-.html | 23 + .../-canvas/after-insert.html | 16 + .../-canvas/canvas-height.html | 21 + .../-canvas/canvas-width.html | 21 + api/pl.treksoft.kvision.html/-canvas/canvas.html | 16 + .../-canvas/context2-d.html | 15 + .../-canvas/get-sn-attrs.html | 18 + api/pl.treksoft.kvision.html/-canvas/index.html | 388 ++++++++++++ api/pl.treksoft.kvision.html/-canvas/render.html | 18 + api/pl.treksoft.kvision.html/-div/-init-.html | 2 +- api/pl.treksoft.kvision.html/-label/-init-.html | 2 +- api/pl.treksoft.kvision.html/-list-tag/-init-.html | 2 +- api/pl.treksoft.kvision.html/-tag/-init-.html | 2 +- api/pl.treksoft.kvision.html/index.html | 9 + api/pl.treksoft.kvision.modal/-alert/-init-.html | 2 +- api/pl.treksoft.kvision.modal/-confirm/-init-.html | 2 +- api/pl.treksoft.kvision.modal/-dialog/-init-.html | 31 + .../-dialog/get-result.html | 15 + api/pl.treksoft.kvision.modal/-dialog/hide.html | 18 + api/pl.treksoft.kvision.modal/-dialog/index.html | 212 +++++++ .../-dialog/set-result.html | 15 + api/pl.treksoft.kvision.modal/-modal/index.html | 9 + api/pl.treksoft.kvision.modal/index.html | 9 + .../-simple-panel/index.html | 6 +- .../-call-agent/-init-.html | 15 + .../-call-agent/index.html | 51 ++ .../-call-agent/json-rpc-call.html | 24 + .../-call-agent/remote-call.html | 24 + .../-credentials/-init-.html | 15 + .../-credentials/index.html | 47 ++ .../-credentials/password.html | 14 + .../-credentials/username.html | 14 + .../-h-t-t-p_-u-n-a-u-t-h-o-r-i-z-e-d.html | 15 + .../-jooby-server/-init-.html | 16 + .../-jooby-server/index.html | 30 + .../-login-service/-init-.html | 15 + .../-login-service/index.html | 54 ++ .../-login-service/login-agent.html | 14 + .../-login-service/login.html | 18 + .../-profile/-init-.html | 15 + .../-profile/attributes.html | 14 + .../-profile/authentication-attributes.html | 14 + .../-profile/client-name.html | 14 + .../-profile/display-name.html | 14 + api/pl.treksoft.kvision.remote/-profile/email.html | 14 + .../-profile/family-name.html | 14 + .../-profile/first-name.html | 14 + api/pl.treksoft.kvision.remote/-profile/id.html | 14 + api/pl.treksoft.kvision.remote/-profile/index.html | 138 +++++ .../-profile/linked-id.html | 14 + .../-profile/permissions.html | 14 + .../-profile/picture-url.html | 14 + .../-profile/profile-url.html | 14 + .../-profile/remembered.html | 14 + api/pl.treksoft.kvision.remote/-profile/roles.html | 14 + .../-profile/username.html | 14 + .../-remote-agent/-init-.html | 15 + .../-remote-agent/call-agent.html | 14 + .../-remote-agent/call.html | 37 ++ .../-remote-agent/index.html | 72 +++ .../-remote-agent/service-manager.html | 14 + api/pl.treksoft.kvision.remote/-request.html | 15 + .../-security-exception/-init-.html | 15 + .../-security-exception/index.html | 28 + .../-security-mgr/-init-.html | 15 + .../-security-mgr/after-error.html | 15 + .../-security-mgr/after-login.html | 15 + .../-security-mgr/index.html | 69 +++ .../-security-mgr/login.html | 20 + .../-security-mgr/with-auth.html | 18 + .../-service-manager/-init-.html | 15 + .../-service-manager/apply-routes.html | 16 + .../-service-manager/bind.html | 34 + .../-service-manager/calls.html | 14 + .../-service-manager/counter.html | 14 + .../-service-manager/get-calls.html | 15 + .../-service-manager/index.html | 85 +++ api/pl.treksoft.kvision.remote/index.html | 129 ++++ api/pl.treksoft.kvision.table/-cell/-init-.html | 2 +- .../-header-cell/-init-.html | 2 +- .../-k-d-a-t-e_-f-o-r-m-a-t.html | 14 + api/pl.treksoft.kvision.types/index.html | 37 ++ api/pl.treksoft.kvision.types/to-j-s.html | 14 + .../index.html | 25 + .../sync-with-list.html | 15 + api/pl.treksoft.kvision.utils/index.html | 7 + .../kotlin.-string/index.html | 2 +- .../kotlin.-string/to-date-f.html | 2 +- 162 files changed, 3834 insertions(+), 805 deletions(-) create mode 100644 api/pl.treksoft.kvision.form.upload/-upload-input/get-native-file.html create mode 100644 api/pl.treksoft.kvision.form.upload/-upload/get-native-file.html delete mode 100644 api/pl.treksoft.kvision.form/-date-form-control/get-value-as-string.html delete mode 100644 api/pl.treksoft.kvision.form/-date-form-control/get-value.html delete mode 100644 api/pl.treksoft.kvision.form/-date-form-control/index.html delete mode 100644 api/pl.treksoft.kvision.form/-date-form-control/set-value.html delete mode 100644 api/pl.treksoft.kvision.form/-date-form-control/value.html delete mode 100644 api/pl.treksoft.kvision.form/-files-form-control/get-value-as-string.html delete mode 100644 api/pl.treksoft.kvision.form/-files-form-control/get-value.html delete mode 100644 api/pl.treksoft.kvision.form/-files-form-control/index.html delete mode 100644 api/pl.treksoft.kvision.form/-files-form-control/set-value.html delete mode 100644 api/pl.treksoft.kvision.form/-files-form-control/value.html create mode 100644 api/pl.treksoft.kvision.form/-form-panel/create.html create mode 100644 api/pl.treksoft.kvision.form/-form-panel/get-content.html create mode 100644 api/pl.treksoft.kvision.form/-form/create.html create mode 100644 api/pl.treksoft.kvision.form/-form/get-content.html create mode 100644 api/pl.treksoft.kvision.form/-k-date-form-control/get-value-as-string.html create mode 100644 api/pl.treksoft.kvision.form/-k-date-form-control/get-value.html create mode 100644 api/pl.treksoft.kvision.form/-k-date-form-control/index.html create mode 100644 api/pl.treksoft.kvision.form/-k-date-form-control/set-value.html create mode 100644 api/pl.treksoft.kvision.form/-k-date-form-control/value.html create mode 100644 api/pl.treksoft.kvision.form/-k-files-form-control/get-value-as-string.html create mode 100644 api/pl.treksoft.kvision.form/-k-files-form-control/get-value.html create mode 100644 api/pl.treksoft.kvision.form/-k-files-form-control/index.html create mode 100644 api/pl.treksoft.kvision.form/-k-files-form-control/set-value.html create mode 100644 api/pl.treksoft.kvision.form/-k-files-form-control/value.html delete mode 100644 api/pl.treksoft.kvision.form/kotlin.collections.-map/bool.html delete mode 100644 api/pl.treksoft.kvision.form/kotlin.collections.-map/date.html delete mode 100644 api/pl.treksoft.kvision.form/kotlin.collections.-map/number.html delete mode 100644 api/pl.treksoft.kvision.form/kotlin.collections.-map/string.html create mode 100644 api/pl.treksoft.kvision.html/-canvas/-init-.html create mode 100644 api/pl.treksoft.kvision.html/-canvas/after-insert.html create mode 100644 api/pl.treksoft.kvision.html/-canvas/canvas-height.html create mode 100644 api/pl.treksoft.kvision.html/-canvas/canvas-width.html create mode 100644 api/pl.treksoft.kvision.html/-canvas/canvas.html create mode 100644 api/pl.treksoft.kvision.html/-canvas/context2-d.html create mode 100644 api/pl.treksoft.kvision.html/-canvas/get-sn-attrs.html create mode 100644 api/pl.treksoft.kvision.html/-canvas/index.html create mode 100644 api/pl.treksoft.kvision.html/-canvas/render.html create mode 100644 api/pl.treksoft.kvision.modal/-dialog/-init-.html create mode 100644 api/pl.treksoft.kvision.modal/-dialog/get-result.html create mode 100644 api/pl.treksoft.kvision.modal/-dialog/hide.html create mode 100644 api/pl.treksoft.kvision.modal/-dialog/index.html create mode 100644 api/pl.treksoft.kvision.modal/-dialog/set-result.html create mode 100644 api/pl.treksoft.kvision.remote/-call-agent/-init-.html create mode 100644 api/pl.treksoft.kvision.remote/-call-agent/index.html create mode 100644 api/pl.treksoft.kvision.remote/-call-agent/json-rpc-call.html create mode 100644 api/pl.treksoft.kvision.remote/-call-agent/remote-call.html create mode 100644 api/pl.treksoft.kvision.remote/-credentials/-init-.html create mode 100644 api/pl.treksoft.kvision.remote/-credentials/index.html create mode 100644 api/pl.treksoft.kvision.remote/-credentials/password.html create mode 100644 api/pl.treksoft.kvision.remote/-credentials/username.html create mode 100644 api/pl.treksoft.kvision.remote/-h-t-t-p_-u-n-a-u-t-h-o-r-i-z-e-d.html create mode 100644 api/pl.treksoft.kvision.remote/-jooby-server/-init-.html create mode 100644 api/pl.treksoft.kvision.remote/-jooby-server/index.html create mode 100644 api/pl.treksoft.kvision.remote/-login-service/-init-.html create mode 100644 api/pl.treksoft.kvision.remote/-login-service/index.html create mode 100644 api/pl.treksoft.kvision.remote/-login-service/login-agent.html create mode 100644 api/pl.treksoft.kvision.remote/-login-service/login.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/-init-.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/attributes.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/authentication-attributes.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/client-name.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/display-name.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/email.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/family-name.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/first-name.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/id.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/index.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/linked-id.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/permissions.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/picture-url.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/profile-url.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/remembered.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/roles.html create mode 100644 api/pl.treksoft.kvision.remote/-profile/username.html create mode 100644 api/pl.treksoft.kvision.remote/-remote-agent/-init-.html create mode 100644 api/pl.treksoft.kvision.remote/-remote-agent/call-agent.html create mode 100644 api/pl.treksoft.kvision.remote/-remote-agent/call.html create mode 100644 api/pl.treksoft.kvision.remote/-remote-agent/index.html create mode 100644 api/pl.treksoft.kvision.remote/-remote-agent/service-manager.html create mode 100644 api/pl.treksoft.kvision.remote/-request.html create mode 100644 api/pl.treksoft.kvision.remote/-security-exception/-init-.html create mode 100644 api/pl.treksoft.kvision.remote/-security-exception/index.html create mode 100644 api/pl.treksoft.kvision.remote/-security-mgr/-init-.html create mode 100644 api/pl.treksoft.kvision.remote/-security-mgr/after-error.html create mode 100644 api/pl.treksoft.kvision.remote/-security-mgr/after-login.html create mode 100644 api/pl.treksoft.kvision.remote/-security-mgr/index.html create mode 100644 api/pl.treksoft.kvision.remote/-security-mgr/login.html create mode 100644 api/pl.treksoft.kvision.remote/-security-mgr/with-auth.html create mode 100644 api/pl.treksoft.kvision.remote/-service-manager/-init-.html create mode 100644 api/pl.treksoft.kvision.remote/-service-manager/apply-routes.html create mode 100644 api/pl.treksoft.kvision.remote/-service-manager/bind.html create mode 100644 api/pl.treksoft.kvision.remote/-service-manager/calls.html create mode 100644 api/pl.treksoft.kvision.remote/-service-manager/counter.html create mode 100644 api/pl.treksoft.kvision.remote/-service-manager/get-calls.html create mode 100644 api/pl.treksoft.kvision.remote/-service-manager/index.html create mode 100644 api/pl.treksoft.kvision.remote/index.html create mode 100644 api/pl.treksoft.kvision.types/-k-d-a-t-e_-f-o-r-m-a-t.html create mode 100644 api/pl.treksoft.kvision.types/index.html create mode 100644 api/pl.treksoft.kvision.types/to-j-s.html create mode 100644 api/pl.treksoft.kvision.utils/com.lightningkite.kotlin.observable.list.-observable-list/index.html create mode 100644 api/pl.treksoft.kvision.utils/com.lightningkite.kotlin.observable.list.-observable-list/sync-with-list.html diff --git a/api/alltypes/index.html b/api/alltypes/index.html index 028c4c66..e82af26b 100644 --- a/api/alltypes/index.html +++ b/api/alltypes/index.html @@ -179,6 +179,20 @@ +pl.treksoft.kvision.remote.CallAgent + +

An agent responsible for remote calls.

+ + + + +pl.treksoft.kvision.html.Canvas + +

Canvas component.

+ + + + pl.treksoft.kvision.table.Cell

HTML table cell component.

@@ -270,6 +284,13 @@ +pl.treksoft.kvision.remote.Credentials + +

Username and password credentials.

+ + + + pl.treksoft.kvision.core.CssSize

This type is used for defining CSS dimensions (width, heights, margins, paddings, etc.).

@@ -318,23 +339,23 @@ -pl.treksoft.kvision.form.DateFormControl +pl.treksoft.kvision.form.time.DateTime -

Base interface of a form control with a date value.

+

Form field date/time chooser component.

-pl.treksoft.kvision.form.time.DateTime +pl.treksoft.kvision.form.time.DateTimeInput -

Form field date/time chooser component.

+

Basic date/time chooser component.

-pl.treksoft.kvision.form.time.DateTimeInput +pl.treksoft.kvision.modal.Dialog -

Basic date/time chooser component.

+

Modal window with a result.

@@ -394,13 +415,6 @@ -pl.treksoft.kvision.form.FilesFormControl - -

Base interface of a form control with a list of files value.

- - - - pl.treksoft.kvision.panel.FlexAlignContent

CSS flexbox content alignment options.

@@ -664,12 +678,34 @@ +pl.treksoft.kvision.remote.JoobyServer + +

A Jooby based server. +Not used on the js platform.

+ + + + kotlin.js.Json (extensions in package pl.treksoft.kvision.form) +pl.treksoft.kvision.form.KDateFormControl + +

Base interface of a form control with a date value.

+ + + + +pl.treksoft.kvision.form.KFilesFormControl + +

Base interface of a form control with a list of files value.

+ + + + pl.treksoft.kvision.utils.KvEvent

Helper class for defining custom events.

@@ -705,6 +741,13 @@ +pl.treksoft.kvision.remote.LoginService + +

Pac4j form login dispatcher.

+ + + + kotlin.collections.Map (extensions in package pl.treksoft.kvision.form) @@ -774,6 +817,12 @@ +com.lightningkite.kotlin.observable.list.ObservableList (extensions in package pl.treksoft.kvision.utils) + + + + + pl.treksoft.kvision.core.Overflow

Definitions of CSS overflow options.

@@ -808,6 +857,13 @@ +pl.treksoft.kvision.remote.Profile + +

A user profile.

+ + + + pl.treksoft.kvision.progress.ProgressBar

The Bootstrap progress bar.

@@ -843,6 +899,21 @@ +pl.treksoft.kvision.remote.RemoteAgent + +

Client side agent for JSON-RPC remote calls.

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

@@ -906,6 +977,20 @@ +pl.treksoft.kvision.remote.SecurityException + +

A security exception.

+ + + + +pl.treksoft.kvision.remote.SecurityMgr + +

Pac4j form login dispatcher.

+ + + + pl.treksoft.kvision.form.select.Select

The form field component for Select control.

@@ -948,6 +1033,13 @@ +pl.treksoft.kvision.remote.ServiceManager + +

Multiplatform service manager.

+ + + + pl.treksoft.kvision.panel.Side

Dock layout directions.

diff --git a/api/index-outline.html b/api/index-outline.html index 9b692f3a..b8aab801 100644 --- a/api/index-outline.html +++ b/api/index-outline.html @@ -451,6 +451,41 @@ +open class CallAgent
+ +open class Canvas : Widget
+ open class Cell : Tag
+data class Credentials
+ typealias CssSize = Pair<Int, UNIT>
enum class DD
-interface DateFormControl : FormControl
+open class DateTime : SimplePanel, KDateFormControl
-open class DateTime : SimplePanel, DateFormControl
- +open class Dialog<R> : Modal
+ enum class Direction
-interface FilesFormControl : FormControl
- enum class FlexAlignContent
-class Form<K>
+class Form<K : Any>
-open class FormPanel<K> : SimplePanel
+open class FormPanel<K : Any> : SimplePanel
+open actual class JoobyServer
+ +interface KDateFormControl : FormControl
+ +interface KFilesFormControl : FormControl
+ class KvEvent : CustomEvent
+class LoginService
+ open class Modal : SimplePanel
+data actual class Profile
+ open class ProgressBar : SimplePanel
+open class RemoteAgent<out T>
+ +actual interface Request
typealias ResString = String
enum class Resize
+class SecurityException : Exception
+ +abstract class SecurityMgr
+ open class Select : SimplePanel, StringFormControl
+open actual class ServiceManager<out T>
+ enum class Side
-open class Upload : SimplePanel, FilesFormControl
+open class Upload : SimplePanel, KFilesFormControl
@@ -3290,6 +3498,7 @@ var dropZoneEnabled: Boolean
var explorerTheme: Boolean
open fun focus(): Unit
+fun getNativeFile(kFile: KFile): File?
protected open fun getSnAttrs(): List<StringPair>
protected open fun getSnClass(): List<StringBoolPair>
fun getValueAsString(): String?
@@ -3312,7 +3521,7 @@ var uploadExtraData: (String, Int) -> dynamic
fun Container.uploadInput(uploadUrl: String? = null, multiple: Boolean = false, classes: Set<String> = setOf(), init: UploadInput.() -> Unit = null): UploadInput
var uploadUrl: String?
-var value: List<File>?
+var value: List<KFile>?
@@ -3467,6 +3676,19 @@ +com.lightningkite.kotlin.observable.list.ObservableList
+ kotlin.Int
@@ -3530,10 +3752,6 @@ fun Map<String, Any?>.asJson(): Json
-fun Map<String, Any?>.bool(key: String): Boolean?
-fun Map<String, Any?>.date(key: String): Date?
-fun Map<String, Any?>.number(key: String): Number?
-fun Map<String, Any?>.string(key: String): String?
@@ -4653,22 +4871,6 @@ -interface DateFormControl : FormControl
- open class FieldLabel : Tag
-interface FilesFormControl : FormControl
+class Form<K : Any>
-class Form<K>
- -open class FormPanel<K> : SimplePanel
+open class FormPanel<K : Any> : SimplePanel
+interface KDateFormControl : FormControl
+ +interface KFilesFormControl : FormControl
+ interface NumberFormControl : FormControl
@@ -5690,7 +5908,7 @@ -open class DateTime : SimplePanel, DateFormControl
+open class DateTime : SimplePanel, KDateFormControl
@@ -6044,6 +6264,26 @@ +open class Canvas : Widget
+ open class Div : Tag
+open class Dialog<R> : Modal
+ open class Modal : SimplePanel
+package pl.treksoft.kvision.remote
+ package pl.treksoft.kvision.routing
+package pl.treksoft.kvision.types
+ package pl.treksoft.kvision.utils
val auto: CssSize
+com.lightningkite.kotlin.observable.list.ObservableList
+ fun isIE11(): Boolean
kotlin.Int
diff --git a/api/index.html b/api/index.html index e0f010d4..5c12c236 100644 --- a/api/index.html +++ b/api/index.html @@ -145,6 +145,14 @@ CSS grid and Bootstrap responsive 12 columns gid).

+

pl.treksoft.kvision.remote

+ + +

A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.

+ + + +

pl.treksoft.kvision.routing

@@ -169,6 +177,14 @@ CSS grid and Bootstrap responsive 12 columns gid).

+

pl.treksoft.kvision.types

+ + +

Multiplatform type definitions.

+ + + +

pl.treksoft.kvision.utils

diff --git a/api/package-list b/api/package-list index 9760c87f..40d09446 100644 --- a/api/package-list +++ b/api/package-list @@ -2,10 +2,6 @@ $dokka.format:html $dokka.linkExtension:html $dokka.location:pl.treksoft.kvision.form$asJson(kotlin.collections.Map((kotlin.String, kotlin.Any)))pl.treksoft.kvision.form/kotlin.collections.-map/as-json.html $dokka.location:pl.treksoft.kvision.form$asMap(kotlin.js.Json)pl.treksoft.kvision.form/kotlin.js.-json/as-map.html -$dokka.location:pl.treksoft.kvision.form$bool(kotlin.collections.Map((kotlin.String, kotlin.Any)), kotlin.String)pl.treksoft.kvision.form/kotlin.collections.-map/bool.html -$dokka.location:pl.treksoft.kvision.form$date(kotlin.collections.Map((kotlin.String, kotlin.Any)), kotlin.String)pl.treksoft.kvision.form/kotlin.collections.-map/date.html -$dokka.location:pl.treksoft.kvision.form$number(kotlin.collections.Map((kotlin.String, kotlin.Any)), kotlin.String)pl.treksoft.kvision.form/kotlin.collections.-map/number.html -$dokka.location:pl.treksoft.kvision.form$string(kotlin.collections.Map((kotlin.String, kotlin.Any)), kotlin.String)pl.treksoft.kvision.form/kotlin.collections.-map/string.html $dokka.location:pl.treksoft.kvision.utils$asString(kotlin.Pair((kotlin.Int, pl.treksoft.kvision.core.UNIT)))pl.treksoft.kvision.utils/kotlin.-pair/as-string.html $dokka.location:pl.treksoft.kvision.utils$ch#kotlin.Intpl.treksoft.kvision.utils/kotlin.-int/ch.html $dokka.location:pl.treksoft.kvision.utils$cm#kotlin.Intpl.treksoft.kvision.utils/kotlin.-int/cm.html @@ -18,6 +14,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$toDateF(kotlin.String, kotlin.String)pl.treksoft.kvision.utils/kotlin.-string/to-date-f.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$toStringF(kotlin.js.Date, kotlin.String)pl.treksoft.kvision.utils/kotlin.js.-date/to-string-f.html @@ -41,8 +38,10 @@ pl.treksoft.kvision.modal pl.treksoft.kvision.navbar pl.treksoft.kvision.panel pl.treksoft.kvision.progress +pl.treksoft.kvision.remote pl.treksoft.kvision.routing pl.treksoft.kvision.table pl.treksoft.kvision.toolbar +pl.treksoft.kvision.types pl.treksoft.kvision.utils pl.treksoft.kvision.window diff --git a/api/pl.treksoft.kvision.core/-widget/index.html b/api/pl.treksoft.kvision.core/-widget/index.html index f15382b8..9fa16127 100644 --- a/api/pl.treksoft.kvision.core/-widget/index.html +++ b/api/pl.treksoft.kvision.core/-widget/index.html @@ -879,6 +879,15 @@ +

Canvas

+ + +open class Canvas : Widget +

Canvas component.

+ + + +

CheckInput

diff --git a/api/pl.treksoft.kvision.form.check/-check-box/-init-.html b/api/pl.treksoft.kvision.form.check/-check-box/-init-.html index a3796cd8..069d4b71 100644 --- a/api/pl.treksoft.kvision.form.check/-check-box/-init-.html +++ b/api/pl.treksoft.kvision.form.check/-check-box/-init-.html @@ -18,7 +18,7 @@

label - label text bound to the input element

-rich - determines if label can contain HTML code

+rich - determines if label can contain HTML code

Constructor

diff --git a/api/pl.treksoft.kvision.form.check/-radio-group/-init-.html b/api/pl.treksoft.kvision.form.check/-radio-group/-init-.html index 32159b19..ab46a0c9 100644 --- a/api/pl.treksoft.kvision.form.check/-radio-group/-init-.html +++ b/api/pl.treksoft.kvision.form.check/-radio-group/-init-.html @@ -22,7 +22,7 @@

label - label text of the options group

-rich - determines if label can contain HTML code

+rich - determines if label can contain HTML code

Constructor

diff --git a/api/pl.treksoft.kvision.form.check/-radio/-init-.html b/api/pl.treksoft.kvision.form.check/-radio/-init-.html index 1294864f..4f7ae330 100644 --- a/api/pl.treksoft.kvision.form.check/-radio/-init-.html +++ b/api/pl.treksoft.kvision.form.check/-radio/-init-.html @@ -20,7 +20,7 @@

label - label text bound to the input element

-rich - determines if label can contain HTML code

+rich - determines if label can contain HTML code

Constructor

diff --git a/api/pl.treksoft.kvision.form.select/-select/-init-.html b/api/pl.treksoft.kvision.form.select/-select/-init-.html index e951bc58..b01349b5 100644 --- a/api/pl.treksoft.kvision.form.select/-select/-init-.html +++ b/api/pl.treksoft.kvision.form.select/-select/-init-.html @@ -24,7 +24,7 @@

label - label text bound to the input element

-rich - determines if label can contain HTML code

+rich - determines if label can contain HTML code

Constructor

diff --git a/api/pl.treksoft.kvision.form.spinner/-spinner/-init-.html b/api/pl.treksoft.kvision.form.spinner/-spinner/-init-.html index 52232120..64202d9d 100644 --- a/api/pl.treksoft.kvision.form.spinner/-spinner/-init-.html +++ b/api/pl.treksoft.kvision.form.spinner/-spinner/-init-.html @@ -30,7 +30,7 @@

label - label text bound to the input element

-rich - determines if label can contain HTML code

+rich - determines if label can contain HTML code

Constructor

diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text/-init-.html b/api/pl.treksoft.kvision.form.text/-abstract-text/-init-.html index 42fd6dce..6c7212dc 100644 --- a/api/pl.treksoft.kvision.form.text/-abstract-text/-init-.html +++ b/api/pl.treksoft.kvision.form.text/-abstract-text/-init-.html @@ -14,7 +14,7 @@

label - label text bound to the input element

-rich - determines if label can contain HTML code

+rich - determines if label can contain HTML code

Constructor

diff --git a/api/pl.treksoft.kvision.form.text/-password/-init-.html b/api/pl.treksoft.kvision.form.text/-password/-init-.html index 9b32386b..1bc26295 100644 --- a/api/pl.treksoft.kvision.form.text/-password/-init-.html +++ b/api/pl.treksoft.kvision.form.text/-password/-init-.html @@ -18,7 +18,7 @@

label - label text bound to the input element

-rich - determines if label can contain HTML code

+rich - determines if label can contain HTML code

Constructor

diff --git a/api/pl.treksoft.kvision.form.text/-rich-text/-init-.html b/api/pl.treksoft.kvision.form.text/-rich-text/-init-.html index 218a6e93..5727433a 100644 --- a/api/pl.treksoft.kvision.form.text/-rich-text/-init-.html +++ b/api/pl.treksoft.kvision.form.text/-rich-text/-init-.html @@ -18,7 +18,7 @@

label - label text bound to the input element

-rich - determines if label can contain HTML code

+rich - determines if label can contain HTML code

Constructor

diff --git a/api/pl.treksoft.kvision.form.text/-text-area/-init-.html b/api/pl.treksoft.kvision.form.text/-text-area/-init-.html index 27a727b5..7878587a 100644 --- a/api/pl.treksoft.kvision.form.text/-text-area/-init-.html +++ b/api/pl.treksoft.kvision.form.text/-text-area/-init-.html @@ -22,7 +22,7 @@

label - label text bound to the input element

-rich - determines if label can contain HTML code

+rich - determines if label can contain HTML code

Constructor

diff --git a/api/pl.treksoft.kvision.form.text/-text/-init-.html b/api/pl.treksoft.kvision.form.text/-text/-init-.html index 84a300ac..530d8779 100644 --- a/api/pl.treksoft.kvision.form.text/-text/-init-.html +++ b/api/pl.treksoft.kvision.form.text/-text/-init-.html @@ -20,7 +20,7 @@

label - label text bound to the input element

-rich - determines if label can contain HTML code

+rich - determines if label can contain HTML code

Constructor

diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/-init-.html b/api/pl.treksoft.kvision.form.time/-date-time-input/-init-.html index 49547cce..ef1b97f4 100644 --- a/api/pl.treksoft.kvision.form.time/-date-time-input/-init-.html +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/-init-.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.form.time / DateTimeInput / <init>

<init>

- -DateTimeInput(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", classes: Set<String> = setOf()) + +DateTimeInput(value: KDate? = null, format: String = "YYYY-MM-DD HH:mm", classes: Set<String> = setOf())

Parameters

value - date/time input value

diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/date-time-input.html b/api/pl.treksoft.kvision.form.time/-date-time-input/date-time-input.html index 40a1ab19..809af9a8 100644 --- a/api/pl.treksoft.kvision.form.time/-date-time-input/date-time-input.html +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/date-time-input.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.form.time / DateTimeInput / dateTimeInput

dateTimeInput

- -fun Container.dateTimeInput(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", classes: Set<String> = setOf(), init: DateTimeInput.() -> Unit = null): DateTimeInput + +fun Container.dateTimeInput(value: KDate? = null, format: String = "YYYY-MM-DD HH:mm", classes: Set<String> = setOf(), init: DateTimeInput.() -> Unit = null): DateTimeInput

DSL builder extension function.

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

diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/index.html b/api/pl.treksoft.kvision.form.time/-date-time-input/index.html index a26313da..69b1cfc1 100644 --- a/api/pl.treksoft.kvision.form.time/-date-time-input/index.html +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/index.html @@ -18,7 +18,7 @@

<init>

-DateTimeInput(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", classes: Set<String> = setOf()) +DateTimeInput(value: KDate? = null, format: String = "YYYY-MM-DD HH:mm", classes: Set<String> = setOf()) @@ -147,7 +147,7 @@

value

-var value: Date? +var value: KDate?

Date/time input value.

@@ -552,7 +552,7 @@

dateTimeInput

-fun Container.dateTimeInput(value: Date? = null, format: String = "YYYY-MM-DD HH:mm", classes: Set<String> = setOf(), init: DateTimeInput.() -> Unit = null): DateTimeInput +fun Container.dateTimeInput(value: KDate? = null, format: String = "YYYY-MM-DD HH:mm", classes: Set<String> = setOf(), init: DateTimeInput.() -> Unit = null): DateTimeInput

DSL builder extension function.

diff --git a/api/pl.treksoft.kvision.form.time/-date-time-input/value.html b/api/pl.treksoft.kvision.form.time/-date-time-input/value.html index afa8799a..4c89a2f2 100644 --- a/api/pl.treksoft.kvision.form.time/-date-time-input/value.html +++ b/api/pl.treksoft.kvision.form.time/-date-time-input/value.html @@ -9,7 +9,7 @@

value

-var value: Date? +var value: KDate?

Date/time input value.

Getter

Date/time input value.

diff --git a/api/pl.treksoft.kvision.form.time/-date-time/-init-.html b/api/pl.treksoft.kvision.form.time/-date-time/-init-.html index 723a95b2..c95b6a63 100644 --- a/api/pl.treksoft.kvision.form.time/-date-time/-init-.html +++ b/api/pl.treksoft.kvision.form.time/-date-time/-init-.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.form.time / DateTime / <init>

<init>

- -DateTime(value: Date? = null, name: String? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false) + +DateTime(value: KDate? = null, name: String? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false)

Parameters

value - date/time input value

@@ -20,7 +20,7 @@

label - label text bound to the input element

-rich - determines if label can contain HTML code

+rich - determines if label can contain HTML code

Constructor

diff --git a/api/pl.treksoft.kvision.form.time/-date-time/date-time.html b/api/pl.treksoft.kvision.form.time/-date-time/date-time.html index 718c8eaf..0d4b0c06 100644 --- a/api/pl.treksoft.kvision.form.time/-date-time/date-time.html +++ b/api/pl.treksoft.kvision.form.time/-date-time/date-time.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.form.time / DateTime / dateTime

dateTime

- -fun Container.dateTime(value: Date? = null, name: String? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false, init: DateTime.() -> Unit = null): DateTime + +fun Container.dateTime(value: KDate? = null, name: String? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false, init: DateTime.() -> Unit = null): DateTime

DSL builder extension function.

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

diff --git a/api/pl.treksoft.kvision.form.time/-date-time/get-value-as-string.html b/api/pl.treksoft.kvision.form.time/-date-time/get-value-as-string.html index 8901d009..cfb8f5ce 100644 --- a/api/pl.treksoft.kvision.form.time/-date-time/get-value-as-string.html +++ b/api/pl.treksoft.kvision.form.time/-date-time/get-value-as-string.html @@ -10,7 +10,7 @@

getValueAsString

open fun getValueAsString(): String? -

Overrides DateFormControl.getValueAsString

+

Overrides KDateFormControl.getValueAsString

Returns the value of the control as a String.

diff --git a/api/pl.treksoft.kvision.form.time/-date-time/index.html b/api/pl.treksoft.kvision.form.time/-date-time/index.html index e31348af..74e70252 100644 --- a/api/pl.treksoft.kvision.form.time/-date-time/index.html +++ b/api/pl.treksoft.kvision.form.time/-date-time/index.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.time / DateTime

DateTime

-open class DateTime : SimplePanel, DateFormControl +open class DateTime : SimplePanel, KDateFormControl

Form field date/time chooser component.

Constructors

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

<init>

+DateTime(value: KDate? = null, name: String? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false)
-DateTime(value: Date? = null, name: String? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false)
@@ -165,7 +165,7 @@

value

-open var value: Date? +open var value: KDate?

Date/time input value.

@@ -309,10 +309,10 @@ -

getValue

+

getValue

-open fun getValue(): Date? +open fun getValue(): KDate?

Returns the value of the control.

@@ -345,10 +345,10 @@ -

setValue

+

setValue

-open fun setValue(v: Any?): Unit +open fun setValue(v: Any?): Unit

Sets the value of the control.

@@ -362,7 +362,7 @@

dateTime

-fun Container.dateTime(value: Date? = null, name: String? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false, init: DateTime.() -> Unit = null): DateTime +fun Container.dateTime(value: KDate? = null, name: String? = null, format: String = "YYYY-MM-DD HH:mm", label: String? = null, rich: Boolean = false, init: DateTime.() -> Unit = null): DateTime

DSL builder extension function.

diff --git a/api/pl.treksoft.kvision.form.time/-date-time/value.html b/api/pl.treksoft.kvision.form.time/-date-time/value.html index 0bd1f1ee..34da28a7 100644 --- a/api/pl.treksoft.kvision.form.time/-date-time/value.html +++ b/api/pl.treksoft.kvision.form.time/-date-time/value.html @@ -9,8 +9,8 @@

value

-open var value: Date? -

Overrides DateFormControl.value

+open var value: KDate? +

Overrides KDateFormControl.value

Date/time input value.

diff --git a/api/pl.treksoft.kvision.form.time/index.html b/api/pl.treksoft.kvision.form.time/index.html index d811429f..2677eac9 100644 --- a/api/pl.treksoft.kvision.form.time/index.html +++ b/api/pl.treksoft.kvision.form.time/index.html @@ -17,7 +17,7 @@

DateTime

-open class DateTime : SimplePanel, DateFormControl +open class DateTime : SimplePanel, KDateFormControl

Form field date/time chooser component.

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/get-native-file.html b/api/pl.treksoft.kvision.form.upload/-upload-input/get-native-file.html new file mode 100644 index 00000000..267baba1 --- /dev/null +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/get-native-file.html @@ -0,0 +1,20 @@ + + + +UploadInput.getNativeFile - kvision + + + +kvision / pl.treksoft.kvision.form.upload / UploadInput / getNativeFile
+
+

getNativeFile

+ +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.upload/-upload-input/index.html b/api/pl.treksoft.kvision.form.upload/-upload-input/index.html index 3090e5be..916ea5e0 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/index.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/index.html @@ -202,7 +202,7 @@ If not set the upload button action will default to form submission.

value

-var value: List<File>? +var value: List<KFile>?

File input value.

@@ -326,6 +326,15 @@ If not set the upload button action will default to form submission.

+

getNativeFile

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

Returns the native JavaScript File object.

+ + + +

getSnAttrs

diff --git a/api/pl.treksoft.kvision.form.upload/-upload-input/value.html b/api/pl.treksoft.kvision.form.upload/-upload-input/value.html index a740df1a..d26d2dc3 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload-input/value.html +++ b/api/pl.treksoft.kvision.form.upload/-upload-input/value.html @@ -9,7 +9,7 @@

value

-var value: List<File>? +var value: List<KFile>?

File input value.

diff --git a/api/pl.treksoft.kvision.form.upload/-upload/-init-.html b/api/pl.treksoft.kvision.form.upload/-upload/-init-.html index bec7108c..0978761d 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload/-init-.html +++ b/api/pl.treksoft.kvision.form.upload/-upload/-init-.html @@ -18,7 +18,7 @@

label - label text bound to the input element

-rich - determines if label can contain HTML code

+rich - determines if label can contain HTML code

Constructor

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 new file mode 100644 index 00000000..6ce31311 --- /dev/null +++ b/api/pl.treksoft.kvision.form.upload/-upload/get-native-file.html @@ -0,0 +1,20 @@ + + + +Upload.getNativeFile - kvision + + + +kvision / pl.treksoft.kvision.form.upload / Upload / getNativeFile
+
+

getNativeFile

+ +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.upload/-upload/get-value-as-string.html b/api/pl.treksoft.kvision.form.upload/-upload/get-value-as-string.html index 75533699..815a7838 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload/get-value-as-string.html +++ b/api/pl.treksoft.kvision.form.upload/-upload/get-value-as-string.html @@ -10,7 +10,7 @@

getValueAsString

open fun getValueAsString(): String? -

Overrides FilesFormControl.getValueAsString

+

Overrides KFilesFormControl.getValueAsString

Returns the value of the control as a String.

diff --git a/api/pl.treksoft.kvision.form.upload/-upload/index.html b/api/pl.treksoft.kvision.form.upload/-upload/index.html index 157d652a..f541a377 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload/index.html +++ b/api/pl.treksoft.kvision.form.upload/-upload/index.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.upload / Upload

Upload

-open class Upload : SimplePanel, FilesFormControl +open class Upload : SimplePanel, KFilesFormControl

The form field file upload component.

Constructors

@@ -227,7 +227,7 @@ If not set the upload button action will default to form submission.

value

@@ -274,6 +274,15 @@ If not set the upload button action will default to form submission.

+ + + + @@ -434,10 +443,10 @@ If not set the upload button action will default to form submission.

diff --git a/api/pl.treksoft.kvision.form.upload/-upload/value.html b/api/pl.treksoft.kvision.form.upload/-upload/value.html index 30d1105f..0be26286 100644 --- a/api/pl.treksoft.kvision.form.upload/-upload/value.html +++ b/api/pl.treksoft.kvision.form.upload/-upload/value.html @@ -9,8 +9,8 @@

value

-open var value: List<File>? -

Overrides FilesFormControl.value

+open var value: List<KFile>? +

Overrides KFilesFormControl.value

File input value.

diff --git a/api/pl.treksoft.kvision.form.upload/index.html b/api/pl.treksoft.kvision.form.upload/index.html index bb4120a9..a40f02ef 100644 --- a/api/pl.treksoft.kvision.form.upload/index.html +++ b/api/pl.treksoft.kvision.form.upload/index.html @@ -17,7 +17,7 @@

Upload

diff --git a/api/pl.treksoft.kvision.form/-date-form-control/get-value-as-string.html b/api/pl.treksoft.kvision.form/-date-form-control/get-value-as-string.html deleted file mode 100644 index 8ec76a28..00000000 --- a/api/pl.treksoft.kvision.form/-date-form-control/get-value-as-string.html +++ /dev/null @@ -1,16 +0,0 @@ - - - -DateFormControl.getValueAsString - kvision - - - -kvision / pl.treksoft.kvision.form / DateFormControl / getValueAsString
-
-

getValueAsString

- -open fun getValueAsString(): String? -

Overrides FormControl.getValueAsString

-

Returns the value of the control as a String.

- - diff --git a/api/pl.treksoft.kvision.form/-date-form-control/get-value.html b/api/pl.treksoft.kvision.form/-date-form-control/get-value.html deleted file mode 100644 index 9f2ce3e6..00000000 --- a/api/pl.treksoft.kvision.form/-date-form-control/get-value.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -DateFormControl.getValue - kvision - - - -kvision / pl.treksoft.kvision.form / DateFormControl / getValue
-
-

getValue

- -open fun getValue(): Date? -

Overrides FormControl.getValue

-

Returns the value of the control.

-

Return
-the value

- - diff --git a/api/pl.treksoft.kvision.form/-date-form-control/index.html b/api/pl.treksoft.kvision.form/-date-form-control/index.html deleted file mode 100644 index 50ea07c0..00000000 --- a/api/pl.treksoft.kvision.form/-date-form-control/index.html +++ /dev/null @@ -1,165 +0,0 @@ - - - -DateFormControl - kvision - - - -kvision / pl.treksoft.kvision.form / DateFormControl
-
-

DateFormControl

-interface DateFormControl : FormControl -

Base interface of a form control with a date value.

-

Properties

-
-open var value: List<File>? +open var value: List<KFile>?

File input value.

+

getNativeFile

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

Returns the native JavaScript File object.

+

getSnClass

@@ -398,10 +407,10 @@ If not set the upload button action will default to form submission.

-

getValue

+

getValue

-open fun getValue(): List<File>? +open fun getValue(): List<KFile>?

Returns the value of the control.

-

setValue

+

setValue

-open fun setValue(v: Any?): Unit +open fun setValue(v: Any?): Unit

Sets the value of the control.

-open class Upload : SimplePanel, FilesFormControl +open class Upload : SimplePanel, KFilesFormControl

The form field file upload component.

- - - - - - -
-

value

-
-abstract var value: Date? -

Date value.

-
-

Inherited Properties

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

disabled

-
-open var disabled: Boolean -

Determines if the field is disabled.

-
-

flabel

-
-abstract val flabel: FieldLabel -

Form field label.

-
-

input

-
-abstract val input: FormInput -

The actual input component.

-
-

name

-
-open var name: String? -

The name attribute of the generated HTML input element.

-
-

size

-
-open var size: InputSize? -

Input control field size.

-
-

validationInfo

-
-abstract val validationInfo: HelpBlock -

Validation info component.

-
-

validatorError

-
-open var validatorError: String? -

Validator error message.

-
-

Functions

- - - - - - - - - - - - - - - -
-

getValue

-
-open fun getValue(): Date? -

Returns the value of the control.

-
-

getValueAsString

-
-open fun getValueAsString(): String? -

Returns the value of the control as a String.

-
-

setValue

-
-open fun setValue(v: Any?): Unit -

Sets the value of the control.

-
-

Inherited Functions

- - - - - - - - - - - -
-

blur

-
-abstract fun blur(): Unit -

Makes the input element blur.

-
-

focus

-
-abstract fun focus(): Unit -

Makes the input element focused.

-
-

Inheritors

- - - - - - - -
-

DateTime

-
-open class DateTime : SimplePanel, DateFormControl -

Form field date/time chooser component.

-
- - diff --git a/api/pl.treksoft.kvision.form/-date-form-control/set-value.html b/api/pl.treksoft.kvision.form/-date-form-control/set-value.html deleted file mode 100644 index 7dd2477e..00000000 --- a/api/pl.treksoft.kvision.form/-date-form-control/set-value.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -DateFormControl.setValue - kvision - - - -kvision / pl.treksoft.kvision.form / DateFormControl / setValue
-
-

setValue

- -open fun setValue(v: Any?): Unit -

Overrides FormControl.setValue

-

Sets the value of the control.

-

Parameters

-

-v - the value

- - diff --git a/api/pl.treksoft.kvision.form/-date-form-control/value.html b/api/pl.treksoft.kvision.form/-date-form-control/value.html deleted file mode 100644 index 0d6d2079..00000000 --- a/api/pl.treksoft.kvision.form/-date-form-control/value.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -DateFormControl.value - kvision - - - -kvision / pl.treksoft.kvision.form / DateFormControl / value
-
-

value

- -abstract var value: Date? -

Date value.

- - diff --git a/api/pl.treksoft.kvision.form/-field-label/-init-.html b/api/pl.treksoft.kvision.form/-field-label/-init-.html index 3aa53a78..29c65e10 100644 --- a/api/pl.treksoft.kvision.form/-field-label/-init-.html +++ b/api/pl.treksoft.kvision.form/-field-label/-init-.html @@ -16,7 +16,7 @@

content - the text of the label

-rich - determines if content can contain HTML code

+rich - determines if content can contain HTML code

classes - a set of CSS class names

Constructor
diff --git a/api/pl.treksoft.kvision.form/-files-form-control/get-value-as-string.html b/api/pl.treksoft.kvision.form/-files-form-control/get-value-as-string.html deleted file mode 100644 index 42ba9c0f..00000000 --- a/api/pl.treksoft.kvision.form/-files-form-control/get-value-as-string.html +++ /dev/null @@ -1,16 +0,0 @@ - - - -FilesFormControl.getValueAsString - kvision - - - -kvision / pl.treksoft.kvision.form / FilesFormControl / getValueAsString
-
-

getValueAsString

- -open fun getValueAsString(): String? -

Overrides FormControl.getValueAsString

-

Returns the value of the control as a String.

- - diff --git a/api/pl.treksoft.kvision.form/-files-form-control/get-value.html b/api/pl.treksoft.kvision.form/-files-form-control/get-value.html deleted file mode 100644 index c84da632..00000000 --- a/api/pl.treksoft.kvision.form/-files-form-control/get-value.html +++ /dev/null @@ -1,18 +0,0 @@ - - - -FilesFormControl.getValue - kvision - - - -kvision / pl.treksoft.kvision.form / FilesFormControl / getValue
-
-

getValue

- -open fun getValue(): List<File>? -

Overrides FormControl.getValue

-

Returns the value of the control.

-

Return
-the value

- - diff --git a/api/pl.treksoft.kvision.form/-files-form-control/index.html b/api/pl.treksoft.kvision.form/-files-form-control/index.html deleted file mode 100644 index b364e491..00000000 --- a/api/pl.treksoft.kvision.form/-files-form-control/index.html +++ /dev/null @@ -1,165 +0,0 @@ - - - -FilesFormControl - kvision - - - -kvision / pl.treksoft.kvision.form / FilesFormControl
-
-

FilesFormControl

-interface FilesFormControl : FormControl -

Base interface of a form control with a list of files value.

-

Properties

- - - - - - - -
-

value

-
-abstract var value: List<File>? -

List of files value.

-
-

Inherited Properties

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

disabled

-
-open var disabled: Boolean -

Determines if the field is disabled.

-
-

flabel

-
-abstract val flabel: FieldLabel -

Form field label.

-
-

input

-
-abstract val input: FormInput -

The actual input component.

-
-

name

-
-open var name: String? -

The name attribute of the generated HTML input element.

-
-

size

-
-open var size: InputSize? -

Input control field size.

-
-

validationInfo

-
-abstract val validationInfo: HelpBlock -

Validation info component.

-
-

validatorError

-
-open var validatorError: String? -

Validator error message.

-
-

Functions

- - - - - - - - - - - - - - - -
-

getValue

-
-open fun getValue(): List<File>? -

Returns the value of the control.

-
-

getValueAsString

-
-open fun getValueAsString(): String? -

Returns the value of the control as a String.

-
-

setValue

-
-open fun setValue(v: Any?): Unit -

Sets the value of the control.

-
-

Inherited Functions

- - - - - - - - - - - -
-

blur

-
-abstract fun blur(): Unit -

Makes the input element blur.

-
-

focus

-
-abstract fun focus(): Unit -

Makes the input element focused.

-
-

Inheritors

- - - - - - - -
-

Upload

-
-open class Upload : SimplePanel, FilesFormControl -

The form field file upload component.

-
- - diff --git a/api/pl.treksoft.kvision.form/-files-form-control/set-value.html b/api/pl.treksoft.kvision.form/-files-form-control/set-value.html deleted file mode 100644 index ceefa66c..00000000 --- a/api/pl.treksoft.kvision.form/-files-form-control/set-value.html +++ /dev/null @@ -1,19 +0,0 @@ - - - -FilesFormControl.setValue - kvision - - - -kvision / pl.treksoft.kvision.form / FilesFormControl / setValue
-
-

setValue

- -open fun setValue(v: Any?): Unit -

Overrides FormControl.setValue

-

Sets the value of the control.

-

Parameters

-

-v - the value

- - diff --git a/api/pl.treksoft.kvision.form/-files-form-control/value.html b/api/pl.treksoft.kvision.form/-files-form-control/value.html deleted file mode 100644 index 51770986..00000000 --- a/api/pl.treksoft.kvision.form/-files-form-control/value.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -FilesFormControl.value - kvision - - - -kvision / pl.treksoft.kvision.form / FilesFormControl / value
-
-

value

- -abstract var value: List<File>? -

List of files value.

- - diff --git a/api/pl.treksoft.kvision.form/-form-control/index.html b/api/pl.treksoft.kvision.form/-form-control/index.html index 8fe99e19..2881e185 100644 --- a/api/pl.treksoft.kvision.form/-form-control/index.html +++ b/api/pl.treksoft.kvision.form/-form-control/index.html @@ -233,19 +233,19 @@ -

DateFormControl

+

KDateFormControl

-interface DateFormControl : FormControl +interface KDateFormControl : FormControl

Base interface of a form control with a date value.

-

FilesFormControl

+

KFilesFormControl

-interface FilesFormControl : FormControl +interface KFilesFormControl : FormControl

Base interface of a form control with a list of files value.

diff --git a/api/pl.treksoft.kvision.form/-form-panel/-init-.html b/api/pl.treksoft.kvision.form/-form-panel/-init-.html index e2eb6cf7..fb819c2f 100644 --- a/api/pl.treksoft.kvision.form/-form-panel/-init-.html +++ b/api/pl.treksoft.kvision.form/-form-panel/-init-.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.form / FormPanel / <init>

<init>

- -FormPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), modelFactory: (Map<String, Any?>) -> K) + +FormPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), serializer: KSerializer<K>)

Parameters

K - model class type

@@ -23,8 +23,8 @@ type - form layout

classes - set of CSS class names

-

-modelFactory - function transforming a Map<String, Any?> to a data model of class K

+

+serializer - a serializer for model type

Constructor

diff --git a/api/pl.treksoft.kvision.form/-form-panel/add.html b/api/pl.treksoft.kvision.form/-form-panel/add.html index 0c9fd3ca..723ce9f7 100644 --- a/api/pl.treksoft.kvision.form/-form-panel/add.html +++ b/api/pl.treksoft.kvision.form/-form-panel/add.html @@ -56,8 +56,8 @@ current form panel

validator - optional validation function

Return
current form panel

- -open fun <C : DateFormControl> add(key: KProperty1<K, Date?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K> + +open fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>

Adds a date control to the form panel.

Parameters

@@ -72,8 +72,8 @@ current form panel

validator - optional validation function

Return
current form panel

- -open fun <C : FilesFormControl> add(key: KProperty1<K, List<File>?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K> + +open fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>

Adds a files control to the form panel.

Parameters

diff --git a/api/pl.treksoft.kvision.form/-form-panel/create.html b/api/pl.treksoft.kvision.form/-form-panel/create.html new file mode 100644 index 00000000..67ef73ae --- /dev/null +++ b/api/pl.treksoft.kvision.form/-form-panel/create.html @@ -0,0 +1,14 @@ + + + +FormPanel.create - kvision + + + +kvision / pl.treksoft.kvision.form / FormPanel / create
+
+

create

+ +inline fun <reified K : Any> create(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), noinline init: FormPanel<K>.() -> Unit = null): FormPanel<K> + + diff --git a/api/pl.treksoft.kvision.form/-form-panel/form-panel.html b/api/pl.treksoft.kvision.form/-form-panel/form-panel.html index 11590ed4..dce70047 100644 --- a/api/pl.treksoft.kvision.form/-form-panel/form-panel.html +++ b/api/pl.treksoft.kvision.form/-form-panel/form-panel.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.form / FormPanel / formPanel

formPanel

- -fun <K> Container.formPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), modelFactory: (Map<String, Any?>) -> K): FormPanel<K> + +inline fun <reified K : Any> Container.formPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), noinline init: FormPanel<K>.() -> Unit = null): FormPanel<K>

DSL builder extension function.

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

diff --git a/api/pl.treksoft.kvision.form/-form-panel/get-content.html b/api/pl.treksoft.kvision.form/-form-panel/get-content.html new file mode 100644 index 00000000..6e97ae04 --- /dev/null +++ b/api/pl.treksoft.kvision.form/-form-panel/get-content.html @@ -0,0 +1,22 @@ + + + +FormPanel.getContent - kvision + + + +kvision / pl.treksoft.kvision.form / FormPanel / getContent
+
+

getContent

+ +suspend fun getContent(key: KProperty1<K, List<KFile>?>, kFile: KFile): KFile +

Returns an object with the content of the file.

+

Parameters

+

+key - key identifier of the control

+

+kFile - object identifying the file

+

Return
+KFile object

+ + diff --git a/api/pl.treksoft.kvision.form/-form-panel/index.html b/api/pl.treksoft.kvision.form/-form-panel/index.html index 8268f58f..fb2e65dd 100644 --- a/api/pl.treksoft.kvision.form/-form-panel/index.html +++ b/api/pl.treksoft.kvision.form/-form-panel/index.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form / FormPanel

FormPanel

-open class FormPanel<K> : SimplePanel +open class FormPanel<K : Any> : SimplePanel

Bootstrap form component.

Constructors

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

<init>

+FormPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), serializer: KSerializer<K>)
-FormPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), modelFactory: (Map<String, Any?>) -> K)
@@ -122,9 +122,9 @@

Adds a boolean control to the form panel.

open fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>

Adds a number control to the form panel.

-open fun <C : DateFormControl> add(key: KProperty1<K, Date?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K> +open fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>

Adds a date control to the form panel.

-open fun <C : FilesFormControl> add(key: KProperty1<K, List<File>?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K> +open fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>

Adds a files control to the form panel.

@@ -155,6 +155,15 @@ +

getContent

+ + +suspend fun getContent(key: KProperty1<K, List<KFile>?>, kFile: KFile): KFile +

Returns an object with the content of the file.

+ + + +

getControl

@@ -309,10 +318,17 @@ +

create

+ + +fun <K : Any> create(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), init: FormPanel<K>.() -> Unit = null): FormPanel<K> + + +

formPanel

-fun <K> Container.formPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), modelFactory: (Map<String, Any?>) -> K): FormPanel<K> +fun <K : Any> Container.formPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), init: FormPanel<K>.() -> Unit = null): FormPanel<K>

DSL builder extension function.

diff --git a/api/pl.treksoft.kvision.form/-form/-init-.html b/api/pl.treksoft.kvision.form/-form/-init-.html index b703eeca..d2e40cfd 100644 --- a/api/pl.treksoft.kvision.form/-form/-init-.html +++ b/api/pl.treksoft.kvision.form/-form/-init-.html @@ -8,16 +8,16 @@ kvision / pl.treksoft.kvision.form / Form / <init>

<init>

- -Form(panel: FormPanel<K>? = null, modelFactory: (Map<String, Any?>) -> K) + +Form(panel: FormPanel<K>? = null, serializer: KSerializer<K>)

Creates a form with a given modelFactory function

Parameters

K - model class type

panel - optional instance of FormPanel

-

-modelFactory - function transforming a Map<String, Any?> to a data model of class K

+

+serializer - a serializer for model type

Constructor
Creates a form with a given modelFactory function

diff --git a/api/pl.treksoft.kvision.form/-form/add.html b/api/pl.treksoft.kvision.form/-form/add.html index 2980cadf..ee324f93 100644 --- a/api/pl.treksoft.kvision.form/-form/add.html +++ b/api/pl.treksoft.kvision.form/-form/add.html @@ -56,8 +56,8 @@ current form

validator - optional validation function

Return
current form

- -fun <C : DateFormControl> add(key: KProperty1<K, Date?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K> + +fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>

Adds a date control to the form.

Parameters

@@ -72,8 +72,8 @@ current form

validator - optional validation function

Return
current form

- -fun <C : FilesFormControl> add(key: KProperty1<K, List<File>?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K> + +fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>

Adds a files control to the form.

Parameters

diff --git a/api/pl.treksoft.kvision.form/-form/create.html b/api/pl.treksoft.kvision.form/-form/create.html new file mode 100644 index 00000000..6db5df89 --- /dev/null +++ b/api/pl.treksoft.kvision.form/-form/create.html @@ -0,0 +1,14 @@ + + + +Form.create - kvision + + + +kvision / pl.treksoft.kvision.form / Form / create
+
+

create

+ +inline fun <reified K : Any> create(panel: FormPanel<K>? = null, noinline init: Form<K>.() -> Unit = null): Form<K> + + diff --git a/api/pl.treksoft.kvision.form/-form/get-content.html b/api/pl.treksoft.kvision.form/-form/get-content.html new file mode 100644 index 00000000..90b6feeb --- /dev/null +++ b/api/pl.treksoft.kvision.form/-form/get-content.html @@ -0,0 +1,22 @@ + + + +Form.getContent - kvision + + + +kvision / pl.treksoft.kvision.form / Form / getContent
+
+

getContent

+ +suspend fun getContent(key: KProperty1<K, List<KFile>?>, kFile: KFile): KFile +

Returns file with the content read.

+

Parameters

+

+key - key identifier of the control

+

+kFile - object identifying the file

+

Return
+KFile object

+ + diff --git a/api/pl.treksoft.kvision.form/-form/index.html b/api/pl.treksoft.kvision.form/-form/index.html index 47af0804..f34e7aea 100644 --- a/api/pl.treksoft.kvision.form/-form/index.html +++ b/api/pl.treksoft.kvision.form/-form/index.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form / Form

Form

-class Form<K> +class Form<K : Any>

The form definition class. Can be used directly or indirectly inside a FormPanel.

Constructors

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

<init>

@@ -38,9 +38,9 @@

Adds a boolean control to the form.

fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>

Adds a number control to the form.

-fun <C : DateFormControl> add(key: KProperty1<K, Date?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K> +fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>

Adds a date control to the form.

-fun <C : FilesFormControl> add(key: KProperty1<K, List<File>?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K> +fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>

Adds a files control to the form.

@@ -64,6 +64,15 @@ + + + +
-Form(panel: FormPanel<K>? = null, modelFactory: (Map<String, Any?>) -> K) +Form(panel: FormPanel<K>? = null, serializer: KSerializer<K>)

Creates a form with a given modelFactory function

+

getContent

+
+suspend fun getContent(key: KProperty1<K, List<KFile>?>, kFile: KFile): KFile +

Returns file with the content read.

+

getControl

@@ -127,5 +136,17 @@
+

Companion Object Functions

+ + + + + + + +
+

create

+
+fun <K : Any> create(panel: FormPanel<K>? = null, init: Form<K>.() -> Unit = null): Form<K>
diff --git a/api/pl.treksoft.kvision.form/-help-block/-init-.html b/api/pl.treksoft.kvision.form/-help-block/-init-.html index 104d8fd8..acedfd03 100644 --- a/api/pl.treksoft.kvision.form/-help-block/-init-.html +++ b/api/pl.treksoft.kvision.form/-help-block/-init-.html @@ -14,7 +14,7 @@

content - the text of the label

-rich - determines if content can contain HTML code

+rich - determines if content can contain HTML code

Constructor

diff --git a/api/pl.treksoft.kvision.form/-k-date-form-control/get-value-as-string.html b/api/pl.treksoft.kvision.form/-k-date-form-control/get-value-as-string.html new file mode 100644 index 00000000..677bcda1 --- /dev/null +++ b/api/pl.treksoft.kvision.form/-k-date-form-control/get-value-as-string.html @@ -0,0 +1,16 @@ + + + +KDateFormControl.getValueAsString - kvision + + + +kvision / pl.treksoft.kvision.form / KDateFormControl / getValueAsString
+
+

getValueAsString

+ +open fun getValueAsString(): String? +

Overrides FormControl.getValueAsString

+

Returns the value of the control as a String.

+ + diff --git a/api/pl.treksoft.kvision.form/-k-date-form-control/get-value.html b/api/pl.treksoft.kvision.form/-k-date-form-control/get-value.html new file mode 100644 index 00000000..80fe5c8b --- /dev/null +++ b/api/pl.treksoft.kvision.form/-k-date-form-control/get-value.html @@ -0,0 +1,18 @@ + + + +KDateFormControl.getValue - kvision + + + +kvision / pl.treksoft.kvision.form / KDateFormControl / getValue
+
+

getValue

+ +open fun getValue(): KDate? +

Overrides FormControl.getValue

+

Returns the value of the control.

+

Return
+the value

+ + diff --git a/api/pl.treksoft.kvision.form/-k-date-form-control/index.html b/api/pl.treksoft.kvision.form/-k-date-form-control/index.html new file mode 100644 index 00000000..a14754e7 --- /dev/null +++ b/api/pl.treksoft.kvision.form/-k-date-form-control/index.html @@ -0,0 +1,165 @@ + + + +KDateFormControl - kvision + + + +kvision / pl.treksoft.kvision.form / KDateFormControl
+
+

KDateFormControl

+interface KDateFormControl : FormControl +

Base interface of a form control with a date value.

+

Properties

+ + + + + + + +
+

value

+
+abstract var value: KDate? +

Date value.

+
+

Inherited Properties

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

disabled

+
+open var disabled: Boolean +

Determines if the field is disabled.

+
+

flabel

+
+abstract val flabel: FieldLabel +

Form field label.

+
+

input

+
+abstract val input: FormInput +

The actual input component.

+
+

name

+
+open var name: String? +

The name attribute of the generated HTML input element.

+
+

size

+
+open var size: InputSize? +

Input control field size.

+
+

validationInfo

+
+abstract val validationInfo: HelpBlock +

Validation info component.

+
+

validatorError

+
+open var validatorError: String? +

Validator error message.

+
+

Functions

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

getValue

+
+open fun getValue(): KDate? +

Returns the value of the control.

+
+

getValueAsString

+
+open fun getValueAsString(): String? +

Returns the value of the control as a String.

+
+

setValue

+
+open fun setValue(v: Any?): Unit +

Sets the value of the control.

+
+

Inherited Functions

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

blur

+
+abstract fun blur(): Unit +

Makes the input element blur.

+
+

focus

+
+abstract fun focus(): Unit +

Makes the input element focused.

+
+

Inheritors

+ + + + + + + +
+

DateTime

+
+open class DateTime : SimplePanel, KDateFormControl +

Form field date/time chooser component.

+
+ + diff --git a/api/pl.treksoft.kvision.form/-k-date-form-control/set-value.html b/api/pl.treksoft.kvision.form/-k-date-form-control/set-value.html new file mode 100644 index 00000000..3e102567 --- /dev/null +++ b/api/pl.treksoft.kvision.form/-k-date-form-control/set-value.html @@ -0,0 +1,19 @@ + + + +KDateFormControl.setValue - kvision + + + +kvision / pl.treksoft.kvision.form / KDateFormControl / setValue
+
+

setValue

+ +open fun setValue(v: Any?): Unit +

Overrides FormControl.setValue

+

Sets the value of the control.

+

Parameters

+

+v - the value

+ + diff --git a/api/pl.treksoft.kvision.form/-k-date-form-control/value.html b/api/pl.treksoft.kvision.form/-k-date-form-control/value.html new file mode 100644 index 00000000..252a1296 --- /dev/null +++ b/api/pl.treksoft.kvision.form/-k-date-form-control/value.html @@ -0,0 +1,15 @@ + + + +KDateFormControl.value - kvision + + + +kvision / pl.treksoft.kvision.form / KDateFormControl / value
+
+

value

+ +abstract var value: KDate? +

Date value.

+ + diff --git a/api/pl.treksoft.kvision.form/-k-files-form-control/get-value-as-string.html b/api/pl.treksoft.kvision.form/-k-files-form-control/get-value-as-string.html new file mode 100644 index 00000000..6e890d6f --- /dev/null +++ b/api/pl.treksoft.kvision.form/-k-files-form-control/get-value-as-string.html @@ -0,0 +1,16 @@ + + + +KFilesFormControl.getValueAsString - kvision + + + +kvision / pl.treksoft.kvision.form / KFilesFormControl / getValueAsString
+
+

getValueAsString

+ +open fun getValueAsString(): String? +

Overrides FormControl.getValueAsString

+

Returns the value of the control as a String.

+ + diff --git a/api/pl.treksoft.kvision.form/-k-files-form-control/get-value.html b/api/pl.treksoft.kvision.form/-k-files-form-control/get-value.html new file mode 100644 index 00000000..83d54534 --- /dev/null +++ b/api/pl.treksoft.kvision.form/-k-files-form-control/get-value.html @@ -0,0 +1,18 @@ + + + +KFilesFormControl.getValue - kvision + + + +kvision / pl.treksoft.kvision.form / KFilesFormControl / getValue
+
+

getValue

+ +open fun getValue(): List<KFile>? +

Overrides FormControl.getValue

+

Returns the value of the control.

+

Return
+the value

+ + 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 new file mode 100644 index 00000000..410e07c5 --- /dev/null +++ b/api/pl.treksoft.kvision.form/-k-files-form-control/index.html @@ -0,0 +1,165 @@ + + + +KFilesFormControl - kvision + + + +kvision / pl.treksoft.kvision.form / KFilesFormControl
+
+

KFilesFormControl

+interface KFilesFormControl : FormControl +

Base interface of a form control with a list of files value.

+

Properties

+ + + + + + + +
+

value

+
+abstract var value: List<KFile>? +

List of files value.

+
+

Inherited Properties

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

disabled

+
+open var disabled: Boolean +

Determines if the field is disabled.

+
+

flabel

+
+abstract val flabel: FieldLabel +

Form field label.

+
+

input

+
+abstract val input: FormInput +

The actual input component.

+
+

name

+
+open var name: String? +

The name attribute of the generated HTML input element.

+
+

size

+
+open var size: InputSize? +

Input control field size.

+
+

validationInfo

+
+abstract val validationInfo: HelpBlock +

Validation info component.

+
+

validatorError

+
+open var validatorError: String? +

Validator error message.

+
+

Functions

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

getValue

+
+open fun getValue(): List<KFile>? +

Returns the value of the control.

+
+

getValueAsString

+
+open fun getValueAsString(): String? +

Returns the value of the control as a String.

+
+

setValue

+
+open fun setValue(v: Any?): Unit +

Sets the value of the control.

+
+

Inherited Functions

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

blur

+
+abstract fun blur(): Unit +

Makes the input element blur.

+
+

focus

+
+abstract fun focus(): Unit +

Makes the input element focused.

+
+

Inheritors

+ + + + + + + +
+

Upload

+
+open class Upload : SimplePanel, KFilesFormControl +

The form field file upload component.

+
+ + diff --git a/api/pl.treksoft.kvision.form/-k-files-form-control/set-value.html b/api/pl.treksoft.kvision.form/-k-files-form-control/set-value.html new file mode 100644 index 00000000..6bb16a8d --- /dev/null +++ b/api/pl.treksoft.kvision.form/-k-files-form-control/set-value.html @@ -0,0 +1,19 @@ + + + +KFilesFormControl.setValue - kvision + + + +kvision / pl.treksoft.kvision.form / KFilesFormControl / setValue
+
+

setValue

+ +open fun setValue(v: Any?): Unit +

Overrides FormControl.setValue

+

Sets the value of the control.

+

Parameters

+

+v - the value

+ + diff --git a/api/pl.treksoft.kvision.form/-k-files-form-control/value.html b/api/pl.treksoft.kvision.form/-k-files-form-control/value.html new file mode 100644 index 00000000..4b62a422 --- /dev/null +++ b/api/pl.treksoft.kvision.form/-k-files-form-control/value.html @@ -0,0 +1,15 @@ + + + +KFilesFormControl.value - kvision + + + +kvision / pl.treksoft.kvision.form / KFilesFormControl / value
+
+

value

+ +abstract var value: List<KFile>? +

List of files value.

+ + diff --git a/api/pl.treksoft.kvision.form/index.html b/api/pl.treksoft.kvision.form/index.html index 697f5400..a63807cd 100644 --- a/api/pl.treksoft.kvision.form/index.html +++ b/api/pl.treksoft.kvision.form/index.html @@ -24,15 +24,6 @@ validation.

-

DateFormControl

- - -interface DateFormControl : FormControl -

Base interface of a form control with a date value.

- - - -

FieldLabel

@@ -42,19 +33,10 @@ validation.

-

FilesFormControl

- - -interface FilesFormControl : FormControl -

Base interface of a form control with a list of files value.

- - - -

Form

-class Form<K> +class Form<K : Any>

The form definition class. Can be used directly or indirectly inside a FormPanel.

@@ -97,7 +79,7 @@ validation.

FormPanel

-open class FormPanel<K> : SimplePanel +open class FormPanel<K : Any> : SimplePanel

Bootstrap form component.

@@ -139,6 +121,24 @@ validation.

+

KDateFormControl

+ + +interface KDateFormControl : FormControl +

Base interface of a form control with a date value.

+ + + + +

KFilesFormControl

+ + +interface KFilesFormControl : FormControl +

Base interface of a form control with a list of files value.

+ + + +

NumberFormControl

diff --git a/api/pl.treksoft.kvision.form/kotlin.collections.-map/bool.html b/api/pl.treksoft.kvision.form/kotlin.collections.-map/bool.html deleted file mode 100644 index 2d14417e..00000000 --- a/api/pl.treksoft.kvision.form/kotlin.collections.-map/bool.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -bool - kvision - - - -kvision / pl.treksoft.kvision.form / kotlin.collections.Map / bool
-
-

bool

- -fun Map<String, Any?>.bool(key: String): Boolean? -

Returns given value from the map as a Boolean.

- - diff --git a/api/pl.treksoft.kvision.form/kotlin.collections.-map/date.html b/api/pl.treksoft.kvision.form/kotlin.collections.-map/date.html deleted file mode 100644 index 05ac67b9..00000000 --- a/api/pl.treksoft.kvision.form/kotlin.collections.-map/date.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -date - kvision - - - -kvision / pl.treksoft.kvision.form / kotlin.collections.Map / date
-
-

date

- -fun Map<String, Any?>.date(key: String): Date? -

Returns given value from the map as a Date.

- - diff --git a/api/pl.treksoft.kvision.form/kotlin.collections.-map/index.html b/api/pl.treksoft.kvision.form/kotlin.collections.-map/index.html index 0ad5ebe9..bbafa6ba 100644 --- a/api/pl.treksoft.kvision.form/kotlin.collections.-map/index.html +++ b/api/pl.treksoft.kvision.form/kotlin.collections.-map/index.html @@ -19,42 +19,6 @@

Extension function to convert Map to JSON.

- - -

bool

- - -fun Map<String, Any?>.bool(key: String): Boolean? -

Returns given value from the map as a Boolean.

- - - - -

date

- - -fun Map<String, Any?>.date(key: String): Date? -

Returns given value from the map as a Date.

- - - - -

number

- - -fun Map<String, Any?>.number(key: String): Number? -

Returns given value from the map as a Number.

- - - - -

string

- - -fun Map<String, Any?>.string(key: String): String? -

Returns given value from the map as a String.

- - diff --git a/api/pl.treksoft.kvision.form/kotlin.collections.-map/number.html b/api/pl.treksoft.kvision.form/kotlin.collections.-map/number.html deleted file mode 100644 index 6f898d7f..00000000 --- a/api/pl.treksoft.kvision.form/kotlin.collections.-map/number.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -number - kvision - - - -kvision / pl.treksoft.kvision.form / kotlin.collections.Map / number
-
-

number

- -fun Map<String, Any?>.number(key: String): Number? -

Returns given value from the map as a Number.

- - diff --git a/api/pl.treksoft.kvision.form/kotlin.collections.-map/string.html b/api/pl.treksoft.kvision.form/kotlin.collections.-map/string.html deleted file mode 100644 index 33bc31c6..00000000 --- a/api/pl.treksoft.kvision.form/kotlin.collections.-map/string.html +++ /dev/null @@ -1,15 +0,0 @@ - - - -string - kvision - - - -kvision / pl.treksoft.kvision.form / kotlin.collections.Map / string
-
-

string

- -fun Map<String, Any?>.string(key: String): String? -

Returns given value from the map as a String.

- - diff --git a/api/pl.treksoft.kvision.html/-canvas/-init-.html b/api/pl.treksoft.kvision.html/-canvas/-init-.html new file mode 100644 index 00000000..7cae50d1 --- /dev/null +++ b/api/pl.treksoft.kvision.html/-canvas/-init-.html @@ -0,0 +1,23 @@ + + + +Canvas.<init> - kvision + + + +kvision / pl.treksoft.kvision.html / Canvas / <init>
+
+

<init>

+ +Canvas(canvasWidth: Int? = null, canvasHeight: Int? = null, classes: Set<String> = setOf()) +

Parameters

+

+canvasWidth - the width of the canvas

+

+canvasHeight - the height of the canvas

+

+classes - a set of CSS class names

+

Constructor
+

+ + diff --git a/api/pl.treksoft.kvision.html/-canvas/after-insert.html b/api/pl.treksoft.kvision.html/-canvas/after-insert.html new file mode 100644 index 00000000..24af2f0d --- /dev/null +++ b/api/pl.treksoft.kvision.html/-canvas/after-insert.html @@ -0,0 +1,16 @@ + + + +Canvas.afterInsert - kvision + + + +kvision / pl.treksoft.kvision.html / Canvas / afterInsert
+
+

afterInsert

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

Overrides Widget.afterInsert

+

Method called after inserting Snabbdom vnode into the DOM.

+ + diff --git a/api/pl.treksoft.kvision.html/-canvas/canvas-height.html b/api/pl.treksoft.kvision.html/-canvas/canvas-height.html new file mode 100644 index 00000000..bccfc42d --- /dev/null +++ b/api/pl.treksoft.kvision.html/-canvas/canvas-height.html @@ -0,0 +1,21 @@ + + + +Canvas.canvasHeight - kvision + + + +kvision / pl.treksoft.kvision.html / Canvas / canvasHeight
+
+

canvasHeight

+ +var canvasHeight: Int? +

The height of the canvas.

+

Getter
+

The height of the canvas.

+

+

Setter
+

The height of the canvas.

+

+ + diff --git a/api/pl.treksoft.kvision.html/-canvas/canvas-width.html b/api/pl.treksoft.kvision.html/-canvas/canvas-width.html new file mode 100644 index 00000000..741c8362 --- /dev/null +++ b/api/pl.treksoft.kvision.html/-canvas/canvas-width.html @@ -0,0 +1,21 @@ + + + +Canvas.canvasWidth - kvision + + + +kvision / pl.treksoft.kvision.html / Canvas / canvasWidth
+
+

canvasWidth

+ +var canvasWidth: Int? +

The width of the canvas.

+

Getter
+

The width of the canvas.

+

+

Setter
+

The width of the canvas.

+

+ + diff --git a/api/pl.treksoft.kvision.html/-canvas/canvas.html b/api/pl.treksoft.kvision.html/-canvas/canvas.html new file mode 100644 index 00000000..fdc94abf --- /dev/null +++ b/api/pl.treksoft.kvision.html/-canvas/canvas.html @@ -0,0 +1,16 @@ + + + +Canvas.canvas - kvision + + + +kvision / pl.treksoft.kvision.html / Canvas / canvas
+
+

canvas

+ +fun Container.canvas(canvasWidth: Int? = null, canvasHeight: Int? = null, classes: Set<String> = setOf(), init: Canvas.() -> Unit = null): Canvas +

DSL builder extension function.

+

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

+ + diff --git a/api/pl.treksoft.kvision.html/-canvas/context2-d.html b/api/pl.treksoft.kvision.html/-canvas/context2-d.html new file mode 100644 index 00000000..9d85da89 --- /dev/null +++ b/api/pl.treksoft.kvision.html/-canvas/context2-d.html @@ -0,0 +1,15 @@ + + + +Canvas.context2D - kvision + + + +kvision / pl.treksoft.kvision.html / Canvas / context2D
+
+

context2D

+ +lateinit var context2D: <ERROR CLASS> +

The canvas rendering context.

+ + diff --git a/api/pl.treksoft.kvision.html/-canvas/get-sn-attrs.html b/api/pl.treksoft.kvision.html/-canvas/get-sn-attrs.html new file mode 100644 index 00000000..f4b23558 --- /dev/null +++ b/api/pl.treksoft.kvision.html/-canvas/get-sn-attrs.html @@ -0,0 +1,18 @@ + + + +Canvas.getSnAttrs - kvision + + + +kvision / pl.treksoft.kvision.html / Canvas / getSnAttrs
+
+

getSnAttrs

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

Overrides Widget.getSnAttrs

+

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

+

Return
+list of element attributes

+ + diff --git a/api/pl.treksoft.kvision.html/-canvas/index.html b/api/pl.treksoft.kvision.html/-canvas/index.html new file mode 100644 index 00000000..f41dba0b --- /dev/null +++ b/api/pl.treksoft.kvision.html/-canvas/index.html @@ -0,0 +1,388 @@ + + + +Canvas - kvision + + + +kvision / pl.treksoft.kvision.html / Canvas
+
+

Canvas

+open class Canvas : Widget +

Canvas component.

+

Constructors

+ + + + + + + +
+

<init>

+
+Canvas(canvasWidth: Int? = null, canvasHeight: Int? = null, classes: Set<String> = setOf())
+

Properties

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

canvasHeight

+
+var canvasHeight: Int? +

The height of the canvas.

+
+

canvasWidth

+
+var canvasWidth: Int? +

The width of the canvas.

+
+

context2D

+
+lateinit var context2D: <ERROR CLASS> +

The canvas rendering context.

+
+

Inherited Properties

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

draggable

+
+var draggable: Boolean? +

Determines if the current widget is draggable.

+
+

id

+
+var id: String? +

An ID attribute of generated HTML element.

+
+

parent

+
+open var parent: Container? +

Parent of the current component.

+
+

role

+
+var role: String? +

A role attribute of generated HTML element.

+
+

title

+
+var title: String? +

A title attribute of generated HTML element.

+
+

visible

+
+open var visible: Boolean +

Visibility state of the current component.

+
+

Functions

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

afterInsert

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

Method called after inserting Snabbdom vnode into the DOM.

+
+

getSnAttrs

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

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

+
+

render

+
+open fun render(): VNode +

Renders current component as a Snabbdom vnode.

+
+

Inherited Functions

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

addCssClass

+
+open fun addCssClass(css: String): Widget +

Adds given value to the set of CSS classes generated in html code of current component.

+
+

addSurroundingCssClass

+
+open fun addSurroundingCssClass(css: String): Widget +

Adds given value to the set of CSS classes generated in html code of parent component.

+
+

afterCreate

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

Method called after creating Snabbdom vnode.

+
+

afterDestroy

+
+open fun afterDestroy(): Unit +

Method called after destroying Snabbdom vnode.

+
+

afterPostpatch

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

Method called after updating Snabbdom vnode.

+
+

clearDragDropData

+
+open fun clearDragDropData(): Unit +

Clears D&D data for the current widget. It also makes it not draggable.

+
+

getElement

+
+open fun getElement(): Node? +

Returns DOM element bound to the current component.

+
+

getElementJQuery

+
+open fun getElementJQuery(): JQuery? +

Returns JQuery element bound to the current component.

+
+

getElementJQueryD

+
+open fun getElementJQueryD(): dynamic +

Returns JQuery element bound to the current component as a dynamic type.

+
+

getSnClass

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

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

+
+

getSnHooks

+
+open fun getSnHooks(): Hooks? +

Returns list of hooks in the form of a Snabbdom Hooks object.

+
+

getSnOn

+
+open fun getSnOn(): On? +

Returns list of event handlers in the form of a Snabbdom On object.

+
+

hide

+
+open fun hide(): Widget +

Makes current widget invisible.

+
+

removeCssClass

+
+open fun removeCssClass(css: String): Widget +

Removes given value from the set of CSS classes generated in html code of current component.

+
+

removeEventListeners

+
+open fun removeEventListeners(): Widget +

Removes all event listeners from current widget.

+
+

removeSurroundingCssClass

+
+open fun removeSurroundingCssClass(css: String): Widget +

Removes given value from the set of CSS classes generated in html code of parent component.

+
+

render

+
+open fun render(elementName: String): VNode
+open fun render(elementName: String, children: Array<dynamic>): VNode +

Renders current component as a Snabbdom vnode.

+
+

setContextMenu

+
+open fun setContextMenu(contextMenu: ContextMenu): Widget +

Sets context menu for the current widget.

+
+

setDragDropData

+
+open fun setDragDropData(format: String, data: String): Unit +

Sets D&D data for the current widget. It also makes it draggable.

+
+

setDropTarget

+
+open fun setDropTarget(format: String, callback: (DragEvent) -> Unit): Unit
+open fun setDropTarget(formats: Set<String>? = null, callback: (DragEvent) -> Unit): Unit +

Sets the current widget as a D&D drop target.

+
+

setDropTargetData

+
+open fun setDropTargetData(format: String, callback: (String?) -> Unit): Unit +

Sets the current widget as a D&D drop target with helper callback accepting String data.

+
+

setEventListener

+
+open fun <T : Widget> setEventListener(block: SnOn<T>.() -> Unit): Widget +

Sets an event listener for current widget, keeping the actual type of component.

+open fun setEventListener(block: SnOn<Widget>.() -> Unit): Widget +

Sets an event listener for current widget.

+
+

show

+
+open fun show(): Widget +

Makes current widget visible.

+
+

toggleVisible

+
+open fun toggleVisible(): Widget +

Toggles visibility of current widget.

+
+

Companion Object Functions

+ + + + + + + +
+

canvas

+
+fun Container.canvas(canvasWidth: Int? = null, canvasHeight: Int? = null, classes: Set<String> = setOf(), init: Canvas.() -> Unit = null): Canvas +

DSL builder extension function.

+
+ + diff --git a/api/pl.treksoft.kvision.html/-canvas/render.html b/api/pl.treksoft.kvision.html/-canvas/render.html new file mode 100644 index 00000000..8aea9910 --- /dev/null +++ b/api/pl.treksoft.kvision.html/-canvas/render.html @@ -0,0 +1,18 @@ + + + +Canvas.render - kvision + + + +kvision / pl.treksoft.kvision.html / Canvas / render
+
+

render

+ +protected open fun render(): VNode +

Overrides Widget.render

+

Renders current component as a Snabbdom vnode.

+

Return
+Snabbdom vnode

+ + diff --git a/api/pl.treksoft.kvision.html/-div/-init-.html b/api/pl.treksoft.kvision.html/-div/-init-.html index 6eaa6fd7..6eaaec1b 100644 --- a/api/pl.treksoft.kvision.html/-div/-init-.html +++ b/api/pl.treksoft.kvision.html/-div/-init-.html @@ -14,7 +14,7 @@

content - element text

-rich - determines if content can contain HTML code

+rich - determines if content can contain HTML code

align - content align

diff --git a/api/pl.treksoft.kvision.html/-label/-init-.html b/api/pl.treksoft.kvision.html/-label/-init-.html index a698d4db..5eb3bcc0 100644 --- a/api/pl.treksoft.kvision.html/-label/-init-.html +++ b/api/pl.treksoft.kvision.html/-label/-init-.html @@ -14,7 +14,7 @@

content - label text

-rich - determines if content can contain HTML code

+rich - determines if content can contain HTML code

Constructor

diff --git a/api/pl.treksoft.kvision.html/-list-tag/-init-.html b/api/pl.treksoft.kvision.html/-list-tag/-init-.html index e4b3366f..c9cb10ff 100644 --- a/api/pl.treksoft.kvision.html/-list-tag/-init-.html +++ b/api/pl.treksoft.kvision.html/-list-tag/-init-.html @@ -16,7 +16,7 @@

elements - optional list of elements

-rich - determines if elements can contain HTML code

+rich - determines if elements can contain HTML code

classes - a set of CSS class names

diff --git a/api/pl.treksoft.kvision.html/-tag/-init-.html b/api/pl.treksoft.kvision.html/-tag/-init-.html index a856589d..7f16b90e 100644 --- a/api/pl.treksoft.kvision.html/-tag/-init-.html +++ b/api/pl.treksoft.kvision.html/-tag/-init-.html @@ -16,7 +16,7 @@

content - content text of the tag

-rich - determines if content can contain HTML code

+rich - determines if content can contain HTML code

align - content align

diff --git a/api/pl.treksoft.kvision.html/index.html b/api/pl.treksoft.kvision.html/index.html index 38eea860..01b678e5 100644 --- a/api/pl.treksoft.kvision.html/index.html +++ b/api/pl.treksoft.kvision.html/index.html @@ -60,6 +60,15 @@ Support for Handlebars.js templates is included.

+

Canvas

+ + +open class Canvas : Widget +

Canvas component.

+ + + +

Div

diff --git a/api/pl.treksoft.kvision.modal/-alert/-init-.html b/api/pl.treksoft.kvision.modal/-alert/-init-.html index 28dffea4..ac6a287a 100644 --- a/api/pl.treksoft.kvision.modal/-alert/-init-.html +++ b/api/pl.treksoft.kvision.modal/-alert/-init-.html @@ -16,7 +16,7 @@

text - window content text.

-rich - determines if text can contain HTML code

+rich - determines if text can contain HTML code

align - text align

diff --git a/api/pl.treksoft.kvision.modal/-confirm/-init-.html b/api/pl.treksoft.kvision.modal/-confirm/-init-.html index 9bbfd601..7bd88a52 100644 --- a/api/pl.treksoft.kvision.modal/-confirm/-init-.html +++ b/api/pl.treksoft.kvision.modal/-confirm/-init-.html @@ -16,7 +16,7 @@

text - window content text.

-rich - determines if text can contain HTML code

+rich - determines if text can contain HTML code

align - text align

diff --git a/api/pl.treksoft.kvision.modal/-dialog/-init-.html b/api/pl.treksoft.kvision.modal/-dialog/-init-.html new file mode 100644 index 00000000..e7ae6cae --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-dialog/-init-.html @@ -0,0 +1,31 @@ + + + +Dialog.<init> - kvision + + + +kvision / pl.treksoft.kvision.modal / Dialog / <init>
+
+

<init>

+ +Dialog(caption: String? = null, closeButton: Boolean = true, size: ModalSize? = null, animation: Boolean = true, escape: Boolean = true, classes: Set<String> = setOf(), init: Dialog<R>.() -> Unit = null) +

Parameters

+

+caption - window title

+

+closeButton - determines if Close button is visible

+

+size - modal window size

+

+animation - determines if animations are used

+

+escape - determines if dialog can be closed with Esc key

+

+classes - a set of CSS class names

+

+init - an initializer extension function

+

Constructor
+

+ + diff --git a/api/pl.treksoft.kvision.modal/-dialog/get-result.html b/api/pl.treksoft.kvision.modal/-dialog/get-result.html new file mode 100644 index 00000000..0c28a36f --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-dialog/get-result.html @@ -0,0 +1,15 @@ + + + +Dialog.getResult - kvision + + + +kvision / pl.treksoft.kvision.modal / Dialog / getResult
+
+

getResult

+ +suspend fun getResult(): R? +

A suspending function returning result value.

+ + diff --git a/api/pl.treksoft.kvision.modal/-dialog/hide.html b/api/pl.treksoft.kvision.modal/-dialog/hide.html new file mode 100644 index 00000000..1fe643eb --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-dialog/hide.html @@ -0,0 +1,18 @@ + + + +Dialog.hide - kvision + + + +kvision / pl.treksoft.kvision.modal / Dialog / hide
+
+

hide

+ +open fun hide(): Widget +

Overrides Modal.hide

+

Makes current widget invisible.

+

Return
+current widget

+ + diff --git a/api/pl.treksoft.kvision.modal/-dialog/index.html b/api/pl.treksoft.kvision.modal/-dialog/index.html new file mode 100644 index 00000000..0799f65e --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-dialog/index.html @@ -0,0 +1,212 @@ + + + +Dialog - kvision + + + +kvision / pl.treksoft.kvision.modal / Dialog
+
+

Dialog

+open class Dialog<R> : Modal +

Modal window with a result.

+

Constructors

+ + + + + + + +
+

<init>

+
+Dialog(caption: String? = null, closeButton: Boolean = true, size: ModalSize? = null, animation: Boolean = true, escape: Boolean = true, classes: Set<String> = setOf(), init: Dialog<R>.() -> Unit = null)
+

Inherited Properties

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

animation

+
+var animation: Boolean +

Determines if animations are used.

+
+

caption

+
+var caption: String? +

Window caption text.

+
+

closeButton

+
+var closeButton: Boolean +

Determines if Close button is visible.

+
+

size

+
+var size: ModalSize? +

Window size.

+
+

Functions

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

getResult

+
+suspend fun getResult(): R? +

A suspending function returning result value.

+
+

hide

+
+open fun hide(): Widget +

Makes current widget invisible.

+
+

setResult

+
+open fun setResult(result: R?): Unit +

A function to be called with a result value.

+
+

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.

+
+

addButton

+
+open fun addButton(button: Button): Modal +

Adds given button to the bottom section of dialog window.

+
+

afterInsert

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

Method called after inserting Snabbdom vnode into the DOM.

+
+

getChildren

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

Returns a list of children of the current container.

+
+

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.

+
+

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.

+
+

removeAllButtons

+
+open fun removeAllButtons(): Modal +

Removes all buttons from the bottom section of dialog window.

+
+

removeButton

+
+open fun removeButton(button: Button): Modal +

Removes given button from the bottom section of dialog window.

+
+

toggle

+
+open fun toggle(): Unit +

Toggle modal window visibility.

+
+ + diff --git a/api/pl.treksoft.kvision.modal/-dialog/set-result.html b/api/pl.treksoft.kvision.modal/-dialog/set-result.html new file mode 100644 index 00000000..d7d7f9b4 --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-dialog/set-result.html @@ -0,0 +1,15 @@ + + + +Dialog.setResult - kvision + + + +kvision / pl.treksoft.kvision.modal / Dialog / setResult
+
+

setResult

+ +open fun setResult(result: R?): Unit +

A function to be called with a result value.

+ + diff --git a/api/pl.treksoft.kvision.modal/-modal/index.html b/api/pl.treksoft.kvision.modal/-modal/index.html index 4645b38f..ece4c8fb 100644 --- a/api/pl.treksoft.kvision.modal/-modal/index.html +++ b/api/pl.treksoft.kvision.modal/-modal/index.html @@ -238,6 +238,15 @@

Confirm window based on Bootstrap modal.

+ + +

Dialog

+ + +open class Dialog<R> : Modal +

Modal window with a result.

+ + diff --git a/api/pl.treksoft.kvision.modal/index.html b/api/pl.treksoft.kvision.modal/index.html index e2db9d36..1c66e42d 100644 --- a/api/pl.treksoft.kvision.modal/index.html +++ b/api/pl.treksoft.kvision.modal/index.html @@ -41,6 +41,15 @@ +

Dialog

+ + +open class Dialog<R> : Modal +

Modal window with a result.

+ + + +

Modal

diff --git a/api/pl.treksoft.kvision.panel/-simple-panel/index.html b/api/pl.treksoft.kvision.panel/-simple-panel/index.html index 6c3b3383..2aeb89f8 100644 --- a/api/pl.treksoft.kvision.panel/-simple-panel/index.html +++ b/api/pl.treksoft.kvision.panel/-simple-panel/index.html @@ -459,7 +459,7 @@

DateTime

-open class DateTime : SimplePanel, DateFormControl +open class DateTime : SimplePanel, KDateFormControl

Form field date/time chooser component.

@@ -495,7 +495,7 @@

FormPanel

-open class FormPanel<K> : SimplePanel +open class FormPanel<K : Any> : SimplePanel

Bootstrap form component.

@@ -684,7 +684,7 @@

Upload

-open class Upload : SimplePanel, FilesFormControl +open class Upload : SimplePanel, KFilesFormControl

The form field file upload component.

diff --git a/api/pl.treksoft.kvision.remote/-call-agent/-init-.html b/api/pl.treksoft.kvision.remote/-call-agent/-init-.html new file mode 100644 index 00000000..2a46f6df --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-call-agent/-init-.html @@ -0,0 +1,15 @@ + + + +CallAgent.<init> - kvision + + + +kvision / pl.treksoft.kvision.remote / CallAgent / <init>
+
+

<init>

+ +CallAgent() +

An agent responsible for remote calls.

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

CallAgent

+open class CallAgent +

An agent responsible for remote calls.

+

Constructors

+ + + + + + + +
+

<init>

+
+CallAgent() +

An agent responsible for remote calls.

+
+

Functions

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

jsonRpcCall

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

Makes an JSON-RPC call to the remote server.

+
+

remoteCall

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

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 new file mode 100644 index 00000000..2a0e976c --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-call-agent/json-rpc-call.html @@ -0,0 +1,24 @@ + + + +CallAgent.jsonRpcCall - kvision + + + +kvision / pl.treksoft.kvision.remote / CallAgent / jsonRpcCall
+
+

jsonRpcCall

+ +fun jsonRpcCall(url: String, data: List<String?> = listOf(), method: RpcHttpMethod = RpcHttpMethod.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

+

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 new file mode 100644 index 00000000..1da57940 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-call-agent/remote-call.html @@ -0,0 +1,24 @@ + + + +CallAgent.remoteCall - kvision + + + +kvision / pl.treksoft.kvision.remote / CallAgent / remoteCall
+
+

remoteCall

+ +fun remoteCall(url: String, data: dynamic = null, 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

+

+method - a HTTP method

+

+data - data to be sent

+

Return
+a promise of the result

+ + diff --git a/api/pl.treksoft.kvision.remote/-credentials/-init-.html b/api/pl.treksoft.kvision.remote/-credentials/-init-.html new file mode 100644 index 00000000..c80a8be6 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-credentials/-init-.html @@ -0,0 +1,15 @@ + + + +Credentials.<init> - kvision + + + +kvision / pl.treksoft.kvision.remote / Credentials / <init>
+
+

<init>

+ +Credentials(username: String? = null, password: String? = null) +

Username and password credentials.

+ + diff --git a/api/pl.treksoft.kvision.remote/-credentials/index.html b/api/pl.treksoft.kvision.remote/-credentials/index.html new file mode 100644 index 00000000..b61a5ce3 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-credentials/index.html @@ -0,0 +1,47 @@ + + + +Credentials - kvision + + + +kvision / pl.treksoft.kvision.remote / Credentials
+
+

Credentials

+data class Credentials +

Username and password credentials.

+

Constructors

+ + + + + + + +
+

<init>

+
+Credentials(username: String? = null, password: String? = null) +

Username and password credentials.

+
+

Properties

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

password

+
+val password: String?
+

username

+
+val username: String?
+ + diff --git a/api/pl.treksoft.kvision.remote/-credentials/password.html b/api/pl.treksoft.kvision.remote/-credentials/password.html new file mode 100644 index 00000000..64b737c4 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-credentials/password.html @@ -0,0 +1,14 @@ + + + +Credentials.password - kvision + + + +kvision / pl.treksoft.kvision.remote / Credentials / password
+
+

password

+ +val password: String? + + diff --git a/api/pl.treksoft.kvision.remote/-credentials/username.html b/api/pl.treksoft.kvision.remote/-credentials/username.html new file mode 100644 index 00000000..e86f56dc --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-credentials/username.html @@ -0,0 +1,14 @@ + + + +Credentials.username - kvision + + + +kvision / pl.treksoft.kvision.remote / Credentials / username
+
+

username

+ +val username: String? + + diff --git a/api/pl.treksoft.kvision.remote/-h-t-t-p_-u-n-a-u-t-h-o-r-i-z-e-d.html b/api/pl.treksoft.kvision.remote/-h-t-t-p_-u-n-a-u-t-h-o-r-i-z-e-d.html new file mode 100644 index 00000000..8e481bac --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-h-t-t-p_-u-n-a-u-t-h-o-r-i-z-e-d.html @@ -0,0 +1,15 @@ + + + +HTTP_UNAUTHORIZED - kvision + + + +kvision / pl.treksoft.kvision.remote / HTTP_UNAUTHORIZED
+
+

HTTP_UNAUTHORIZED

+ +const val HTTP_UNAUTHORIZED: Int +

HTTP status unauthorized (401).

+ + diff --git a/api/pl.treksoft.kvision.remote/-jooby-server/-init-.html b/api/pl.treksoft.kvision.remote/-jooby-server/-init-.html new file mode 100644 index 00000000..8882ce87 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-jooby-server/-init-.html @@ -0,0 +1,16 @@ + + + +JoobyServer.<init> - kvision + + + +kvision / pl.treksoft.kvision.remote / JoobyServer / <init>
+
+

<init>

+ +JoobyServer() +

A Jooby based server. +Not used on the js platform.

+ + diff --git a/api/pl.treksoft.kvision.remote/-jooby-server/index.html b/api/pl.treksoft.kvision.remote/-jooby-server/index.html new file mode 100644 index 00000000..f02ed51b --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-jooby-server/index.html @@ -0,0 +1,30 @@ + + + +JoobyServer - kvision + + + +kvision / pl.treksoft.kvision.remote / JoobyServer
+
+

JoobyServer

+open actual class JoobyServer +

A Jooby based server. +Not used on the js platform.

+

Constructors

+ + + + + + + +
+

<init>

+
+JoobyServer() +

A Jooby based server. +Not used on the js platform.

+
+ + diff --git a/api/pl.treksoft.kvision.remote/-login-service/-init-.html b/api/pl.treksoft.kvision.remote/-login-service/-init-.html new file mode 100644 index 00000000..fc85eeab --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-login-service/-init-.html @@ -0,0 +1,15 @@ + + + +LoginService.<init> - kvision + + + +kvision / pl.treksoft.kvision.remote / LoginService / <init>
+
+

<init>

+ +LoginService() +

Pac4j 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 new file mode 100644 index 00000000..baf94f91 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-login-service/index.html @@ -0,0 +1,54 @@ + + + +LoginService - kvision + + + +kvision / pl.treksoft.kvision.remote / LoginService
+
+

LoginService

+class LoginService +

Pac4j form login dispatcher.

+

Constructors

+ + + + + + + +
+

<init>

+
+LoginService() +

Pac4j form login dispatcher.

+
+

Properties

+ + + + + + + +
+

loginAgent

+
+val loginAgent: CallAgent
+

Functions

+ + + + + + + +
+

login

+
+fun login(credentials: Credentials?): Deferred<Boolean> +

Login with Pac4j FormClient.

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

loginAgent

+ +val loginAgent: CallAgent + + diff --git a/api/pl.treksoft.kvision.remote/-login-service/login.html b/api/pl.treksoft.kvision.remote/-login-service/login.html new file mode 100644 index 00000000..fbb6574b --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-login-service/login.html @@ -0,0 +1,18 @@ + + + +LoginService.login - kvision + + + +kvision / pl.treksoft.kvision.remote / LoginService / login
+
+

login

+ +fun login(credentials: Credentials?): Deferred<Boolean> +

Login with Pac4j FormClient.

+

Parameters

+

+credentials - username and password credentials

+ + diff --git a/api/pl.treksoft.kvision.remote/-profile/-init-.html b/api/pl.treksoft.kvision.remote/-profile/-init-.html new file mode 100644 index 00000000..32fe9299 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-profile/-init-.html @@ -0,0 +1,15 @@ + + + +Profile.<init> - kvision + + + +kvision / pl.treksoft.kvision.remote / Profile / <init>
+
+

<init>

+ +Profile(id: String? = null, attributes: MutableMap<String, String> = mutableMapOf(), authenticationAttributes: MutableMap<String, String> = mutableMapOf(), roles: MutableSet<String> = mutableSetOf(), permissions: MutableSet<String> = mutableSetOf(), linkedId: String? = null, remembered: Boolean = false, clientName: String? = null) +

A user profile.

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

attributes

+ +val attributes: MutableMap<String, String> + + diff --git a/api/pl.treksoft.kvision.remote/-profile/authentication-attributes.html b/api/pl.treksoft.kvision.remote/-profile/authentication-attributes.html new file mode 100644 index 00000000..9818429f --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-profile/authentication-attributes.html @@ -0,0 +1,14 @@ + + + +Profile.authenticationAttributes - kvision + + + +kvision / pl.treksoft.kvision.remote / Profile / authenticationAttributes
+
+

authenticationAttributes

+ +val authenticationAttributes: MutableMap<String, String> + + diff --git a/api/pl.treksoft.kvision.remote/-profile/client-name.html b/api/pl.treksoft.kvision.remote/-profile/client-name.html new file mode 100644 index 00000000..8fcaeabb --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-profile/client-name.html @@ -0,0 +1,14 @@ + + + +Profile.clientName - kvision + + + +kvision / pl.treksoft.kvision.remote / Profile / clientName
+
+

clientName

+ +val clientName: String? + + diff --git a/api/pl.treksoft.kvision.remote/-profile/display-name.html b/api/pl.treksoft.kvision.remote/-profile/display-name.html new file mode 100644 index 00000000..7fc7028c --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-profile/display-name.html @@ -0,0 +1,14 @@ + + + +Profile.displayName - kvision + + + +kvision / pl.treksoft.kvision.remote / Profile / displayName
+
+

displayName

+ +var displayName: String? + + diff --git a/api/pl.treksoft.kvision.remote/-profile/email.html b/api/pl.treksoft.kvision.remote/-profile/email.html new file mode 100644 index 00000000..440142dc --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-profile/email.html @@ -0,0 +1,14 @@ + + + +Profile.email - kvision + + + +kvision / pl.treksoft.kvision.remote / Profile / email
+
+

email

+ +var email: String? + + diff --git a/api/pl.treksoft.kvision.remote/-profile/family-name.html b/api/pl.treksoft.kvision.remote/-profile/family-name.html new file mode 100644 index 00000000..36216c4f --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-profile/family-name.html @@ -0,0 +1,14 @@ + + + +Profile.familyName - kvision + + + +kvision / pl.treksoft.kvision.remote / Profile / familyName
+
+

familyName

+ +var familyName: String? + + diff --git a/api/pl.treksoft.kvision.remote/-profile/first-name.html b/api/pl.treksoft.kvision.remote/-profile/first-name.html new file mode 100644 index 00000000..1a9c512f --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-profile/first-name.html @@ -0,0 +1,14 @@ + + + +Profile.firstName - kvision + + + +kvision / pl.treksoft.kvision.remote / Profile / firstName
+
+

firstName

+ +var firstName: String? + + diff --git a/api/pl.treksoft.kvision.remote/-profile/id.html b/api/pl.treksoft.kvision.remote/-profile/id.html new file mode 100644 index 00000000..eb3cf24e --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-profile/id.html @@ -0,0 +1,14 @@ + + + +Profile.id - kvision + + + +kvision / pl.treksoft.kvision.remote / Profile / id
+
+

id

+ +val id: String? + + diff --git a/api/pl.treksoft.kvision.remote/-profile/index.html b/api/pl.treksoft.kvision.remote/-profile/index.html new file mode 100644 index 00000000..094e9a9c --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-profile/index.html @@ -0,0 +1,138 @@ + + + +Profile - kvision + + + +kvision / pl.treksoft.kvision.remote / Profile
+
+

Profile

+data actual class Profile +

A user profile.

+

Constructors

+ + + + + + + +
+

<init>

+
+Profile(id: String? = null, attributes: MutableMap<String, String> = mutableMapOf(), authenticationAttributes: MutableMap<String, String> = mutableMapOf(), roles: MutableSet<String> = mutableSetOf(), permissions: MutableSet<String> = mutableSetOf(), linkedId: String? = null, remembered: Boolean = false, clientName: String? = null) +

A user profile.

+
+

Properties

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

attributes

+
+val attributes: MutableMap<String, String>
+

authenticationAttributes

+
+val authenticationAttributes: MutableMap<String, String>
+

clientName

+
+val clientName: String?
+

displayName

+
+var displayName: String?
+

email

+
+var email: String?
+

familyName

+
+var familyName: String?
+

firstName

+
+var firstName: String?
+

id

+
+val id: String?
+

linkedId

+
+val linkedId: String?
+

permissions

+
+val permissions: MutableSet<String>
+

pictureUrl

+
+var pictureUrl: String?
+

profileUrl

+
+var profileUrl: String?
+

remembered

+
+val remembered: Boolean
+

roles

+
+val roles: MutableSet<String>
+

username

+
+var username: String?
+ + diff --git a/api/pl.treksoft.kvision.remote/-profile/linked-id.html b/api/pl.treksoft.kvision.remote/-profile/linked-id.html new file mode 100644 index 00000000..4a128bdf --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-profile/linked-id.html @@ -0,0 +1,14 @@ + + + +Profile.linkedId - kvision + + + +kvision / pl.treksoft.kvision.remote / Profile / linkedId
+
+

linkedId

+ +val linkedId: String? + + diff --git a/api/pl.treksoft.kvision.remote/-profile/permissions.html b/api/pl.treksoft.kvision.remote/-profile/permissions.html new file mode 100644 index 00000000..29e8e0ae --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-profile/permissions.html @@ -0,0 +1,14 @@ + + + +Profile.permissions - kvision + + + +kvision / pl.treksoft.kvision.remote / Profile / permissions
+
+

permissions

+ +val permissions: MutableSet<String> + + diff --git a/api/pl.treksoft.kvision.remote/-profile/picture-url.html b/api/pl.treksoft.kvision.remote/-profile/picture-url.html new file mode 100644 index 00000000..61d0a888 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-profile/picture-url.html @@ -0,0 +1,14 @@ + + + +Profile.pictureUrl - kvision + + + +kvision / pl.treksoft.kvision.remote / Profile / pictureUrl
+
+

pictureUrl

+ +var pictureUrl: String? + + diff --git a/api/pl.treksoft.kvision.remote/-profile/profile-url.html b/api/pl.treksoft.kvision.remote/-profile/profile-url.html new file mode 100644 index 00000000..133840d4 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-profile/profile-url.html @@ -0,0 +1,14 @@ + + + +Profile.profileUrl - kvision + + + +kvision / pl.treksoft.kvision.remote / Profile / profileUrl
+
+

profileUrl

+ +var profileUrl: String? + + diff --git a/api/pl.treksoft.kvision.remote/-profile/remembered.html b/api/pl.treksoft.kvision.remote/-profile/remembered.html new file mode 100644 index 00000000..d81f1fd8 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-profile/remembered.html @@ -0,0 +1,14 @@ + + + +Profile.remembered - kvision + + + +kvision / pl.treksoft.kvision.remote / Profile / remembered
+
+

remembered

+ +val remembered: Boolean + + diff --git a/api/pl.treksoft.kvision.remote/-profile/roles.html b/api/pl.treksoft.kvision.remote/-profile/roles.html new file mode 100644 index 00000000..8c7ca120 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-profile/roles.html @@ -0,0 +1,14 @@ + + + +Profile.roles - kvision + + + +kvision / pl.treksoft.kvision.remote / Profile / roles
+
+

roles

+ +val roles: MutableSet<String> + + diff --git a/api/pl.treksoft.kvision.remote/-profile/username.html b/api/pl.treksoft.kvision.remote/-profile/username.html new file mode 100644 index 00000000..a0ab4a54 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-profile/username.html @@ -0,0 +1,14 @@ + + + +Profile.username - kvision + + + +kvision / pl.treksoft.kvision.remote / Profile / username
+
+

username

+ +var username: String? + + diff --git a/api/pl.treksoft.kvision.remote/-remote-agent/-init-.html b/api/pl.treksoft.kvision.remote/-remote-agent/-init-.html new file mode 100644 index 00000000..8fdf9464 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-remote-agent/-init-.html @@ -0,0 +1,15 @@ + + + +RemoteAgent.<init> - kvision + + + +kvision / pl.treksoft.kvision.remote / RemoteAgent / <init>
+
+

<init>

+ +RemoteAgent(serviceManager: ServiceManager<T>) +

Client side agent for JSON-RPC remote calls.

+ + diff --git a/api/pl.treksoft.kvision.remote/-remote-agent/call-agent.html b/api/pl.treksoft.kvision.remote/-remote-agent/call-agent.html new file mode 100644 index 00000000..461d2166 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-remote-agent/call-agent.html @@ -0,0 +1,14 @@ + + + +RemoteAgent.callAgent - kvision + + + +kvision / pl.treksoft.kvision.remote / RemoteAgent / callAgent
+
+

callAgent

+ +val callAgent: CallAgent + + diff --git a/api/pl.treksoft.kvision.remote/-remote-agent/call.html b/api/pl.treksoft.kvision.remote/-remote-agent/call.html new file mode 100644 index 00000000..cbb50e19 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-remote-agent/call.html @@ -0,0 +1,37 @@ + + + +RemoteAgent.call - kvision + + + +kvision / pl.treksoft.kvision.remote / RemoteAgent / call
+
+

call

+ +inline fun <reified RET : Any, T> call(noinline function: T.(Request?) -> Deferred<RET>): Deferred<RET>
+ +inline fun <reified RET : Any, T> call(noinline function: T.(Request?) -> Deferred<List<RET>>): Deferred<List<RET>>
+ +inline fun <reified PAR, reified RET : Any, T> call(noinline function: T.(PAR, Request?) -> Deferred<RET>, p: PAR, serializer: KSerializer<PAR>? = null): Deferred<RET>
+ +inline fun <reified PAR, reified RET : Any, T> call(noinline function: T.(PAR, Request?) -> Deferred<List<RET>>, p: PAR, serializer: KSerializer<PAR>? = null): Deferred<List<RET>>
+ +inline fun <reified PAR1, reified PAR2, reified RET : Any, T> call(noinline function: T.(PAR1, PAR2, Request?) -> Deferred<RET>, p1: PAR1, p2: PAR2, serializer1: KSerializer<PAR1>? = null, serializer2: KSerializer<PAR2>? = null): Deferred<RET>
+ +inline fun <reified PAR1, reified PAR2, reified RET : Any, T> call(noinline function: T.(PAR1, PAR2, Request?) -> Deferred<List<RET>>, p1: PAR1, p2: PAR2, serializer1: KSerializer<PAR1>? = null, serializer2: KSerializer<PAR2>? = null): Deferred<List<RET>>
+ +inline fun <reified PAR1, reified PAR2, reified PAR3, reified RET : Any, T> call(noinline function: T.(PAR1, PAR2, PAR3, Request?) -> Deferred<RET>, p1: PAR1, p2: PAR2, p3: PAR3, serializer1: KSerializer<PAR1>? = null, serializer2: KSerializer<PAR2>? = null, serializer3: KSerializer<PAR3>? = null): Deferred<RET>
+ +inline fun <reified PAR1, reified PAR2, reified PAR3, reified RET : Any, T> call(noinline function: T.(PAR1, PAR2, PAR3, Request?) -> Deferred<List<RET>>, p1: PAR1, p2: PAR2, p3: PAR3, serializer1: KSerializer<PAR1>? = null, serializer2: KSerializer<PAR2>? = null, serializer3: KSerializer<PAR3>? = null): Deferred<List<RET>>
+ +inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET : Any, T> call(noinline function: T.(PAR1, PAR2, PAR3, PAR4, Request?) -> Deferred<RET>, p1: PAR1, p2: PAR2, p3: PAR3, p4: PAR4, serializer1: KSerializer<PAR1>? = null, serializer2: KSerializer<PAR2>? = null, serializer3: KSerializer<PAR3>? = null, serializer4: KSerializer<PAR4>? = null): Deferred<RET>
+ +inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified RET : Any, T> call(noinline function: T.(PAR1, PAR2, PAR3, PAR4, Request?) -> Deferred<List<RET>>, p1: PAR1, p2: PAR2, p3: PAR3, p4: PAR4, serializer1: KSerializer<PAR1>? = null, serializer2: KSerializer<PAR2>? = null, serializer3: KSerializer<PAR3>? = null, serializer4: KSerializer<PAR4>? = null): Deferred<List<RET>>
+ +inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET : Any, T> call(noinline function: T.(PAR1, PAR2, PAR3, PAR4, PAR5, Request?) -> Deferred<RET>, p1: PAR1, p2: PAR2, p3: PAR3, p4: PAR4, p5: PAR5, serializer1: KSerializer<PAR1>? = null, serializer2: KSerializer<PAR2>? = null, serializer3: KSerializer<PAR3>? = null, serializer4: KSerializer<PAR4>? = null, serializer5: KSerializer<PAR5>? = null): Deferred<RET>
+ +inline fun <reified PAR1, reified PAR2, reified PAR3, reified PAR4, reified PAR5, reified RET : Any, T> call(noinline function: T.(PAR1, PAR2, PAR3, PAR4, PAR5, Request?) -> Deferred<List<RET>>, p1: PAR1, p2: PAR2, p3: PAR3, p4: PAR4, p5: PAR5, serializer1: KSerializer<PAR1>? = null, serializer2: KSerializer<PAR2>? = null, serializer3: KSerializer<PAR3>? = null, serializer4: KSerializer<PAR4>? = null, serializer5: KSerializer<PAR5>? = null): Deferred<List<RET>> +

Executes defined call to a remote web service.

+ + diff --git a/api/pl.treksoft.kvision.remote/-remote-agent/index.html b/api/pl.treksoft.kvision.remote/-remote-agent/index.html new file mode 100644 index 00000000..c788a33d --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-remote-agent/index.html @@ -0,0 +1,72 @@ + + + +RemoteAgent - kvision + + + +kvision / pl.treksoft.kvision.remote / RemoteAgent
+
+

RemoteAgent

+open class RemoteAgent<out T> +

Client side agent for JSON-RPC remote calls.

+

Constructors

+ + + + + + + +
+

<init>

+
+RemoteAgent(serviceManager: ServiceManager<T>) +

Client side agent for JSON-RPC remote calls.

+
+

Properties

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

callAgent

+
+val callAgent: CallAgent
+

serviceManager

+
+val serviceManager: ServiceManager<T>
+

Functions

+ + + + + + + +
+

call

+
+fun <RET : Any, T> call(function: T.(Request?) -> Deferred<RET>): Deferred<RET>
+fun <RET : Any, T> call(function: T.(Request?) -> Deferred<List<RET>>): Deferred<List<RET>>
+fun <PAR, RET : Any, T> call(function: T.(PAR, Request?) -> Deferred<RET>, p: PAR, serializer: KSerializer<PAR>? = null): Deferred<RET>
+fun <PAR, RET : Any, T> call(function: T.(PAR, Request?) -> Deferred<List<RET>>, p: PAR, serializer: KSerializer<PAR>? = null): Deferred<List<RET>>
+fun <PAR1, PAR2, RET : Any, T> call(function: T.(PAR1, PAR2, Request?) -> Deferred<RET>, p1: PAR1, p2: PAR2, serializer1: KSerializer<PAR1>? = null, serializer2: KSerializer<PAR2>? = null): Deferred<RET>
+fun <PAR1, PAR2, RET : Any, T> call(function: T.(PAR1, PAR2, Request?) -> Deferred<List<RET>>, p1: PAR1, p2: PAR2, serializer1: KSerializer<PAR1>? = null, serializer2: KSerializer<PAR2>? = null): Deferred<List<RET>>
+fun <PAR1, PAR2, PAR3, RET : Any, T> call(function: T.(PAR1, PAR2, PAR3, Request?) -> Deferred<RET>, p1: PAR1, p2: PAR2, p3: PAR3, serializer1: KSerializer<PAR1>? = null, serializer2: KSerializer<PAR2>? = null, serializer3: KSerializer<PAR3>? = null): Deferred<RET>
+fun <PAR1, PAR2, PAR3, RET : Any, T> call(function: T.(PAR1, PAR2, PAR3, Request?) -> Deferred<List<RET>>, p1: PAR1, p2: PAR2, p3: PAR3, serializer1: KSerializer<PAR1>? = null, serializer2: KSerializer<PAR2>? = null, serializer3: KSerializer<PAR3>? = null): Deferred<List<RET>>
+fun <PAR1, PAR2, PAR3, PAR4, RET : Any, T> call(function: T.(PAR1, PAR2, PAR3, PAR4, Request?) -> Deferred<RET>, p1: PAR1, p2: PAR2, p3: PAR3, p4: PAR4, serializer1: KSerializer<PAR1>? = null, serializer2: KSerializer<PAR2>? = null, serializer3: KSerializer<PAR3>? = null, serializer4: KSerializer<PAR4>? = null): Deferred<RET>
+fun <PAR1, PAR2, PAR3, PAR4, RET : Any, T> call(function: T.(PAR1, PAR2, PAR3, PAR4, Request?) -> Deferred<List<RET>>, p1: PAR1, p2: PAR2, p3: PAR3, p4: PAR4, serializer1: KSerializer<PAR1>? = null, serializer2: KSerializer<PAR2>? = null, serializer3: KSerializer<PAR3>? = null, serializer4: KSerializer<PAR4>? = null): Deferred<List<RET>>
+fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET : Any, T> call(function: T.(PAR1, PAR2, PAR3, PAR4, PAR5, Request?) -> Deferred<RET>, p1: PAR1, p2: PAR2, p3: PAR3, p4: PAR4, p5: PAR5, serializer1: KSerializer<PAR1>? = null, serializer2: KSerializer<PAR2>? = null, serializer3: KSerializer<PAR3>? = null, serializer4: KSerializer<PAR4>? = null, serializer5: KSerializer<PAR5>? = null): Deferred<RET>
+fun <PAR1, PAR2, PAR3, PAR4, PAR5, RET : Any, T> call(function: T.(PAR1, PAR2, PAR3, PAR4, PAR5, Request?) -> Deferred<List<RET>>, p1: PAR1, p2: PAR2, p3: PAR3, p4: PAR4, p5: PAR5, serializer1: KSerializer<PAR1>? = null, serializer2: KSerializer<PAR2>? = null, serializer3: KSerializer<PAR3>? = null, serializer4: KSerializer<PAR4>? = null, serializer5: KSerializer<PAR5>? = null): Deferred<List<RET>> +

Executes defined call to a remote web service.

+
+ + diff --git a/api/pl.treksoft.kvision.remote/-remote-agent/service-manager.html b/api/pl.treksoft.kvision.remote/-remote-agent/service-manager.html new file mode 100644 index 00000000..00b9f66b --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-remote-agent/service-manager.html @@ -0,0 +1,14 @@ + + + +RemoteAgent.serviceManager - kvision + + + +kvision / pl.treksoft.kvision.remote / RemoteAgent / serviceManager
+
+

serviceManager

+ +val serviceManager: ServiceManager<T> + + diff --git a/api/pl.treksoft.kvision.remote/-request.html b/api/pl.treksoft.kvision.remote/-request.html new file mode 100644 index 00000000..a80d9917 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-request.html @@ -0,0 +1,15 @@ + + + +Request - kvision + + + +kvision / pl.treksoft.kvision.remote / Request
+
+

Request

+actual interface Request +

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

+ + diff --git a/api/pl.treksoft.kvision.remote/-security-exception/-init-.html b/api/pl.treksoft.kvision.remote/-security-exception/-init-.html new file mode 100644 index 00000000..d959cf47 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-security-exception/-init-.html @@ -0,0 +1,15 @@ + + + +SecurityException.<init> - kvision + + + +kvision / pl.treksoft.kvision.remote / SecurityException / <init>
+
+

<init>

+ +SecurityException(message: String) +

A security exception.

+ + diff --git a/api/pl.treksoft.kvision.remote/-security-exception/index.html b/api/pl.treksoft.kvision.remote/-security-exception/index.html new file mode 100644 index 00000000..49182894 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-security-exception/index.html @@ -0,0 +1,28 @@ + + + +SecurityException - kvision + + + +kvision / pl.treksoft.kvision.remote / SecurityException
+
+

SecurityException

+class SecurityException : Exception +

A security exception.

+

Constructors

+ + + + + + + +
+

<init>

+
+SecurityException(message: String) +

A security exception.

+
+ + diff --git a/api/pl.treksoft.kvision.remote/-security-mgr/-init-.html b/api/pl.treksoft.kvision.remote/-security-mgr/-init-.html new file mode 100644 index 00000000..4e31e55d --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-security-mgr/-init-.html @@ -0,0 +1,15 @@ + + + +SecurityMgr.<init> - kvision + + + +kvision / pl.treksoft.kvision.remote / SecurityMgr / <init>
+
+

<init>

+ +SecurityMgr() +

Pac4j form login dispatcher.

+ + diff --git a/api/pl.treksoft.kvision.remote/-security-mgr/after-error.html b/api/pl.treksoft.kvision.remote/-security-mgr/after-error.html new file mode 100644 index 00000000..68c357da --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-security-mgr/after-error.html @@ -0,0 +1,15 @@ + + + +SecurityMgr.afterError - kvision + + + +kvision / pl.treksoft.kvision.remote / SecurityMgr / afterError
+
+

afterError

+ +open suspend fun afterError(): Unit +

Method called after error.

+ + diff --git a/api/pl.treksoft.kvision.remote/-security-mgr/after-login.html b/api/pl.treksoft.kvision.remote/-security-mgr/after-login.html new file mode 100644 index 00000000..f018290f --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-security-mgr/after-login.html @@ -0,0 +1,15 @@ + + + +SecurityMgr.afterLogin - kvision + + + +kvision / pl.treksoft.kvision.remote / SecurityMgr / afterLogin
+
+

afterLogin

+ +open suspend fun afterLogin(): Unit +

Method called after successful login.

+ + diff --git a/api/pl.treksoft.kvision.remote/-security-mgr/index.html b/api/pl.treksoft.kvision.remote/-security-mgr/index.html new file mode 100644 index 00000000..2c1b3d96 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-security-mgr/index.html @@ -0,0 +1,69 @@ + + + +SecurityMgr - kvision + + + +kvision / pl.treksoft.kvision.remote / SecurityMgr
+
+

SecurityMgr

+abstract class SecurityMgr +

Pac4j form login dispatcher.

+

Constructors

+ + + + + + + +
+

<init>

+
+SecurityMgr() +

Pac4j form login dispatcher.

+
+

Functions

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

afterError

+
+open suspend fun afterError(): Unit +

Method called after error.

+
+

afterLogin

+
+open suspend fun afterLogin(): Unit +

Method called after successful login.

+
+

login

+
+abstract suspend fun login(): Boolean +

Login user.

+
+

withAuth

+
+suspend fun <T> withAuth(block: suspend () -> T): T +

Executes given block of code after successful authentication.

+
+ + diff --git a/api/pl.treksoft.kvision.remote/-security-mgr/login.html b/api/pl.treksoft.kvision.remote/-security-mgr/login.html new file mode 100644 index 00000000..a859fdd1 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-security-mgr/login.html @@ -0,0 +1,20 @@ + + + +SecurityMgr.login - kvision + + + +kvision / pl.treksoft.kvision.remote / SecurityMgr / login
+
+

login

+ +abstract suspend fun login(): Boolean +

Login user.

+

Exceptions

+

+SecurityException - if login is not successful

+

Return
+true if login is successful

+ + diff --git a/api/pl.treksoft.kvision.remote/-security-mgr/with-auth.html b/api/pl.treksoft.kvision.remote/-security-mgr/with-auth.html new file mode 100644 index 00000000..cf76923e --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-security-mgr/with-auth.html @@ -0,0 +1,18 @@ + + + +SecurityMgr.withAuth - kvision + + + +kvision / pl.treksoft.kvision.remote / SecurityMgr / withAuth
+
+

withAuth

+ +suspend fun <T> withAuth(block: suspend () -> T): T +

Executes given block of code after successful authentication.

+

Parameters

+

+block - a block of code

+ + diff --git a/api/pl.treksoft.kvision.remote/-service-manager/-init-.html b/api/pl.treksoft.kvision.remote/-service-manager/-init-.html new file mode 100644 index 00000000..bf9fee57 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-service-manager/-init-.html @@ -0,0 +1,15 @@ + + + +ServiceManager.<init> - kvision + + + +kvision / pl.treksoft.kvision.remote / ServiceManager / <init>
+
+

<init>

+ +ServiceManager(service: T) +

Multiplatform service manager.

+ + diff --git a/api/pl.treksoft.kvision.remote/-service-manager/apply-routes.html b/api/pl.treksoft.kvision.remote/-service-manager/apply-routes.html new file mode 100644 index 00000000..36f7a1e4 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-service-manager/apply-routes.html @@ -0,0 +1,16 @@ + + + +ServiceManager.applyRoutes - kvision + + + +kvision / pl.treksoft.kvision.remote / ServiceManager / applyRoutes
+
+

applyRoutes

+ +actual fun applyRoutes(k: JoobyServer): Unit +

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

+ + diff --git a/api/pl.treksoft.kvision.remote/-service-manager/bind.html b/api/pl.treksoft.kvision.remote/-service-manager/bind.html new file mode 100644 index 00000000..a8353fa7 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-service-manager/bind.html @@ -0,0 +1,34 @@ + + + +ServiceManager.bind - kvision + + + +kvision / pl.treksoft.kvision.remote / ServiceManager / bind
+
+

bind

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

+

+prefix - an URL address prefix

+ + diff --git a/api/pl.treksoft.kvision.remote/-service-manager/calls.html b/api/pl.treksoft.kvision.remote/-service-manager/calls.html new file mode 100644 index 00000000..4eeea9b5 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-service-manager/calls.html @@ -0,0 +1,14 @@ + + + +ServiceManager.calls - kvision + + + +kvision / pl.treksoft.kvision.remote / ServiceManager / calls
+
+

calls

+ +protected val calls: MutableMap<String, Pair<String, RpcHttpMethod>> + + diff --git a/api/pl.treksoft.kvision.remote/-service-manager/counter.html b/api/pl.treksoft.kvision.remote/-service-manager/counter.html new file mode 100644 index 00000000..183b676d --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-service-manager/counter.html @@ -0,0 +1,14 @@ + + + +ServiceManager.counter - kvision + + + +kvision / pl.treksoft.kvision.remote / ServiceManager / counter
+
+

counter

+ +var counter: Int + + diff --git a/api/pl.treksoft.kvision.remote/-service-manager/get-calls.html b/api/pl.treksoft.kvision.remote/-service-manager/get-calls.html new file mode 100644 index 00000000..45bbe853 --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-service-manager/get-calls.html @@ -0,0 +1,15 @@ + + + +ServiceManager.getCalls - kvision + + + +kvision / pl.treksoft.kvision.remote / ServiceManager / getCalls
+
+

getCalls

+ +actual fun getCalls(): Map<String, Pair<String, RpcHttpMethod>> +

Returns the map of defined paths.

+ + diff --git a/api/pl.treksoft.kvision.remote/-service-manager/index.html b/api/pl.treksoft.kvision.remote/-service-manager/index.html new file mode 100644 index 00000000..c146b9df --- /dev/null +++ b/api/pl.treksoft.kvision.remote/-service-manager/index.html @@ -0,0 +1,85 @@ + + + +ServiceManager - kvision + + + +kvision / pl.treksoft.kvision.remote / ServiceManager
+
+

ServiceManager

+open actual class ServiceManager<out T> +

Multiplatform service manager.

+

Constructors

+ + + + + + + +
+

<init>

+
+ServiceManager(service: T) +

Multiplatform service manager.

+
+

Properties

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

calls

+
+val calls: MutableMap<String, Pair<String, RpcHttpMethod>>
+

counter

+
+var counter: Int
+

Functions

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

applyRoutes

+
+actual fun applyRoutes(k: JoobyServer): Unit +

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

+
+

bind

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

Binds a given route with a function of the receiver.

+
+

getCalls

+
+actual fun getCalls(): Map<String, Pair<String, RpcHttpMethod>> +

Returns the map of defined paths.

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

Package pl.treksoft.kvision.remote

+

A set of components for creating multiplatform automatic JSON-RPC connectivity with a backend server.

+

Types

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

CallAgent

+
+open class CallAgent +

An agent responsible for remote calls.

+
+

Credentials

+
+data class Credentials +

Username and password credentials.

+
+

JoobyServer

+
+open actual class JoobyServer +

A Jooby based server. +Not used on the js platform.

+
+

LoginService

+
+class LoginService +

Pac4j form login dispatcher.

+
+

Profile

+
+data actual class Profile +

A user profile.

+
+

RemoteAgent

+
+open class RemoteAgent<out T> +

Client side agent for JSON-RPC remote calls.

+
+

Request

+
+actual interface Request +

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

+
+

SecurityMgr

+
+abstract class SecurityMgr +

Pac4j form login dispatcher.

+
+

ServiceManager

+
+open actual class ServiceManager<out T> +

Multiplatform service manager.

+
+

Exceptions

+ + + + + + + +
+

SecurityException

+
+class SecurityException : Exception +

A security exception.

+
+

Properties

+ + + + + + + +
+

HTTP_UNAUTHORIZED

+
+const val HTTP_UNAUTHORIZED: Int +

HTTP status unauthorized (401).

+
+ + diff --git a/api/pl.treksoft.kvision.table/-cell/-init-.html b/api/pl.treksoft.kvision.table/-cell/-init-.html index e58127ad..5a12998e 100644 --- a/api/pl.treksoft.kvision.table/-cell/-init-.html +++ b/api/pl.treksoft.kvision.table/-cell/-init-.html @@ -14,7 +14,7 @@

content - text content of the cell

-rich - determines if content can contain HTML code

+rich - determines if content can contain HTML code

align - text align

diff --git a/api/pl.treksoft.kvision.table/-header-cell/-init-.html b/api/pl.treksoft.kvision.table/-header-cell/-init-.html index 54882542..b534f0ac 100644 --- a/api/pl.treksoft.kvision.table/-header-cell/-init-.html +++ b/api/pl.treksoft.kvision.table/-header-cell/-init-.html @@ -14,7 +14,7 @@

content - text content of the cell

-rich - determines if content can contain HTML code

+rich - determines if content can contain HTML code

align - text align

diff --git a/api/pl.treksoft.kvision.types/-k-d-a-t-e_-f-o-r-m-a-t.html b/api/pl.treksoft.kvision.types/-k-d-a-t-e_-f-o-r-m-a-t.html new file mode 100644 index 00000000..fa979083 --- /dev/null +++ b/api/pl.treksoft.kvision.types/-k-d-a-t-e_-f-o-r-m-a-t.html @@ -0,0 +1,14 @@ + + + +KDATE_FORMAT - kvision + + + +kvision / pl.treksoft.kvision.types / KDATE_FORMAT
+
+

KDATE_FORMAT

+ +actual val KDATE_FORMAT: String + + diff --git a/api/pl.treksoft.kvision.types/index.html b/api/pl.treksoft.kvision.types/index.html new file mode 100644 index 00000000..afc46cd6 --- /dev/null +++ b/api/pl.treksoft.kvision.types/index.html @@ -0,0 +1,37 @@ + + + +pl.treksoft.kvision.types - kvision + + + +kvision / pl.treksoft.kvision.types
+
+

Package pl.treksoft.kvision.types

+

Multiplatform type definitions.

+

Properties

+ + + + + + + +
+

KDATE_FORMAT

+
+actual val KDATE_FORMAT: String
+

Functions

+ + + + + + + +
+

toJS

+
+fun KDate.toJS(): Date
+ + diff --git a/api/pl.treksoft.kvision.types/to-j-s.html b/api/pl.treksoft.kvision.types/to-j-s.html new file mode 100644 index 00000000..03a6cd51 --- /dev/null +++ b/api/pl.treksoft.kvision.types/to-j-s.html @@ -0,0 +1,14 @@ + + + +toJS - kvision + + + +kvision / pl.treksoft.kvision.types / toJS
+
+

toJS

+ +fun KDate.toJS(): Date + + 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 new file mode 100644 index 00000000..33599c5b --- /dev/null +++ b/api/pl.treksoft.kvision.utils/com.lightningkite.kotlin.observable.list.-observable-list/index.html @@ -0,0 +1,25 @@ + + + +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

+ + + + + + + +
+

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 new file mode 100644 index 00000000..f71f7592 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/com.lightningkite.kotlin.observable.list.-observable-list/sync-with-list.html @@ -0,0 +1,15 @@ + + + +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 98602ea1..6de2f3a8 100644 --- a/api/pl.treksoft.kvision.utils/index.html +++ b/api/pl.treksoft.kvision.utils/index.html @@ -37,6 +37,13 @@ +

com.lightningkite.kotlin.observable.list.ObservableList

+ + + + + +

kotlin.Int

diff --git a/api/pl.treksoft.kvision.utils/kotlin.-string/index.html b/api/pl.treksoft.kvision.utils/kotlin.-string/index.html index cbb2e8e8..c5d20cee 100644 --- a/api/pl.treksoft.kvision.utils/kotlin.-string/index.html +++ b/api/pl.treksoft.kvision.utils/kotlin.-string/index.html @@ -15,7 +15,7 @@

toDateF

-fun String.toDateF(format: String = "YYYY-MM-DD HH:mm:ss"): Date +fun String.toDateF(format: String = "YYYY-MM-DD HH:mm:ss"): Date?

Extension function to convert String to Date with a given date format.

diff --git a/api/pl.treksoft.kvision.utils/kotlin.-string/to-date-f.html b/api/pl.treksoft.kvision.utils/kotlin.-string/to-date-f.html index c014aaab..2f5ca8d9 100644 --- a/api/pl.treksoft.kvision.utils/kotlin.-string/to-date-f.html +++ b/api/pl.treksoft.kvision.utils/kotlin.-string/to-date-f.html @@ -9,7 +9,7 @@

toDateF

-fun String.toDateF(format: String = "YYYY-MM-DD HH:mm:ss"): Date +fun String.toDateF(format: String = "YYYY-MM-DD HH:mm:ss"): Date?

Extension function to convert String to Date with a given date format.

Parameters

-- cgit