@shwfed/config 2.11.0 → 2.11.1

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 (97) hide show
  1. package/dist/mcp.mjs +42 -5
  2. package/dist/module.json +1 -1
  3. package/dist/preview/assets/{FieldGroup.vue_vue_type_script_setup_true_lang-UfhMyymD.js → FieldGroup.vue_vue_type_script_setup_true_lang-CosmpPSu.js} +1 -1
  4. package/dist/preview/assets/{badge-CJ9IQ3Jx.js → badge-BkYCxTFK.js} +1 -1
  5. package/dist/preview/assets/{config-7V1qHjUk.js → config-74YmXQsH.js} +1 -1
  6. package/dist/preview/assets/{config-uUF-UHPt.js → config-B62b9dMF.js} +1 -1
  7. package/dist/preview/assets/{config-DPX7vGqV.js → config-BHYlKhDX.js} +1 -1
  8. package/dist/preview/assets/{config--Vx4fL61.js → config-Bbbyd5lB.js} +1 -1
  9. package/dist/preview/assets/{config-CQrDCzYN.js → config-BcZe-bR9.js} +1 -1
  10. package/dist/preview/assets/{config-5PPug5mk.js → config-Bt6--diX.js} +1 -1
  11. package/dist/preview/assets/{config-IMd4FZi8.js → config-COr2MFhN.js} +1 -1
  12. package/dist/preview/assets/{config-C_g-FYCR.js → config-CPsd0ppi.js} +1 -1
  13. package/dist/preview/assets/{config-BeRYF_cz.js → config-CYVafGLc.js} +1 -1
  14. package/dist/preview/assets/{config-DpLMetys.js → config-C_Ia1CDq.js} +1 -1
  15. package/dist/preview/assets/{config-DIsAIc7H.js → config-Cbp7aAAw.js} +1 -1
  16. package/dist/preview/assets/{config-BldsYfGM.js → config-Dk9OegYx.js} +1 -1
  17. package/dist/preview/assets/{config-BYktCefJ.js → config-Dt8k1gnT.js} +1 -1
  18. package/dist/preview/assets/{config-N-FdgfwK.js → config-sCP15_0f.js} +1 -1
  19. package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-B_PKfe3G.js → definition.vue_vue_type_script_setup_true_lang-C3NiB99t.js} +1 -1
  20. package/dist/preview/assets/{index-DKWp47QP.js → index-BMOizF8g.js} +1 -1
  21. package/dist/preview/assets/index-C9G8y6qZ.js +1 -0
  22. package/dist/preview/assets/{index-BCl1NN6k.js → index-DjG-VVR4.js} +67 -67
  23. package/dist/preview/assets/{index-8Ph-sFDI.css → index-DqRQ67sX.css} +1 -1
  24. package/dist/preview/assets/{item-XsW7swFt.js → item-C1efxuFt.js} +1 -1
  25. package/dist/preview/assets/{runtime-BeHohaOZ.js → runtime-7z9N9JGG.js} +1 -1
  26. package/dist/preview/assets/{runtime-DQ1TnQ7n.js → runtime-Bpa1zRxG.js} +1 -1
  27. package/dist/preview/assets/{runtime-CpVTGNFZ.js → runtime-Csv04MYG.js} +1 -1
  28. package/dist/preview/assets/{runtime-DY7hr7v1.js → runtime-D0bjM4NL.js} +1 -1
  29. package/dist/preview/assets/{runtime-BiFFwOIl.js → runtime-DoLpKFu-.js} +1 -1
  30. package/dist/preview/assets/{runtime-Dn172S7t.js → runtime-Du0ghzR2.js} +1 -1
  31. package/dist/preview/assets/{runtime-B-ABO0r0.js → runtime-Dz3ZQYdq.js} +1 -1
  32. package/dist/preview/assets/{runtime-bq0hmEXY.js → runtime-Dz7SCudL.js} +1 -1
  33. package/dist/preview/assets/{runtime-JxBzvGnw.js → runtime-LgZuN2Tf.js} +1 -1
  34. package/dist/preview/assets/{runtime-ByArW-jJ.js → runtime-S9eZ2nJS.js} +1 -1
  35. package/dist/preview/assets/{schema-meta-CZ9yXnsa.js → schema-meta-CYKPEnu9.js} +1 -1
  36. package/dist/preview/index.html +2 -2
  37. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/schema.js +10 -1
  38. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.d.vue.ts +2 -2
  39. package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.textarea/config.vue.d.ts +2 -2
  40. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +4 -4
  41. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +4 -4
  42. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +6 -6
  43. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +6 -6
  44. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +2 -2
  45. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +2 -2
  46. package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/schema.js +10 -1
  47. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +22 -22
  48. package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +22 -22
  49. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +4 -4
  50. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +4 -4
  51. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +22 -22
  52. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +22 -22
  53. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +22 -22
  54. package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +22 -22
  55. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +22 -22
  56. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +22 -22
  57. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +22 -22
  58. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +22 -22
  59. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +22 -22
  60. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +22 -22
  61. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +22 -22
  62. package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +22 -22
  63. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.number-input/schema.js +10 -1
  64. package/dist/runtime/components/table/columns/2026-05-20/com.shwfed.table.column.text-input/schema.js +10 -1
  65. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +2 -2
  66. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +2 -2
  67. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +2 -2
  68. package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +2 -2
  69. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +2 -2
  70. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +2 -2
  71. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +2 -2
  72. package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +2 -2
  73. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +2 -2
  74. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +2 -2
  75. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +2 -2
  76. package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +2 -2
  77. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  78. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  79. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  80. package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  81. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
  82. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
  83. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
  84. package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
  85. package/dist/runtime/components/table/columns/2026-06-22/com.shwfed.table.column.date-range-input/schema.js +2 -1
  86. package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +1 -1
  87. package/dist/runtime/components/ui/date-picker/DatePickerInput.vue +9 -2
  88. package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +1 -1
  89. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.d.vue.ts +1 -1
  90. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue.d.ts +1 -1
  91. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.d.vue.ts +1 -1
  92. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue +13 -4
  93. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue.d.ts +1 -1
  94. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.d.vue.ts +2 -2
  95. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue.d.ts +2 -2
  96. package/package.json +1 -1
  97. package/dist/preview/assets/index-Core7vRW.js +0 -1
