@ostack.tech/ui-kform-scaffolder 1.0.0-rc.2 → 1.1.0
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.
|
@@ -170,7 +170,7 @@ suspend fun assert<%= formClass %>NotContainsWarning(
|
|
|
170
170
|
LocatedValidationWarning(path, code),
|
|
171
171
|
validate<%= formClass %>(<%= formVar %>, path, externalContexts),
|
|
172
172
|
)
|
|
173
|
-
`;function Ia(e,t){Na(t,`${e.name}Validator.kt`,Fa,{filePackage:t.currentPackage,formVar:Ci(e.name),formClass:e.name})}var La=typeof document<`u`?C.useLayoutEffect:C.useEffect;function Ra(e,t){La(()=>{if(!e){t(void 0);return}let n=()=>t(e.getBoundingClientRect());n();let r=new ResizeObserver(([e])=>e&&n());return r.observe(e),window.addEventListener(`resize`,n),()=>{r.disconnect(),window.removeEventListener(`resize`,n),t(void 0)}},[e,t])}function za({children:e}){let[t,n]=(0,C.useState)(null),[r,i]=(0,C.useState)(null);return Ra(t,e=>{r&&e&&(r.style.setProperty(`--anchor-top`,`${e.top}px`),r.style.setProperty(`--anchor-left`,`${e.left}px`),r.style.setProperty(`--anchor-bottom`,`${e.bottom}px`),r.style.setProperty(`--anchor-right`,`${e.right}px`),r.style.setProperty(`--anchor-width`,`${e.width}px`),r.style.setProperty(`--anchor-height`,`${e.height}px`))}),Ra(r,e=>{r&&e&&(r.style.setProperty(`--width`,`${e.width}px`),r.style.setProperty(`--height`,`${e.height}px`))}),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`button`,{type:`button`,className:`builder-icon-button builder-action builder-config-schematic`,popoverTarget:`builder-config-popover`,title:`Config`,"aria-label":`Config`,ref:n,children:`⚙️`}),(0,U.jsx)(`div`,{popover:``,id:`builder-config-popover`,ref:i,children:e})]})}var Ba={currentDir:`shared/src/commonMain/kotlin`},Va={currentDir:`shared/src/commonTest/kotlin`};function Ha({name:e=`kform`,title:t=document.title,basePath:n,basePackage:r,baseDir:i,defaultRootClassPackage:a=`org.example`,defaultRootClassName:o=`MyForm`,schematicKinds:s=Ea,scaffolders:c=[Gr(Da,Ba),Gr(ui,Ba),Gr(Pa,Ba),Gr(Ia,Va)],scaffoldingData:l=e=>e.config,actions:u=(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ur,{}),(0,U.jsx)(Wr,{}),(0,U.jsx)(Xr,{})]}),configs:d=(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Qr,{}),(0,U.jsx)($r,{})]}),version:f=`1.
|
|
173
|
+
`;function Ia(e,t){Na(t,`${e.name}Validator.kt`,Fa,{filePackage:t.currentPackage,formVar:Ci(e.name),formClass:e.name})}var La=typeof document<`u`?C.useLayoutEffect:C.useEffect;function Ra(e,t){La(()=>{if(!e){t(void 0);return}let n=()=>t(e.getBoundingClientRect());n();let r=new ResizeObserver(([e])=>e&&n());return r.observe(e),window.addEventListener(`resize`,n),()=>{r.disconnect(),window.removeEventListener(`resize`,n),t(void 0)}},[e,t])}function za({children:e}){let[t,n]=(0,C.useState)(null),[r,i]=(0,C.useState)(null);return Ra(t,e=>{r&&e&&(r.style.setProperty(`--anchor-top`,`${e.top}px`),r.style.setProperty(`--anchor-left`,`${e.left}px`),r.style.setProperty(`--anchor-bottom`,`${e.bottom}px`),r.style.setProperty(`--anchor-right`,`${e.right}px`),r.style.setProperty(`--anchor-width`,`${e.width}px`),r.style.setProperty(`--anchor-height`,`${e.height}px`))}),Ra(r,e=>{r&&e&&(r.style.setProperty(`--width`,`${e.width}px`),r.style.setProperty(`--height`,`${e.height}px`))}),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`button`,{type:`button`,className:`builder-icon-button builder-action builder-config-schematic`,popoverTarget:`builder-config-popover`,title:`Config`,"aria-label":`Config`,ref:n,children:`⚙️`}),(0,U.jsx)(`div`,{popover:``,id:`builder-config-popover`,ref:i,children:e})]})}var Ba={currentDir:`shared/src/commonMain/kotlin`},Va={currentDir:`shared/src/commonTest/kotlin`};function Ha({name:e=`kform`,title:t=document.title,basePath:n,basePackage:r,baseDir:i,defaultRootClassPackage:a=`org.example`,defaultRootClassName:o=`MyForm`,schematicKinds:s=Ea,scaffolders:c=[Gr(Da,Ba),Gr(ui,Ba),Gr(Pa,Ba),Gr(Ia,Va)],scaffoldingData:l=e=>e.config,actions:u=(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ur,{}),(0,U.jsx)(Wr,{}),(0,U.jsx)(Xr,{})]}),configs:d=(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Qr,{}),(0,U.jsx)($r,{})]}),version:f=`1.1.0`}){let[p]=(0,C.useState)(()=>Kn(Yn(()=>Lr({kind:fa.kind,packageSuffix:a,name:o,children:[]}),{name:e}))),m=(0,C.useMemo)(()=>new Map(s.sort((e,t)=>e.kind.localeCompare(t.kind)).map(e=>[e.kind,e])),[s]),h=(0,C.useRef)(null),[g,_]=(0,C.useState)(null),v=Se(xe(St,{activationConstraint:{distance:10,delay:400,tolerance:20}}),xe(_t));return(0,U.jsx)(Vr,{value:{name:e,basePath:n,basePackage:r,baseDir:i,schematicKinds:m,scaffolders:c,scaffoldingData:l,getRootSchematic:p.getState,useSchematic:p,setSchematic:p.setState,removeSchematic:()=>{},parentPackage:r,draggedSchematic:g,latestSchematicFileHandleRef:h},children:(0,U.jsxs)(bn,{sensors:v,collisionDetection:Ae,onDragStart:e=>_({id:e.active.id,...e.active.data.current}),onDragEnd:e=>{let{parentId:t,sortBefore:n,ignored:r}=e.over?.data.current??{};r||p.setState(r=>Rr(r,e.active.id,t,n)),_(null)},children:[(0,U.jsxs)(`form`,{className:`builder-root`,children:[(0,U.jsxs)(`header`,{className:`builder-header`,children:[(0,U.jsx)(`h1`,{className:`builder-title`,children:t}),f&&(0,U.jsx)(`div`,{className:`builder-version`,children:f}),(0,U.jsxs)(`div`,{className:`builder-actions`,children:[d&&(0,U.jsx)(za,{children:d}),u]})]}),(0,U.jsx)(Bi,{})]}),(0,U.jsx)(Bn,{children:g&&(0,U.jsx)(`div`,{className:`builder-dragged`,children:g.node})})]})})}function Ua(e,t){return{...t,content:e,getContent:Wa}}function Wa(){return this.content}function Ga(e,t,n,r){e.files.set(W(e.currentDir,t),Ua(n,r))}function Ka(){return{imports:[],declarations:[],getContent:qa}}function qa(){return[Ja(this.imports).sort((e,t)=>e.moduleName.localeCompare(t.moduleName)).map(e=>Ya(e)).join(`
|
|
174
174
|
`),...this.declarations].filter(e=>e).join(`
|
|
175
175
|
|
|
176
176
|
`)+`
|
|
@@ -566,17 +566,78 @@ data class <%= formClass %>ExternalContexts @JvmOverloads constructor(
|
|
|
566
566
|
) {
|
|
567
567
|
fun toMap(): Map<String, Any?> = mapOf("mode" to mode, "initialValue" to initialValue)
|
|
568
568
|
}
|
|
569
|
-
`;function ys(e,t){let n={filePackage:t.currentPackage,formClass:e.name};Na(t,`${e.name}ExternalContexts.kt`,vs,n)}var bs=`
|
|
570
|
-
|
|
569
|
+
`;function ys(e,t){let n={filePackage:t.currentPackage,formClass:e.name};Na(t,`${e.name}ExternalContexts.kt`,vs,n)}var bs=`import org.gradle.kotlin.dsl.configure
|
|
570
|
+
import org.gradle.kotlin.dsl.withType
|
|
571
|
+
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsEnvSpec
|
|
572
|
+
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin
|
|
573
|
+
|
|
574
|
+
plugins {
|
|
575
|
+
alias(libs.plugins.kotlin.multiplatform) apply false
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/** Gradle daemon JVM version. */
|
|
579
|
+
tasks.named<UpdateDaemonJvm>("updateDaemonJvm") {
|
|
580
|
+
languageVersion = JavaLanguageVersion.of(libs.versions.jvmToolchain.get())
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
/** Configure Node.js used by Kotlin/JS. */
|
|
584
|
+
plugins.withType<NodeJsRootPlugin> {
|
|
585
|
+
configure<NodeJsEnvSpec> {
|
|
586
|
+
version = libs.versions.nodejs.get()
|
|
587
|
+
downloadBaseUrl = null // Prevent repository declaration
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
`,xs=`plugins { \`kotlin-dsl\` }
|
|
591
|
+
|
|
592
|
+
dependencies {
|
|
593
|
+
implementation(libs.nodeGradle.plugin)
|
|
594
|
+
}
|
|
595
|
+
`,Ss=`@Suppress("UnstableApiUsage")
|
|
596
|
+
dependencyResolutionManagement {
|
|
597
|
+
versionCatalogs {
|
|
598
|
+
create("libs") {
|
|
599
|
+
from(files("../gradle/libs.versions.toml"))
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
repositories { gradlePluginPortal() }
|
|
571
603
|
}
|
|
572
|
-
|
|
604
|
+
|
|
605
|
+
rootProject.name = "build-logic"
|
|
606
|
+
`,Cs=`plugins { id("com.github.node-gradle.node") }
|
|
607
|
+
|
|
608
|
+
val libs = versionCatalogs.named("libs")
|
|
609
|
+
val isCI = System.getenv("CI") !in arrayOf(null, "0", "false")
|
|
610
|
+
|
|
611
|
+
node {
|
|
612
|
+
download = true
|
|
613
|
+
version = libs.findVersion("nodejs").get().requiredVersion
|
|
614
|
+
npmInstallCommand = if (isCI) "ci" else "install"
|
|
615
|
+
distBaseUrl = null // Prevent repository declaration
|
|
616
|
+
}
|
|
617
|
+
`,ws=`group=<%= gradlePropertiesGroup %>
|
|
573
618
|
version=0.0.1
|
|
574
619
|
|
|
620
|
+
kotlin.code.style=official
|
|
621
|
+
# Use \`npm\` instead of \`yarn\`
|
|
622
|
+
kotlin.js.yarn=false
|
|
623
|
+
|
|
575
624
|
org.gradle.caching=true
|
|
576
625
|
org.gradle.configuration-cache=true
|
|
577
|
-
`,
|
|
626
|
+
`,Ts=`#This file is generated by updateDaemonJvm
|
|
627
|
+
toolchainUrl.FREE_BSD.AARCH64=https\\://api.foojay.io/disco/v3.0/ids/cb205e54cea236622eee3d62deb2c768/redirect
|
|
628
|
+
toolchainUrl.FREE_BSD.X86_64=https\\://api.foojay.io/disco/v3.0/ids/452acd2202c1005abda962c6dae7fc5f/redirect
|
|
629
|
+
toolchainUrl.LINUX.AARCH64=https\\://api.foojay.io/disco/v3.0/ids/cb205e54cea236622eee3d62deb2c768/redirect
|
|
630
|
+
toolchainUrl.LINUX.X86_64=https\\://api.foojay.io/disco/v3.0/ids/452acd2202c1005abda962c6dae7fc5f/redirect
|
|
631
|
+
toolchainUrl.MAC_OS.AARCH64=https\\://api.foojay.io/disco/v3.0/ids/faa59212208d027d066d1bbe337c5da5/redirect
|
|
632
|
+
toolchainUrl.MAC_OS.X86_64=https\\://api.foojay.io/disco/v3.0/ids/adf5b89d64773eff73f900e61dd2d632/redirect
|
|
633
|
+
toolchainUrl.UNIX.AARCH64=https\\://api.foojay.io/disco/v3.0/ids/cb205e54cea236622eee3d62deb2c768/redirect
|
|
634
|
+
toolchainUrl.UNIX.X86_64=https\\://api.foojay.io/disco/v3.0/ids/452acd2202c1005abda962c6dae7fc5f/redirect
|
|
635
|
+
toolchainUrl.WINDOWS.AARCH64=https\\://api.foojay.io/disco/v3.0/ids/e0e37f85a97c5f2df685b37b14a25072/redirect
|
|
636
|
+
toolchainUrl.WINDOWS.X86_64=https\\://api.foojay.io/disco/v3.0/ids/ccc3884e65cd85bb71a09d2223c77229/redirect
|
|
637
|
+
toolchainVersion=<%= jvmToolchainVersion %>
|
|
638
|
+
`,Es=`[versions]
|
|
578
639
|
# Plugins
|
|
579
|
-
kotlin = "2.4.
|
|
640
|
+
kotlin = "2.4.10"
|
|
580
641
|
nodeGradle = "7.1.0"
|
|
581
642
|
# Libraries
|
|
582
643
|
kform = "<%= kFormVersion %>"
|
|
@@ -620,28 +681,22 @@ slf4j-simple = { module = "org.slf4j:slf4j-simple", version.ref = "slf4j" }
|
|
|
620
681
|
<%_ if (serializationFormat === "xml") { -%>
|
|
621
682
|
xmlutil-serialization = { module = "io.github.pdvrieze.xmlutil:serialization", version.ref = "xmlutil" }
|
|
622
683
|
<%_ } -%>
|
|
684
|
+
# \`build-logic\` plugins
|
|
685
|
+
nodeGradle-plugin = { module = "com.github.node-gradle:gradle-node-plugin", version.ref = "nodeGradle" }
|
|
623
686
|
|
|
624
687
|
[plugins]
|
|
625
688
|
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
|
|
626
689
|
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
|
|
627
|
-
|
|
628
|
-
`,Cs=`import com.github.gradle.node.npm.task.NpmTask
|
|
690
|
+
`,Ds=`import com.github.gradle.node.npm.task.NpmTask
|
|
629
691
|
|
|
630
692
|
plugins {
|
|
631
|
-
|
|
693
|
+
id("node-gradle-conventions")
|
|
632
694
|
base
|
|
633
695
|
}
|
|
634
696
|
|
|
635
|
-
val isCI = System.getenv("CI") !in arrayOf(null, "0", "false")
|
|
636
|
-
node {
|
|
637
|
-
download = true
|
|
638
|
-
version = libs.versions.nodejs.get()
|
|
639
|
-
npmInstallCommand = if (isCI) "ci" else "install"
|
|
640
|
-
}
|
|
641
|
-
|
|
642
697
|
val sharedPackage = project(":shared").file("build/<%= formId %>-shared-$version.tgz")
|
|
643
698
|
|
|
644
|
-
val npmInstallShared
|
|
699
|
+
val npmInstallShared = tasks.register<NpmTask>("npmInstallShared") {
|
|
645
700
|
group = "build"
|
|
646
701
|
dependsOn(":shared:packJsPackage")
|
|
647
702
|
npmCommand = listOf("install", "<%= formId %>-shared@file:$sharedPackage")
|
|
@@ -654,7 +709,7 @@ tasks.npmInstall {
|
|
|
654
709
|
dependsOn(npmInstallShared)
|
|
655
710
|
}
|
|
656
711
|
|
|
657
|
-
|
|
712
|
+
tasks.register<NpmTask>("npmRunDev") {
|
|
658
713
|
group = "development"
|
|
659
714
|
dependsOn(tasks.npmInstall)
|
|
660
715
|
npmCommand = listOf("run", "dev")
|
|
@@ -677,21 +732,21 @@ private fun NpmTask.npmRunBuild(buildReason: String) {
|
|
|
677
732
|
outputs.dir("build/dist")
|
|
678
733
|
}
|
|
679
734
|
|
|
680
|
-
val npmRunBuild
|
|
735
|
+
val npmRunBuild = tasks.register<NpmTask>("npmRunBuild") {
|
|
681
736
|
npmRunBuild("production")
|
|
682
737
|
}
|
|
683
738
|
|
|
684
|
-
val npmRunBuildPreview
|
|
739
|
+
val npmRunBuildPreview = tasks.register<NpmTask>("npmRunBuildPreview") {
|
|
685
740
|
npmRunBuild("preview")
|
|
686
741
|
}
|
|
687
742
|
|
|
688
|
-
|
|
743
|
+
tasks.register<NpmTask>("npmRunPreview") {
|
|
689
744
|
group = "development"
|
|
690
745
|
dependsOn(npmRunBuildPreview)
|
|
691
746
|
npmCommand = listOf("run", "preview")
|
|
692
747
|
}
|
|
693
748
|
|
|
694
|
-
val npmRunLint
|
|
749
|
+
val npmRunLint = tasks.register<NpmTask>("npmRunLint") {
|
|
695
750
|
group = "verification"
|
|
696
751
|
dependsOn(tasks.npmInstall)
|
|
697
752
|
npmCommand = listOf("run", "lint")
|
|
@@ -708,19 +763,50 @@ val npmRunLint by tasks.registering(NpmTask::class) {
|
|
|
708
763
|
tasks.assemble {
|
|
709
764
|
dependsOn(npmRunBuild)
|
|
710
765
|
}
|
|
711
|
-
|
|
766
|
+
|
|
767
|
+
tasks.check {
|
|
768
|
+
dependsOn(npmRunLint)
|
|
769
|
+
}
|
|
770
|
+
`,Os=`plugins {
|
|
712
771
|
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
|
|
713
772
|
}
|
|
714
773
|
|
|
715
|
-
|
|
774
|
+
@Suppress("UnstableApiUsage")
|
|
775
|
+
dependencyResolutionManagement {
|
|
776
|
+
repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS
|
|
777
|
+
repositories {
|
|
778
|
+
mavenCentral()
|
|
779
|
+
|
|
780
|
+
// Node.js download repository
|
|
781
|
+
ivy {
|
|
782
|
+
name = "Node.js"
|
|
783
|
+
setUrl("https://nodejs.org/dist/")
|
|
784
|
+
patternLayout { artifact("v[revision]/[artifact](-v[revision]-[classifier]).[ext]") }
|
|
785
|
+
metadataSources { artifact() }
|
|
786
|
+
content { includeModule("org.nodejs", "node") }
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
}
|
|
716
790
|
|
|
791
|
+
includeBuild("build-logic")
|
|
717
792
|
include("shared", "react-app")
|
|
718
|
-
|
|
793
|
+
|
|
794
|
+
rootProject.name = "<%= formId %>"
|
|
795
|
+
`,ks=`import com.github.gradle.node.npm.task.NpmTask
|
|
796
|
+
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsEnvSpec
|
|
797
|
+
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsPlugin
|
|
719
798
|
|
|
720
799
|
plugins {
|
|
800
|
+
id("node-gradle-conventions")
|
|
721
801
|
alias(libs.plugins.kotlin.multiplatform)
|
|
722
802
|
alias(libs.plugins.kotlin.serialization)
|
|
723
|
-
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
/** Configure Node.js used by Kotlin/JS. */
|
|
806
|
+
plugins.withType<NodeJsPlugin> {
|
|
807
|
+
configure<NodeJsEnvSpec> {
|
|
808
|
+
downloadBaseUrl = null // Prevent repository declaration
|
|
809
|
+
}
|
|
724
810
|
}
|
|
725
811
|
|
|
726
812
|
kotlin {
|
|
@@ -776,13 +862,8 @@ kotlin {
|
|
|
776
862
|
}
|
|
777
863
|
}
|
|
778
864
|
|
|
779
|
-
node {
|
|
780
|
-
download = true
|
|
781
|
-
version = libs.versions.nodejs.get()
|
|
782
|
-
}
|
|
783
|
-
|
|
784
865
|
// Packs the result of the JS compilation, for consumption by the React app
|
|
785
|
-
|
|
866
|
+
tasks.register<NpmTask>("packJsPackage") {
|
|
786
867
|
group = "build"
|
|
787
868
|
dependsOn("jsBrowserProductionLibraryDistribution")
|
|
788
869
|
|
|
@@ -792,7 +873,7 @@ val packJsPackage by tasks.registering(NpmTask::class) {
|
|
|
792
873
|
inputs.dir(libraryDir)
|
|
793
874
|
outputs.file("build/<%= formId %>-shared-$version.tgz")
|
|
794
875
|
}
|
|
795
|
-
`,
|
|
876
|
+
`,As=`package <%= filePackage %>
|
|
796
877
|
|
|
797
878
|
// See: https://github.com/Kotlin/kotlinx-datetime?tab=readme-ov-file#note-about-time-zones-in-js
|
|
798
879
|
@JsModule("@js-joda/timezone")
|
|
@@ -801,7 +882,7 @@ external object JsJodaTimeZoneModule
|
|
|
801
882
|
|
|
802
883
|
@JsExport
|
|
803
884
|
val jsJodaTz = JsJodaTimeZoneModule
|
|
804
|
-
`;function
|
|
885
|
+
`;function js(e,t){let n={gradlePropertiesGroup:t.gradlePropertiesGroup??t.currentPackage,filePackage:t.currentPackage,formId:mo(e.name),formTitle:fo(e.name),kFormVersion:`1.1.0`,serializationFormat:t.serializationFormat??`json`,includeKotlinxDatetime:t.includeKotlinxDatetime??Ms(e,t),includeKtMath:t.includeKtMath??Ns(e),jvmToolchainVersion:t.jvmToolchainVersion??`21`,nodejsVersion:t.nodejsVersion??`24.16.0`};Na(t,`gradle.properties`,ws,n),Na(t,`settings.gradle.kts`,Os,n),Na(t,`gradle/libs.versions.toml`,Es,n),Na(t,`gradle/gradle-daemon-jvm.properties`,Ts,n),Ga(t,`build.gradle.kts`,bs),Ga(t,`build-logic/settings.gradle.kts`,Ss),Ga(t,`build-logic/build.gradle.kts`,xs),Ga(t,`build-logic/src/main/kotlin/node-gradle-conventions.gradle.kts`,Cs),Na(t,`shared/build.gradle.kts`,ks,n),n.includeKotlinxDatetime&&Na(t,`shared/src/jsMain/kotlin/JsJodaTimeZone.kt`,As,n),Na(t,`react-app/build.gradle.kts`,Ds,n)}function Ms(e,t){return t.schematicKinds.get(e.kind)?.package===`kotlinx.datetime`||e.children?.some(e=>Ms(e,t))===!0}function Ns(e){return[`BigInteger`,`BigDecimal`].includes(e.kind)||e.children?.some(e=>Ns(e))===!0}var Ps=`/assets/gradle-wrapper-BvbY_R1M.jar`,Fs=`distributionBase=GRADLE_USER_HOME
|
|
805
886
|
distributionPath=wrapper/dists
|
|
806
887
|
distributionUrl=https\\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
|
|
807
888
|
networkTimeout=10000
|
|
@@ -810,7 +891,7 @@ retryBackOffMs=500
|
|
|
810
891
|
validateDistributionUrl=true
|
|
811
892
|
zipStoreBase=GRADLE_USER_HOME
|
|
812
893
|
zipStorePath=wrapper/dists
|
|
813
|
-
`,
|
|
894
|
+
`,Is=`@rem\r
|
|
814
895
|
@rem Copyright 2015 the original author or authors.\r
|
|
815
896
|
@rem\r
|
|
816
897
|
@rem Licensed under the Apache License, Version 2.0 (the "License");\r
|
|
@@ -892,7 +973,7 @@ endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.grad
|
|
|
892
973
|
:exitWithErrorLevel\r
|
|
893
974
|
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts\r
|
|
894
975
|
"%COMSPEC%" /c exit %ERRORLEVEL%\r
|
|
895
|
-
`,
|
|
976
|
+
`,Ls=`#!/bin/sh
|
|
896
977
|
|
|
897
978
|
#
|
|
898
979
|
# Copyright © 2015 the original authors.
|
|
@@ -1140,7 +1221,7 @@ eval "set -- $(
|
|
|
1140
1221
|
)" '"$@"'
|
|
1141
1222
|
|
|
1142
1223
|
exec "$JAVACMD" "$@"
|
|
1143
|
-
`;function
|
|
1224
|
+
`;function Rs(e,t){Ga(t,`gradlew`,Ls,{executable:!0}),Ga(t,`gradlew.bat`,Is),Ga(t,`gradle/wrapper/gradle-wrapper.jar`,fetch(Ps).then(e=>e.arrayBuffer())),Ga(t,`gradle/wrapper/gradle-wrapper.properties`,Fs)}function zs(e,t){let n=W(t.currentDir,`main.tsx`),r=t.files.get(n);r||t.files.set(n,r=Ka()),Bs(e,{kmpModuleName:`${mo(e.name)}-shared`,...t,currentFile:r})}function Bs(e,t){t.currentFile.imports.push({moduleName:`./index.scss`},{moduleName:`react`,name:`StrictMode`},{moduleName:`react-dom/client`,name:`createRoot`},{moduleName:t.kmpModuleName,name:`decode${e.name}ExternalContextsFromString`},{moduleName:`./${e.name}Context.ts`,name:`${e.name}Context`},{moduleName:`./${e.name}App.tsx`,name:`${e.name}App`}),t.currentFile.declarations.push(ea`
|
|
1144
1225
|
export function renderRoot(encodedExternalContexts: string) {
|
|
1145
1226
|
createRoot(document.getElementById("${mo(e.name)}-app-root")!).render(
|
|
1146
1227
|
<StrictMode>
|
|
@@ -1156,7 +1237,7 @@ exec "$JAVACMD" "$@"
|
|
|
1156
1237
|
</StrictMode>,
|
|
1157
1238
|
);
|
|
1158
1239
|
}
|
|
1159
|
-
`)}var
|
|
1240
|
+
`)}var Vs=`# http://editorconfig.org
|
|
1160
1241
|
root = true
|
|
1161
1242
|
|
|
1162
1243
|
[*]
|
|
@@ -1174,9 +1255,9 @@ end_of_line = crlf
|
|
|
1174
1255
|
[{*.kt,*.kts,*.md}]
|
|
1175
1256
|
indent_size = 4
|
|
1176
1257
|
max_line_length = 100
|
|
1177
|
-
`,
|
|
1258
|
+
`,Hs=`* text=auto eol=lf
|
|
1178
1259
|
*.bat text eol=crlf
|
|
1179
|
-
`,
|
|
1260
|
+
`,Us=`# Gradle
|
|
1180
1261
|
.gradle/
|
|
1181
1262
|
build/
|
|
1182
1263
|
!**/src/**/build/
|
|
@@ -1213,7 +1294,7 @@ out/
|
|
|
1213
1294
|
# Misc
|
|
1214
1295
|
.DS_Store
|
|
1215
1296
|
*.pem
|
|
1216
|
-
`;function
|
|
1297
|
+
`;function Ws(e,t){Ga(t,`.gitignore`,Us),Ga(t,`.gitattributes`,Hs),Ga(t,`.editorconfig`,Vs)}var Gs=`package <%= filePackage %>
|
|
1217
1298
|
|
|
1218
1299
|
import kotlin.js.JsExport
|
|
1219
1300
|
import kotlin.jvm.JvmOverloads
|
|
@@ -1241,9 +1322,9 @@ class <%= formClass %>SubmitError @JvmOverloads constructor(override val message
|
|
|
1241
1322
|
@SerialName("validationError")
|
|
1242
1323
|
class <%= formClass %>SubmitValidationError(val issues: List<LocatedValidationIssue>) :
|
|
1243
1324
|
<%= formClass %>SubmitResponse
|
|
1244
|
-
`;function
|
|
1325
|
+
`;function Ks(e,t){let n={filePackage:t.currentPackage,formClass:e.name};Na(t,`${e.name}Responses.kt`,Gs,n)}var qs=`@use "@ostack.tech/ui/scss" as o-ui;
|
|
1245
1326
|
@use "@ostack.tech/ui-kform/scss" as o-ui-kform;
|
|
1246
|
-
`;function
|
|
1327
|
+
`;function Js(e,t){Ga(t,`index.scss`,qs)}var Ys=`import js from "@eslint/js";
|
|
1247
1328
|
import { defineConfig, globalIgnores } from "eslint/config";
|
|
1248
1329
|
import reactHooks from "eslint-plugin-react-hooks";
|
|
1249
1330
|
import reactRefresh from "eslint-plugin-react-refresh";
|
|
@@ -1265,7 +1346,7 @@ export default defineConfig([
|
|
|
1265
1346
|
},
|
|
1266
1347
|
},
|
|
1267
1348
|
]);
|
|
1268
|
-
`,
|
|
1349
|
+
`,Xs=`<!doctype html>
|
|
1269
1350
|
<html lang="en">
|
|
1270
1351
|
<head>
|
|
1271
1352
|
<meta charset="UTF-8" />
|
|
@@ -1287,7 +1368,7 @@ export default defineConfig([
|
|
|
1287
1368
|
<\/script>
|
|
1288
1369
|
</body>
|
|
1289
1370
|
</html>
|
|
1290
|
-
`,
|
|
1371
|
+
`,Zs=`{
|
|
1291
1372
|
"name": "<%= formId %>-react-app",
|
|
1292
1373
|
"private": true,
|
|
1293
1374
|
"version": "0.0.0",
|
|
@@ -1302,9 +1383,9 @@ export default defineConfig([
|
|
|
1302
1383
|
"@fortawesome/fontawesome-svg-core": "<%= dependencyVersions["@fortawesome/fontawesome-svg-core"] %>",
|
|
1303
1384
|
"@fortawesome/free-regular-svg-icons": "<%= dependencyVersions["@fortawesome/free-regular-svg-icons"] %>",
|
|
1304
1385
|
"@fortawesome/free-solid-svg-icons": "<%= dependencyVersions["@fortawesome/free-solid-svg-icons"] %>",
|
|
1305
|
-
"@ostack.tech/kform-react": "
|
|
1306
|
-
"@ostack.tech/ui": "
|
|
1307
|
-
"@ostack.tech/ui-kform": "
|
|
1386
|
+
"@ostack.tech/kform-react": "^<%= kFormVersion %>",
|
|
1387
|
+
"@ostack.tech/ui": "^<%= ostackUiVersion %>",
|
|
1388
|
+
"@ostack.tech/ui-kform": "^<%= ostackUiVersion %>",
|
|
1308
1389
|
"date-fns": "<%= dependencyVersions["date-fns"] %>",
|
|
1309
1390
|
"<%= formId %>-shared": "file:../shared/build/<%= formId %>-shared-0.0.1.tgz",
|
|
1310
1391
|
"react": "<%= dependencyVersions.react %>",
|
|
@@ -1313,7 +1394,7 @@ export default defineConfig([
|
|
|
1313
1394
|
"devDependencies": {
|
|
1314
1395
|
"@eslint/js": "<%= dependencyVersions["@eslint/js"] %>",
|
|
1315
1396
|
"@types/node": "<%= dependencyVersions["@types/node"] %>",
|
|
1316
|
-
"@types/ostack.tech__kform": "npm:@ostack.tech/kform
|
|
1397
|
+
"@types/ostack.tech__kform": "npm:@ostack.tech/kform@^<%= kFormVersion %>",
|
|
1317
1398
|
"@types/react": "<%= dependencyVersions["@types/react"] %>",
|
|
1318
1399
|
"@types/react-dom": "<%= dependencyVersions["@types/react-dom"] %>",
|
|
1319
1400
|
"@vitejs/plugin-react": "<%= dependencyVersions["@vitejs/plugin-react"] %>",
|
|
@@ -1327,7 +1408,7 @@ export default defineConfig([
|
|
|
1327
1408
|
"vite": "<%= dependencyVersions.vite %>"
|
|
1328
1409
|
}
|
|
1329
1410
|
}
|
|
1330
|
-
`,
|
|
1411
|
+
`,Qs=`<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>`,$s=`{
|
|
1331
1412
|
"compilerOptions": {
|
|
1332
1413
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
1333
1414
|
"target": "es2023",
|
|
@@ -1353,14 +1434,14 @@ export default defineConfig([
|
|
|
1353
1434
|
},
|
|
1354
1435
|
"include": ["src"]
|
|
1355
1436
|
}
|
|
1356
|
-
`,
|
|
1437
|
+
`,ec=`{
|
|
1357
1438
|
"files": [],
|
|
1358
1439
|
"references": [
|
|
1359
1440
|
{ "path": "./tsconfig.app.json" },
|
|
1360
1441
|
{ "path": "./tsconfig.node.json" }
|
|
1361
1442
|
]
|
|
1362
1443
|
}
|
|
1363
|
-
`,
|
|
1444
|
+
`,tc=`{
|
|
1364
1445
|
"compilerOptions": {
|
|
1365
1446
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
1366
1447
|
"target": "es2023",
|
|
@@ -1383,7 +1464,7 @@ export default defineConfig([
|
|
|
1383
1464
|
},
|
|
1384
1465
|
"include": ["vite.config.ts"]
|
|
1385
1466
|
}
|
|
1386
|
-
`,
|
|
1467
|
+
`,nc=`import { resolve } from "node:path";
|
|
1387
1468
|
|
|
1388
1469
|
import react from "@vitejs/plugin-react";
|
|
1389
1470
|
import { defineConfig } from "vite";
|
|
@@ -1425,4 +1506,4 @@ export default defineConfig({
|
|
|
1425
1506
|
proxy: { "<%= apiBasePath %>": "<%= viteConfigProxyTarget %>" },
|
|
1426
1507
|
},
|
|
1427
1508
|
});
|
|
1428
|
-
`;function
|
|
1509
|
+
`;function rc(e,t){let n={formId:mo(e.name),formClass:e.name,formTitle:fo(e.name),ostackUiVersion:`1.1.0`,kFormVersion:`1.1.0`,dependencyVersions:JSON.parse(`{"@eslint/js":"^10.0.1","@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.1.0","@ostack.tech/kform-react":"^1.1.0","@ostack.tech/kform-scaffolder":"^1.1.0","@storybook/addon-a11y":"^10.5.10","@storybook/addon-docs":"^10.5.10","@storybook/addon-links":"^10.5.10","@storybook/react-vite":"^10.5.10","@types/node":"^24.13.3","@types/react":"^19.2.18","@types/react-dom":"^19.2.5","@vitejs/plugin-react":"^6.1.0","change-case":"^5.4.4","cpy-cli":"^7.0.0","date-fns":"^4.4.0","eslint":"^10.9.1","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.6","eslint-plugin-react-hooks":"^7.1.1","eslint-plugin-react-refresh":"^0.5.5","eslint-plugin-simple-import-sort":"^14.0.0","eslint-plugin-storybook":"^10.5.10","globals":"^17.11.0","happy-dom":"^20.11.6","lint-staged":"^17.3.0","prettier":"^3.9.6","prettier-plugin-jsdoc":"^1.8.1","react":"^19.2.8","react-dom":"^19.2.8","refractor":"^5.0.0","rimraf":"^6.1.3","sass-embedded":"^1.103.1","simple-git-hooks":"^2.13.1","storybook":"^10.5.10","terser":"^5.51.0","tslib":"^2.8.1","typescript":"~6.0.3","typescript-eslint":"^8.68.0","vite":"^8.2.2","vitest":"^4.1.11","write-excel-file":"^4.1.1","zod":"^4.4.3","zustand":"^5.0.15"}`),encodedExternalContexts:JSON.stringify(t.serializationFormat===`json`?`{}`:`<${e.name}ExternalContexts />`),apiBasePath:t.apiBasePath??`/api/`,viteConfigOutDir:t.viteConfigOutDir??`build/dist/`,viteConfigProxyTarget:t.viteConfigProxyTarget??`http://127.0.0.1:8080/`};Na(t,`react-app/package.json`,Zs,n),Na(t,`react-app/vite.config.ts`,nc,n),Ga(t,`react-app/tsconfig.json`,ec),Ga(t,`react-app/tsconfig.app.json`,$s),Ga(t,`react-app/tsconfig.node.json`,tc),Ga(t,`react-app/eslint.config.js`,Ys),Na(t,`react-app/index.html`,Xs,n),Ga(t,`react-app/public/favicon.svg`,Qs)}var ic={currentDir:`shared/src/commonMain/kotlin`},ac={currentDir:`shared/src/commonTest/kotlin`},oc={currentDir:`react-app/src`};function sc({name:e=`ostack-ui-kform`,schematicKinds:t=as,scaffolders:n=[Ws,Rs,js,rc,Gr(Da,ic),Gr(ui,ic),Gr(Ks,ic),Gr(ys,ic),Gr(Fo,ic),Gr(Ia,ac),Gr(zs,oc),Gr(Js,oc),Gr(ls,oc),Gr(_s,oc),Gr(wo,oc),Gr(ko,oc)],scaffoldingData:r=e=>({useFileBase64Serializer:!0,...e.config}),configs:i=(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Qa,{}),(0,U.jsx)(eo,{}),(0,U.jsx)(to,{})]}),version:a=`1.1.0`,...o}){return(0,U.jsx)(Ha,{name:e,schematicKinds:t,scaffolders:n,scaffoldingData:r,configs:i,version:a,...o})}(0,S.createRoot)(document.getElementById(`root`)).render((0,U.jsx)(C.StrictMode,{children:(0,U.jsx)(sc,{})}));
|
package/dist/webapp/index.html
CHANGED
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
5
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
7
|
<meta name="color-scheme" content="light dark" />
|
|
7
8
|
<title>Form Scaffolder—ostack/UI-KForm</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-CoI1_Ink.js"></script>
|
|
9
10
|
<link rel="stylesheet" crossorigin href="/assets/index-BKUWl2po.css">
|
|
10
11
|
</head>
|
|
11
12
|
<body>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ostack.tech/ui-kform-scaffolder",
|
|
3
3
|
"description": "Scaffold a new project using ostack/KForm, UI, and UI-KForm.",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"homepage": "https://ui-kform-scaffolder.ostack.tech/",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Opensoft",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"preview": "vite build --mode webapp && vite preview --outDir dist/webapp/"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@ostack.tech/kform-scaffolder": "
|
|
40
|
+
"@ostack.tech/kform-scaffolder": "^1.0.0",
|
|
41
41
|
"@types/react": "^19.0.0",
|
|
42
42
|
"change-case": "^5.0.0",
|
|
43
43
|
"react": "^19.0.0",
|