@kozou/svelte-ui 1.2.0 → 1.3.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.
- package/build/client/_app/immutable/chunks/{M-rQODG_.js → BLwQsTD2.js} +1 -1
- package/build/client/_app/immutable/chunks/BLwQsTD2.js.br +0 -0
- package/build/client/_app/immutable/chunks/BLwQsTD2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CrTaJnzY.js → DY0oakY5.js} +1 -1
- package/build/client/_app/immutable/chunks/DY0oakY5.js.br +0 -0
- package/build/client/_app/immutable/chunks/DY0oakY5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/rPPoD7Sp.js +4 -0
- package/build/client/_app/immutable/chunks/rPPoD7Sp.js.br +0 -0
- package/build/client/_app/immutable/chunks/rPPoD7Sp.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.ByhtJ88k.js → app.G2Y8IfhN.js} +2 -2
- package/build/client/_app/immutable/entry/app.G2Y8IfhN.js.br +0 -0
- package/build/client/_app/immutable/entry/app.G2Y8IfhN.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.sPBaDl_M.js +1 -0
- package/build/client/_app/immutable/entry/start.sPBaDl_M.js.br +1 -0
- package/build/client/_app/immutable/entry/start.sPBaDl_M.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.BI5dO6h8.js → 1.D09foNRb.js} +1 -1
- package/build/client/_app/immutable/nodes/1.D09foNRb.js.br +2 -0
- package/build/client/_app/immutable/nodes/1.D09foNRb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.5H5WIc-o.js +1 -0
- package/build/client/_app/immutable/nodes/4.5H5WIc-o.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.5H5WIc-o.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.CEXAqzYO.js → 5.BR2iBXwV.js} +1 -1
- package/build/client/_app/immutable/nodes/5.BR2iBXwV.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BR2iBXwV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.4fTWRTA8.js → 6.ChubZePh.js} +1 -1
- package/build/client/_app/immutable/nodes/6.ChubZePh.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.ChubZePh.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/{1-CVLmaMi2.js → 1-BvxsIwwy.js} +3 -3
- package/build/server/chunks/{1-CVLmaMi2.js.map → 1-BvxsIwwy.js.map} +1 -1
- package/build/server/chunks/{4-Dc-NPvAO.js → 4-1chJCfPL.js} +5 -3
- package/build/server/chunks/4-1chJCfPL.js.map +1 -0
- package/build/server/chunks/{5-DvwPrYwd.js → 5-DUCxshKE.js} +13 -11
- package/build/server/chunks/5-DUCxshKE.js.map +1 -0
- package/build/server/chunks/{6-DxT9TB6A.js → 6-Dh7Tg-XB.js} +13 -11
- package/build/server/chunks/6-Dh7Tg-XB.js.map +1 -0
- package/build/server/chunks/{_page.svelte-DvcE6zrM.js → _page.svelte-CBUJNhG1.js} +6 -6
- package/build/server/chunks/{_page.svelte-DvcE6zrM.js.map → _page.svelte-CBUJNhG1.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-BGxCzjmZ.js → _page.svelte-DI_FY3zW.js} +6 -6
- package/build/server/chunks/{_page.svelte-BGxCzjmZ.js.map → _page.svelte-DI_FY3zW.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-FkcquIeL.js → _page.svelte-DaJwoT9F.js} +9 -4
- package/build/server/chunks/_page.svelte-DaJwoT9F.js.map +1 -0
- package/build/server/chunks/{app-DST8OmzT.js → app-MIcRQ3KA.js} +2 -2
- package/build/server/chunks/{app-DST8OmzT.js.map → app-MIcRQ3KA.js.map} +1 -1
- package/build/server/chunks/{client-BfR0iysy.js → client-C004jkBy.js} +3 -3
- package/build/server/chunks/{client-BfR0iysy.js.map → client-C004jkBy.js.map} +1 -1
- package/build/server/chunks/{composite-form-DeAbT97s.js → composite-form-_tg7iknp.js} +40 -27
- package/build/server/chunks/{composite-form-DeAbT97s.js.map → composite-form-_tg7iknp.js.map} +1 -1
- package/build/server/chunks/{error.svelte-CgmjtCM8.js → error.svelte-u8Vsq8vF.js} +6 -6
- package/build/server/chunks/{error.svelte-CgmjtCM8.js.map → error.svelte-u8Vsq8vF.js.map} +1 -1
- package/build/server/chunks/{hooks.server-BCX7tjO4.js → hooks.server-DtCXcOVD.js} +113 -7
- package/build/server/chunks/hooks.server-DtCXcOVD.js.map +1 -0
- package/build/server/chunks/index-5kYmxIr9.js.map +1 -1
- package/build/server/chunks/index-DBqjc0Yf.js.map +1 -1
- package/build/server/chunks/{internal-D3PcExp3.js → internal-fxcuSPWe.js} +13 -13
- package/build/server/chunks/{internal-D3PcExp3.js.map → internal-fxcuSPWe.js.map} +1 -1
- package/build/server/chunks/{widget-registry-COKz4xxc.js → widget-registry-BcgMXjkA.js} +2 -2
- package/build/server/chunks/{widget-registry-COKz4xxc.js.map → widget-registry-BcgMXjkA.js.map} +1 -1
- package/build/server/index.js +31 -31
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +5 -5
- package/build/server/manifest.js.map +1 -1
- package/package.json +4 -4
- package/build/client/_app/immutable/chunks/0-MunKvN.js +0 -4
- package/build/client/_app/immutable/chunks/0-MunKvN.js.br +0 -0
- package/build/client/_app/immutable/chunks/0-MunKvN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CrTaJnzY.js.br +0 -0
- package/build/client/_app/immutable/chunks/CrTaJnzY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/M-rQODG_.js.br +0 -0
- package/build/client/_app/immutable/chunks/M-rQODG_.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.ByhtJ88k.js.br +0 -0
- package/build/client/_app/immutable/entry/app.ByhtJ88k.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.C_VgULzk.js +0 -1
- package/build/client/_app/immutable/entry/start.C_VgULzk.js.br +0 -0
- package/build/client/_app/immutable/entry/start.C_VgULzk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BI5dO6h8.js.br +0 -3
- package/build/client/_app/immutable/nodes/1.BI5dO6h8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.PUtoqAEs.js +0 -1
- package/build/client/_app/immutable/nodes/4.PUtoqAEs.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.PUtoqAEs.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.CEXAqzYO.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.CEXAqzYO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.4fTWRTA8.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.4fTWRTA8.js.gz +0 -0
- package/build/server/chunks/4-Dc-NPvAO.js.map +0 -1
- package/build/server/chunks/5-DvwPrYwd.js.map +0 -1
- package/build/server/chunks/6-DxT9TB6A.js.map +0 -1
- package/build/server/chunks/_page.svelte-FkcquIeL.js.map +0 -1
- package/build/server/chunks/hooks.server-BCX7tjO4.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { y as noop, G as parse, C as onDestroy, X as tick, S as stringify$1, c as __toESM, _ as __commonJSMin, a as __exportAll } from './internal-
|
|
1
|
+
import { y as noop, G as parse, C as onDestroy, X as tick, S as stringify$1, c as __toESM, _ as __commonJSMin, a as __exportAll } from './internal-fxcuSPWe.js';
|
|
2
2
|
import { u as get$1, ad as writable, n as derived$1, Y as readonly, x as getContext } from './dev-yFiAtg5l.js';
|
|
3
|
-
import { i as invalidateAll, b as applyAction, a as afterNavigate } from './client-
|
|
4
|
-
import { a as app } from './app-
|
|
3
|
+
import { i as invalidateAll, b as applyAction, a as afterNavigate } from './client-C004jkBy.js';
|
|
4
|
+
import { a as app } from './app-MIcRQ3KA.js';
|
|
5
5
|
import './index-5kYmxIr9.js';
|
|
6
6
|
import { toJSONSchema, config, safeParseAsync } from 'zod/v4/core';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
|
|
9
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-
|
|
9
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_31b35890553a27fb0d8f940d66156f76/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
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-
|
|
151
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_31b35890553a27fb0d8f940d66156f76/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.
|
|
@@ -191,7 +191,7 @@ var navigating = { subscribe(fn) {
|
|
|
191
191
|
return getStores().navigating.subscribe(fn);
|
|
192
192
|
} };
|
|
193
193
|
//#endregion
|
|
194
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
194
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/traversal.js
|
|
195
195
|
function setPath(parent, key, value) {
|
|
196
196
|
if (key === "__proto__" || key === "prototype") throw new Error("Cannot set an object's `__proto__` or `prototype` property");
|
|
197
197
|
parent[key] = value;
|
|
@@ -308,7 +308,7 @@ function setPaths(obj, paths, value) {
|
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
//#endregion
|
|
311
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
311
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/stringPath.js
|
|
312
312
|
function splitPath(path) {
|
|
313
313
|
return path.toString().split(/[[\].]+/).filter((p) => p);
|
|
314
314
|
}
|
|
@@ -322,7 +322,7 @@ function mergePath(path) {
|
|
|
322
322
|
}, "");
|
|
323
323
|
}
|
|
324
324
|
//#endregion
|
|
325
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
325
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/justClone.js
|
|
326
326
|
function clone$1(obj) {
|
|
327
327
|
const type = {}.toString.call(obj).slice(8, -1);
|
|
328
328
|
if (type == "Set") return new Set([...obj].map((value) => clone$1(value)));
|
|
@@ -337,7 +337,7 @@ function clone$1(obj) {
|
|
|
337
337
|
return obj;
|
|
338
338
|
}
|
|
339
339
|
//#endregion
|
|
340
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
340
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/utils.js
|
|
341
341
|
function clone(data) {
|
|
342
342
|
return data && typeof data === "object" ? clone$1(data) : data;
|
|
343
343
|
}
|
|
@@ -386,7 +386,7 @@ merge$1.withOptions = (options, ...objects) => {
|
|
|
386
386
|
return result;
|
|
387
387
|
};
|
|
388
388
|
//#endregion
|
|
389
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
389
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/jsonSchema/schemaInfo.js
|
|
390
390
|
var conversionFormatTypes = [
|
|
391
391
|
"unix-time",
|
|
392
392
|
"bigint",
|
|
@@ -458,7 +458,7 @@ function unionInfo(schema) {
|
|
|
458
458
|
if (schema.anyOf && schema.anyOf.length) return schema.anyOf.filter((s) => typeof s !== "boolean");
|
|
459
459
|
}
|
|
460
460
|
//#endregion
|
|
461
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
461
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/jsonSchema/schemaDefaults.js
|
|
462
462
|
function defaultValues(schema, isOptional = false, path = []) {
|
|
463
463
|
return _defaultValues(schema, isOptional, path);
|
|
464
464
|
}
|
|
@@ -594,7 +594,7 @@ function _defaultTypes(schema, isOptional, path) {
|
|
|
594
594
|
return output;
|
|
595
595
|
}
|
|
596
596
|
//#endregion
|
|
597
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
597
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/errors.js
|
|
598
598
|
var SuperFormError = class SuperFormError extends Error {
|
|
599
599
|
constructor(message) {
|
|
600
600
|
super(message);
|
|
@@ -747,7 +747,7 @@ function replaceInvalidDefaults(Data, Defaults, _schema, Errors, preprocessed) {
|
|
|
747
747
|
return Data_traverse();
|
|
748
748
|
}
|
|
749
749
|
//#endregion
|
|
750
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
750
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/client/flash.js
|
|
751
751
|
function cancelFlash(options) {
|
|
752
752
|
if (!options.flashMessage || true) return;
|
|
753
753
|
}
|
|
@@ -755,7 +755,7 @@ function shouldSyncFlash(options) {
|
|
|
755
755
|
if (!options.flashMessage || true) return false;
|
|
756
756
|
}
|
|
757
757
|
//#endregion
|
|
758
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
758
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/client/customValidity.js
|
|
759
759
|
var noCustomValidityDataAttribute = "noCustomValidity";
|
|
760
760
|
async function updateCustomValidity(validityEl, errors) {
|
|
761
761
|
if ("setCustomValidity" in validityEl) validityEl.setCustomValidity("");
|
|
@@ -778,7 +778,7 @@ function setCustomValidity(el, errors) {
|
|
|
778
778
|
if (message) el.reportValidity();
|
|
779
779
|
}
|
|
780
780
|
//#endregion
|
|
781
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
781
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/client/elements.js
|
|
782
782
|
var isElementInViewport = (el, topOffset = 0) => {
|
|
783
783
|
const rect = el.getBoundingClientRect();
|
|
784
784
|
return rect.top >= topOffset && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth);
|
|
@@ -808,7 +808,7 @@ function inputInfo(el) {
|
|
|
808
808
|
};
|
|
809
809
|
}
|
|
810
810
|
//#endregion
|
|
811
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
811
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/client/form.js
|
|
812
812
|
var FetchStatus;
|
|
813
813
|
(function(FetchStatus) {
|
|
814
814
|
FetchStatus[FetchStatus["Idle"] = 0] = "Idle";
|
|
@@ -933,7 +933,7 @@ var scrollToFirstError = async (Form, options) => {
|
|
|
933
933
|
} catch {}
|
|
934
934
|
};
|
|
935
935
|
//#endregion
|
|
936
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
936
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/client/proxies.js
|
|
937
937
|
function updateProxyField(obj, path, updater) {
|
|
938
938
|
const output = traversePath(obj, path, ({ parent, key, value }) => {
|
|
939
939
|
if (value === void 0) parent[key] = /\D/.test(key) ? {} : [];
|
|
@@ -989,7 +989,7 @@ function fieldProxy(form, path, options) {
|
|
|
989
989
|
};
|
|
990
990
|
}
|
|
991
991
|
//#endregion
|
|
992
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
992
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/jsonSchema/schemaShape.js
|
|
993
993
|
function schemaShape(schema, path = []) {
|
|
994
994
|
const output = _schemaShape(schema, path);
|
|
995
995
|
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);
|
|
@@ -1034,7 +1034,7 @@ function shapeFromObject(obj) {
|
|
|
1034
1034
|
return output;
|
|
1035
1035
|
}
|
|
1036
1036
|
//#endregion
|
|
1037
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
1037
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/client/superForm.js
|
|
1038
1038
|
var formIds = /* @__PURE__ */ new WeakMap();
|
|
1039
1039
|
var initialForms = /* @__PURE__ */ new WeakMap();
|
|
1040
1040
|
var defaultOnError = (event) => {
|
|
@@ -2032,7 +2032,7 @@ function superForm(form, formOptions) {
|
|
|
2032
2032
|
};
|
|
2033
2033
|
}
|
|
2034
2034
|
//#endregion
|
|
2035
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
2035
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/jsonSchema/constraints.js
|
|
2036
2036
|
function constraints(schema) {
|
|
2037
2037
|
return _constraints(schemaInfo(schema, false, []), []);
|
|
2038
2038
|
}
|
|
@@ -2093,7 +2093,7 @@ function constraint(info) {
|
|
|
2093
2093
|
return Object.keys(output).length > 0 ? output : void 0;
|
|
2094
2094
|
}
|
|
2095
2095
|
//#endregion
|
|
2096
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
2096
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/jsonSchema/schemaHash.js
|
|
2097
2097
|
function schemaHash(schema) {
|
|
2098
2098
|
return hashCode(_schemaHash(schemaInfo(schema, false, []), 0, []));
|
|
2099
2099
|
}
|
|
@@ -2134,7 +2134,7 @@ function hashCode(str) {
|
|
|
2134
2134
|
return hash.toString(36);
|
|
2135
2135
|
}
|
|
2136
2136
|
//#endregion
|
|
2137
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
2137
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/adapters/adapters.js
|
|
2138
2138
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2139
2139
|
function createAdapter(adapter, jsonSchema) {
|
|
2140
2140
|
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.");
|
|
@@ -2148,7 +2148,7 @@ function createAdapter(adapter, jsonSchema) {
|
|
|
2148
2148
|
};
|
|
2149
2149
|
}
|
|
2150
2150
|
//#endregion
|
|
2151
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
2151
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/formData.js
|
|
2152
2152
|
/**
|
|
2153
2153
|
* V1 compatibilty. resetForm = false and taintedMessage = true
|
|
2154
2154
|
*/
|
|
@@ -2343,7 +2343,7 @@ function parseFormDataEntry(key, value, type, info, fromURL = false) {
|
|
|
2343
2343
|
}
|
|
2344
2344
|
}
|
|
2345
2345
|
//#endregion
|
|
2346
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
2346
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/superValidate.js
|
|
2347
2347
|
/**
|
|
2348
2348
|
* Validates a schema for data validation and usage in superForm.
|
|
2349
2349
|
* @param data Data corresponding to a schema, or RequestEvent/FormData/URL. If falsy, the schema's default values will be used.
|
|
@@ -6958,7 +6958,7 @@ function Script(...args) {
|
|
|
6958
6958
|
Void: () => Void
|
|
6959
6959
|
})).Base;
|
|
6960
6960
|
//#endregion
|
|
6961
|
-
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.
|
|
6961
|
+
//#region ../../node_modules/.pnpm/sveltekit-superforms@2.30.1_@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_sve_198860b6cdec2df6730ce09764f30036/node_modules/sveltekit-superforms/dist/adapters/zod4.js
|
|
6962
6962
|
var defaultJSONSchemaOptions = {
|
|
6963
6963
|
unrepresentable: "any",
|
|
6964
6964
|
override: (ctx) => {
|
|
@@ -7108,6 +7108,19 @@ function buildMutationPayload(table, data, mode = "create") {
|
|
|
7108
7108
|
return payload;
|
|
7109
7109
|
}
|
|
7110
7110
|
//#endregion
|
|
7111
|
+
//#region src/lib/form/privilege-readonly.ts
|
|
7112
|
+
function applyPrivilegeReadonly(table, mode) {
|
|
7113
|
+
return {
|
|
7114
|
+
...table,
|
|
7115
|
+
columns: table.columns.map((c) => {
|
|
7116
|
+
return (mode === "create" ? c.insertable === false : c.updatable === false) && !c.readonly ? {
|
|
7117
|
+
...c,
|
|
7118
|
+
readonly: true
|
|
7119
|
+
} : c;
|
|
7120
|
+
})
|
|
7121
|
+
};
|
|
7122
|
+
}
|
|
7123
|
+
//#endregion
|
|
7111
7124
|
//#region src/lib/form/zod-from-table.ts
|
|
7112
7125
|
function zodFromTable(table) {
|
|
7113
7126
|
const shape = {};
|
|
@@ -7162,5 +7175,5 @@ async function readFormWithCompositePicks(request, relations) {
|
|
|
7162
7175
|
return fields;
|
|
7163
7176
|
}
|
|
7164
7177
|
|
|
7165
|
-
export { COMPOSITE_CLEAR_VALUE as C,
|
|
7166
|
-
//# sourceMappingURL=composite-form-
|
|
7178
|
+
export { COMPOSITE_CLEAR_VALUE as C, applyPrivilegeReadonly as a, buildMutationPayload as b, compositeParamName as c, dbCanSupplyColumn as d, demoteUnpickableRelations as e, relationFieldConfigs as f, superValidate as g, zodFromTable as h, isPickableOption as i, promoteCompositeMemberWidgets as p, readFormWithCompositePicks as r, superForm as s, zod as z };
|
|
7179
|
+
//# sourceMappingURL=composite-form-_tg7iknp.js.map
|