@@ -1 +1 @@
1
- import{d as B,G as M,H as k,I as y,o as q,c as T,J as V,b as E,K as x,L as i,M as J,N as L,O as s,P,Q as U,R as W,S as z,T as A,U as G,V as g,W as H,X as b,Y as K}from"./index-BCl1NN6k.js";import Q from"./index-DKWp47QP.js";const Y=B({name:"ShwfedBlockAnimatedNumberItem",__name:"item",props:{item:{}},setup(h){const n=h,j=H(),a=x(void 0),m=x(0);function u(){return G(j)}function S(e){if(typeof e=="number"&&Number.isFinite(e))return e;if(typeof e=="string"&&e.trim()!==""){const t=Number(e);return Number.isFinite(t)?t:0}return 0}const d=i(()=>a.value===void 0?g():K(a.value));function v(e){if(!e)return"";try{const t=b(s(e,{...u(),json:d.value}));return t==null?"":String(t)}catch{return""}}const w=i(()=>v(n.item.prefix)),I=i(()=>v(n.item.suffix));function N(e){if(e)try{const t=b(s(e,{...u(),json:d.value}));return t==null?void 0:typeof t=="string"||typeof t=="object"?t:String(t)}catch{return}}const _=i(()=>N(n.item.style));async function r(){const e=n.item.dataSource,t=u(),F=J(function*(){let o=g();e.request&&(o=yield*L(yield*s(e.request,t)));const O=yield*s(e.value,{...t,json:o});return{json:P(o),value:O}});try{const o=await U(W(F,z));a.value=o.json,m.value=S(o.value)}catch(o){console.warn("[shwfed-animated-number] fetch failed",o)}}const l=i(()=>(n.item.pollingInterval??0)>0),C=i(()=>Math.max(1,n.item.pollingInterval??1)*1e3),c=A(),{pause:p,resume:f}=M(()=>{r()},C,{immediate:!1});return k(()=>{r(),l.value&&c.value&&f()}),y(c,e=>{l.value&&(e?(r(),f()):p())}),y(()=>[n.item.dataSource.request??"",n.item.dataSource.value,n.item.pollingInterval??0].join("|"),()=>{r(),l.value&&c.value?f():p()}),(e,t)=>(q(),T(E(Q),{value:m.value,prefix:w.value,suffix:I.value,style:V(_.value)},null,8,["value","prefix","suffix","style"]))}});export{Y as default};
1
+ import{d as B,G as M,H as k,I as y,o as q,c as T,J as V,b as E,K as x,L as i,M as J,N as L,O as s,P,Q as U,R as W,S as z,T as A,U as G,V as g,W as H,X as b,Y as K}from"./index-DjG-VVR4.js";import Q from"./index-BMOizF8g.js";const Y=B({name:"ShwfedBlockAnimatedNumberItem",__name:"item",props:{item:{}},setup(h){const n=h,j=H(),a=x(void 0),m=x(0);function u(){return G(j)}function S(e){if(typeof e=="number"&&Number.isFinite(e))return e;if(typeof e=="string"&&e.trim()!==""){const t=Number(e);return Number.isFinite(t)?t:0}return 0}const d=i(()=>a.value===void 0?g():K(a.value));function v(e){if(!e)return"";try{const t=b(s(e,{...u(),json:d.value}));return t==null?"":String(t)}catch{return""}}const w=i(()=>v(n.item.prefix)),I=i(()=>v(n.item.suffix));function N(e){if(e)try{const t=b(s(e,{...u(),json:d.value}));return t==null?void 0:typeof t=="string"||typeof t=="object"?t:String(t)}catch{return}}const _=i(()=>N(n.item.style));async function r(){const e=n.item.dataSource,t=u(),F=J(function*(){let o=g();e.request&&(o=yield*L(yield*s(e.request,t)));const O=yield*s(e.value,{...t,json:o});return{json:P(o),value:O}});try{const o=await U(W(F,z));a.value=o.json,m.value=S(o.value)}catch(o){console.warn("[shwfed-animated-number] fetch failed",o)}}const l=i(()=>(n.item.pollingInterval??0)>0),C=i(()=>Math.max(1,n.item.pollingInterval??1)*1e3),c=A(),{pause:p,resume:f}=M(()=>{r()},C,{immediate:!1});return k(()=>{r(),l.value&&c.value&&f()}),y(c,e=>{l.value&&(e?(r(),f()):p())}),y(()=>[n.item.dataSource.request??"",n.item.dataSource.value,n.item.pollingInterval??0].join("|"),()=>{r(),l.value&&c.value?f():p()}),(e,t)=>(q(),T(E(Q),{value:m.value,prefix:w.value,suffix:I.value,style:V(_.value)},null,8,["value","prefix","suffix","style"]))}});export{Y as default};
@@ -1 +1 @@
1
- import{d as u,a6 as i,c as l,b as p,L as m,o as d,h as f,a9 as _,aP as k,O as w,U as x,W as g}from"./index-BCl1NN6k.js";const B=u({name:"ShwfedMarkdownItemRuntime",__name:"runtime",props:{config:{}},setup(s){const o=s,{locale:a}=i(),t=g(),c=(e,n)=>w(e,{...x(t),...n}),r=m(()=>{const e=_(o.config.content,a.value)??"";return k(e,c)});return(e,n)=>(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,a6 as i,c as l,b as p,L as m,o as d,h as f,a9 as _,aP as k,O as w,U as x,W as g}from"./index-DjG-VVR4.js";const B=u({name:"ShwfedMarkdownItemRuntime",__name:"runtime",props:{config:{}},setup(s){const o=s,{locale:a}=i(),t=g(),c=(e,n)=>w(e,{...x(t),...n}),r=m(()=>{const e=_(o.config.content,a.value)??"";return k(e,c)});return(e,n)=>(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 s,a6 as B,a_ as M,M as p,a9 as c,a$ as x,X as T,c as N,w as d,b as u,K as S,$ as k,aS as L,b0 as $,o as w,j as F,J as I,a as r,b1 as j,b2 as A,aF as H,W as K,b3 as f,a3 as m,b4 as V}from"./index-BCl1NN6k.js";import{_ as z}from"./definition.vue_vue_type_script_setup_true_lang-B_PKfe3G.js";const Y=s({name:"ShwfedModalLayoutActionRuntime",__name:"runtime",props:{buttonId:{},config:{},buttonTitle:{}},setup(n){const a=n,{locale:l}=B(),v=e=>{},h=K(),i=k(f,void 0),g=L(),o=S(null),C=M(a.buttonId,{close:()=>$(()=>{o.value?.()})},g),_=s({name:"ModalBoundaryBridge",setup(e,{slots:t}){return A(h),m(V,C),i&&m(f,i),()=>t.default?.()}}),b=(e,t)=>H()?.(e,t),E=p(function*(){const e=c(a.config.modalTitle,l.value)??c(a.buttonTitle,l.value)??"",{modal:t,close:y}=yield*x({title:e,width:a.config.modalWidth});o.value=()=>T(y()),yield*t,o.value=null});return(e,t)=>(w(),N(z,{"action-id":n.buttonId,effect:u(E)},{default:d(()=>[F("div",{style:I(n.config.modalMinHeight?`min-height: ${n.config.modalMinHeight}`:void 0)},[r(u(_),null,{default:d(()=>[r(j,{"slot-value":n.config.slot,configure:v,"find-entry":b},null,8,["slot-value"])]),_:1})],4)]),_:1},8,["action-id","effect"]))}});export{Y as default};
1
+ import{d as s,a6 as B,a_ as M,M as p,a9 as c,a$ as x,X as T,c as N,w as d,b as u,K as S,$ as k,aS as L,b0 as $,o as w,j as F,J as I,a as r,b1 as j,b2 as A,aF as H,W as K,b3 as f,a3 as m,b4 as V}from"./index-DjG-VVR4.js";import{_ as z}from"./definition.vue_vue_type_script_setup_true_lang-C3NiB99t.js";const Y=s({name:"ShwfedModalLayoutActionRuntime",__name:"runtime",props:{buttonId:{},config:{},buttonTitle:{}},setup(n){const a=n,{locale:l}=B(),v=e=>{},h=K(),i=k(f,void 0),g=L(),o=S(null),C=M(a.buttonId,{close:()=>$(()=>{o.value?.()})},g),_=s({name:"ModalBoundaryBridge",setup(e,{slots:t}){return A(h),m(V,C),i&&m(f,i),()=>t.default?.()}}),b=(e,t)=>H()?.(e,t),E=p(function*(){const e=c(a.config.modalTitle,l.value)??c(a.buttonTitle,l.value)??"",{modal:t,close:y}=yield*x({title:e,width:a.config.modalWidth});o.value=()=>T(y()),yield*t,o.value=null});return(e,t)=>(w(),N(z,{"action-id":n.buttonId,effect:u(E)},{default:d(()=>[F("div",{style:I(n.config.modalMinHeight?`min-height: ${n.config.modalMinHeight}`:void 0)},[r(u(_),null,{default:d(()=>[r(j,{"slot-value":n.config.slot,configure:v,"find-entry":b},null,8,["slot-value"])]),_:1})],4)]),_:1},8,["action-id","effect"]))}});export{Y as default};
@@ -1 +1 @@
1
- import{d as f,a6 as u,aT as p,aU as d,aO as l,b9 as m,a9 as g,c as x,b as h,O as E,U as _,aS as b,o as B,W as k}from"./index-BCl1NN6k.js";import{_ as C}from"./definition.vue_vue_type_script_setup_true_lang-B_PKfe3G.js";const w=f({name:"ShwfedHttpRequestBatchActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(n){const e=n,{locale:a}=u(),c=k(),s=(t,o)=>E(t,{..._(c),...o}),i=b(),r=p(()=>d(l(i,e.config.before,s),()=>m(e.config.expression,s,{messageExpression:e.config.messageExpression,resultExpression:e.config.resultExpression,continueOnError:e.config.continueOnError,markdown:g(e.config.markdown,a.value)??""})));return(t,o)=>(B(),x(C,{"action-id":n.buttonId,effect:h(r)},null,8,["action-id","effect"]))}});export{w as default};
1
+ import{d as f,a6 as u,aT as p,aU as d,aO as l,b9 as m,a9 as g,c as x,b as h,O as E,U as _,aS as b,o as B,W as k}from"./index-DjG-VVR4.js";import{_ as C}from"./definition.vue_vue_type_script_setup_true_lang-C3NiB99t.js";const w=f({name:"ShwfedHttpRequestBatchActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(n){const e=n,{locale:a}=u(),c=k(),s=(t,o)=>E(t,{..._(c),...o}),i=b(),r=p(()=>d(l(i,e.config.before,s),()=>m(e.config.expression,s,{messageExpression:e.config.messageExpression,resultExpression:e.config.resultExpression,continueOnError:e.config.continueOnError,markdown:g(e.config.markdown,a.value)??""})));return(t,o)=>(B(),x(C,{"action-id":n.buttonId,effect:h(r)},null,8,["action-id","effect"]))}});export{w as default};
@@ -1 +1 @@
1
- import{d as l,b7 as g,aT as A,aW as y,aO as b,c as S,b as _,O as h,U as O,aS as j,b8 as k,W as C,o as B}from"./index-BCl1NN6k.js";import{_ as W}from"./definition.vue_vue_type_script_setup_true_lang-B_PKfe3G.js";const F=l({name:"ShwfedStateWriteActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(s){const a=s,f=C(),c=(e,t)=>h(e,{...O(f),...t}),n=g(),o=n.kind==="form"&&n.parent?n.parent:n,u=j(),m=k((e,t,r)=>{if(Array.isArray(e[t])&&Array.isArray(r))return e[t]=r,!0});function i(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function p(e,t){return i(e)&&i(t)?m({...t},e):t}const d=A(()=>y(c(a.config.expression),e=>{for(const t of Object.keys(e)){const r=p(o.getAt(t),e[t]);o.setAt(t,r)}return b(u,a.config.onSuccess,c)}));return(e,t)=>(B(),S(W,{"action-id":s.buttonId,effect:_(d)},null,8,["action-id","effect"]))}});export{F as default};
1
+ import{d as l,b7 as g,aT as A,aW as y,aO as b,c as S,b as _,O as h,U as O,aS as j,b8 as k,W as C,o as B}from"./index-DjG-VVR4.js";import{_ as W}from"./definition.vue_vue_type_script_setup_true_lang-C3NiB99t.js";const F=l({name:"ShwfedStateWriteActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(s){const a=s,f=C(),c=(e,t)=>h(e,{...O(f),...t}),n=g(),o=n.kind==="form"&&n.parent?n.parent:n,u=j(),m=k((e,t,r)=>{if(Array.isArray(e[t])&&Array.isArray(r))return e[t]=r,!0});function i(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function p(e,t){return i(e)&&i(t)?m({...t},e):t}const d=A(()=>y(c(a.config.expression),e=>{for(const t of Object.keys(e)){const r=p(o.getAt(t),e[t]);o.setAt(t,r)}return b(u,a.config.onSuccess,c)}));return(e,t)=>(B(),S(W,{"action-id":s.buttonId,effect:_(d)},null,8,["action-id","effect"]))}});export{F as default};
@@ -1 +1 @@
1
- import{d as r,aT as f,aO as d,c as u,b as m,aS as p,o as l,O as g,U as h,W as _}from"./index-BCl1NN6k.js";import{_ as C}from"./definition.vue_vue_type_script_setup_true_lang-B_PKfe3G.js";const B=r({name:"ShwfedEventDispatchActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const c=e,s=_(),a=(n,t)=>g(n,{...h(s),...t}),o=p(),i=f(()=>d(o,c.config.triggers,a));return(n,t)=>(l(),u(C,{"action-id":e.buttonId,effect:m(i)},null,8,["action-id","effect"]))}});export{B as default};
1
+ import{d as r,aT as f,aO as d,c as u,b as m,aS as p,o as l,O as g,U as h,W as _}from"./index-DjG-VVR4.js";import{_ as C}from"./definition.vue_vue_type_script_setup_true_lang-C3NiB99t.js";const B=r({name:"ShwfedEventDispatchActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const c=e,s=_(),a=(n,t)=>g(n,{...h(s),...t}),o=p(),i=f(()=>d(o,c.config.triggers,a));return(n,t)=>(l(),u(C,{"action-id":e.buttonId,effect:m(i)},null,8,["action-id","effect"]))}});export{B as default};
@@ -1 +1 @@
1
- import{d as f,a6 as g,M as l,aO as u,a9 as d,aP as p,aQ as m,aR as x,c as E,b as _,O as h,U as w,aS as C,W as b,o as k}from"./index-BCl1NN6k.js";import{_ as I}from"./definition.vue_vue_type_script_setup_true_lang-B_PKfe3G.js";const B=f({name:"ShwfedHttpRequestConfirmActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(c){const n=c,{locale:i}=g(),a=b(),s=(e,o)=>h(e,{...w(a),...o}),t=C(),r=l(function*(){yield*u(t,n.config.before,s);const e=d(n.config.markdown,i.value)??"",o=p(e,s);(yield*m({content:o,icon:n.config.icon,color:n.config.color}))||(yield*x(n.config.expression,s,{messageExpression:n.config.messageExpression,resultExpression:n.config.resultExpression,channel:t,triggers:{success:n.config.onSuccess,warning:n.config.onWarning,error:n.config.onError,info:n.config.onInfo}}))});return(e,o)=>(k(),E(I,{"action-id":c.buttonId,effect:_(r)},null,8,["action-id","effect"]))}});export{B as default};
1
+ import{d as f,a6 as g,M as l,aO as u,a9 as d,aP as p,aQ as m,aR as x,c as E,b as _,O as h,U as w,aS as C,W as b,o as k}from"./index-DjG-VVR4.js";import{_ as I}from"./definition.vue_vue_type_script_setup_true_lang-C3NiB99t.js";const B=f({name:"ShwfedHttpRequestConfirmActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(c){const n=c,{locale:i}=g(),a=b(),s=(e,o)=>h(e,{...w(a),...o}),t=C(),r=l(function*(){yield*u(t,n.config.before,s);const e=d(n.config.markdown,i.value)??"",o=p(e,s);(yield*m({content:o,icon:n.config.icon,color:n.config.color}))||(yield*x(n.config.expression,s,{messageExpression:n.config.messageExpression,resultExpression:n.config.resultExpression,channel:t,triggers:{success:n.config.onSuccess,warning:n.config.onWarning,error:n.config.onError,info:n.config.onInfo}}))});return(e,o)=>(k(),E(I,{"action-id":c.buttonId,effect:_(r)},null,8,["action-id","effect"]))}});export{B as default};
@@ -1 +1 @@
1
- import{d as f,aT as u,aW as d,aX as l,aY as m,c as p,b as w,aZ as _,O as g,U as h,W as b,o as x}from"./index-BCl1NN6k.js";import{_ as k}from"./definition.vue_vue_type_script_setup_true_lang-B_PKfe3G.js";const C=f({name:"ShwfedNavigationActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(t){const o=t,a=_(),i=b(),c=(n,e)=>g(n,{...h(i),...e});function s(n){try{return new URL(n,window.location.href).origin!==window.location.origin}catch{return!1}}const r=u(()=>d(c(o.config.url),n=>l(async()=>{const e=s(n);if(o.config.mode==="_blank"){window.open(e?n:a.resolve(n).href,"_blank");return}await m(n)})));return(n,e)=>(x(),p(k,{"action-id":t.buttonId,effect:w(r)},null,8,["action-id","effect"]))}});export{C as default};
1
+ import{d as f,aT as u,aW as d,aX as l,aY as m,c as p,b as w,aZ as _,O as g,U as h,W as b,o as x}from"./index-DjG-VVR4.js";import{_ as k}from"./definition.vue_vue_type_script_setup_true_lang-C3NiB99t.js";const C=f({name:"ShwfedNavigationActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(t){const o=t,a=_(),i=b(),c=(n,e)=>g(n,{...h(i),...e});function s(n){try{return new URL(n,window.location.href).origin!==window.location.origin}catch{return!1}}const r=u(()=>d(c(o.config.url),n=>l(async()=>{const e=s(n);if(o.config.mode==="_blank"){window.open(e?n:a.resolve(n).href,"_blank");return}await m(n)})));return(n,e)=>(x(),p(k,{"action-id":t.buttonId,effect:w(r)},null,8,["action-id","effect"]))}});export{C as default};
@@ -1 +1 @@
1
- import{d as h,aT as S,M as _,b0 as r,aO as m,b5 as E,b6 as j,c as v,b as x,O as B,U as L,aS as k,W as C,o as O}from"./index-BCl1NN6k.js";import{_ as R}from"./definition.vue_vue_type_script_setup_true_lang-B_PKfe3G.js";const q=h({name:"ShwfedHttpDownloadActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(d){const c=d,g=C(),t=(e,n)=>B(e,{...L(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,t)}const a={json:yield*u.json()},i=o===void 0?"success":yield*E(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 b=yield*(yield*t(e.download,a)).file();yield*r(()=>f(b))}const w={success:c.config.onSuccess,warning:c.config.onWarning,error:c.config.onError,info:c.config.onInfo};return yield*m(l,w[i],t)}));return(e,n)=>(O(),v(R,{"action-id":d.buttonId,effect:x(y)},null,8,["action-id","effect"]))}});export{q as default};
1
+ import{d as h,aT as S,M as _,b0 as r,aO as m,b5 as E,b6 as j,c as v,b as x,O as B,U as L,aS as k,W as C,o as O}from"./index-DjG-VVR4.js";import{_ as R}from"./definition.vue_vue_type_script_setup_true_lang-C3NiB99t.js";const q=h({name:"ShwfedHttpDownloadActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(d){const c=d,g=C(),t=(e,n)=>B(e,{...L(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,t)}const a={json:yield*u.json()},i=o===void 0?"success":yield*E(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 b=yield*(yield*t(e.download,a)).file();yield*r(()=>f(b))}const w={success:c.config.onSuccess,warning:c.config.onWarning,error:c.config.onError,info:c.config.onInfo};return yield*m(l,w[i],t)}));return(e,n)=>(O(),v(R,{"action-id":d.buttonId,effect:x(y)},null,8,["action-id","effect"]))}});export{q as default};
@@ -1 +1 @@
1
- import{d as r,aT as f,aU as u,aO as g,aR as p,c as d,b as m,O as l,U as x,aS as h,W as E,o as _}from"./index-BCl1NN6k.js";import{_ as b}from"./definition.vue_vue_type_script_setup_true_lang-B_PKfe3G.js";const B=r({name:"ShwfedHttpRequestActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(n){const e=n,i=E(),s=(t,c)=>l(t,{...x(i),...c}),o=h(),a=f(()=>u(g(o,e.config.before,s),()=>p(e.config.expression,s,{messageExpression:e.config.messageExpression,resultExpression:e.config.resultExpression,channel:o,triggers:{success:e.config.onSuccess,warning:e.config.onWarning,error:e.config.onError,info:e.config.onInfo}})));return(t,c)=>(_(),d(b,{"action-id":n.buttonId,effect:m(a)},null,8,["action-id","effect"]))}});export{B as default};
1
+ import{d as r,aT as f,aU as u,aO as g,aR as p,c as d,b as m,O as l,U as x,aS as h,W as E,o as _}from"./index-DjG-VVR4.js";import{_ as b}from"./definition.vue_vue_type_script_setup_true_lang-C3NiB99t.js";const B=r({name:"ShwfedHttpRequestActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(n){const e=n,i=E(),s=(t,c)=>l(t,{...x(i),...c}),o=h(),a=f(()=>u(g(o,e.config.before,s),()=>p(e.config.expression,s,{messageExpression:e.config.messageExpression,resultExpression:e.config.resultExpression,channel:o,triggers:{success:e.config.onSuccess,warning:e.config.onWarning,error:e.config.onError,info:e.config.onInfo}})));return(t,c)=>(_(),d(b,{"action-id":n.buttonId,effect:m(a)},null,8,["action-id","effect"]))}});export{B as default};
@@ -1 +1 @@
1
- import{_ as o}from"./definition.vue_vue_type_script_setup_true_lang-B_PKfe3G.js";import{d as n,c,b as a,o as f,aV as i}from"./index-BCl1NN6k.js";const _=n({name:"ShwfedPrototypeActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(t){const e=i;return(r,s)=>(f(),c(o,{"action-id":t.buttonId,effect:a(e)},null,8,["action-id","effect"]))}});export{_ as default};
1
+ import{_ as o}from"./definition.vue_vue_type_script_setup_true_lang-C3NiB99t.js";import{d as n,c,b as a,o as f,aV as i}from"./index-DjG-VVR4.js";const _=n({name:"ShwfedPrototypeActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(t){const e=i;return(r,s)=>(f(),c(o,{"action-id":t.buttonId,effect:a(e)},null,8,["action-id","effect"]))}});export{_ as default};
@@ -1 +1 @@
1
- import{C as o,D as l,E as d}from"./index-BCl1NN6k.js";function i(n){switch(n._tag){case"TypeLiteral":return n;case"Transformation":return i(n.to);case"Refinement":return i(n.from);case"Suspend":return i(n.f());default:return null}}function p(n,t){const e=i(n.ast);return e?e.propertySignatures.find(r=>r.name===t)??null:null}function y(n){const t=n.type;if(t._tag==="Union"&&n.isOptional){const e=t.types.find(r=>r._tag!=="UndefinedKeyword");if(e)return e}return t}function c(n,t,e){const r=p(n,t);if(!r)return;const u=e(r);if(o(u))return u.value;const f=y(r),s=e(f);if(o(s))return s.value;if(f!==r.type){const a=e(r.type);if(o(a))return a.value}}function m(n,t){return c(n,t,l)}function v(n,t){return c(n,t,d)}export{v as a,m as g};
1
+ import{C as o,D as l,E as d}from"./index-DjG-VVR4.js";function i(n){switch(n._tag){case"TypeLiteral":return n;case"Transformation":return i(n.to);case"Refinement":return i(n.from);case"Suspend":return i(n.f());default:return null}}function p(n,t){const e=i(n.ast);return e?e.propertySignatures.find(r=>r.name===t)??null:null}function y(n){const t=n.type;if(t._tag==="Union"&&n.isOptional){const e=t.types.find(r=>r._tag!=="UndefinedKeyword");if(e)return e}return t}function c(n,t,e){const r=p(n,t);if(!r)return;const u=e(r);if(o(u))return u.value;const f=y(r),s=e(f);if(o(s))return s.value;if(f!==r.type){const a=e(r.type);if(o(a))return a.value}}function m(n,t){return c(n,t,l)}function v(n,t){return c(n,t,d)}export{v as a,m as g};
@@ -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-BCl1NN6k.js"></script>
14
- <link rel="stylesheet" crossorigin href="./assets/index-8Ph-sFDI.css">
13
+ <script type="module" crossorigin src="./assets/index-DjG-VVR4.js"></script>
14
+ <link rel="stylesheet" crossorigin href="./assets/index-DqRQ67sX.css">
15
15
  </head>
16
16
  <body>
17
17
  <div id="app"></div>
@@ -54,7 +54,16 @@ export function schema(configure) {
54
54
  description: "\u8FD4\u56DE `true` \u65F6\u4EC5\u4EE5\u7EAF\u6587\u672C\u5C55\u793A\u5F53\u524D\u503C"
55
55
  })),
56
56
  derived: derivedField(configure, "string"),
57
- addon: Schema.optional(AddonActions(configure))
57
+ // `Schema.optional` rebuilds the struct's union member, and because the
58
+ // `optionalWith`-default fields make `AddonActions` a `Transformation`, the
59
+ // inner struct's `title`/`description` don't survive onto the rebuilt
60
+ // member. The config editor's `getStructFieldTitle('addon')` would then fall
61
+ // back to the raw key "addon". Re-state them on the property signature,
62
+ // which the meta reader checks before the field type.
63
+ addon: Schema.optional(AddonActions(configure)).annotations({
64
+ title: "\u8F93\u5165\u6846\u5185\u6309\u94AE",
65
+ description: "\u5728\u8F93\u5165\u6846\u53F3\u4FA7\u5185\u5D4C\u4E00\u7EC4\u64CD\u4F5C\u6309\u94AE"
66
+ })
58
67
  }).annotations({
59
68
  title: "TextField",
60
69
  description: "\u5355\u884C\u6587\u672C\u8F93\u5165"
@@ -39,6 +39,7 @@ 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 maxLength?: number | undefined;
42
43
  readonly validations?: readonly {
43
44
  readonly message: readonly [{
44
45
  readonly locale: "zh";
@@ -50,7 +51,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
50
51
  readonly warning?: boolean | undefined;
51
52
  readonly when: string;
52
53
  }[] | undefined;
53
- readonly maxLength?: number | undefined;
54
54
  }) => any;
55
55
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
56
56
  "onUpdate:modelValue"?: ((value: {
@@ -89,6 +89,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
89
89
  readonly mode: "formula" | "prefill";
90
90
  readonly expression: string;
91
91
  } | undefined;
92
+ readonly maxLength?: number | undefined;
92
93
  readonly validations?: readonly {
93
94
  readonly message: readonly [{
94
95
  readonly locale: "zh";
@@ -100,7 +101,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
100
101
  readonly warning?: boolean | undefined;
101
102
  readonly when: string;
102
103
  }[] | undefined;
103
- readonly maxLength?: number | undefined;
104
104
  }) => any) | undefined;
105
105
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
106
106
  declare const _default: typeof __VLS_export;
@@ -39,6 +39,7 @@ 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 maxLength?: number | undefined;
42
43
  readonly validations?: readonly {
43
44
  readonly message: readonly [{
44
45
  readonly locale: "zh";
@@ -50,7 +51,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
50
51
  readonly warning?: boolean | undefined;
51
52
  readonly when: string;
52
53
  }[] | undefined;
53
- readonly maxLength?: number | undefined;
54
54
  }) => any;
55
55
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
56
56
  "onUpdate:modelValue"?: ((value: {
@@ -89,6 +89,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
89
89
  readonly mode: "formula" | "prefill";
90
90
  readonly expression: string;
91
91
  } | undefined;
92
+ readonly maxLength?: number | undefined;
92
93
  readonly validations?: readonly {
93
94
  readonly message: readonly [{
94
95
  readonly locale: "zh";
@@ -100,7 +101,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
100
101
  readonly warning?: boolean | undefined;
101
102
  readonly when: string;
102
103
  }[] | undefined;
103
- readonly maxLength?: number | undefined;
104
104
  }) => any) | undefined;
105
105
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
106
106
  declare const _default: typeof __VLS_export;
@@ -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";
@@ -79,7 +79,16 @@ export function schema(configure) {
79
79
  title: "\u6700\u5927\u503C",
80
80
  description: "\u5141\u8BB8\u8F93\u5165\u7684\u6700\u5927\u503C\u8868\u8FBE\u5F0F\uFF1B\u7559\u7A7A\u65F6\u4E0D\u9650\u5236\u4E0A\u9650"
81
81
  })),
82
- addon: Schema.optional(AddonActions(configure))
82
+ // `Schema.optional` rebuilds the struct's union member, and because the
83
+ // `optionalWith`-default fields make `AddonActions` a `Transformation`, the
84
+ // inner struct's `title`/`description` don't survive onto the rebuilt
85
+ // member. The config editor's `getStructFieldTitle('addon')` would then fall
86
+ // back to the raw key "addon". Re-state them on the property signature,
87
+ // which the meta reader checks before the field type.
88
+ addon: Schema.optional(AddonActions(configure)).annotations({
89
+ title: "\u8F93\u5165\u6846\u5185\u6309\u94AE",
90
+ description: "\u5728\u8F93\u5165\u6846\u53F3\u4FA7\u5185\u5D4C\u4E00\u7EC4\u64CD\u4F5C\u6309\u94AE"
91
+ })
83
92
  }).annotations({
84
93
  title: "NumberField",
85
94
  description: "\u6570\u503C\u8F93\u5165"
@@ -47,6 +47,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
47
47
  readonly request?: string | undefined;
48
48
  };
49
49
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
50
+ readonly validations?: readonly {
51
+ readonly message: readonly [{
52
+ readonly locale: "zh";
53
+ readonly message: string;
54
+ }, ...{
55
+ readonly locale: "en" | "ja" | "ko";
56
+ readonly message: string;
57
+ }[]];
58
+ readonly warning?: boolean | undefined;
59
+ readonly when: string;
60
+ }[] | undefined;
50
61
  readonly nodeKey: string;
51
62
  readonly nodeChildren: string;
52
63
  readonly nodeLabel: readonly [{
@@ -65,17 +76,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
65
76
  }[]] | undefined;
66
77
  readonly nodeSelectable?: string | undefined;
67
78
  readonly expandAll: boolean;
68
- readonly validations?: readonly {
69
- readonly message: readonly [{
70
- readonly locale: "zh";
71
- readonly message: string;
72
- }, ...{
73
- readonly locale: "en" | "ja" | "ko";
74
- readonly message: string;
75
- }[]];
76
- readonly warning?: boolean | undefined;
77
- readonly when: string;
78
- }[] | undefined;
79
79
  }) => any;
80
80
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
81
81
  "onUpdate:modelValue"?: ((value: {
@@ -122,6 +122,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
122
122
  readonly request?: string | undefined;
123
123
  };
124
124
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
125
+ readonly validations?: readonly {
126
+ readonly message: readonly [{
127
+ readonly locale: "zh";
128
+ readonly message: string;
129
+ }, ...{
130
+ readonly locale: "en" | "ja" | "ko";
131
+ readonly message: string;
132
+ }[]];
133
+ readonly warning?: boolean | undefined;
134
+ readonly when: string;
135
+ }[] | undefined;
125
136
  readonly nodeKey: string;
126
137
  readonly nodeChildren: string;
127
138
  readonly nodeLabel: readonly [{
@@ -140,17 +151,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
140
151
  }[]] | undefined;
141
152
  readonly nodeSelectable?: string | undefined;
142
153
  readonly expandAll: boolean;
143
- readonly validations?: readonly {
144
- readonly message: readonly [{
145
- readonly locale: "zh";
146
- readonly message: string;
147
- }, ...{
148
- readonly locale: "en" | "ja" | "ko";
149
- readonly message: string;
150
- }[]];
151
- readonly warning?: boolean | undefined;
152
- readonly when: string;
153
- }[] | undefined;
154
154
  }) => any) | undefined;
155
155
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
156
156
  declare const _default: typeof __VLS_export;
@@ -47,6 +47,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
47
47
  readonly request?: string | undefined;
48
48
  };
49
49
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
50
+ readonly validations?: readonly {
51
+ readonly message: readonly [{
52
+ readonly locale: "zh";
53
+ readonly message: string;
54
+ }, ...{
55
+ readonly locale: "en" | "ja" | "ko";
56
+ readonly message: string;
57
+ }[]];
58
+ readonly warning?: boolean | undefined;
59
+ readonly when: string;
60
+ }[] | undefined;
50
61
  readonly nodeKey: string;
51
62
  readonly nodeChildren: string;
52
63
  readonly nodeLabel: readonly [{
@@ -65,17 +76,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
65
76
  }[]] | undefined;
66
77
  readonly nodeSelectable?: string | undefined;
67
78
  readonly expandAll: boolean;
68
- readonly validations?: readonly {
69
- readonly message: readonly [{
70
- readonly locale: "zh";
71
- readonly message: string;
72
- }, ...{
73
- readonly locale: "en" | "ja" | "ko";
74
- readonly message: string;
75
- }[]];
76
- readonly warning?: boolean | undefined;
77
- readonly when: string;
78
- }[] | undefined;
79
79
  }) => any;
80
80
  }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
81
81
  "onUpdate:modelValue"?: ((value: {
@@ -122,6 +122,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
122
122
  readonly request?: string | undefined;
123
123
  };
124
124
  readonly cascade: "independent" | "cascade-down" | "cascade-both";
125
+ readonly validations?: readonly {
126
+ readonly message: readonly [{
127
+ readonly locale: "zh";
128
+ readonly message: string;
129
+ }, ...{
130
+ readonly locale: "en" | "ja" | "ko";
131
+ readonly message: string;
132
+ }[]];
133
+ readonly warning?: boolean | undefined;
134
+ readonly when: string;
135
+ }[] | undefined;
125
136
  readonly nodeKey: string;
126
137
  readonly nodeChildren: string;
127
138
  readonly nodeLabel: readonly [{
@@ -140,17 +151,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
140
151
  }[]] | undefined;
141
152
  readonly nodeSelectable?: string | undefined;
142
153
  readonly expandAll: boolean;
143
- readonly validations?: readonly {
144
- readonly message: readonly [{
145
- readonly locale: "zh";
146
- readonly message: string;
147
- }, ...{
148
- readonly locale: "en" | "ja" | "ko";
149
- readonly message: string;
150
- }[]];
151
- readonly warning?: boolean | undefined;
152
- readonly when: string;
153
- }[] | undefined;
154
154
  }) => any) | undefined;
155
155
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
156
156
  declare const _default: typeof __VLS_export;
@@ -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";