@kozou/svelte-ui 1.8.1 → 1.9.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.
Files changed (94) hide show
  1. package/build/client/_app/immutable/chunks/{C-GI63FQ.js → BTvT2hJZ.js} +1 -1
  2. package/build/client/_app/immutable/chunks/BTvT2hJZ.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/BTvT2hJZ.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/{DJJ7sWz4.js → BZk9awWK.js} +1 -1
  5. package/build/client/_app/immutable/chunks/BZk9awWK.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/BZk9awWK.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/{DG1n8Qtt.js → DBJh8-5e.js} +1 -1
  8. package/build/client/_app/immutable/chunks/DBJh8-5e.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/DBJh8-5e.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/{B-1XEc-6.js → DZGkWpOy.js} +2 -2
  11. package/build/client/_app/immutable/chunks/DZGkWpOy.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/DZGkWpOy.js.gz +0 -0
  13. package/build/client/_app/immutable/entry/{app.D2ZPYrlx.js → app.5P3IlGqQ.js} +2 -2
  14. package/build/client/_app/immutable/entry/app.5P3IlGqQ.js.br +0 -0
  15. package/build/client/_app/immutable/entry/app.5P3IlGqQ.js.gz +0 -0
  16. package/build/client/_app/immutable/entry/start.DpLxg-uF.js +1 -0
  17. package/build/client/_app/immutable/entry/start.DpLxg-uF.js.br +0 -0
  18. package/build/client/_app/immutable/entry/start.DpLxg-uF.js.gz +0 -0
  19. package/build/client/_app/immutable/nodes/{1.BOcpgjhs.js → 1.BJ7Mx76S.js} +1 -1
  20. package/build/client/_app/immutable/nodes/1.BJ7Mx76S.js.br +0 -0
  21. package/build/client/_app/immutable/nodes/1.BJ7Mx76S.js.gz +0 -0
  22. package/build/client/_app/immutable/nodes/{3.Bfb2pVnC.js → 3.DSbTe_mO.js} +1 -1
  23. package/build/client/_app/immutable/nodes/3.DSbTe_mO.js.br +0 -0
  24. package/build/client/_app/immutable/nodes/3.DSbTe_mO.js.gz +0 -0
  25. package/build/client/_app/immutable/nodes/{5.CtLCXctU.js → 5.u-bVCB_Y.js} +1 -1
  26. package/build/client/_app/immutable/nodes/5.u-bVCB_Y.js.br +0 -0
  27. package/build/client/_app/immutable/nodes/5.u-bVCB_Y.js.gz +0 -0
  28. package/build/client/_app/immutable/nodes/{6.BWtK3JSj.js → 6.CuNooc7E.js} +1 -1
  29. package/build/client/_app/immutable/nodes/6.CuNooc7E.js.br +0 -0
  30. package/build/client/_app/immutable/nodes/6.CuNooc7E.js.gz +0 -0
  31. package/build/client/_app/immutable/nodes/{7.Bf0RAYe4.js → 7.BNuv-TTZ.js} +1 -1
  32. package/build/client/_app/immutable/nodes/7.BNuv-TTZ.js.br +0 -0
  33. package/build/client/_app/immutable/nodes/7.BNuv-TTZ.js.gz +0 -0
  34. package/build/client/_app/version.json +1 -1
  35. package/build/client/_app/version.json.br +0 -0
  36. package/build/client/_app/version.json.gz +0 -0
  37. package/build/server/chunks/{1-Da8RNRGa.js → 1-sBhukYle.js} +3 -3
  38. package/build/server/chunks/{1-Da8RNRGa.js.map → 1-sBhukYle.js.map} +1 -1
  39. package/build/server/chunks/{3-DdQINTRw.js → 3-j42FDPLO.js} +6 -6
  40. package/build/server/chunks/{3-DdQINTRw.js.map → 3-j42FDPLO.js.map} +1 -1
  41. package/build/server/chunks/{5-BlV30r34.js → 5-BoDqBupn.js} +3 -3
  42. package/build/server/chunks/{5-BlV30r34.js.map → 5-BoDqBupn.js.map} +1 -1
  43. package/build/server/chunks/{6-DWXf0gMH.js → 6-B9O8HmQL.js} +6 -6
  44. package/build/server/chunks/{6-DWXf0gMH.js.map → 6-B9O8HmQL.js.map} +1 -1
  45. package/build/server/chunks/{7-DEcsnq5T.js → 7-CC5cFRLI.js} +6 -6
  46. package/build/server/chunks/{7-DEcsnq5T.js.map → 7-CC5cFRLI.js.map} +1 -1
  47. package/build/server/chunks/{_page.svelte-BhutFRWs.js → _page.svelte-Bdgx6yFd.js} +3 -3
  48. package/build/server/chunks/{_page.svelte-BhutFRWs.js.map → _page.svelte-Bdgx6yFd.js.map} +1 -1
  49. package/build/server/chunks/{_page.svelte-DU-6iXu-.js → _page.svelte-CKUYgmkB.js} +5 -5
  50. package/build/server/chunks/{_page.svelte-DU-6iXu-.js.map → _page.svelte-CKUYgmkB.js.map} +1 -1
  51. package/build/server/chunks/{_page.svelte-D5kbEX4I.js → _page.svelte-CUD8rWua.js} +4 -4
  52. package/build/server/chunks/{_page.svelte-D5kbEX4I.js.map → _page.svelte-CUD8rWua.js.map} +1 -1
  53. package/build/server/chunks/{_page.svelte-OU-ibMSx.js → _page.svelte-DCj38zDu.js} +5 -5
  54. package/build/server/chunks/{_page.svelte-OU-ibMSx.js.map → _page.svelte-DCj38zDu.js.map} +1 -1
  55. package/build/server/chunks/{client-ByaEo6fP.js → client-S2G4ymSQ.js} +2 -2
  56. package/build/server/chunks/{client-ByaEo6fP.js.map → client-S2G4ymSQ.js.map} +1 -1
  57. package/build/server/chunks/{composite-form-CxD73llv.js → composite-form-CSPGUOcu.js} +3 -3
  58. package/build/server/chunks/{composite-form-CxD73llv.js.map → composite-form-CSPGUOcu.js.map} +1 -1
  59. package/build/server/chunks/{error.svelte-DOQL2puw.js → error.svelte-h71s3LwW.js} +3 -3
  60. package/build/server/chunks/{error.svelte-DOQL2puw.js.map → error.svelte-h71s3LwW.js.map} +1 -1
  61. package/build/server/chunks/{hooks.server-B__8cDUd.js → hooks.server-CdYxszMM.js} +35 -21
  62. package/build/server/chunks/hooks.server-CdYxszMM.js.map +1 -0
  63. package/build/server/chunks/{internal-BxXGHZrr.js → internal-n_iFrIjj.js} +3 -3
  64. package/build/server/chunks/{internal-BxXGHZrr.js.map → internal-n_iFrIjj.js.map} +1 -1
  65. package/build/server/chunks/{relation-select-composite-field-D3Q-795k.js → relation-select-composite-field-B3fIBbzC.js} +2 -2
  66. package/build/server/chunks/{relation-select-composite-field-D3Q-795k.js.map → relation-select-composite-field-B3fIBbzC.js.map} +1 -1
  67. package/build/server/index.js +1 -1
  68. package/build/server/manifest.js +6 -6
  69. package/build/server/manifest.js.map +1 -1
  70. package/package.json +5 -5
  71. package/build/client/_app/immutable/chunks/B-1XEc-6.js.br +0 -0
  72. package/build/client/_app/immutable/chunks/B-1XEc-6.js.gz +0 -0
  73. package/build/client/_app/immutable/chunks/C-GI63FQ.js.br +0 -0
  74. package/build/client/_app/immutable/chunks/C-GI63FQ.js.gz +0 -0
  75. package/build/client/_app/immutable/chunks/DG1n8Qtt.js.br +0 -0
  76. package/build/client/_app/immutable/chunks/DG1n8Qtt.js.gz +0 -0
  77. package/build/client/_app/immutable/chunks/DJJ7sWz4.js.br +0 -0
  78. package/build/client/_app/immutable/chunks/DJJ7sWz4.js.gz +0 -0
  79. package/build/client/_app/immutable/entry/app.D2ZPYrlx.js.br +0 -0
  80. package/build/client/_app/immutable/entry/app.D2ZPYrlx.js.gz +0 -0
  81. package/build/client/_app/immutable/entry/start.C0C4Swlf.js +0 -1
  82. package/build/client/_app/immutable/entry/start.C0C4Swlf.js.br +0 -0
  83. package/build/client/_app/immutable/entry/start.C0C4Swlf.js.gz +0 -0
  84. package/build/client/_app/immutable/nodes/1.BOcpgjhs.js.br +0 -0
  85. package/build/client/_app/immutable/nodes/1.BOcpgjhs.js.gz +0 -0
  86. package/build/client/_app/immutable/nodes/3.Bfb2pVnC.js.br +0 -0
  87. package/build/client/_app/immutable/nodes/3.Bfb2pVnC.js.gz +0 -0
  88. package/build/client/_app/immutable/nodes/5.CtLCXctU.js.br +0 -0
  89. package/build/client/_app/immutable/nodes/5.CtLCXctU.js.gz +0 -0
  90. package/build/client/_app/immutable/nodes/6.BWtK3JSj.js.br +0 -0
  91. package/build/client/_app/immutable/nodes/6.BWtK3JSj.js.gz +0 -0
  92. package/build/client/_app/immutable/nodes/7.Bf0RAYe4.js.br +0 -0
  93. package/build/client/_app/immutable/nodes/7.Bf0RAYe4.js.gz +0 -0
  94. package/build/server/chunks/hooks.server-B__8cDUd.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import 'node:module';
