@kozou/svelte-ui 1.8.0 → 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 (123) hide show
  1. package/build/client/_app/immutable/chunks/{BVSHjVK6.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/{yIxoVI_-.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/{CzVb7msC.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/{BC5KLBLb.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.DHKWTljt.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.BkcGPtdF.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.B4UoMGo7.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.md6hU4xw.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.BvmJdH03.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.BO_sQESH.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/{0-18QIr3Yc.js → 0-CW6CLhlp.js} +2 -2
  38. package/build/server/chunks/{0-18QIr3Yc.js.map → 0-CW6CLhlp.js.map} +1 -1
  39. package/build/server/chunks/{1-co7IU-ci.js → 1-sBhukYle.js} +3 -3
  40. package/build/server/chunks/{1-co7IU-ci.js.map → 1-sBhukYle.js.map} +1 -1
  41. package/build/server/chunks/{2-Bj2meHET.js → 2-BxKRDuEr.js} +2 -2
  42. package/build/server/chunks/{2-Bj2meHET.js.map → 2-BxKRDuEr.js.map} +1 -1
  43. package/build/server/chunks/{3-D86eJKW8.js → 3-j42FDPLO.js} +8 -8
  44. package/build/server/chunks/{3-D86eJKW8.js.map → 3-j42FDPLO.js.map} +1 -1
  45. package/build/server/chunks/{4-DAc4CAmL.js → 4-DoVhcDaV.js} +2 -2
  46. package/build/server/chunks/{4-DAc4CAmL.js.map → 4-DoVhcDaV.js.map} +1 -1
  47. package/build/server/chunks/{5-Bc0-5LMg.js → 5-BoDqBupn.js} +3 -3
  48. package/build/server/chunks/{5-Bc0-5LMg.js.map → 5-BoDqBupn.js.map} +1 -1
  49. package/build/server/chunks/{6-DaGLS_mw.js → 6-B9O8HmQL.js} +8 -8
  50. package/build/server/chunks/{6-DaGLS_mw.js.map → 6-B9O8HmQL.js.map} +1 -1
  51. package/build/server/chunks/{7-AttnsF7z.js → 7-CC5cFRLI.js} +8 -8
  52. package/build/server/chunks/{7-AttnsF7z.js.map → 7-CC5cFRLI.js.map} +1 -1
  53. package/build/server/chunks/{8-DJOb0bRA.js → 8-C5GP7CcL.js} +2 -2
  54. package/build/server/chunks/{8-DJOb0bRA.js.map → 8-C5GP7CcL.js.map} +1 -1
  55. package/build/server/chunks/{ListTable-D3wi3RvS.js → ListTable-DzHBYe8D.js} +2 -2
  56. package/build/server/chunks/{ListTable-D3wi3RvS.js.map → ListTable-DzHBYe8D.js.map} +1 -1
  57. package/build/server/chunks/{_layout.svelte-ClzaQTuQ.js → _layout.svelte-D_bhOcbf.js} +2 -2
  58. package/build/server/chunks/{_layout.svelte-ClzaQTuQ.js.map → _layout.svelte-D_bhOcbf.js.map} +1 -1
  59. package/build/server/chunks/{_page.svelte-Cup_HkLy.js → _page.svelte-58_PZxyj.js} +2 -2
  60. package/build/server/chunks/{_page.svelte-Cup_HkLy.js.map → _page.svelte-58_PZxyj.js.map} +1 -1
  61. package/build/server/chunks/{_page.svelte-Bf1Xvutq.js → _page.svelte-Bdgx6yFd.js} +4 -4
  62. package/build/server/chunks/{_page.svelte-Bf1Xvutq.js.map → _page.svelte-Bdgx6yFd.js.map} +1 -1
  63. package/build/server/chunks/{_page.svelte-DjvqV0mP.js → _page.svelte-BnMm7OgR.js} +3 -3
  64. package/build/server/chunks/{_page.svelte-DjvqV0mP.js.map → _page.svelte-BnMm7OgR.js.map} +1 -1
  65. package/build/server/chunks/{_page.svelte-CJFKUETC.js → _page.svelte-CKUYgmkB.js} +8 -8
  66. package/build/server/chunks/{_page.svelte-CJFKUETC.js.map → _page.svelte-CKUYgmkB.js.map} +1 -1
  67. package/build/server/chunks/{_page.svelte-DzvgX_Fb.js → _page.svelte-CUD8rWua.js} +7 -7
  68. package/build/server/chunks/{_page.svelte-DzvgX_Fb.js.map → _page.svelte-CUD8rWua.js.map} +1 -1
  69. package/build/server/chunks/{_page.svelte-D1MlIcvD.js → _page.svelte-D3uAY11y.js} +3 -3
  70. package/build/server/chunks/{_page.svelte-D1MlIcvD.js.map → _page.svelte-D3uAY11y.js.map} +1 -1
  71. package/build/server/chunks/{_page.svelte-Bcneewwy.js → _page.svelte-DCj38zDu.js} +8 -8
  72. package/build/server/chunks/{_page.svelte-Bcneewwy.js.map → _page.svelte-DCj38zDu.js.map} +1 -1
  73. package/build/server/chunks/{app-MIcRQ3KA.js → app-Do0K3Mhs.js} +2 -2
  74. package/build/server/chunks/{app-MIcRQ3KA.js.map → app-Do0K3Mhs.js.map} +1 -1
  75. package/build/server/chunks/{client-B7_eTpxF.js → client-S2G4ymSQ.js} +4 -4
  76. package/build/server/chunks/client-S2G4ymSQ.js.map +1 -0
  77. package/build/server/chunks/{composite-form-BBdoMBnQ.js → composite-form-CSPGUOcu.js} +27 -27
  78. package/build/server/chunks/{composite-form-BBdoMBnQ.js.map → composite-form-CSPGUOcu.js.map} +1 -1
  79. package/build/server/chunks/{dev-yFiAtg5l.js → dev-aF1HGl8f.js} +5 -5
  80. package/build/server/chunks/dev-aF1HGl8f.js.map +1 -0
  81. package/build/server/chunks/{error.svelte-CdfDRBr_.js → error.svelte-h71s3LwW.js} +7 -7
  82. package/build/server/chunks/{error.svelte-CdfDRBr_.js.map → error.svelte-h71s3LwW.js.map} +1 -1
  83. package/build/server/chunks/{hooks.server-BE9c-_mv.js → hooks.server-CdYxszMM.js} +133 -31
  84. package/build/server/chunks/hooks.server-CdYxszMM.js.map +1 -0
  85. package/build/server/chunks/index-CVekYGHP.js.map +1 -1
  86. package/build/server/chunks/index-DBqjc0Yf.js.map +1 -1
  87. package/build/server/chunks/{internal-6-cAlFJo.js → internal-n_iFrIjj.js} +14 -14
  88. package/build/server/chunks/{internal-6-cAlFJo.js.map → internal-n_iFrIjj.js.map} +1 -1
  89. package/build/server/chunks/{relation-select-composite-field-C_95H1v5.js → relation-select-composite-field-B3fIBbzC.js} +4 -4
  90. package/build/server/chunks/{relation-select-composite-field-C_95H1v5.js.map → relation-select-composite-field-B3fIBbzC.js.map} +1 -1
  91. package/build/server/chunks/{widget-registry-CbrL96Di.js → widget-registry-BCxIAl3a.js} +2 -2
  92. package/build/server/chunks/{widget-registry-CbrL96Di.js.map → widget-registry-BCxIAl3a.js.map} +1 -1
  93. package/build/server/index.js +32 -32
  94. package/build/server/index.js.map +1 -1
  95. package/build/server/manifest.js +10 -10
  96. package/build/server/manifest.js.map +1 -1
  97. package/package.json +5 -5
  98. package/build/client/_app/immutable/chunks/BC5KLBLb.js.br +0 -0
  99. package/build/client/_app/immutable/chunks/BC5KLBLb.js.gz +0 -0
  100. package/build/client/_app/immutable/chunks/BVSHjVK6.js.br +0 -0
  101. package/build/client/_app/immutable/chunks/BVSHjVK6.js.gz +0 -0
  102. package/build/client/_app/immutable/chunks/CzVb7msC.js.br +0 -0
  103. package/build/client/_app/immutable/chunks/CzVb7msC.js.gz +0 -0
  104. package/build/client/_app/immutable/chunks/yIxoVI_-.js.br +0 -0
  105. package/build/client/_app/immutable/chunks/yIxoVI_-.js.gz +0 -0
  106. package/build/client/_app/immutable/entry/app.DHKWTljt.js.br +0 -0
  107. package/build/client/_app/immutable/entry/app.DHKWTljt.js.gz +0 -0
  108. package/build/client/_app/immutable/entry/start.DNSPY2k9.js +0 -1
  109. package/build/client/_app/immutable/entry/start.DNSPY2k9.js.br +0 -0
  110. package/build/client/_app/immutable/entry/start.DNSPY2k9.js.gz +0 -0
  111. package/build/client/_app/immutable/nodes/1.BkcGPtdF.js.br +0 -4
  112. package/build/client/_app/immutable/nodes/1.BkcGPtdF.js.gz +0 -0
  113. package/build/client/_app/immutable/nodes/3.B4UoMGo7.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/3.B4UoMGo7.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/5.md6hU4xw.js.br +0 -0
  116. package/build/client/_app/immutable/nodes/5.md6hU4xw.js.gz +0 -0
  117. package/build/client/_app/immutable/nodes/6.BvmJdH03.js.br +0 -0
  118. package/build/client/_app/immutable/nodes/6.BvmJdH03.js.gz +0 -0
  119. package/build/client/_app/immutable/nodes/7.BO_sQESH.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/7.BO_sQESH.js.gz +0 -0
  121. package/build/server/chunks/client-B7_eTpxF.js.map +0 -1
  122. package/build/server/chunks/dev-yFiAtg5l.js.map +0 -1
  123. package/build/server/chunks/hooks.server-BE9c-_mv.js.map +0 -1
@@ -1,17 +1,17 @@
1
1
  import 'node:module';
2
- import { q as escape_html, x as getContext } from './dev-yFiAtg5l.js';
3
- import './client-B7_eTpxF.js';
2
+ import { q as escape_html, x as getContext } from './dev-aF1HGl8f.js';
3
+ import './client-S2G4ymSQ.js';
4
4
  import 'clsx';
5
- import './internal-6-cAlFJo.js';
5
+ import './internal-n_iFrIjj.js';
6
6
  import './index-DBqjc0Yf.js';
7
7
 
8
8
  //#endregion
9
- //#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_31b35890553a27fb0d8f940d66156f76/node_modules/@sveltejs/kit/src/runtime/app/state/server.js
9
+ //#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
10
10
  function context() {
11
11
  return getContext("__request__");
12
12
  }
13
13
  //#endregion
14
- //#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_31b35890553a27fb0d8f940d66156f76/node_modules/@sveltejs/kit/src/runtime/app/state/index.js
14
+ //#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
15
15
  /**
16
16
  * A read-only reactive object with information about the current page, serving several use cases:
17
17
  * - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load))
@@ -57,7 +57,7 @@ var page = {
57
57
  return context().page.status;
58
58
  }};
59
59
  //#endregion
60
- //#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_31b35890553a27fb0d8f940d66156f76/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte
60
+ //#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
61
61
  function Error$1($$renderer, $$props) {
62
62
  $$renderer.component(($$renderer) => {
63
63
  $$renderer.push(`<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`);
@@ -65,4 +65,4 @@ function Error$1($$renderer, $$props) {
65
65
  }
66
66
 
67
67
  export { Error$1 as default };
68
- //# sourceMappingURL=error.svelte-CdfDRBr_.js.map
68
+ //# sourceMappingURL=error.svelte-h71s3LwW.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error.svelte-CdfDRBr_.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_31b35890553a27fb0d8f940d66156f76/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_31b35890553a27fb0d8f940d66156f76/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_31b35890553a27fb0d8f940d66156f76/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-6-cAlFJo.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';
@@ -13,7 +13,7 @@ import require$$0$6 from 'path';
13
13
  import require$$0$5 from 'stream';
14
14
  import require$$1$2 from 'string_decoder';
15
15
  import 'node:module';
16
- import './dev-yFiAtg5l.js';
16
+ import './dev-aF1HGl8f.js';
17
17
  import 'clsx';
18
18
  import './index-DBqjc0Yf.js';
19
19
 
@@ -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);
@@ -7075,25 +7077,113 @@ function inferDisplayField(input) {
7075
7077
  }
7076
7078
  //#endregion
7077
7079
  //#region ../core/dist/checkEnum.js
7078
- var IN_RE = /\(?\s*(?:\w+\.)?["']?(\w+)["']?\s*\)?(?:::\w+)?\s+IN\s*\(\s*([^)]+)\)/i;
7079
- var ANY_ARRAY_RE = /\(?\s*(?:\w+\.)?["']?(\w+)["']?\s*\)?(?:::\w+)?\s*=\s*ANY\s*\(\s*ARRAY\s*\[([^\]]+)\]\s*\)/i;
7080
7080
  var QUOTED_VALUE_RE = /'((?:[^']|'')*)'/g;
7081
7081
  function extractQuotedValues(input) {
7082
7082
  const out = [];
7083
7083
  for (const match of input.matchAll(QUOTED_VALUE_RE)) out.push(match[1].replace(/''/g, "'"));
7084
7084
  return out;
7085
7085
  }
7086
+ function isWordChar(c) {
7087
+ return c >= "a" && c <= "z" || c >= "A" && c <= "Z" || c >= "0" && c <= "9" || c === "_";
7088
+ }
7089
+ function isWs(c) {
7090
+ return c === " " || c === " " || c === "\n" || c === "\r" || c === "\f" || c === "\v";
7091
+ }
7092
+ /** The column identifier immediately to the left of `before` (exclusive),
7093
+ * across the shapes a CHECK constraint uses for the column reference:
7094
+ * `foo`, `"foo"`, `(foo)`, `(foo)::text`, `foo::text`, `t.foo`. Returns the
7095
+ * bare identifier (matching the original regex's `(\w+)` capture), or null
7096
+ * when none is there. A single left-walk — no regex. */
7097
+ function columnBefore(expr, before) {
7098
+ let i = before - 1;
7099
+ while (i >= 0 && isWs(expr[i])) i--;
7100
+ if (i >= 0 && isWordChar(expr[i])) {
7101
+ let j = i;
7102
+ while (j >= 0 && isWordChar(expr[j])) j--;
7103
+ if (j - 1 >= 0 && expr[j] === ":" && expr[j - 1] === ":") {
7104
+ i = j - 2;
7105
+ while (i >= 0 && isWs(expr[i])) i--;
7106
+ }
7107
+ }
7108
+ if (i >= 0 && expr[i] === ")") {
7109
+ i--;
7110
+ while (i >= 0 && isWs(expr[i])) i--;
7111
+ }
7112
+ if (i >= 0 && (expr[i] === "\"" || expr[i] === "'")) i--;
7113
+ const end = i;
7114
+ while (i >= 0 && isWordChar(expr[i])) i--;
7115
+ if (i + 1 > end) return null;
7116
+ return expr.slice(i + 1, end + 1);
7117
+ }
7118
+ /** `<colref> = ANY (ARRAY[ <values> ])` — the form pg_get_constraintdef
7119
+ * normalises `col IN (...)` into on PostgreSQL 16. */
7120
+ function parseAnyArray(expr, lower) {
7121
+ let pos = 0;
7122
+ for (;;) {
7123
+ const any = lower.indexOf("any", pos);
7124
+ if (any === -1) return null;
7125
+ pos = any + 3;
7126
+ if (any > 0 && isWordChar(expr[any - 1])) continue;
7127
+ if (isWordChar(expr[any + 3] ?? "")) continue;
7128
+ let i = any - 1;
7129
+ while (i >= 0 && isWs(expr[i])) i--;
7130
+ if (i < 0 || expr[i] !== "=") continue;
7131
+ const eq = i;
7132
+ let k = any + 3;
7133
+ while (k < expr.length && isWs(expr[k])) k++;
7134
+ if (expr[k] !== "(") continue;
7135
+ k++;
7136
+ while (k < expr.length && isWs(expr[k])) k++;
7137
+ if (lower.slice(k, k + 5) !== "array") continue;
7138
+ k += 5;
7139
+ while (k < expr.length && isWs(expr[k])) k++;
7140
+ if (expr[k] !== "[") continue;
7141
+ const open = k;
7142
+ const close = expr.indexOf("]", open + 1);
7143
+ if (close === -1) continue;
7144
+ const column = columnBefore(expr, eq);
7145
+ if (column) return {
7146
+ column,
7147
+ valueList: expr.slice(open + 1, close)
7148
+ };
7149
+ }
7150
+ }
7151
+ /** `<colref> IN ( <values> )` — a hand-written CHECK. */
7152
+ function parseInList(expr, lower) {
7153
+ let pos = 0;
7154
+ for (;;) {
7155
+ const inIdx = lower.indexOf("in", pos);
7156
+ if (inIdx === -1) return null;
7157
+ pos = inIdx + 2;
7158
+ if (inIdx > 0 && isWordChar(expr[inIdx - 1])) continue;
7159
+ if (isWordChar(expr[inIdx + 2] ?? "")) continue;
7160
+ let k = inIdx + 2;
7161
+ while (k < expr.length && isWs(expr[k])) k++;
7162
+ if (expr[k] !== "(") continue;
7163
+ const open = k;
7164
+ const close = expr.indexOf(")", open + 1);
7165
+ if (close === -1) continue;
7166
+ const column = columnBefore(expr, inIdx);
7167
+ if (column) return {
7168
+ column,
7169
+ valueList: expr.slice(open + 1, close)
7170
+ };
7171
+ }
7172
+ }
7173
+ /** Locate the enum shape in a CHECK expression. The `= ANY (ARRAY[…])` form is
7174
+ * preferred over `IN (…)` (matching the original `anyMatch ?? inMatch`). */
7175
+ function parseEnumCheck(expr) {
7176
+ const lower = expr.toLowerCase();
7177
+ return parseAnyArray(expr, lower) ?? parseInList(expr, lower);
7178
+ }
7086
7179
  function extractCheckEnums(checks) {
7087
7180
  const result = /* @__PURE__ */ new Map();
7088
7181
  for (const check of checks) {
7089
7182
  const expr = check.expression;
7090
- const anyMatch = ANY_ARRAY_RE.exec(expr);
7091
- const inMatch = IN_RE.exec(expr);
7092
- const match = anyMatch ?? inMatch;
7093
- if (!match) continue;
7094
- const column = match[1];
7095
- const valueList = match[2];
7096
- const values = extractQuotedValues(valueList);
7183
+ const parsed = parseEnumCheck(expr);
7184
+ if (!parsed) continue;
7185
+ const column = parsed.column;
7186
+ const values = extractQuotedValues(parsed.valueList);
7097
7187
  if (values.length === 0) {
7098
7188
  console.warn(`[@kozou/core] extractCheckEnums: failed to extract values from check "${check.name}" (expression: ${expr})`);
7099
7189
  continue;
@@ -7196,7 +7286,7 @@ function buildRelations(table, issues) {
7196
7286
  return relations;
7197
7287
  }
7198
7288
  function buildTableContext(input) {
7199
- const { table, hints, issues, knownTables } = input;
7289
+ const { table, hints, issues, knownTables, enums } = input;
7200
7290
  const parsed = parseCommentTags(table.comment);
7201
7291
  const enumMap = extractCheckEnums(table.checks);
7202
7292
  const fkColumns = /* @__PURE__ */ new Set();
@@ -7210,7 +7300,7 @@ function buildTableContext(input) {
7210
7300
  primaryKey: table.primaryKey,
7211
7301
  foreignKeyColumns: fkColumns,
7212
7302
  singleColumnForeignKeyColumns: singleFkColumns,
7213
- enumValues: enumMap.get(c.name) ?? null,
7303
+ enumValues: enumMap.get(c.name) ?? findEnumValues(enums, c.udtName, table.schema) ?? null,
7214
7304
  hints: hints?.columns?.[c.name]
7215
7305
  }));
7216
7306
  const declaredColumnNames = new Set(table.columns.map((c) => c.name));
@@ -7259,7 +7349,7 @@ function buildTableContext(input) {
7259
7349
  };
7260
7350
  }
7261
7351
  function buildViewContext(input) {
7262
- const { view, hints, issues } = input;
7352
+ const { view, hints, issues, enums } = input;
7263
7353
  const parsed = parseCommentTags(view.comment);
7264
7354
  const declaredColumnNames = new Set(view.columns.map((c) => c.name));
7265
7355
  if (hints?.columns) {
@@ -7271,10 +7361,11 @@ function buildViewContext(input) {
7271
7361
  const columns = view.columns.map((c) => {
7272
7362
  const colParsed = parseCommentTags(c.comment);
7273
7363
  const colHints = hints?.columns?.[c.name];
7364
+ const enumValues = findEnumValues(enums, c.udtName, view.schema) ?? null;
7274
7365
  const widget = colHints?.widget ?? colParsed.widget ?? inferWidget({
7275
7366
  column: c,
7276
7367
  isForeignKey: false,
7277
- enumValues: null,
7368
+ enumValues,
7278
7369
  commentBody: colParsed.body
7279
7370
  });
7280
7371
  return {
@@ -7290,7 +7381,7 @@ function buildViewContext(input) {
7290
7381
  aiDescription: joinAi(colParsed.ai),
7291
7382
  policy: colParsed.policy,
7292
7383
  widget,
7293
- enumValues: null,
7384
+ enumValues,
7294
7385
  readonly: colHints?.readonly ?? true
7295
7386
  };
7296
7387
  });
@@ -7368,12 +7459,14 @@ async function buildSchemaContext(opts) {
7368
7459
  table: t,
7369
7460
  hints: uiHints?.tables?.[t.name],
7370
7461
  issues,
7371
- knownTables
7462
+ knownTables,
7463
+ enums: raw.enums
7372
7464
  }));
7373
7465
  const views = visibleRawViews.map((v) => buildViewContext({
7374
7466
  view: v,
7375
7467
  hints: uiHints?.views?.[v.name],
7376
- issues
7468
+ issues,
7469
+ enums: raw.enums
7377
7470
  }));
7378
7471
  const enums = raw.enums.map((e) => ({
7379
7472
  schema: e.schema,
@@ -14055,7 +14148,8 @@ async function fetchTables(client, schemas) {
14055
14148
  FROM pg_class c
14056
14149
  JOIN pg_namespace n ON n.oid = c.relnamespace
14057
14150
  LEFT JOIN pg_description d ON d.objoid = c.oid AND d.objsubid = 0
14058
- WHERE c.relkind = 'r'
14151
+ WHERE c.relkind IN ('r', 'p')
14152
+ AND NOT c.relispartition
14059
14153
  AND n.nspname = ANY($1)
14060
14154
  ORDER BY n.nspname, c.relname`, [schemas], "fetchTables (table list)");
14061
14155
  if (tableRows.length === 0) return [];
@@ -14086,7 +14180,8 @@ async function fetchTables(client, schemas) {
14086
14180
  JOIN pg_type t ON t.oid = a.atttypid
14087
14181
  LEFT JOIN pg_attrdef ad ON ad.adrelid = a.attrelid AND ad.adnum = a.attnum
14088
14182
  LEFT JOIN pg_description d ON d.objoid = a.attrelid AND d.objsubid = a.attnum
14089
- WHERE c.relkind = 'r'
14183
+ WHERE c.relkind IN ('r', 'p')
14184
+ AND NOT c.relispartition
14090
14185
  AND n.nspname = ANY($1)
14091
14186
  AND a.attnum > 0
14092
14187
  AND NOT a.attisdropped
@@ -14118,7 +14213,8 @@ async function fetchTables(client, schemas) {
14118
14213
  JOIN pg_class ic ON ic.oid = ix.indexrelid
14119
14214
  JOIN pg_class t ON t.oid = ix.indrelid
14120
14215
  JOIN pg_namespace n ON n.oid = t.relnamespace
14121
- WHERE t.relkind = 'r'
14216
+ WHERE t.relkind IN ('r', 'p')
14217
+ AND NOT t.relispartition
14122
14218
  AND n.nspname = ANY($1)
14123
14219
  AND NOT ix.indisprimary
14124
14220
  ORDER BY n.nspname, t.relname, ic.relname`, [schemas], "fetchTables (indexes)");
@@ -14280,7 +14376,7 @@ async function fetchViews(client, schemas) {
14280
14376
  FROM pg_class c
14281
14377
  JOIN pg_namespace n ON n.oid = c.relnamespace
14282
14378
  LEFT JOIN pg_description d ON d.objoid = c.oid AND d.objsubid = 0
14283
- WHERE c.relkind = 'v'
14379
+ WHERE c.relkind IN ('v', 'm')
14284
14380
  AND n.nspname = ANY($1)
14285
14381
  ORDER BY n.nspname, c.relname`, [schemas], "fetchViews (view list)");
14286
14382
  if (viewRows.length === 0) return [];
@@ -14310,7 +14406,7 @@ async function fetchViews(client, schemas) {
14310
14406
  JOIN pg_type t ON t.oid = a.atttypid
14311
14407
  LEFT JOIN pg_attrdef ad ON ad.adrelid = a.attrelid AND ad.adnum = a.attnum
14312
14408
  LEFT JOIN pg_description d ON d.objoid = a.attrelid AND d.objsubid = a.attnum
14313
- WHERE c.relkind = 'v'
14409
+ WHERE c.relkind IN ('v', 'm')
14314
14410
  AND n.nspname = ANY($1)
14315
14411
  AND a.attnum > 0
14316
14412
  AND NOT a.attisdropped
@@ -14327,7 +14423,7 @@ async function fetchViews(client, schemas) {
14327
14423
  JOIN pg_class dep_cls ON dep_cls.oid = d.refobjid AND d.refclassid = 'pg_class'::regclass
14328
14424
  JOIN pg_namespace dep_ns ON dep_ns.oid = dep_cls.relnamespace
14329
14425
  WHERE view_ns.nspname = ANY($1)
14330
- AND view_cls.relkind = 'v'
14426
+ AND view_cls.relkind IN ('v', 'm')
14331
14427
  AND dep_cls.relkind IN ('r','v','m')
14332
14428
  AND dep_cls.oid <> view_cls.oid
14333
14429
  ORDER BY view_ns.nspname, view_cls.relname, dep_ns.nspname, dep_cls.relname`, [schemas], "fetchViews (dependencies)");
@@ -14704,7 +14800,10 @@ async function fetchAndAttachPrivileges(client, schemas, role, tables, views) {
14704
14800
  has_table_privilege($2, c.oid, 'DELETE') AS del
14705
14801
  FROM pg_class c
14706
14802
  JOIN pg_namespace n ON n.oid = c.relnamespace
14707
- 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
14708
14807
  AND n.nspname = ANY($1)`, [schemas, role], "fetchPrivileges (relations)");
14709
14808
  const columnRows = await runQuery(client, `SELECT
14710
14809
  n.nspname AS schema,
@@ -14716,7 +14815,10 @@ async function fetchAndAttachPrivileges(client, schemas, role, tables, views) {
14716
14815
  FROM pg_attribute a
14717
14816
  JOIN pg_class c ON c.oid = a.attrelid
14718
14817
  JOIN pg_namespace n ON n.oid = c.relnamespace
14719
- 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
14720
14822
  AND n.nspname = ANY($1)
14721
14823
  AND a.attnum > 0
14722
14824
  AND NOT a.attisdropped`, [schemas, role], "fetchPrivileges (columns)");
@@ -14898,4 +15000,4 @@ var handle = async ({ event, resolve }) => {
14898
15000
  };
14899
15001
 
14900
15002
  export { handle };
14901
- //# sourceMappingURL=hooks.server-BE9c-_mv.js.map
15003
+ //# sourceMappingURL=hooks.server-CdYxszMM.js.map