@ostack.tech/ui-kform-scaffolder 1.3.0-beta.1 → 1.3.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -852,7 +852,7 @@ function scaffoldAppComponent(schematic, data) {
852
852
  scaffoldIssueMessages(schematic, data);
853
853
  }
854
854
  function scaffoldAppComponentFile(schematic, data) {
855
- const localeVar = (data.sourceLocale ?? "en-US").replaceAll("-", "");
855
+ const defaultSourceLocaleVar = (data.sourceLocale ?? "en-US").replaceAll("-", "");
856
856
  const activePathSearchParam = data.activePathSearchParam ?? "page";
857
857
  data.currentFile.imports.push({
858
858
  moduleName: "@ostack.tech/kform",
@@ -863,9 +863,6 @@ function scaffoldAppComponentFile(schematic, data) {
863
863
  }, {
864
864
  moduleName: "@ostack.tech/ui-kform",
865
865
  name: "FormApp"
866
- }, {
867
- moduleName: "@ostack.tech/ui-kform/locales",
868
- name: localeVar
869
866
  }, {
870
867
  moduleName: "@ostack.tech/ui-kform",
871
868
  name: "IssuesPanel"
@@ -901,12 +898,16 @@ function scaffoldAppComponentFile(schematic, data) {
901
898
  moduleName: "./i18n.ts",
902
899
  name: "DEFAULT_LOCALE"
903
900
  });
901
+ else data.currentFile.imports.push({
902
+ moduleName: "@ostack.tech/ui-kform/locales",
903
+ name: defaultSourceLocaleVar
904
+ });
904
905
  data.currentFile.declarations.push(code`
905
906
  export function ${schematic.name}App() {
906
- ${data.supportMultipleLocales ? "const { i18n, t } = useLingui();" : ""}
907
+ ${data.supportMultipleLocales && "const { i18n, t } = useLingui();"}
907
908
  const { externalContexts } = use${schematic.name}Context();
908
909
  const [activePath, setActivePath] = useSearchParam("${activePathSearchParam}");
909
- ${data.supportMultipleLocales ? "const [, setSearchLocale] = useSearchParam(LOCALE_SEARCH_PARAM, DEFAULT_LOCALE);" : ""}
910
+ ${data.supportMultipleLocales && "const [, setSearchLocale] = useSearchParam(LOCALE_SEARCH_PARAM, DEFAULT_LOCALE);"}
910
911
 
911
912
  return (
912
913
  <FormApp
@@ -921,8 +922,8 @@ function scaffoldAppComponentFile(schematic, data) {
921
922
  formTitle="${capitalCase(schematic.name)}"
922
923
  activePath={activePath}
923
924
  onActivePathChange={setActivePath}
924
- ${scaffoldIssueMessages ? `issueMessages={${constantCase(schematic.name)}_ISSUE_MESSAGES}` : ""}
925
- defaultLocale={${localeVar}}
925
+ ${scaffoldIssueMessages && `issueMessages={${constantCase(schematic.name)}_ISSUE_MESSAGES}`}
926
+ ${!data.supportMultipleLocales && `defaultLocale={${defaultSourceLocaleVar}}`}
926
927
  reportError={reportError}
927
928
  debug={import.meta.env.DEV}
928
929
  >
@@ -1022,7 +1023,8 @@ function scaffoldTopBar(schematic, data, annexesManager) {
1022
1023
  name: "getAppMessages"
1023
1024
  });
1024
1025
  return code`
1025
- <TopBar>${annexesManager ? `\n ${annexesManager}\n` : ""}
1026
+ <TopBar>
1027
+ ${annexesManager && `${annexesManager}\n`}
1026
1028
  <TopBarActions>
1027
1029
  <TopBarActionsSecondary>
1028
1030
  <LoadAction
@@ -1035,16 +1037,16 @@ function scaffoldTopBar(schematic, data, annexesManager) {
1035
1037
  mimeTypes={["${serializationMimeType}"]}
1036
1038
  extensions={[".${serializationFormat}"]}
1037
1039
  />
1038
- ${data.supportMultipleLocales ? code`
1039
- <ChangeLocaleAction
1040
- locales={LOCALES}
1041
- getLocalizationObject={getUiKFormLocale}
1042
- onLocaleChange={async (locale) => {
1043
- i18n.loadAndActivate({ locale, messages: await getAppMessages(locale) });
1044
- setSearchLocale(locale, { clearDefaultValue: true });
1045
- }}
1046
- />
1047
- ` : ""}
1040
+ ${data.supportMultipleLocales && code`
1041
+ <ChangeLocaleAction
1042
+ locales={LOCALES}
1043
+ getLocalizationObject={getUiKFormLocale}
1044
+ onLocaleChange={async (locale) => {
1045
+ i18n.loadAndActivate({ locale, messages: await getAppMessages(locale) });
1046
+ setSearchLocale(locale, { clearDefaultValue: true });
1047
+ }}
1048
+ />
1049
+ `}
1048
1050
  <ValidateAction />
1049
1051
  </TopBarActionsSecondary>
1050
1052
  <SubmitAction
@@ -1063,7 +1065,8 @@ function scaffoldTopBar(schematic, data, annexesManager) {
1063
1065
  }}
1064
1066
  onSuccessfulSubmit={(redirectTo: string) => {
1065
1067
  window.location.href = redirectTo;
1066
- }}${data.useTableValuesSerializer ? "\nconvertExternalIssuesTableRowIndicesToIds" : ""}
1068
+ }}
1069
+ ${data.useTableValuesSerializer && "convertExternalIssuesTableRowIndicesToIds"}
1067
1070
  />
1068
1071
  </TopBarActions>
1069
1072
  </TopBar>
@@ -1075,10 +1078,13 @@ function scaffoldAnnex(data, annex) {
1075
1078
  name: "Annex"
1076
1079
  });
1077
1080
  const title = sentenceCase(annex.schematic.name);
1078
- const titleProp = data.supportMultipleLocales ? `title={t\`${title}\`}` : `title=${JSON.stringify(title)}`;
1079
- const documentTitleProp = annex.formPages.length === 1 && annex.schematic === annex.formPages[0].schematic ? " documentTitle={null}" : "";
1081
+ const props = [
1082
+ `path="${annex.data.currentPath}"`,
1083
+ data.supportMultipleLocales ? `title={t\`${title}\`}` : `title=${JSON.stringify(title)}`,
1084
+ annex.formPages.length === 1 && annex.schematic === annex.formPages[0].schematic && "documentTitle={null}"
1085
+ ];
1080
1086
  return code`
1081
- <Annex path="${annex.data.currentPath}" ${titleProp}${documentTitleProp}>
1087
+ <Annex ${props.filter(Boolean).join(" ")}>
1082
1088
  ${scaffoldFormPages(data, annex)}
1083
1089
  </Annex>
1084
1090
  `;
@@ -1094,7 +1100,7 @@ function scaffoldFormPages(data, annex) {
1094
1100
  });
1095
1101
  return code`
1096
1102
  <FormPages>
1097
- ${annex.formPages.length > 1 ? `<FormPagesNavigation />` : ""}
1103
+ ${annex.formPages.length > 1 && `<FormPagesNavigation />`}
1098
1104
  ${annex.formPages.map((formPage) => scaffoldFormPage(data, annex, formPage)).join("\n\n")}
1099
1105
  </FormPages>
1100
1106
  `;
@@ -1107,20 +1113,18 @@ function scaffoldFormPage(data, annex, formPage) {
1107
1113
  moduleName: `./${joinPaths(formPage.data.currentDir.slice(data.currentDir.length + (data.currentDir.endsWith("/") ? 0 : 1)), formPage.schematic.name)}.tsx`,
1108
1114
  name: formPage.schematic.name
1109
1115
  });
1110
- let issueMessagesProp = "";
1116
+ const props = [];
1111
1117
  if (shouldScaffoldIssueMessages(data) && formPage.data.currentPath !== "/") {
1112
1118
  data.currentFile.imports.push({
1113
1119
  moduleName: `./${joinPaths(formPage.data.currentDir.slice(data.currentDir.length + (data.currentDir.endsWith("/") ? 0 : 1)), formPage.schematic.name)}IssueMessages.tsx`,
1114
1120
  name: `${constantCase(formPage.schematic.name)}_ISSUE_MESSAGES`
1115
1121
  });
1116
- issueMessagesProp = ` issueMessages={${constantCase(formPage.schematic.name)}_ISSUE_MESSAGES}`;
1122
+ props.push(`issueMessages={${constantCase(formPage.schematic.name)}_ISSUE_MESSAGES}`);
1117
1123
  }