2
2
  import { q as escape_html, x as getContext } from './dev-aF1HGl8f.js';
3
- import './client-ByaEo6fP.js';
3
+ import './client-S2G4ymSQ.js';
4
4
  import 'clsx';
5
- import './internal-BxXGHZrr.js';
5
+ import './internal-n_iFrIjj.js';
6
6
  import './index-DBqjc0Yf.js';
7
7
 
8
8
  //#endregion
@@ -65,4 +65,4 @@ function Error$1($$renderer, $$props) {
65
65
  }
66
66
 
67
67
  export { Error$1 as default };
68
- //# sourceMappingURL=error.svelte-DOQL2puw.js.map
68
+ //# sourceMappingURL=error.svelte-h71s3LwW.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error.svelte-DOQL2puw.js","sources":["../../../.svelte-kit/adapter-node/entries/fallbacks/error.svelte.js"],"sourcesContent":["import \"../../chunks/environment.js\";\nimport { H as escape_html, tt as getContext } from \"../../chunks/dev.js\";\nimport { c as navigating$1, s as stores } from \"../../chunks/client.js\";\nObject.defineProperty({\n\tget from() {\n\t\treturn navigating$1.current ? navigating$1.current.from : null;\n\t},\n\tget to() {\n\t\treturn navigating$1.current ? navigating$1.current.to : null;\n\t},\n\tget type() {\n\t\treturn navigating$1.current ? navigating$1.current.type : null;\n\t},\n\tget willUnload() {\n\t\treturn navigating$1.current ? navigating$1.current.willUnload : null;\n\t},\n\tget delta() {\n\t\treturn navigating$1.current ? navigating$1.current.delta : null;\n\t},\n\tget complete() {\n\t\treturn navigating$1.current ? navigating$1.current.complete : null;\n\t}\n}, \"current\", { get() {\n\tthrow new Error(\"Replace navigating.current.<prop> with navigating.<prop>\");\n} });\nstores.updated.check;\n//#endregion\n//#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_b6cf287e4b8449a2ec52045a8a580061/node_modules/@sveltejs/kit/src/runtime/app/state/server.js\nfunction context() {\n\treturn getContext(\"__request__\");\n}\n//#endregion\n//#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_b6cf287e4b8449a2ec52045a8a580061/node_modules/@sveltejs/kit/src/runtime/app/state/index.js\n/**\n* A read-only reactive object with information about the current page, serving several use cases:\n* - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load))\n* - retrieving the current value of the `form` prop anywhere in your component tree (also see [form actions](https://svelte.dev/docs/kit/form-actions))\n* - retrieving the page state that was set through `goto`, `pushState` or `replaceState` (also see [goto](https://svelte.dev/docs/kit/$app-navigation#goto) and [shallow routing](https://svelte.dev/docs/kit/shallow-routing))\n* - retrieving metadata such as the URL you're on, the current route and its parameters, and whether or not there was an error\n*\n* ```svelte\n* <!--- file: +layout.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* <\\/script>\n*\n* <p>Currently at {page.url.pathname}</p>\n*\n* {#if page.error}\n* \t<span class=\"red\">Problem detected</span>\n* {:else}\n* \t<span class=\"small\">All systems operational</span>\n* {/if}\n* ```\n*\n* Changes to `page` are available exclusively with runes. (The legacy reactivity syntax will not reflect any changes)\n*\n* ```svelte\n* <!--- file: +page.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* \tconst id = $derived(page.params.id); // This will correctly update id for usage on this page\n* \t$: badId = page.params.id; // Do not use; will never update after initial load\n* <\\/script>\n* ```\n*\n* On the server, values can only be read during rendering (in other words _not_ in e.g. `load` functions). In the browser, the values can be read at any time.\n*\n* @type {import('@sveltejs/kit').Page}\n*/\nvar page = {\n\tget data() {\n\t\treturn context().page.data;\n\t},\n\tget error() {\n\t\treturn context().page.error;\n\t},\n\tget form() {\n\t\treturn context().page.form;\n\t},\n\tget params() {\n\t\treturn context().page.params;\n\t},\n\tget route() {\n\t\treturn context().page.route;\n\t},\n\tget state() {\n\t\treturn context().page.state;\n\t},\n\tget status() {\n\t\treturn context().page.status;\n\t},\n\tget url() {\n\t\treturn context().page.url;\n\t}\n};\n//#endregion\n//#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_b6cf287e4b8449a2ec52045a8a580061/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte\nfunction Error$1($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\t$$renderer.push(`<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`);\n\t});\n}\n//#endregion\nexport { Error$1 as default };\n"],"names":[],"mappings":";;;;;;;AA0BA;AACA;AACA,SAAS,OAAO,GAAG;AACnB,CAAC,OAAO,UAAU,CAAC,aAAa,CAAC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,GAAG;AACX,CAGC,IAAI,KAAK,GAAG;AACb,EAAE,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,KAAK;AAC7B,CAAC,CAAC;AACF,CAYC,IAAI,MAAM,GAAG;AACd,EAAE,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,MAAM;AAC9B,CAAC,CAID,CAAC;AACD;AACA;AACA,SAAS,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE;AACtC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,KAAK;AACtC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AACpG,CAAC,CAAC,CAAC;AACH;;;;"}
1
+ {"version":3,"file":"error.svelte-h71s3LwW.js","sources":["../../../.svelte-kit/adapter-node/entries/fallbacks/error.svelte.js"],"sourcesContent":["import \"../../chunks/environment.js\";\nimport { H as escape_html, tt as getContext } from \"../../chunks/dev.js\";\nimport { c as navigating$1, s as stores } from \"../../chunks/client.js\";\nObject.defineProperty({\n\tget from() {\n\t\treturn navigating$1.current ? navigating$1.current.from : null;\n\t},\n\tget to() {\n\t\treturn navigating$1.current ? navigating$1.current.to : null;\n\t},\n\tget type() {\n\t\treturn navigating$1.current ? navigating$1.current.type : null;\n\t},\n\tget willUnload() {\n\t\treturn navigating$1.current ? navigating$1.current.willUnload : null;\n\t},\n\tget delta() {\n\t\treturn navigating$1.current ? navigating$1.current.delta : null;\n\t},\n\tget complete() {\n\t\treturn navigating$1.current ? navigating$1.current.complete : null;\n\t}\n}, \"current\", { get() {\n\tthrow new Error(\"Replace navigating.current.<prop> with navigating.<prop>\");\n} });\nstores.updated.check;\n//#endregion\n//#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_b6cf287e4b8449a2ec52045a8a580061/node_modules/@sveltejs/kit/src/runtime/app/state/server.js\nfunction context() {\n\treturn getContext(\"__request__\");\n}\n//#endregion\n//#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_b6cf287e4b8449a2ec52045a8a580061/node_modules/@sveltejs/kit/src/runtime/app/state/index.js\n/**\n* A read-only reactive object with information about the current page, serving several use cases:\n* - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load))\n* - retrieving the current value of the `form` prop anywhere in your component tree (also see [form actions](https://svelte.dev/docs/kit/form-actions))\n* - retrieving the page state that was set through `goto`, `pushState` or `replaceState` (also see [goto](https://svelte.dev/docs/kit/$app-navigation#goto) and [shallow routing](https://svelte.dev/docs/kit/shallow-routing))\n* - retrieving metadata such as the URL you're on, the current route and its parameters, and whether or not there was an error\n*\n* ```svelte\n* <!--- file: +layout.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* <\\/script>\n*\n* <p>Currently at {page.url.pathname}</p>\n*\n* {#if page.error}\n* \t<span class=\"red\">Problem detected</span>\n* {:else}\n* \t<span class=\"small\">All systems operational</span>\n* {/if}\n* ```\n*\n* Changes to `page` are available exclusively with runes. (The legacy reactivity syntax will not reflect any changes)\n*\n* ```svelte\n* <!--- file: +page.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* \tconst id = $derived(page.params.id); // This will correctly update id for usage on this page\n* \t$: badId = page.params.id; // Do not use; will never update after initial load\n* <\\/script>\n* ```\n*\n* On the server, values can only be read during rendering (in other words _not_ in e.g. `load` functions). In the browser, the values can be read at any time.\n*\n* @type {import('@sveltejs/kit').Page}\n*/\nvar page = {\n\tget data() {\n\t\treturn context().page.data;\n\t},\n\tget error() {\n\t\treturn context().page.error;\n\t},\n\tget form() {\n\t\treturn context().page.form;\n\t},\n\tget params() {\n\t\treturn context().page.params;\n\t},\n\tget route() {\n\t\treturn context().page.route;\n\t},\n\tget state() {\n\t\treturn context().page.state;\n\t},\n\tget status() {\n\t\treturn context().page.status;\n\t},\n\tget url() {\n\t\treturn context().page.url;\n\t}\n};\n//#endregion\n//#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_b6cf287e4b8449a2ec52045a8a580061/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte\nfunction Error$1($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\t$$renderer.push(`<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`);\n\t});\n}\n//#endregion\nexport { Error$1 as default };\n"],"names":[],"mappings":";;;;;;;AA0BA;AACA;AACA,SAAS,OAAO,GAAG;AACnB,CAAC,OAAO,UAAU,CAAC,aAAa,CAAC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,GAAG;AACX,CAGC,IAAI,KAAK,GAAG;AACb,EAAE,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,KAAK;AAC7B,CAAC,CAAC;AACF,CAYC,IAAI,MAAM,GAAG;AACd,EAAE,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,MAAM;AAC9B,CAAC,CAID,CAAC;AACD;AACA;AACA,SAAS,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE;AACtC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,KAAK;AACtC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AACpG,CAAC,CAAC,CAAC;AACH;;;;"}
@@ -1,4 +1,4 @@
1
- import { _ as __commonJSMin, b as __require } from './internal-BxXGHZrr.js';
1
+ import { _ as __commonJSMin, b as __require } from './internal-n_iFrIjj.js';
2
2
  import { e as encodeResourceId } from './resource-id-CFSW_3aR.js';
