From 63503bd4517d87c34498002c820aefaef22c501e Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Wed, 22 Aug 2018 15:34:00 +0200 Subject: API documentation for 0.0.17 --- api/alltypes/index.html | 14 ++ api/index-outline.html | 152 +++++++++++++++++---- api/index.html | 7 + api/package-list | 1 + api/pl.treksoft.kvision.core/-widget/index.html | 16 +++ .../-widget/last-language.html | 14 ++ .../-widget/translate.html | 22 +++ .../-data-container/index.html | 14 ++ .../-header/index.html | 9 ++ .../-separator/index.html | 9 ++ .../-check-input/index.html | 14 ++ .../-select-option/index.html | 14 ++ .../-spinner-input/index.html | 14 ++ .../-abstract-text-input/index.html | 14 ++ .../-date-time-input/index.html | 14 ++ .../-upload-input/index.html | 14 ++ .../-field-label/index.html | 9 ++ .../-form-panel/add-internal.html | 4 +- api/pl.treksoft.kvision.form/-form-panel/add.html | 30 ++-- .../-form-panel/index.html | 12 +- api/pl.treksoft.kvision.form/-form/add.html | 30 ++-- api/pl.treksoft.kvision.form/-form/index.html | 10 +- .../-help-block/index.html | 9 ++ api/pl.treksoft.kvision.html/-button/index.html | 14 ++ api/pl.treksoft.kvision.html/-canvas/index.html | 14 ++ api/pl.treksoft.kvision.html/-div/index.html | 9 ++ api/pl.treksoft.kvision.html/-icon/index.html | 9 ++ api/pl.treksoft.kvision.html/-iframe/index.html | 14 ++ api/pl.treksoft.kvision.html/-image/index.html | 14 ++ api/pl.treksoft.kvision.html/-label/index.html | 9 ++ api/pl.treksoft.kvision.html/-tag/index.html | 13 +- api/pl.treksoft.kvision.html/-tag/templates.html | 22 +++ api/pl.treksoft.kvision.html/-template/index.html | 12 +- .../-template/template-data.html | 1 + .../-template/templates.html | 14 ++ api/pl.treksoft.kvision.html/index.html | 4 +- api/pl.treksoft.kvision.i18n/-i18n/gettext.html | 20 +++ api/pl.treksoft.kvision.i18n/-i18n/index.html | 89 ++++++++++++ api/pl.treksoft.kvision.i18n/-i18n/init.html | 21 +++ api/pl.treksoft.kvision.i18n/-i18n/language.html | 15 ++ api/pl.treksoft.kvision.i18n/-i18n/ngettext.html | 24 ++++ api/pl.treksoft.kvision.i18n/-i18n/ntr.html | 24 ++++ api/pl.treksoft.kvision.i18n/-i18n/tr.html | 20 +++ api/pl.treksoft.kvision.i18n/-i18n/trans.html | 22 +++ api/pl.treksoft.kvision.i18n/-jed/-init-.html | 14 ++ api/pl.treksoft.kvision.i18n/-jed/gettext.html | 14 ++ api/pl.treksoft.kvision.i18n/-jed/index.html | 51 +++++++ api/pl.treksoft.kvision.i18n/-jed/ngettext.html | 14 ++ api/pl.treksoft.kvision.i18n/-jed/sprintf.html | 14 ++ api/pl.treksoft.kvision.i18n/index.html | 33 +++++ .../-close-icon/index.html | 14 ++ api/pl.treksoft.kvision.modal/-confirm/-init-.html | 10 +- .../-confirm/cancel-title.html | 15 ++ api/pl.treksoft.kvision.modal/-confirm/index.html | 31 ++++- .../-confirm/no-title.html | 15 ++ api/pl.treksoft.kvision.modal/-confirm/show.html | 6 +- .../-confirm/yes-title.html | 15 ++ .../-nav-form/index.html | 9 ++ api/pl.treksoft.kvision.navbar/-nav/index.html | 9 ++ .../-simple-panel/index.html | 14 ++ api/pl.treksoft.kvision.table/-cell/index.html | 9 ++ .../-header-cell/index.html | 9 ++ api/pl.treksoft.kvision.table/-row/index.html | 9 ++ 63 files changed, 1066 insertions(+), 69 deletions(-) create mode 100644 api/pl.treksoft.kvision.core/-widget/last-language.html create mode 100644 api/pl.treksoft.kvision.core/-widget/translate.html create mode 100644 api/pl.treksoft.kvision.html/-tag/templates.html create mode 100644 api/pl.treksoft.kvision.html/-template/templates.html create mode 100644 api/pl.treksoft.kvision.i18n/-i18n/gettext.html create mode 100644 api/pl.treksoft.kvision.i18n/-i18n/index.html create mode 100644 api/pl.treksoft.kvision.i18n/-i18n/init.html create mode 100644 api/pl.treksoft.kvision.i18n/-i18n/language.html create mode 100644 api/pl.treksoft.kvision.i18n/-i18n/ngettext.html create mode 100644 api/pl.treksoft.kvision.i18n/-i18n/ntr.html create mode 100644 api/pl.treksoft.kvision.i18n/-i18n/tr.html create mode 100644 api/pl.treksoft.kvision.i18n/-i18n/trans.html create mode 100644 api/pl.treksoft.kvision.i18n/-jed/-init-.html create mode 100644 api/pl.treksoft.kvision.i18n/-jed/gettext.html create mode 100644 api/pl.treksoft.kvision.i18n/-jed/index.html create mode 100644 api/pl.treksoft.kvision.i18n/-jed/ngettext.html create mode 100644 api/pl.treksoft.kvision.i18n/-jed/sprintf.html create mode 100644 api/pl.treksoft.kvision.i18n/index.html create mode 100644 api/pl.treksoft.kvision.modal/-confirm/cancel-title.html create mode 100644 api/pl.treksoft.kvision.modal/-confirm/no-title.html create mode 100644 api/pl.treksoft.kvision.modal/-confirm/yes-title.html diff --git a/api/alltypes/index.html b/api/alltypes/index.html index e82af26b..ecb353d5 100644 --- a/api/alltypes/index.html +++ b/api/alltypes/index.html @@ -637,6 +637,13 @@ +pl.treksoft.kvision.i18n.I18n + +

A singleton object used for translations.

+ + + + pl.treksoft.kvision.html.Icon

Icon component with support for FontAwesome and Bootstrap glyphicons.

@@ -678,6 +685,12 @@ +pl.treksoft.kvision.i18n.Jed + + + + + pl.treksoft.kvision.remote.JoobyServer