1118
- const pathProp = annex.schematic === formPage.schematic ? "" : ` path="${formPage.data.currentPath.slice(annex.data.currentPath.length + (annex.data.currentPath.endsWith("/") ? 0 : 1))}"`;
1119
1124
  const title = sentenceCase(formPage.schematic.name);
1120
- const titleProp = data.supportMultipleLocales ? `title={t\`${title}\`}` : `title=${JSON.stringify(title)}`;
1121
- const documentTitleProp = formPage.data.currentPath === "/" ? " documentTitle={null}" : "";
1125
+ props.push(annex.schematic === formPage.schematic && `path="${formPage.data.currentPath.slice(annex.data.currentPath.length + (annex.data.currentPath.endsWith("/") ? 0 : 1))}"`, data.supportMultipleLocales ? `title={t\`${title}\`}` : `title=${JSON.stringify(title)}`, `code="${formPage.schematic.name?.[0].toUpperCase()}"`, formPage.data.currentPath === "/" && "documentTitle={null}");
1122
1126
  return code`
1123
- <FormPage${pathProp} ${titleProp} code="${formPage.schematic.name?.[0].toUpperCase()}"${documentTitleProp}${issueMessagesProp}>
1127
+ <FormPage ${props.filter(Boolean).join(" ")}>
1124
1128
  <${formPage.schematic.name} />
1125
1129
  </FormPage>
1126
1130
  `;
@@ -1158,19 +1162,18 @@ var gradle_properties_default = "group=<%= gradlePropertiesGroup %>\nversion=0.0
1158
1162
  // src/scaffolding/templates/gradle/gradle-daemon-jvm.properties.ejs?raw
1159
1163
  var gradle_daemon_jvm_properties_default = "#This file is generated by updateDaemonJvm\ntoolchainUrl.FREE_BSD.AARCH64=https\\://api.foojay.io/disco/v3.0/ids/cb205e54cea236622eee3d62deb2c768/redirect\ntoolchainUrl.FREE_BSD.X86_64=https\\://api.foojay.io/disco/v3.0/ids/452acd2202c1005abda962c6dae7fc5f/redirect\ntoolchainUrl.LINUX.AARCH64=https\\://api.foojay.io/disco/v3.0/ids/cb205e54cea236622eee3d62deb2c768/redirect\ntoolchainUrl.LINUX.X86_64=https\\://api.foojay.io/disco/v3.0/ids/452acd2202c1005abda962c6dae7fc5f/redirect\ntoolchainUrl.MAC_OS.AARCH64=https\\://api.foojay.io/disco/v3.0/ids/faa59212208d027d066d1bbe337c5da5/redirect\ntoolchainUrl.MAC_OS.X86_64=https\\://api.foojay.io/disco/v3.0/ids/adf5b89d64773eff73f900e61dd2d632/redirect\ntoolchainUrl.UNIX.AARCH64=https\\://api.foojay.io/disco/v3.0/ids/cb205e54cea236622eee3d62deb2c768/redirect\ntoolchainUrl.UNIX.X86_64=https\\://api.foojay.io/disco/v3.0/ids/452acd2202c1005abda962c6dae7fc5f/redirect\ntoolchainUrl.WINDOWS.AARCH64=https\\://api.foojay.io/disco/v3.0/ids/e0e37f85a97c5f2df685b37b14a25072/redirect\ntoolchainUrl.WINDOWS.X86_64=https\\://api.foojay.io/disco/v3.0/ids/ccc3884e65cd85bb71a09d2223c77229/redirect\ntoolchainVersion=<%= jvmToolchainVersion %>\n";
1160
1164
  // src/scaffolding/templates/gradle/libs.versions.toml.ejs?raw
1161
- var libs_versions_toml_default = "[versions]\n# Plugins\nkotlin = \"2.4.21\"\nnodeGradle = \"7.1.0\"\n# Libraries\nkform = \"<%= kFormVersion %>\"\nkotlinxCoroutines = \"1.11.0\"\n<%_ if (includeKotlinxDatetime) { -%>\nkotlinxDatetime = \"0.8.0\"\n<%_ } -%>\n<%_ if (serializationFormat === \"json\") { -%>\nkotlinxSerialization = \"1.12.0\"\n<%_ } -%>\n<%_ if (includeKtMath) { -%>\nktMath = \"0.10.2\"\n<%_ } -%>\nslf4j = \"2.0.19\"\n<%_ if (serializationFormat === \"xml\") { -%>\nxmlutil = \"0.91.1\"\n<%_ } -%>\n<%_ if (includeKotlinxDatetime) { -%>\n# npm libraries\njsJodaTimezone = \"2.23.0\"\n<%_ } -%>\n# Runtimes\njvmToolchain = \"<%= jvmToolchainVersion %>\"\nnodejs = \"<%= nodejsVersion %>\"\n\n[libraries]\nkform = { module = \"tech.ostack:kform\", version.ref = \"kform\" }\nkform-jsBindings = { module = \"tech.ostack:kform-js-bindings\", version.ref = \"kform\" }\nkform-test = { module = \"tech.ostack:kform-test\", version.ref = \"kform\" }\nkotlinxCoroutines-test = { module = \"org.jetbrains.kotlinx:kotlinx-coroutines-test\", version.ref = \"kotlinxCoroutines\" }\n<%_ if (includeKotlinxDatetime) { -%>\nkotlinxDatetime = { module = \"org.jetbrains.kotlinx:kotlinx-datetime\", version.ref = \"kotlinxDatetime\" }\n<%_ } -%>\n<%_ if (serializationFormat === \"json\") { -%>\nkotlinxSerialization-json = { module = \"org.jetbrains.kotlinx:kotlinx-serialization-json\", version.ref = \"kotlinxSerialization\" }\n<%_ } -%>\n<%_ if (includeKtMath) { -%>\nktMath = { module = \"io.github.gciatto:kt-math\", version.ref = \"ktMath\" }\n<%_ } -%>\nslf4j-simple = { module = \"org.slf4j:slf4j-simple\", version.ref = \"slf4j\" }\n<%_ if (serializationFormat === \"xml\") { -%>\nxmlutil-serialization = { module = \"io.github.pdvrieze.xmlutil:serialization\", version.ref = \"xmlutil\" }\n<%_ } -%>\n# `build-logic` plugins\nnodeGradle-plugin = { module = \"com.github.node-gradle:gradle-node-plugin\", version.ref = \"nodeGradle\" }\n\n[plugins]\nkotlin-multiplatform = { id = \"org.jetbrains.kotlin.multiplatform\", version.ref = \"kotlin\" }\nkotlin-serialization = { id = \"org.jetbrains.kotlin.plugin.serialization\", version.ref = \"kotlin\" }\n";
1165
+ var libs_versions_toml_default = "[versions]\n# Plugins\nkotlin = \"<%= dependencyVersions.kotlin %>\"\nnodeGradle = \"<%= dependencyVersions.nodeGradle %>\"\n# Libraries\nkform = \"<%= kFormVersion %>\"\nkotlinxCoroutines = \"<%= dependencyVersions.kotlinxCoroutines %>\"\n<%_ if (includeKotlinxDatetime) { -%>\nkotlinxDatetime = \"<%= dependencyVersions.kotlinxDatetime %>\"\n<%_ } -%>\n<%_ if (serializationFormat === \"json\") { -%>\nkotlinxSerialization = \"<%= dependencyVersions.kotlinxSerialization %>\"\n<%_ } -%>\n<%_ if (includeKtMath) { -%>\nktMath = \"<%= dependencyVersions.ktMath %>\"\n<%_ } -%>\nslf4j = \"<%= dependencyVersions.slf4j %>\"\n<%_ if (serializationFormat === \"xml\") { -%>\nxmlutil = \"<%= dependencyVersions.xmlutil %>\"\n<%_ } -%>\n<%_ if (includeKotlinxDatetime) { -%>\n# npm libraries\njsJodaTimezone = \"<%= dependencyVersions.jsJodaTimezone %>\"\n<%_ } -%>\n# Runtimes\njvmToolchain = \"<%= jvmToolchainVersion %>\"\nnodejs = \"<%= nodejsVersion %>\"\n\n[libraries]\nkform = { module = \"tech.ostack:kform\", version.ref = \"kform\" }\nkform-jsBindings = { module = \"tech.ostack:kform-js-bindings\", version.ref = \"kform\" }\nkform-test = { module = \"tech.ostack:kform-test\", version.ref = \"kform\" }\nkotlinxCoroutines-test = { module = \"org.jetbrains.kotlinx:kotlinx-coroutines-test\", version.ref = \"kotlinxCoroutines\" }\n<%_ if (includeKotlinxDatetime) { -%>\nkotlinxDatetime = { module = \"org.jetbrains.kotlinx:kotlinx-datetime\", version.ref = \"kotlinxDatetime\" }\n<%_ } -%>\n<%_ if (serializationFormat === \"json\") { -%>\nkotlinxSerialization-json = { module = \"org.jetbrains.kotlinx:kotlinx-serialization-json\", version.ref = \"kotlinxSerialization\" }\n<%_ } -%>\n<%_ if (includeKtMath) { -%>\nktMath = { module = \"io.github.gciatto:kt-math\", version.ref = \"ktMath\" }\n<%_ } -%>\nslf4j-simple = { module = \"org.slf4j:slf4j-simple\", version.ref = \"slf4j\" }\n<%_ if (serializationFormat === \"xml\") { -%>\nxmlutil-serialization = { module = \"io.github.pdvrieze.xmlutil:serialization\", version.ref = \"xmlutil\" }\n<%_ } -%>\n# `build-logic` plugins\nnodeGradle-plugin = { module = \"com.github.node-gradle:gradle-node-plugin\", version.ref = \"nodeGradle\" }\n\n[plugins]\nkotlin-multiplatform = { id = \"org.jetbrains.kotlin.multiplatform\", version.ref = \"kotlin\" }\nkotlin-serialization = { id = \"org.jetbrains.kotlin.plugin.serialization\", version.ref = \"kotlin\" }\n";
1162
1166
  // src/scaffolding/templates/react-app/build.gradle.kts.ejs?raw