3
3
  import { z } from 'zod';
4
4
  import require$$0$3 from 'events';
@@ -6919,10 +6919,12 @@ function inferArgWidget(arg, enumValues) {
6919
6919
  commentBody: ""
6920
6920
  });
6921
6921
  }
6922
- /** ENUM members for an argument's type, matched by type name (preferring the
6923
- * function's own schema when an enum name is reused across schemas). */
6924
- function findEnumValues(enums, udtName, fnSchema) {
6925
- return (enums.find((e) => e.name === udtName && e.schema === fnSchema) ?? enums.find((e) => e.name === udtName))?.values;
6922
+ /** ENUM members for a type, matched by type name (`udtName`), preferring the
6923
+ * given schema when an enum name is reused across schemas. Shared by the
6924
+ * function-argument path and the table/view column path so a native ENUM
6925
+ * resolves to its members the same way everywhere. */
6926
+ function findEnumValues(enums, udtName, schema) {
6927
+ return (enums.find((e) => e.name === udtName && e.schema === schema) ?? enums.find((e) => e.name === udtName))?.values;
6926
6928
  }
6927
6929
  function buildArg(arg, parsed, fnSchema, enums) {
6928
6930
  const hint = parsed.args.find((h) => h.name === arg.name);
@@ -7284,7 +7286,7 @@ function buildRelations(table, issues) {
7284
7286
  return relations;
7285
7287
  }
7286
7288
  function buildTableContext(input) {
7287
- const { table, hints, issues, knownTables } = input;
7289
+ const { table, hints, issues, knownTables, enums } = input;
7288
7290
  const parsed = parseCommentTags(table.comment);
7289
7291
  const enumMap = extractCheckEnums(table.checks);
7290
7292
  const fkColumns = /* @__PURE__ */ new Set();
@@ -7298,7 +7300,7 @@ function buildTableContext(input) {
7298
7300
  primaryKey: table.primaryKey,
7299
7301
  foreignKeyColumns: fkColumns,
7300
7302
  singleColumnForeignKeyColumns: singleFkColumns,
7301
- enumValues: enumMap.get(c.name) ?? null,
7303
+ enumValues: enumMap.get(c.name) ?? findEnumValues(enums, c.udtName, table.schema) ?? null,
7302
7304
  hints: hints?.columns?.[c.name]
7303
7305
  }));
7304
7306
  const declaredColumnNames = new Set(table.columns.map((c) => c.name));
@@ -7347,7 +7349,7 @@ function buildTableContext(input) {
7347
7349
  };
7348
7350
  }
