diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/Showcase.kt | 12 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/check/CheckBox.kt (renamed from src/main/kotlin/pl/treksoft/kvision/form/CheckBox.kt) | 4 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt (renamed from src/main/kotlin/pl/treksoft/kvision/form/CheckInput.kt) | 4 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/check/Radio.kt (renamed from src/main/kotlin/pl/treksoft/kvision/form/Radio.kt) | 4 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/text/AbstractText.kt (renamed from src/main/kotlin/pl/treksoft/kvision/form/AbstractText.kt) | 4 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt (renamed from src/main/kotlin/pl/treksoft/kvision/form/AbstractTextInput.kt) | 4 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/text/Password.kt (renamed from src/main/kotlin/pl/treksoft/kvision/form/Password.kt) | 2 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/text/Text.kt (renamed from src/main/kotlin/pl/treksoft/kvision/form/Text.kt) | 2 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/text/TextArea.kt (renamed from src/main/kotlin/pl/treksoft/kvision/form/TextArea.kt) | 2 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/text/TextAreaInput.kt (renamed from src/main/kotlin/pl/treksoft/kvision/form/TextAreaInput.kt) | 2 | ||||
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/form/text/TextInput.kt (renamed from src/main/kotlin/pl/treksoft/kvision/form/TextInput.kt) | 2 | ||||
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/form/check/CheckBoxSpec.kt (renamed from src/test/kotlin/test/pl/treksoft/kvision/form/CheckBoxSpec.kt) | 6 | ||||
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/form/check/CheckInputSpec.kt (renamed from src/test/kotlin/test/pl/treksoft/kvision/form/CheckInputSpec.kt) | 6 | ||||
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/form/check/RadioSpec.kt (renamed from src/test/kotlin/test/pl/treksoft/kvision/form/RadioSpec.kt) | 6 | ||||
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/form/text/PasswordSpec.kt (renamed from src/test/kotlin/test/pl/treksoft/kvision/form/PasswordSpec.kt) | 4 | ||||
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/form/text/TextAreaInputSpec.kt (renamed from src/test/kotlin/test/pl/treksoft/kvision/form/TextAreaInputSpec.kt) | 4 | ||||
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/form/text/TextAreaSpec.kt (renamed from src/test/kotlin/test/pl/treksoft/kvision/form/TextAreaSpec.kt) | 4 | ||||
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/form/text/TextInputSpec.kt (renamed from src/test/kotlin/test/pl/treksoft/kvision/form/TextInputSpec.kt) | 6 | ||||
-rw-r--r-- | src/test/kotlin/test/pl/treksoft/kvision/form/text/TextSpec.kt (renamed from src/test/kotlin/test/pl/treksoft/kvision/form/TextSpec.kt) | 4 |
19 files changed, 46 insertions, 36 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt index a3fec251..b6444720 100644 --- a/src/main/kotlin/pl/treksoft/kvision/Showcase.kt +++ b/src/main/kotlin/pl/treksoft/kvision/Showcase.kt @@ -7,13 +7,13 @@ import pl.treksoft.kvision.data.DataComponent import pl.treksoft.kvision.data.DataContainer import pl.treksoft.kvision.dropdown.DD.* import pl.treksoft.kvision.dropdown.DropDown -import pl.treksoft.kvision.form.CheckBox +import pl.treksoft.kvision.form.check.CheckBox import pl.treksoft.kvision.form.INPUTSIZE -import pl.treksoft.kvision.form.TEXTINPUTTYPE -import pl.treksoft.kvision.form.Text -import pl.treksoft.kvision.form.TextArea -import pl.treksoft.kvision.form.TextAreaInput -import pl.treksoft.kvision.form.TextInput +import pl.treksoft.kvision.form.text.TEXTINPUTTYPE +import pl.treksoft.kvision.form.text.Text +import pl.treksoft.kvision.form.text.TextArea +import pl.treksoft.kvision.form.text.TextAreaInput +import pl.treksoft.kvision.form.text.TextInput import pl.treksoft.kvision.form.select.AjaxOptions import pl.treksoft.kvision.form.select.SELECTWIDTHTYPE import pl.treksoft.kvision.form.select.Select diff --git a/src/main/kotlin/pl/treksoft/kvision/form/CheckBox.kt b/src/main/kotlin/pl/treksoft/kvision/form/check/CheckBox.kt index ecd016b2..e4dd7fe9 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/CheckBox.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/check/CheckBox.kt @@ -1,6 +1,8 @@ -package pl.treksoft.kvision.form +package pl.treksoft.kvision.form.check import pl.treksoft.kvision.core.Widget +import pl.treksoft.kvision.form.BoolFormField +import pl.treksoft.kvision.form.FieldLabel import pl.treksoft.kvision.panel.SimplePanel import pl.treksoft.kvision.snabbdom.SnOn import pl.treksoft.kvision.snabbdom.StringBoolPair diff --git a/src/main/kotlin/pl/treksoft/kvision/form/CheckInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt index 746b6e3d..a4899f45 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/CheckInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/check/CheckInput.kt @@ -1,7 +1,9 @@ -package pl.treksoft.kvision.form +package pl.treksoft.kvision.form.check import com.github.snabbdom.VNode import pl.treksoft.kvision.core.Widget +import pl.treksoft.kvision.form.BoolFormField +import pl.treksoft.kvision.form.INPUTSIZE import pl.treksoft.kvision.snabbdom.StringBoolPair import pl.treksoft.kvision.snabbdom.StringPair diff --git a/src/main/kotlin/pl/treksoft/kvision/form/Radio.kt b/src/main/kotlin/pl/treksoft/kvision/form/check/Radio.kt index f4ca9c41..284cf26c 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/Radio.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/check/Radio.kt @@ -1,6 +1,8 @@ -package pl.treksoft.kvision.form +package pl.treksoft.kvision.form.check import pl.treksoft.kvision.core.Widget +import pl.treksoft.kvision.form.BoolFormField +import pl.treksoft.kvision.form.FieldLabel import pl.treksoft.kvision.panel.SimplePanel import pl.treksoft.kvision.snabbdom.SnOn import pl.treksoft.kvision.snabbdom.StringBoolPair diff --git a/src/main/kotlin/pl/treksoft/kvision/form/AbstractText.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractText.kt index dfa4233b..4d0ebf51 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/AbstractText.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractText.kt @@ -1,7 +1,9 @@ -package pl.treksoft.kvision.form +package pl.treksoft.kvision.form.text import pl.treksoft.kvision.panel.SimplePanel import pl.treksoft.kvision.core.Widget +import pl.treksoft.kvision.form.FieldLabel +import pl.treksoft.kvision.form.StringFormField import pl.treksoft.kvision.snabbdom.SnOn abstract class AbstractText(label: String? = null, rich: Boolean = false) : diff --git a/src/main/kotlin/pl/treksoft/kvision/form/AbstractTextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt index 8f0a09e0..09d9ec50 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/AbstractTextInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/text/AbstractTextInput.kt @@ -1,6 +1,8 @@ -package pl.treksoft.kvision.form +package pl.treksoft.kvision.form.text import pl.treksoft.kvision.core.Widget +import pl.treksoft.kvision.form.INPUTSIZE +import pl.treksoft.kvision.form.StringFormField import pl.treksoft.kvision.snabbdom.StringBoolPair import pl.treksoft.kvision.snabbdom.StringPair diff --git a/src/main/kotlin/pl/treksoft/kvision/form/Password.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/Password.kt index 9b505e8b..c5b8e622 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/Password.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/text/Password.kt @@ -1,4 +1,4 @@ -package pl.treksoft.kvision.form +package pl.treksoft.kvision.form.text open class Password(value: String? = null, label: String? = null, rich: Boolean = false) : Text(TEXTINPUTTYPE.PASSWORD, value, label, rich) diff --git a/src/main/kotlin/pl/treksoft/kvision/form/Text.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/Text.kt index 211cb1f6..d5d78616 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/Text.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/text/Text.kt @@ -1,4 +1,4 @@ -package pl.treksoft.kvision.form +package pl.treksoft.kvision.form.text open class Text(type: TEXTINPUTTYPE = TEXTINPUTTYPE.TEXT, value: String? = null, diff --git a/src/main/kotlin/pl/treksoft/kvision/form/TextArea.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/TextArea.kt index 28bbdb48..ecfe9cee 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/TextArea.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/text/TextArea.kt @@ -1,4 +1,4 @@ -package pl.treksoft.kvision.form +package pl.treksoft.kvision.form.text open class TextArea(cols: Int? = null, rows: Int? = null, value: String? = null, label: String? = null, rich: Boolean = false) : AbstractText(label, rich) { diff --git a/src/main/kotlin/pl/treksoft/kvision/form/TextAreaInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/TextAreaInput.kt index c30d760e..e8fd9a43 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/TextAreaInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/text/TextAreaInput.kt @@ -1,4 +1,4 @@ -package pl.treksoft.kvision.form +package pl.treksoft.kvision.form.text import com.github.snabbdom.VNode import pl.treksoft.kvision.snabbdom.StringPair diff --git a/src/main/kotlin/pl/treksoft/kvision/form/TextInput.kt b/src/main/kotlin/pl/treksoft/kvision/form/text/TextInput.kt index c900fcff..436c0fec 100644 --- a/src/main/kotlin/pl/treksoft/kvision/form/TextInput.kt +++ b/src/main/kotlin/pl/treksoft/kvision/form/text/TextInput.kt @@ -1,4 +1,4 @@ -package pl.treksoft.kvision.form +package pl.treksoft.kvision.form.text import com.github.snabbdom.VNode import pl.treksoft.kvision.snabbdom.StringPair diff --git a/src/test/kotlin/test/pl/treksoft/kvision/form/CheckBoxSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/form/check/CheckBoxSpec.kt index dd46d747..9bf3e82b 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/form/CheckBoxSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/form/check/CheckBoxSpec.kt @@ -1,8 +1,8 @@ -package test.pl.treksoft.kvision.form +package test.pl.treksoft.kvision.form.check import pl.treksoft.kvision.core.Root -import pl.treksoft.kvision.form.CHECKBOXSTYLE -import pl.treksoft.kvision.form.CheckBox +import pl.treksoft.kvision.form.check.CHECKBOXSTYLE +import pl.treksoft.kvision.form.check.CheckBox import test.pl.treksoft.kvision.DomSpec import kotlin.browser.document import kotlin.test.Test diff --git a/src/test/kotlin/test/pl/treksoft/kvision/form/CheckInputSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/form/check/CheckInputSpec.kt index fb1b0fbf..daac7bb9 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/form/CheckInputSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/form/check/CheckInputSpec.kt @@ -1,8 +1,8 @@ -package test.pl.treksoft.kvision.form +package test.pl.treksoft.kvision.form.check import pl.treksoft.kvision.core.Root -import pl.treksoft.kvision.form.CHECKINPUTTYPE -import pl.treksoft.kvision.form.CheckInput +import pl.treksoft.kvision.form.check.CHECKINPUTTYPE +import pl.treksoft.kvision.form.check.CheckInput import test.pl.treksoft.kvision.DomSpec import kotlin.browser.document import kotlin.test.Test diff --git a/src/test/kotlin/test/pl/treksoft/kvision/form/RadioSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/form/check/RadioSpec.kt index a0e4b853..aff444bf 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/form/RadioSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/form/check/RadioSpec.kt @@ -1,8 +1,8 @@ -package test.pl.treksoft.kvision.form +package test.pl.treksoft.kvision.form.check import pl.treksoft.kvision.core.Root -import pl.treksoft.kvision.form.RADIOSTYLE -import pl.treksoft.kvision.form.Radio +import pl.treksoft.kvision.form.check.RADIOSTYLE +import pl.treksoft.kvision.form.check.Radio import test.pl.treksoft.kvision.DomSpec import kotlin.browser.document import kotlin.test.Test diff --git a/src/test/kotlin/test/pl/treksoft/kvision/form/PasswordSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/form/text/PasswordSpec.kt index 789d13fa..9533c917 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/form/PasswordSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/form/text/PasswordSpec.kt @@ -1,7 +1,7 @@ -package test.pl.treksoft.kvision.form +package test.pl.treksoft.kvision.form.text import pl.treksoft.kvision.core.Root -import pl.treksoft.kvision.form.Password +import pl.treksoft.kvision.form.text.Password import test.pl.treksoft.kvision.DomSpec import kotlin.browser.document import kotlin.test.Test diff --git a/src/test/kotlin/test/pl/treksoft/kvision/form/TextAreaInputSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/form/text/TextAreaInputSpec.kt index ff73b35c..560e48dd 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/form/TextAreaInputSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/form/text/TextAreaInputSpec.kt @@ -1,7 +1,7 @@ -package test.pl.treksoft.kvision.form +package test.pl.treksoft.kvision.form.text import pl.treksoft.kvision.core.Root -import pl.treksoft.kvision.form.TextAreaInput +import pl.treksoft.kvision.form.text.TextAreaInput import test.pl.treksoft.kvision.DomSpec import kotlin.browser.document import kotlin.test.Test diff --git a/src/test/kotlin/test/pl/treksoft/kvision/form/TextAreaSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/form/text/TextAreaSpec.kt index 3be42379..018713ba 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/form/TextAreaSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/form/text/TextAreaSpec.kt @@ -1,7 +1,7 @@ -package test.pl.treksoft.kvision.form +package test.pl.treksoft.kvision.form.text import pl.treksoft.kvision.core.Root -import pl.treksoft.kvision.form.TextArea +import pl.treksoft.kvision.form.text.TextArea import test.pl.treksoft.kvision.DomSpec import kotlin.browser.document import kotlin.test.Test diff --git a/src/test/kotlin/test/pl/treksoft/kvision/form/TextInputSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/form/text/TextInputSpec.kt index 0bce8656..9ae0db43 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/form/TextInputSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/form/text/TextInputSpec.kt @@ -1,8 +1,8 @@ -package test.pl.treksoft.kvision.form +package test.pl.treksoft.kvision.form.text import pl.treksoft.kvision.core.Root -import pl.treksoft.kvision.form.TEXTINPUTTYPE -import pl.treksoft.kvision.form.TextInput +import pl.treksoft.kvision.form.text.TEXTINPUTTYPE +import pl.treksoft.kvision.form.text.TextInput import test.pl.treksoft.kvision.DomSpec import kotlin.browser.document import kotlin.test.Test diff --git a/src/test/kotlin/test/pl/treksoft/kvision/form/TextSpec.kt b/src/test/kotlin/test/pl/treksoft/kvision/form/text/TextSpec.kt index 8b460e3c..74b89cba 100644 --- a/src/test/kotlin/test/pl/treksoft/kvision/form/TextSpec.kt +++ b/src/test/kotlin/test/pl/treksoft/kvision/form/text/TextSpec.kt @@ -1,7 +1,7 @@ -package test.pl.treksoft.kvision.form +package test.pl.treksoft.kvision.form.text import pl.treksoft.kvision.core.Root -import pl.treksoft.kvision.form.Text +import pl.treksoft.kvision.form.text.Text import test.pl.treksoft.kvision.DomSpec import kotlin.browser.document import kotlin.test.Test |