A Jooby based server. @@ -1153,6 +1166,7 @@ Not used on the js platform.

pl.treksoft.kvision.html.Template +

Handlebars templates helper interface.

diff --git a/api/index-outline.html b/api/index-outline.html index b8aab801..bdf5943a 100644 --- a/api/index-outline.html +++ b/api/index-outline.html @@ -823,12 +823,15 @@ -Confirm(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, cancelVisible: Boolean = false, noCallback: () -> Unit = null, yesCallback: () -> Unit = null)
+Confirm(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, cancelVisible: Boolean = false, yesTitle: String = "Yes", noTitle: String = "No", cancelTitle: String = "Cancel", noCallback: () -> Unit = null, yesCallback: () -> Unit = null)
var align: Align?
+var cancelTitle: String
var cancelVisible: Boolean
+var noTitle: String
var rich: Boolean
-fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, cancelVisible: Boolean = false, noCallback: () -> Unit = null, yesCallback: () -> Unit = null): Unit
+fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, cancelVisible: Boolean = false, yesTitle: String = "Yes", noTitle: String = "No", cancelTitle: String = "Cancel", noCallback: () -> Unit = null, yesCallback: () -> Unit = null): Unit
var text: String?
+var yesTitle: String
@@ -1381,11 +1384,11 @@ Form(panel: FormPanel<K>? = null, serializer: KSerializer<K>)
-fun <C : StringFormControl> add(key: KProperty1<K, String?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
-fun <C : BoolFormControl> add(key: KProperty1<K, Boolean?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
-fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, 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>
-fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
+fun <C : StringFormControl> add(key: KProperty1<K, String?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
+fun <C : BoolFormControl> add(key: KProperty1<K, Boolean?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
+fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
+fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
+fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
fun clearData(): Unit
inline fun <reified K : Any> create(panel: FormPanel<K>? = null, noinline init: Form<K>.() -> Unit = null): Form<K>
operator fun get(key: KProperty1<K, *>): Any?
@@ -1479,12 +1482,12 @@ FormPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), serializer: KSerializer<K>)
var action: String?
-open fun <C : StringFormControl> add(key: KProperty1<K, String?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
-open fun <C : BoolFormControl> add(key: KProperty1<K, Boolean?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
-open fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, 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>
-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>
-protected fun <C : FormControl> addInternal(key: KProperty1<K, *>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
+open fun <C : StringFormControl> add(key: KProperty1<K, String?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
+open fun <C : BoolFormControl> add(key: KProperty1<K, Boolean?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
+open fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
+open fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, control: C, required: Boolean = false, requiredMessage: String? = null, 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, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
+protected fun <C : FormControl> addInternal(key: KProperty1<K, *>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
var autocomplete: Boolean?
open fun clearData(): Unit
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>
@@ -1776,6 +1779,26 @@ +object I18n
+ open class Icon : Tag
+external class Jed
+ open actual class JoobyServer
@@ -3607,6 +3648,7 @@ protected open fun getSnOn(): On?
open fun hide(): Widget
var id: String?
+protected var lastLanguage: String?
open var parent: Container?
open fun removeCssClass(css: String): Widget
open fun removeEventListeners(): Widget
@@ -3625,6 +3667,8 @@ open fun show(): Widget
var title: String?
open fun toggleVisible(): Widget
+protected fun translate(text: String): String
+protected fun translate(text: String?): String?
open var visible: Boolean
fun Container.widget(classes: Set<String> = setOf(), init: Widget.() -> Unit = null): Widget
@@ -4636,6 +4680,7 @@ protected open fun getSnOn(): On?
open fun hide(): Widget
var id: String?
+protected var lastLanguage: String?
open var parent: Container?
open fun removeCssClass(css: String): Widget
open fun removeEventListeners(): Widget
@@ -4654,6 +4699,8 @@ open fun show(): Widget
var title: String?
open fun toggleVisible(): Widget
+protected fun translate(text: String): String
+protected fun translate(text: String?): String?
open var visible: Boolean
fun Container.widget(classes: Set<String> = setOf(), init: Widget.() -> Unit = null): Widget
@@ -4895,11 +4942,11 @@ Form(panel: FormPanel<K>? = null, serializer: KSerializer<K>)
-fun <C : StringFormControl> add(key: KProperty1<K, String?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
-fun <C : BoolFormControl> add(key: KProperty1<K, Boolean?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
-fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, 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>
-fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
+fun <C : StringFormControl> add(key: KProperty1<K, String?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
+fun <C : BoolFormControl> add(key: KProperty1<K, Boolean?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
+fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
+fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
+fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>
fun clearData(): Unit
inline fun <reified K : Any> create(panel: FormPanel<K>? = null, noinline init: Form<K>.() -> Unit = null): Form<K>
operator fun get(key: KProperty1<K, *>): Any?
@@ -4993,12 +5040,12 @@ FormPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, classes: Set<String> = setOf(), serializer: KSerializer<K>)
var action: String?
-open fun <C : StringFormControl> add(key: KProperty1<K, String?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
-open fun <C : BoolFormControl> add(key: KProperty1<K, Boolean?>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
-open fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, 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>
-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>
-protected fun <C : FormControl> addInternal(key: KProperty1<K, *>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
+open fun <C : StringFormControl> add(key: KProperty1<K, String?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
+open fun <C : BoolFormControl> add(key: KProperty1<K, Boolean?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
+open fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
+open fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, control: C, required: Boolean = false, requiredMessage: String? = null, 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, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
+protected fun <C : FormControl> addInternal(key: KProperty1<K, *>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>
var autocomplete: Boolean?
open fun clearData(): Unit
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>
@@ -6540,6 +6587,7 @@ open var rich: Boolean
fun Container.tag(type: TAG, content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Tag.() -> Unit = null): Tag
open var template: (Any?) -> String
+open var templates: Map<String, (Any?) -> String>
var type: TAG
@@ -6557,6 +6605,55 @@ abstract var rich: Boolean
abstract var template: (Any?) -> String
open var templateData: Any?
+abstract var templates: Map<String, (Any?) -> String>
+ + + + + + +package pl.treksoft.kvision.i18n
+ diff --git a/api/index.html b/api/index.html index 5c12c236..5f2dfc57 100644 --- a/api/index.html +++ b/api/index.html @@ -112,6 +112,13 @@ Support for Handlebars.js templates is included.

+

pl.treksoft.kvision.i18n

+ + + + + +

pl.treksoft.kvision.modal

diff --git a/api/package-list b/api/package-list index 40d09446..aeddbf44 100644 --- a/api/package-list +++ b/api/package-list @@ -34,6 +34,7 @@ pl.treksoft.kvision.form.time pl.treksoft.kvision.form.upload pl.treksoft.kvision.hmr pl.treksoft.kvision.html +pl.treksoft.kvision.i18n pl.treksoft.kvision.modal pl.treksoft.kvision.navbar pl.treksoft.kvision.panel diff --git a/api/pl.treksoft.kvision.core/-widget/index.html b/api/pl.treksoft.kvision.core/-widget/index.html index 9fa16127..8249776f 100644 --- a/api/pl.treksoft.kvision.core/-widget/index.html +++ b/api/pl.treksoft.kvision.core/-widget/index.html @@ -48,6 +48,13 @@ +

lastLanguage

+ + +var lastLanguage: String? + + +

parent

@@ -826,6 +833,15 @@

Toggles visibility of current widget.

+ + +

translate

+ + +fun translate(text: String): String +

Translates given text with I18n trans function and sets lastLanguage marker.

+fun translate(text: String?): String? +

Inherited Functions

diff --git a/api/pl.treksoft.kvision.core/-widget/last-language.html b/api/pl.treksoft.kvision.core/-widget/last-language.html new file mode 100644 index 00000000..79fd06ee --- /dev/null +++ b/api/pl.treksoft.kvision.core/-widget/last-language.html @@ -0,0 +1,14 @@ + + + +Widget.lastLanguage - kvision + + + +kvision / pl.treksoft.kvision.core / Widget / lastLanguage
+
+

lastLanguage

+ +protected var lastLanguage: String? + + diff --git a/api/pl.treksoft.kvision.core/-widget/translate.html b/api/pl.treksoft.kvision.core/-widget/translate.html new file mode 100644 index 00000000..75d4a031 --- /dev/null +++ b/api/pl.treksoft.kvision.core/-widget/translate.html @@ -0,0 +1,22 @@ + + + +Widget.translate - kvision + + + +kvision / pl.treksoft.kvision.core / Widget / translate
+
+

translate

+ +protected fun translate(text: String): String +

Translates given text with I18n trans function and sets lastLanguage marker.

+

Parameters

+

+text - a text marked for a dynamic translation

+

Return
+translated text

+ +protected fun translate(text: String?): String? + + diff --git a/api/pl.treksoft.kvision.data/-data-container/index.html b/api/pl.treksoft.kvision.data/-data-container/index.html index dfe0e067..739baa39 100644 --- a/api/pl.treksoft.kvision.data/-data-container/index.html +++ b/api/pl.treksoft.kvision.data/-data-container/index.html @@ -61,6 +61,13 @@ +

lastLanguage

+ + +var lastLanguage: String? + + +

parent

@@ -416,6 +423,13 @@

Toggles visibility of current widget.

+ + +

translate

+ + +fun translate(text: String?): String? +

Companion Object Functions

diff --git a/api/pl.treksoft.kvision.dropdown/-header/index.html b/api/pl.treksoft.kvision.dropdown/-header/index.html index 67546316..4146a17c 100644 --- a/api/pl.treksoft.kvision.dropdown/-header/index.html +++ b/api/pl.treksoft.kvision.dropdown/-header/index.html @@ -63,6 +63,15 @@ +

templates

+ + +open var templates: Map<String, (Any?) -> String> +

Handlebars templates for i18n.

+ + + +

type

diff --git a/api/pl.treksoft.kvision.dropdown/-separator/index.html b/api/pl.treksoft.kvision.dropdown/-separator/index.html index 10411bfb..7881324b 100644 --- a/api/pl.treksoft.kvision.dropdown/-separator/index.html +++ b/api/pl.treksoft.kvision.dropdown/-separator/index.html @@ -63,6 +63,15 @@ +

templates

+ + +open var templates: Map<String, (Any?) -> String> +

Handlebars templates for i18n.

+ + + +

type

diff --git a/api/pl.treksoft.kvision.form.check/-check-input/index.html b/api/pl.treksoft.kvision.form.check/-check-input/index.html index 9fda4ef1..a3ce5d5f 100644 --- a/api/pl.treksoft.kvision.form.check/-check-input/index.html +++ b/api/pl.treksoft.kvision.form.check/-check-input/index.html @@ -113,6 +113,13 @@ +

lastLanguage

+ + +var lastLanguage: String? + + +

parent

@@ -431,6 +438,13 @@

Toggles visibility of current widget.

+ + +

translate

+ + +fun translate(text: String?): String? +

Companion Object Functions

diff --git a/api/pl.treksoft.kvision.form.select/-select-option/index.html b/api/pl.treksoft.kvision.form.select/-select-option/index.html index 2471d332..ba5f48a8 100644 --- a/api/pl.treksoft.kvision.form.select/-select-option/index.html +++ b/api/pl.treksoft.kvision.form.select/-select-option/index.html @@ -104,6 +104,13 @@ +

lastLanguage

+ + +var lastLanguage: String? + + +

parent

@@ -395,6 +402,13 @@

Toggles visibility of current widget.

+ + +

translate

+ + +fun translate(text: String?): String? + diff --git a/api/pl.treksoft.kvision.form.spinner/-spinner-input/index.html b/api/pl.treksoft.kvision.form.spinner/-spinner-input/index.html index a032fce2..c82a1aba 100644 --- a/api/pl.treksoft.kvision.form.spinner/-spinner-input/index.html +++ b/api/pl.treksoft.kvision.form.spinner/-spinner-input/index.html @@ -176,6 +176,13 @@ +

lastLanguage

+ + +var lastLanguage: String? + + +

parent

@@ -519,6 +526,13 @@

Toggles visibility of current widget.

+ + +

translate

+ + +fun translate(text: String?): String? +

Companion Object Functions

diff --git a/api/pl.treksoft.kvision.form.text/-abstract-text-input/index.html b/api/pl.treksoft.kvision.form.text/-abstract-text-input/index.html index cf5fced4..bc862dbe 100644 --- a/api/pl.treksoft.kvision.form.text/-abstract-text-input/index.html +++ b/api/pl.treksoft.kvision.form.text/-abstract-text-input/index.html @@ -131,6 +131,13 @@ +

lastLanguage

+ + +var lastLanguage: String? + + +

parent

@@ -432,6 +439,13 @@

Toggles visibility of current widget.

+ + +

translate

+ + +fun translate(text: String?): String? +

Inheritors

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 69b1cfc1..baae4575 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 @@ -185,6 +185,13 @@ +

lastLanguage

+ + +var lastLanguage: String? + + +

parent

@@ -542,6 +549,13 @@

Toggles visibility of current widget.

+ + +

translate

+ + +fun translate(text: String?): String? +

Companion Object Functions

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

+

lastLanguage

+ + +var lastLanguage: String? + + +

parent

@@ -612,6 +619,13 @@ If not set the upload button action will default to form submission.

Toggles visibility of current widget.

+ + +

translate

+ + +fun translate(text: String?): String? +

Companion Object Functions

diff --git a/api/pl.treksoft.kvision.form/-field-label/index.html b/api/pl.treksoft.kvision.form/-field-label/index.html index ba165506..6ae50480 100644 --- a/api/pl.treksoft.kvision.form/-field-label/index.html +++ b/api/pl.treksoft.kvision.form/-field-label/index.html @@ -63,6 +63,15 @@ +

templates

+ + +open var templates: Map<String, (Any?) -> String> +

Handlebars templates for i18n.

+ + + +

type

diff --git a/api/pl.treksoft.kvision.form/-form-panel/add-internal.html b/api/pl.treksoft.kvision.form/-form-panel/add-internal.html index a33da08e..fbbbd6fe 100644 --- a/api/pl.treksoft.kvision.form/-form-panel/add-internal.html +++ b/api/pl.treksoft.kvision.form/-form-panel/add-internal.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form / FormPanel / addInternal

addInternal

- -protected fun <C : FormControl> addInternal(key: KProperty1<K, *>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K> + +protected fun <C : FormControl> addInternal(key: KProperty1<K, *>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K> diff --git a/api/pl.treksoft.kvision.form/-form-panel/add.html b/api/pl.treksoft.kvision.form/-form-panel/add.html index 723ce9f7..55663b95 100644 --- a/api/pl.treksoft.kvision.form/-form-panel/add.html +++ b/api/pl.treksoft.kvision.form/-form-panel/add.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.form / FormPanel / add

add

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

Adds a string control to the form panel.

Parameters

@@ -18,14 +18,16 @@ control - the string form control

required - determines if the control is required

+

+requiredMessage - optional required validation message

validatorMessage - optional function returning validation message

validator - optional validation function

Return
current form panel

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

Adds a boolean control to the form panel.

Parameters

@@ -34,14 +36,16 @@ current form panel

control - the boolean form control

required - determines if the control is required

+

+requiredMessage - optional required validation message

validatorMessage - optional function returning validation message

validator - optional validation function

Return
current 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> + +open fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>

Adds a number control to the form panel.

Parameters

@@ -50,14 +54,16 @@ current form panel

control - the number form control

required - determines if the control is required

+

+requiredMessage - optional required validation message

validatorMessage - optional function returning validation message

validator - optional validation function

Return
current form panel

- -open fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, 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, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>

Adds a date control to the form panel.

Parameters

@@ -66,14 +72,16 @@ current form panel

control - the date form control

required - determines if the control is required

+

+requiredMessage - optional required validation message

validatorMessage - optional function returning validation message

validator - optional validation function

Return
current form panel

- -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> + +open fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>

Adds a files control to the form panel.

Parameters

@@ -82,6 +90,8 @@ current form panel

control - the files form control

required - determines if the control is required

+

+requiredMessage - optional required validation message

validatorMessage - optional function returning validation message

diff --git a/api/pl.treksoft.kvision.form/-form-panel/index.html b/api/pl.treksoft.kvision.form/-form-panel/index.html index fb2e65dd..655893e4 100644 --- a/api/pl.treksoft.kvision.form/-form-panel/index.html +++ b/api/pl.treksoft.kvision.form/-form-panel/index.html @@ -116,15 +116,15 @@

add

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

Adds a string control to the form panel.

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

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> +open fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>

Adds a number control to the form panel.

-open fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, 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, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>

Adds a date control to the form panel.

-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> +open fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K>

Adds a files control to the form panel.

@@ -133,7 +133,7 @@

addInternal

-fun <C : FormControl> addInternal(key: KProperty1<K, *>, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K> +fun <C : FormControl> addInternal(key: KProperty1<K, *>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): FormPanel<K> diff --git a/api/pl.treksoft.kvision.form/-form/add.html b/api/pl.treksoft.kvision.form/-form/add.html index ee324f93..54194e62 100644 --- a/api/pl.treksoft.kvision.form/-form/add.html +++ b/api/pl.treksoft.kvision.form/-form/add.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.form / Form / add

add

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

Adds a string control to the form.

Parameters

@@ -18,14 +18,16 @@ control - the string form control

required - determines if the control is required

+

+requiredMessage - optional required validation message

validatorMessage - optional function returning validation message

validator - optional validation function

Return
current form

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

Adds a boolean control to the form.

Parameters

@@ -34,14 +36,16 @@ current form

control - the boolean form control

required - determines if the control is required

+

+requiredMessage - optional required validation message

validatorMessage - optional function returning validation message

validator - optional validation function

Return
current form

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

Adds a number control to the form.

Parameters

@@ -50,14 +54,16 @@ current form

control - the number form control

required - determines if the control is required

+

+requiredMessage - optional required validation message

validatorMessage - optional function returning validation message

validator - optional validation function

Return
current form

- -fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, 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, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>

Adds a date control to the form.

Parameters

@@ -66,14 +72,16 @@ current form

control - the date form control

required - determines if the control is required

+

+requiredMessage - optional required validation message

validatorMessage - optional function returning validation message

validator - optional validation function

Return
current form

- -fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, 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, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>

Adds a files control to the form.

Parameters

@@ -82,6 +90,8 @@ current form

control - the files form control

required - determines if the control is required

+

+requiredMessage - optional required validation message

validatorMessage - optional function returning validation message

diff --git a/api/pl.treksoft.kvision.form/-form/index.html b/api/pl.treksoft.kvision.form/-form/index.html index f34e7aea..3de71e84 100644 --- a/api/pl.treksoft.kvision.form/-form/index.html +++ b/api/pl.treksoft.kvision.form/-form/index.html @@ -32,15 +32,15 @@

add

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

Adds a string control to the form.

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

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> +fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>

Adds a number control to the form.

-fun <C : KDateFormControl> add(key: KProperty1<K, KDate?>, 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, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>

Adds a date control to the form.

-fun <C : KFilesFormControl> add(key: KProperty1<K, List<KFile>?>, 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, requiredMessage: String? = null, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K>

Adds a files control to the form.

diff --git a/api/pl.treksoft.kvision.form/-help-block/index.html b/api/pl.treksoft.kvision.form/-help-block/index.html index 6d0ef9e5..f0e51946 100644 --- a/api/pl.treksoft.kvision.form/-help-block/index.html +++ b/api/pl.treksoft.kvision.form/-help-block/index.html @@ -63,6 +63,15 @@ +

templates

+ + +open var templates: Map<String, (Any?) -> String> +

Handlebars templates for i18n.

+ + + +

type

diff --git a/api/pl.treksoft.kvision.html/-button/index.html b/api/pl.treksoft.kvision.html/-button/index.html index 465b69a4..97cb7cfe 100644 --- a/api/pl.treksoft.kvision.html/-button/index.html +++ b/api/pl.treksoft.kvision.html/-button/index.html @@ -122,6 +122,13 @@ +

lastLanguage

+ + +var lastLanguage: String? + + +

parent

@@ -422,6 +429,13 @@

Toggles visibility of current widget.

+ + +

translate

+ + +fun translate(text: String?): String? +

Companion Object Functions

diff --git a/api/pl.treksoft.kvision.html/-canvas/index.html b/api/pl.treksoft.kvision.html/-canvas/index.html index f41dba0b..1eada12b 100644 --- a/api/pl.treksoft.kvision.html/-canvas/index.html +++ b/api/pl.treksoft.kvision.html/-canvas/index.html @@ -77,6 +77,13 @@ +

lastLanguage

+ + +var lastLanguage: String? + + +

parent

@@ -368,6 +375,13 @@

Toggles visibility of current widget.

+ + +

translate

+ + +fun translate(text: String?): String? +

Companion Object Functions

diff --git a/api/pl.treksoft.kvision.html/-div/index.html b/api/pl.treksoft.kvision.html/-div/index.html index 423abeaa..1bafe2bc 100644 --- a/api/pl.treksoft.kvision.html/-div/index.html +++ b/api/pl.treksoft.kvision.html/-div/index.html @@ -63,6 +63,15 @@ +

templates

+ + +open var templates: Map<String, (Any?) -> String> +

Handlebars templates for i18n.

+ + + +

type

diff --git a/api/pl.treksoft.kvision.html/-icon/index.html b/api/pl.treksoft.kvision.html/-icon/index.html index d1085afd..53bc8b48 100644 --- a/api/pl.treksoft.kvision.html/-icon/index.html +++ b/api/pl.treksoft.kvision.html/-icon/index.html @@ -77,6 +77,15 @@ +

templates

+ + +open var templates: Map<String, (Any?) -> String> +

Handlebars templates for i18n.

+ + + +

type

diff --git a/api/pl.treksoft.kvision.html/-iframe/index.html b/api/pl.treksoft.kvision.html/-iframe/index.html index 93b4523d..0986b508 100644 --- a/api/pl.treksoft.kvision.html/-iframe/index.html +++ b/api/pl.treksoft.kvision.html/-iframe/index.html @@ -113,6 +113,13 @@ +

lastLanguage

+ + +var lastLanguage: String? + + +

parent

@@ -413,6 +420,13 @@

Toggles visibility of current widget.

+ + +

translate

+ + +fun translate(text: String?): String? +

Companion Object Functions

diff --git a/api/pl.treksoft.kvision.html/-image/index.html b/api/pl.treksoft.kvision.html/-image/index.html index 20ba0f36..c70680e0 100644 --- a/api/pl.treksoft.kvision.html/-image/index.html +++ b/api/pl.treksoft.kvision.html/-image/index.html @@ -95,6 +95,13 @@ +

lastLanguage

+ + +var lastLanguage: String? + + +

parent

@@ -386,6 +393,13 @@

Toggles visibility of current widget.

+ + +

translate

+ + +fun translate(text: String?): String? +

Companion Object Functions

diff --git a/api/pl.treksoft.kvision.html/-label/index.html b/api/pl.treksoft.kvision.html/-label/index.html index ca8db5e2..b6012f1f 100644 --- a/api/pl.treksoft.kvision.html/-label/index.html +++ b/api/pl.treksoft.kvision.html/-label/index.html @@ -63,6 +63,15 @@ +

templates

+ + +open var templates: Map<String, (Any?) -> String> +

Handlebars templates for i18n.

+ + + +

type

diff --git a/api/pl.treksoft.kvision.html/-tag/index.html b/api/pl.treksoft.kvision.html/-tag/index.html index 7667eeac..0fd2fc5f 100644 --- a/api/pl.treksoft.kvision.html/-tag/index.html +++ b/api/pl.treksoft.kvision.html/-tag/index.html @@ -63,6 +63,15 @@ +

templates

+ + +open var templates: Map<String, (Any?) -> String> +

Handlebars templates for i18n.

+ + + +

type

@@ -80,7 +89,9 @@

templateData

-open var templateData: Any? +open var templateData: Any? +

Handlebars template data object.

+ diff --git a/api/pl.treksoft.kvision.html/-tag/templates.html b/api/pl.treksoft.kvision.html/-tag/templates.html new file mode 100644 index 00000000..35efa286 --- /dev/null +++ b/api/pl.treksoft.kvision.html/-tag/templates.html @@ -0,0 +1,22 @@ + + + +Tag.templates - kvision + + + +kvision / pl.treksoft.kvision.html / Tag / templates
+
+

templates

+ +open var templates: Map<String, (Any?) -> String> +

Overrides Template.templates

+

Handlebars templates for i18n.

+

Getter
+

Handlebars templates for i18n.

+

+

Setter
+

Handlebars templates for i18n.

+

+ + diff --git a/api/pl.treksoft.kvision.html/-template/index.html b/api/pl.treksoft.kvision.html/-template/index.html index fcdba84d..c5c15400 100644 --- a/api/pl.treksoft.kvision.html/-template/index.html +++ b/api/pl.treksoft.kvision.html/-template/index.html @@ -9,6 +9,7 @@

Template

interface Template +

Handlebars templates helper interface.

Properties

@@ -38,7 +39,16 @@

templateData

+open var templateData: Any? +

Handlebars template data object.

+ + + + +
-open var templateData: Any?
+

templates

+
+abstract var templates: Map<String, (Any?) -> String>
diff --git a/api/pl.treksoft.kvision.html/-template/template-data.html b/api/pl.treksoft.kvision.html/-template/template-data.html index fb30d59c..4e4f7a9c 100644 --- a/api/pl.treksoft.kvision.html/-template/template-data.html +++ b/api/pl.treksoft.kvision.html/-template/template-data.html @@ -10,5 +10,6 @@

templateData

open var templateData: Any? +

Handlebars template data object.

diff --git a/api/pl.treksoft.kvision.html/-template/templates.html b/api/pl.treksoft.kvision.html/-template/templates.html new file mode 100644 index 00000000..8a25f0d0 --- /dev/null +++ b/api/pl.treksoft.kvision.html/-template/templates.html @@ -0,0 +1,14 @@ + + + +Template.templates - kvision + + + +kvision / pl.treksoft.kvision.html / Template / templates
+
+

templates

+ +abstract var templates: Map<String, (Any?) -> String> + + diff --git a/api/pl.treksoft.kvision.html/index.html b/api/pl.treksoft.kvision.html/index.html index 01b678e5..e9ff52a5 100644 --- a/api/pl.treksoft.kvision.html/index.html +++ b/api/pl.treksoft.kvision.html/index.html @@ -180,7 +180,9 @@ Support for Handlebars.js templates is included.

Template

-interface Template +interface Template +

Handlebars templates helper interface.

+ diff --git a/api/pl.treksoft.kvision.i18n/-i18n/gettext.html b/api/pl.treksoft.kvision.i18n/-i18n/gettext.html new file mode 100644 index 00000000..63ab9b2b --- /dev/null +++ b/api/pl.treksoft.kvision.i18n/-i18n/gettext.html @@ -0,0 +1,20 @@ + + + +I18n.gettext - kvision + + + +kvision / pl.treksoft.kvision.i18n / I18n / gettext
+
+

gettext

+ +fun gettext(key: String): String +

A static translation function for a singular form.

+

Parameters

+

+key - a translation key.

+

Return
+translated text.

+ + diff --git a/api/pl.treksoft.kvision.i18n/-i18n/index.html b/api/pl.treksoft.kvision.i18n/-i18n/index.html new file mode 100644 index 00000000..a6f2f17e --- /dev/null +++ b/api/pl.treksoft.kvision.i18n/-i18n/index.html @@ -0,0 +1,89 @@ + + + +I18n - kvision + + + +kvision / pl.treksoft.kvision.i18n / I18n
+
+

I18n

+object I18n +

A singleton object used for translations.

+

Properties

+ + + + + + + +
+

language

+
+var language: <ERROR CLASS> +

Main language of the application.

+
+

Functions

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

gettext

+
+fun gettext(key: String): String +

A static translation function for a singular form.

+
+

init

+
+fun init(vararg languages: String, initCallback: () -> Unit): Unit +

I18n initialization function. +Should be called in the main function of the application.

+
+

ngettext

+
+fun ngettext(singularKey: String, pluralKey: String, value: Int): String +

A static translation function for a plural form.

+
+

ntr

+
+fun ntr(singularKey: String, pluralKey: String, value: Int): String +

A dynamic translation function for a plural form.

+
+

tr

+
+fun tr(key: String): String +

A dynamic translation function for a singular form.

+
+

trans

+
+fun trans(text: String): String
+fun trans(text: String?): String? +

A dynamic translation function.

+
+ + diff --git a/api/pl.treksoft.kvision.i18n/-i18n/init.html b/api/pl.treksoft.kvision.i18n/-i18n/init.html new file mode 100644 index 00000000..6e460023 --- /dev/null +++ b/api/pl.treksoft.kvision.i18n/-i18n/init.html @@ -0,0 +1,21 @@ + + + +I18n.init - kvision + + + +kvision / pl.treksoft.kvision.i18n / I18n / init
+
+

init

+ +fun init(vararg languages: String, initCallback: () -> Unit): Unit +

I18n initialization function. +Should be called in the main function of the application.

+

Parameters

+

+languages - a list of supported languages.

+

+initCallback - a code to run after the initialization process is complete.

+ + diff --git a/api/pl.treksoft.kvision.i18n/-i18n/language.html b/api/pl.treksoft.kvision.i18n/-i18n/language.html new file mode 100644 index 00000000..e72498f5 --- /dev/null +++ b/api/pl.treksoft.kvision.i18n/-i18n/language.html @@ -0,0 +1,15 @@ + + + +I18n.language - kvision + + + +kvision / pl.treksoft.kvision.i18n / I18n / language
+
+

language

+ +var language: <ERROR CLASS> +

Main language of the application.

+ + diff --git a/api/pl.treksoft.kvision.i18n/-i18n/ngettext.html b/api/pl.treksoft.kvision.i18n/-i18n/ngettext.html new file mode 100644 index 00000000..091efe53 --- /dev/null +++ b/api/pl.treksoft.kvision.i18n/-i18n/ngettext.html @@ -0,0 +1,24 @@ + + + +I18n.ngettext - kvision + + + +kvision / pl.treksoft.kvision.i18n / I18n / ngettext
+
+

ngettext

+ +fun ngettext(singularKey: String, pluralKey: String, value: Int): String +

A static translation function for a plural form.

+

Parameters

+

+singularKey - a translation key for a singular form.

+

+pluralKey - a translation key for a plural form.

+

+value - a count value.

+

Return
+translated text.

+ + diff --git a/api/pl.treksoft.kvision.i18n/-i18n/ntr.html b/api/pl.treksoft.kvision.i18n/-i18n/ntr.html new file mode 100644 index 00000000..958d3c0d --- /dev/null +++ b/api/pl.treksoft.kvision.i18n/-i18n/ntr.html @@ -0,0 +1,24 @@ + + + +I18n.ntr - kvision + + + +kvision / pl.treksoft.kvision.i18n / I18n / ntr
+
+

ntr

+ +fun ntr(singularKey: String, pluralKey: String, value: Int): String +

A dynamic translation function for a plural form.

+

Parameters

+

+singularKey - a translation key for a singular form.

+

+pluralKey - a translation key for a plural form.

+

+value - a count value.

+

Return
+text marked for a dynamic translation.

+ + diff --git a/api/pl.treksoft.kvision.i18n/-i18n/tr.html b/api/pl.treksoft.kvision.i18n/-i18n/tr.html new file mode 100644 index 00000000..f419b8b9 --- /dev/null +++ b/api/pl.treksoft.kvision.i18n/-i18n/tr.html @@ -0,0 +1,20 @@ + + + +I18n.tr - kvision + + + +kvision / pl.treksoft.kvision.i18n / I18n / tr
+
+

tr

+ +fun tr(key: String): String +

A dynamic translation function for a singular form.

+

Parameters

+

+key - a translation key.

+

Return
+text marked for a dynamic translation.

+ + diff --git a/api/pl.treksoft.kvision.i18n/-i18n/trans.html b/api/pl.treksoft.kvision.i18n/-i18n/trans.html new file mode 100644 index 00000000..f7fdb811 --- /dev/null +++ b/api/pl.treksoft.kvision.i18n/-i18n/trans.html @@ -0,0 +1,22 @@ + + + +I18n.trans - kvision + + + +kvision / pl.treksoft.kvision.i18n / I18n / trans
+
+

trans

+ +fun trans(text: String): String
+ +fun trans(text: String?): String? +

A dynamic translation function.

+

Parameters

+

+text - text marked for a dynamic translation.

+

Return
+translated text.

+ + diff --git a/api/pl.treksoft.kvision.i18n/-jed/-init-.html b/api/pl.treksoft.kvision.i18n/-jed/-init-.html new file mode 100644 index 00000000..07407dfb --- /dev/null +++ b/api/pl.treksoft.kvision.i18n/-jed/-init-.html @@ -0,0 +1,14 @@ + + + +Jed.<init> - kvision + + + +kvision / pl.treksoft.kvision.i18n / Jed / <init>
+
+

<init>

+ +Jed(json: dynamic) + + diff --git a/api/pl.treksoft.kvision.i18n/-jed/gettext.html b/api/pl.treksoft.kvision.i18n/-jed/gettext.html new file mode 100644 index 00000000..27b56338 --- /dev/null +++ b/api/pl.treksoft.kvision.i18n/-jed/gettext.html @@ -0,0 +1,14 @@ + + + +Jed.gettext - kvision + + + +kvision / pl.treksoft.kvision.i18n / Jed / gettext
+
+

gettext

+ +fun gettext(key: String): String + + diff --git a/api/pl.treksoft.kvision.i18n/-jed/index.html b/api/pl.treksoft.kvision.i18n/-jed/index.html new file mode 100644 index 00000000..1dbda76c --- /dev/null +++ b/api/pl.treksoft.kvision.i18n/-jed/index.html @@ -0,0 +1,51 @@ + + + +Jed - kvision + + + +kvision / pl.treksoft.kvision.i18n / Jed
+
+

Jed

+external class Jed +

Constructors

+ + + + + + + +
+

<init>

+
+Jed(json: dynamic)
+

Functions

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

gettext

+
+fun gettext(key: String): String
+

ngettext

+
+fun ngettext(singularKey: String, pluralKey: String, value: Int): String
+

sprintf

+
+fun sprintf(format: String, value: Int): String
+ + diff --git a/api/pl.treksoft.kvision.i18n/-jed/ngettext.html b/api/pl.treksoft.kvision.i18n/-jed/ngettext.html new file mode 100644 index 00000000..1af03cfa --- /dev/null +++ b/api/pl.treksoft.kvision.i18n/-jed/ngettext.html @@ -0,0 +1,14 @@ + + + +Jed.ngettext - kvision + + + +kvision / pl.treksoft.kvision.i18n / Jed / ngettext
+
+

ngettext

+ +fun ngettext(singularKey: String, pluralKey: String, value: Int): String + + diff --git a/api/pl.treksoft.kvision.i18n/-jed/sprintf.html b/api/pl.treksoft.kvision.i18n/-jed/sprintf.html new file mode 100644 index 00000000..662f686a --- /dev/null +++ b/api/pl.treksoft.kvision.i18n/-jed/sprintf.html @@ -0,0 +1,14 @@ + + + +Jed.sprintf - kvision + + + +kvision / pl.treksoft.kvision.i18n / Jed / sprintf
+
+

sprintf

+ +fun sprintf(format: String, value: Int): String + + diff --git a/api/pl.treksoft.kvision.i18n/index.html b/api/pl.treksoft.kvision.i18n/index.html new file mode 100644 index 00000000..bce054ea --- /dev/null +++ b/api/pl.treksoft.kvision.i18n/index.html @@ -0,0 +1,33 @@ + + + +pl.treksoft.kvision.i18n - kvision + + + +kvision / pl.treksoft.kvision.i18n
+
+

Package pl.treksoft.kvision.i18n

+

Types

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

I18n

+
+object I18n +

A singleton object used for translations.

+
+

Jed

+
+external class Jed
+ + diff --git a/api/pl.treksoft.kvision.modal/-close-icon/index.html b/api/pl.treksoft.kvision.modal/-close-icon/index.html index 742a474b..774c18cd 100644 --- a/api/pl.treksoft.kvision.modal/-close-icon/index.html +++ b/api/pl.treksoft.kvision.modal/-close-icon/index.html @@ -47,6 +47,13 @@ +

lastLanguage

+ + +var lastLanguage: String? + + +

parent

@@ -338,6 +345,13 @@

Toggles visibility of current widget.

+ + +

translate

+ + +fun translate(text: String?): String? + diff --git a/api/pl.treksoft.kvision.modal/-confirm/-init-.html b/api/pl.treksoft.kvision.modal/-confirm/-init-.html index 7bd88a52..7bf6f68f 100644 --- a/api/pl.treksoft.kvision.modal/-confirm/-init-.html +++ b/api/pl.treksoft.kvision.modal/-confirm/-init-.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.modal / Confirm / <init>

<init>

- -Confirm(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, cancelVisible: Boolean = false, noCallback: () -> Unit = null, yesCallback: () -> Unit = null) + +Confirm(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, cancelVisible: Boolean = false, yesTitle: String = "Yes", noTitle: String = "No", cancelTitle: String = "Cancel", noCallback: () -> Unit = null, yesCallback: () -> Unit = null)

Parameters

caption - window title

@@ -25,6 +25,12 @@ animation - determines if animations are used

cancelVisible - determines if Cancel button is visible

+

+yesTitle - yes button text

+

+noTitle - no button text

+

+cancelTitle - cancel button text

noCallback - a function called after closing window with No button

diff --git a/api/pl.treksoft.kvision.modal/-confirm/cancel-title.html b/api/pl.treksoft.kvision.modal/-confirm/cancel-title.html new file mode 100644 index 00000000..b010823b --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-confirm/cancel-title.html @@ -0,0 +1,15 @@ + + + +Confirm.cancelTitle - kvision + + + +kvision / pl.treksoft.kvision.modal / Confirm / cancelTitle
+
+

cancelTitle

+ +var cancelTitle: String +

Cancel button text.

+ + diff --git a/api/pl.treksoft.kvision.modal/-confirm/index.html b/api/pl.treksoft.kvision.modal/-confirm/index.html index 0bdebe0c..2d4ecbbb 100644 --- a/api/pl.treksoft.kvision.modal/-confirm/index.html +++ b/api/pl.treksoft.kvision.modal/-confirm/index.html @@ -18,7 +18,7 @@

<init>

-Confirm(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, cancelVisible: Boolean = false, noCallback: () -> Unit = null, yesCallback: () -> Unit = null) +Confirm(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, cancelVisible: Boolean = false, yesTitle: String = "Yes", noTitle: String = "No", cancelTitle: String = "Cancel", noCallback: () -> Unit = null, yesCallback: () -> Unit = null) @@ -36,6 +36,15 @@ +

cancelTitle

+ + +var cancelTitle: String +

Cancel button text.

+ + + +

cancelVisible

@@ -45,6 +54,15 @@ +

noTitle

+ + +var noTitle: String +

No button text.

+ + + +

rich

@@ -61,6 +79,15 @@

Window content text.

+ + +

yesTitle

+ + +var yesTitle: String +

Yes button text.

+ +

Inherited Properties

@@ -234,7 +261,7 @@

show

-fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, cancelVisible: Boolean = false, noCallback: () -> Unit = null, yesCallback: () -> Unit = null): Unit +fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, cancelVisible: Boolean = false, yesTitle: String = "Yes", noTitle: String = "No", cancelTitle: String = "Cancel", noCallback: () -> Unit = null, yesCallback: () -> Unit = null): Unit

Helper function for opening Confirm window.

diff --git a/api/pl.treksoft.kvision.modal/-confirm/no-title.html b/api/pl.treksoft.kvision.modal/-confirm/no-title.html new file mode 100644 index 00000000..93a01de5 --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-confirm/no-title.html @@ -0,0 +1,15 @@ + + + +Confirm.noTitle - kvision + + + +kvision / pl.treksoft.kvision.modal / Confirm / noTitle
+
+

noTitle

+ +var noTitle: String +

No button text.

+ + diff --git a/api/pl.treksoft.kvision.modal/-confirm/show.html b/api/pl.treksoft.kvision.modal/-confirm/show.html index 9ea5f457..be7a4c93 100644 --- a/api/pl.treksoft.kvision.modal/-confirm/show.html +++ b/api/pl.treksoft.kvision.modal/-confirm/show.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.modal / Confirm / show

show

- -fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, cancelVisible: Boolean = false, noCallback: () -> Unit = null, yesCallback: () -> Unit = null): Unit + +fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, cancelVisible: Boolean = false, yesTitle: String = "Yes", noTitle: String = "No", cancelTitle: String = "Cancel", noCallback: () -> Unit = null, yesCallback: () -> Unit = null): Unit

Helper function for opening Confirm window.

Parameters

@@ -17,7 +17,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/yes-title.html b/api/pl.treksoft.kvision.modal/-confirm/yes-title.html new file mode 100644 index 00000000..05a653f7 --- /dev/null +++ b/api/pl.treksoft.kvision.modal/-confirm/yes-title.html @@ -0,0 +1,15 @@ + + + +Confirm.yesTitle - kvision + + + +kvision / pl.treksoft.kvision.modal / Confirm / yesTitle
+
+

yesTitle

+ +var yesTitle: String +

Yes button text.

+ + diff --git a/api/pl.treksoft.kvision.navbar/-nav-form/index.html b/api/pl.treksoft.kvision.navbar/-nav-form/index.html index 3b119386..1693a29d 100644 --- a/api/pl.treksoft.kvision.navbar/-nav-form/index.html +++ b/api/pl.treksoft.kvision.navbar/-nav-form/index.html @@ -77,6 +77,15 @@ +

templates

+ + +open var templates: Map<String, (Any?) -> String> +

Handlebars templates for i18n.

+ + + +

type

diff --git a/api/pl.treksoft.kvision.navbar/-nav/index.html b/api/pl.treksoft.kvision.navbar/-nav/index.html index 54629bac..fcc991bc 100644 --- a/api/pl.treksoft.kvision.navbar/-nav/index.html +++ b/api/pl.treksoft.kvision.navbar/-nav/index.html @@ -77,6 +77,15 @@ +

templates

+ + +open var templates: Map<String, (Any?) -> String> +

Handlebars templates for i18n.

+ + + +

type

diff --git a/api/pl.treksoft.kvision.panel/-simple-panel/index.html b/api/pl.treksoft.kvision.panel/-simple-panel/index.html index 2aeb89f8..c02cde38 100644 --- a/api/pl.treksoft.kvision.panel/-simple-panel/index.html +++ b/api/pl.treksoft.kvision.panel/-simple-panel/index.html @@ -45,6 +45,13 @@ +

lastLanguage

+ + +var lastLanguage: String? + + +

parent

@@ -408,6 +415,13 @@

Toggles visibility of current widget.

+ + +

translate

+ + +fun translate(text: String?): String? +

Companion Object Functions

diff --git a/api/pl.treksoft.kvision.table/-cell/index.html b/api/pl.treksoft.kvision.table/-cell/index.html index 2c51ed68..7eef1452 100644 --- a/api/pl.treksoft.kvision.table/-cell/index.html +++ b/api/pl.treksoft.kvision.table/-cell/index.html @@ -63,6 +63,15 @@ +

templates

+ + +open var templates: Map<String, (Any?) -> String> +

Handlebars templates for i18n.

+ + + +

type

diff --git a/api/pl.treksoft.kvision.table/-header-cell/index.html b/api/pl.treksoft.kvision.table/-header-cell/index.html index 71bd8b00..138570aa 100644 --- a/api/pl.treksoft.kvision.table/-header-cell/index.html +++ b/api/pl.treksoft.kvision.table/-header-cell/index.html @@ -63,6 +63,15 @@ +

templates

+ + +open var templates: Map<String, (Any?) -> String> +

Handlebars templates for i18n.

+ + + +

type

diff --git a/api/pl.treksoft.kvision.table/-row/index.html b/api/pl.treksoft.kvision.table/-row/index.html index dab8a1a3..8c97944d 100644 --- a/api/pl.treksoft.kvision.table/-row/index.html +++ b/api/pl.treksoft.kvision.table/-row/index.html @@ -63,6 +63,15 @@ +

templates

+ + +open var templates: Map<String, (Any?) -> String> +

Handlebars templates for i18n.

+ + + +

type

-- cgit