7349
7351
  function buildViewContext(input) {
7350
- const { view, hints, issues } = input;
7352
+ const { view, hints, issues, enums } = input;
7351
7353
  const parsed = parseCommentTags(view.comment);
7352
7354
  const declaredColumnNames = new Set(view.columns.map((c) => c.name));
7353
7355
  if (hints?.columns) {
@@ -7359,10 +7361,11 @@ function buildViewContext(input) {
7359
7361
  const columns = view.columns.map((c) => {
7360
7362
  const colParsed = parseCommentTags(c.comment);
7361
7363
  const colHints = hints?.columns?.[c.name];
7364
+ const enumValues = findEnumValues(enums, c.udtName, view.schema) ?? null;
7362
7365
  const widget = colHints?.widget ?? colParsed.widget ?? inferWidget({
7363
7366
  column: c,
7364
7367
  isForeignKey: false,
7365
- enumValues: null,
7368
+ enumValues,
7366
7369
  commentBody: colParsed.body
7367
7370
  });
7368
7371
  return {
@@ -7378,7 +7381,7 @@ function buildViewContext(input) {
7378
7381
  aiDescription: joinAi(colParsed.ai),
7379
7382
  policy: colParsed.policy,
7380
7383
  widget,
7381
- enumValues: null,
7384
+ enumValues,
7382
7385
  readonly: colHints?.readonly ?? true
7383
7386
  };
7384
7387
  });
@@ -7456,12 +7459,14 @@ async function buildSchemaContext(opts) {
7456
7459
  table: t,
7457
7460
  hints: uiHints?.tables?.[t.name],
7458
7461
  issues,
7459
- knownTables
7462
+ knownTables,
7463
+ enums: raw.enums
7460
7464
  }));
7461
7465
  const views = visibleRawViews.map((v) => buildViewContext({
7462
7466
  view: v,
7463
7467
  hints: uiHints?.views?.[v.name],
7464
- issues
7468
+ issues,
7469
+ enums: raw.enums
7465
7470
  }));
7466
7471
  const enums = raw.enums.map((e) => ({
7467
7472
  schema: e.schema,
@@ -14143,7 +14148,8 @@ async function fetchTables(client, schemas) {
14143
14148
  FROM pg_class c
14144
14149
  JOIN pg_namespace n ON n.oid = c.relnamespace
14145
14150
  LEFT JOIN pg_description d ON d.objoid = c.oid AND d.objsubid = 0
14146
- WHERE c.relkind = 'r'
14151
+ WHERE c.relkind IN ('r', 'p')
14152
+ AND NOT c.relispartition
14147
14153
  AND n.nspname = ANY($1)
14148
14154
  ORDER BY n.nspname, c.relname`, [schemas], "fetchTables (table list)");
14149
14155
  if (tableRows.length === 0) return [];
@@ -14174,7 +14180,8 @@ async function fetchTables(client, schemas) {
14174
14180
  JOIN pg_type t ON t.oid = a.atttypid
14175
14181
  LEFT JOIN pg_attrdef ad ON ad.adrelid = a.attrelid AND ad.adnum = a.attnum
14176
14182
  LEFT JOIN pg_description d ON d.objoid = a.attrelid AND d.objsubid = a.attnum
14177
- WHERE c.relkind = 'r'
14183
+ WHERE c.relkind IN ('r', 'p')
14184
+ AND NOT c.relispartition
14178
14185
  AND n.nspname = ANY($1)
14179
14186
  AND a.attnum > 0
14180
14187
  AND NOT a.attisdropped
@@ -14206,7 +14213,8 @@ async function fetchTables(client, schemas) {
14206
14213
  JOIN pg_class ic ON ic.oid = ix.indexrelid
14207
14214
  JOIN pg_class t ON t.oid = ix.indrelid
14208
14215
  JOIN pg_namespace n ON n.oid = t.relnamespace
14209
- WHERE t.relkind = 'r'
14216
+ WHERE t.relkind IN ('r', 'p')
14217
+ AND NOT t.relispartition
14210
14218
  AND n.nspname = ANY($1)
14211
14219
  AND NOT ix.indisprimary
14212
14220
  ORDER BY n.nspname, t.relname, ic.relname`, [schemas], "fetchTables (indexes)");
@@ -14368,7 +14376,7 @@ async function fetchViews(client, schemas) {
14368
14376
  FROM pg_class c
14369
14377
  JOIN pg_namespace n ON n.oid = c.relnamespace
14370
14378
  LEFT JOIN pg_description d ON d.objoid = c.oid AND d.objsubid = 0
14371
- WHERE c.relkind = 'v'
14379
+ WHERE c.relkind IN ('v', 'm')
14372
14380
  AND n.nspname = ANY($1)
14373
14381
  ORDER BY n.nspname, c.relname`, [schemas], "fetchViews (view list)");
14374
14382
  if (viewRows.length === 0) return [];
@@ -14398,7 +14406,7 @@ async function fetchViews(client, schemas) {
14398
14406
  JOIN pg_type t ON t.oid = a.atttypid
14399
14407
  LEFT JOIN pg_attrdef ad ON ad.adrelid = a.attrelid AND ad.adnum = a.attnum
14400
14408
  LEFT JOIN pg_description d ON d.objoid = a.attrelid AND d.objsubid = a.attnum
14401
- WHERE c.relkind = 'v'
14409
+ WHERE c.relkind IN ('v', 'm')
14402
14410
  AND n.nspname = ANY($1)
14403
14411
  AND a.attnum > 0
14404
14412
  AND NOT a.attisdropped
@@ -14415,7 +14423,7 @@ async function fetchViews(client, schemas) {
14415
14423
  JOIN pg_class dep_cls ON dep_cls.oid = d.refobjid AND d.refclassid = 'pg_class'::regclass
14416
14424
  JOIN pg_namespace dep_ns ON dep_ns.oid = dep_cls.relnamespace
14417
14425
  WHERE view_ns.nspname = ANY($1)
14418
- AND view_cls.relkind = 'v'
14426
+ AND view_cls.relkind IN ('v', 'm')
14419
14427
  AND dep_cls.relkind IN ('r','v','m')
14420
14428
  AND dep_cls.oid <> view_cls.oid
14421
14429
  ORDER BY view_ns.nspname, view_cls.relname, dep_ns.nspname, dep_cls.relname`, [schemas], "fetchViews (dependencies)");
@@ -14792,7 +14800,10 @@ async function fetchAndAttachPrivileges(client, schemas, role, tables, views) {
14792
14800
  has_table_privilege($2, c.oid, 'DELETE') AS del
14793
14801
  FROM pg_class c
14794
14802
  JOIN pg_namespace n ON n.oid = c.relnamespace
14795
- WHERE c.relkind IN ('r', 'v', 'm')
14803
+ -- Cover the same relations fetchTables / fetchViews surface: ordinary
14804
+ -- tables + partitioned parents (not leaf partitions) + views + matviews.
14805
+ WHERE c.relkind IN ('r', 'p', 'v', 'm')
14806
+ AND NOT c.relispartition
14796
14807
  AND n.nspname = ANY($1)`, [schemas, role], "fetchPrivileges (relations)");
14797
14808
  const columnRows = await runQuery(client, `SELECT
14798
14809
  n.nspname AS schema,
@@ -14804,7 +14815,10 @@ async function fetchAndAttachPrivileges(client, schemas, role, tables, views) {
14804
14815
  FROM pg_attribute a
14805
14816
  JOIN pg_class c ON c.oid = a.attrelid
14806
14817
  JOIN pg_namespace n ON n.oid = c.relnamespace
14807
- WHERE c.relkind = 'r'
14818
+ -- Tables and partitioned parents (per-column write grants apply to both);
14819
+ -- leaf partitions are excluded, matching the relation set above.
14820
+ WHERE c.relkind IN ('r', 'p')
14821
+ AND NOT c.relispartition
14808
14822
  AND n.nspname = ANY($1)
14809
14823
  AND a.attnum > 0
14810
14824
  AND NOT a.attisdropped`, [schemas, role], "fetchPrivileges (columns)");
@@ -14986,4 +15000,4 @@ var handle = async ({ event, resolve }) => {
14986
15000
  };
14987
15001
 
14988
15002
  export { handle };
14989
- //# sourceMappingURL=hooks.server-B__8cDUd.js.map
15003
+ //# sourceMappingURL=hooks.server-CdYxszMM.js.map