1163
- var build_gradle_kts_default$1 = "import com.github.gradle.node.npm.task.NpmTask\n\nplugins {\n id(\"node-gradle-conventions\")\n base\n}\n\nval sharedPackage = project(\":shared\").file(\"build/<%= formId %>-shared-$version.tgz\")\n\nval npmInstallShared = tasks.register<NpmTask>(\"npmInstallShared\") {\n group = \"build\"\n dependsOn(\":shared:packJsPackage\")\n npmCommand = listOf(\"install\", \"<%= formId %>-shared@file:$sharedPackage\")\n\n inputs.file(sharedPackage)\n outputs.dir(\"node_modules/<%= formId %>-shared\")\n}\n\ntasks.npmInstall {\n dependsOn(npmInstallShared)\n}\n\ntasks.register<NpmTask>(\"npmRunDev\") {\n group = \"development\"\n dependsOn(tasks.npmInstall)\n npmCommand = listOf(\"run\", \"dev\")\n}\n\nprivate fun NpmTask.npmRunBuild(buildReason: String) {\n group = \"build\"\n dependsOn(tasks.npmInstall)\n npmCommand = listOf(\"run\", \"build\")\n environment = mapOf(\"VITE_BUILD_REASON\" to buildReason)\n\n inputs.dir(\"src\")\n inputs.file(sharedPackage)\n inputs.file(\"index.html\")\n inputs.file(\"package.json\")\n inputs.file(\"tsconfig.json\")\n inputs.file(\"tsconfig.app.json\")\n inputs.file(\"tsconfig.node.json\")\n inputs.file(\"vite.config.ts\")\n outputs.dir(\"build/dist\")\n}\n\nval npmRunBuild = tasks.register<NpmTask>(\"npmRunBuild\") {\n npmRunBuild(\"production\")\n}\n\nval npmRunBuildPreview = tasks.register<NpmTask>(\"npmRunBuildPreview\") {\n npmRunBuild(\"preview\")\n}\n\ntasks.register<NpmTask>(\"npmRunPreview\") {\n group = \"development\"\n dependsOn(npmRunBuildPreview)\n npmCommand = listOf(\"run\", \"preview\")\n}\n\nval npmRunLint = tasks.register<NpmTask>(\"npmRunLint\") {\n group = \"verification\"\n dependsOn(tasks.npmInstall)\n npmCommand = listOf(\"run\", \"lint\")\n\n inputs.dir(\"src\")\n inputs.file(\".oxlintrc.json\")\n inputs.file(\"package.json\")\n inputs.file(\"tsconfig.json\")\n inputs.file(\"tsconfig.app.json\")\n inputs.file(\"tsconfig.node.json\")\n outputs.upToDateWhen { true }\n}\n\n<%_ if (supportMultipleLocales) { -%>\nval npmRunI18nExtract = tasks.register<NpmTask>(\"npmRunI18nExtract\") {\n group = \"i18n\"\n dependsOn(tasks.npmInstall)\n npmCommand = listOf(\"run\", \"i18n:extract\")\n\n inputs.dir(\"src\")\n inputs.file(\"lingui.config.ts\")\n inputs.file(\"package.json\")\n outputs.dir(\"src/locales\")\n}\n<%_ } -%>\n\ntasks.assemble {\n <%_ if (supportMultipleLocales) { -%>\n dependsOn(npmRunI18nExtract, npmRunBuild)\n <%_ } else { -%>\n dependsOn(npmRunBuild)\n <%_ } -%>\n}\n\ntasks.check {\n dependsOn(npmRunLint)\n}\n";
1167
+ var build_gradle_kts_default$1 = "import com.github.gradle.node.npm.task.NpmTask\n\nplugins {\n id(\"node-gradle-conventions\")\n base\n}\n\nval sharedPackage = project(\":shared\").file(\"build/<%= formId %>-shared-$version.tgz\")\n\nval npmInstallShared = tasks.register<NpmTask>(\"npmInstallShared\") {\n group = \"build\"\n dependsOn(\":shared:packJsPackage\")\n npmCommand = listOf(\"install\", \"<%= formId %>-shared@file:$sharedPackage\")\n\n inputs.file(sharedPackage)\n outputs.dir(\"node_modules/<%= formId %>-shared\")\n}\n\ntasks.npmInstall {\n dependsOn(npmInstallShared)\n}\n\ntasks.register<NpmTask>(\"npmRunDev\") {\n group = \"development\"\n dependsOn(tasks.npmInstall)\n npmCommand = listOf(\"run\", \"dev\")\n}\n\nprivate fun NpmTask.npmRunBuild(buildReason: String) {\n group = \"build\"\n dependsOn(tasks.npmInstall)\n <%_ if (supportMultipleLocales) { -%>\n mustRunAfter(npmRunI18nExtract)\n <%_ } -%>\n npmCommand = listOf(\"run\", \"build\")\n environment = mapOf(\"VITE_BUILD_REASON\" to buildReason)\n\n inputs.dir(\"src\")\n inputs.file(sharedPackage)\n inputs.file(\"index.html\")\n inputs.file(\"package.json\")\n inputs.file(\"tsconfig.json\")\n inputs.file(\"tsconfig.app.json\")\n inputs.file(\"tsconfig.node.json\")\n inputs.file(\"vite.config.ts\")\n outputs.dir(\"build/dist\")\n}\n\nval npmRunBuild = tasks.register<NpmTask>(\"npmRunBuild\") {\n npmRunBuild(\"production\")\n}\n\nval npmRunBuildPreview = tasks.register<NpmTask>(\"npmRunBuildPreview\") {\n npmRunBuild(\"preview\")\n}\n\ntasks.register<NpmTask>(\"npmRunPreview\") {\n group = \"development\"\n dependsOn(npmRunBuildPreview)\n npmCommand = listOf(\"run\", \"preview\")\n}\n\nval npmRunLint = tasks.register<NpmTask>(\"npmRunLint\") {\n group = \"verification\"\n dependsOn(tasks.npmInstall)\n <%_ if (supportMultipleLocales) { -%>\n mustRunAfter(npmRunI18nExtract)\n <%_ } -%>\n npmCommand = listOf(\"run\", \"lint\")\n\n inputs.dir(\"src\")\n inputs.file(\".oxlintrc.json\")\n inputs.file(\"package.json\")\n inputs.file(\"tsconfig.json\")\n inputs.file(\"tsconfig.app.json\")\n inputs.file(\"tsconfig.node.json\")\n outputs.upToDateWhen { true }\n}\n\n<%_ if (supportMultipleLocales) { -%>\nval npmRunI18nExtract = tasks.register<NpmTask>(\"npmRunI18nExtract\") {\n group = \"i18n\"\n dependsOn(tasks.npmInstall)\n npmCommand = listOf(\"run\", \"i18n:extract\")\n\n inputs.dir(\"src\")\n inputs.file(\"lingui.config.ts\")\n inputs.file(\"package.json\")\n outputs.dir(\"src/locales\")\n}\n<%_ } -%>\n\ntasks.assemble {\n <%_ if (supportMultipleLocales) { -%>\n dependsOn(npmRunI18nExtract, npmRunBuild)\n <%_ } else { -%>\n dependsOn(npmRunBuild)\n <%_ } -%>\n}\n\ntasks.check {\n dependsOn(npmRunLint)\n}\n";
1164
1168
  // src/scaffolding/templates/settings.gradle.kts.ejs?raw
