@shwfed/config 2.3.24 → 2.3.25

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 (59) hide show
  1. package/dist/mcp.mjs +1059 -634
  2. package/dist/module.json +1 -1
  3. package/dist/preview/assets/{config-DYAEfkYR.js → config-BYTuKQZr.js} +1 -1
  4. package/dist/preview/assets/{config-D5Kfssb7.js → config-BoE06fMj.js} +1 -1
  5. package/dist/preview/assets/{config-CWZxlCMJ.js → config-CV5P2_b2.js} +1 -1
  6. package/dist/preview/assets/{config-CaZpOvHG.js → config-CVAFGzPb.js} +1 -1
  7. package/dist/preview/assets/{config-B3at5Bue.js → config-CdH0Nxqa.js} +1 -1
  8. package/dist/preview/assets/{config-B-6Htwv0.js → config-CjlRnKnY.js} +1 -1
  9. package/dist/preview/assets/{config-CBHKrOP5.js → config-CrvG15To.js} +1 -1
  10. package/dist/preview/assets/{config-Bi9uFh4Y.js → config-DZXC8YJ4.js} +1 -1
  11. package/dist/preview/assets/{config-B2KjxFl5.js → config-QaYy6DCp.js} +1 -1
  12. package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-8BVrrrak.js → definition.vue_vue_type_script_setup_true_lang-CBPR0zl_.js} +1 -1
  13. package/dist/preview/assets/{index-CJMxrUKZ.css → index-BCE-G4Ha.css} +1 -1
  14. package/dist/preview/assets/index-BbnG2cVz.js +643 -0
  15. package/dist/preview/assets/index-NFKAYzMi.js +1 -0
  16. package/dist/preview/assets/{runtime-C1iENPNJ.js → runtime-1AP_-j3e.js} +1 -1
  17. package/dist/preview/assets/{runtime-CEP42oTV.js → runtime-BQiYt6n7.js} +1 -1
  18. package/dist/preview/assets/{runtime-aBsBSCeg.js → runtime-BsiLYYky.js} +1 -1
  19. package/dist/preview/assets/{runtime-CoRrnGx1.js → runtime-C-h7PIyx.js} +1 -1
  20. package/dist/preview/assets/{runtime-CRHn61GX.js → runtime-CGW3z1YJ.js} +1 -1
  21. package/dist/preview/assets/{runtime-Hvzx1ucy.js → runtime-C_R-VCbd.js} +1 -1
  22. package/dist/preview/assets/{runtime-C5CCMnHt.js → runtime-DGdEDDUA.js} +1 -1
  23. package/dist/preview/assets/{runtime-jrsJfwMb.js → runtime-DwXjew7j.js} +1 -1
  24. package/dist/preview/assets/{runtime-CqciI2ST.js → runtime-pM3u8QsQ.js} +1 -1
  25. package/dist/preview/index.html +2 -2
  26. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +4 -4
  27. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +4 -4
  28. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +4 -4
  29. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +4 -4
  30. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.d.vue.ts +26 -26
  31. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue +4 -14
  32. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/config.vue.d.ts +26 -26
  33. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.d.ts +27 -1
  34. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.js +14 -11
  35. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +26 -26
  36. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue +4 -12
  37. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +26 -26
  38. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.d.ts +27 -1
  39. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.js +14 -11
  40. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.d.vue.ts +163 -0
  41. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue +699 -0
  42. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/config.vue.d.ts +163 -0
  43. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.d.vue.ts +9 -0
  44. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.vue +349 -0
  45. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.vue.d.ts +9 -0
  46. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.d.ts +251 -0
  47. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.js +178 -0
  48. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +167 -0
  49. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue +732 -0
  50. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +167 -0
  51. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.d.vue.ts +9 -0
  52. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.vue +383 -0
  53. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.vue.d.ts +9 -0
  54. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.d.ts +253 -0
  55. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.js +230 -0
  56. package/dist/runtime/components/table/config.vue +40 -0
  57. package/package.json +1 -1
  58. package/dist/preview/assets/index-B3wadvvl.js +0 -1
  59. package/dist/preview/assets/index-DTsYYECD.js +0 -643
