@kozou/svelte-ui 1.20.1 → 1.21.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.
- package/build/client/_app/immutable/assets/{0.BFw6nhto.css → 0.D0QQ9_9s.css} +1 -1
- package/build/client/_app/immutable/assets/0.D0QQ9_9s.css.br +0 -0
- package/build/client/_app/immutable/assets/0.D0QQ9_9s.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BPmV12Pr.js +3 -0
- package/build/client/_app/immutable/chunks/BPmV12Pr.js.br +0 -0
- package/build/client/_app/immutable/chunks/BPmV12Pr.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CzvdUerA.js +1 -0
- package/build/client/_app/immutable/chunks/CzvdUerA.js.br +0 -0
- package/build/client/_app/immutable/chunks/CzvdUerA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DM1WDXNi.js +2 -0
- package/build/client/_app/immutable/chunks/DM1WDXNi.js.br +0 -0
- package/build/client/_app/immutable/chunks/DM1WDXNi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DRLNDRGd.js +1 -0
- package/build/client/_app/immutable/chunks/DRLNDRGd.js.br +0 -0
- package/build/client/_app/immutable/chunks/DRLNDRGd.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Tpr6dUXs.js +1 -0
- package/build/client/_app/immutable/chunks/Tpr6dUXs.js.br +0 -0
- package/build/client/_app/immutable/chunks/Tpr6dUXs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ng5ew0-V.js +2 -0
- package/build/client/_app/immutable/chunks/ng5ew0-V.js.br +0 -0
- package/build/client/_app/immutable/chunks/ng5ew0-V.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.IRpLXiYT.js +2 -0
- package/build/client/_app/immutable/entry/app.IRpLXiYT.js.br +0 -0
- package/build/client/_app/immutable/entry/app.IRpLXiYT.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DHyiZRvR.js +1 -0
- package/build/client/_app/immutable/entry/start.DHyiZRvR.js.br +1 -0
- package/build/client/_app/immutable/entry/start.DHyiZRvR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CzDt86DM.js +1 -0
- package/build/client/_app/immutable/nodes/0.CzDt86DM.js.br +2 -0
- package/build/client/_app/immutable/nodes/0.CzDt86DM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.Ds1FrfOA.js +1 -0
- package/build/client/_app/immutable/nodes/1.Ds1FrfOA.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.Ds1FrfOA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.BJIHarag.js +2 -0
- package/build/client/_app/immutable/nodes/2.BJIHarag.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.BJIHarag.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.vV9B4dJJ.js +1 -0
- package/build/client/_app/immutable/nodes/3.vV9B4dJJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.vV9B4dJJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.DP1YMUE5.js → 4.Dspxez47.js} +2 -2
- package/build/client/_app/immutable/nodes/4.Dspxez47.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Dspxez47.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.Bv_PVEBh.js +1 -0
- package/build/client/_app/immutable/nodes/5.Bv_PVEBh.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.Bv_PVEBh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.DozLeltI.js +1 -0
- package/build/client/_app/immutable/nodes/6.DozLeltI.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DozLeltI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.OrbBRjxz.js +1 -0
- package/build/client/_app/immutable/nodes/7.OrbBRjxz.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.OrbBRjxz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.BwzzPDZH.js +1 -0
- package/build/client/_app/immutable/nodes/8.BwzzPDZH.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BwzzPDZH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.ByJ3R-gj.js → 9.DcN_pzX4.js} +1 -1
- package/build/client/_app/immutable/nodes/9.DcN_pzX4.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DcN_pzX4.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/chunks/{0-QvKVS1pE.js → 0-D3Od9Nns.js} +6 -6
- package/build/server/chunks/0-D3Od9Nns.js.map +1 -0
- package/build/server/chunks/1-DixDdLll.js +9 -0
- package/build/server/chunks/{1-BZAHQ_rM.js.map → 1-DixDdLll.js.map} +1 -1
- package/build/server/chunks/{2-DGOJW-s_.js → 2-CZzPkcAH.js} +6 -7
- package/build/server/chunks/2-CZzPkcAH.js.map +1 -0
- package/build/server/chunks/{3-BALkppx0.js → 3-BN6KhH_S.js} +15 -15
- package/build/server/chunks/3-BN6KhH_S.js.map +1 -0
- package/build/server/chunks/{4-OlSudnzY.js → 4-DnqMYPCR.js} +7 -6
- package/build/server/chunks/4-DnqMYPCR.js.map +1 -0
- package/build/server/chunks/{5-D-48ExuO.js → 5-DcH4FkmM.js} +8 -7
- package/build/server/chunks/5-DcH4FkmM.js.map +1 -0
- package/build/server/chunks/{6-DRZCDQKg.js → 6-DAv9kX20.js} +8 -9
- package/build/server/chunks/6-DAv9kX20.js.map +1 -0
- package/build/server/chunks/{7-BqcZ4dwt.js → 7-BjYWuqqT.js} +14 -14
- package/build/server/chunks/7-BjYWuqqT.js.map +1 -0
- package/build/server/chunks/{8-Wfsla4aq.js → 8-0yg0evpN.js} +14 -14
- package/build/server/chunks/8-0yg0evpN.js.map +1 -0
- package/build/server/chunks/{9-DRxhju5a.js → 9-D4RQ11kF.js} +9 -9
- package/build/server/chunks/9-D4RQ11kF.js.map +1 -0
- package/build/server/chunks/{ListTable-D8OnEdye.js → ListTable-BAC5xf0U.js} +5 -6
- package/build/server/chunks/ListTable-BAC5xf0U.js.map +1 -0
- package/build/server/chunks/{_layout.svelte-CouhggA0.js → _layout.svelte-BTiJ5oei.js} +3 -3
- package/build/server/chunks/_layout.svelte-BTiJ5oei.js.map +1 -0
- package/build/server/chunks/{_page.svelte-7maQnLbj.js → _page.svelte-28WIAb-A.js} +10 -10
- package/build/server/chunks/_page.svelte-28WIAb-A.js.map +1 -0
- package/build/server/chunks/{_page.svelte-D8nYMywt.js → _page.svelte-BE0Fm43g.js} +5 -5
- package/build/server/chunks/_page.svelte-BE0Fm43g.js.map +1 -0
- package/build/server/chunks/{_page.svelte-TZzwWQli.js → _page.svelte-BN_4l_X_.js} +9 -9
- package/build/server/chunks/_page.svelte-BN_4l_X_.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BHW_BBcE.js → _page.svelte-C2VLDSXv.js} +5 -5
- package/build/server/chunks/_page.svelte-C2VLDSXv.js.map +1 -0
- package/build/server/chunks/{_page.svelte-Bf0wrvsv.js → _page.svelte-CYtHpl1s.js} +3 -3
- package/build/server/chunks/_page.svelte-CYtHpl1s.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CGTBvaNV.js → _page.svelte-CmOUnClb.js} +10 -10
- package/build/server/chunks/_page.svelte-CmOUnClb.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DeVGBJ28.js → _page.svelte-DhUxTzmV.js} +3 -3
- package/build/server/chunks/_page.svelte-DhUxTzmV.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DU1gFVoJ.js → _page.svelte-uvkEYlC-.js} +6 -7
- package/build/server/chunks/_page.svelte-uvkEYlC-.js.map +1 -0
- package/build/server/chunks/_server.ts-BwAtICwe.js +20 -0
- package/build/server/chunks/_server.ts-BwAtICwe.js.map +1 -0
- package/build/server/chunks/{adapter-DVhZVTjg.js → adapter-DNuW0qB7.js} +7 -10
- package/build/server/chunks/adapter-DNuW0qB7.js.map +1 -0
- package/build/server/chunks/{adapter-error-yHvEGaY7.js → adapter-error-ChkgLg4H.js} +3 -3
- package/build/server/chunks/adapter-error-ChkgLg4H.js.map +1 -0
- package/build/server/chunks/app-SwLi37Vg.js +12 -0
- package/build/server/chunks/app-SwLi37Vg.js.map +1 -0
- package/build/server/chunks/{client-DRqw6Y3c.js → client-DVDsL8PQ.js} +4 -5
- package/build/server/chunks/client-DVDsL8PQ.js.map +1 -0
- package/build/server/chunks/{composite-form-Ejfr7DaR.js → composite-form-WDDlaUQo.js} +96 -112
- package/build/server/chunks/composite-form-WDDlaUQo.js.map +1 -0
- package/build/server/chunks/{error.svelte-g7mc4FAb.js → error.svelte-CAqyybBm.js} +7 -10
- package/build/server/chunks/error.svelte-CAqyybBm.js.map +1 -0
- package/build/server/chunks/{hooks.server-BUTf2J08.js → hooks.server-CU_-pzVZ.js} +312 -363
- package/build/server/chunks/hooks.server-CU_-pzVZ.js.map +1 -0
- package/build/server/chunks/index-CVekYGHP.js.map +1 -1
- package/build/server/chunks/index-DBqjc0Yf.js.map +1 -1
- package/build/server/chunks/{internal2-CGNoaasI.js → internal2-Dgkl_mbK.js} +340 -227
- package/build/server/chunks/internal2-Dgkl_mbK.js.map +1 -0
- package/build/server/chunks/{list-params-DiCLPOBj.js → list-params-Dz_BNoxl.js} +3 -3
- package/build/server/chunks/list-params-Dz_BNoxl.js.map +1 -0
- package/build/server/chunks/{mcp-connection-JeveuASs.js → mcp-connection-CoIXpCQy.js} +2 -2
- package/build/server/chunks/mcp-connection-CoIXpCQy.js.map +1 -0
- package/build/server/chunks/{privilege-readonly-CK4k2aYO.js → privilege-readonly-CoCKf_KX.js} +2 -2
- package/build/server/chunks/privilege-readonly-CoCKf_KX.js.map +1 -0
- package/build/server/chunks/{relation-options-jz3t9Tvk.js → relation-options-DTOgED4q.js} +2 -2
- package/build/server/chunks/{relation-options-jz3t9Tvk.js.map → relation-options-DTOgED4q.js.map} +1 -1
- package/build/server/chunks/{relation-select-composite-field-DxxTuvAH.js → relation-select-composite-field-CqIRP5Rd.js} +6 -6
- package/build/server/chunks/relation-select-composite-field-CqIRP5Rd.js.map +1 -0
- package/build/server/chunks/{resource-id-CFSW_3aR.js → resource-id-vFoEgiDD.js} +2 -2
- package/build/server/chunks/resource-id-vFoEgiDD.js.map +1 -0
- package/build/server/chunks/{server-1sE9LKAu.js → server-CiEA6lY_.js} +222 -143
- package/build/server/chunks/server-CiEA6lY_.js.map +1 -0
- package/build/server/chunks/{widget-registry-D4uP1dwJ.js → widget-registry-Dhgkh66t.js} +18 -32
- package/build/server/chunks/widget-registry-Dhgkh66t.js.map +1 -0
- package/build/server/index.js +138 -153
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +12 -12
- package/build/server/manifest.js.map +1 -1
- package/package.json +8 -8
- package/build/client/_app/immutable/assets/0.BFw6nhto.css.br +0 -0
- package/build/client/_app/immutable/assets/0.BFw6nhto.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BDINAkMj.js +0 -1
- package/build/client/_app/immutable/chunks/BDINAkMj.js.br +0 -0
- package/build/client/_app/immutable/chunks/BDINAkMj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BPexRXOm.js +0 -214
- package/build/client/_app/immutable/chunks/BPexRXOm.js.br +0 -0
- package/build/client/_app/immutable/chunks/BPexRXOm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BdhshkRp.js +0 -1
- package/build/client/_app/immutable/chunks/BdhshkRp.js.br +0 -0
- package/build/client/_app/immutable/chunks/BdhshkRp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CfACBkhZ.js +0 -1
- package/build/client/_app/immutable/chunks/CfACBkhZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/CfACBkhZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ClT4djUO.js +0 -2
- package/build/client/_app/immutable/chunks/ClT4djUO.js.br +0 -0
- package/build/client/_app/immutable/chunks/ClT4djUO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DqWlOtw9.js +0 -3
- package/build/client/_app/immutable/chunks/DqWlOtw9.js.br +0 -0
- package/build/client/_app/immutable/chunks/DqWlOtw9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/kNaey6uv.js +0 -1
- package/build/client/_app/immutable/chunks/kNaey6uv.js.br +0 -0
- package/build/client/_app/immutable/chunks/kNaey6uv.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.D48yRE16.js +0 -2
- package/build/client/_app/immutable/entry/app.D48yRE16.js.br +0 -0
- package/build/client/_app/immutable/entry/app.D48yRE16.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Qq8FLhOe.js +0 -1
- package/build/client/_app/immutable/entry/start.Qq8FLhOe.js.br +0 -0
- package/build/client/_app/immutable/entry/start.Qq8FLhOe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.ifyNoaZz.js +0 -1
- package/build/client/_app/immutable/nodes/0.ifyNoaZz.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.ifyNoaZz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.CVy84LTm.js +0 -1
- package/build/client/_app/immutable/nodes/1.CVy84LTm.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.CVy84LTm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.D_d90ZDd.js +0 -2
- package/build/client/_app/immutable/nodes/2.D_d90ZDd.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.D_d90ZDd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DCS1lMcJ.js +0 -1
- package/build/client/_app/immutable/nodes/3.DCS1lMcJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DCS1lMcJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.DP1YMUE5.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.DP1YMUE5.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CyMRYzSq.js +0 -1
- package/build/client/_app/immutable/nodes/5.CyMRYzSq.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CyMRYzSq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.B202XTaW.js +0 -1
- package/build/client/_app/immutable/nodes/6.B202XTaW.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.B202XTaW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.DDrr6-pe.js +0 -1
- package/build/client/_app/immutable/nodes/7.DDrr6-pe.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.DDrr6-pe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.CkRfP60d.js +0 -1
- package/build/client/_app/immutable/nodes/8.CkRfP60d.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.CkRfP60d.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.ByJ3R-gj.js.br +0 -2
- package/build/client/_app/immutable/nodes/9.ByJ3R-gj.js.gz +0 -0
- package/build/server/chunks/0-QvKVS1pE.js.map +0 -1
- package/build/server/chunks/1-BZAHQ_rM.js +0 -9
- package/build/server/chunks/2-DGOJW-s_.js.map +0 -1
- package/build/server/chunks/3-BALkppx0.js.map +0 -1
- package/build/server/chunks/4-OlSudnzY.js.map +0 -1
- package/build/server/chunks/5-D-48ExuO.js.map +0 -1
- package/build/server/chunks/6-DRZCDQKg.js.map +0 -1
- package/build/server/chunks/7-BqcZ4dwt.js.map +0 -1
- package/build/server/chunks/8-Wfsla4aq.js.map +0 -1
- package/build/server/chunks/9-DRxhju5a.js.map +0 -1
- package/build/server/chunks/ListTable-D8OnEdye.js.map +0 -1
- package/build/server/chunks/_layout.svelte-CouhggA0.js.map +0 -1
- package/build/server/chunks/_page.svelte-7maQnLbj.js.map +0 -1
- package/build/server/chunks/_page.svelte-BHW_BBcE.js.map +0 -1
- package/build/server/chunks/_page.svelte-Bf0wrvsv.js.map +0 -1
- package/build/server/chunks/_page.svelte-CGTBvaNV.js.map +0 -1
- package/build/server/chunks/_page.svelte-D8nYMywt.js.map +0 -1
- package/build/server/chunks/_page.svelte-DU1gFVoJ.js.map +0 -1
- package/build/server/chunks/_page.svelte-DeVGBJ28.js.map +0 -1
- package/build/server/chunks/_page.svelte-TZzwWQli.js.map +0 -1
- package/build/server/chunks/_server.ts-CUXOXc9X.js +0 -19
- package/build/server/chunks/_server.ts-CUXOXc9X.js.map +0 -1
- package/build/server/chunks/adapter-DVhZVTjg.js.map +0 -1
- package/build/server/chunks/adapter-error-yHvEGaY7.js.map +0 -1
- package/build/server/chunks/app-CYD2rz7t.js +0 -12
- package/build/server/chunks/app-CYD2rz7t.js.map +0 -1
- package/build/server/chunks/client-DRqw6Y3c.js.map +0 -1
- package/build/server/chunks/composite-form-Ejfr7DaR.js.map +0 -1
- package/build/server/chunks/error.svelte-g7mc4FAb.js.map +0 -1
- package/build/server/chunks/hooks.server-BUTf2J08.js.map +0 -1
- package/build/server/chunks/internal2-CGNoaasI.js.map +0 -1
- package/build/server/chunks/list-params-DiCLPOBj.js.map +0 -1
- package/build/server/chunks/mcp-connection-JeveuASs.js.map +0 -1
- package/build/server/chunks/privilege-readonly-CK4k2aYO.js.map +0 -1
- package/build/server/chunks/relation-select-composite-field-DxxTuvAH.js.map +0 -1
- package/build/server/chunks/resource-id-CFSW_3aR.js.map +0 -1
- package/build/server/chunks/server-1sE9LKAu.js.map +0 -1
- package/build/server/chunks/widget-registry-D4uP1dwJ.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { u as noop, B as parse, y as onDestroy,
|
|
2
|
-
import { t as get, ad as writable, n as derived$1, Y as readonly, x as getContext } from './server-
|
|
3
|
-
import { i as invalidateAll, b as applyAction, a as afterNavigate } from './client-
|
|
4
|
-
import { a as app } from './app-
|
|
1
|
+
import { u as noop, B as parse, y as onDestroy, Q as tick, M as stringify$1, b as __toESM, _ as __commonJSMin } from './internal2-Dgkl_mbK.js';
|
|
2
|
+
import { t as get, ad as writable, n as derived$1, Y as readonly, x as getContext } from './server-CiEA6lY_.js';
|
|
3
|
+
import { i as invalidateAll, b as applyAction, a as afterNavigate } from './client-DVDsL8PQ.js';
|
|
4
|
+
import { a as app } from './app-SwLi37Vg.js';
|
|
5
5
|
import './index-CVekYGHP.js';
|
|
6
6
|
import { toJSONSchema, config, safeParseAsync } from 'zod/v4/core';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// ../../node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_bc5a1fa668e531387d6dc06fbe69dabc/node_modules/@sveltejs/kit/src/runtime/app/forms.js
|
|
10
10
|
/**
|
|
11
11
|
* Use this function to deserialize the response from a form submission.
|
|
12
12
|
* Usage:
|
|
@@ -148,7 +148,7 @@ function enhance(form_element, submit = noop) {
|
|
|
148
148
|
} };
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
// ../../node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_bc5a1fa668e531387d6dc06fbe69dabc/node_modules/@sveltejs/kit/src/runtime/app/stores.js
|
|
152
152
|
/**
|
|
153
153
|
* A function that returns all of the contextual stores. On the server, this must be called during component initialization.
|
|
154
154
|
* Only use this if you need to defer store subscription until after the component has mounted, for some reason.
|
|
@@ -190,8 +190,7 @@ var page = { subscribe(fn) {
|
|
|
190
190
|
var navigating = { subscribe(fn) {
|
|
191
191
|
return getStores().navigating.subscribe(fn);
|
|
192
192
|
} };
|
|
193
|
-
|
|
194
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/traversal.js
|
|
193
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/traversal.js
|
|
195
194
|
function setPath(parent, key, value) {
|
|
196
195
|
if (key === "__proto__" || key === "prototype") throw new Error("Cannot set an object's `__proto__` or `prototype` property");
|
|
197
196
|
parent[key] = value;
|
|
@@ -307,8 +306,7 @@ function setPaths(obj, paths, value) {
|
|
|
307
306
|
}
|
|
308
307
|
}
|
|
309
308
|
}
|
|
310
|
-
|
|
311
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/stringPath.js
|
|
309
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/stringPath.js
|
|
312
310
|
function splitPath(path) {
|
|
313
311
|
return path.toString().split(/[[\].]+/).filter((p) => p);
|
|
314
312
|
}
|
|
@@ -321,8 +319,7 @@ function mergePath(path) {
|
|
|
321
319
|
return acc;
|
|
322
320
|
}, "");
|
|
323
321
|
}
|
|
324
|
-
|
|
325
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/justClone.js
|
|
322
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/justClone.js
|
|
326
323
|
function clone$1(obj) {
|
|
327
324
|
const type = {}.toString.call(obj).slice(8, -1);
|
|
328
325
|
if (type == "Set") return new Set([...obj].map((value) => clone$1(value)));
|
|
@@ -336,16 +333,14 @@ function clone$1(obj) {
|
|
|
336
333
|
}
|
|
337
334
|
return obj;
|
|
338
335
|
}
|
|
339
|
-
|
|
340
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/utils.js
|
|
336
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/utils.js
|
|
341
337
|
function clone(data) {
|
|
342
338
|
return data && typeof data === "object" ? clone$1(data) : data;
|
|
343
339
|
}
|
|
344
340
|
function assertSchema(schema, path) {
|
|
345
341
|
if (typeof schema === "boolean") throw new SchemaError("Schema property cannot be defined as boolean.", path);
|
|
346
342
|
}
|
|
347
|
-
|
|
348
|
-
//#region ../../node_modules/.pnpm/ts-deepmerge@8.0.0/node_modules/ts-deepmerge/esm/index.js
|
|
343
|
+
// ../../node_modules/.pnpm/ts-deepmerge@8.0.0/node_modules/ts-deepmerge/esm/index.js
|
|
349
344
|
// istanbul ignore next
|
|
350
345
|
var isObject = (obj) => {
|
|
351
346
|
if (typeof obj === "object" && obj !== null) {
|
|
@@ -357,7 +352,7 @@ var isObject = (obj) => {
|
|
|
357
352
|
}
|
|
358
353
|
return false;
|
|
359
354
|
};
|
|
360
|
-
var UNSAFE_KEYS = new Set([
|
|
355
|
+
var UNSAFE_KEYS = /* @__PURE__ */ new Set([
|
|
361
356
|
"__proto__",
|
|
362
357
|
"constructor",
|
|
363
358
|
"prototype",
|
|
@@ -392,8 +387,7 @@ merge$1.withOptions = (options, ...objects) => {
|
|
|
392
387
|
merge$1.options = defaultOptions;
|
|
393
388
|
return result;
|
|
394
389
|
};
|
|
395
|
-
|
|
396
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/jsonSchema/schemaInfo.js
|
|
390
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/jsonSchema/schemaInfo.js
|
|
397
391
|
var conversionFormatTypes = [
|
|
398
392
|
"unix-time",
|
|
399
393
|
"bigint",
|
|
@@ -464,8 +458,7 @@ function unionInfo(schema) {
|
|
|
464
458
|
if (schema.oneOf && schema.oneOf.length) return schema.oneOf.filter((s) => typeof s !== "boolean");
|
|
465
459
|
if (schema.anyOf && schema.anyOf.length) return schema.anyOf.filter((s) => typeof s !== "boolean");
|
|
466
460
|
}
|
|
467
|
-
|
|
468
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/jsonSchema/schemaDefaults.js
|
|
461
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/jsonSchema/schemaDefaults.js
|
|
469
462
|
function defaultValues(schema, isOptional = false, path = []) {
|
|
470
463
|
return _defaultValues(schema, isOptional, path);
|
|
471
464
|
}
|
|
@@ -474,13 +467,15 @@ function _defaultValues(schema, isOptional, path) {
|
|
|
474
467
|
const info = schemaInfo(schema, isOptional, path);
|
|
475
468
|
if (!info) return void 0;
|
|
476
469
|
let objectDefaults = void 0;
|
|
477
|
-
if ("default" in schema)
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
if (info.types.
|
|
470
|
+
if ("default" in schema) {
|
|
471
|
+
if (info.types.includes("object") && schema.default && typeof schema.default == "object" && !Array.isArray(schema.default)) objectDefaults = schema.default;
|
|
472
|
+
else {
|
|
473
|
+
if (info.types.length > 1) {
|
|
474
|
+
if (info.types.includes("unix-time") && (info.types.includes("integer") || info.types.includes("number"))) throw new SchemaError("Cannot resolve a default value with a union that includes a date and a number/integer.", path);
|
|
475
|
+
}
|
|
476
|
+
const [type] = info.types;
|
|
477
|
+
return formatDefaultValue(type, schema.default);
|
|
481
478
|
}
|
|
482
|
-
const [type] = info.types;
|
|
483
|
-
return formatDefaultValue(type, schema.default);
|
|
484
479
|
}
|
|
485
480
|
let _multiType;
|
|
486
481
|
const isMultiTypeUnion = () => {
|
|
@@ -500,10 +495,12 @@ function _defaultValues(schema, isOptional, path) {
|
|
|
500
495
|
if (info.isNullable) return null;
|
|
501
496
|
if (info.isOptional) return void 0;
|
|
502
497
|
if (isMultiTypeUnion()) throw new SchemaError("Multi-type unions must have a default value, or exactly one of the union types must have.", path);
|
|
503
|
-
if (info.union.length)
|
|
504
|
-
if (
|
|
505
|
-
|
|
506
|
-
|
|
498
|
+
if (info.union.length) {
|
|
499
|
+
if (info.types[0] == "object") {
|
|
500
|
+
if (output === void 0) output = {};
|
|
501
|
+
output = info.union.length > 1 ? merge$1.withOptions({ allowUndefinedOverrides: true }, ...info.union.map((s) => _defaultValues(s, isOptional, path))) : _defaultValues(info.union[0], isOptional, path);
|
|
502
|
+
} else return _defaultValues(info.union[0], isOptional, path);
|
|
503
|
+
}
|
|
507
504
|
}
|
|
508
505
|
}
|
|
509
506
|
if (!objectDefaults) {
|
|
@@ -550,9 +547,7 @@ function formatDefaultValue(type, value) {
|
|
|
550
547
|
case "bigint":
|
|
551
548
|
if (typeof value === "string" || typeof value === "number") return BigInt(value);
|
|
552
549
|
break;
|
|
553
|
-
case "symbol":
|
|
554
|
-
if (typeof value === "string" || typeof value === "number") return Symbol(value);
|
|
555
|
-
break;
|
|
550
|
+
case "symbol": if (typeof value === "string" || typeof value === "number") return Symbol(value);
|
|
556
551
|
}
|
|
557
552
|
return value;
|
|
558
553
|
}
|
|
@@ -600,8 +595,7 @@ function _defaultTypes(schema, isOptional, path) {
|
|
|
600
595
|
if (info.isOptional && !output.__types.includes("undefined")) output.__types.push("undefined");
|
|
601
596
|
return output;
|
|
602
597
|
}
|
|
603
|
-
|
|
604
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/errors.js
|
|
598
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/errors.js
|
|
605
599
|
var SuperFormError = class SuperFormError extends Error {
|
|
606
600
|
constructor(message) {
|
|
607
601
|
super(message);
|
|
@@ -620,8 +614,10 @@ function mapErrors(errors, shape) {
|
|
|
620
614
|
const output = {};
|
|
621
615
|
function addFormLevelError(error) {
|
|
622
616
|
if (!("_errors" in output)) output._errors = [];
|
|
623
|
-
if (!Array.isArray(output._errors))
|
|
624
|
-
|
|
617
|
+
if (!Array.isArray(output._errors)) {
|
|
618
|
+
if (typeof output._errors === "string") output._errors = [output._errors];
|
|
619
|
+
else throw new SuperFormError("Form-level error was not an array.");
|
|
620
|
+
}
|
|
625
621
|
output._errors.push(error.message);
|
|
626
622
|
}
|
|
627
623
|
for (const error of errors) {
|
|
@@ -736,7 +732,8 @@ function replaceInvalidDefaults(Data, Defaults, _schema, Errors, preprocessed) {
|
|
|
736
732
|
const defValue = defaultPath.value;
|
|
737
733
|
const dataValue = dataPath.value;
|
|
738
734
|
if (defValue !== void 0 && typeof dataValue === typeof defValue && dataValue === null === (defValue === null)) return;
|
|
739
|
-
const
|
|
735
|
+
const typePath = currentPath.filter((p) => /\D/.test(String(p)));
|
|
736
|
+
const pathTypes = traversePath(Types, typePath, (path) => {
|
|
740
737
|
return path.value && "__items" in path.value ? path.value.__items : path.value;
|
|
741
738
|
});
|
|
742
739
|
if (!pathTypes) {
|
|
@@ -753,16 +750,14 @@ function replaceInvalidDefaults(Data, Defaults, _schema, Errors, preprocessed) {
|
|
|
753
750
|
}
|
|
754
751
|
return Data_traverse();
|
|
755
752
|
}
|
|
756
|
-
|
|
757
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/client/flash.js
|
|
753
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/client/flash.js
|
|
758
754
|
function cancelFlash(options) {
|
|
759
755
|
if (!options.flashMessage || true) return;
|
|
760
756
|
}
|
|
761
757
|
function shouldSyncFlash(options) {
|
|
762
758
|
if (!options.flashMessage || true) return false;
|
|
763
759
|
}
|
|
764
|
-
|
|
765
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/client/customValidity.js
|
|
760
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/client/customValidity.js
|
|
766
761
|
var noCustomValidityDataAttribute = "noCustomValidity";
|
|
767
762
|
async function updateCustomValidity(validityEl, errors) {
|
|
768
763
|
if ("setCustomValidity" in validityEl) validityEl.setCustomValidity("");
|
|
@@ -784,8 +779,7 @@ function setCustomValidity(el, errors) {
|
|
|
784
779
|
el.setCustomValidity(message);
|
|
785
780
|
if (message) el.reportValidity();
|
|
786
781
|
}
|
|
787
|
-
|
|
788
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/client/elements.js
|
|
782
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/client/elements.js
|
|
789
783
|
var isElementInViewport = (el, topOffset = 0) => {
|
|
790
784
|
const rect = el.getBoundingClientRect();
|
|
791
785
|
return rect.top >= topOffset && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth);
|
|
@@ -814,8 +808,7 @@ function inputInfo(el) {
|
|
|
814
808
|
file: !!el && el instanceof HTMLInputElement && el.type == "file"
|
|
815
809
|
};
|
|
816
810
|
}
|
|
817
|
-
|
|
818
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/client/form.js
|
|
811
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/client/form.js
|
|
819
812
|
var FetchStatus;
|
|
820
813
|
(function(FetchStatus) {
|
|
821
814
|
FetchStatus[FetchStatus["Idle"] = 0] = "Idle";
|
|
@@ -913,7 +906,7 @@ var scrollToFirstError = async (Form, options) => {
|
|
|
913
906
|
if (options.scrollToError == "off") return;
|
|
914
907
|
const selector = options.errorSelector;
|
|
915
908
|
if (!selector) return;
|
|
916
|
-
await tick();
|
|
909
|
+
await /* @__PURE__ */ tick();
|
|
917
910
|
let el;
|
|
918
911
|
el = Form.querySelector(selector);
|
|
919
912
|
if (!el) return;
|
|
@@ -939,8 +932,7 @@ var scrollToFirstError = async (Form, options) => {
|
|
|
939
932
|
if (options.selectErrorText && focusEl.tagName == "INPUT") focusEl.select();
|
|
940
933
|
} catch {}
|
|
941
934
|
};
|
|
942
|
-
|
|
943
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/client/proxies.js
|
|
935
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/client/proxies.js
|
|
944
936
|
function updateProxyField(obj, path, updater) {
|
|
945
937
|
const output = traversePath(obj, path, ({ parent, key, value }) => {
|
|
946
938
|
if (value === void 0) parent[key] = /\D/.test(key) ? {} : [];
|
|
@@ -995,8 +987,7 @@ function fieldProxy(form, path, options) {
|
|
|
995
987
|
}
|
|
996
988
|
};
|
|
997
989
|
}
|
|
998
|
-
|
|
999
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/jsonSchema/schemaShape.js
|
|
990
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/jsonSchema/schemaShape.js
|
|
1000
991
|
function schemaShape(schema, path = []) {
|
|
1001
992
|
const output = _schemaShape(schema, path);
|
|
1002
993
|
if (!output) throw new SchemaError("No shape could be created for schema. If using Zod v4, import { zod4 } from \"sveltekit-superforms/adapters\" instead of { zod }.", path);
|
|
@@ -1040,8 +1031,7 @@ function shapeFromObject(obj) {
|
|
|
1040
1031
|
}
|
|
1041
1032
|
return output;
|
|
1042
1033
|
}
|
|
1043
|
-
|
|
1044
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/client/superForm.js
|
|
1034
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/client/superForm.js
|
|
1045
1035
|
var formIds = /* @__PURE__ */ new WeakMap();
|
|
1046
1036
|
var initialForms = /* @__PURE__ */ new WeakMap();
|
|
1047
1037
|
var defaultOnError = (event) => {
|
|
@@ -1226,7 +1216,7 @@ function superForm(form, formOptions) {
|
|
|
1226
1216
|
const validator = opts.adapter ?? options.validators;
|
|
1227
1217
|
if (typeof validator == "object") {
|
|
1228
1218
|
if (validator != initialValidator && !("jsonSchema" in validator)) throw new SuperFormError("Client validation adapter found in options.validators. A full adapter must be used when changing validators dynamically, for example \"zod\" instead of \"zodClient\".");
|
|
1229
|
-
status = await validator.validate(dataToValidate);
|
|
1219
|
+
status = await /* @__PURE__ */ validator.validate(dataToValidate);
|
|
1230
1220
|
if (!status.success) errors = mapErrors(status.issues, validator.shape ?? Data.shape ?? {});
|
|
1231
1221
|
else if (opts.recheckValidData !== false) return Form_validate({
|
|
1232
1222
|
...opts,
|
|
@@ -1310,7 +1300,7 @@ function superForm(form, formOptions) {
|
|
|
1310
1300
|
}
|
|
1311
1301
|
const result = await Form_validate({ adapter });
|
|
1312
1302
|
if (result.valid && (event.immediate || event.type != "input")) Form$1.set(result.data, { taint: "ignore" });
|
|
1313
|
-
await tick();
|
|
1303
|
+
await /* @__PURE__ */ tick();
|
|
1314
1304
|
Form__displayNewErrors(result.errors, event, force);
|
|
1315
1305
|
return result;
|
|
1316
1306
|
}
|
|
@@ -1417,7 +1407,7 @@ function superForm(form, formOptions) {
|
|
|
1417
1407
|
keepFiles: true,
|
|
1418
1408
|
pessimisticUpdate: options.invalidateAll == "force" || options.invalidateAll == "pessimistic"
|
|
1419
1409
|
});
|
|
1420
|
-
if (formEvents.onUpdated.length) await tick();
|
|
1410
|
+
if (formEvents.onUpdated.length) await /* @__PURE__ */ tick();
|
|
1421
1411
|
for (const event of formEvents.onUpdated) event({ form: form2 });
|
|
1422
1412
|
}
|
|
1423
1413
|
function Form_reset(opts = {}) {
|
|
@@ -1732,9 +1722,7 @@ function superForm(form, formOptions) {
|
|
|
1732
1722
|
case "errors":
|
|
1733
1723
|
Errors.clear();
|
|
1734
1724
|
break;
|
|
1735
|
-
case "message":
|
|
1736
|
-
Message.set(void 0);
|
|
1737
|
-
break;
|
|
1725
|
+
case "message": Message.set(void 0);
|
|
1738
1726
|
}
|
|
1739
1727
|
}
|
|
1740
1728
|
async function triggerOnError(result, status) {
|
|
@@ -1751,9 +1739,11 @@ function superForm(form, formOptions) {
|
|
|
1751
1739
|
result,
|
|
1752
1740
|
flashMessage: options.flashMessage.module.getFlash(page)
|
|
1753
1741
|
});
|
|
1754
|
-
if (options.applyAction)
|
|
1755
|
-
|
|
1756
|
-
|
|
1742
|
+
if (options.applyAction) {
|
|
1743
|
+
if (options.onError == "apply") await applyAction();
|
|
1744
|
+
else await applyAction({
|
|
1745
|
+
status: Form_resultStatus(result.status)});
|
|
1746
|
+
}
|
|
1757
1747
|
}
|
|
1758
1748
|
function cancel(opts = { resetTimers: true }) {
|
|
1759
1749
|
cancelled = true;
|
|
@@ -1818,7 +1808,8 @@ function superForm(form, formOptions) {
|
|
|
1818
1808
|
Object.keys(postData).forEach((key) => {
|
|
1819
1809
|
if (typeof submitData.get(key) === "string") submitData.delete(key);
|
|
1820
1810
|
});
|
|
1821
|
-
const
|
|
1811
|
+
const transport = options.transport ? Object.fromEntries(Object.entries(options.transport).map(([k, v]) => [k, v.encode])) : void 0;
|
|
1812
|
+
const chunks = chunkSubstr(stringify$1(postData, transport), options.jsonChunkSize ?? 5e5);
|
|
1822
1813
|
for (const chunk of chunks) submitData.append("__superform_json", chunk);
|
|
1823
1814
|
}
|
|
1824
1815
|
if (!submitData.has("__superform_id")) {
|
|
@@ -1892,11 +1883,13 @@ function superForm(form, formOptions) {
|
|
|
1892
1883
|
}
|
|
1893
1884
|
}
|
|
1894
1885
|
}
|
|
1895
|
-
if (!cancelled)
|
|
1896
|
-
if (result.type
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1886
|
+
if (!cancelled) {
|
|
1887
|
+
if (result.type !== "error") {
|
|
1888
|
+
if (result.type === "success" && options.invalidateAll) await invalidateAll();
|
|
1889
|
+
if (options.applyAction) await applyAction();
|
|
1890
|
+
else await Form_updateFromActionResult(result);
|
|
1891
|
+
} else await triggerOnError(result, Math.max(result.status ?? 500, 400));
|
|
1892
|
+
}
|
|
1900
1893
|
}
|
|
1901
1894
|
htmlForm.setProcessingEvents(false);
|
|
1902
1895
|
if (cancelled && options.flashMessage) cancelFlash(options);
|
|
@@ -1985,17 +1978,18 @@ function superForm(form, formOptions) {
|
|
|
1985
1978
|
if (typeof opts.errors == "string") opts.errors = [opts.errors];
|
|
1986
1979
|
let data;
|
|
1987
1980
|
const splittedPath = splitPath(path);
|
|
1988
|
-
if ("value" in opts)
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1981
|
+
if ("value" in opts) {
|
|
1982
|
+
if (opts.update === true || opts.update === "value") {
|
|
1983
|
+
Form$1.update(($form) => {
|
|
1984
|
+
setPaths($form, [splittedPath], opts.value);
|
|
1985
|
+
return $form;
|
|
1986
|
+
}, { taint: opts.taint });
|
|
1987
|
+
data = Data.form;
|
|
1988
|
+
} else {
|
|
1989
|
+
data = clone(Data.form);
|
|
1990
|
+
setPaths(data, [splittedPath], opts.value);
|
|
1991
|
+
}
|
|
1992
|
+
} else data = Data.form;
|
|
1999
1993
|
const error = pathExists((await Form_validate({ formData: data })).errors, splittedPath);
|
|
2000
1994
|
if (error && error.value && opts.errors) error.value = opts.errors;
|
|
2001
1995
|
if (opts.update === true || opts.update == "errors") Errors.update(($errors) => {
|
|
@@ -2038,8 +2032,7 @@ function superForm(form, formOptions) {
|
|
|
2038
2032
|
enhance: superFormEnhance
|
|
2039
2033
|
};
|
|
2040
2034
|
}
|
|
2041
|
-
|
|
2042
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/jsonSchema/constraints.js
|
|
2035
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/jsonSchema/constraints.js
|
|
2043
2036
|
function constraints(schema) {
|
|
2044
2037
|
return _constraints(schemaInfo(schema, false, []), []);
|
|
2045
2038
|
}
|
|
@@ -2099,8 +2092,7 @@ function constraint(info) {
|
|
|
2099
2092
|
if (!info.isNullable && !info.isOptional) output.required = true;
|
|
2100
2093
|
return Object.keys(output).length > 0 ? output : void 0;
|
|
2101
2094
|
}
|
|
2102
|
-
|
|
2103
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/jsonSchema/schemaHash.js
|
|
2095
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/jsonSchema/schemaHash.js
|
|
2104
2096
|
function schemaHash(schema) {
|
|
2105
2097
|
return hashCode(_schemaHash(schemaInfo(schema, false, []), 0, []));
|
|
2106
2098
|
}
|
|
@@ -2140,8 +2132,7 @@ function hashCode(str) {
|
|
|
2140
2132
|
if (hash < 0) hash = hash >>> 0;
|
|
2141
2133
|
return hash.toString(36);
|
|
2142
2134
|
}
|
|
2143
|
-
|
|
2144
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/adapters/adapters.js
|
|
2135
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/adapters/adapters.js
|
|
2145
2136
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2146
2137
|
function createAdapter(adapter, jsonSchema) {
|
|
2147
2138
|
if (!adapter || !("superFormValidationLibrary" in adapter)) throw new SuperFormError("Superforms v2 requires a validation adapter for the schema. Import one of your choice from \"sveltekit-superforms/adapters\" and wrap the schema with it.");
|
|
@@ -2154,8 +2145,7 @@ function createAdapter(adapter, jsonSchema) {
|
|
|
2154
2145
|
id: schemaHash(jsonSchema)
|
|
2155
2146
|
};
|
|
2156
2147
|
}
|
|
2157
|
-
|
|
2158
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/formData.js
|
|
2148
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/formData.js
|
|
2159
2149
|
/**
|
|
2160
2150
|
* V1 compatibilty. resetForm = false and taintedMessage = true
|
|
2161
2151
|
*/
|
|
@@ -2288,8 +2278,10 @@ function _parseFormData(formData, schema, options, fromURL = false) {
|
|
|
2288
2278
|
if (entry && typeof entry !== "string") return !(legacyMode ? options?.allowFiles === true : options?.allowFiles !== false) ? void 0 : entry.size ? entry : info.isNullable ? null : void 0;
|
|
2289
2279
|
if (info.types.length > 1 && !isCompatibleTypeUnion(info.types)) throw new SchemaError(unionError, key);
|
|
2290
2280
|
let [type] = info.types;
|
|
2291
|
-
if (entry && !info.types.length && info.schema.enum)
|
|
2292
|
-
|
|
2281
|
+
if (entry && !info.types.length && info.schema.enum) {
|
|
2282
|
+
if (info.schema.enum.includes(entry)) type = "string";
|
|
2283
|
+
else type = Number.isInteger(parseInt(entry, 10)) ? "integer" : "string";
|
|
2284
|
+
}
|
|
2293
2285
|
return parseFormDataEntry(key, entry, type ?? "any", info, fromURL);
|
|
2294
2286
|
}
|
|
2295
2287
|
const defaultPropertyType = typeof schema.additionalProperties == "object" ? schema.additionalProperties : { type: "string" };
|
|
@@ -2349,8 +2341,7 @@ function parseFormDataEntry(key, value, type, info, fromURL = false) {
|
|
|
2349
2341
|
default: throw new SuperFormError("Unsupported schema type for FormData: " + type);
|
|
2350
2342
|
}
|
|
2351
2343
|
}
|
|
2352
|
-
|
|
2353
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/superValidate.js
|
|
2344
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/superValidate.js
|
|
2354
2345
|
/**
|
|
2355
2346
|
* Validates a schema for data validation and usage in superForm.
|
|
2356
2347
|
* @param data Data corresponding to a schema, or RequestEvent/FormData/URL. If falsy, the schema's default values will be used.
|
|
@@ -2369,7 +2360,7 @@ async function superValidate(data, adapter, options) {
|
|
|
2369
2360
|
const addErrors = options?.errors ?? (options?.strict ? true : !!parsed.data);
|
|
2370
2361
|
const parsedData = options?.strict ? parsed.data ?? {} : mergeDefaults(parsed.data, defaults);
|
|
2371
2362
|
let status;
|
|
2372
|
-
if (!!parsed.data || addErrors) status = await validator.validate(parsedData);
|
|
2363
|
+
if (!!parsed.data || addErrors) status = await /* @__PURE__ */ validator.validate(parsedData);
|
|
2373
2364
|
else status = {
|
|
2374
2365
|
success: false,
|
|
2375
2366
|
issues: []
|
|
@@ -2396,7 +2387,7 @@ async function superValidate(data, adapter, options) {
|
|
|
2396
2387
|
return output;
|
|
2397
2388
|
}
|
|
2398
2389
|
|
|
2399
|
-
|
|
2390
|
+
// src/lib/form/relation-field-config.ts
|
|
2400
2391
|
/**
|
|
2401
2392
|
* Whether an option can round-trip through the picker contract. A key
|
|
2402
2393
|
* containing an EMPTY-STRING component collides with the contract's ''
|
|
@@ -2427,7 +2418,7 @@ var COMPOSITE_CLEAR_VALUE = "__clear__";
|
|
|
2427
2418
|
function compositeParamName(field) {
|
|
2428
2419
|
return `__composite__${field}`;
|
|
2429
2420
|
}
|
|
2430
|
-
var TEXT_LIKE_BASE_TYPES = new Set([
|
|
2421
|
+
var TEXT_LIKE_BASE_TYPES = /* @__PURE__ */ new Set([
|
|
2431
2422
|
"text",
|
|
2432
2423
|
"character varying",
|
|
2433
2424
|
"varchar",
|
|
@@ -2607,7 +2598,7 @@ function promoteCompositeMemberWidgets(table, relations) {
|
|
|
2607
2598
|
};
|
|
2608
2599
|
}
|
|
2609
2600
|
|
|
2610
|
-
|
|
2601
|
+
// ../../node_modules/.pnpm/memoize-weak@1.0.2/node_modules/memoize-weak/lib/memoize.js
|
|
2611
2602
|
var require_memoize = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2612
2603
|
function isPrimitive(value) {
|
|
2613
2604
|
return typeof value !== "object" && typeof value !== "function" || value === null;
|
|
@@ -2698,8 +2689,7 @@ var memoize = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports,
|
|
|
2698
2689
|
* JSON Schema Object
|
|
2699
2690
|
* @typedef {object} JSONSchema
|
|
2700
2691
|
*/
|
|
2701
|
-
|
|
2702
|
-
//#region ../../node_modules/.pnpm/typebox@1.3.8/node_modules/typebox/build/system/hashing/hash.mjs
|
|
2692
|
+
// ../../node_modules/.pnpm/typebox@1.3.8/node_modules/typebox/build/system/hashing/hash.mjs
|
|
2703
2693
|
var ByteMarker;
|
|
2704
2694
|
(function(ByteMarker) {
|
|
2705
2695
|
ByteMarker[ByteMarker["Array"] = 0] = "Array";
|
|
@@ -2718,19 +2708,17 @@ var ByteMarker;
|
|
|
2718
2708
|
ByteMarker[ByteMarker["Undefined"] = 13] = "Undefined";
|
|
2719
2709
|
})(ByteMarker || (ByteMarker = {}));
|
|
2720
2710
|
Array.from({ length: 256 }).map((_, i) => BigInt(i));
|
|
2721
|
-
var F64 = new Float64Array(1);
|
|
2711
|
+
var F64 = /* @__PURE__ */ new Float64Array(1);
|
|
2722
2712
|
new DataView(F64.buffer);
|
|
2723
2713
|
new Uint8Array(F64.buffer);
|
|
2724
2714
|
new TextEncoder();
|
|
2725
|
-
|
|
2726
|
-
//#region ../../node_modules/.pnpm/typebox@1.3.8/node_modules/typebox/build/type/script/token/internal/char.mjs
|
|
2715
|
+
// ../../node_modules/.pnpm/typebox@1.3.8/node_modules/typebox/build/type/script/token/internal/char.mjs
|
|
2727
2716
|
function Range(start, end) {
|
|
2728
2717
|
return Array.from({ length: end - start + 1 }, (_, i) => String.fromCharCode(start + i));
|
|
2729
2718
|
}
|
|
2730
2719
|
[...Range(97, 122), ...Range(65, 90)];
|
|
2731
2720
|
["0", ...Range(49, 57)];
|
|
2732
|
-
|
|
2733
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_7a66204ca948e44eef2d0ac937337446/node_modules/sveltekit-superforms/dist/adapters/zod4.js
|
|
2721
|
+
// ../../node_modules/.pnpm/sveltekit-superforms@2.30.2_@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.1.2_sve_26dd8ca5763929e9f44b9dfb4e754452/node_modules/sveltekit-superforms/dist/adapters/zod4.js
|
|
2734
2722
|
var defaultJSONSchemaOptions = {
|
|
2735
2723
|
unrepresentable: "any",
|
|
2736
2724
|
override: (ctx) => {
|
|
@@ -2820,8 +2808,7 @@ function _zod4(schema, options) {
|
|
|
2820
2808
|
});
|
|
2821
2809
|
}
|
|
2822
2810
|
var zod = /* @__PURE__ */ memoize(_zod4);
|
|
2823
|
-
|
|
2824
|
-
//#region src/lib/form/zod-from-column.ts
|
|
2811
|
+
// src/lib/form/zod-from-column.ts
|
|
2825
2812
|
function dbCanSupplyColumn(column) {
|
|
2826
2813
|
return column.defaultExpr !== null || column.readonly;
|
|
2827
2814
|
}
|
|
@@ -2857,8 +2844,7 @@ function pickBase(column) {
|
|
|
2857
2844
|
default: return z.string();
|
|
2858
2845
|
}
|
|
2859
2846
|
}
|
|
2860
|
-
|
|
2861
|
-
//#region src/lib/form/mutation-payload.ts
|
|
2847
|
+
// src/lib/form/mutation-payload.ts
|
|
2862
2848
|
function isEmpty(value) {
|
|
2863
2849
|
return value === "" || value === void 0;
|
|
2864
2850
|
}
|
|
@@ -2879,15 +2865,13 @@ function buildMutationPayload(table, data, mode = "create") {
|
|
|
2879
2865
|
}
|
|
2880
2866
|
return payload;
|
|
2881
2867
|
}
|
|
2882
|
-
|
|
2883
|
-
//#region src/lib/form/zod-from-table.ts
|
|
2868
|
+
// src/lib/form/zod-from-table.ts
|
|
2884
2869
|
function zodFromTable(table) {
|
|
2885
2870
|
const shape = {};
|
|
2886
2871
|
for (const column of table.columns) shape[column.name] = zodFromColumn(column);
|
|
2887
2872
|
return z.object(shape);
|
|
2888
2873
|
}
|
|
2889
|
-
|
|
2890
|
-
//#region src/lib/server/composite-form.ts
|
|
2874
|
+
// src/lib/server/composite-form.ts
|
|
2891
2875
|
/** A native FormData submission converted to a plain object, with blank
|
|
2892
2876
|
* fields omitted so the schema defaults apply (mirroring how superforms
|
|
2893
2877
|
* parses blank FormData entries). */
|
|
@@ -2961,4 +2945,4 @@ async function readFormWithCompositePicks(request, relations) {
|
|
|
2961
2945
|
}
|
|
2962
2946
|
|
|
2963
2947
|
export { COMPOSITE_CLEAR_VALUE as C, buildMutationPayload as a, buildArgRelationConfig as b, compositeParamName as c, dbCanSupplyColumn as d, demoteUnpickableRelations as e, readFormWithCompositePicks as f, relationFieldConfigs as g, superForm as h, isPickableOption as i, superValidate as j, zodFromTable as k, promoteCompositeMemberWidgets as p, readActionFormSubmission as r, scalarWidgetForDataType as s, zod as z };
|
|
2964
|
-
//# sourceMappingURL=composite-form-
|
|
2948
|
+
//# sourceMappingURL=composite-form-WDDlaUQo.js.map
|