1165
- var settings_gradle_kts_default = "plugins {\n id(\"org.gradle.toolchains.foojay-resolver-convention\") version \"1.0.0\"\n}\n\n@Suppress(\"UnstableApiUsage\")\ndependencyResolutionManagement {\n repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS\n repositories {\n mavenCentral()\n\n // Node.js download repository\n ivy {\n name = \"Node.js\"\n setUrl(\"https://nodejs.org/dist/\")\n patternLayout { artifact(\"v[revision]/[artifact](-v[revision]-[classifier]).[ext]\") }\n metadataSources { artifact() }\n content { includeModule(\"org.nodejs\", \"node\") }\n }\n }\n}\n\nincludeBuild(\"build-logic\")\ninclude(\"shared\", \"react-app\")\n\nrootProject.name = \"<%= formId %>\"\n";
1169
+ var settings_gradle_kts_default = "plugins {\n id(\"org.gradle.toolchains.foojay-resolver-convention\") version \"<%= dependencyVersions.foojayResolverConvention %>\"\n}\n\n@Suppress(\"UnstableApiUsage\")\ndependencyResolutionManagement {\n repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS\n repositories {\n mavenCentral()\n\n // Node.js download repository\n ivy {\n name = \"Node.js\"\n setUrl(\"https://nodejs.org/dist/\")\n patternLayout { artifact(\"v[revision]/[artifact](-v[revision]-[classifier]).[ext]\") }\n metadataSources { artifact() }\n content { includeModule(\"org.nodejs\", \"node\") }\n }\n }\n}\n\nincludeBuild(\"build-logic\")\ninclude(\"shared\", \"react-app\")\n\nrootProject.name = \"<%= formId %>\"\n";
1166
1170
  // src/scaffolding/templates/shared/build.gradle.kts.ejs?raw
1167
1171
  var build_gradle_kts_default = "import com.github.gradle.node.npm.task.NpmTask\nimport org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsEnvSpec\nimport org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsPlugin\n\nplugins {\n id(\"node-gradle-conventions\")\n alias(libs.plugins.kotlin.multiplatform)\n alias(libs.plugins.kotlin.serialization)\n}\n\n/** Configure Node.js used by Kotlin/JS. */\nplugins.withType<NodeJsPlugin> {\n configure<NodeJsEnvSpec> {\n downloadBaseUrl = null // Prevent repository declaration\n }\n}\n\nkotlin {\n jvmToolchain(libs.versions.jvmToolchain.get().toInt())\n jvm {\n testRuns[\"test\"].executionTask.configure { useJUnitPlatform() }\n }\n js {\n compilerOptions {\n target = \"es2015\"\n freeCompilerArgs.add(\"-Xes-long-as-bigint\")\n freeCompilerArgs.add(\"-Xwarning-level=NON_EXPORTABLE_TYPE:disabled\")\n }\n binaries.library()\n browser { testTask { useMocha() } }\n generateTypeScriptDefinitions()\n }\n compilerOptions {\n // Opt in to the experimental `JsExport` annotation\n optIn.add(\"kotlin.js.ExperimentalJsExport\")\n }\n\n sourceSets {\n commonMain.dependencies {\n api(libs.kform)\n <%_ if (includeKotlinxDatetime) { -%>\n api(libs.kotlinxDatetime)\n <%_ } -%>\n <%_ if (serializationFormat === \"json\") { -%>\n api(libs.kotlinxSerialization.json)\n <%_ } -%>\n <%_ if (includeKtMath) { -%>\n api(libs.ktMath)\n <%_ } -%>\n <%_ if (serializationFormat === \"xml\") { -%>\n api(libs.xmlutil.serialization)\n <%_ } -%>\n }\n commonTest.dependencies {\n implementation(kotlin(\"test\"))\n implementation(libs.kform.test)\n implementation(libs.kotlinxCoroutines.test)\n }\n jvmTest.dependencies {\n implementation(libs.slf4j.simple)\n }\n jsMain.dependencies {\n implementation(libs.kform.jsBindings)\n <%_ if (includeKotlinxDatetime) { -%>\n implementation(npm(\"@js-joda/timezone\", libs.versions.jsJodaTimezone.get()))\n <%_ } -%>\n }\n }\n}\n\n// Packs the result of the JS compilation, for consumption by the React app\ntasks.register<NpmTask>(\"packJsPackage\") {\n group = \"build\"\n dependsOn(\"jsBrowserProductionLibraryDistribution\")\n\n val libraryDir = \"build/dist/js/productionLibrary\"\n npmCommand = listOf(\"pack\", libraryDir, \"--pack-destination\", \"build\")\n\n inputs.dir(libraryDir)\n outputs.file(\"build/<%= formId %>-shared-$version.tgz\")\n}\n";
1168
1172
  // src/scaffolding/templates/shared/src/jsMain/kotlin/JsJodaTimeZone.kt.ejs?raw
1169
1173
  var JsJodaTimeZone_kt_default = "package <%= filePackage %>\n\n// See: https://github.com/Kotlin/kotlinx-datetime?tab=readme-ov-file#note-about-time-zones-in-js\n@JsModule(\"@js-joda/timezone\")\n@JsNonModule\nexternal object JsJodaTimeZoneModule\n\n@JsExport\nval jsJodaTz = JsJodaTimeZoneModule\n";
1170
1174
  // src/scaffolding/scaffolders/scaffoldGradleProject.ts