@@ -0,0 +1 @@
1
+ import{aL as e}from"./index-BbnG2cVz.js";import{aM as r,aN as s,aO as t}from"./index-BbnG2cVz.js";export{r as TableConfig,s as createTableConfig,e as default,t as getColumnTechnicalKey};
@@ -1 +1 @@
1
- import{d as i,ae as x,as as p,af as M,ag as c,at as T,au as N,e as b,w as d,u,a0 as k,a1 as w,an as L,ar as S,o as A,f as I,av as z,g as r,aw as F,ax as H,a7 as V,am as $,ay as f,az as m,aA as j}from"./index-DTsYYECD.js";import{_ as K}from"./definition.vue_vue_type_script_setup_true_lang-8BVrrrak.js";const O=i({name:"ShwfedModalLayoutActionRuntime",__name:"runtime",props:{buttonId:{},config:{},buttonTitle:{}},setup(a){const n=a,{locale:l}=x(),v=e=>{},g=$(),s=w(f,void 0),h=L(),o=k(null),C=p(n.buttonId,{close:()=>S(()=>{o.value?.()})},h),y=i({name:"ModalBoundaryBridge",setup(e,{slots:t}){return H(g),m(j,C),s&&m(f,s),()=>t.default?.()}}),E=(e,t)=>V()?.(e,t),_=M(function*(){const e=c(n.config.modalTitle,l.value)??c(n.buttonTitle,l.value)??"",{modal:t,close:B}=yield*T({title:e,width:n.config.modalWidth});o.value=()=>N(B()),yield*t,o.value=null});return(e,t)=>(A(),b(K,{"action-id":a.buttonId,effect:u(_)},{default:d(()=>[I("div",{style:z(a.config.modalMinHeight?`min-height: ${a.config.modalMinHeight}`:void 0)},[r(u(y),null,{default:d(()=>[r(F,{"slot-value":a.config.slot,configure:v,"find-entry":E},null,8,["slot-value"])]),_:1})],4)]),_:1},8,["action-id","effect"]))}});export{O as default};
1
+ import{d as i,ae as x,as as p,af as M,ag as c,at as T,au as N,e as b,w as d,u,a0 as k,a1 as w,an as L,ar as S,o as A,f as I,av as z,g as r,aw as F,ax as H,a7 as V,am as $,ay as f,az as m,aA as j}from"./index-BbnG2cVz.js";import{_ as K}from"./definition.vue_vue_type_script_setup_true_lang-CBPR0zl_.js";const O=i({name:"ShwfedModalLayoutActionRuntime",__name:"runtime",props:{buttonId:{},config:{},buttonTitle:{}},setup(a){const n=a,{locale:l}=x(),v=e=>{},g=$(),s=w(f,void 0),h=L(),o=k(null),C=p(n.buttonId,{close:()=>S(()=>{o.value?.()})},h),y=i({name:"ModalBoundaryBridge",setup(e,{slots:t}){return H(g),m(j,C),s&&m(f,s),()=>t.default?.()}}),E=(e,t)=>V()?.(e,t),_=M(function*(){const e=c(n.config.modalTitle,l.value)??c(n.buttonTitle,l.value)??"",{modal:t,close:B}=yield*T({title:e,width:n.config.modalWidth});o.value=()=>N(B()),yield*t,o.value=null});return(e,t)=>(A(),b(K,{"action-id":a.buttonId,effect:u(_)},{default:d(()=>[I("div",{style:z(a.config.modalMinHeight?`min-height: ${a.config.modalMinHeight}`:void 0)},[r(u(y),null,{default:d(()=>[r(F,{"slot-value":a.config.slot,configure:v,"find-entry":E},null,8,["slot-value"])]),_:1})],4)]),_:1},8,["action-id","effect"]))}});export{O as default};
@@ -1 +1 @@
1
- import{d as f,ae as u,af as l,ag as g,ah as m,ai as p,aj as d,e as x,u as E,ak as _,al as h,am as k,an as w,o as C}from"./index-DTsYYECD.js";import{_ as I}from"./definition.vue_vue_type_script_setup_true_lang-8BVrrrak.js";const R=f({name:"ShwfedHttpRequestConfirmActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(s){const n=s,{locale:c}=u(),a=k(),t=(e,o)=>_(e,{...h(a),...o}),i=w(),r=l(function*(){const e=g(n.config.markdown,c.value)??"",o=m(e,t);(yield*p({content:o,icon:n.config.icon,color:n.config.color}))||(yield*d(n.config.expression,t,{messageExpression:n.config.messageExpression,resultExpression:n.config.resultExpression,channel:i,triggers:{success:n.config.onSuccess,warning:n.config.onWarning,error:n.config.onError,info:n.config.onInfo}}))});return(e,o)=>(C(),x(I,{"action-id":s.buttonId,effect:E(r)},null,8,["action-id","effect"]))}});export{R as default};
1
+ import{d as f,ae as u,af as l,ag as g,ah as m,ai as p,aj as d,e as x,u as E,ak as _,al as h,am as k,an as w,o as C}from"./index-BbnG2cVz.js";import{_ as I}from"./definition.vue_vue_type_script_setup_true_lang-CBPR0zl_.js";const R=f({name:"ShwfedHttpRequestConfirmActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(s){const n=s,{locale:c}=u(),a=k(),t=(e,o)=>_(e,{...h(a),...o}),i=w(),r=l(function*(){const e=g(n.config.markdown,c.value)??"",o=m(e,t);(yield*p({content:o,icon:n.config.icon,color:n.config.color}))||(yield*d(n.config.expression,t,{messageExpression:n.config.messageExpression,resultExpression:n.config.resultExpression,channel:i,triggers:{success:n.config.onSuccess,warning:n.config.onWarning,error:n.config.onError,info:n.config.onInfo}}))});return(e,o)=>(C(),x(I,{"action-id":s.buttonId,effect:E(r)},null,8,["action-id","effect"]))}});export{R as default};
@@ -1 +1 @@
1
- import{d as r,ao as f,aj as u,e as p,u as g,ak as m,al as l,am as d,an as x,o as E}from"./index-DTsYYECD.js";import{_}from"./definition.vue_vue_type_script_setup_true_lang-8BVrrrak.js";const k=r({name:"ShwfedHttpRequestActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(n){const e=n,t=d(),c=(s,o)=>m(s,{...l(t),...o}),i=x(),a=f(()=>u(e.config.expression,c,{messageExpression:e.config.messageExpression,resultExpression:e.config.resultExpression,channel:i,triggers:{success:e.config.onSuccess,warning:e.config.onWarning,error:e.config.onError,info:e.config.onInfo}}));return(s,o)=>(E(),p(_,{"action-id":n.buttonId,effect:g(a)},null,8,["action-id","effect"]))}});export{k as default};
1
+ import{d as r,ao as f,aj as u,e as p,u as g,ak as m,al as l,am as d,an as x,o as E}from"./index-BbnG2cVz.js";import{_}from"./definition.vue_vue_type_script_setup_true_lang-CBPR0zl_.js";const k=r({name:"ShwfedHttpRequestActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(n){const e=n,t=d(),c=(s,o)=>m(s,{...l(t),...o}),i=x(),a=f(()=>u(e.config.expression,c,{messageExpression:e.config.messageExpression,resultExpression:e.config.resultExpression,channel:i,triggers:{success:e.config.onSuccess,warning:e.config.onWarning,error:e.config.onError,info:e.config.onInfo}}));return(s,o)=>(E(),p(_,{"action-id":n.buttonId,effect:g(a)},null,8,["action-id","effect"]))}});export{k as default};
@@ -1 +1 @@
1
- import{d as _,ao as B,af as E,ar as r,aB as m,aC as S,aD as j,e as k,u as v,ak as x,al as C,an as L,am as b,o as R}from"./index-DTsYYECD.js";import{_ as T}from"./definition.vue_vue_type_script_setup_true_lang-8BVrrrak.js";const q=_({name:"ShwfedHttpDownloadActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(d){const c=d,g=b(),t=(e,n)=>x(e,{...C(g),...n}),l=L(),p=new Set(["success","error","warning","info"]);function f(e){const n=URL.createObjectURL(e),o=document.createElement("a");o.href=n,o.download=e.name,document.body.appendChild(o),o.click(),o.remove(),URL.revokeObjectURL(n)}const y=B(()=>E(function*(){const{template:e,messageExpression:n,resultExpression:o}=c.config,u=yield*t(e.request);if(!e.download){const s=yield*u.file();return yield*r(()=>f(s)),yield*m(l,c.config.onSuccess)}const a={json:yield*u.json()},i=o===void 0?"success":yield*S(t(o,a),s=>p.has(s)?s:"success");if(n!==void 0){const s=yield*t(n,a);yield*r(()=>j[i](s))}if(i==="success"||i==="info"){const h=yield*(yield*t(e.download,a)).file();yield*r(()=>f(h))}const w={success:c.config.onSuccess,warning:c.config.onWarning,error:c.config.onError,info:c.config.onInfo};return yield*m(l,w[i])}));return(e,n)=>(R(),k(T,{"action-id":d.buttonId,effect:v(y)},null,8,["action-id","effect"]))}});export{q as default};
1
+ import{d as _,ao as B,af as E,ar as r,aB as m,aC as S,aD as j,e as k,u as v,ak as x,al as C,an as L,am as b,o as R}from"./index-BbnG2cVz.js";import{_ as T}from"./definition.vue_vue_type_script_setup_true_lang-CBPR0zl_.js";const q=_({name:"ShwfedHttpDownloadActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(d){const c=d,g=b(),t=(e,n)=>x(e,{...C(g),...n}),l=L(),p=new Set(["success","error","warning","info"]);function f(e){const n=URL.createObjectURL(e),o=document.createElement("a");o.href=n,o.download=e.name,document.body.appendChild(o),o.click(),o.remove(),URL.revokeObjectURL(n)}const y=B(()=>E(function*(){const{template:e,messageExpression:n,resultExpression:o}=c.config,u=yield*t(e.request);if(!e.download){const s=yield*u.file();return yield*r(()=>f(s)),yield*m(l,c.config.onSuccess)}const a={json:yield*u.json()},i=o===void 0?"success":yield*S(t(o,a),s=>p.has(s)?s:"success");if(n!==void 0){const s=yield*t(n,a);yield*r(()=>j[i](s))}if(i==="success"||i==="info"){const h=yield*(yield*t(e.download,a)).file();yield*r(()=>f(h))}const w={success:c.config.onSuccess,warning:c.config.onWarning,error:c.config.onError,info:c.config.onInfo};return yield*m(l,w[i])}));return(e,n)=>(R(),k(T,{"action-id":d.buttonId,effect:v(y)},null,8,["action-id","effect"]))}});export{q as default};
@@ -1 +1 @@
1
- import{d as i,ao as f,aq as r,ar as d,e as m,u,ak as l,al as p,am as _,o as g}from"./index-DTsYYECD.js";import{_ as h}from"./definition.vue_vue_type_script_setup_true_lang-8BVrrrak.js";const x=i({name:"ShwfedNavigationActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const t=e,o=_(),c=(n,a)=>l(n,{...p(o),...a}),s=f(()=>r(c(t.config.url),n=>d(()=>{window.open(n,t.config.mode)})));return(n,a)=>(g(),m(h,{"action-id":e.buttonId,effect:u(s)},null,8,["action-id","effect"]))}});export{x as default};
1
+ import{d as i,ao as f,aq as r,ar as d,e as m,u,ak as l,al as p,am as _,o as g}from"./index-BbnG2cVz.js";import{_ as h}from"./definition.vue_vue_type_script_setup_true_lang-CBPR0zl_.js";const x=i({name:"ShwfedNavigationActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const t=e,o=_(),c=(n,a)=>l(n,{...p(o),...a}),s=f(()=>r(c(t.config.url),n=>d(()=>{window.open(n,t.config.mode)})));return(n,a)=>(g(),m(h,{"action-id":e.buttonId,effect:u(s)},null,8,["action-id","effect"]))}});export{x as default};
@@ -1 +1 @@
1
- import{d as u,ae as l,e as i,u as p,$ as m,o as d,k as f,ag as _,ah as k,ak as g,al as w,am as x}from"./index-DTsYYECD.js";const B=u({name:"ShwfedMarkdownItemRuntime",__name:"runtime",props:{config:{}},setup(n){const s=n,{locale:o}=l(),t=x(),c=(e,a)=>g(e,{...w(t),...a}),r=m(()=>{const e=_(s.config.content,o.value)??"";return k(e,c)});return(e,a)=>(d(),i(p(f),{"data-slot":"buttons-markdown",source:r.value,class:"prose prose-sm prose-zinc px-1"},null,8,["source"]))}});export{B as default};
1
+ import{d as u,ae as l,e as i,u as p,$ as m,o as d,k as f,ag as _,ah as k,ak as g,al as w,am as x}from"./index-BbnG2cVz.js";const B=u({name:"ShwfedMarkdownItemRuntime",__name:"runtime",props:{config:{}},setup(n){const s=n,{locale:o}=l(),t=x(),c=(e,a)=>g(e,{...w(t),...a}),r=m(()=>{const e=_(s.config.content,o.value)??"";return k(e,c)});return(e,a)=>(d(),i(p(f),{"data-slot":"buttons-markdown",source:r.value,class:"prose prose-sm prose-zinc px-1"},null,8,["source"]))}});export{B as default};
@@ -1 +1 @@
1
- import{_ as o}from"./definition.vue_vue_type_script_setup_true_lang-8BVrrrak.js";import{d as s,ao as c,aB as i,e as r,u as f,an as u,o as m}from"./index-DTsYYECD.js";const g=s({name:"ShwfedEventDispatchActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const n=e,t=u(),a=c(()=>i(t,n.config.triggers));return(p,d)=>(m(),r(o,{"action-id":e.buttonId,effect:f(a)},null,8,["action-id","effect"]))}});export{g as default};
1
+ import{_ as o}from"./definition.vue_vue_type_script_setup_true_lang-CBPR0zl_.js";import{d as s,ao as c,aB as i,e as r,u as f,an as u,o as m}from"./index-BbnG2cVz.js";const g=s({name:"ShwfedEventDispatchActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const n=e,t=u(),a=c(()=>i(t,n.config.triggers));return(p,d)=>(m(),r(o,{"action-id":e.buttonId,effect:f(a)},null,8,["action-id","effect"]))}});export{g as default};
@@ -1 +1 @@
1
- import{d as l,aE as g,ao as A,aq as y,aB as _,e as h,u as S,ak as b,al as k,an as j,aF as B,o as C,am as E}from"./index-DTsYYECD.js";import{_ as F}from"./definition.vue_vue_type_script_setup_true_lang-8BVrrrak.js";const I=l({name:"ShwfedStateWriteActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(r){const s=r,i=E(),f=(e,t)=>b(e,{...k(i),...t}),n=g(),o=n.kind==="form"&&n.parent?n.parent:n,u=j(),m=B((e,t,a)=>{if(Array.isArray(e[t])&&Array.isArray(a))return e[t]=a,!0});function c(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function p(e,t){return c(e)&&c(t)?m({...t},e):t}const d=A(()=>y(f(s.config.expression),e=>{for(const t of Object.keys(e)){const a=p(o.getAt(t),e[t]);o.setAt(t,a)}return _(u,s.config.onSuccess)}));return(e,t)=>(C(),h(F,{"action-id":r.buttonId,effect:S(d)},null,8,["action-id","effect"]))}});export{I as default};
1
+ import{d as l,aE as g,ao as A,aq as y,aB as _,e as h,u as S,ak as b,al as k,an as j,aF as B,o as C,am as E}from"./index-BbnG2cVz.js";import{_ as F}from"./definition.vue_vue_type_script_setup_true_lang-CBPR0zl_.js";const I=l({name:"ShwfedStateWriteActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(r){const s=r,i=E(),f=(e,t)=>b(e,{...k(i),...t}),n=g(),o=n.kind==="form"&&n.parent?n.parent:n,u=j(),m=B((e,t,a)=>{if(Array.isArray(e[t])&&Array.isArray(a))return e[t]=a,!0});function c(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function p(e,t){return c(e)&&c(t)?m({...t},e):t}const d=A(()=>y(f(s.config.expression),e=>{for(const t of Object.keys(e)){const a=p(o.getAt(t),e[t]);o.setAt(t,a)}return _(u,s.config.onSuccess)}));return(e,t)=>(C(),h(F,{"action-id":r.buttonId,effect:S(d)},null,8,["action-id","effect"]))}});export{I as default};
@@ -1 +1 @@
1
- import{_ as o}from"./definition.vue_vue_type_script_setup_true_lang-8BVrrrak.js";import{d as n,e as a,u as c,o as f,ap as i}from"./index-DTsYYECD.js";const p=n({name:"ShwfedPrototypeActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const t=i;return(r,s)=>(f(),a(o,{"action-id":e.buttonId,effect:c(t)},null,8,["action-id","effect"]))}});export{p as default};
1
+ import{_ as o}from"./definition.vue_vue_type_script_setup_true_lang-CBPR0zl_.js";import{d as n,e as a,u as c,o as f,ap as i}from"./index-BbnG2cVz.js";const p=n({name:"ShwfedPrototypeActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const t=i;return(r,s)=>(f(),a(o,{"action-id":e.buttonId,effect:c(t)},null,8,["action-id","effect"]))}});export{p as default};
@@ -10,8 +10,8 @@
10
10
  `--primary`, the primary button variant renders as transparent. */
11
11
  body { --primary: #009689; }
12
12
  </style>
13
- <script type="module" crossorigin src="./assets/index-DTsYYECD.js"></script>
14
- <link rel="stylesheet" crossorigin href="./assets/index-CJMxrUKZ.css">
13
+ <script type="module" crossorigin src="./assets/index-BbnG2cVz.js"></script>
14
+ <link rel="stylesheet" crossorigin href="./assets/index-BCE-G4Ha.css">
15
15
  </head>
16
16
  <body>
17
17
  <div id="app"></div>
@@ -41,8 +41,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
41
41
  readonly request: string;
42
42
  readonly grow?: boolean | undefined;
43
43
  readonly accessor: string;
44
- readonly enableSorting?: boolean | undefined;
45
44
  readonly options: string;
45
+ readonly enableSorting?: boolean | undefined;
46
+ readonly successMessage?: string | undefined;
46
47
  readonly optionValue: string;
47
48
  readonly optionLabel: readonly [{
48
49
  readonly locale: "zh";
@@ -51,7 +52,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
51
52
  readonly locale: "en" | "ja" | "ko";
52
53
  readonly message: string;
53
54
  }[]];
54
- readonly successMessage?: string | undefined;
55
55
  }) => any;
56
56
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
57
57
  "onUpdate:modelValue"?: ((value: {
@@ -92,8 +92,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
92
92
  readonly request: string;
93
93
  readonly grow?: boolean | undefined;
94
94
  readonly accessor: string;
95
- readonly enableSorting?: boolean | undefined;
96
95
  readonly options: string;
96
+ readonly enableSorting?: boolean | undefined;
97
+ readonly successMessage?: string | undefined;
97
98
  readonly optionValue: string;
98
99
  readonly optionLabel: readonly [{
99
100
  readonly locale: "zh";
@@ -102,7 +103,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
102
103
  readonly locale: "en" | "ja" | "ko";
103
104
  readonly message: string;
104
105
  }[]];
105
- readonly successMessage?: string | undefined;
106
106
  }) => any) | undefined;
107
107
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
108
108
  declare const _default: typeof __VLS_export;
@@ -41,8 +41,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
41
41
  readonly request: string;
42
42
  readonly grow?: boolean | undefined;
43
43
  readonly accessor: string;
44
- readonly enableSorting?: boolean | undefined;
45
44
  readonly options: string;
45
+ readonly enableSorting?: boolean | undefined;
46
+ readonly successMessage?: string | undefined;
46
47
  readonly optionValue: string;
47
48
  readonly optionLabel: readonly [{
48
49
  readonly locale: "zh";
@@ -51,7 +52,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
51
52
  readonly locale: "en" | "ja" | "ko";
52
53
  readonly message: string;
53
54
  }[]];
54
- readonly successMessage?: string | undefined;
55
55
  }) => any;
56
56
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
57
57
  "onUpdate:modelValue"?: ((value: {
@@ -92,8 +92,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
92
92
  readonly request: string;
93
93
  readonly grow?: boolean | undefined;
94
94
  readonly accessor: string;
95
- readonly enableSorting?: boolean | undefined;
96
95
  readonly options: string;
96
+ readonly enableSorting?: boolean | undefined;
97
+ readonly successMessage?: string | undefined;
97
98
  readonly optionValue: string;
98
99
  readonly optionLabel: readonly [{
99
100
  readonly locale: "zh";
@@ -102,7 +103,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
102
103
  readonly locale: "en" | "ja" | "ko";
103
104
  readonly message: string;
104
105
  }[]];
105
- readonly successMessage?: string | undefined;
106
106
  }) => any) | undefined;
107
107
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
108
108
  declare const _default: typeof __VLS_export;
@@ -41,8 +41,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
41
41
  readonly request: string;
42
42
  readonly grow?: boolean | undefined;
43
43
  readonly accessor: string;
44
- readonly enableSorting?: boolean | undefined;
45
44
  readonly options: string;
45
+ readonly enableSorting?: boolean | undefined;
46
+ readonly successMessage?: string | undefined;
46
47
  readonly optionValue: string;
47
48
  readonly optionLabel: readonly [{
48
49
  readonly locale: "zh";
@@ -51,7 +52,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
51
52
  readonly locale: "en" | "ja" | "ko";
52
53
  readonly message: string;
53
54
  }[]];
54
- readonly successMessage?: string | undefined;
55
55
  }) => any;
56
56
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
57
57
  "onUpdate:modelValue"?: ((value: {
@@ -92,8 +92,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
92
92
  readonly request: string;
93
93
  readonly grow?: boolean | undefined;
94
94
  readonly accessor: string;
95
- readonly enableSorting?: boolean | undefined;
96
95
  readonly options: string;
96
+ readonly enableSorting?: boolean | undefined;
97
+ readonly successMessage?: string | undefined;
97
98
  readonly optionValue: string;
98
99
  readonly optionLabel: readonly [{
99
100
  readonly locale: "zh";
@@ -102,7 +103,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
102
103
  readonly locale: "en" | "ja" | "ko";
103
104
  readonly message: string;
104
105
  }[]];
105
- readonly successMessage?: string | undefined;
106
106
  }) => any) | undefined;
107
107
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
108
108
  declare const _default: typeof __VLS_export;
@@ -41,8 +41,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
41
41
  readonly request: string;
42
42
  readonly grow?: boolean | undefined;
43
43
  readonly accessor: string;
44
- readonly enableSorting?: boolean | undefined;
45
44
  readonly options: string;
45
+ readonly enableSorting?: boolean | undefined;
46
+ readonly successMessage?: string | undefined;
46
47
  readonly optionValue: string;
47
48
  readonly optionLabel: readonly [{
48
49
  readonly locale: "zh";
@@ -51,7 +52,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
51
52
  readonly locale: "en" | "ja" | "ko";
52
53
  readonly message: string;
53
54
  }[]];
54
- readonly successMessage?: string | undefined;
55
55
  }) => any;
56
56
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
57
57
  "onUpdate:modelValue"?: ((value: {
@@ -92,8 +92,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
92
92
  readonly request: string;
93
93
  readonly grow?: boolean | undefined;
94
94
  readonly accessor: string;
95
- readonly enableSorting?: boolean | undefined;
96
95
  readonly options: string;
96
+ readonly enableSorting?: boolean | undefined;
97
+ readonly successMessage?: string | undefined;
97
98
  readonly optionValue: string;
98
99
  readonly optionLabel: readonly [{
99
100
  readonly locale: "zh";
@@ -102,7 +103,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
102
103
  readonly locale: "en" | "ja" | "ko";
103
104
  readonly message: string;
104
105
  }[]];
105
- readonly successMessage?: string | undefined;
106
106
  }) => any) | undefined;
107
107
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
108
108
  declare const _default: typeof __VLS_export;
@@ -39,8 +39,19 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
39
39
  readonly mode: "formula" | "prefill";
40
40
  readonly expression: string;
41
41
  } | undefined;
42
- readonly enableSorting?: boolean | undefined;
43
42
  readonly options: {
43
+ readonly kind: "remote";
44
+ readonly request: string;
45
+ readonly options: string;
46
+ readonly optionValue: string;
47
+ readonly optionLabel: readonly [{
48
+ readonly locale: "zh";
49
+ readonly message: string;
50
+ }, ...{
51
+ readonly locale: "en" | "ja" | "ko";
52
+ readonly message: string;
53
+ }[]];
54
+ } | {
44
55
  readonly kind: "static";
45
56
  readonly items: readonly {
46
57
  readonly label: readonly [{
@@ -66,19 +77,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
66
77
  readonly kind: "number";
67
78
  };
68
79
  }[];
69
- } | {
70
- readonly kind: "remote";
71
- readonly request: string;
72
- readonly options: string;
73
- readonly optionValue: string;
74
- readonly optionLabel: readonly [{
75
- readonly locale: "zh";
76
- readonly message: string;
77
- }, ...{
78
- readonly locale: "en" | "ja" | "ko";
79
- readonly message: string;
80
- }[]];
81
80
  };
81
+ readonly enableSorting?: boolean | undefined;
82
82
  }) => any;
83
83
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
84
84
  "onUpdate:modelValue"?: ((value: {
@@ -117,8 +117,19 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
117
117
  readonly mode: "formula" | "prefill";
118
118
  readonly expression: string;
119
119
  } | undefined;
120
- readonly enableSorting?: boolean | undefined;
121
120
  readonly options: {
121
+ readonly kind: "remote";
122
+ readonly request: string;
123
+ readonly options: string;
124
+ readonly optionValue: string;
125
+ readonly optionLabel: readonly [{
126
+ readonly locale: "zh";
127
+ readonly message: string;
128
+ }, ...{
129
+ readonly locale: "en" | "ja" | "ko";
130
+ readonly message: string;
131
+ }[]];
132
+ } | {
122
133
  readonly kind: "static";
123
134
  readonly items: readonly {
124
135
  readonly label: readonly [{
@@ -144,19 +155,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
144
155
  readonly kind: "number";
145
156
  };
146
157
  }[];
147
- } | {
148
- readonly kind: "remote";
149
- readonly request: string;
150
- readonly options: string;
151
- readonly optionValue: string;
152
- readonly optionLabel: readonly [{
153
- readonly locale: "zh";
154
- readonly message: string;
155
- }, ...{
156
- readonly locale: "en" | "ja" | "ko";
157
- readonly message: string;
158
- }[]];
159
158
  };
159
+ readonly enableSorting?: boolean | undefined;
160
160
  }) => any) | undefined;
161
161
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
162
162
  declare const _default: typeof __VLS_export;
@@ -19,7 +19,7 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from "../../../../ui/tabs";
19
19
  import { getStructFieldDescription, getStructFieldTitle } from "../../../utils/schema-meta";
20
20
  import { Markdown } from "../../../../ui/markdown";
21
21
  import DerivedValueEditor from "../../../../form/DerivedValueEditor.vue";
22
- import { itemSchema, optionsSchema, schema } from "./schema";
22
+ import { itemSchema, remoteOptionsSchema, schema } from "./schema";
23
23
  defineOptions({ name: "ShwfedTableComboboxMultiRendererConfig" });
24
24
  const value = defineModel({ type: null, ...{ required: true } });
25
25
  const fieldSchema = schema(() => {
@@ -30,20 +30,10 @@ const itemFieldSchema = itemSchema(() => {
30
30
  });
31
31
  const itemFieldTitle = (f) => getStructFieldTitle(itemFieldSchema, f) ?? f;
32
32
  const itemFieldDescription = (f) => getStructFieldDescription(itemFieldSchema, f);
33
- const optionsUnion = optionsSchema(() => {
33
+ const remoteSchema = remoteOptionsSchema(() => {
34
34
  });
35
- const remoteFieldTitle = (f) => {
36
- const _schema = optionsUnion;
37
- const members = _schema.members ?? [];
38
- const remote = members.find((m) => m?.fields?.kind?.literals?.[0] === "remote");
39
- return remote?.fields?.[f]?.ast?.annotations?.[Symbol.for("effect/annotation/Title")] ?? f;
40
- };
41
- const remoteFieldDescription = (f) => {
42
- const _schema = optionsUnion;
43
- const members = _schema.members ?? [];
44
- const remote = members.find((m) => m?.fields?.kind?.literals?.[0] === "remote");
45
- return remote?.fields?.[f]?.ast?.annotations?.[Symbol.for("effect/annotation/Description")];
46
- };
35
+ const remoteFieldTitle = (f) => getStructFieldTitle(remoteSchema, f) ?? f;
36
+ const remoteFieldDescription = (f) => getStructFieldDescription(remoteSchema, f);
47
37
  const ROW_VARS = {
48
38
  row: { type: "dyn", label: "\u5F53\u524D\u884C\u6570\u636E" },
49
39
  index: { type: "number", label: "\u884C\u7D22\u5F15" }
@@ -39,8 +39,19 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
39
39
  readonly mode: "formula" | "prefill";
40
40
  readonly expression: string;
41
41
  } | undefined;
42
- readonly enableSorting?: boolean | undefined;
43
42
  readonly options: {
43
+ readonly kind: "remote";
44
+ readonly request: string;
45
+ readonly options: string;
46
+ readonly optionValue: string;
47
+ readonly optionLabel: readonly [{
48
+ readonly locale: "zh";
49
+ readonly message: string;
50
+ }, ...{
51
+ readonly locale: "en" | "ja" | "ko";
52
+ readonly message: string;
53
+ }[]];
54
+ } | {
44
55
  readonly kind: "static";
45
56
  readonly items: readonly {
46
57
  readonly label: readonly [{
@@ -66,19 +77,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
66
77
  readonly kind: "number";
67
78
  };
68
79
  }[];
69
- } | {
70
- readonly kind: "remote";
71
- readonly request: string;
72
- readonly options: string;
73
- readonly optionValue: string;
74
- readonly optionLabel: readonly [{
75
- readonly locale: "zh";
76
- readonly message: string;
77
- }, ...{
78
- readonly locale: "en" | "ja" | "ko";
79
- readonly message: string;
80
- }[]];
81
80
  };
81
+ readonly enableSorting?: boolean | undefined;
82
82
  }) => any;
83
83
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
84
84
  "onUpdate:modelValue"?: ((value: {
@@ -117,8 +117,19 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
117
117
  readonly mode: "formula" | "prefill";
118
118
  readonly expression: string;
119
119
  } | undefined;
120
- readonly enableSorting?: boolean | undefined;
121
120
  readonly options: {
121
+ readonly kind: "remote";
122
+ readonly request: string;
123
+ readonly options: string;
124
+ readonly optionValue: string;
125
+ readonly optionLabel: readonly [{
126
+ readonly locale: "zh";
127
+ readonly message: string;
128
+ }, ...{
129
+ readonly locale: "en" | "ja" | "ko";
130
+ readonly message: string;
131
+ }[]];
132
+ } | {
122
133
  readonly kind: "static";
123
134
  readonly items: readonly {
124
135
  readonly label: readonly [{
@@ -144,19 +155,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
144
155
  readonly kind: "number";
145
156
  };
146
157
  }[];
147
- } | {
148
- readonly kind: "remote";
149
- readonly request: string;
150
- readonly options: string;
151
- readonly optionValue: string;
152
- readonly optionLabel: readonly [{
153
- readonly locale: "zh";
154
- readonly message: string;
155
- }, ...{
156
- readonly locale: "en" | "ja" | "ko";
157
- readonly message: string;
158
- }[]];
159
158
  };
159
+ readonly enableSorting?: boolean | undefined;
160
160
  }) => any) | undefined;
161
161
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
162
162
  declare const _default: typeof __VLS_export;
@@ -5,7 +5,7 @@ import type { ColumnDefDeps, MigrateFn, MigrateSource } from '../../../utils/res
5
5
  export declare const type: "com.shwfed.table.column.combobox-multi";
6
6
  export declare const compatibilityDate: "2026-05-26";
7
7
  export declare const metadata: {
8
- readonly name: "下拉多选";
8
+ readonly name: "多选";
9
9
  readonly icon: "fluent:chevron-down-20-regular";
10
10
  };
11
11
  export declare function itemSchema(configure: (env: Environment) => void): Schema.Struct<{
@@ -44,6 +44,32 @@ export declare function itemSchema(configure: (env: Environment) => void): Schem
44
44
  message: Schema.SchemaClass<string, string, never>;
45
45
  }>]>>>;
46
46
  }>;
47
+ export declare function remoteOptionsSchema(configure: (env: Environment) => void): Schema.Struct<{
48
+ kind: Schema.Literal<["remote"]>;
49
+ request: Schema.Schema<string, string, never>;
50
+ options: Schema.Schema<string, string, never>;
51
+ optionValue: Schema.optionalWith<Schema.Schema<string, string, never>, {
52
+ default: () => string;
53
+ }>;
54
+ optionLabel: Schema.optionalWith<Schema.refine<readonly [{
55
+ readonly locale: "zh";
56
+ readonly message: string;
57
+ }, ...{
58
+ readonly locale: "en" | "ja" | "ko";
59
+ readonly message: string;
60
+ }[]], Schema.TupleType<readonly [Schema.Struct<{
61
+ locale: Schema.Literal<["zh"]>;
62
+ message: Schema.SchemaClass<string, string, never>;
63
+ }>], [Schema.Struct<{
64
+ locale: Schema.Literal<["ja", "en", "ko"]>;
65
+ message: Schema.SchemaClass<string, string, never>;
66
+ }>]>>, {
67
+ default: () => readonly [{
68
+ readonly locale: "zh";
69
+ readonly message: "";
70
+ }];
71
+ }>;
72
+ }>;
47
73
  export declare function optionsSchema(configure: (env: Environment) => void): Schema.Union<[Schema.Struct<{
48
74
  kind: Schema.Literal<["static"]>;
49
75
  items: Schema.optionalWith<Schema.Array$<Schema.Struct<{
@@ -13,7 +13,7 @@ import {
13
13
  export const type = "com.shwfed.table.column.combobox-multi";
14
14
  export const compatibilityDate = "2026-05-26";
15
15
  export const metadata = {
16
- name: "\u4E0B\u62C9\u591A\u9009",
16
+ name: "\u591A\u9009",
17
17
  icon: "fluent:chevron-down-20-regular"
18
18
  };
19
19
  const isListType = (actual) => actual === "dyn" || actual.startsWith("list");
@@ -46,8 +46,7 @@ export function itemSchema(configure) {
46
46
  title: "ComboboxMultiItem"
47
47
  });
48
48
  }
49
- export function optionsSchema(configure) {
50
- const Item = itemSchema(configure);
49
+ export function remoteOptionsSchema(configure) {
51
50
  const CelRequest = Expression({
52
51
  configure: (env) => {
53
52
  configure(env);
@@ -78,14 +77,7 @@ export function optionsSchema(configure) {
78
77
  env.registerVariable("option", "dyn", { description: "`\u9009\u9879` \u8868\u8FBE\u5F0F\u4EA7\u51FA\u7684\u6570\u7EC4\u4E2D\u8FED\u4EE3\u5230\u7684\u5355\u4E2A\u5143\u7D20" });
79
78
  }
80
79
  });
81
- const StaticSpec = Schema.Struct({
82
- kind: Schema.Literal("static"),
83
- items: Schema.optionalWith(Schema.Array(Item).annotations({
84
- title: "\u9009\u9879",
85
- description: "\u4E0B\u62C9\u6846\u53EF\u9009\u9879\u5217\u8868"
86
- }), { default: () => [] })
87
- }).annotations({ title: "ComboboxMultiOptionsStatic", description: "\u9759\u6001\u914D\u7F6E\u7684\u9009\u9879\u5217\u8868" });
88
- const RemoteSpec = Schema.Struct({
80
+ return Schema.Struct({
89
81
  kind: Schema.Literal("remote"),
90
82
  request: CelRequest.annotations({
91
83
  title: "\u8BF7\u6C42",
@@ -104,6 +96,17 @@ export function optionsSchema(configure) {
104
96
  description: "\u6BCF\u4E2A\u9009\u9879\u5C55\u793A\u7684\u672C\u5730\u5316\u6587\u672C\uFF0C\u652F\u6301 `{{ string(option.foo) }}` \u63D2\u503C"
105
97
  }), { default: () => [{ locale: "zh", message: "" }] })
106
98
  }).annotations({ title: "ComboboxMultiOptionsRemote", description: "\u8FDC\u7A0B\u52A0\u8F7D\u7684\u9009\u9879\u5217\u8868" });
99
+ }
100
+ export function optionsSchema(configure) {
101
+ const Item = itemSchema(configure);
102
+ const StaticSpec = Schema.Struct({
103
+ kind: Schema.Literal("static"),
104
+ items: Schema.optionalWith(Schema.Array(Item).annotations({
105
+ title: "\u9009\u9879",
106
+ description: "\u4E0B\u62C9\u6846\u53EF\u9009\u9879\u5217\u8868"
107
+ }), { default: () => [] })
108
+ }).annotations({ title: "ComboboxMultiOptionsStatic", description: "\u9759\u6001\u914D\u7F6E\u7684\u9009\u9879\u5217\u8868" });
109
+ const RemoteSpec = remoteOptionsSchema(configure);
107
110
  return Schema.Union(StaticSpec, RemoteSpec).annotations({
108
111
  title: "\u9009\u9879\u6765\u6E90",
109
112
  description: '\u9009\u9879\u53EF\u4EE5\u662F\u9759\u6001\u914D\u7F6E\uFF08`kind: "static"`\uFF09\u6216\u7531\u8FDC\u7A0B\u63A5\u53E3\u52A0\u8F7D\uFF08`kind: "remote"`\uFF09'
@@ -40,8 +40,19 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
40
40
  readonly readonly?: string | undefined;
41
41
  readonly grow?: boolean | undefined;
42
42
  readonly accessor: string;
43
- readonly enableSorting?: boolean | undefined;
44
43
  readonly options: {
44
+ readonly kind: "remote";
45
+ readonly request: string;
46
+ readonly options: string;
47
+ readonly optionValue: string;
48
+ readonly optionLabel: readonly [{
49
+ readonly locale: "zh";
50
+ readonly message: string;
51
+ }, ...{
52
+ readonly locale: "en" | "ja" | "ko";
53
+ readonly message: string;
54
+ }[]];
55
+ } | {
45
56
  readonly kind: "static";
46
57
  readonly items: readonly {
47
58
  readonly label: readonly [{
@@ -67,19 +78,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
67
78
  readonly kind: "number";
68
79
  };
69
80
  }[];
70
- } | {
71
- readonly kind: "remote";
72
- readonly request: string;
73
- readonly options: string;
74
- readonly optionValue: string;
75
- readonly optionLabel: readonly [{
76
- readonly locale: "zh";
77
- readonly message: string;
78
- }, ...{
79
- readonly locale: "en" | "ja" | "ko";
80
- readonly message: string;
81
- }[]];
82
81
  };
82
+ readonly enableSorting?: boolean | undefined;
83
83
  readonly successMessage?: string | undefined;
84
84
  }) => any;
85
85
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
@@ -120,8 +120,19 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
120
120
  readonly readonly?: string | undefined;
121
121
  readonly grow?: boolean | undefined;
122
122
  readonly accessor: string;
123
- readonly enableSorting?: boolean | undefined;
124
123
  readonly options: {
124
+ readonly kind: "remote";
125
+ readonly request: string;
126
+ readonly options: string;
127
+ readonly optionValue: string;
128
+ readonly optionLabel: readonly [{
129
+ readonly locale: "zh";
130
+ readonly message: string;
131
+ }, ...{
132
+ readonly locale: "en" | "ja" | "ko";
133
+ readonly message: string;
134
+ }[]];
135
+ } | {
125
136
  readonly kind: "static";
126
137
  readonly items: readonly {
127
138
  readonly label: readonly [{
@@ -147,19 +158,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
147
158
  readonly kind: "number";
148
159
  };
149
160
  }[];
150
- } | {
151
- readonly kind: "remote";
152
- readonly request: string;
153
- readonly options: string;
154
- readonly optionValue: string;
155
- readonly optionLabel: readonly [{
156
- readonly locale: "zh";
157
- readonly message: string;
158
- }, ...{
159
- readonly locale: "en" | "ja" | "ko";
160
- readonly message: string;
161
- }[]];
162
161
  };
162
+ readonly enableSorting?: boolean | undefined;
163
163
  readonly successMessage?: string | undefined;
164
164
  }) => any) | undefined;
165
165
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -19,7 +19,7 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from "../../../../ui/tabs";
19
19
  import { getStructFieldDescription, getStructFieldTitle } from "../../../utils/schema-meta";
20
20
  import { Markdown } from "../../../../ui/markdown";
21
21
  import TriggersField from "../../../../actions/components/triggers-field.vue";
22
- import { itemSchema, optionsSchema, schema } from "./schema";
22
+ import { itemSchema, remoteOptionsSchema, schema } from "./schema";
23
23
  defineOptions({ name: "ShwfedTableComboboxMultiRemoteConfig" });
24
24
  const value = defineModel({ type: null, ...{ required: true } });
25
25
  const fieldSchema = schema(() => {
@@ -30,18 +30,10 @@ const itemFieldSchema = itemSchema(() => {
30
30
  });
31
31
  const itemFieldTitle = (f) => getStructFieldTitle(itemFieldSchema, f) ?? f;
32
32
  const itemFieldDescription = (f) => getStructFieldDescription(itemFieldSchema, f);
33
- const optionsUnion = optionsSchema(() => {
33
+ const remoteSchema = remoteOptionsSchema(() => {
34
34
  });
35
- const remoteFieldTitle = (f) => {
36
- const members = optionsUnion.members ?? [];
37
- const remote = members.find((m) => m?.fields?.kind?.literals?.[0] === "remote");
38
- return remote?.fields?.[f]?.ast?.annotations?.[Symbol.for("effect/annotation/Title")] ?? f;
39
- };
40
- const remoteFieldDescription = (f) => {
41
- const members = optionsUnion.members ?? [];
42
- const remote = members.find((m) => m?.fields?.kind?.literals?.[0] === "remote");
43
- return remote?.fields?.[f]?.ast?.annotations?.[Symbol.for("effect/annotation/Description")];
44
- };
35
+ const remoteFieldTitle = (f) => getStructFieldTitle(remoteSchema, f) ?? f;
36
+ const remoteFieldDescription = (f) => getStructFieldDescription(remoteSchema, f);
45
37
  const ROW_VARS = {
46
38
  row: { type: "dyn", label: "\u5F53\u524D\u884C\u6570\u636E" },
47
39
  index: { type: "number", label: "\u884C\u7D22\u5F15" }