@shwfed/config 2.5.2 → 2.5.3

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 (45) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/preview/assets/{config-CMWb8uI8.js → config-BVjCjkAL.js} +1 -1
  3. package/dist/preview/assets/{config-D9Igjtte.js → config-C5TWIUX-.js} +1 -1
  4. package/dist/preview/assets/{config-Bo8qCYUr.js → config-CH28q4_H.js} +1 -1
  5. package/dist/preview/assets/{config-DO6VRND9.js → config-CtGduGcR.js} +1 -1
  6. package/dist/preview/assets/{config-CoykdrWz.js → config-D9tBv8LD.js} +1 -1
  7. package/dist/preview/assets/{config-DLuQtN-6.js → config-DN6k6pjm.js} +1 -1
  8. package/dist/preview/assets/{config-BHInx1QR.js → config-DxB8qwAu.js} +1 -1
  9. package/dist/preview/assets/{config-Du8jTCck.js → config-U359oLg8.js} +1 -1
  10. package/dist/preview/assets/{config-BVTakYXq.js → config-ekMG8PO0.js} +1 -1
  11. package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-CjPPVjHf.js → definition.vue_vue_type_script_setup_true_lang-I7unZVnH.js} +1 -1
  12. package/dist/preview/assets/{index-CLhRphC4.js → index-CZ-XSjS_.js} +50 -50
  13. package/dist/preview/assets/index-HfGseg4M.js +1 -0
  14. package/dist/preview/assets/{runtime-BVShchDS.js → runtime-27bDIkKv.js} +1 -1
  15. package/dist/preview/assets/{runtime-ePHYJvDG.js → runtime-BAQ6ezPo.js} +1 -1
  16. package/dist/preview/assets/{runtime-CCBYA0xX.js → runtime-BKQvzSax.js} +1 -1
  17. package/dist/preview/assets/{runtime-as-8tVjx.js → runtime-BafXFP0s.js} +1 -1
  18. package/dist/preview/assets/{runtime-DTC0oZPz.js → runtime-CAzVJ-if.js} +1 -1
  19. package/dist/preview/assets/{runtime-BnXLPPWc.js → runtime-CQly-3c3.js} +1 -1
  20. package/dist/preview/assets/{runtime-D7cNZpnE.js → runtime-DJgDXKfE.js} +1 -1
  21. package/dist/preview/assets/{runtime-Bs_EtAsE.js → runtime-Dhd51Wyr.js} +1 -1
  22. package/dist/preview/assets/{runtime-Cxl0E6Hg.js → runtime-x8IdC454.js} +1 -1
  23. package/dist/preview/index.html +1 -1
  24. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +4 -4
  25. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +4 -4
  26. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +6 -6
  27. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +6 -6
  28. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +2 -2
  29. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +2 -2
  30. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +4 -4
  31. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +4 -4
  32. package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/config.vue +37 -16
  33. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/config.vue +80 -34
  34. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.switch.local/config.vue +48 -18
  35. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/config.vue +44 -17
  36. package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +1 -1
  37. package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +1 -1
  38. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.d.vue.ts +1 -1
  39. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue.d.ts +1 -1
  40. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.d.vue.ts +1 -1
  41. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue.d.ts +1 -1
  42. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.d.vue.ts +2 -2
  43. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue.d.ts +2 -2
  44. package/package.json +1 -1
  45. package/dist/preview/assets/index-DRXgXfoM.js +0 -1
