@ostack.tech/kform-scaffolder 0.32.0 → 0.32.1
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.
|
@@ -1530,7 +1530,7 @@ function SchematicBuilder({
|
|
|
1530
1530
|
/* @__PURE__ */ jsx(UseFileBase64SerializerConfig, {}),
|
|
1531
1531
|
/* @__PURE__ */ jsx(UseTableValuesSerializerConfig, {})
|
|
1532
1532
|
] }),
|
|
1533
|
-
version = "0.32.
|
|
1533
|
+
version = "0.32.1"
|
|
1534
1534
|
}) {
|
|
1535
1535
|
const [useSchematic] = useState(
|
|
1536
1536
|
() => create(
|
package/package.json
CHANGED
|
@@ -170,4 +170,4 @@ suspend fun assert<%= formClass %>NotContainsWarning(
|
|
|
170
170
|
LocatedValidationWarning(path, code),
|
|
171
171
|
validate<%= formClass %>(<%= formVar %>, path, externalContexts),
|
|
172
172
|
)
|
|
173
|
-
`;function o1(i,c){Op(c,`${i.name}Validator.kt`,s1,{filePackage:c.currentPackage,formVar:mp(i.name),formClass:i.name})}const f1=typeof document<"u"?rt.useLayoutEffect:()=>{};function Lm(i,c){f1(()=>{if(!i){c(void 0);return}const u=()=>c(i.getBoundingClientRect());u();const s=new ResizeObserver(([f])=>f&&u());return s.observe(i),window.addEventListener("resize",u),()=>{s.disconnect(),window.removeEventListener("resize",u),c(void 0)}},[i,c])}function d1({children:i}){const[c,u]=rt.useState(null),[s,f]=rt.useState(null);return Lm(c,o=>{s&&o&&(s.style.setProperty("--anchor-top",`${o.top}px`),s.style.setProperty("--anchor-left",`${o.left}px`),s.style.setProperty("--anchor-bottom",`${o.bottom}px`),s.style.setProperty("--anchor-right",`${o.right}px`),s.style.setProperty("--anchor-width",`${o.width}px`),s.style.setProperty("--anchor-height",`${o.height}px`))}),Lm(s,o=>{s&&o&&(s.style.setProperty("--width",`${o.width}px`),s.style.setProperty("--height",`${o.height}px`))}),mt.jsxs(mt.Fragment,{children:[mt.jsx("button",{type:"button",className:"builder-icon-button builder-action builder-config-schematic",popoverTarget:"builder-config-popover",title:"Config","aria-label":"Config",ref:u,children:"⚙️"}),mt.jsx("div",{popover:"",id:"builder-config-popover",ref:f,children:i})]})}const js={currentDir:"shared/src/commonMain/kotlin"},h1={currentDir:"shared/src/commonTest/kotlin"};function m1({name:i="kform",title:c=document.title,basePath:u,basePackage:s,baseDir:f,defaultRootClassPackage:o="org.example",defaultRootClassName:m="MyForm",schematicKinds:h=Wb,scaffolders:v=[xi(Dp,js),xi(fp,js),xi(c1,js),xi(o1,h1)],scaffoldingData:p=b=>b.config,actions:E=mt.jsxs(mt.Fragment,{children:[mt.jsx(Py,{}),mt.jsx(tb,{}),mt.jsx(rb,{})]}),configs:S=mt.jsxs(mt.Fragment,{children:[mt.jsx(ub,{}),mt.jsx(cb,{})]}),version:T="0.32.
|
|
173
|
+
`;function o1(i,c){Op(c,`${i.name}Validator.kt`,s1,{filePackage:c.currentPackage,formVar:mp(i.name),formClass:i.name})}const f1=typeof document<"u"?rt.useLayoutEffect:()=>{};function Lm(i,c){f1(()=>{if(!i){c(void 0);return}const u=()=>c(i.getBoundingClientRect());u();const s=new ResizeObserver(([f])=>f&&u());return s.observe(i),window.addEventListener("resize",u),()=>{s.disconnect(),window.removeEventListener("resize",u),c(void 0)}},[i,c])}function d1({children:i}){const[c,u]=rt.useState(null),[s,f]=rt.useState(null);return Lm(c,o=>{s&&o&&(s.style.setProperty("--anchor-top",`${o.top}px`),s.style.setProperty("--anchor-left",`${o.left}px`),s.style.setProperty("--anchor-bottom",`${o.bottom}px`),s.style.setProperty("--anchor-right",`${o.right}px`),s.style.setProperty("--anchor-width",`${o.width}px`),s.style.setProperty("--anchor-height",`${o.height}px`))}),Lm(s,o=>{s&&o&&(s.style.setProperty("--width",`${o.width}px`),s.style.setProperty("--height",`${o.height}px`))}),mt.jsxs(mt.Fragment,{children:[mt.jsx("button",{type:"button",className:"builder-icon-button builder-action builder-config-schematic",popoverTarget:"builder-config-popover",title:"Config","aria-label":"Config",ref:u,children:"⚙️"}),mt.jsx("div",{popover:"",id:"builder-config-popover",ref:f,children:i})]})}const js={currentDir:"shared/src/commonMain/kotlin"},h1={currentDir:"shared/src/commonTest/kotlin"};function m1({name:i="kform",title:c=document.title,basePath:u,basePackage:s,baseDir:f,defaultRootClassPackage:o="org.example",defaultRootClassName:m="MyForm",schematicKinds:h=Wb,scaffolders:v=[xi(Dp,js),xi(fp,js),xi(c1,js),xi(o1,h1)],scaffoldingData:p=b=>b.config,actions:E=mt.jsxs(mt.Fragment,{children:[mt.jsx(Py,{}),mt.jsx(tb,{}),mt.jsx(rb,{})]}),configs:S=mt.jsxs(mt.Fragment,{children:[mt.jsx(ub,{}),mt.jsx(cb,{})]}),version:T="0.32.1"}){const[b]=rt.useState(()=>ky(By(()=>Li({kind:Tp.kind,packageSuffix:o,name:m,children:[]}),{name:i}))),D=rt.useMemo(()=>new Map(h.sort((N,q)=>N.kind.localeCompare(q.kind)).map(N=>[N.kind,N])),[h]),y=rt.useRef(null),[C,x]=rt.useState(null),O=f0(um(to,{activationConstraint:{distance:10,delay:400,tolerance:20}}),um($s));return mt.jsx(Za.Provider,{value:{name:i,basePath:u,basePackage:s,baseDir:f,schematicKinds:D,scaffolders:v,scaffoldingData:p,getRootSchematic:b.getState,useSchematic:b,setSchematic:b.setState,removeSchematic:()=>{},parentPackage:s,draggedSchematic:C,latestSchematicFileHandleRef:y},children:mt.jsxs(fy,{sensors:O,collisionDetection:g0,onDragStart:N=>x({id:N.active.id,...N.active.data.current}),onDragEnd:N=>{const{parentId:q,sortBefore:L,ignored:P}=N.over?.data.current??{};P||b.setState(Y=>_b(Y,N.active.id,q,L)),x(null)},children:[mt.jsxs("form",{className:"builder-root",children:[mt.jsxs("header",{className:"builder-header",children:[mt.jsx("h1",{className:"builder-title",children:c}),T&&mt.jsx("div",{className:"builder-version",children:T}),mt.jsxs("div",{className:"builder-actions",children:[S&&mt.jsx(d1,{children:S}),E]})]}),mt.jsx(zp,{})]}),mt.jsx(Dy,{children:C&&mt.jsx("div",{className:"builder-dragged",children:C.node})})]})})}Ig.createRoot(document.getElementById("root")).render(mt.jsx(rt.StrictMode,{children:mt.jsx(m1,{})}));
|
package/webapp/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<meta name="color-scheme" content="light dark" />
|
|
7
7
|
<title>Form Scaffolder—ostack/KForm</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-C_nn3B2D.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-x_B5n20N.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|