@ostack.tech/kform-scaffolder 1.2.0-SNAPSHOT.20260922150420 → 1.2.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.
|
@@ -2271,7 +2271,7 @@ function SchematicBuilderConfig(t0) {
|
|
|
2271
2271
|
//#region src/SchematicBuilder.tsx
|
|
2272
2272
|
var KOTLIN_MAIN_DATA = { currentDir: "shared/src/commonMain/kotlin" };
|
|
2273
2273
|
var KOTLIN_TEST_DATA = { currentDir: "shared/src/commonTest/kotlin" };
|
|
2274
|
-
var DEFAULT_APP_VERSION = "1.2.0
|
|
2274
|
+
var DEFAULT_APP_VERSION = "1.2.0";
|
|
2275
2275
|
var DEFAULT_SCAFFOLDERS = [
|
|
2276
2276
|
configScaffolder(scaffoldSchemas, KOTLIN_MAIN_DATA),
|
|
2277
2277
|
configScaffolder(scaffoldModels, KOTLIN_MAIN_DATA),
|
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 Ja(e,t){Ga(t,`${e.name}Validator.kt`,qa,{filePackage:t.currentPackage,formVar:qr(e.name),formClass:e.name})}var Ya=typeof document<`u`?E.useLayoutEffect:E.useEffect;function Xa(e,t){let n=(0,T.c)(4),r,i;n[0]!==e||n[1]!==t?(r=()=>{if(!e){t(void 0);return}let n=()=>t(e.getBoundingClientRect());n();let r=new ResizeObserver(e=>{let[t]=e;return t&&n()});return r.observe(e),window.addEventListener(`resize`,n),()=>{r.disconnect(),window.removeEventListener(`resize`,n),t(void 0)}},i=[e,t],n[0]=e,n[1]=t,n[2]=r,n[3]=i):(r=n[2],i=n[3]),Ya(r,i)}function Za(e){let t=(0,T.c)(7),{children:n}=e,[r,i]=(0,E.useState)(null),[a,o]=(0,E.useState)(null),s;t[0]===a?s=t[1]:(s=e=>{a&&e&&(a.style.setProperty(`--anchor-top`,`${e.top}px`),a.style.setProperty(`--anchor-left`,`${e.left}px`),a.style.setProperty(`--anchor-bottom`,`${e.bottom}px`),a.style.setProperty(`--anchor-right`,`${e.right}px`),a.style.setProperty(`--anchor-width`,`${e.width}px`),a.style.setProperty(`--anchor-height`,`${e.height}px`))},t[0]=a,t[1]=s),Xa(r,s);let c;t[2]===a?c=t[3]:(c=e=>{a&&e&&(a.style.setProperty(`--width`,`${e.width}px`),a.style.setProperty(`--height`,`${e.height}px`))},t[2]=a,t[3]=c),Xa(a,c);let l;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,q.jsx)(`button`,{type:`button`,className:`builder-icon-button builder-action builder-config-schematic`,popoverTarget:`builder-config-popover`,title:`Config`,"aria-label":`Config`,ref:i,children:`⚙️`}),t[4]=l):l=t[4];let u;return t[5]===n?u=t[6]:(u=(0,q.jsxs)(q.Fragment,{children:[l,(0,q.jsx)(`div`,{popover:``,id:`builder-config-popover`,ref:o,children:n})]}),t[5]=n,t[6]=u),u}var Qa={currentDir:`shared/src/commonMain/kotlin`},$a={currentDir:`shared/src/commonTest/kotlin`},eo=`1.2.0
|
|
173
|
+
`;function Ja(e,t){Ga(t,`${e.name}Validator.kt`,qa,{filePackage:t.currentPackage,formVar:qr(e.name),formClass:e.name})}var Ya=typeof document<`u`?E.useLayoutEffect:E.useEffect;function Xa(e,t){let n=(0,T.c)(4),r,i;n[0]!==e||n[1]!==t?(r=()=>{if(!e){t(void 0);return}let n=()=>t(e.getBoundingClientRect());n();let r=new ResizeObserver(e=>{let[t]=e;return t&&n()});return r.observe(e),window.addEventListener(`resize`,n),()=>{r.disconnect(),window.removeEventListener(`resize`,n),t(void 0)}},i=[e,t],n[0]=e,n[1]=t,n[2]=r,n[3]=i):(r=n[2],i=n[3]),Ya(r,i)}function Za(e){let t=(0,T.c)(7),{children:n}=e,[r,i]=(0,E.useState)(null),[a,o]=(0,E.useState)(null),s;t[0]===a?s=t[1]:(s=e=>{a&&e&&(a.style.setProperty(`--anchor-top`,`${e.top}px`),a.style.setProperty(`--anchor-left`,`${e.left}px`),a.style.setProperty(`--anchor-bottom`,`${e.bottom}px`),a.style.setProperty(`--anchor-right`,`${e.right}px`),a.style.setProperty(`--anchor-width`,`${e.width}px`),a.style.setProperty(`--anchor-height`,`${e.height}px`))},t[0]=a,t[1]=s),Xa(r,s);let c;t[2]===a?c=t[3]:(c=e=>{a&&e&&(a.style.setProperty(`--width`,`${e.width}px`),a.style.setProperty(`--height`,`${e.height}px`))},t[2]=a,t[3]=c),Xa(a,c);let l;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,q.jsx)(`button`,{type:`button`,className:`builder-icon-button builder-action builder-config-schematic`,popoverTarget:`builder-config-popover`,title:`Config`,"aria-label":`Config`,ref:i,children:`⚙️`}),t[4]=l):l=t[4];let u;return t[5]===n?u=t[6]:(u=(0,q.jsxs)(q.Fragment,{children:[l,(0,q.jsx)(`div`,{popover:``,id:`builder-config-popover`,ref:o,children:n})]}),t[5]=n,t[6]=u),u}var Qa={currentDir:`shared/src/commonMain/kotlin`},$a={currentDir:`shared/src/commonTest/kotlin`},eo=`1.2.0`,to=[mr(_a,Qa),mr(Pr,Qa),mr(Ka,Qa),mr(Ja,$a)],no=e=>e.config,ro=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(dr,{}),(0,q.jsx)(fr,{}),(0,q.jsx)(br,{})]}),io=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Sr,{}),(0,q.jsx)(Cr,{})]});function ao(e){let t=(0,T.c)(53),{name:n,title:r,basePath:i,basePackage:a,baseDir:o,defaultRootClassPackage:s,defaultRootClassName:c,schematicKinds:l,scaffolders:u,scaffoldingData:d,actions:f,configs:p,version:m}=e,h=n===void 0?`kform`:n,g=r===void 0?document.title:r,_=s===void 0?`org.example`:s,v=c===void 0?`MyForm`:c,y=l===void 0?ga:l,b=u===void 0?to:u,x=d===void 0?no:d,S=f===void 0?ro:f,C=p===void 0?io:p,w=m===void 0?eo:m,D;t[0]!==v||t[1]!==_||t[2]!==h?(D=()=>Vn(Kn(()=>ei({kind:ha.kind,packageSuffix:_,name:v,children:[]}),{name:h})),t[0]=v,t[1]=_,t[2]=h,t[3]=D):D=t[3];let[O]=(0,E.useState)(D),k;t[4]===y?k=t[5]:(k=new Map(y.sort(co).map(so)),t[4]=y,t[5]=k);let A=k,j=(0,E.useRef)(null),[M,N]=(0,E.useState)(null),P;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(P={activationConstraint:{distance:10,delay:400,tolerance:20}},t[6]=P):P=t[6];let F=Se(xe(St,P),xe(_t)),I,L;t[7]===O?(I=t[8],L=t[9]):(I=()=>O.getState(),L=e=>O.setState(e),t[7]=O,t[8]=I,t[9]=L);let R;t[10]!==o||t[11]!==a||t[12]!==i||t[13]!==M||t[14]!==h||t[15]!==b||t[16]!==x||t[17]!==A||t[18]!==O||t[19]!==I||t[20]!==L?(R={name:h,basePath:i,basePackage:a,baseDir:o,schematicKinds:A,scaffolders:b,scaffoldingData:x,store:O,getSchematic:I,setSchematic:L,removeSchematic:oo,parentPackage:a,draggedSchematic:M,latestSchematicFileHandleRef:j},t[10]=o,t[11]=a,t[12]=i,t[13]=M,t[14]=h,t[15]=b,t[16]=x,t[17]=A,t[18]=O,t[19]=I,t[20]=L,t[21]=R):R=t[21];let z;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(z=e=>N({id:e.active.id,...e.active.data.current}),t[22]=z):z=t[22];let B;t[23]===O?B=t[24]:(B=e=>{let{parentId:t,sortBefore:n,ignored:r}=e.over?.data.current??{};r||O.setState(r=>ti(r,e.active.id,t,n)),N(null)},t[23]=O,t[24]=B);let V;t[25]===g?V=t[26]:(V=(0,q.jsx)(`h1`,{className:`builder-title`,children:g}),t[25]=g,t[26]=V);let ee;t[27]===w?ee=t[28]:(ee=w&&(0,q.jsx)(`div`,{className:`builder-version`,children:w}),t[27]=w,t[28]=ee);let te;t[29]===C?te=t[30]:(te=C&&(0,q.jsx)(Za,{children:C}),t[29]=C,t[30]=te);let ne;t[31]!==S||t[32]!==te?(ne=(0,q.jsxs)(`div`,{className:`builder-actions`,children:[te,S]}),t[31]=S,t[32]=te,t[33]=ne):ne=t[33];let re;t[34]!==V||t[35]!==ee||t[36]!==ne?(re=(0,q.jsxs)(`header`,{className:`builder-header`,children:[V,ee,ne]}),t[34]=V,t[35]=ee,t[36]=ne,t[37]=re):re=t[37];let ie;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(ie=(0,q.jsx)(Ti,{}),t[38]=ie):ie=t[38];let H;t[39]===re?H=t[40]:(H=(0,q.jsxs)(`form`,{className:`builder-root`,children:[re,ie]}),t[39]=re,t[40]=H);let ae;t[41]===M?ae=t[42]:(ae=M&&(0,q.jsx)(`div`,{className:`builder-dragged`,children:M.node}),t[41]=M,t[42]=ae);let oe;t[43]===ae?oe=t[44]:(oe=(0,q.jsx)(zn,{children:ae}),t[43]=ae,t[44]=oe);let se;t[45]!==F||t[46]!==B||t[47]!==H||t[48]!==oe?(se=(0,q.jsxs)(yn,{sensors:F,collisionDetection:Ae,onDragStart:z,onDragEnd:B,children:[H,oe]}),t[45]=F,t[46]=B,t[47]=H,t[48]=oe,t[49]=se):se=t[49];let U;return t[50]!==R||t[51]!==se?(U=(0,q.jsx)(sr,{value:R,children:se}),t[50]=R,t[51]=se,t[52]=U):U=t[52],U}function oo(){}function so(e){return[e.kind,e]}function co(e,t){return e.kind.localeCompare(t.kind)}(0,w.createRoot)(document.getElementById(`root`)).render((0,q.jsx)(E.StrictMode,{children:(0,q.jsx)(ao,{})}));
|
package/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/KForm</title>
|
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-bY4b92vQ.js"></script>
|
|
10
10
|
<link rel="stylesheet" crossorigin href="/assets/index-BKUWl2po.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|