From 07cbe6495aa66470d56030a6d430808f927176e7 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Mon, 20 Jan 2020 13:32:07 +0100 Subject: Fix tabulator module dependencies --- .../kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'kvision-modules/kvision-tabulator/src/main') diff --git a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt index 9d9b7ae8..ac7ff533 100644 --- a/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt +++ b/kvision-modules/kvision-tabulator/src/main/kotlin/pl/treksoft/kvision/tabulator/Tabulator.kt @@ -28,13 +28,12 @@ import pl.treksoft.kvision.core.Container import pl.treksoft.kvision.core.StringBoolPair import pl.treksoft.kvision.core.Widget import pl.treksoft.kvision.i18n.I18n -import pl.treksoft.kvision.redux.ReduxStore import pl.treksoft.kvision.state.ObservableList +import pl.treksoft.kvision.state.ObservableState import pl.treksoft.kvision.table.TableType import pl.treksoft.kvision.utils.createInstance import pl.treksoft.kvision.utils.obj import pl.treksoft.kvision.utils.syncWithList -import redux.RAction import kotlin.browser.window import pl.treksoft.kvision.tabulator.js.Tabulator as JsTabulator @@ -711,8 +710,8 @@ open class Tabulator( /** * A helper function to create a Tabulator object with correct serializer and general redux store. */ - fun create( - store: ReduxStore, + fun create( + store: ObservableState, dataFactory: (S) -> List, options: TabulatorOptions = TabulatorOptions(), types: Set = setOf(), @@ -731,8 +730,8 @@ open class Tabulator( /** * A helper function to create a Tabulator object with correct serializer and dedicated redux store. */ - fun create( - store: ReduxStore, A>, + fun create( + store: ObservableState>, options: TabulatorOptions = TabulatorOptions(), types: Set = setOf(), classes: Set = setOf(), @@ -771,8 +770,8 @@ fun Container.tabulator( /** * DSL builder extension function for general redux store. */ -fun Container.tabulator( - store: ReduxStore, +fun Container.tabulator( + store: ObservableState, dataFactory: (S) -> List, options: TabulatorOptions = TabulatorOptions(), types: Set = setOf(), @@ -788,8 +787,8 @@ fun Container.tabulator( /** * DSL builder extension function for dedicated redux store (backed with a list). */ -fun Container.tabulator( - store: ReduxStore, A>, +fun Container.tabulator( + store: ObservableState>, options: TabulatorOptions = TabulatorOptions(), types: Set = setOf(), classes: Set = setOf(), -- cgit