@@ -0,0 +1 @@
1
+ import{aO as e}from"./index-CZ-XSjS_.js";import{aP as r,aQ as s,aR as t}from"./index-CZ-XSjS_.js";export{r as TableConfig,s as createTableConfig,e as default,t as getColumnTechnicalKey};
@@ -1 +1 @@
1
- import{d as i,aq as f,as as r,au as u,e as d,u as m,al as l,am as p,ao as _,o as g}from"./index-CLhRphC4.js";import{_ as h}from"./definition.vue_vue_type_script_setup_true_lang-CjPPVjHf.js";const B=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=>u(()=>{window.open(n,t.config.mode)})));return(n,a)=>(g(),d(h,{"action-id":e.buttonId,effect:m(s)},null,8,["action-id","effect"]))}});export{B as default};
1
+ import{d as i,aq as f,as as r,au as u,e as d,u as m,al as l,am as p,ao as _,o as g}from"./index-CZ-XSjS_.js";import{_ as h}from"./definition.vue_vue_type_script_setup_true_lang-I7unZVnH.js";const B=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=>u(()=>{window.open(n,t.config.mode)})));return(n,a)=>(g(),d(h,{"action-id":e.buttonId,effect:m(s)},null,8,["action-id","effect"]))}});export{B as default};
@@ -1 +1 @@
1
- import{_ as s}from"./definition.vue_vue_type_script_setup_true_lang-CjPPVjHf.js";import{d as c,aq as o,aE as i,e as r,u as f,ap as u,o as p}from"./index-CLhRphC4.js";const g=c({name:"ShwfedEventDispatchActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const n=e,t=u(),a=o(()=>i(t,n.config.triggers));return(m,d)=>(p(),r(s,{"action-id":e.buttonId,effect:f(a)},null,8,["action-id","effect"]))}});export{g as default};
1
+ import{_ as s}from"./definition.vue_vue_type_script_setup_true_lang-I7unZVnH.js";import{d as c,aq as o,aE as i,e as r,u as f,ap as u,o as p}from"./index-CZ-XSjS_.js";const g=c({name:"ShwfedEventDispatchActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const n=e,t=u(),a=o(()=>i(t,n.config.triggers));return(m,d)=>(p(),r(s,{"action-id":e.buttonId,effect:f(a)},null,8,["action-id","effect"]))}});export{g as default};
@@ -1 +1 @@
1
- import{d as u,ae as i,e as l,u as p,$ as m,o as d,k as f,ah as _,ai as k,al as w,am as x,ao as g}from"./index-CLhRphC4.js";const B=u({name:"ShwfedMarkdownItemRuntime",__name:"runtime",props:{config:{}},setup(n){const o=n,{locale:s}=i(),t=g(),c=(e,a)=>w(e,{...x(t),...a}),r=m(()=>{const e=_(o.config.content,s.value)??"";return k(e,c)});return(e,a)=>(d(),l(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 i,e as l,u as p,$ as m,o as d,k as f,ah as _,ai as k,al as w,am as x,ao as g}from"./index-CZ-XSjS_.js";const B=u({name:"ShwfedMarkdownItemRuntime",__name:"runtime",props:{config:{}},setup(n){const o=n,{locale:s}=i(),t=g(),c=(e,a)=>w(e,{...x(t),...a}),r=m(()=>{const e=_(o.config.content,s.value)??"";return k(e,c)});return(e,a)=>(d(),l(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{d as l,ae as u,af as g,ag as m,ah as d,ai as p,aj as x,ak as k,e as E,u as _,al as h,am as w,an as C,ao as I,ap as j,o as v}from"./index-CLhRphC4.js";import{_ as y}from"./definition.vue_vue_type_script_setup_true_lang-CjPPVjHf.js";const q=l({name:"ShwfedHttpRequestConfirmActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(s){const e=s,{locale:c}=u(),i=I(),t=(n,o)=>h(n,{...w(i),...o}),r=j(),a=C(),f=g(function*(){if(a&&!(yield*m(()=>a())))return;const n=d(e.config.markdown,c.value)??"",o=p(n,t);(yield*x({content:o,icon:e.config.icon,color:e.config.color}))||(yield*k(e.config.expression,t,{messageExpression:e.config.messageExpression,resultExpression:e.config.resultExpression,channel:r,triggers:{success:e.config.onSuccess,warning:e.config.onWarning,error:e.config.onError,info:e.config.onInfo}}))});return(n,o)=>(v(),E(y,{"action-id":s.buttonId,effect:_(f)},null,8,["action-id","effect"]))}});export{q as default};
1
+ import{d as l,ae as u,af as g,ag as m,ah as d,ai as p,aj as x,ak as k,e as E,u as _,al as h,am as w,an as C,ao as I,ap as j,o as v}from"./index-CZ-XSjS_.js";import{_ as y}from"./definition.vue_vue_type_script_setup_true_lang-I7unZVnH.js";const q=l({name:"ShwfedHttpRequestConfirmActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(s){const e=s,{locale:c}=u(),i=I(),t=(n,o)=>h(n,{...w(i),...o}),r=j(),a=C(),f=g(function*(){if(a&&!(yield*m(()=>a())))return;const n=d(e.config.markdown,c.value)??"",o=p(n,t);(yield*x({content:o,icon:e.config.icon,color:e.config.color}))||(yield*k(e.config.expression,t,{messageExpression:e.config.messageExpression,resultExpression:e.config.resultExpression,channel:r,triggers:{success:e.config.onSuccess,warning:e.config.onWarning,error:e.config.onError,info:e.config.onInfo}}))});return(n,o)=>(v(),E(y,{"action-id":s.buttonId,effect:_(f)},null,8,["action-id","effect"]))}});export{q as default};
@@ -1 +1 @@
1
- import{d as l,aH as g,aq as A,as as y,aE as _,e as h,u as S,al as b,am as j,ap as k,aI as C,o as B,ao as E}from"./index-CLhRphC4.js";import{_ as I}from"./definition.vue_vue_type_script_setup_true_lang-CjPPVjHf.js";const F=l({name:"ShwfedStateWriteActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(r){const s=r,i=E(),f=(e,t)=>b(e,{...j(i),...t}),n=g(),o=n.kind==="form"&&n.parent?n.parent:n,u=k(),m=C((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)=>(B(),h(I,{"action-id":r.buttonId,effect:S(d)},null,8,["action-id","effect"]))}});export{F as default};
1
+ import{d as l,aH as g,aq as A,as as y,aE as _,e as h,u as S,al as b,am as j,ap as k,aI as C,o as B,ao as E}from"./index-CZ-XSjS_.js";import{_ as I}from"./definition.vue_vue_type_script_setup_true_lang-I7unZVnH.js";const F=l({name:"ShwfedStateWriteActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(r){const s=r,i=E(),f=(e,t)=>b(e,{...j(i),...t}),n=g(),o=n.kind==="form"&&n.parent?n.parent:n,u=k(),m=C((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)=>(B(),h(I,{"action-id":r.buttonId,effect:S(d)},null,8,["action-id","effect"]))}});export{F as default};
@@ -1 +1 @@
1
- import{_ as o}from"./definition.vue_vue_type_script_setup_true_lang-CjPPVjHf.js";import{d as n,e as a,u as c,o as f,at as i}from"./index-CLhRphC4.js";const _=n({name:"ShwfedPrototypeActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(t){const e=i;return(r,s)=>(f(),a(o,{"action-id":t.buttonId,effect:c(e)},null,8,["action-id","effect"]))}});export{_ as default};
1
+ import{_ as o}from"./definition.vue_vue_type_script_setup_true_lang-I7unZVnH.js";import{d as n,e as a,u as c,o as f,at as i}from"./index-CZ-XSjS_.js";const _=n({name:"ShwfedPrototypeActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(t){const e=i;return(r,s)=>(f(),a(o,{"action-id":t.buttonId,effect:c(e)},null,8,["action-id","effect"]))}});export{_ as default};
@@ -1 +1 @@
1
- import{d as s,ae as p,av as x,af as M,ah as c,aw as T,ax as N,e as b,w as d,u,a0 as k,a1 as w,ap as L,au as S,o as A,f as I,ay as z,g as f,az as F,aA as H,a7 as V,ao as $,aB as r,aC as m,aD as j}from"./index-CLhRphC4.js";import{_ as K}from"./definition.vue_vue_type_script_setup_true_lang-CjPPVjHf.js";const D=s({name:"ShwfedModalLayoutActionRuntime",__name:"runtime",props:{buttonId:{},config:{},buttonTitle:{}},setup(t){const n=t,{locale:l}=p(),v=e=>{},h=$(),i=w(r,void 0),g=L(),o=k(null),C=x(n.buttonId,{close:()=>S(()=>{o.value?.()})},g),y=s({name:"ModalBoundaryBridge",setup(e,{slots:a}){return H(h),m(j,C),i&&m(r,i),()=>a.default?.()}}),E=(e,a)=>V()?.(e,a),_=M(function*(){const e=c(n.config.modalTitle,l.value)??c(n.buttonTitle,l.value)??"",{modal:a,close:B}=yield*T({title:e,width:n.config.modalWidth});o.value=()=>N(B()),yield*a,o.value=null});return(e,a)=>(A(),b(K,{"action-id":t.buttonId,effect:u(_)},{default:d(()=>[I("div",{style:z(t.config.modalMinHeight?`min-height: ${t.config.modalMinHeight}`:void 0)},[f(u(y),null,{default:d(()=>[f(F,{"slot-value":t.config.slot,configure:v,"find-entry":E},null,8,["slot-value"])]),_:1})],4)]),_:1},8,["action-id","effect"]))}});export{D as default};
1
+ import{d as s,ae as p,av as x,af as M,ah as c,aw as T,ax as N,e as b,w as d,u,a0 as k,a1 as w,ap as L,au as S,o as A,f as I,ay as z,g as f,az as F,aA as H,a7 as V,ao as $,aB as r,aC as m,aD as j}from"./index-CZ-XSjS_.js";import{_ as K}from"./definition.vue_vue_type_script_setup_true_lang-I7unZVnH.js";const D=s({name:"ShwfedModalLayoutActionRuntime",__name:"runtime",props:{buttonId:{},config:{},buttonTitle:{}},setup(t){const n=t,{locale:l}=p(),v=e=>{},h=$(),i=w(r,void 0),g=L(),o=k(null),C=x(n.buttonId,{close:()=>S(()=>{o.value?.()})},g),y=s({name:"ModalBoundaryBridge",setup(e,{slots:a}){return H(h),m(j,C),i&&m(r,i),()=>a.default?.()}}),E=(e,a)=>V()?.(e,a),_=M(function*(){const e=c(n.config.modalTitle,l.value)??c(n.buttonTitle,l.value)??"",{modal:a,close:B}=yield*T({title:e,width:n.config.modalWidth});o.value=()=>N(B()),yield*a,o.value=null});return(e,a)=>(A(),b(K,{"action-id":t.buttonId,effect:u(_)},{default:d(()=>[I("div",{style:z(t.config.modalMinHeight?`min-height: ${t.config.modalMinHeight}`:void 0)},[f(u(y),null,{default:d(()=>[f(F,{"slot-value":t.config.slot,configure:v,"find-entry":E},null,8,["slot-value"])]),_:1})],4)]),_:1},8,["action-id","effect"]))}});export{D as default};
@@ -1 +1 @@
1
- import{d as E,aq as _,af as S,au as r,aE as m,aF as j,aG as v,e as x,u as B,al as L,am as b,ap as k,ao as C,o as R}from"./index-CLhRphC4.js";import{_ as T}from"./definition.vue_vue_type_script_setup_true_lang-CjPPVjHf.js";const O=E({name:"ShwfedHttpDownloadActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(d){const c=d,g=C(),t=(e,n)=>L(e,{...b(g),...n}),l=k(),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=_(()=>S(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*j(t(o,a),s=>p.has(s)?s:"success");if(n!==void 0){const s=yield*t(n,a);yield*r(()=>v[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(),x(T,{"action-id":d.buttonId,effect:B(y)},null,8,["action-id","effect"]))}});export{O as default};
1
+ import{d as E,aq as _,af as S,au as r,aE as m,aF as j,aG as v,e as x,u as B,al as L,am as b,ap as k,ao as C,o as R}from"./index-CZ-XSjS_.js";import{_ as T}from"./definition.vue_vue_type_script_setup_true_lang-I7unZVnH.js";const O=E({name:"ShwfedHttpDownloadActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(d){const c=d,g=C(),t=(e,n)=>L(e,{...b(g),...n}),l=k(),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=_(()=>S(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*j(t(o,a),s=>p.has(s)?s:"success");if(n!==void 0){const s=yield*t(n,a);yield*r(()=>v[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(),x(T,{"action-id":d.buttonId,effect:B(y)},null,8,["action-id","effect"]))}});export{O as default};
@@ -1 +1 @@
1
- import{d as u,aq as p,ag as g,ar as a,as as m,ak as l,e as d,u as x,al as E,am as _,an as h,ao as C,ap as k,o as q}from"./index-CLhRphC4.js";import{_ as v}from"./definition.vue_vue_type_script_setup_true_lang-CjPPVjHf.js";const R=u({name:"ShwfedHttpRequestActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(o){const e=o,c=C(),i=(n,s)=>E(n,{..._(c),...s}),r=k(),t=h(),f=p(()=>{const n=t?g(()=>t()):a(!0);return m(n,s=>s?l(e.config.expression,i,{messageExpression:e.config.messageExpression,resultExpression:e.config.resultExpression,channel:r,triggers:{success:e.config.onSuccess,warning:e.config.onWarning,error:e.config.onError,info:e.config.onInfo}}):a(void 0))});return(n,s)=>(q(),d(v,{"action-id":o.buttonId,effect:x(f)},null,8,["action-id","effect"]))}});export{R as default};
1
+ import{d as u,aq as p,ag as g,ar as a,as as m,ak as l,e as d,u as x,al as E,am as _,an as h,ao as C,ap as k,o as q}from"./index-CZ-XSjS_.js";import{_ as v}from"./definition.vue_vue_type_script_setup_true_lang-I7unZVnH.js";const R=u({name:"ShwfedHttpRequestActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(o){const e=o,c=C(),i=(n,s)=>E(n,{..._(c),...s}),r=k(),t=h(),f=p(()=>{const n=t?g(()=>t()):a(!0);return m(n,s=>s?l(e.config.expression,i,{messageExpression:e.config.messageExpression,resultExpression:e.config.resultExpression,channel:r,triggers:{success:e.config.onSuccess,warning:e.config.onWarning,error:e.config.onError,info:e.config.onInfo}}):a(void 0))});return(n,s)=>(q(),d(v,{"action-id":o.buttonId,effect:x(f)},null,8,["action-id","effect"]))}});export{R as default};
@@ -10,7 +10,7 @@
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-CLhRphC4.js"></script>
13
+ <script type="module" crossorigin src="./assets/index-CZ-XSjS_.js"></script>
14
14
  <link rel="stylesheet" crossorigin href="./assets/index-nvAUAYGM.css">
15
15
  </head>
16
16
  <body>
@@ -33,9 +33,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
33
33
  readonly expression: string;
34
34
  } | undefined;
35
35
  readonly numberOfMonths?: number | undefined;
36
- readonly format?: string | undefined;
37
- readonly valueFormat?: string | undefined;
38
36
  readonly rangeSeparatorIcon?: string | undefined;
37
+ readonly format?: string | undefined;
39
38
  readonly startPlaceholder?: readonly [{
40
39
  readonly locale: "zh";
41
40
  readonly message: string;
@@ -50,6 +49,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
50
49
  readonly locale: "en" | "ja" | "ko";
51
50
  readonly message: string;
52
51
  }[]] | undefined;
52
+ readonly valueFormat?: string | undefined;
53
53
  readonly validations?: readonly {
54
54
  readonly message: readonly [{
55
55
  readonly locale: "zh";
@@ -105,9 +105,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
105
105
  readonly expression: string;
106
106
  } | undefined;
107
107
  readonly numberOfMonths?: number | undefined;
108
- readonly format?: string | undefined;
109
- readonly valueFormat?: string | undefined;
110
108
  readonly rangeSeparatorIcon?: string | undefined;
109
+ readonly format?: string | undefined;
111
110
  readonly startPlaceholder?: readonly [{
112
111
  readonly locale: "zh";
113
112
  readonly message: string;
@@ -122,6 +121,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
122
121
  readonly locale: "en" | "ja" | "ko";
123
122
  readonly message: string;
124
123
  }[]] | undefined;
124
+ readonly valueFormat?: string | undefined;
125
125
  readonly validations?: readonly {
126
126
  readonly message: readonly [{
127
127
  readonly locale: "zh";
@@ -33,9 +33,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
33
33
  readonly expression: string;
34
34
  } | undefined;
35
35
  readonly numberOfMonths?: number | undefined;
36
- readonly format?: string | undefined;
37
- readonly valueFormat?: string | undefined;
38
36
  readonly rangeSeparatorIcon?: string | undefined;
37
+ readonly format?: string | undefined;
39
38
  readonly startPlaceholder?: readonly [{
40
39
  readonly locale: "zh";
41
40
  readonly message: string;
@@ -50,6 +49,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
50
49
  readonly locale: "en" | "ja" | "ko";
51
50
  readonly message: string;
52
51
  }[]] | undefined;
52
+ readonly valueFormat?: string | undefined;
53
53
  readonly validations?: readonly {
54
54
  readonly message: readonly [{
55
55
  readonly locale: "zh";
@@ -105,9 +105,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
105
105
  readonly expression: string;
106
106
  } | undefined;
107
107
  readonly numberOfMonths?: number | undefined;
108
- readonly format?: string | undefined;
109
- readonly valueFormat?: string | undefined;
110
108
  readonly rangeSeparatorIcon?: string | undefined;
109
+ readonly format?: string | undefined;
111
110
  readonly startPlaceholder?: readonly [{
112
111
  readonly locale: "zh";
113
112
  readonly message: string;
@@ -122,6 +121,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
122
121
  readonly locale: "en" | "ja" | "ko";
123
122
  readonly message: string;
124
123
  }[]] | undefined;
124
+ readonly valueFormat?: string | undefined;
125
125
  readonly validations?: readonly {
126
126
  readonly message: readonly [{
127
127
  readonly locale: "zh";
@@ -34,10 +34,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
34
34
  } | undefined;
35
35
  readonly numberOfMonths?: number | undefined;
36
36
  readonly hourCycle?: 12 | 24 | undefined;
37
- readonly format?: string | undefined;
38
- readonly valueFormat?: string | undefined;
39
- readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
40
37
  readonly rangeSeparatorIcon?: string | undefined;
38
+ readonly format?: string | undefined;
41
39
  readonly startPlaceholder?: readonly [{
42
40
  readonly locale: "zh";
43
41
  readonly message: string;
@@ -52,6 +50,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
52
50
  readonly locale: "en" | "ja" | "ko";
53
51
  readonly message: string;
54
52
  }[]] | undefined;
53
+ readonly valueFormat?: string | undefined;
54
+ readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
55
55
  readonly validations?: readonly {
56
56
  readonly message: readonly [{
57
57
  readonly locale: "zh";
@@ -108,10 +108,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  } | undefined;
109
109
  readonly numberOfMonths?: number | undefined;
110
110
  readonly hourCycle?: 12 | 24 | undefined;
111
- readonly format?: string | undefined;
112
- readonly valueFormat?: string | undefined;
113
- readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
114
111
  readonly rangeSeparatorIcon?: string | undefined;
112
+ readonly format?: string | undefined;
115
113
  readonly startPlaceholder?: readonly [{
116
114
  readonly locale: "zh";
117
115
  readonly message: string;
@@ -126,6 +124,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
126
124
  readonly locale: "en" | "ja" | "ko";
127
125
  readonly message: string;
128
126
  }[]] | undefined;
127
+ readonly valueFormat?: string | undefined;
128
+ readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
129
129
  readonly validations?: readonly {
130
130
  readonly message: readonly [{
131
131
  readonly locale: "zh";
@@ -34,10 +34,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
34
34
  } | undefined;
35
35
  readonly numberOfMonths?: number | undefined;
36
36
  readonly hourCycle?: 12 | 24 | undefined;
37
- readonly format?: string | undefined;
38
- readonly valueFormat?: string | undefined;
39
- readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
40
37
  readonly rangeSeparatorIcon?: string | undefined;
38
+ readonly format?: string | undefined;
41
39
  readonly startPlaceholder?: readonly [{
42
40
  readonly locale: "zh";
43
41
  readonly message: string;
@@ -52,6 +50,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
52
50
  readonly locale: "en" | "ja" | "ko";
53
51
  readonly message: string;
54
52
  }[]] | undefined;
53
+ readonly valueFormat?: string | undefined;
54
+ readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
55
55
  readonly validations?: readonly {
56
56
  readonly message: readonly [{
57
57
  readonly locale: "zh";
@@ -108,10 +108,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  } | undefined;
109
109
  readonly numberOfMonths?: number | undefined;
110
110
  readonly hourCycle?: 12 | 24 | undefined;
111
- readonly format?: string | undefined;
112
- readonly valueFormat?: string | undefined;
113
- readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
114
111
  readonly rangeSeparatorIcon?: string | undefined;
112
+ readonly format?: string | undefined;
115
113
  readonly startPlaceholder?: readonly [{
116
114
  readonly locale: "zh";
117
115
  readonly message: string;
@@ -126,6 +124,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
126
124
  readonly locale: "en" | "ja" | "ko";
127
125
  readonly message: string;
128
126
  }[]] | undefined;
127
+ readonly valueFormat?: string | undefined;
128
+ readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
129
129
  readonly validations?: readonly {
130
130
  readonly message: readonly [{
131
131
  readonly locale: "zh";
@@ -33,9 +33,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
33
33
  readonly expression: string;
34
34
  } | undefined;
35
35
  readonly hourCycle?: 12 | 24 | undefined;
36
+ readonly rangeSeparatorIcon?: string | undefined;
36
37
  readonly valueFormat?: string | undefined;
37
38
  readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
38
- readonly rangeSeparatorIcon?: string | undefined;
39
39
  readonly validations?: readonly {
40
40
  readonly message: readonly [{
41
41
  readonly locale: "zh";
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
79
79
  readonly expression: string;
80
80
  } | undefined;
81
81
  readonly hourCycle?: 12 | 24 | undefined;
82
+ readonly rangeSeparatorIcon?: string | undefined;
82
83
  readonly valueFormat?: string | undefined;
83
84
  readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
84
- readonly rangeSeparatorIcon?: string | undefined;
85
85
  readonly validations?: readonly {
86
86
  readonly message: readonly [{
87
87
  readonly locale: "zh";
@@ -33,9 +33,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
33
33
  readonly expression: string;
34
34
  } | undefined;
35
35
  readonly hourCycle?: 12 | 24 | undefined;
36
+ readonly rangeSeparatorIcon?: string | undefined;
36
37
  readonly valueFormat?: string | undefined;
37
38
  readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
38
- readonly rangeSeparatorIcon?: string | undefined;
39
39
  readonly validations?: readonly {
40
40
  readonly message: readonly [{
41
41
  readonly locale: "zh";
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
79
79
  readonly expression: string;
80
80
  } | undefined;
81
81
  readonly hourCycle?: 12 | 24 | undefined;
82
+ readonly rangeSeparatorIcon?: string | undefined;
82
83
  readonly valueFormat?: string | undefined;
83
84
  readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
84
- readonly rangeSeparatorIcon?: string | undefined;
85
85
  readonly validations?: readonly {
86
86
  readonly message: readonly [{
87
87
  readonly locale: "zh";
@@ -32,9 +32,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
32
32
  readonly mode: "formula" | "prefill";
33
33
  readonly expression: string;
34
34
  } | undefined;
35
- readonly format?: string | undefined;
36
- readonly valueFormat?: string | undefined;
37
35
  readonly rangeSeparatorIcon?: string | undefined;
36
+ readonly format?: string | undefined;
38
37
  readonly startPlaceholder?: readonly [{
39
38
  readonly locale: "zh";
40
39
  readonly message: string;
@@ -49,6 +48,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
49
48
  readonly locale: "en" | "ja" | "ko";
50
49
  readonly message: string;
51
50
  }[]] | undefined;
51
+ readonly valueFormat?: string | undefined;
52
52
  readonly validations?: readonly {
53
53
  readonly message: readonly [{
54
54
  readonly locale: "zh";
@@ -103,9 +103,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
103
  readonly mode: "formula" | "prefill";
104
104
  readonly expression: string;
105
105
  } | undefined;
106
- readonly format?: string | undefined;
107
- readonly valueFormat?: string | undefined;
108
106
  readonly rangeSeparatorIcon?: string | undefined;
107
+ readonly format?: string | undefined;
109
108
  readonly startPlaceholder?: readonly [{
110
109
  readonly locale: "zh";
111
110
  readonly message: string;
@@ -120,6 +119,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
120
119
  readonly locale: "en" | "ja" | "ko";
121
120
  readonly message: string;
122
121
  }[]] | undefined;
122
+ readonly valueFormat?: string | undefined;
123
123
  readonly validations?: readonly {
124
124
  readonly message: readonly [{
125
125
  readonly locale: "zh";
@@ -32,9 +32,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
32
32
  readonly mode: "formula" | "prefill";
33
33
  readonly expression: string;
34
34
  } | undefined;
35
- readonly format?: string | undefined;
36
- readonly valueFormat?: string | undefined;
37
35
  readonly rangeSeparatorIcon?: string | undefined;
36
+ readonly format?: string | undefined;
38
37
  readonly startPlaceholder?: readonly [{
39
38
  readonly locale: "zh";
40
39
  readonly message: string;
@@ -49,6 +48,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
49
48
  readonly locale: "en" | "ja" | "ko";
50
49
  readonly message: string;
51
50
  }[]] | undefined;
51
+ readonly valueFormat?: string | undefined;
52
52
  readonly validations?: readonly {
53
53
  readonly message: readonly [{
54
54
  readonly locale: "zh";
@@ -103,9 +103,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
103
  readonly mode: "formula" | "prefill";
104
104
  readonly expression: string;
105
105
  } | undefined;
106
- readonly format?: string | undefined;
107
- readonly valueFormat?: string | undefined;
108
106
  readonly rangeSeparatorIcon?: string | undefined;
107
+ readonly format?: string | undefined;
109
108
  readonly startPlaceholder?: readonly [{
110
109
  readonly locale: "zh";
111
110
  readonly message: string;
@@ -120,6 +119,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
120
119
  readonly locale: "en" | "ja" | "ko";
121
120
  readonly message: string;
122
121
  }[]] | undefined;
122
+ readonly valueFormat?: string | undefined;
123
123
  readonly validations?: readonly {
124
124
  readonly message: readonly [{
125
125
  readonly locale: "zh";
@@ -50,28 +50,44 @@ const JSON_VARS = {
50
50
  const disabledModel = computed({
51
51
  get: () => value.value.disabled ?? "",
52
52
  set: (v) => {
53
- if (v === "") delete value.value.disabled;
54
- else value.value.disabled = v;
53
+ if (v === "") {
54
+ const { disabled: _drop, ...rest } = value.value;
55
+ value.value = rest;
56
+ } else {
57
+ value.value = { ...value.value, disabled: v };
58
+ }
55
59
  }
56
60
  });
57
61
  const onChangeModel = computed({
58
62
  get: () => value.value.onChange ?? "",
59
63
  set: (v) => {
60
- if (v === "") delete value.value.onChange;
61
- else value.value.onChange = v;
64
+ if (v === "") {
65
+ const { onChange: _drop, ...rest } = value.value;
66
+ value.value = rest;
67
+ } else {
68
+ value.value = { ...value.value, onChange: v };
69
+ }
62
70
  }
63
71
  });
64
72
  const successMessageModel = computed({
65
73
  get: () => value.value.successMessage ?? "",
66
74
  set: (v) => {
67
- if (v === "") delete value.value.successMessage;
68
- else value.value.successMessage = v;
75
+ if (v === "") {
76
+ const { successMessage: _drop, ...rest } = value.value;
77
+ value.value = rest;
78
+ } else {
79
+ value.value = { ...value.value, successMessage: v };
80
+ }
69
81
  }
70
82
  });
71
83
  const triggers = computed(() => value.value.triggers ?? []);
72
84
  function updateTriggers(next) {
73
- if (next.length === 0) delete value.value.triggers;
74
- else value.value.triggers = next;
85
+ if (next.length === 0) {
86
+ const { triggers: _drop, ...rest } = value.value;
87
+ value.value = rest;
88
+ } else {
89
+ value.value = { ...value.value, triggers: next };
90
+ }
75
91
  }
76
92
  </script>
77
93
 
@@ -92,7 +108,10 @@ function updateTriggers(next) {
92
108
  </template>
93
109
  {{ fieldTitle("title") }}
94
110
  </FieldLabel>
95
- <Locale v-model="value.title" />
111
+ <Locale
112
+ :model-value="value.title"
113
+ @update:model-value="(v) => value = { ...value, title: v }"
114
+ />
96
115
  </Field>
97
116
  <Field orientation="vertical">
98
117
  <FieldLabel class="text-xs text-zinc-500">
@@ -109,8 +128,9 @@ function updateTriggers(next) {
109
128
  {{ fieldTitle("tooltip") }}
110
129
  </FieldLabel>
111
130
  <Locale
112
- v-model="value.tooltip"
131
+ :model-value="value.tooltip"
113
132
  markdown
133
+ @update:model-value="(v) => value = { ...value, tooltip: v }"
114
134
  />
115
135
  </Field>
116
136
  </div>
@@ -130,10 +150,11 @@ function updateTriggers(next) {
130
150
  {{ fieldTitle("accessor") }}
131
151
  </FieldLabel>
132
152
  <ExpressionEditor
133
- v-model="value.accessor"
153
+ :model-value="value.accessor"
134
154
  placeholder="如 row.enabled"
135
155
  result-type="bool"
136
156
  :extra-vars="ROW_VARS"
157
+ @update:model-value="(v) => value = { ...value, accessor: v }"
137
158
  />
138
159
  </Field>
139
160
  <Field orientation="vertical">
@@ -166,7 +187,7 @@ function updateTriggers(next) {
166
187
  <DropdownMenuItem
167
188
  v-for="opt in ALIGN_OPTIONS"
168
189
  :key="opt.value"
169
- @select="value.align = opt.value"
190
+ @select="value = { ...value, align: opt.value }"
170
191
  >
171
192
  <Icon :icon="opt.icon" />
172
193
  {{ opt.label }}
@@ -178,13 +199,13 @@ function updateTriggers(next) {
178
199
  :model-value="value.size"
179
200
  :disabled="value.grow"
180
201
  :min="0"
181
- @update:model-value="(v) => value.size = v"
202
+ @update:model-value="(v) => value = { ...value, size: v }"
182
203
  />
183
204
  <InputGroupAddon align="inline-end">
184
205
  <InputGroupButton
185
206
  :variant="value.grow ? 'primary' : 'ghost'"
186
207
  size="xs"
187
- @click="value.grow = !value.grow"
208
+ @click="value = { ...value, grow: !value.grow }"
188
209
  >
189
210
  <Icon :icon="value.grow ? 'fluent:lock-closed-20-regular' : 'fluent:arrow-autofit-width-20-regular'" />
190
211
  {{ fieldTitle("grow") }}
@@ -299,13 +320,13 @@ function updateTriggers(next) {
299
320
  <InputGroupInput
300
321
  :model-value="value.sortKey"
301
322
  placeholder="例:created_at"
302
- @update:model-value="(v) => value.sortKey = v || void 0"
323
+ @update:model-value="(v) => value = { ...value, sortKey: v || void 0 }"
303
324
  />
304
325
  <InputGroupAddon align="inline-end">
305
326
  <InputGroupButton
306
327
  :variant="value.enableSorting ? 'primary' : 'ghost'"
307
328
  size="xs"
308
- @click="value.enableSorting = !value.enableSorting"
329
+ @click="value = { ...value, enableSorting: !value.enableSorting }"
309
330
  >
310
331
  <Icon :icon="value.enableSorting ? 'fluent:arrow-sort-up-16-regular' : 'fluent:arrow-sort-16-regular'" />
311
332
  {{ fieldTitle("enableSorting") }}