@kozou/svelte-ui 1.16.0 → 1.17.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/README.md +33 -0
- package/build/client/_app/immutable/assets/0.BFw6nhto.css +2 -0
- 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/{ZymYutXT.js → BWWvKZIn.js} +1 -1
- package/build/client/_app/immutable/chunks/BWWvKZIn.js.br +0 -0
- package/build/client/_app/immutable/chunks/BWWvKZIn.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bjn-300u.js +3 -0
- package/build/client/_app/immutable/chunks/Bjn-300u.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bjn-300u.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bjy-W4x2.js +81 -0
- package/build/client/_app/immutable/chunks/Bjy-W4x2.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bjy-W4x2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Co0RWKLi.js → CdzXNSLM.js} +1 -1
- package/build/client/_app/immutable/chunks/CdzXNSLM.js.br +0 -0
- package/build/client/_app/immutable/chunks/CdzXNSLM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BXlyeQQD.js → OhDywA02.js} +1 -1
- package/build/client/_app/immutable/chunks/OhDywA02.js.br +0 -0
- package/build/client/_app/immutable/chunks/OhDywA02.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.VKYqWqGj.js → app.CXrj_tz3.js} +2 -2
- package/build/client/_app/immutable/entry/app.CXrj_tz3.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CXrj_tz3.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Itp5t-Yk.js +1 -0
- package/build/client/_app/immutable/entry/start.Itp5t-Yk.js.br +0 -0
- package/build/client/_app/immutable/entry/start.Itp5t-Yk.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.ifyNoaZz.js +1 -0
- 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.CRI7xzqE.js +1 -0
- package/build/client/_app/immutable/nodes/1.CRI7xzqE.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.CRI7xzqE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.D_d90ZDd.js +2 -0
- 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.DVcnpF9s.js → 3.CyWCIPgV.js} +1 -1
- package/build/client/_app/immutable/nodes/3.CyWCIPgV.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CyWCIPgV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.CkPz2ou2.js → 4.D3j4ZWuz.js} +4 -5
- package/build/client/_app/immutable/nodes/4.D3j4ZWuz.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.D3j4ZWuz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.04GLHLKD.js → 6.BDB6GDLX.js} +1 -1
- package/build/client/_app/immutable/nodes/6.BDB6GDLX.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BDB6GDLX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.dF2wD20Q.js → 7.x-apVi4n.js} +1 -1
- package/build/client/_app/immutable/nodes/7.x-apVi4n.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.x-apVi4n.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.QWoXtazB.js → 8.DXu_2Qdx.js} +1 -1
- package/build/client/_app/immutable/nodes/8.DXu_2Qdx.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.DXu_2Qdx.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-woVFSmwh.js → 0-DTnqeCaT.js} +8 -5
- package/build/server/chunks/0-DTnqeCaT.js.map +1 -0
- package/build/server/chunks/{1-lj4jQ8b2.js → 1-CApJvP3C.js} +3 -3
- package/build/server/chunks/{1-lj4jQ8b2.js.map → 1-CApJvP3C.js.map} +1 -1
- package/build/server/chunks/{2-zIg9Y59a.js → 2-DGOJW-s_.js} +3 -3
- package/build/server/chunks/{2-zIg9Y59a.js.map → 2-DGOJW-s_.js.map} +1 -1
- package/build/server/chunks/{3-DrgWo0cp.js → 3-BFEYL0s0.js} +9 -9
- package/build/server/chunks/{3-DrgWo0cp.js.map → 3-BFEYL0s0.js.map} +1 -1
- package/build/server/chunks/4-BNWbTUVb.js +31 -0
- package/build/server/chunks/4-BNWbTUVb.js.map +1 -0
- package/build/server/chunks/{5-VZXG8pNB.js → 5-D-48ExuO.js} +2 -2
- package/build/server/chunks/{5-VZXG8pNB.js.map → 5-D-48ExuO.js.map} +1 -1
- package/build/server/chunks/{6-PdvtiZaS.js → 6-BXAzsPrE.js} +3 -3
- package/build/server/chunks/{6-PdvtiZaS.js.map → 6-BXAzsPrE.js.map} +1 -1
- package/build/server/chunks/{7-CvuA2rBN.js → 7-D4VY7Eta.js} +9 -9
- package/build/server/chunks/{7-CvuA2rBN.js.map → 7-D4VY7Eta.js.map} +1 -1
- package/build/server/chunks/{8-kK7gn7W5.js → 8-CAkMPSY4.js} +9 -9
- package/build/server/chunks/{8-kK7gn7W5.js.map → 8-CAkMPSY4.js.map} +1 -1
- package/build/server/chunks/{9-Dj6HXa42.js → 9-DRxhju5a.js} +2 -2
- package/build/server/chunks/{9-Dj6HXa42.js.map → 9-DRxhju5a.js.map} +1 -1
- package/build/server/chunks/{ListTable-wSR_j9wZ.js → ListTable-D8OnEdye.js} +2 -2
- package/build/server/chunks/ListTable-D8OnEdye.js.map +1 -0
- package/build/server/chunks/{_layout.svelte-BzBYfRFe.js → _layout.svelte-CouhggA0.js} +8 -3
- package/build/server/chunks/_layout.svelte-CouhggA0.js.map +1 -0
- package/build/server/chunks/{_page.svelte-Cka5_oDd.js → _page.svelte-5hyURw8O.js} +5 -5
- package/build/server/chunks/_page.svelte-5hyURw8O.js.map +1 -0
- package/build/server/chunks/{_page.svelte-D9z7ezJ4.js → _page.svelte-BHW_BBcE.js} +3 -3
- package/build/server/chunks/_page.svelte-BHW_BBcE.js.map +1 -0
- package/build/server/chunks/{_page.svelte-7fkGf1FK.js → _page.svelte-Bqk7F3CL.js} +9 -9
- package/build/server/chunks/_page.svelte-Bqk7F3CL.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BOARmWnQ.js → _page.svelte-CBJR_AG2.js} +9 -9
- package/build/server/chunks/_page.svelte-CBJR_AG2.js.map +1 -0
- package/build/server/chunks/{_page.svelte-CwYTEs9l.js → _page.svelte-Cd_z7eFO.js} +5 -6
- package/build/server/chunks/_page.svelte-Cd_z7eFO.js.map +1 -0
- package/build/server/chunks/{_page.svelte-swWuZCGb.js → _page.svelte-D8nYMywt.js} +3 -3
- package/build/server/chunks/_page.svelte-D8nYMywt.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BRd3nCo7.js → _page.svelte-D9WnRc7S.js} +8 -8
- package/build/server/chunks/_page.svelte-D9WnRc7S.js.map +1 -0
- package/build/server/chunks/{_page.svelte-BvzDTw9r.js → _page.svelte-DeVGBJ28.js} +9 -4
- package/build/server/chunks/_page.svelte-DeVGBJ28.js.map +1 -0
- package/build/server/chunks/{app-Do0K3Mhs.js → app-CYD2rz7t.js} +2 -2
- package/build/server/chunks/{app-Do0K3Mhs.js.map → app-CYD2rz7t.js.map} +1 -1
- package/build/server/chunks/{client-BUetWae2.js → client-BBFG1zLB.js} +5 -4
- package/build/server/chunks/client-BBFG1zLB.js.map +1 -0
- package/build/server/chunks/composite-form-KsMxMbgc.js +2964 -0
- package/build/server/chunks/composite-form-KsMxMbgc.js.map +1 -0
- package/build/server/chunks/{error.svelte-DEbRUIAn.js → error.svelte-C_s6PHRr.js} +8 -8
- package/build/server/chunks/error.svelte-C_s6PHRr.js.map +1 -0
- package/build/server/chunks/{hooks.server-DbvRjTP7.js → hooks.server-ud8twg77.js} +4 -4
- package/build/server/chunks/{hooks.server-DbvRjTP7.js.map → hooks.server-ud8twg77.js.map} +1 -1
- package/build/server/chunks/index-CVekYGHP.js.map +1 -1
- package/build/server/chunks/index-DBqjc0Yf.js.map +1 -1
- package/build/server/chunks/{internal-DNKMhz22.js → internal2-BaDAe3C9.js} +170 -187
- package/build/server/chunks/internal2-BaDAe3C9.js.map +1 -0
- package/build/server/chunks/mcp-connection-C9Efo8-2.js +73 -0
- package/build/server/chunks/mcp-connection-C9Efo8-2.js.map +1 -0
- package/build/server/chunks/{relation-select-composite-field-CKIculYy.js → relation-select-composite-field-D0FbNYK6.js} +4 -4
- package/build/server/chunks/relation-select-composite-field-D0FbNYK6.js.map +1 -0
- package/build/server/chunks/{dev-aF1HGl8f.js → server-1sE9LKAu.js} +790 -790
- package/build/server/chunks/server-1sE9LKAu.js.map +1 -0
- package/build/server/chunks/{widget-registry-BCxIAl3a.js → widget-registry-D4uP1dwJ.js} +2 -2
- package/build/server/chunks/widget-registry-D4uP1dwJ.js.map +1 -0
- package/build/server/index.js +801 -725
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +11 -11
- package/build/server/manifest.js.map +1 -1
- package/package.json +8 -8
- package/build/client/_app/immutable/assets/0.C7i1Dz29.css +0 -2
- package/build/client/_app/immutable/assets/0.C7i1Dz29.css.br +0 -0
- package/build/client/_app/immutable/assets/0.C7i1Dz29.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BXlyeQQD.js.br +0 -0
- package/build/client/_app/immutable/chunks/BXlyeQQD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Co0RWKLi.js.br +0 -0
- package/build/client/_app/immutable/chunks/Co0RWKLi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ZymYutXT.js.br +0 -0
- package/build/client/_app/immutable/chunks/ZymYutXT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/fsex2-so.js +0 -4
- package/build/client/_app/immutable/chunks/fsex2-so.js.br +0 -0
- package/build/client/_app/immutable/chunks/fsex2-so.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.VKYqWqGj.js.br +0 -0
- package/build/client/_app/immutable/entry/app.VKYqWqGj.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.8m1THyRy.js +0 -1
- package/build/client/_app/immutable/entry/start.8m1THyRy.js.br +0 -0
- package/build/client/_app/immutable/entry/start.8m1THyRy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.Bubr-rD_.js +0 -1
- package/build/client/_app/immutable/nodes/0.Bubr-rD_.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.Bubr-rD_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.C89YfDq9.js +0 -1
- package/build/client/_app/immutable/nodes/1.C89YfDq9.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.C89YfDq9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.BEj9B8Ni.js +0 -2
- package/build/client/_app/immutable/nodes/2.BEj9B8Ni.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.BEj9B8Ni.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DVcnpF9s.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DVcnpF9s.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.CkPz2ou2.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CkPz2ou2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.04GLHLKD.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.04GLHLKD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.dF2wD20Q.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.dF2wD20Q.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.QWoXtazB.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.QWoXtazB.js.gz +0 -0
- package/build/server/chunks/0-woVFSmwh.js.map +0 -1
- package/build/server/chunks/4-Zn1moNCA.js +0 -51
- package/build/server/chunks/4-Zn1moNCA.js.map +0 -1
- package/build/server/chunks/ListTable-wSR_j9wZ.js.map +0 -1
- package/build/server/chunks/_layout.svelte-BzBYfRFe.js.map +0 -1
- package/build/server/chunks/_page.svelte-7fkGf1FK.js.map +0 -1
- package/build/server/chunks/_page.svelte-BOARmWnQ.js.map +0 -1
- package/build/server/chunks/_page.svelte-BRd3nCo7.js.map +0 -1
- package/build/server/chunks/_page.svelte-BvzDTw9r.js.map +0 -1
- package/build/server/chunks/_page.svelte-Cka5_oDd.js.map +0 -1
- package/build/server/chunks/_page.svelte-CwYTEs9l.js.map +0 -1
- package/build/server/chunks/_page.svelte-D9z7ezJ4.js.map +0 -1
- package/build/server/chunks/_page.svelte-swWuZCGb.js.map +0 -1
- package/build/server/chunks/client-BUetWae2.js.map +0 -1
- package/build/server/chunks/composite-form-D-QWeZpC.js +0 -7225
- package/build/server/chunks/composite-form-D-QWeZpC.js.map +0 -1
- package/build/server/chunks/dev-aF1HGl8f.js.map +0 -1
- package/build/server/chunks/error.svelte-DEbRUIAn.js.map +0 -1
- package/build/server/chunks/internal-DNKMhz22.js.map +0 -1
- package/build/server/chunks/relation-select-composite-field-CKIculYy.js.map +0 -1
- package/build/server/chunks/widget-registry-BCxIAl3a.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListTable-D8OnEdye.js","sources":["../../../.svelte-kit/adapter-node/chunks/ListTable.js"],"sourcesContent":["import { b as attr, n as derived, r as ensure_array_like, x as escape_html } from \"./server.js\";\nimport { r as rowIdSegment } from \"./resource-id.js\";\n//#region ../ui-core/dist/list/list-href.js\n/** Rebuild the current list URL with `overrides` applied (a `null`\n* override deletes that key). Mirrors the wire format parsed by\n* `parseListParamsFromUrl`; returns `.` when no params remain so the\n* link points at the bare route. */\nfunction buildHref(params, overrides = {}) {\n\tconst sp = new URLSearchParams();\n\tif (params.search.length > 0) sp.set(\"q\", params.search);\n\tif (params.sort.length > 0) sp.set(\"sort\", params.sort.map((s) => `${s.field}:${s.order}`).join(\",\"));\n\tif (params.page > 1) sp.set(\"page\", String(params.page));\n\tif (params.pageSize !== 50) sp.set(\"pageSize\", String(params.pageSize));\n\tfor (const [key, value] of Object.entries(overrides)) if (value === null) sp.delete(key);\n\telse sp.set(key, value);\n\tconst query = sp.toString();\n\treturn query.length > 0 ? `?${query}` : \".\";\n}\n/** Header link target that toggles the sort order for `field` (asc <->\n* desc, defaulting to asc) and resets back to page 1. */\nfunction buildSortHref(params, field) {\n\treturn buildHref(params, {\n\t\tsort: `${field}:${params.sort.find((s) => s.field === field)?.order === \"asc\" ? \"desc\" : \"asc\"}`,\n\t\tpage: null\n\t});\n}\n/** Stringify a cell value for the list table: objects render as JSON,\n* `null` / `undefined` render as the empty string. */\nfunction formatCell(value) {\n\tif (value === null || value === void 0) return \"\";\n\tif (typeof value === \"object\") return JSON.stringify(value);\n\treturn String(value);\n}\n//#endregion\n//#region src/lib/list/ListTable.svelte\nfunction ListTable($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\t/** Heading text (table / view label). */\n\t\t/** `schema.name`, shown under the heading. */\n\t\t/** Views render read-only: no \"+ New\", per-row links, or Actions\n\t\t* column. */\n\t\t/** Route base for the \"+ New\" and per-row links (e.g. `/tables/<qn>`);\n\t\t* used only when `readonly` is false. */\n\t\t/** Primary-key column names used to build the per-row link target. */\n\t\tlet { title, qualifiedName, columns, rows, total, listParams, readonly = false, basePath, primaryKey = [] } = $$props;\n\t\tconst sortLookup = derived(() => new Map([...listParams.sort].reverse().map((s) => [s.field, s.order])));\n\t\tconst primarySort = derived(() => listParams.sort[0]);\n\t\tconst totalPages = derived(() => Math.max(1, Math.ceil(total / listParams.pageSize)));\n\t\tfunction rowKey(row, idx) {\n\t\t\treturn rowIdSegment(row, primaryKey) ?? String(idx);\n\t\t}\n\t\t$$renderer.push(`<h1 class=\"mb-1 text-2xl font-semibold\">${escape_html(title)}</h1> <p class=\"mb-6 text-sm text-muted-foreground\">${escape_html(qualifiedName)}</p> <form method=\"GET\" class=\"mb-4 flex flex-wrap items-center gap-2\"><input type=\"text\" name=\"q\"${attr(\"value\", listParams.search)} placeholder=\"Search…\" aria-label=\"Search rows\" class=\"min-w-0 flex-1 rounded-md border border-input bg-background px-3 py-2 text-sm\"/> <button type=\"submit\" class=\"rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground\">Search</button> `);\n\t\tif (!readonly && basePath) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<a${attr(\"href\", `${basePath}/new`)} class=\"rounded-md border border-border px-4 py-2 text-sm font-medium\">+ New</a>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--></form> <div class=\"overflow-x-auto rounded-md border border-border\"><table class=\"min-w-full text-sm\"><thead class=\"bg-muted\"><tr><!--[-->`);\n\t\tconst each_array = ensure_array_like(columns);\n\t\tfor (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n\t\t\tlet col = each_array[$$index];\n\t\t\t$$renderer.push(`<th class=\"px-3 py-2 text-left font-medium\"${attr(\"aria-sort\", primarySort()?.field === col.name ? primarySort().order === \"asc\" ? \"ascending\" : \"descending\" : \"none\")}><a${attr(\"href\", buildSortHref(listParams, col.name))} class=\"hover:underline\">${escape_html(col.label)} `);\n\t\t\tif (sortLookup().has(col.name)) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<span aria-hidden=\"true\">${escape_html(sortLookup().get(col.name) === \"asc\" ? \"↑\" : \"↓\")}</span>`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--></a></th>`);\n\t\t}\n\t\t$$renderer.push(`<!--]-->`);\n\t\tif (!readonly) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<th class=\"px-3 py-2 text-left font-medium\">Actions</th>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--></tr></thead><tbody>`);\n\t\tif (rows.length === 0) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<tr><td${attr(\"colspan\", columns.length + (readonly ? 0 : 1))} class=\"px-3 py-6 text-center text-muted-foreground\">No rows.</td></tr>`);\n\t\t} else {\n\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--[-->`);\n\t\t\tconst each_array_1 = ensure_array_like(rows);\n\t\t\tfor (let idx = 0, $$length = each_array_1.length; idx < $$length; idx++) {\n\t\t\t\tlet row = each_array_1[idx];\n\t\t\t\t$$renderer.push(`<tr class=\"border-t border-border\"><!--[-->`);\n\t\t\t\tconst each_array_2 = ensure_array_like(columns);\n\t\t\t\tfor (let $$index_1 = 0, $$length = each_array_2.length; $$index_1 < $$length; $$index_1++) {\n\t\t\t\t\tlet col = each_array_2[$$index_1];\n\t\t\t\t\t$$renderer.push(`<td class=\"px-3 py-2\">${escape_html(formatCell(row[col.name]))}</td>`);\n\t\t\t\t}\n\t\t\t\t$$renderer.push(`<!--]-->`);\n\t\t\t\tif (!readonly && basePath) {\n\t\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t\t$$renderer.push(`<td class=\"px-3 py-2\"><a${attr(\"href\", `${basePath}/${rowKey(row, idx)}`)} class=\"text-primary underline\">View</a></td>`);\n\t\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t\t$$renderer.push(`<!--]--></tr>`);\n\t\t\t}\n\t\t\t$$renderer.push(`<!--]-->`);\n\t\t}\n\t\t$$renderer.push(`<!--]--></tbody></table></div> <nav class=\"mt-4 flex items-center justify-between text-sm\"><span class=\"text-muted-foreground\">Page ${escape_html(listParams.page)} of ${escape_html(totalPages())} (${escape_html(total)} total)</span> <div class=\"flex gap-2\">`);\n\t\tif (listParams.page > 1) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<a${attr(\"href\", buildHref(listParams, { page: String(listParams.page - 1) }))} class=\"rounded-md border border-border px-3 py-1\">← Prev</a>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--> `);\n\t\tif (listParams.page < totalPages()) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<a${attr(\"href\", buildHref(listParams, { page: String(listParams.page + 1) }))} class=\"rounded-md border border-border px-3 py-1\">Next →</a>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--></div></nav>`);\n\t});\n}\n//#endregion\nexport { ListTable as t };\n"],"names":[],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE;AAC3C,CAAC,MAAM,EAAE,GAAG,IAAI,eAAe,EAAE;AACjC,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC;AACzD,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtG,CAAC,IAAI,MAAM,CAAC,IAAI,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACzD,CAAC,IAAI,MAAM,CAAC,QAAQ,KAAK,EAAE,EAAE,EAAE,CAAC,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E,MAAM,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,6DAA6D,CAAC,CAAC;AAClK,EAAE,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC;AACtC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC;AAC9B,EAAE,IAAI,UAAU,CAAC,IAAI,GAAG,UAAU,EAAE,EAAE;AACtC,GAAG,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC;AAC/B,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,6DAA6D,CAAC,CAAC;AAClK,EAAE,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC;AACtC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAAC,CAAC;AACzC,CAAC,CAAC,CAAC;AACH;;;;"}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import { q as escape_html } from './
|
|
1
|
+
import { q as escape_html } from './server-1sE9LKAu.js';
|
|
2
2
|
import 'clsx';
|
|
3
3
|
|
|
4
4
|
//#region src/routes/+layout.svelte
|
|
5
5
|
function _layout($$renderer, $$props) {
|
|
6
6
|
$$renderer.component(($$renderer) => {
|
|
7
7
|
let { data, children } = $$props;
|
|
8
|
-
$$renderer.push(`<div class="min-h-screen bg-background text-foreground"><header class="border-b border-border"><div class="flex items-center justify-between px-6 py-4"><a href="/" class="text-lg font-semibold">${escape_html(data.appName)}</a> <nav class="flex items-center gap-4 text-sm text-muted-foreground"><span>${escape_html(data.tableCount)} tables</span> <span aria-hidden="true">/</span> <span>${escape_html(data.viewCount)} views</span>
|
|
8
|
+
$$renderer.push(`<div class="min-h-screen bg-background text-foreground"><header class="border-b border-border"><div class="flex items-center justify-between px-6 py-4"><a href="/" class="text-lg font-semibold">${escape_html(data.appName)}</a> <nav class="flex items-center gap-4 text-sm text-muted-foreground"><span>${escape_html(data.tableCount)} tables</span> <span aria-hidden="true">/</span> <span>${escape_html(data.viewCount)} views</span> `);
|
|
9
|
+
if (data.mcpEnabled) {
|
|
10
|
+
$$renderer.push("<!--[0-->");
|
|
11
|
+
$$renderer.push(`<span aria-hidden="true">/</span> <a href="/connect" class="text-primary hover:underline">Connect an AI agent</a>`);
|
|
12
|
+
} else $$renderer.push("<!--[-1-->");
|
|
13
|
+
$$renderer.push(`<!--]--></nav></div></header> <main class="px-6 py-8">`);
|
|
9
14
|
children($$renderer);
|
|
10
15
|
$$renderer.push(`<!----></main></div>`);
|
|
11
16
|
});
|
|
12
17
|
}
|
|
13
18
|
|
|
14
19
|
export { _layout as default };
|
|
15
|
-
//# sourceMappingURL=_layout.svelte-
|
|
20
|
+
//# sourceMappingURL=_layout.svelte-CouhggA0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_layout.svelte-CouhggA0.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.svelte.js"],"sourcesContent":["import { x as escape_html } from \"../../chunks/server.js\";\n//#region src/routes/+layout.svelte\nfunction _layout($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tlet { data, children } = $$props;\n\t\t$$renderer.push(`<div class=\"min-h-screen bg-background text-foreground\"><header class=\"border-b border-border\"><div class=\"flex items-center justify-between px-6 py-4\"><a href=\"/\" class=\"text-lg font-semibold\">${escape_html(data.appName)}</a> <nav class=\"flex items-center gap-4 text-sm text-muted-foreground\"><span>${escape_html(data.tableCount)} tables</span> <span aria-hidden=\"true\">/</span> <span>${escape_html(data.viewCount)} views</span> `);\n\t\tif (data.mcpEnabled) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<span aria-hidden=\"true\">/</span> <a href=\"/connect\" class=\"text-primary hover:underline\">Connect an AI agent</a>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--></nav></div></header> <main class=\"px-6 py-8\">`);\n\t\tchildren($$renderer);\n\t\t$$renderer.push(`<!----></main></div>`);\n\t});\n}\n//#endregion\nexport { _layout as default };\n"],"names":[],"mappings":";;;AACA;AACA,SAAS,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE;AACtC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,KAAK;AACtC,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO;AAClC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,kMAAkM,EAAE,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,8EAA8E,EAAE,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,uDAAuD,EAAE,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,cAAc,CAAC,CAAC;AACnc,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE;AACvB,GAAG,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC;AAC/B,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,iHAAiH,CAAC,CAAC;AACvI,EAAE,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC;AACtC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,sDAAsD,CAAC,CAAC;AAC3E,EAAE,QAAQ,CAAC,UAAU,CAAC;AACtB,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,oBAAoB,CAAC,CAAC;AACzC,CAAC,CAAC,CAAC;AACH;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as attr, q as escape_html, o as ensure_array_like } from './
|
|
2
|
-
import './
|
|
3
|
-
import './client-
|
|
1
|
+
import { d as attr, q as escape_html, o as ensure_array_like } from './server-1sE9LKAu.js';
|
|
2
|
+
import './internal2-BaDAe3C9.js';
|
|
3
|
+
import './client-BBFG1zLB.js';
|
|
4
4
|
import 'clsx';
|
|
5
|
-
import 'node:module';
|
|
6
5
|
import './index-DBqjc0Yf.js';
|
|
6
|
+
import 'node:module';
|
|
7
7
|
|
|
8
8
|
//#region ../ui-core/dist/detail/format-cell.js
|
|
9
9
|
function formatCellValue(input) {
|
|
@@ -93,4 +93,4 @@ function _page($$renderer, $$props) {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
export { _page as default };
|
|
96
|
-
//# sourceMappingURL=_page.svelte-
|
|
96
|
+
//# sourceMappingURL=_page.svelte-5hyURw8O.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-5hyURw8O.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/tables/_table_/_id_/_page.svelte.js"],"sourcesContent":["import { b as attr, r as ensure_array_like, x as escape_html } from \"../../../../../chunks/server.js\";\nimport \"../../../../../chunks/forms.js\";\n//#region ../ui-core/dist/detail/format-cell.js\nfunction formatCellValue(input) {\n\tconst { value, widget } = input;\n\tif (value === null || value === void 0) return \"\";\n\tswitch (widget) {\n\t\tcase \"boolean\": return value ? \"Yes\" : \"No\";\n\t\tcase \"date\": return formatDate(value);\n\t\tcase \"datetime\": return formatDateTime(value);\n\t\tcase \"json\":\n\t\t\tif (typeof value === \"object\") try {\n\t\t\t\treturn JSON.stringify(value, null, 2);\n\t\t\t} catch {\n\t\t\t\treturn String(value);\n\t\t\t}\n\t\t\treturn String(value);\n\t\tdefault:\n\t\t\tif (typeof value === \"object\") try {\n\t\t\t\treturn JSON.stringify(value);\n\t\t\t} catch {\n\t\t\t\treturn String(value);\n\t\t\t}\n\t\t\treturn String(value);\n\t}\n}\nfunction formatDate(value) {\n\tconst d = new Date(value);\n\tif (Number.isNaN(d.getTime())) return String(value);\n\treturn d.toISOString().slice(0, 10);\n}\nfunction formatDateTime(value) {\n\tconst d = new Date(value);\n\tif (Number.isNaN(d.getTime())) return String(value);\n\treturn d.toISOString().replace(\"T\", \" \").slice(0, 19);\n}\n//#endregion\n//#region src/routes/tables/[table]/[id]/+page.svelte\nfunction _page($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tlet { data, form } = $$props;\n\t\t$$renderer.push(`<a${attr(\"href\", `/tables/${data.table.qualifiedName}`)} class=\"mb-4 inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground\"><span aria-hidden=\"true\">←</span> ${escape_html(data.table.label)}</a> <h1 class=\"mb-1 text-2xl font-semibold\">${escape_html(data.table.label)}</h1> <p class=\"mb-6 text-sm text-muted-foreground\">${escape_html(data.table.qualifiedName)} / ${escape_html(data.id)}</p> <dl class=\"space-y-4\"><!--[-->`);\n\t\tconst each_array = ensure_array_like(data.table.columns);\n\t\tfor (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n\t\t\tlet col = each_array[$$index];\n\t\t\tconst rawValue = data.row[col.name];\n\t\t\tconst fkLabel = data.fkLabels[col.name];\n\t\t\t$$renderer.push(`<div><dt class=\"text-sm font-medium text-muted-foreground\">${escape_html(col.label)}</dt> <dd class=\"mt-1 text-sm\">`);\n\t\t\tif (col.widget === \"json\") {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<pre class=\"overflow-x-auto rounded-md bg-muted p-2 font-mono text-xs\">${escape_html(formatCellValue({\n\t\t\t\t\tvalue: rawValue,\n\t\t\t\t\twidget: col.widget\n\t\t\t\t}))}</pre>`);\n\t\t\t} else if (col.widget === \"image-url\" && rawValue) {\n\t\t\t\t$$renderer.push(\"<!--[1-->\");\n\t\t\t\t$$renderer.push(`<img${attr(\"src\", String(rawValue))}${attr(\"alt\", col.label)} class=\"max-h-48 rounded-md border border-border object-contain\" loading=\"lazy\"/>`);\n\t\t\t} else if (rawValue === null || rawValue === void 0) {\n\t\t\t\t$$renderer.push(\"<!--[2-->\");\n\t\t\t\t$$renderer.push(`<span class=\"text-muted-foreground\">—</span>`);\n\t\t\t} else if (fkLabel !== void 0 && fkLabel.label !== null) {\n\t\t\t\t$$renderer.push(\"<!--[3-->\");\n\t\t\t\t$$renderer.push(`<a${attr(\"href\", `/tables/${fkLabel.referencedQualifiedName}/${fkLabel.value}`)} class=\"text-primary underline\">${escape_html(fkLabel.label)}</a> <span class=\"ml-1 text-xs text-muted-foreground\">(${escape_html(formatCellValue({\n\t\t\t\t\tvalue: rawValue,\n\t\t\t\t\twidget: col.widget\n\t\t\t\t}))})</span>`);\n\t\t\t} else {\n\t\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\t\t$$renderer.push(`${escape_html(formatCellValue({\n\t\t\t\t\tvalue: rawValue,\n\t\t\t\t\twidget: col.widget\n\t\t\t\t}))}`);\n\t\t\t}\n\t\t\t$$renderer.push(`<!--]--></dd></div>`);\n\t\t}\n\t\t$$renderer.push(`<!--]--></dl> `);\n\t\tif (form?.message) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<p role=\"alert\" class=\"mt-8 rounded-md border border-destructive bg-destructive/10 px-3 py-2 text-sm text-destructive\">${escape_html(form.message)}</p>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--> <div class=\"mt-8 flex flex-wrap gap-3\"><a${attr(\"href\", `/tables/${data.table.qualifiedName}/${data.id}/edit`)} class=\"rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground\">Edit</a> `);\n\t\tif (data.table.canDelete) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<form method=\"POST\" action=\"?/delete\"><button type=\"submit\" class=\"rounded-md border border-destructive px-4 py-2 text-sm font-medium text-destructive\">Delete</button></form>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--> <a${attr(\"href\", `/tables/${data.table.qualifiedName}`)} class=\"rounded-md border border-border px-4 py-2 text-sm font-medium\">Back</a></div>`);\n\t});\n}\n//#endregion\nexport { _page as default };\n"],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C,CAAC,8FAA8F,CAAC,CAAC;AAC3O,EAAE,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;AAC5B,GAAG,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC;AAC/B,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,8KAA8K,CAAC,CAAC;AACpM,EAAE,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC;AACtC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,qFAAqF,CAAC,CAAC;AAC3K,CAAC,CAAC,CAAC;AACH;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'clsx';
|
|
2
|
-
import { L as ListTable } from './ListTable-
|
|
3
|
-
import './
|
|
2
|
+
import { L as ListTable } from './ListTable-D8OnEdye.js';
|
|
3
|
+
import './server-1sE9LKAu.js';
|
|
4
4
|
import './resource-id-CFSW_3aR.js';
|
|
5
5
|
|
|
6
6
|
//#region src/routes/tables/[table]/+page.svelte
|
|
@@ -21,4 +21,4 @@ function _page($$renderer, $$props) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export { _page as default };
|
|
24
|
-
//# sourceMappingURL=_page.svelte-
|
|
24
|
+
//# sourceMappingURL=_page.svelte-BHW_BBcE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-BHW_BBcE.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/tables/_table_/_page.svelte.js"],"sourcesContent":["import \"../../../../chunks/server.js\";\nimport { t as ListTable } from \"../../../../chunks/ListTable.js\";\n//#region src/routes/tables/[table]/+page.svelte\nfunction _page($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tlet { data } = $$props;\n\t\tListTable($$renderer, {\n\t\t\ttitle: data.table.label,\n\t\t\tqualifiedName: data.table.qualifiedName,\n\t\t\tcolumns: data.table.columns,\n\t\t\trows: data.list.rows,\n\t\t\ttotal: data.list.total,\n\t\t\tlistParams: data.listParams,\n\t\t\tbasePath: `/tables/${data.table.qualifiedName}`,\n\t\t\tprimaryKey: data.table.primaryKey\n\t\t});\n\t});\n}\n//#endregion\nexport { _page as default };\n"],"names":[],"mappings":";;;;;AAEA;AACA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,KAAK;AACtC,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO;AACxB,EAAE,SAAS,CAAC,UAAU,EAAE;AACxB,GAAG,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK;AAC1B,GAAG,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa;AAC1C,GAAG,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO;AAC9B,GAAG,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI;AACvB,GAAG,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK;AACzB,GAAG,UAAU,EAAE,IAAI,CAAC,UAAU;AAC9B,GAAG,QAAQ,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;AAClD,GAAG,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC;AAC1B,GAAG,CAAC;AACJ,CAAC,CAAC,CAAC;AACH;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { d as attr, q as escape_html, a6 as store_get, o as ensure_array_like, a7 as store_mutate, m as derived, ab as unsubscribe_stores } from './
|
|
2
|
-
import { h as superForm } from './composite-form-
|
|
3
|
-
import { R as Relation_select_field, r as resolveWidget } from './widget-registry-
|
|
4
|
-
import { R as Relation_select_composite_field } from './relation-select-composite-field-
|
|
1
|
+
import { d as attr, q as escape_html, a6 as store_get, o as ensure_array_like, a7 as store_mutate, m as derived, ab as unsubscribe_stores } from './server-1sE9LKAu.js';
|
|
2
|
+
import { h as superForm } from './composite-form-KsMxMbgc.js';
|
|
3
|
+
import { R as Relation_select_field, r as resolveWidget } from './widget-registry-D4uP1dwJ.js';
|
|
4
|
+
import { R as Relation_select_composite_field } from './relation-select-composite-field-D0FbNYK6.js';
|
|
5
5
|
import 'clsx';
|
|
6
|
-
import './
|
|
7
|
-
import 'node:module';
|
|
6
|
+
import './internal2-BaDAe3C9.js';
|
|
8
7
|
import './index-DBqjc0Yf.js';
|
|
9
|
-
import '
|
|
10
|
-
import './
|
|
8
|
+
import 'node:module';
|
|
9
|
+
import './client-BBFG1zLB.js';
|
|
10
|
+
import './app-CYD2rz7t.js';
|
|
11
11
|
import './index-CVekYGHP.js';
|
|
12
12
|
import 'zod/v4/core';
|
|
13
13
|
import 'zod';
|
|
@@ -170,4 +170,4 @@ function _page($$renderer, $$props) {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
export { _page as default };
|
|
173
|
-
//# sourceMappingURL=_page.svelte-
|
|
173
|
+
//# sourceMappingURL=_page.svelte-Bqk7F3CL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-Bqk7F3CL.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/tables/_table_/new/_page.svelte.js"],"sourcesContent":["import { a as store_get, b as attr, n as derived, o as store_mutate, r as ensure_array_like, s as unsubscribe_stores, x as escape_html } from \"../../../../../chunks/server.js\";\nimport { r as superForm } from \"../../../../../chunks/dist.js\";\nimport { n as Relation_select_field, t as resolveWidget } from \"../../../../../chunks/widget-registry.js\";\nimport { t as Relation_select_composite_field } from \"../../../../../chunks/relation-select-composite-field.js\";\n//#region src/routes/tables/[table]/new/+page.svelte\nfunction _page($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tvar $$store_subs;\n\t\tlet { data } = $$props;\n\t\tconst relationByField = derived(() => new Map(data.relations.filter((r) => (r.fields ?? [r.field]).length === 1).map((r) => [r.field, r])));\n\t\tconst compositeLayout = derived(() => {\n\t\t\tconst hostByField = /* @__PURE__ */ new Map();\n\t\t\tconst memberFields = /* @__PURE__ */ new Set();\n\t\t\tfor (const config of data.relations) {\n\t\t\t\tconst fields = config.fields ?? [config.field];\n\t\t\t\tif (fields.length < 2) continue;\n\t\t\t\tconst grouped = new Set(fields);\n\t\t\t\tconst ordered = data.table.columns.filter((c) => grouped.has(c.name)).map((c) => c.name);\n\t\t\t\tif (ordered.length !== fields.length) continue;\n\t\t\t\thostByField.set(ordered[0], config);\n\t\t\t\tfor (const field of ordered.slice(1)) memberFields.add(field);\n\t\t\t}\n\t\t\treturn {\n\t\t\t\thostByField,\n\t\t\t\tmemberFields\n\t\t\t};\n\t\t});\n\t\tconst { form, errors, enhance, submitting, message } = superForm(data.form, { dataType: \"json\" });\n\t\tconst relationForm = form;\n\t\tfunction memberColumns(config) {\n\t\t\tconst grouped = new Set(config.fields ?? [config.field]);\n\t\t\treturn data.table.columns.filter((c) => grouped.has(c.name));\n\t\t}\n\t\tfunction applyComposite(config, components) {\n\t\t\tconst keyFields = config.keyFields ?? [config.field];\n\t\t\trelationForm.update((current) => {\n\t\t\t\tconst next = { ...current };\n\t\t\t\tkeyFields.forEach((field, i) => {\n\t\t\t\t\tnext[field] = components === null ? \"\" : components[i];\n\t\t\t\t});\n\t\t\t\treturn next;\n\t\t\t});\n\t\t}\n\t\tlet $$settled = true;\n\t\tlet $$inner_renderer;\n\t\tfunction $$render_inner($$renderer) {\n\t\t\t$$renderer.push(`<a${attr(\"href\", `/tables/${data.table.qualifiedName}`)} class=\"mb-4 inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground\"><span aria-hidden=\"true\">←</span> ${escape_html(data.table.label)}</a> <h1 class=\"mb-1 text-2xl font-semibold\">New ${escape_html(data.table.label)}</h1> <p class=\"mb-6 text-sm text-muted-foreground\">${escape_html(data.table.qualifiedName)}</p> <form method=\"POST\" class=\"space-y-4\">`);\n\t\t\tif (store_get($$store_subs ??= {}, \"$message\", message)) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<p role=\"alert\" class=\"rounded-md border border-destructive bg-destructive/10 px-3 py-2 text-sm text-destructive\">${escape_html(store_get($$store_subs ??= {}, \"$message\", message))}</p>`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--> <!--[-->`);\n\t\t\tconst each_array = ensure_array_like(data.table.columns);\n\t\t\tfor (let $$index_2 = 0, $$length = each_array.length; $$index_2 < $$length; $$index_2++) {\n\t\t\t\tlet col = each_array[$$index_2];\n\t\t\t\tconst required = !col.nullable && !col.readonly && !col.isPrimaryKey && !col.dbCanSupply;\n\t\t\t\tconst relation = relationByField().get(col.name);\n\t\t\t\tconst composite = compositeLayout().hostByField.get(col.name);\n\t\t\t\t$$renderer.push(`<div>`);\n\t\t\t\tif (compositeLayout().memberFields.has(col.name)) $$renderer.push(\"<!--[0-->\");\n\t\t\t\telse if (composite) {\n\t\t\t\t\t$$renderer.push(\"<!--[1-->\");\n\t\t\t\t\tconst members = memberColumns(composite);\n\t\t\t\t\tconst groupRequired = members.some((c) => !c.nullable && !c.readonly && !c.isPrimaryKey);\n\t\t\t\t\tconst groupReadonly = members.some((c) => c.readonly);\n\t\t\t\t\t$$renderer.push(`<!---->`);\n\t\t\t\t\tRelation_select_composite_field($$renderer, {\n\t\t\t\t\t\tname: composite.field,\n\t\t\t\t\t\tlabel: members.map((c) => c.label).join(\", \"),\n\t\t\t\t\t\tresource: composite.resource,\n\t\t\t\t\t\tlabelField: composite.labelField,\n\t\t\t\t\t\tsearchFields: composite.searchFields,\n\t\t\t\t\t\tinitialOptions: data.initialOptions[composite.field] ?? [],\n\t\t\t\t\t\tvalues: (composite.keyFields ?? [composite.field]).map((field) => store_get($$store_subs ??= {}, \"$relationForm\", relationForm)[field]),\n\t\t\t\t\t\tonpick: (components) => applyComposite(composite, components),\n\t\t\t\t\t\trequired: groupRequired,\n\t\t\t\t\t\treadonly: groupReadonly\n\t\t\t\t\t});\n\t\t\t\t\t$$renderer.push(`<!----> <!--[-->`);\n\t\t\t\t\tconst each_array_1 = ensure_array_like(members);\n\t\t\t\t\tfor (let $$index = 0, $$length = each_array_1.length; $$index < $$length; $$index++) {\n\t\t\t\t\t\tlet member = each_array_1[$$index];\n\t\t\t\t\t\t$$renderer.push(`<input type=\"hidden\"${attr(\"name\", member.name)}${attr(\"value\", store_get($$store_subs ??= {}, \"$relationForm\", relationForm)[member.name] === null || store_get($$store_subs ??= {}, \"$relationForm\", relationForm)[member.name] === void 0 ? \"\" : String(store_get($$store_subs ??= {}, \"$relationForm\", relationForm)[member.name]))}/>`);\n\t\t\t\t\t}\n\t\t\t\t\t$$renderer.push(`<!--]--> <!--[-->`);\n\t\t\t\t\tconst each_array_2 = ensure_array_like(members);\n\t\t\t\t\tfor (let $$index_1 = 0, $$length = each_array_2.length; $$index_1 < $$length; $$index_1++) {\n\t\t\t\t\t\tlet member = each_array_2[$$index_1];\n\t\t\t\t\t\tif (store_get($$store_subs ??= {}, \"$errors\", errors)[member.name]) {\n\t\t\t\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t\t\t\t$$renderer.push(`<p class=\"mt-1 text-sm text-destructive\">${escape_html(member.label)}: ${escape_html(store_get($$store_subs ??= {}, \"$errors\", errors)[member.name])}</p>`);\n\t\t\t\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t\t\t\t$$renderer.push(`<!--]-->`);\n\t\t\t\t\t}\n\t\t\t\t\t$$renderer.push(`<!--]-->`);\n\t\t\t\t} else if (col.widget === \"relation-select\" && relation) {\n\t\t\t\t\t$$renderer.push(\"<!--[2-->\");\n\t\t\t\t\t$$renderer.push(`<!---->`);\n\t\t\t\t\tRelation_select_field($$renderer, {\n\t\t\t\t\t\tname: col.name,\n\t\t\t\t\t\tlabel: col.label,\n\t\t\t\t\t\tresource: relation.resource,\n\t\t\t\t\t\tlabelField: relation.labelField,\n\t\t\t\t\t\tsearchFields: relation.searchFields,\n\t\t\t\t\t\tinitialOptions: data.initialOptions[col.name] ?? [],\n\t\t\t\t\t\trequired,\n\t\t\t\t\t\treadonly: col.readonly,\n\t\t\t\t\t\tget value() {\n\t\t\t\t\t\t\treturn store_get($$store_subs ??= {}, \"$relationForm\", relationForm)[col.name];\n\t\t\t\t\t\t},\n\t\t\t\t\t\tset value($$value) {\n\t\t\t\t\t\t\tstore_mutate($$store_subs ??= {}, \"$relationForm\", relationForm, store_get($$store_subs ??= {}, \"$relationForm\", relationForm)[col.name] = $$value);\n\t\t\t\t\t\t\t$$settled = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t$$renderer.push(`<!---->`);\n\t\t\t\t} else {\n\t\t\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\t\t\tconst Widget = resolveWidget(col.widget);\n\t\t\t\t\tif (Widget) {\n\t\t\t\t\t\t$$renderer.push(\"<!--[-->\");\n\t\t\t\t\t\tWidget($$renderer, {\n\t\t\t\t\t\t\tname: col.name,\n\t\t\t\t\t\t\tlabel: col.label,\n\t\t\t\t\t\t\toptions: col.enumValues,\n\t\t\t\t\t\t\trequired,\n\t\t\t\t\t\t\treadonly: col.readonly,\n\t\t\t\t\t\t\tget value() {\n\t\t\t\t\t\t\t\treturn store_get($$store_subs ??= {}, \"$form\", form)[col.name];\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tset value($$value) {\n\t\t\t\t\t\t\t\tstore_mutate($$store_subs ??= {}, \"$form\", form, store_get($$store_subs ??= {}, \"$form\", form)[col.name] = $$value);\n\t\t\t\t\t\t\t\t$$settled = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\t$$renderer.push(\"<!--]-->\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$$renderer.push(\"<!--[!-->\");\n\t\t\t\t\t\t$$renderer.push(\"<!--]-->\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$$renderer.push(`<!--]--> `);\n\t\t\t\tif (!composite && !compositeLayout().memberFields.has(col.name) && store_get($$store_subs ??= {}, \"$errors\", errors)[col.name]) {\n\t\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t\t$$renderer.push(`<p class=\"mt-1 text-sm text-destructive\">${escape_html(store_get($$store_subs ??= {}, \"$errors\", errors)[col.name])}</p>`);\n\t\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t\t$$renderer.push(`<!--]--></div>`);\n\t\t\t}\n\t\t\t$$renderer.push(`<!--]--> <div class=\"flex gap-3\"><button type=\"submit\"${attr(\"disabled\", store_get($$store_subs ??= {}, \"$submitting\", submitting), true)} class=\"rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground disabled:opacity-50\">${escape_html(store_get($$store_subs ??= {}, \"$submitting\", submitting) ? \"Saving…\" : \"Save\")}</button> <a${attr(\"href\", `/tables/${data.table.qualifiedName}`)} class=\"rounded-md border border-border px-4 py-2 text-sm font-medium\">Cancel</a></div></form>`);\n\t\t}\n\t\tdo {\n\t\t\t$$settled = true;\n\t\t\t$$inner_renderer = $$renderer.copy();\n\t\t\t$$render_inner($$inner_renderer);\n\t\t} while (!$$settled);\n\t\t$$renderer.subsume($$inner_renderer);\n\t\tif ($$store_subs) unsubscribe_stores($$store_subs);\n\t});\n}\n//#endregion\nexport { _page as default };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAIA;AACA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,KAAK;AACtC,EAAE,IAAI,YAAY;AAClB,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO;AACxB,EAAE,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,KAA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,GAAG,SAAS,GAAG,MAAM,CAAC,CAAC,YAAY,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,8FAA8F,CAAC,CAAC;AACvgB,EAAE;AACF,EAAE,GAAG;AACL,GAAG,SAAS,GAAG,IAAI;AACnB,GAAG,gBAAgB,GAAG,UAAU,CAAC,IAAI,EAAE;AACvC,GAAG,cAAc,CAAC,gBAAgB,CAAC;AACnC,EAAE,CAAC,QAAQ,CAAC,SAAS;AACrB,EAAE,UAAU,CAAC,OAAO,CAAC,gBAAgB,CAAC;AACtC,EAAE,IAAI,YAAY,EAAE,kBAAkB,CAAC,YAAY,CAAC;AACpD,CAAC,CAAC,CAAC;AACH;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { d as attr, q as escape_html, a6 as store_get, o as ensure_array_like, a7 as store_mutate, m as derived, ab as unsubscribe_stores } from './
|
|
2
|
-
import { h as superForm } from './composite-form-
|
|
3
|
-
import { R as Relation_select_field, r as resolveWidget } from './widget-registry-
|
|
4
|
-
import { R as Relation_select_composite_field } from './relation-select-composite-field-
|
|
1
|
+
import { d as attr, q as escape_html, a6 as store_get, o as ensure_array_like, a7 as store_mutate, m as derived, ab as unsubscribe_stores } from './server-1sE9LKAu.js';
|
|
2
|
+
import { h as superForm } from './composite-form-KsMxMbgc.js';
|
|
3
|
+
import { R as Relation_select_field, r as resolveWidget } from './widget-registry-D4uP1dwJ.js';
|
|
4
|
+
import { R as Relation_select_composite_field } from './relation-select-composite-field-D0FbNYK6.js';
|
|
5
5
|
import 'clsx';
|
|
6
|
-
import './
|
|
7
|
-
import 'node:module';
|
|
6
|
+
import './internal2-BaDAe3C9.js';
|
|
8
7
|
import './index-DBqjc0Yf.js';
|
|
9
|
-
import '
|
|
10
|
-
import './
|
|
8
|
+
import 'node:module';
|
|
9
|
+
import './client-BBFG1zLB.js';
|
|
10
|
+
import './app-CYD2rz7t.js';
|
|
11
11
|
import './index-CVekYGHP.js';
|
|
12
12
|
import 'zod/v4/core';
|
|
13
13
|
import 'zod';
|
|
@@ -170,4 +170,4 @@ function _page($$renderer, $$props) {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
export { _page as default };
|
|
173
|
-
//# sourceMappingURL=_page.svelte-
|
|
173
|
+
//# sourceMappingURL=_page.svelte-CBJR_AG2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-CBJR_AG2.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/tables/_table_/_id_/edit/_page.svelte.js"],"sourcesContent":["import { a as store_get, b as attr, n as derived, o as store_mutate, r as ensure_array_like, s as unsubscribe_stores, x as escape_html } from \"../../../../../../chunks/server.js\";\nimport { r as superForm } from \"../../../../../../chunks/dist.js\";\nimport { n as Relation_select_field, t as resolveWidget } from \"../../../../../../chunks/widget-registry.js\";\nimport { t as Relation_select_composite_field } from \"../../../../../../chunks/relation-select-composite-field.js\";\n//#region src/routes/tables/[table]/[id]/edit/+page.svelte\nfunction _page($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tvar $$store_subs;\n\t\tlet { data } = $$props;\n\t\tconst relationByField = derived(() => new Map(data.relations.filter((r) => (r.fields ?? [r.field]).length === 1).map((r) => [r.field, r])));\n\t\tconst compositeLayout = derived(() => {\n\t\t\tconst hostByField = /* @__PURE__ */ new Map();\n\t\t\tconst memberFields = /* @__PURE__ */ new Set();\n\t\t\tfor (const config of data.relations) {\n\t\t\t\tconst fields = config.fields ?? [config.field];\n\t\t\t\tif (fields.length < 2) continue;\n\t\t\t\tconst grouped = new Set(fields);\n\t\t\t\tconst ordered = data.table.columns.filter((c) => grouped.has(c.name)).map((c) => c.name);\n\t\t\t\tif (ordered.length !== fields.length) continue;\n\t\t\t\thostByField.set(ordered[0], config);\n\t\t\t\tfor (const field of ordered.slice(1)) memberFields.add(field);\n\t\t\t}\n\t\t\treturn {\n\t\t\t\thostByField,\n\t\t\t\tmemberFields\n\t\t\t};\n\t\t});\n\t\tconst { form, errors, enhance, submitting, message } = superForm(data.form, { dataType: \"json\" });\n\t\tconst relationForm = form;\n\t\tfunction memberColumns(config) {\n\t\t\tconst grouped = new Set(config.fields ?? [config.field]);\n\t\t\treturn data.table.columns.filter((c) => grouped.has(c.name));\n\t\t}\n\t\tfunction applyComposite(config, components) {\n\t\t\tconst keyFields = config.keyFields ?? [config.field];\n\t\t\trelationForm.update((current) => {\n\t\t\t\tconst next = { ...current };\n\t\t\t\tkeyFields.forEach((field, i) => {\n\t\t\t\t\tnext[field] = components === null ? \"\" : components[i];\n\t\t\t\t});\n\t\t\t\treturn next;\n\t\t\t});\n\t\t}\n\t\tlet $$settled = true;\n\t\tlet $$inner_renderer;\n\t\tfunction $$render_inner($$renderer) {\n\t\t\t$$renderer.push(`<a${attr(\"href\", `/tables/${data.table.qualifiedName}`)} class=\"mb-4 inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground\"><span aria-hidden=\"true\">←</span> ${escape_html(data.table.label)}</a> <h1 class=\"mb-1 text-2xl font-semibold\">Edit ${escape_html(data.table.label)}</h1> <p class=\"mb-6 text-sm text-muted-foreground\">${escape_html(data.table.qualifiedName)} / ${escape_html(data.id)}</p> <form method=\"POST\" class=\"space-y-4\">`);\n\t\t\tif (store_get($$store_subs ??= {}, \"$message\", message)) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<p role=\"alert\" class=\"rounded-md border border-destructive bg-destructive/10 px-3 py-2 text-sm text-destructive\">${escape_html(store_get($$store_subs ??= {}, \"$message\", message))}</p>`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--> <!--[-->`);\n\t\t\tconst each_array = ensure_array_like(data.table.columns);\n\t\t\tfor (let $$index_2 = 0, $$length = each_array.length; $$index_2 < $$length; $$index_2++) {\n\t\t\t\tlet col = each_array[$$index_2];\n\t\t\t\tconst required = !col.nullable && !col.readonly && !col.isPrimaryKey;\n\t\t\t\tconst relation = relationByField().get(col.name);\n\t\t\t\tconst composite = compositeLayout().hostByField.get(col.name);\n\t\t\t\t$$renderer.push(`<div>`);\n\t\t\t\tif (compositeLayout().memberFields.has(col.name)) $$renderer.push(\"<!--[0-->\");\n\t\t\t\telse if (composite) {\n\t\t\t\t\t$$renderer.push(\"<!--[1-->\");\n\t\t\t\t\tconst members = memberColumns(composite);\n\t\t\t\t\tconst groupRequired = members.some((c) => !c.nullable && !c.readonly && !c.isPrimaryKey);\n\t\t\t\t\tconst groupReadonly = members.some((c) => c.readonly);\n\t\t\t\t\t$$renderer.push(`<!---->`);\n\t\t\t\t\tRelation_select_composite_field($$renderer, {\n\t\t\t\t\t\tname: composite.field,\n\t\t\t\t\t\tlabel: members.map((c) => c.label).join(\", \"),\n\t\t\t\t\t\tresource: composite.resource,\n\t\t\t\t\t\tlabelField: composite.labelField,\n\t\t\t\t\t\tsearchFields: composite.searchFields,\n\t\t\t\t\t\tinitialOptions: data.initialOptions[composite.field] ?? [],\n\t\t\t\t\t\tvalues: (composite.keyFields ?? [composite.field]).map((field) => store_get($$store_subs ??= {}, \"$relationForm\", relationForm)[field]),\n\t\t\t\t\t\tonpick: (components) => applyComposite(composite, components),\n\t\t\t\t\t\trequired: groupRequired,\n\t\t\t\t\t\treadonly: groupReadonly\n\t\t\t\t\t});\n\t\t\t\t\t$$renderer.push(`<!----> <!--[-->`);\n\t\t\t\t\tconst each_array_1 = ensure_array_like(members);\n\t\t\t\t\tfor (let $$index = 0, $$length = each_array_1.length; $$index < $$length; $$index++) {\n\t\t\t\t\t\tlet member = each_array_1[$$index];\n\t\t\t\t\t\t$$renderer.push(`<input type=\"hidden\"${attr(\"name\", member.name)}${attr(\"value\", store_get($$store_subs ??= {}, \"$relationForm\", relationForm)[member.name] === null || store_get($$store_subs ??= {}, \"$relationForm\", relationForm)[member.name] === void 0 ? \"\" : String(store_get($$store_subs ??= {}, \"$relationForm\", relationForm)[member.name]))}/>`);\n\t\t\t\t\t}\n\t\t\t\t\t$$renderer.push(`<!--]--> <!--[-->`);\n\t\t\t\t\tconst each_array_2 = ensure_array_like(members);\n\t\t\t\t\tfor (let $$index_1 = 0, $$length = each_array_2.length; $$index_1 < $$length; $$index_1++) {\n\t\t\t\t\t\tlet member = each_array_2[$$index_1];\n\t\t\t\t\t\tif (store_get($$store_subs ??= {}, \"$errors\", errors)[member.name]) {\n\t\t\t\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t\t\t\t$$renderer.push(`<p class=\"mt-1 text-sm text-destructive\">${escape_html(member.label)}: ${escape_html(store_get($$store_subs ??= {}, \"$errors\", errors)[member.name])}</p>`);\n\t\t\t\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t\t\t\t$$renderer.push(`<!--]-->`);\n\t\t\t\t\t}\n\t\t\t\t\t$$renderer.push(`<!--]-->`);\n\t\t\t\t} else if (col.widget === \"relation-select\" && relation) {\n\t\t\t\t\t$$renderer.push(\"<!--[2-->\");\n\t\t\t\t\t$$renderer.push(`<!---->`);\n\t\t\t\t\tRelation_select_field($$renderer, {\n\t\t\t\t\t\tname: col.name,\n\t\t\t\t\t\tlabel: col.label,\n\t\t\t\t\t\tresource: relation.resource,\n\t\t\t\t\t\tlabelField: relation.labelField,\n\t\t\t\t\t\tsearchFields: relation.searchFields,\n\t\t\t\t\t\tinitialOptions: data.initialOptions[col.name] ?? [],\n\t\t\t\t\t\trequired,\n\t\t\t\t\t\treadonly: col.readonly,\n\t\t\t\t\t\tget value() {\n\t\t\t\t\t\t\treturn store_get($$store_subs ??= {}, \"$relationForm\", relationForm)[col.name];\n\t\t\t\t\t\t},\n\t\t\t\t\t\tset value($$value) {\n\t\t\t\t\t\t\tstore_mutate($$store_subs ??= {}, \"$relationForm\", relationForm, store_get($$store_subs ??= {}, \"$relationForm\", relationForm)[col.name] = $$value);\n\t\t\t\t\t\t\t$$settled = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t$$renderer.push(`<!---->`);\n\t\t\t\t} else {\n\t\t\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\t\t\tconst Widget = resolveWidget(col.widget);\n\t\t\t\t\tif (Widget) {\n\t\t\t\t\t\t$$renderer.push(\"<!--[-->\");\n\t\t\t\t\t\tWidget($$renderer, {\n\t\t\t\t\t\t\tname: col.name,\n\t\t\t\t\t\t\tlabel: col.label,\n\t\t\t\t\t\t\toptions: col.enumValues,\n\t\t\t\t\t\t\trequired,\n\t\t\t\t\t\t\treadonly: col.readonly,\n\t\t\t\t\t\t\tget value() {\n\t\t\t\t\t\t\t\treturn store_get($$store_subs ??= {}, \"$form\", form)[col.name];\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tset value($$value) {\n\t\t\t\t\t\t\t\tstore_mutate($$store_subs ??= {}, \"$form\", form, store_get($$store_subs ??= {}, \"$form\", form)[col.name] = $$value);\n\t\t\t\t\t\t\t\t$$settled = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\t$$renderer.push(\"<!--]-->\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$$renderer.push(\"<!--[!-->\");\n\t\t\t\t\t\t$$renderer.push(\"<!--]-->\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$$renderer.push(`<!--]--> `);\n\t\t\t\tif (!composite && !compositeLayout().memberFields.has(col.name) && store_get($$store_subs ??= {}, \"$errors\", errors)[col.name]) {\n\t\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t\t$$renderer.push(`<p class=\"mt-1 text-sm text-destructive\">${escape_html(store_get($$store_subs ??= {}, \"$errors\", errors)[col.name])}</p>`);\n\t\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t\t$$renderer.push(`<!--]--></div>`);\n\t\t\t}\n\t\t\t$$renderer.push(`<!--]--> <div class=\"flex gap-3\"><button type=\"submit\"${attr(\"disabled\", store_get($$store_subs ??= {}, \"$submitting\", submitting), true)} class=\"rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground disabled:opacity-50\">${escape_html(store_get($$store_subs ??= {}, \"$submitting\", submitting) ? \"Saving…\" : \"Save\")}</button> <a${attr(\"href\", `/tables/${data.table.qualifiedName}/${data.id}`)} class=\"rounded-md border border-border px-4 py-2 text-sm font-medium\">Cancel</a></div></form>`);\n\t\t}\n\t\tdo {\n\t\t\t$$settled = true;\n\t\t\t$$inner_renderer = $$renderer.copy();\n\t\t\t$$render_inner($$inner_renderer);\n\t\t} while (!$$settled);\n\t\t$$renderer.subsume($$inner_renderer);\n\t\tif ($$store_subs) unsubscribe_stores($$store_subs);\n\t});\n}\n//#endregion\nexport { _page as default };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAIA;AACA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,KAAK;AACtC,EAAE,IAAI,YAAY;AAClB,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO;AACxB,EAAE,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7I,EAAE,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM;AACxC,GAAG,MAAM,WAAW,mBAAmB,IAAI,GAAG,EAAE;AAChD,GAAG,MAAM,YAAY,mBAAmB,IAAI,GAAG,EAAE;AACjD,GAAG,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,SAAS,EAAE;AACxC,IAAI,MAAM,M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AAE,UAAU,CAAC,OAAO,CAAC,gBAAgB,CAAC;AACtC,EAAE,IAAI,YAAY,EAAE,kBAAkB,CAAC,YAAY,CAAC;AACpD,CAAC,CAAC,CAAC;AACH;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as escape_html } from './
|
|
1
|
+
import { q as escape_html } from './server-1sE9LKAu.js';
|
|
2
2
|
import 'clsx';
|
|
3
3
|
|
|
4
4
|
//#region src/routes/connect/+page.svelte
|
|
@@ -6,13 +6,12 @@ function _page($$renderer, $$props) {
|
|
|
6
6
|
$$renderer.component(($$renderer) => {
|
|
7
7
|
let { data } = $$props;
|
|
8
8
|
$$renderer.push(`<a href="/" class="mb-4 inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground"><span aria-hidden="true">←</span> Dashboard</a> <h1 class="mb-1 text-2xl font-semibold">Connect an AI agent</h1> <p class="mb-8 max-w-3xl text-sm text-muted-foreground">Point an AI agent — Claude Desktop, Cursor, or Claude Code — at this database
|
|
9
|
-
over <a href="https://modelcontextprotocol.io/" class="text-primary underline" target="_blank" rel="noreferrer">MCP</a>. It can then read what your tables, views, and columns <em>mean</em> — the descriptions you wrote in <code class="font-mono">COMMENT</code> — through
|
|
10
|
-
|
|
9
|
+
over <a href="https://modelcontextprotocol.io/" class="text-primary underline" target="_blank" rel="noreferrer">MCP</a>. It can then read what your tables, views, and columns <em>mean</em> — the descriptions you wrote in <code class="font-mono">COMMENT</code> — through <strong>read-only</strong> tools. There is no data access and no
|
|
10
|
+
write path on this surface.</p> <section class="mb-8 max-w-3xl"><h2 class="mb-2 text-lg font-semibold">Endpoint</h2> <p class="mb-2 text-sm text-muted-foreground"><code class="font-mono">kozou dev</code> already serves the MCP endpoint here
|
|
11
11
|
— no extra command to run:</p> <pre class="overflow-x-auto rounded-md bg-muted p-3 font-mono text-sm">${escape_html(data.connection.httpUrl)}</pre></section> <section class="mb-8 max-w-3xl"><h2 class="mb-2 text-lg font-semibold">Claude Desktop & Cursor</h2> <p class="mb-2 text-sm text-muted-foreground">Add this under <code class="font-mono">mcpServers</code> in the client's MCP
|
|
12
12
|
config, then fully quit and reopen the app. No secret is needed — the server
|
|
13
13
|
already holds the database connection.</p> <pre class="overflow-x-auto rounded-md bg-muted p-3 font-mono text-xs">${escape_html(data.connection.jsonConfig)}</pre></section> <section class="mb-8 max-w-3xl"><h2 class="mb-2 text-lg font-semibold">Claude Code (CLI)</h2> <p class="mb-2 text-sm text-muted-foreground">Run this once in your project:</p> <pre class="overflow-x-auto rounded-md bg-muted p-3 font-mono text-sm">${escape_html(data.connection.claudeCodeCommand)}</pre></section> <section class="mb-8 max-w-3xl rounded-md border border-border p-4"><h2 class="mb-1 text-sm font-semibold">Good to know</h2> <ul class="list-disc space-y-1 pl-5 text-sm text-muted-foreground"><li>The tools are <strong>read-only</strong>: an agent can read your schema's
|
|
14
|
-
meaning, never mutate data, through this surface.</li> <li>The
|
|
15
|
-
default. The URL above uses the host Kozou is configured with
|
|
14
|
+
meaning, never mutate data, through this surface.</li> <li>${escape_html(data.connection.authNote)}</li> <li>The URL above uses the host Kozou is configured with
|
|
16
15
|
(<code class="font-mono">localhost</code> by default) and the MCP port; if
|
|
17
16
|
you reach Kozou through a different host — a proxy or another machine —
|
|
18
17
|
adjust the host accordingly.</li> <li>Full setup, the stdio transport, troubleshooting, and what each tool
|
|
@@ -21,4 +20,4 @@ function _page($$renderer, $$props) {
|
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
export { _page as default };
|
|
24
|
-
//# sourceMappingURL=_page.svelte-
|
|
23
|
+
//# sourceMappingURL=_page.svelte-Cd_z7eFO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-Cd_z7eFO.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/connect/_page.svelte.js"],"sourcesContent":["import { x as escape_html } from \"../../../chunks/server.js\";\n//#region src/routes/connect/+page.svelte\nfunction _page($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tlet { data } = $$props;\n\t\t$$renderer.push(`<a href=\"/\" class=\"mb-4 inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground\"><span aria-hidden=\"true\">←</span> Dashboard</a> <h1 class=\"mb-1 text-2xl font-semibold\">Connect an AI agent</h1> <p class=\"mb-8 max-w-3xl text-sm text-muted-foreground\">Point an AI agent — Claude Desktop, Cursor, or Claude Code — at this database\n over <a href=\"https://modelcontextprotocol.io/\" class=\"text-primary underline\" target=\"_blank\" rel=\"noreferrer\">MCP</a>. It can then read what your tables, views, and columns <em>mean</em> — the descriptions you wrote in <code class=\"font-mono\">COMMENT</code> — through <strong>read-only</strong> tools. There is no data access and no\n write path on this surface.</p> <section class=\"mb-8 max-w-3xl\"><h2 class=\"mb-2 text-lg font-semibold\">Endpoint</h2> <p class=\"mb-2 text-sm text-muted-foreground\"><code class=\"font-mono\">kozou dev</code> already serves the MCP endpoint here\n — no extra command to run:</p> <pre class=\"overflow-x-auto rounded-md bg-muted p-3 font-mono text-sm\">${escape_html(data.connection.httpUrl)}</pre></section> <section class=\"mb-8 max-w-3xl\"><h2 class=\"mb-2 text-lg font-semibold\">Claude Desktop & Cursor</h2> <p class=\"mb-2 text-sm text-muted-foreground\">Add this under <code class=\"font-mono\">mcpServers</code> in the client's MCP\n config, then fully quit and reopen the app. No secret is needed — the server\n already holds the database connection.</p> <pre class=\"overflow-x-auto rounded-md bg-muted p-3 font-mono text-xs\">${escape_html(data.connection.jsonConfig)}</pre></section> <section class=\"mb-8 max-w-3xl\"><h2 class=\"mb-2 text-lg font-semibold\">Claude Code (CLI)</h2> <p class=\"mb-2 text-sm text-muted-foreground\">Run this once in your project:</p> <pre class=\"overflow-x-auto rounded-md bg-muted p-3 font-mono text-sm\">${escape_html(data.connection.claudeCodeCommand)}</pre></section> <section class=\"mb-8 max-w-3xl rounded-md border border-border p-4\"><h2 class=\"mb-1 text-sm font-semibold\">Good to know</h2> <ul class=\"list-disc space-y-1 pl-5 text-sm text-muted-foreground\"><li>The tools are <strong>read-only</strong>: an agent can read your schema's\n meaning, never mutate data, through this surface.</li> <li>${escape_html(data.connection.authNote)}</li> <li>The URL above uses the host Kozou is configured with\n (<code class=\"font-mono\">localhost</code> by default) and the MCP port; if\n you reach Kozou through a different host — a proxy or another machine —\n adjust the host accordingly.</li> <li>Full setup, the stdio transport, troubleshooting, and what each tool\n returns are in the <a href=\"https://kozou.org/guides/connect-mcp/\" class=\"text-primary underline\" target=\"_blank\" rel=\"noreferrer\">Connect an AI agent guide</a>.</li></ul></section>`);\n\t});\n}\n//#endregion\nexport { _page as default };\n"],"names":[],"mappings":";;;AACA;AACA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,KAAK;AACtC,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO;AACxB,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;AACnB;AACA;AACA,0GAA0G,EAAE,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AACjJ;AACA,sHAAsH,EAAE,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,uQAAuQ,EAAE,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,CAAC;AACxd,iEAAiE,EAAE,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;AACzG;AACA;AACA;AACA,2LAA2L,CAAC,CAAC;AAC7L,CAAC,CAAC,CAAC;AACH;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'clsx';
|
|
2
|
-
import { L as ListTable } from './ListTable-
|
|
3
|
-
import './
|
|
2
|
+
import { L as ListTable } from './ListTable-D8OnEdye.js';
|
|
3
|
+
import './server-1sE9LKAu.js';
|
|
4
4
|
import './resource-id-CFSW_3aR.js';
|
|
5
5
|
|
|
6
6
|
//#region src/routes/views/[view]/+page.svelte
|
|
@@ -20,4 +20,4 @@ function _page($$renderer, $$props) {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export { _page as default };
|
|
23
|
-
//# sourceMappingURL=_page.svelte-
|
|
23
|
+
//# sourceMappingURL=_page.svelte-D8nYMywt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-D8nYMywt.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/views/_view_/_page.svelte.js"],"sourcesContent":["import \"../../../../chunks/server.js\";\nimport { t as ListTable } from \"../../../../chunks/ListTable.js\";\n//#region src/routes/views/[view]/+page.svelte\nfunction _page($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tlet { data } = $$props;\n\t\tListTable($$renderer, {\n\t\t\ttitle: data.view.label,\n\t\t\tqualifiedName: data.view.qualifiedName,\n\t\t\tcolumns: data.view.columns,\n\t\t\trows: data.list.rows,\n\t\t\ttotal: data.list.total,\n\t\t\tlistParams: data.listParams,\n\t\t\treadonly: true\n\t\t});\n\t});\n}\n//#endregion\nexport { _page as default };\n"],"names":[],"mappings":";;;;;AAEA;AACA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,KAAK;AACtC,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,OAAO;AACxB,EAAE,SAAS,CAAC,UAAU,EAAE;AACxB,GAAG,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK;AACzB,GAAG,aAAa,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa;AACzC,GAAG,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,OAAO;AAC7B,GAAG,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI;AACvB,GAAG,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK;AACzB,GAAG,UAAU,EAAE,IAAI,CAAC,UAAU;AAC9B,GAAG,QAAQ,EAAE;AACb,GAAG,CAAC;AACJ,CAAC,CAAC,CAAC;AACH;;;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { q as escape_html, o as ensure_array_like, a7 as store_mutate, a6 as store_get, d as attr, m as derived, ab as unsubscribe_stores } from './
|
|
2
|
-
import { h as superForm } from './composite-form-
|
|
3
|
-
import { R as Relation_select_field, r as resolveWidget } from './widget-registry-
|
|
1
|
+
import { q as escape_html, o as ensure_array_like, a7 as store_mutate, a6 as store_get, d as attr, m as derived, ab as unsubscribe_stores } from './server-1sE9LKAu.js';
|
|
2
|
+
import { h as superForm } from './composite-form-KsMxMbgc.js';
|
|
3
|
+
import { R as Relation_select_field, r as resolveWidget } from './widget-registry-D4uP1dwJ.js';
|
|
4
4
|
import 'clsx';
|
|
5
|
-
import './
|
|
6
|
-
import 'node:module';
|
|
5
|
+
import './internal2-BaDAe3C9.js';
|
|
7
6
|
import './index-DBqjc0Yf.js';
|
|
8
|
-
import '
|
|
9
|
-
import './
|
|
7
|
+
import 'node:module';
|
|
8
|
+
import './client-BBFG1zLB.js';
|
|
9
|
+
import './app-CYD2rz7t.js';
|
|
10
10
|
import './index-CVekYGHP.js';
|
|
11
11
|
import 'zod/v4/core';
|
|
12
12
|
import 'zod';
|
|
@@ -140,4 +140,4 @@ function _page($$renderer, $$props) {
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
export { _page as default };
|
|
143
|
-
//# sourceMappingURL=_page.svelte-
|
|
143
|
+
//# sourceMappingURL=_page.svelte-D9WnRc7S.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-D9WnRc7S.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/actions/_fn_/_page.svelte.js"],"sourcesContent":["import { a as store_get, b as attr, n as derived, o as store_mutate, r as ensure_array_like, s as unsubscribe_stores, x as escape_html } from \"../../../../chunks/server.js\";\nimport { r as superForm } from \"../../../../chunks/dist.js\";\nimport { n as Relation_select_field, t as resolveWidget } from \"../../../../chunks/widget-registry.js\";\n//#region src/routes/actions/[fn]/+page.svelte\nfunction _page($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tvar $$store_subs;\n\t\tlet { data, form: actionData } = $$props;\n\t\tconst relationByField = derived(() => new Map(data.relations.map((r) => [r.field, r])));\n\t\tconst { form, errors, enhance, submitting } = superForm(data.form, { dataType: \"json\" });\n\t\tconst relationForm = form;\n\t\tconst rpcOk = derived(() => actionData !== null && actionData !== void 0 && \"rpcOk\" in actionData);\n\t\tconst rpcError = derived(() => actionData && \"rpcError\" in actionData ? actionData.rpcError : null);\n\t\tconst resultText = derived(() => {\n\t\t\tif (actionData === null || actionData === void 0 || !(\"rpcResult\" in actionData)) return null;\n\t\t\treturn actionData.rpcResult === null ? null : JSON.stringify(actionData.rpcResult, null, 2);\n\t\t});\n\t\tlet $$settled = true;\n\t\tlet $$inner_renderer;\n\t\tfunction $$render_inner($$renderer) {\n\t\t\t$$renderer.push(`<h1 class=\"mb-1 text-2xl font-semibold\">${escape_html(data.action.label)}</h1> <p class=\"mb-2 text-sm text-muted-foreground\">${escape_html(data.action.qualifiedName)}</p> <div class=\"mb-6 flex flex-wrap gap-2 text-xs\"><span class=\"rounded-full border border-border px-2 py-0.5 text-muted-foreground\">${escape_html(data.action.security === \"definer\" ? \"security definer\" : \"security invoker\")}</span> <span class=\"rounded-full border border-border px-2 py-0.5 text-muted-foreground\">${escape_html(data.action.volatility)}</span></div> `);\n\t\t\tif (data.action.description) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<p class=\"mb-4 whitespace-pre-line text-sm\">${escape_html(data.action.description)}</p>`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--> `);\n\t\t\tif (data.action.aiDescription) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<div class=\"mb-4 rounded-md border border-border bg-muted/40 p-3 text-sm\"><div class=\"mb-1 font-medium\">AI notes</div> <p class=\"whitespace-pre-line text-muted-foreground\">${escape_html(data.action.aiDescription)}</p></div>`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--> `);\n\t\t\tif (data.action.policy.length > 0) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<div class=\"mb-4 rounded-md border border-border bg-muted/40 p-3 text-sm\"><div class=\"mb-1 font-medium\">Policy</div> <ul class=\"list-disc pl-5 text-muted-foreground\"><!--[-->`);\n\t\t\t\tconst each_array = ensure_array_like(data.action.policy);\n\t\t\t\tfor (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n\t\t\t\t\tlet rule = each_array[$$index];\n\t\t\t\t\t$$renderer.push(`<li>${escape_html(rule)}</li>`);\n\t\t\t\t}\n\t\t\t\t$$renderer.push(`<!--]--></ul></div>`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--> `);\n\t\t\tif (rpcError()) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<p class=\"mb-4 rounded-md border border-destructive/50 bg-destructive/10 p-3 text-sm text-destructive\">${escape_html(rpcError())}</p>`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--> `);\n\t\t\tif (rpcOk()) {\n\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t$$renderer.push(`<div class=\"mb-4 rounded-md border border-border bg-muted/40 p-3\"><div class=\"mb-1 text-sm font-medium\">Result</div> `);\n\t\t\t\tif (resultText() === null) {\n\t\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t\t$$renderer.push(`<p class=\"text-sm text-muted-foreground\">No result (the action returned void).</p>`);\n\t\t\t\t} else {\n\t\t\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\t\t\t$$renderer.push(`<pre class=\"overflow-x-auto text-sm\"><code>${escape_html(resultText())}</code></pre>`);\n\t\t\t\t}\n\t\t\t\t$$renderer.push(`<!--]--></div>`);\n\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<!--]--> <form method=\"POST\" class=\"space-y-4\"><!--[-->`);\n\t\t\tconst each_array_1 = ensure_array_like(data.action.args);\n\t\t\tfor (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {\n\t\t\t\tlet arg = each_array_1[$$index_1];\n\t\t\t\tconst relation = relationByField().get(arg.name);\n\t\t\t\t$$renderer.push(`<div>`);\n\t\t\t\tif (arg.widget === \"relation-select\" && relation) {\n\t\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t\t$$renderer.push(`<!---->`);\n\t\t\t\t\tRelation_select_field($$renderer, {\n\t\t\t\t\t\tname: arg.name,\n\t\t\t\t\t\tlabel: arg.label,\n\t\t\t\t\t\tresource: relation.resource,\n\t\t\t\t\t\tlabelField: relation.labelField,\n\t\t\t\t\t\tsearchFields: relation.searchFields,\n\t\t\t\t\t\tinitialOptions: data.initialOptions[arg.name] ?? [],\n\t\t\t\t\t\trequired: arg.required,\n\t\t\t\t\t\treadonly: false,\n\t\t\t\t\t\tget value() {\n\t\t\t\t\t\t\treturn store_get($$store_subs ??= {}, \"$relationForm\", relationForm)[arg.name];\n\t\t\t\t\t\t},\n\t\t\t\t\t\tset value($$value) {\n\t\t\t\t\t\t\tstore_mutate($$store_subs ??= {}, \"$relationForm\", relationForm, store_get($$store_subs ??= {}, \"$relationForm\", relationForm)[arg.name] = $$value);\n\t\t\t\t\t\t\t$$settled = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t$$renderer.push(`<!---->`);\n\t\t\t\t} else {\n\t\t\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\t\t\tconst Widget = resolveWidget(arg.widget);\n\t\t\t\t\tif (Widget) {\n\t\t\t\t\t\t$$renderer.push(\"<!--[-->\");\n\t\t\t\t\t\tWidget($$renderer, {\n\t\t\t\t\t\t\tname: arg.name,\n\t\t\t\t\t\t\tlabel: arg.label,\n\t\t\t\t\t\t\toptions: arg.enumValues,\n\t\t\t\t\t\t\trequired: arg.required,\n\t\t\t\t\t\t\treadonly: false,\n\t\t\t\t\t\t\tget value() {\n\t\t\t\t\t\t\t\treturn store_get($$store_subs ??= {}, \"$form\", form)[arg.name];\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tset value($$value) {\n\t\t\t\t\t\t\t\tstore_mutate($$store_subs ??= {}, \"$form\", form, store_get($$store_subs ??= {}, \"$form\", form)[arg.name] = $$value);\n\t\t\t\t\t\t\t\t$$settled = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\t$$renderer.push(\"<!--]-->\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$$renderer.push(\"<!--[!-->\");\n\t\t\t\t\t\t$$renderer.push(\"<!--]-->\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$$renderer.push(`<!--]--> `);\n\t\t\t\tif (store_get($$store_subs ??= {}, \"$errors\", errors)[arg.name]) {\n\t\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t\t$$renderer.push(`<p class=\"mt-1 text-sm text-destructive\">${escape_html(store_get($$store_subs ??= {}, \"$errors\", errors)[arg.name])}</p>`);\n\t\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t\t$$renderer.push(`<!--]--></div>`);\n\t\t\t}\n\t\t\t$$renderer.push(`<!--]--> <div class=\"flex gap-3\"><button type=\"submit\"${attr(\"disabled\", store_get($$store_subs ??= {}, \"$submitting\", submitting), true)} class=\"rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground disabled:opacity-50\">${escape_html(store_get($$store_subs ??= {}, \"$submitting\", submitting) ? \"Running…\" : \"Run action\")}</button> <a href=\"/\" class=\"rounded-md border border-border px-4 py-2 text-sm font-medium\">Cancel</a></div></form>`);\n\t\t}\n\t\tdo {\n\t\t\t$$settled = true;\n\t\t\t$$inner_renderer = $$renderer.copy();\n\t\t\t$$render_inner($$inner_renderer);\n\t\t} while (!$$settled);\n\t\t$$renderer.subsume($$inner_renderer);\n\t\tif ($$store_subs) unsubscribe_stores($$store_subs);\n\t});\n}\n//#endregion\nexport { _page as default };\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAGA;AACA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,KAAK;AACtC,EAAE,IAAI,YAAY;AAClB,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,OAAO;AAC1C,EAAE,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AACzF,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAW,UAAU,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AAC1F,EAAE,MAAM,YAAY,GAAG,IAAI;AAC3B,EAAE,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,MAAM,IAAI,OAAO,IAAI,UAAU,CAAC;AACpG,EAAE,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,UAAU,IAAI,UAAU,IAAI,UAAU,GAAG,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC;AACrG,EAAE,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM;AACnC,GAAG,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,MAAM,IAAI,EAAE,WAAW,IAAI,UAAU,CAAC,EAAE,OAAO,IAA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C,IAAI,CAAC,YAAY,CAAC;AACxC,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC;AACrC,GAAG;AACH,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,sDAAsD,EAAE,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,YAAY,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,CAAC,EAAE,IAAI,CAAC,CAAC,yGAAyG,EAAE,WAAW,CAAC,SAAS,CAAC,YAAY,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,CAAC,GAAG,UAAU,GAAG,YAAY,CAAC,CAAC,mHAAmH,CAAC,CAAC;AACje,EAAE;AACF,EAAE,GAAG;AACL,GAAG,SAAS,GAAG,IAAI;AACnB,GAAG,gBAAgB,GAAG,UAAU,CAAC,IAAI,EAAE;AACvC,GAAG,cAAc,CAAC,gBAAgB,CAAC;AACnC,EAAE,CAAC,QAAQ,CAAC,SAAS;AACrB,EAAE,UAAU,CAAC,OAAO,CAAC,gBAAgB,CAAC;AACtC,EAAE,IAAI,YAAY,EAAE,kBAAkB,CAAC,YAAY,CAAC;AACpD,CAAC,CAAC,CAAC;AACH;;;;"}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { o as ensure_array_like, d as attr, q as escape_html } from './
|
|
1
|
+
import { o as ensure_array_like, d as attr, q as escape_html } from './server-1sE9LKAu.js';
|
|
2
2
|
import 'clsx';
|
|
3
3
|
|
|
4
4
|
//#region src/routes/+page.svelte
|
|
5
5
|
function _page($$renderer, $$props) {
|
|
6
6
|
$$renderer.component(($$renderer) => {
|
|
7
7
|
let { data } = $$props;
|
|
8
|
-
$$renderer.push(`<h1 class="mb-6 text-2xl font-semibold">Dashboard</h1>
|
|
9
|
-
|
|
8
|
+
$$renderer.push(`<h1 class="mb-6 text-2xl font-semibold">Dashboard</h1> `);
|
|
9
|
+
if (data.mcpEnabled) {
|
|
10
|
+
$$renderer.push("<!--[0-->");
|
|
11
|
+
$$renderer.push(`<a href="/connect" class="mb-10 block rounded-md border border-border p-4 transition hover:bg-muted"><div class="font-medium">Connect an AI agent →</div> <div class="text-sm text-muted-foreground">Let Claude or Cursor read this schema's meaning over MCP (read-only). Copy
|
|
12
|
+
a config, paste it into your client — no setup beyond that.</div></a>`);
|
|
13
|
+
} else $$renderer.push("<!--[-1-->");
|
|
14
|
+
$$renderer.push(`<!--]--> <section class="mb-10"><h2 class="mb-3 text-lg font-semibold">Tables</h2> `);
|
|
10
15
|
if (data.dashboard.tables.length === 0) {
|
|
11
16
|
$$renderer.push("<!--[0-->");
|
|
12
17
|
$$renderer.push(`<p class="text-sm text-muted-foreground">No tables in the current schema.</p>`);
|
|
@@ -65,4 +70,4 @@ function _page($$renderer, $$props) {
|
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
export { _page as default };
|
|
68
|
-
//# sourceMappingURL=_page.svelte-
|
|
73
|
+
//# sourceMappingURL=_page.svelte-DeVGBJ28.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_page.svelte-DeVGBJ28.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_page.svelte.js"],"sourcesContent":["import { b as attr, r as ensure_array_like, x as escape_html } from \"../../chunks/server.js\";\n//#region src/routes/+page.svelte\nfunction _page($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tlet { data } = $$props;\n\t\t$$renderer.push(`<h1 class=\"mb-6 text-2xl font-semibold\">Dashboard</h1> `);\n\t\tif (data.mcpEnabled) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<a href=\"/connect\" class=\"mb-10 block rounded-md border border-border p-4 transition hover:bg-muted\"><div class=\"font-medium\">Connect an AI agent →</div> <div class=\"text-sm text-muted-foreground\">Let Claude or Cursor read this schema's meaning over MCP (read-only). Copy\n a config, paste it into your client — no setup beyond that.</div></a>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]--> <section class=\"mb-10\"><h2 class=\"mb-3 text-lg font-semibold\">Tables</h2> `);\n\t\tif (data.dashboard.tables.length === 0) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<p class=\"text-sm text-muted-foreground\">No tables in the current schema.</p>`);\n\t\t} else {\n\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<ul class=\"space-y-2\"><!--[-->`);\n\t\t\tconst each_array = ensure_array_like(data.dashboard.tables);\n\t\t\tfor (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n\t\t\t\tlet table = each_array[$$index];\n\t\t\t\t$$renderer.push(`<li><a${attr(\"href\", `/tables/${table.qualifiedName}`)} class=\"block rounded-md border border-border p-3 transition hover:bg-muted\"><div class=\"font-medium\">${escape_html(table.label)}</div> `);\n\t\t\t\tif (table.description) {\n\t\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t\t$$renderer.push(`<div class=\"text-sm text-muted-foreground\">${escape_html(table.description)}</div>`);\n\t\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t\t$$renderer.push(`<!--]--></a></li>`);\n\t\t\t}\n\t\t\t$$renderer.push(`<!--]--></ul>`);\n\t\t}\n\t\t$$renderer.push(`<!--]--></section> <section class=\"mb-10\"><h2 class=\"mb-3 text-lg font-semibold\">Views</h2> `);\n\t\tif (data.dashboard.views.length === 0) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<p class=\"text-sm text-muted-foreground\">No views in the current schema.</p>`);\n\t\t} else {\n\t\t\t$$renderer.push(\"<!--[-1-->\");\n\t\t\t$$renderer.push(`<ul class=\"space-y-2\"><!--[-->`);\n\t\t\tconst each_array_1 = ensure_array_like(data.dashboard.views);\n\t\t\tfor (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {\n\t\t\t\tlet view = each_array_1[$$index_1];\n\t\t\t\t$$renderer.push(`<li><a${attr(\"href\", `/views/${view.qualifiedName}`)} class=\"block rounded-md border border-border p-3 transition hover:bg-muted\"><div class=\"font-medium\">${escape_html(view.label)}</div> `);\n\t\t\t\tif (view.description) {\n\t\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t\t$$renderer.push(`<div class=\"text-sm text-muted-foreground\">${escape_html(view.description)}</div>`);\n\t\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t\t$$renderer.push(`<!--]--></a></li>`);\n\t\t\t}\n\t\t\t$$renderer.push(`<!--]--></ul>`);\n\t\t}\n\t\t$$renderer.push(`<!--]--></section> `);\n\t\tif (data.actionsEnabled && data.dashboard.functions.length > 0) {\n\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t$$renderer.push(`<section><h2 class=\"mb-3 text-lg font-semibold\">Actions</h2> <ul class=\"space-y-2\"><!--[-->`);\n\t\t\tconst each_array_2 = ensure_array_like(data.dashboard.functions);\n\t\t\tfor (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {\n\t\t\t\tlet fn = each_array_2[$$index_2];\n\t\t\t\t$$renderer.push(`<li><a${attr(\"href\", `/actions/${fn.qualifiedName}`)} class=\"block rounded-md border border-border p-3 transition hover:bg-muted\"><div class=\"font-medium\">${escape_html(fn.label)}</div> `);\n\t\t\t\tif (fn.description) {\n\t\t\t\t\t$$renderer.push(\"<!--[0-->\");\n\t\t\t\t\t$$renderer.push(`<div class=\"text-sm text-muted-foreground\">${escape_html(fn.description)}</div>`);\n\t\t\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t\t\t$$renderer.push(`<!--]--></a></li>`);\n\t\t\t}\n\t\t\t$$renderer.push(`<!--]--></ul></section>`);\n\t\t} else $$renderer.push(\"<!--[-1-->\");\n\t\t$$renderer.push(`<!--]-->`);\n\t});\n}\n//#endregion\nexport { _page as default };\n"],"names":[],"mappings":";;;AACA;AACA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,CAAC,U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I,IAAI,EAAE,CAAC,WAAW,EAAE;AACxB,KAAK,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC;AACjC,KAAK,UAAU,CAAC,IAAI,CAAC,CAAC,2CAA2C,EAAE,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AACvG,IAAI,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC;AACxC,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,iBAAiB,CAAC,CAAC;AACxC,GAAG;AACH,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,uBAAuB,CAAC,CAAC;AAC7C,EAAE,CAAC,MAAM,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC;AACtC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAC7B,CAAC,CAAC,CAAC;AACH;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@2.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_08bef01bde8c45f52f20ef8da13b7bd4/node_modules/@sveltejs/kit/src/runtime/server/app.js
|
|
2
2
|
/** @type {{ decoders: Record<string, (data: any) => any> }} */
|
|
3
3
|
var app;
|
|
4
4
|
/**
|
|
@@ -9,4 +9,4 @@ function set_app(value) {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export { app as a, set_app as s };
|
|
12
|
-
//# sourceMappingURL=app-
|
|
12
|
+
//# sourceMappingURL=app-CYD2rz7t.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-
|
|
1
|
+
{"version":3,"file":"app-CYD2rz7t.js","sources":["../../../.svelte-kit/adapter-node/chunks/app.js"],"sourcesContent":["//#region ../../node_modules/.pnpm/@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_08bef01bde8c45f52f20ef8da13b7bd4/node_modules/@sveltejs/kit/src/runtime/server/app.js\n/** @type {{ decoders: Record<string, (data: any) => any> }} */\nvar app;\n/**\n* @param {{ decoders: Record<string, (data: any) => any> }} value\n*/\nfunction set_app(value) {\n\tapp = value;\n}\n//#endregion\nexport { set_app as n, app as t };\n"],"names":[],"mappings":"AAAA;AACA;AACG,IAAC;AACJ;AACA;AACA;AACA,SAAS,OAAO,CAAC,KAAK,EAAE;AACxB,CAAC,GAAG,GAAG,KAAK;AACZ;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { U as noop } from './
|
|
1
|
+
import { s as index_server_exports } from './internal2-BaDAe3C9.js';
|
|
2
|
+
import { U as noop } from './server-1sE9LKAu.js';
|
|
3
3
|
|
|
4
4
|
var is_legacy = noop.toString().includes("$$") || /function \w+\(\) \{\}/.test(noop.toString());
|
|
5
5
|
var placeholder_url = "a:";
|
|
@@ -16,7 +16,8 @@ if (is_legacy) {
|
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
//#endregion
|
|
19
|
-
//#region ../../node_modules/.pnpm/@sveltejs+kit@2.
|
|
19
|
+
//#region ../../node_modules/.pnpm/@sveltejs+kit@2.70.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_08bef01bde8c45f52f20ef8da13b7bd4/node_modules/@sveltejs/kit/src/runtime/client/client.js
|
|
20
|
+
/** @import { RemoteFunctionDataNode, ServerNodesResponse, ServerRedirectNode } from 'types' */
|
|
20
21
|
/** @import { CacheEntry } from './remote-functions/cache.svelte.js' */
|
|
21
22
|
/** @import { Query } from './remote-functions/query/instance.svelte.js' */
|
|
22
23
|
/** @import { LiveQuery } from './remote-functions/query-live/instance.svelte.js' */
|
|
@@ -66,4 +67,4 @@ async function applyAction(result) {
|
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
export { afterNavigate as a, applyAction as b, invalidateAll as i };
|
|
69
|
-
//# sourceMappingURL=client-
|
|
70
|
+
//# sourceMappingURL=client-BBFG1zLB.js.map
|