@ostack.tech/ui-kform-scaffolder 1.0.0 → 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.
|
@@ -937,7 +937,7 @@ function scaffoldGradleProject(schematic, data) {
|
|
|
937
937
|
filePackage: data.currentPackage,
|
|
938
938
|
formId: kebabCase(schematic.name),
|
|
939
939
|
formTitle: capitalCase(schematic.name),
|
|
940
|
-
kFormVersion: "1.
|
|
940
|
+
kFormVersion: "1.1.0",
|
|
941
941
|
serializationFormat: data.serializationFormat ?? "json",
|
|
942
942
|
includeKotlinxDatetime: data.includeKotlinxDatetime ?? usesKotlinxDatetime(schematic, data),
|
|
943
943
|
includeKtMath: data.includeKtMath ?? usesKtMath(schematic),
|
|
@@ -1073,7 +1073,7 @@ var eslint_config_default = "import js from \"@eslint/js\";\nimport { defineConf
|
|
|
1073
1073
|
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";
|
|
1074
1074
|
//#endregion
|
|
1075
1075
|
//#region src/scaffolding/templates/react-app/package.json.ejs?raw
|
|
1076
|
-
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\": \"eslint .\",\n \"preview\": \"vite preview\"\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 \"@ostack.tech/kform-react\": \"
|
|
1076
|
+
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\": \"eslint .\",\n \"preview\": \"vite preview\"\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 \"@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 \"@eslint/js\": \"<%= dependencyVersions[\"@eslint/js\"] %>\",\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 \"eslint\": \"<%= dependencyVersions.eslint %>\",\n \"eslint-plugin-react-hooks\": \"<%= dependencyVersions[\"eslint-plugin-react-hooks\"] %>\",\n \"eslint-plugin-react-refresh\": \"<%= dependencyVersions[\"eslint-plugin-react-refresh\"] %>\",\n \"globals\": \"<%= dependencyVersions.globals %>\",\n \"sass-embedded\": \"<%= dependencyVersions[\"sass-embedded\"] %>\",\n \"typescript\": \"<%= dependencyVersions.typescript %>\",\n \"typescript-eslint\": \"<%= dependencyVersions[\"typescript-eslint\"] %>\",\n \"vite\": \"<%= dependencyVersions.vite %>\"\n }\n}\n";
|
|
1077
1077
|
//#endregion
|
|
1078
1078
|
//#region src/scaffolding/templates/react-app/public/favicon.svg?raw
|
|
1079
1079
|
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>";
|
|
@@ -1098,9 +1098,9 @@ function scaffoldViteProject(schematic, data) {
|
|
|
1098
1098
|
formId: kebabCase(schematic.name),
|
|
1099
1099
|
formClass: schematic.name,
|
|
1100
1100
|
formTitle: capitalCase(schematic.name),
|
|
1101
|
-
ostackUiVersion: "1.
|
|
1102
|
-
kFormVersion: "1.
|
|
1103
|
-
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.
|
|
1101
|
+
ostackUiVersion: "1.1.0",
|
|
1102
|
+
kFormVersion: "1.1.0",
|
|
1103
|
+
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\"}"),
|
|
1104
1104
|
encodedExternalContexts: JSON.stringify(data.serializationFormat === "json" ? "{}" : `<${schematic.name}ExternalContexts />`),
|
|
1105
1105
|
apiBasePath: data.apiBasePath ?? "/api/",
|
|
1106
1106
|
viteConfigOutDir: data.viteConfigOutDir ?? "build/dist/",
|
|
@@ -1144,7 +1144,7 @@ function SchematicBuilder({ name = "ostack-ui-kform", schematicKinds = defaultSc
|
|
|
1144
1144
|
/* @__PURE__ */ jsx(DefaultLocaleConfig, {}),
|
|
1145
1145
|
/* @__PURE__ */ jsx(SerializationFormatConfig, {}),
|
|
1146
1146
|
/* @__PURE__ */ jsx(UseTableValuesSerializerConfig, {})
|
|
1147
|
-
] }), version = "1.
|
|
1147
|
+
] }), version = "1.1.0", ...otherProps }) {
|
|
1148
1148
|
return /* @__PURE__ */ jsx(SchematicBuilder$1, {
|
|
1149
1149
|
name,
|
|
1150
1150
|
schematicKinds,
|
|
@@ -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
|
`)+`
|
|
@@ -882,7 +882,7 @@ external object JsJodaTimeZoneModule
|
|
|
882
882
|
|
|
883
883
|
@JsExport
|
|
884
884
|
val jsJodaTz = JsJodaTimeZoneModule
|
|
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.
|
|
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
|
|
886
886
|
distributionPath=wrapper/dists
|
|
887
887
|
distributionUrl=https\\://services.gradle.org/distributions/gradle-9.5.0-bin.zip
|
|
888
888
|
networkTimeout=10000
|
|
@@ -1383,9 +1383,9 @@ export default defineConfig([
|
|
|
1383
1383
|
"@fortawesome/fontawesome-svg-core": "<%= dependencyVersions["@fortawesome/fontawesome-svg-core"] %>",
|
|
1384
1384
|
"@fortawesome/free-regular-svg-icons": "<%= dependencyVersions["@fortawesome/free-regular-svg-icons"] %>",
|
|
1385
1385
|
"@fortawesome/free-solid-svg-icons": "<%= dependencyVersions["@fortawesome/free-solid-svg-icons"] %>",
|
|
1386
|
-
"@ostack.tech/kform-react": "
|
|
1387
|
-
"@ostack.tech/ui": "
|
|
1388
|
-
"@ostack.tech/ui-kform": "
|
|
1386
|
+
"@ostack.tech/kform-react": "^<%= kFormVersion %>",
|
|
1387
|
+
"@ostack.tech/ui": "^<%= ostackUiVersion %>",
|
|
1388
|
+
"@ostack.tech/ui-kform": "^<%= ostackUiVersion %>",
|
|
1389
1389
|
"date-fns": "<%= dependencyVersions["date-fns"] %>",
|
|
1390
1390
|
"<%= formId %>-shared": "file:../shared/build/<%= formId %>-shared-0.0.1.tgz",
|
|
1391
1391
|
"react": "<%= dependencyVersions.react %>",
|
|
@@ -1394,7 +1394,7 @@ export default defineConfig([
|
|
|
1394
1394
|
"devDependencies": {
|
|
1395
1395
|
"@eslint/js": "<%= dependencyVersions["@eslint/js"] %>",
|
|
1396
1396
|
"@types/node": "<%= dependencyVersions["@types/node"] %>",
|
|
1397
|
-
"@types/ostack.tech__kform": "npm:@ostack.tech/kform
|
|
1397
|
+
"@types/ostack.tech__kform": "npm:@ostack.tech/kform@^<%= kFormVersion %>",
|
|
1398
1398
|
"@types/react": "<%= dependencyVersions["@types/react"] %>",
|
|
1399
1399
|
"@types/react-dom": "<%= dependencyVersions["@types/react-dom"] %>",
|
|
1400
1400
|
"@vitejs/plugin-react": "<%= dependencyVersions["@vitejs/plugin-react"] %>",
|
|
@@ -1506,4 +1506,4 @@ export default defineConfig({
|
|
|
1506
1506
|
proxy: { "<%= apiBasePath %>": "<%= viteConfigProxyTarget %>" },
|
|
1507
1507
|
},
|
|
1508
1508
|
});
|
|
1509
|
-
`;function rc(e,t){let n={formId:mo(e.name),formClass:e.name,formTitle:fo(e.name),ostackUiVersion:`1.
|
|
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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<meta name="color-scheme" content="light dark" />
|
|
8
8
|
<title>Form Scaffolder—ostack/UI-KForm</title>
|
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-CoI1_Ink.js"></script>
|
|
10
10
|
<link rel="stylesheet" crossorigin href="/assets/index-BKUWl2po.css">
|
|
11
11
|
</head>
|
|
12
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",
|