From 2a1901128619f4f7894eb46f1d352195f4452ccc Mon Sep 17 00:00:00 2001 From: Teo Fonrouge Date: Sun, 24 Nov 2024 10:27:05 -0600 Subject: [PATCH 1/2] * updated enum entries for Tabulator Options Editor, fixed name on TICK option to TICKCROSS, added missing PROGRESS option --- .../src/jsMain/kotlin/io/kvision/tabulator/Options.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kvision-modules/kvision-tabulator/src/jsMain/kotlin/io/kvision/tabulator/Options.kt b/kvision-modules/kvision-tabulator/src/jsMain/kotlin/io/kvision/tabulator/Options.kt index fddfee03a2..b9b2356a97 100644 --- a/kvision-modules/kvision-tabulator/src/jsMain/kotlin/io/kvision/tabulator/Options.kt +++ b/kvision-modules/kvision-tabulator/src/jsMain/kotlin/io/kvision/tabulator/Options.kt @@ -114,7 +114,8 @@ enum class Editor(internal val editor: String) { TEXTAREA("textarea"), NUMBER("number"), RANGE("range"), - TICK("tick"), + TICKCROSS("tickCross"), + PROGRESS("progress"), STAR("star"), LIST("list"), DATE("date"), From 6efa7b8aae2e760cca2f9f881ab999e851991d48 Mon Sep 17 00:00:00 2001 From: Teo Fonrouge Date: Wed, 27 Nov 2024 21:45:12 -0600 Subject: [PATCH 2/2] Change KV_DEFAULT_DATE_FORMAT to var Updated KV_DEFAULT_DATE_FORMAT from a constant to a variable, allowing its value to be modified at runtime. This change provides greater flexibility for formatting dates dynamically. --- .../src/jsMain/kotlin/io/kvision/types/Date.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvision-modules/kvision-common-types/src/jsMain/kotlin/io/kvision/types/Date.kt b/kvision-modules/kvision-common-types/src/jsMain/kotlin/io/kvision/types/Date.kt index f2f0d721f0..0ed165cdc8 100644 --- a/kvision-modules/kvision-common-types/src/jsMain/kotlin/io/kvision/types/Date.kt +++ b/kvision-modules/kvision-common-types/src/jsMain/kotlin/io/kvision/types/Date.kt @@ -23,7 +23,7 @@ package io.kvision.types import kotlin.js.Date -const val KV_DEFAULT_DATE_FORMAT = "YYYY-MM-DD HH:mm:ss" +var KV_DEFAULT_DATE_FORMAT = "YYYY-MM-DD HH:mm:ss" actual typealias LocalDateTime = Date