1171
- var DEFAULT_JVM_TOOLCHAIN_VERSION = "21";
1172
- var DEFAULT_NODEJS_VERSION = "24.22.2";
1173
1175
  function scaffoldGradleProject(schematic, data) {
1176
+ const dependencyVersions = JSON.parse("{\"kotlin\":\"2.4.21\",\"nodeGradle\":\"7.1.0\",\"kotlinxCoroutines\":\"1.11.0\",\"kotlinxDatetime\":\"0.8.0\",\"kotlinxSerialization\":\"1.12.0\",\"ktMath\":\"0.10.2\",\"slf4j\":\"2.0.20\",\"xmlutil\":\"0.91.1\",\"jsJodaTimezone\":\"2.23.0\",\"jvmToolchain\":\"21\",\"nodejs\":\"24.22.2\",\"foojayResolverConvention\":\"1.0.0\"}");
1174
1177
  const ejsData = {
1175
1178
  gradlePropertiesGroup: data.gradlePropertiesGroup ?? data.currentPackage,
1176
1179
  filePackage: data.currentPackage,
@@ -1181,8 +1184,9 @@ function scaffoldGradleProject(schematic, data) {
1181
1184
  serializationFormat: data.serializationFormat ?? "json",
1182
1185
  includeKotlinxDatetime: data.includeKotlinxDatetime ?? usesKotlinxDatetime(schematic, data),
1183
1186
  includeKtMath: data.includeKtMath ?? usesKtMath(schematic),
1184
- jvmToolchainVersion: data.jvmToolchainVersion ?? "21",
1185
- nodejsVersion: data.nodejsVersion ?? "24.22.2"
1187
+ dependencyVersions,
1188
+ jvmToolchainVersion: data.jvmToolchainVersion ?? dependencyVersions.jvmToolchain,
1189
+ nodejsVersion: data.nodejsVersion ?? dependencyVersions.nodejs
1186
1190
  };
1187
1191
  addEjsTemplateFile(data, "gradle.properties", gradle_properties_default, ejsData);
1188
1192
  addEjsTemplateFile(data, "settings.gradle.kts", settings_gradle_kts_default, ejsData);
@@ -1364,7 +1368,7 @@ var _oxlintrc_json_default = "{\n \"$schema\": \"./node_modules/oxlint/configur
1364
1368
  // src/scaffolding/templates/react-app/index.html.ejs?raw
1365
1369
  var index_html_default = "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <link rel=\"icon\" type=\"image/svg+xml\" href=\"/favicon.svg\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <title><%= formTitle %></title>\n <style>\n body {\n margin: 0;\n }\n </style>\n </head>\n <body>\n <div id=\"<%= formId %>-app-root\"></div>\n <script type=\"module\">\n import { renderRoot } from \"/src/main.tsx\";\n\n renderRoot(<%- encodedExternalContexts %>);\n <\/script>\n </body>\n</html>\n";
1366
1370
  // src/scaffolding/templates/react-app/package.json.ejs?raw
1367
- var package_json_default = "{\n \"name\": \"<%= formId %>-react-app\",\n \"private\": true,\n \"version\": \"0.0.0\",\n \"type\": \"module\",\n \"scripts\": {\n \"dev\": \"vite\",\n \"build\": \"tsc -b && vite build\",\n \"lint\": \"oxlint\",\n \"preview\": \"vite preview\"<%_ if (supportMultipleLocales) { -%>,\n \"i18n:extract\": \"lingui extract --clean\"\n <%_ } -%>\n },\n \"dependencies\": {\n \"@fortawesome/fontawesome-svg-core\": \"<%= dependencyVersions[\"@fortawesome/fontawesome-svg-core\"] %>\",\n \"@fortawesome/free-regular-svg-icons\": \"<%= dependencyVersions[\"@fortawesome/free-regular-svg-icons\"] %>\",\n \"@fortawesome/free-solid-svg-icons\": \"<%= dependencyVersions[\"@fortawesome/free-solid-svg-icons\"] %>\",\n <%_ if (supportMultipleLocales) { -%>\n \"@lingui/react\": \"^6.7.0\",\n <%_ } -%>\n \"@ostack.tech/kform-react\": \"^<%= kFormVersion %>\",\n \"@ostack.tech/ui\": \"^<%= ostackUiVersion %>\",\n \"@ostack.tech/ui-kform\": \"^<%= ostackUiVersion %>\",\n \"date-fns\": \"<%= dependencyVersions[\"date-fns\"] %>\",\n \"<%= formId %>-shared\": \"file:../shared/build/<%= formId %>-shared-0.0.1.tgz\",\n \"react\": \"<%= dependencyVersions.react %>\",\n \"react-dom\": \"<%= dependencyVersions[\"react-dom\"] %>\"\n },\n \"devDependencies\": {\n <%_ if (supportMultipleLocales || useReactCompiler) { -%>\n \"@babel/core\": \"^8.0.5\",\n <%_ } -%>\n <%_ if (supportMultipleLocales) { -%>\n \"@lingui/babel-plugin-lingui-macro\": \"^6.7.0\",\n \"@lingui/vite-plugin\": \"^6.7.0\",\n <%_ } -%>\n <%_ if (supportMultipleLocales || useReactCompiler) { -%>\n \"@rolldown/plugin-babel\": \"^0.2.4\",\n <%_ } -%>\n \"@types/node\": \"<%= dependencyVersions[\"@types/node\"] %>\",\n \"@types/ostack.tech__kform\": \"npm:@ostack.tech/kform@^<%= kFormVersion %>\",\n \"@types/react\": \"<%= dependencyVersions[\"@types/react\"] %>\",\n \"@types/react-dom\": \"<%= dependencyVersions[\"@types/react-dom\"] %>\",\n \"@vitejs/plugin-react\": \"<%= dependencyVersions[\"@vitejs/plugin-react\"] %>\",\n <%_ if (useReactCompiler) { -%>\n \"babel-plugin-react-compiler\": \"^1.0.0\",\n <%_ } -%>\n <%_ if (supportMultipleLocales) { -%>\n \"eslint-plugin-lingui\": \"^0.16.0\",\n <%_ } -%>\n \"oxlint\": \"<%= dependencyVersions.oxlint %>\",\n \"oxlint-tsgolint\": \"<%= dependencyVersions[\"oxlint-tsgolint\"] %>\",\n \"sass-embedded\": \"<%= dependencyVersions[\"sass-embedded\"] %>\",\n \"typescript\": \"<%= dependencyVersions.typescript %>\",\n \"vite\": \"<%= dependencyVersions.vite %>\"\n }\n}\n";
1371
+ var package_json_default = "{\n \"name\": \"<%= formId %>-react-app\",\n \"private\": true,\n \"version\": \"0.0.0\",\n \"type\": \"module\",\n \"scripts\": {\n \"dev\": \"vite\",\n \"build\": \"tsc -b && vite build\",\n \"lint\": \"oxlint\",\n \"preview\": \"vite preview\"<%_ if (supportMultipleLocales) { -%>,\n \"i18n:extract\": \"lingui extract --clean\"\n <%_ } -%>\n },\n \"dependencies\": {\n \"@fortawesome/fontawesome-svg-core\": \"<%= dependencyVersions[\"@fortawesome/fontawesome-svg-core\"] %>\",\n \"@fortawesome/free-regular-svg-icons\": \"<%= dependencyVersions[\"@fortawesome/free-regular-svg-icons\"] %>\",\n \"@fortawesome/free-solid-svg-icons\": \"<%= dependencyVersions[\"@fortawesome/free-solid-svg-icons\"] %>\",\n <%_ if (supportMultipleLocales) { -%>\n \"@lingui/react\": \"<%= dependencyVersions[\"@lingui/react\"] %>\",\n <%_ } -%>\n \"@ostack.tech/kform-react\": \"^<%= kFormVersion %>\",\n \"@ostack.tech/ui\": \"^<%= ostackUiVersion %>\",\n \"@ostack.tech/ui-kform\": \"^<%= ostackUiVersion %>\",\n \"date-fns\": \"<%= dependencyVersions[\"date-fns\"] %>\",\n \"<%= formId %>-shared\": \"file:../shared/build/<%= formId %>-shared-0.0.1.tgz\",\n \"react\": \"<%= dependencyVersions.react %>\",\n \"react-dom\": \"<%= dependencyVersions[\"react-dom\"] %>\"\n },\n \"devDependencies\": {\n <%_ if (useReactCompiler) { -%>\n \"@babel/core\": \"<%= dependencyVersions[\"@babel/core\"] %>\",\n <%_ } -%>\n <%_ if (supportMultipleLocales) { -%>\n \"@lingui/vite-plugin\": \"<%= dependencyVersions[\"@lingui/vite-plugin\"] %>\",\n <%_ } -%>\n <%_ if (useReactCompiler) { -%>\n \"@rolldown/plugin-babel\": \"<%= dependencyVersions[\"@rolldown/plugin-babel\"] %>\",\n <%_ } -%>\n \"@types/node\": \"<%= dependencyVersions[\"@types/node\"] %>\",\n \"@types/ostack.tech__kform\": \"npm:@ostack.tech/kform@^<%= kFormVersion %>\",\n \"@types/react\": \"<%= dependencyVersions[\"@types/react\"] %>\",\n \"@types/react-dom\": \"<%= dependencyVersions[\"@types/react-dom\"] %>\",\n \"@vitejs/plugin-react\": \"<%= dependencyVersions[\"@vitejs/plugin-react\"] %>\",\n <%_ if (useReactCompiler) { -%>\n \"babel-plugin-react-compiler\": \"<%= dependencyVersions[\"babel-plugin-react-compiler\"] %>\",\n <%_ } -%>\n <%_ if (supportMultipleLocales) { -%>\n \"eslint-plugin-lingui\": \"<%= dependencyVersions[\"eslint-plugin-lingui\"] %>\",\n <%_ } -%>\n \"oxlint\": \"<%= dependencyVersions.oxlint %>\",\n \"oxlint-tsgolint\": \"<%= dependencyVersions[\"oxlint-tsgolint\"] %>\",\n \"sass-embedded\": \"<%= dependencyVersions[\"sass-embedded\"] %>\",\n \"typescript\": \"<%= dependencyVersions.typescript %>\",\n \"vite\": \"<%= dependencyVersions.vite %>\"\n }\n}\n";
1368
1372
  // src/scaffolding/templates/react-app/public/favicon.svg?raw
1369
1373
  var favicon_default = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"46\" fill=\"none\" viewBox=\"0 0 48 46\"><path fill=\"#863bff\" d=\"M25.946 44.938c-.664.845-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.287c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.497 0-3.578-1.842-3.578H1.237c-.92 0-1.456-1.04-.92-1.788L10.013.474c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.579 1.842 3.579h11.377c.943 0 1.473 1.088.89 1.83L25.947 44.94z\" style=\"fill:#863bff;fill:color(display-p3 .5252 .23 1);fill-opacity:1\"/><mask id=\"a\" width=\"48\" height=\"46\" x=\"0\" y=\"0\" maskUnits=\"userSpaceOnUse\" style=\"mask-type:alpha\"><path fill=\"#000\" d=\"M25.842 44.938c-.664.844-2.021.375-2.021-.698V33.937a2.26 2.26 0 0 0-2.262-2.262H10.183c-.92 0-1.456-1.04-.92-1.788l7.48-10.471c1.07-1.498 0-3.579-1.842-3.579H1.133c-.92 0-1.456-1.04-.92-1.787L9.91.473c.214-.297.556-.474.92-.474h28.894c.92 0 1.456 1.04.92 1.788l-7.48 10.471c-1.07 1.498 0 3.578 1.842 3.578h11.377c.943 0 1.473 1.088.89 1.832L25.843 44.94z\" style=\"fill:#000;fill-opacity:1\"/></mask><g mask=\"url(#a)\"><g filter=\"url(#b)\"><ellipse cx=\"5.508\" cy=\"14.704\" fill=\"#ede6ff\" rx=\"5.508\" ry=\"14.704\" style=\"fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1\" transform=\"matrix(.00324 1 1 -.00324 -4.47 31.516)\"/></g><g filter=\"url(#c)\"><ellipse cx=\"10.399\" cy=\"29.851\" fill=\"#ede6ff\" rx=\"10.399\" ry=\"29.851\" style=\"fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1\" transform=\"matrix(.00324 1 1 -.00324 -39.328 7.883)\"/></g><g filter=\"url(#d)\"><ellipse cx=\"5.508\" cy=\"30.487\" fill=\"#7e14ff\" rx=\"5.508\" ry=\"30.487\" style=\"fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1\" transform=\"rotate(89.814 -25.913 -14.639)scale(1 -1)\"/></g><g filter=\"url(#e)\"><ellipse cx=\"5.508\" cy=\"30.599\" fill=\"#7e14ff\" rx=\"5.508\" ry=\"30.599\" style=\"fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1\" transform=\"rotate(89.814 -32.644 -3.334)scale(1 -1)\"/></g><g filter=\"url(#f)\"><ellipse cx=\"5.508\" cy=\"30.599\" fill=\"#7e14ff\" rx=\"5.508\" ry=\"30.599\" style=\"fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1\" transform=\"matrix(.00324 1 1 -.00324 -34.34 30.47)\"/></g><g filter=\"url(#g)\"><ellipse cx=\"14.072\" cy=\"22.078\" fill=\"#ede6ff\" rx=\"14.072\" ry=\"22.078\" style=\"fill:#ede6ff;fill:color(display-p3 .9275 .9033 1);fill-opacity:1\" transform=\"rotate(93.35 24.506 48.493)scale(-1 1)\"/></g><g filter=\"url(#h)\"><ellipse cx=\"3.47\" cy=\"21.501\" fill=\"#7e14ff\" rx=\"3.47\" ry=\"21.501\" style=\"fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1\" transform=\"rotate(89.009 28.708 47.59)scale(-1 1)\"/></g><g filter=\"url(#i)\"><ellipse cx=\"3.47\" cy=\"21.501\" fill=\"#7e14ff\" rx=\"3.47\" ry=\"21.501\" style=\"fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1\" transform=\"rotate(89.009 28.708 47.59)scale(-1 1)\"/></g><g filter=\"url(#j)\"><ellipse cx=\".387\" cy=\"8.972\" fill=\"#7e14ff\" rx=\"4.407\" ry=\"29.108\" style=\"fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1\" transform=\"rotate(39.51 .387 8.972)\"/></g><g filter=\"url(#k)\"><ellipse cx=\"47.523\" cy=\"-6.092\" fill=\"#7e14ff\" rx=\"4.407\" ry=\"29.108\" style=\"fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1\" transform=\"rotate(37.892 47.523 -6.092)\"/></g><g filter=\"url(#l)\"><ellipse cx=\"41.412\" cy=\"6.333\" fill=\"#47bfff\" rx=\"5.971\" ry=\"9.665\" style=\"fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1\" transform=\"rotate(37.892 41.412 6.333)\"/></g><g filter=\"url(#m)\"><ellipse cx=\"-1.879\" cy=\"38.332\" fill=\"#7e14ff\" rx=\"4.407\" ry=\"29.108\" style=\"fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1\" transform=\"rotate(37.892 -1.88 38.332)\"/></g><g filter=\"url(#n)\"><ellipse cx=\"-1.879\" cy=\"38.332\" fill=\"#7e14ff\" rx=\"4.407\" ry=\"29.108\" style=\"fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1\" transform=\"rotate(37.892 -1.88 38.332)\"/></g><g filter=\"url(#o)\"><ellipse cx=\"35.651\" cy=\"29.907\" fill=\"#7e14ff\" rx=\"4.407\" ry=\"29.108\" style=\"fill:#7e14ff;fill:color(display-p3 .4922 .0767 1);fill-opacity:1\" transform=\"rotate(37.892 35.651 29.907)\"/></g><g filter=\"url(#p)\"><ellipse cx=\"38.418\" cy=\"32.4\" fill=\"#47bfff\" rx=\"5.971\" ry=\"15.297\" style=\"fill:#47bfff;fill:color(display-p3 .2799 .748 1);fill-opacity:1\" transform=\"rotate(37.892 38.418 32.4)\"/></g></g><defs><filter id=\"b\" width=\"60.045\" height=\"41.654\" x=\"-19.77\" y=\"16.149\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feGaussianBlur result=\"effect1_foregroundBlur_2002_17158\" stdDeviation=\"7.659\"/></filter><filter id=\"c\" width=\"90.34\" height=\"51.437\" x=\"-54.613\" y=\"-7.533\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feGaussianBlur result=\"effect1_foregroundBlur_2002_17158\" stdDeviation=\"7.659\"/></filter><filter id=\"d\" width=\"79.355\" height=\"29.4\" x=\"-49.64\" y=\"2.03\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feGaussianBlur result=\"effect1_foregroundBlur_2002_17158\" stdDeviation=\"4.596\"/></filter><filter id=\"e\" width=\"79.579\" height=\"29.4\" x=\"-45.045\" y=\"20.029\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feGaussianBlur result=\"effect1_foregroundBlur_2002_17158\" stdDeviation=\"4.596\"/></filter><filter id=\"f\" width=\"79.579\" height=\"29.4\" x=\"-43.513\" y=\"21.178\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feGaussianBlur result=\"effect1_foregroundBlur_2002_17158\" stdDeviation=\"4.596\"/></filter><filter id=\"g\" width=\"74.749\" height=\"58.852\" x=\"15.756\" y=\"-17.901\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feGaussianBlur result=\"effect1_foregroundBlur_2002_17158\" stdDeviation=\"7.659\"/></filter><filter id=\"h\" width=\"61.377\" height=\"25.362\" x=\"23.548\" y=\"2.284\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feGaussianBlur result=\"effect1_foregroundBlur_2002_17158\" stdDeviation=\"4.596\"/></filter><filter id=\"i\" width=\"61.377\" height=\"25.362\" x=\"23.548\" y=\"2.284\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feGaussianBlur result=\"effect1_foregroundBlur_2002_17158\" stdDeviation=\"4.596\"/></filter><filter id=\"j\" width=\"56.045\" height=\"63.649\" x=\"-27.636\" y=\"-22.853\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feGaussianBlur result=\"effect1_foregroundBlur_2002_17158\" stdDeviation=\"4.596\"/></filter><filter id=\"k\" width=\"54.814\" height=\"64.646\" x=\"20.116\" y=\"-38.415\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feGaussianBlur result=\"effect1_foregroundBlur_2002_17158\" stdDeviation=\"4.596\"/></filter><filter id=\"l\" width=\"33.541\" height=\"35.313\" x=\"24.641\" y=\"-11.323\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feGaussianBlur result=\"effect1_foregroundBlur_2002_17158\" stdDeviation=\"4.596\"/></filter><filter id=\"m\" width=\"54.814\" height=\"64.646\" x=\"-29.286\" y=\"6.009\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feGaussianBlur result=\"effect1_foregroundBlur_2002_17158\" stdDeviation=\"4.596\"/></filter><filter id=\"n\" width=\"54.814\" height=\"64.646\" x=\"-29.286\" y=\"6.009\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feGaussianBlur result=\"effect1_foregroundBlur_2002_17158\" stdDeviation=\"4.596\"/></filter><filter id=\"o\" width=\"54.814\" height=\"64.646\" x=\"8.244\" y=\"-2.416\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feGaussianBlur result=\"effect1_foregroundBlur_2002_17158\" stdDeviation=\"4.596\"/></filter><filter id=\"p\" width=\"39.409\" height=\"43.623\" x=\"18.713\" y=\"10.588\" color-interpolation-filters=\"sRGB\" filterUnits=\"userSpaceOnUse\"><feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"/><feBlend in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"/><feGaussianBlur result=\"effect1_foregroundBlur_2002_17158\" stdDeviation=\"4.596\"/></filter></defs></svg>";
1370
1374
  // src/scaffolding/templates/react-app/tsconfig.app.json?raw
@@ -1374,7 +1378,7 @@ var tsconfig_default = "{\n \"files\": [],\n \"references\": [{ \"path\": \"./
1374
1378
  // src/scaffolding/templates/react-app/tsconfig.node.json?raw
1375
1379
  var tsconfig_node_default = "{\n \"compilerOptions\": {\n \"tsBuildInfoFile\": \"./node_modules/.tmp/tsconfig.node.tsbuildinfo\",\n \"target\": \"es2023\",\n \"lib\": [\"ES2023\"],\n \"types\": [\"node\"],\n \"skipLibCheck\": true,\n\n /* Bundler mode */\n \"module\": \"nodenext\",\n \"allowImportingTsExtensions\": true,\n \"verbatimModuleSyntax\": true,\n \"moduleDetection\": \"force\",\n \"noEmit\": true,\n\n /* Linting */\n \"noUnusedLocals\": true,\n \"noUnusedParameters\": true,\n \"erasableSyntaxOnly\": true,\n \"noFallthroughCasesInSwitch\": true\n },\n \"include\": [\"vite.config.ts\"]\n}\n";
1376
1380
  // src/scaffolding/templates/react-app/vite.config.ts.ejs?raw
1377
- var vite_config_ts_default = "import { resolve } from \"node:path\";\n\n<%_ if (supportMultipleLocales) { -%>\nimport { lingui, linguiTransformerBabelPreset } from \"@lingui/vite-plugin\";\n<%_ } -%>\n<%_ if (supportMultipleLocales || useReactCompiler) { -%>\nimport babel from \"@rolldown/plugin-babel\";\n<%_ } -%>\n<%_ if (useReactCompiler) { -%>\nimport react, { reactCompilerPreset } from \"@vitejs/plugin-react\";\n<%_ } else { -%>\nimport react from \"@vitejs/plugin-react\";\n<%_ } -%>\nimport { defineConfig } from \"vite\";\n\n// https://vite.dev/config/\n<%_ if (supportMultipleLocales) { -%>\nexport default defineConfig(({ mode }) => ({\n<%_ } else { -%>\nexport default defineConfig({\n<%_ } -%>\n plugins: [\n react(),\n <%_ if (supportMultipleLocales) { -%>\n lingui({ failOnMissing: mode === \"production\" }),\n <%_ } -%>\n <%_ if (supportMultipleLocales || useReactCompiler) { -%>\n babel({\n presets: [\n <%_ if (useReactCompiler) { -%>\n reactCompilerPreset(),\n <%_ } -%>\n <%_ if (supportMultipleLocales) { -%>\n linguiTransformerBabelPreset(),\n <%_ } -%>\n ]\n }),\n <%_ } -%>\n ],\n build: {\n outDir: \"<%= viteConfigOutDir %>\",\n rolldownOptions: {\n preserveEntrySignatures: \"exports-only\",\n input: {\n \"<%= formId %>-app\":\n process.env.VITE_BUILD_REASON === \"preview\" ? \"index.html\" : \"src/main.tsx\",\n },\n output: {\n // Output files without hashes, making it easier to serve them in the server. However, the\n // server is expected to somehow \"version\" them for cache busting purposes.\n entryFileNames: \"assets/[name].js\",\n chunkFileNames: \"assets/[name].js\",\n assetFileNames: \"assets/[name].[ext]\",\n },\n },\n },\n resolve: {\n alias: {\n // Due to how Kotlin \"bundles\" dependencies, we need to use the `@ostack.tech/kform` produced\n // by the shared module.\n \"@ostack.tech/kform\": resolve(\n import.meta.dirname,\n \"node_modules/<%= formId %>-shared/ostack-kform.mjs\",\n ),\n },\n },\n server: {\n proxy: { \"<%= apiBasePath %>\": \"<%= viteConfigProxyTarget %>\" },\n },\n<%_ if (supportMultipleLocales) { -%>\n}));\n<%_ } else { -%>\n});\n<%_ } -%>\n";
1381
+ var vite_config_ts_default = "import { resolve } from \"node:path\";\n\n<%_ if (supportMultipleLocales) { -%>\nimport { lingui } from \"@lingui/vite-plugin\";\n<%_ } -%>\n<%_ if (useReactCompiler) { -%>\nimport babel from \"@rolldown/plugin-babel\";\nimport react, { reactCompilerPreset } from \"@vitejs/plugin-react\";\n<%_ } else { -%>\nimport react from \"@vitejs/plugin-react\";\n<%_ } -%>\nimport { defineConfig } from \"vite\";\n\n// https://vite.dev/config/\n<%_ if (supportMultipleLocales) { -%>\nexport default defineConfig(({ mode }) => ({\n<%_ } else { -%>\nexport default defineConfig({\n<%_ } -%>\n plugins: [\n react(),\n <%_ if (supportMultipleLocales) { -%>\n lingui({ macroTransform: true, failOnMissing: mode === \"production\" }),\n <%_ } -%>\n <%_ if (useReactCompiler) { -%>\n babel({ presets: [reactCompilerPreset()] }),\n <%_ } -%>\n ],\n build: {\n outDir: \"<%= viteConfigOutDir %>\",\n rolldownOptions: {\n preserveEntrySignatures: \"exports-only\",\n input: {\n \"<%= formId %>-app\":\n process.env.VITE_BUILD_REASON === \"preview\" ? \"index.html\" : \"src/main.tsx\",\n },\n output: {\n // Output files without hashes, making it easier to serve them in the server. However, the\n // server is expected to somehow \"version\" them for cache busting purposes.\n entryFileNames: \"assets/[name].js\",\n chunkFileNames: \"assets/[name].js\",\n assetFileNames: \"assets/[name].[ext]\",\n },\n },\n },\n resolve: {\n alias: {\n // Due to how Kotlin \"bundles\" dependencies, we need to use the `@ostack.tech/kform` produced\n // by the shared module.\n \"@ostack.tech/kform\": resolve(\n import.meta.dirname,\n \"node_modules/<%= formId %>-shared/ostack-kform.mjs\",\n ),\n },\n },\n server: {\n proxy: { \"<%= apiBasePath %>\": \"<%= viteConfigProxyTarget %>\" },\n },\n<%_ if (supportMultipleLocales) { -%>\n}));\n<%_ } else { -%>\n});\n<%_ } -%>\n";
1378
1382
  // src/scaffolding/scaffolders/scaffoldViteProject.ts
1379
1383
  var DEFAULT_VITE_CONFIG_OUT_DIR = "build/dist/";
1380
1384
  var DEFAULT_VITE_CONFIG_PROXY_TARGET = "http://127.0.0.1:8080/";
@@ -1385,9 +1389,9 @@ function scaffoldViteProject(schematic, data) {
1385
1389
  formTitle: capitalCase(schematic.name),
1386
1390
  supportMultipleLocales: data.supportMultipleLocales,
1387
1391
  useReactCompiler: data.useReactCompiler,
1388
- ostackUiVersion: "1.3.0-beta.1",
1392
+ ostackUiVersion: "1.3.0-beta.2",
1389
1393
  kFormVersion: "1.2.1",
1390
- dependencyVersions: JSON.parse("{\"@fortawesome/fontawesome-svg-core\":\"^7.3.1\",\"@fortawesome/free-brands-svg-icons\":\"^7.3.1\",\"@fortawesome/free-regular-svg-icons\":\"^7.3.1\",\"@fortawesome/free-solid-svg-icons\":\"^7.3.1\",\"@ostack.tech/kform\":\"^1.2.1\",\"@ostack.tech/kform-react\":\"^1.2.1\",\"@ostack.tech/kform-scaffolder\":\"^1.2.1\",\"@storybook/addon-a11y\":\"^10.6.5\",\"@storybook/addon-docs\":\"^10.6.5\",\"@storybook/addon-links\":\"^10.6.5\",\"@storybook/react-vite\":\"^10.6.5\",\"@testing-library/react\":\"^16.3.3\",\"@types/node\":\"^24.19.2\",\"@types/react\":\"^19.3.0\",\"@types/react-dom\":\"^19.3.0\",\"@vitejs/plugin-react\":\"^6.2.1\",\"change-case\":\"^5.4.4\",\"cpy-cli\":\"^7.0.0\",\"date-fns\":\"^4.4.0\",\"happy-dom\":\"^21.0.4\",\"lint-staged\":\"^17.6.0\",\"oxc-transform-react\":\"^0.157.0\",\"oxfmt\":\"^0.76.0\",\"oxlint\":\"^1.91.0\",\"oxlint-tsgolint\":\"^7.0.2005\",\"prettier\":\"^3.9.10\",\"react\":\"^19.3.1\",\"react-dom\":\"^19.3.1\",\"refractor\":\"^5.0.0\",\"rimraf\":\"^6.1.3\",\"sass-embedded\":\"^1.107.1\",\"simple-git-hooks\":\"^2.14.0\",\"storybook\":\"^10.6.5\",\"terser\":\"^5.51.2\",\"typescript\":\"~6.0.3\",\"vite\":\"^8.3.5\",\"vitest\":\"^5.1.0\",\"write-excel-file\":\"^4.1.1\",\"zod\":\"^4.6.7\",\"zustand\":\"^5.0.16\"}"),
1394
+ dependencyVersions: JSON.parse("{\"@fortawesome/fontawesome-svg-core\":\"^7.3.1\",\"@fortawesome/free-brands-svg-icons\":\"^7.3.1\",\"@fortawesome/free-regular-svg-icons\":\"^7.3.1\",\"@fortawesome/free-solid-svg-icons\":\"^7.3.1\",\"@ostack.tech/kform\":\"^1.2.1\",\"@ostack.tech/kform-react\":\"^1.2.1\",\"@ostack.tech/kform-scaffolder\":\"^1.2.1\",\"@storybook/addon-a11y\":\"^10.6.5\",\"@storybook/addon-docs\":\"^10.6.5\",\"@storybook/addon-links\":\"^10.6.5\",\"@storybook/react-vite\":\"^10.6.5\",\"@testing-library/react\":\"^16.3.3\",\"@types/node\":\"^24.19.2\",\"@types/react\":\"^19.3.0\",\"@types/react-dom\":\"^19.3.0\",\"@vitejs/plugin-react\":\"^6.2.1\",\"change-case\":\"^5.4.4\",\"cpy-cli\":\"^7.0.0\",\"date-fns\":\"^4.4.0\",\"happy-dom\":\"^21.0.4\",\"lint-staged\":\"^17.6.0\",\"oxc-transform-react\":\"^0.157.0\",\"oxfmt\":\"^0.76.0\",\"oxlint\":\"^1.91.0\",\"oxlint-tsgolint\":\"^7.0.2005\",\"playwright\":\"^1.64.1\",\"prettier\":\"^3.9.10\",\"react\":\"^19.3.1\",\"react-dom\":\"^19.3.1\",\"refractor\":\"^5.0.0\",\"rimraf\":\"^6.1.3\",\"sass-embedded\":\"^1.107.1\",\"simple-git-hooks\":\"^2.14.0\",\"storybook\":\"^10.6.5\",\"terser\":\"^5.51.2\",\"typescript\":\"~6.0.3\",\"vite\":\"^8.3.5\",\"vitest\":\"^5.1.0\",\"write-excel-file\":\"^4.1.1\",\"zod\":\"^4.6.7\",\"zustand\":\"^5.0.16\",\"@babel/core\":\"^7.29.7\",\"@lingui/react\":\"^6.12.0\",\"@lingui/vite-plugin\":\"^6.12.0\",\"@rolldown/plugin-babel\":\"^0.3.0\",\"babel-plugin-react-compiler\":\"^1.0.0\",\"eslint-plugin-lingui\":\"^0.16.0\"}"),
1391
1395
  encodedExternalContexts: JSON.stringify(data.serializationFormat === "json" ? "{}" : `<${schematic.name}ExternalContexts />`),
1392
1396
  apiBasePath: data.apiBasePath ?? "/api/",
1393
1397
  viteConfigOutDir: data.viteConfigOutDir ?? "build/dist/",
@@ -1406,7 +1410,7 @@ function scaffoldViteProject(schematic, data) {
1406
1410
  var KOTLIN_MAIN_DATA = { currentDir: "shared/src/commonMain/kotlin" };
1407
1411
  var KOTLIN_TEST_DATA = { currentDir: "shared/src/commonTest/kotlin" };
1408
1412
  var REACT_APP_DATA = { currentDir: "react-app/src" };
1409
- var DEFAULT_APP_VERSION = "1.3.0-beta.1";
1413
+ var DEFAULT_APP_VERSION = "1.3.0-beta.2";
1410
1414
  var DEFAULT_SCAFFOLDERS = [
1411
1415
  scaffoldProjectMisc,
1412
1416
  scaffoldGradleWrapper,
@@ -1493,6 +1497,6 @@ function SchematicBuilder(t0) {
1493
1497
  } else t7 = $[15];
1494
1498
  return t7;
1495
1499
  }
1496
- export { DEFAULT_ACTIVE_PATH_SEARCH_PARAM, DEFAULT_API_BASE_PATH, DEFAULT_INCLUDE_SERIALIZATION_FORMAT_VERSION, DEFAULT_JVM_TOOLCHAIN_VERSION, DEFAULT_LOCALES, DEFAULT_LOCALE_SEARCH_PARAM, DEFAULT_NODEJS_VERSION, DEFAULT_REPORT_ERROR_API_ENDPOINT, DEFAULT_SERIALIZATION_FORMAT, DEFAULT_SOURCE_LOCALE, DEFAULT_SUBMIT_API_ENDPOINT, DEFAULT_SUPPORT_MULTIPLE_LOCALES, DEFAULT_VITE_CONFIG_OUT_DIR, DEFAULT_VITE_CONFIG_PROXY_TARGET, LOCALES, LocaleConfig, SchematicBuilder, SerializationFormatConfig, UseReactCompilerConfig, UseTableValuesSerializerConfig, anySchematicKind, bigDecimalSchematicKind, bigIntegerSchematicKind, booleanSchematicKind, byteSchematicKind, classAnnexSchematicKind, classFormPageSchematicKind, classSchematicKind, defaultSchematicKinds, doubleSchematicKind, enumRadioGroupSchematicKind, enumSchematicKind, enumSelectSchematicKind, fileSchematicKind, floatSchematicKind, intSchematicKind, listCheckboxGroupSchematicKind, listSelectMultipleSchematicKind, localDateSchematicKind, longSchematicKind, reactAppLayout, scaffoldApi, scaffoldAppComponent, scaffoldAppContext, scaffoldAppLayout, scaffoldExternalContexts, scaffoldField, scaffoldGradleProject, scaffoldGradleWrapper, scaffoldI18n, scaffoldIssueMessages, scaffoldMain, scaffoldPageComponents, scaffoldProjectMisc, scaffoldResponses, scaffoldSerializer, scaffoldStyles, scaffoldViteProject, shortSchematicKind, shouldScaffoldIssueMessages, stringSchematicKind, tableAnnexesSchematicKind, tableSchematicKind, transify };
1500
+ export { DEFAULT_ACTIVE_PATH_SEARCH_PARAM, DEFAULT_API_BASE_PATH, DEFAULT_INCLUDE_SERIALIZATION_FORMAT_VERSION, DEFAULT_LOCALES, DEFAULT_LOCALE_SEARCH_PARAM, DEFAULT_REPORT_ERROR_API_ENDPOINT, DEFAULT_SERIALIZATION_FORMAT, DEFAULT_SOURCE_LOCALE, DEFAULT_SUBMIT_API_ENDPOINT, DEFAULT_SUPPORT_MULTIPLE_LOCALES, DEFAULT_VITE_CONFIG_OUT_DIR, DEFAULT_VITE_CONFIG_PROXY_TARGET, LOCALES, LocaleConfig, SchematicBuilder, SerializationFormatConfig, UseReactCompilerConfig, UseTableValuesSerializerConfig, anySchematicKind, bigDecimalSchematicKind, bigIntegerSchematicKind, booleanSchematicKind, byteSchematicKind, classAnnexSchematicKind, classFormPageSchematicKind, classSchematicKind, defaultSchematicKinds, doubleSchematicKind, enumRadioGroupSchematicKind, enumSchematicKind, enumSelectSchematicKind, fileSchematicKind, floatSchematicKind, intSchematicKind, listCheckboxGroupSchematicKind, listSelectMultipleSchematicKind, localDateSchematicKind, longSchematicKind, reactAppLayout, scaffoldApi, scaffoldAppComponent, scaffoldAppContext, scaffoldAppLayout, scaffoldExternalContexts, scaffoldField, scaffoldGradleProject, scaffoldGradleWrapper, scaffoldI18n, scaffoldIssueMessages, scaffoldMain, scaffoldPageComponents, scaffoldProjectMisc, scaffoldResponses, scaffoldSerializer, scaffoldStyles, scaffoldViteProject, shortSchematicKind, shouldScaffoldIssueMessages, stringSchematicKind, tableAnnexesSchematicKind, tableSchematicKind, transify };
1497
1501
 
1498
1502
  //# sourceMappingURL=ostack-ui-kform-scaffolder.js.map