@shwfed/config 2.10.5 → 2.10.6
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.
- package/dist/mcp.mjs +10 -0
- package/dist/module.json +1 -1
- package/dist/preview/assets/{FieldGroup.vue_vue_type_script_setup_true_lang-D-COryaS.js → FieldGroup.vue_vue_type_script_setup_true_lang-DoTYH4r0.js} +1 -1
- package/dist/preview/assets/{badge-Sb01O_E2.js → badge-DigodVby.js} +1 -1
- package/dist/preview/assets/{config-Du8kzY9H.js → config-BFLui9zF.js} +1 -1
- package/dist/preview/assets/{config-BjSI3yTw.js → config-BiRUzXVx.js} +1 -1
- package/dist/preview/assets/{config-D6BiWm3q.js → config-Bjb63ooF.js} +1 -1
- package/dist/preview/assets/{config-Cz3VQcLY.js → config-C1-hX0FZ.js} +1 -1
- package/dist/preview/assets/{config-CtKXZjQl.js → config-CNjSJQmf.js} +1 -1
- package/dist/preview/assets/{config-n4AGAnL-.js → config-Cn5zWISv.js} +1 -1
- package/dist/preview/assets/{config-CEM0BCax.js → config-D3BYzFT7.js} +1 -1
- package/dist/preview/assets/{config-BgJWNJ-L.js → config-DOqjxDka.js} +1 -1
- package/dist/preview/assets/{config-DK0wxXG_.js → config-GquBxa0k.js} +1 -1
- package/dist/preview/assets/{config-DA1Knc1V.js → config-WRBBSsbf.js} +1 -1
- package/dist/preview/assets/{config-99L3dMcP.js → config-Yzim7dYM.js} +1 -1
- package/dist/preview/assets/{config-CyRpAiSg.js → config-dwZBY29w.js} +1 -1
- package/dist/preview/assets/{config-BzMW9qCl.js → config-fj68oKtH.js} +1 -1
- package/dist/preview/assets/{config-DGBuMIqU.js → config-ia-gXiHl.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-BtOF0dda.js → definition.vue_vue_type_script_setup_true_lang-DLRdfLnh.js} +1 -1
- package/dist/preview/assets/index-5uVTbNBd.js +1 -0
- package/dist/preview/assets/{index-BZlqSG2R.js → index-ByDPdF8R.js} +196 -196
- package/dist/preview/assets/{index-BOnw60vg.js → index-DjPejdGe.js} +1 -1
- package/dist/preview/assets/{index-D3Az3yzR.css → index-DyMqqPo8.css} +1 -1
- package/dist/preview/assets/{item-D7avZRKo.js → item-D1eyfO0S.js} +1 -1
- package/dist/preview/assets/{runtime-D-HZWcV-.js → runtime-BDsoGLTr.js} +1 -1
- package/dist/preview/assets/{runtime-DMsPs0Pz.js → runtime-BnmMh817.js} +1 -1
- package/dist/preview/assets/{runtime-Dxb1-gUN.js → runtime-CeWW9OWp.js} +1 -1
- package/dist/preview/assets/{runtime-Dhl0NpTL.js → runtime-CersyeE4.js} +1 -1
- package/dist/preview/assets/{runtime-C9kOkTYc.js → runtime-D2v11Q9f.js} +1 -1
- package/dist/preview/assets/{runtime-CSrgcLuC.js → runtime-DDLzkTJO.js} +1 -1
- package/dist/preview/assets/{runtime-BWlX7BAG.js → runtime-DVt270HE.js} +1 -1
- package/dist/preview/assets/{runtime-Bek88ifk.js → runtime-DlviPSYa.js} +1 -1
- package/dist/preview/assets/{runtime-DOqVHcvv.js → runtime-PGalcWzI.js} +1 -1
- package/dist/preview/assets/{runtime-CWTz9Iy4.js → runtime-uMgaWxns.js} +1 -1
- package/dist/preview/assets/{schema-meta-DXS0vi6v.js → schema-meta-DudoTEwn.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/runtime.vue +17 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.d.ts +1 -0
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.table/schema.js +5 -0
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/runtime.vue +1 -0
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.d.ts +1 -0
- package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.js +5 -0
- package/dist/runtime/components/config/config.vue +5 -0
- package/dist/runtime/components/config/index.vue +17 -1
- package/dist/runtime/components/config/utils/resolve.d.ts +10 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +28 -28
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +28 -28
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +6 -6
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +6 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -2
- package/dist/runtime/components/table/columns/2026-06-14/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -2
- package/package.json +1 -1
- package/dist/preview/assets/index-Rj5bF6fM.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-
|
|
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-ByDPdF8R.js";import Q from"./index-DjPejdGe.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 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-
|
|
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-ByDPdF8R.js";import{_ as R}from"./definition.vue_vue_type_script_setup_true_lang-DLRdfLnh.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-
|
|
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-ByDPdF8R.js";import{_ as b}from"./definition.vue_vue_type_script_setup_true_lang-DLRdfLnh.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{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-
|
|
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-ByDPdF8R.js";import{_ as C}from"./definition.vue_vue_type_script_setup_true_lang-DLRdfLnh.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{_ as o}from"./definition.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import{_ as o}from"./definition.vue_vue_type_script_setup_true_lang-DLRdfLnh.js";import{d as n,c,b as a,o as f,aV as i}from"./index-ByDPdF8R.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{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-
|
|
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-ByDPdF8R.js";import{_ as C}from"./definition.vue_vue_type_script_setup_true_lang-DLRdfLnh.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 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-
|
|
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-ByDPdF8R.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 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-
|
|
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-ByDPdF8R.js";import{_ as I}from"./definition.vue_vue_type_script_setup_true_lang-DLRdfLnh.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 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-
|
|
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-ByDPdF8R.js";import{_ as W}from"./definition.vue_vue_type_script_setup_true_lang-DLRdfLnh.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 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-
|
|
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-ByDPdF8R.js";import{_ as z}from"./definition.vue_vue_type_script_setup_true_lang-DLRdfLnh.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,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-
|
|
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-ByDPdF8R.js";import{_ as k}from"./definition.vue_vue_type_script_setup_true_lang-DLRdfLnh.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{C as o,D as l,E as d}from"./index-
|
|
1
|
+
import{C as o,D as l,E as d}from"./index-ByDPdF8R.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};
|
package/dist/preview/index.html
CHANGED
|
@@ -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-
|
|
14
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
13
|
+
<script type="module" crossorigin src="./assets/index-ByDPdF8R.js"></script>
|
|
14
|
+
<link rel="stylesheet" crossorigin href="./assets/index-DyMqqPo8.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
17
17
|
<div id="app"></div>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { computed } from "vue";
|
|
2
|
+
import { computed, useTemplateRef } from "vue";
|
|
3
3
|
import TableRuntime from "../../../../table/index.vue";
|
|
4
|
+
import { publishSelection } from "../../../../../utils/selections-registry";
|
|
4
5
|
defineOptions({ name: "ShwfedBlockTableRuntime" });
|
|
5
6
|
const block = defineModel("block", { type: null, ...{ required: true } });
|
|
6
7
|
const tableConfig = computed({
|
|
@@ -10,8 +11,22 @@ const tableConfig = computed({
|
|
|
10
11
|
block.value = { ...block.value, table: next };
|
|
11
12
|
}
|
|
12
13
|
});
|
|
14
|
+
const tableRef = useTemplateRef("tableRef");
|
|
15
|
+
const selectedRows = computed(() => {
|
|
16
|
+
const rows = tableRef.value?.getSelectedRowModel().rows;
|
|
17
|
+
if (!rows || rows.length === 0) return void 0;
|
|
18
|
+
return { keys: rows.map((r) => r.id), rows: rows.map((r) => r.original) };
|
|
19
|
+
});
|
|
20
|
+
publishSelection(
|
|
21
|
+
block.value.id,
|
|
22
|
+
() => selectedRows.value,
|
|
23
|
+
{ identity: (v) => JSON.stringify(v.keys), raw: (v) => v.rows }
|
|
24
|
+
);
|
|
13
25
|
</script>
|
|
14
26
|
|
|
15
27
|
<template>
|
|
16
|
-
<TableRuntime
|
|
28
|
+
<TableRuntime
|
|
29
|
+
ref="tableRef"
|
|
30
|
+
v-model:config="tableConfig"
|
|
31
|
+
/>
|
|
17
32
|
</template>
|
|
@@ -5,6 +5,11 @@ export const compatibilityDate = "2026-05-06";
|
|
|
5
5
|
export const metadata = {
|
|
6
6
|
name: "\u8868\u683C",
|
|
7
7
|
icon: "fluent:table-20-regular",
|
|
8
|
+
// Publishes the table's selected rows to the page `selections` registry
|
|
9
|
+
// under this block's id (see `runtime.vue`'s `publishSelection`), so a
|
|
10
|
+
// sibling block can read `selections["<block-id>"]` — the array of selected
|
|
11
|
+
// row records. The flag lists it in the page-level selection roster.
|
|
12
|
+
selection: true,
|
|
8
13
|
w: { initial: 32, min: 12, max: Infinity },
|
|
9
14
|
// `grow: true`: the table's height is content-driven, so its row escapes the
|
|
10
15
|
// grid's `1fr` equal-share (bare `auto`) and the table grows top-anchored from
|
package/dist/runtime/components/config/blocks/2026-06-17/com.shwfed.block.tree.single/schema.js
CHANGED
|
@@ -9,6 +9,11 @@ export const compatibilityDate = "2026-06-17";
|
|
|
9
9
|
export const metadata = {
|
|
10
10
|
name: "\u6811\uFF08\u5355\u9009\uFF09",
|
|
11
11
|
icon: "fluent:tree-evergreen-20-regular",
|
|
12
|
+
// Publishes the picked node to the page `selections` registry under this
|
|
13
|
+
// block's id (see `runtime.vue`'s `publishSelection`), so a sibling block
|
|
14
|
+
// can read `selections["<block-id>"]`. The flag lists it in the page-level
|
|
15
|
+
// selection roster (config/config.vue).
|
|
16
|
+
selection: true,
|
|
12
17
|
w: { initial: 12, min: 6, max: Infinity },
|
|
13
18
|
// `grow: true`: the tree's height is content-driven (nodes expand/collapse),
|
|
14
19
|
// so its row escapes the grid's `1fr` equal-share (bare `auto`) and the tree
|
|
@@ -12,6 +12,7 @@ import { Markdown } from "../ui/markdown";
|
|
|
12
12
|
import { ScrollArea } from "../ui/scroll-area";
|
|
13
13
|
import { Separator } from "../ui/separator";
|
|
14
14
|
import { provideEventAncestor } from "../../share/event-bus";
|
|
15
|
+
import { provideSelectionRoster } from "../../utils/cel-context";
|
|
15
16
|
import { BREADCRUMB_EXTENSION_KEY } from "./breadcrumb-extension";
|
|
16
17
|
import { PAGE_TARGET_ID, PageConfig, getStructFieldDescription, getStructFieldTitle, metadata as pageMetadata } from "./schema";
|
|
17
18
|
import { useSlotClipboard } from "./use-editor";
|
|
@@ -89,6 +90,10 @@ const pageEventAncestor = computed(() => ({
|
|
|
89
90
|
operations: pageMetadata.operations
|
|
90
91
|
}));
|
|
91
92
|
provideEventAncestor(pageEventAncestor);
|
|
93
|
+
const selectionRoster = computed(
|
|
94
|
+
() => props.state.blocks.value.filter((b) => props.state.findBlockMeta(b.type, b.compatibilityDate)?.metadata?.selection).map((b) => ({ id: b.id, name: props.state.getBlockLabel(b) }))
|
|
95
|
+
);
|
|
96
|
+
provideSelectionRoster(selectionRoster);
|
|
92
97
|
const sidebarRef = useTemplateRef("sidebarRef");
|
|
93
98
|
function addLayout() {
|
|
94
99
|
sidebarRef.value?.addLayout();
|
|
@@ -6,7 +6,8 @@ import { useI18n } from "vue-i18n";
|
|
|
6
6
|
import { useHead } from "#app";
|
|
7
7
|
import { getLocalizedText } from "../../share/locale";
|
|
8
8
|
import { cel } from "../../utils/cel";
|
|
9
|
-
import { celBindings, injectCELContext } from "../../utils/cel-context";
|
|
9
|
+
import { celBindings, injectCELContext, provideCELContext, SELECTIONS_VAR } from "../../utils/cel-context";
|
|
10
|
+
import { provideSelectionsRegistry } from "../../utils/selections-registry";
|
|
10
11
|
import SlotRenderer from "../../share/slot-renderer.vue";
|
|
11
12
|
import ShwfedModal from "../modal.vue";
|
|
12
13
|
import EditorBody from "./config.vue";
|
|
@@ -43,7 +44,22 @@ const mergedConfigure = (env) => {
|
|
|
43
44
|
if (existing.has(name)) continue;
|
|
44
45
|
env.registerVariable(name, v.type, { description: v.description, label: v.label });
|
|
45
46
|
}
|
|
47
|
+
if (!env.getDefinitions().variables.some((v) => v.name === SELECTIONS_VAR)) {
|
|
48
|
+
env.registerVariable(SELECTIONS_VAR, "dyn", {
|
|
49
|
+
label: "\u9009\u4E2D\u9879",
|
|
50
|
+
description: '\u5404\u9009\u62E9\u578B\u5757\u5F53\u524D\u9009\u4E2D\u9879\u7684\u5B8C\u6574\u5BF9\u8C61/\u8BB0\u5F55\uFF08\u6309\u5757\u6807\u8BC6\uFF0C\u5982 `selections["<\u5757ID>"]`\uFF09'
|
|
51
|
+
});
|
|
52
|
+
}
|
|
46
53
|
};
|
|
54
|
+
const pageSelections = provideSelectionsRegistry();
|
|
55
|
+
provideCELContext({
|
|
56
|
+
[SELECTIONS_VAR]: {
|
|
57
|
+
type: "dyn",
|
|
58
|
+
label: "\u9009\u4E2D\u9879",
|
|
59
|
+
description: '\u5404\u9009\u62E9\u578B\u5757\u5F53\u524D\u9009\u4E2D\u9879\u7684\u5B8C\u6574\u5BF9\u8C61/\u8BB0\u5F55\uFF08\u6309\u5757\u6807\u8BC6\uFF0C\u5982 `selections["<\u5757ID>"]`\uFF09',
|
|
60
|
+
value: () => pageSelections.entries.value
|
|
61
|
+
}
|
|
62
|
+
});
|
|
47
63
|
class PageClosed {
|
|
48
64
|
_tag = "PageClosed";
|
|
49
65
|
}
|
|
@@ -34,6 +34,16 @@ export type BlockMetadata = Readonly<{
|
|
|
34
34
|
icon: string;
|
|
35
35
|
w: BlockSizeRange;
|
|
36
36
|
h: BlockSizeRange;
|
|
37
|
+
/**
|
|
38
|
+
* Marks this block as a selection source — it publishes its current
|
|
39
|
+
* selection to the page `selections` registry under its own `id` (see
|
|
40
|
+
* `config/index.vue`'s page-scope `provideSelectionsRegistry`). The config
|
|
41
|
+
* editor reads this flag to list the block in the page-level selection
|
|
42
|
+
* roster, so a sibling block's expression can reference
|
|
43
|
+
* `selections["<block-id>"]` by the block's friendly name. The mirror of
|
|
44
|
+
* `ColumnMetadata.selection` / `FieldMetadata.selection`, one host up.
|
|
45
|
+
*/
|
|
46
|
+
selection?: boolean;
|
|
37
47
|
}>;
|
|
38
48
|
export type BlockEntry = Readonly<{
|
|
39
49
|
type: string;
|
package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts
CHANGED
|
@@ -39,17 +39,6 @@ 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 validations?: readonly {
|
|
43
|
-
readonly message: readonly [{
|
|
44
|
-
readonly locale: "zh";
|
|
45
|
-
readonly message: string;
|
|
46
|
-
}, ...{
|
|
47
|
-
readonly locale: "en" | "ja" | "ko";
|
|
48
|
-
readonly message: string;
|
|
49
|
-
}[]];
|
|
50
|
-
readonly warning?: boolean | undefined;
|
|
51
|
-
readonly when: string;
|
|
52
|
-
}[] | undefined;
|
|
53
42
|
readonly addon?: {
|
|
54
43
|
readonly size: "default" | "sm" | "xs";
|
|
55
44
|
readonly style?: string | undefined;
|
|
@@ -117,6 +106,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
117
106
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
118
107
|
}[];
|
|
119
108
|
} | undefined;
|
|
109
|
+
readonly validations?: readonly {
|
|
110
|
+
readonly message: readonly [{
|
|
111
|
+
readonly locale: "zh";
|
|
112
|
+
readonly message: string;
|
|
113
|
+
}, ...{
|
|
114
|
+
readonly locale: "en" | "ja" | "ko";
|
|
115
|
+
readonly message: string;
|
|
116
|
+
}[]];
|
|
117
|
+
readonly warning?: boolean | undefined;
|
|
118
|
+
readonly when: string;
|
|
119
|
+
}[] | undefined;
|
|
120
120
|
}) => any;
|
|
121
121
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
122
122
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -155,17 +155,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
155
155
|
readonly mode: "formula" | "prefill";
|
|
156
156
|
readonly expression: string;
|
|
157
157
|
} | undefined;
|
|
158
|
-
readonly validations?: readonly {
|
|
159
|
-
readonly message: readonly [{
|
|
160
|
-
readonly locale: "zh";
|
|
161
|
-
readonly message: string;
|
|
162
|
-
}, ...{
|
|
163
|
-
readonly locale: "en" | "ja" | "ko";
|
|
164
|
-
readonly message: string;
|
|
165
|
-
}[]];
|
|
166
|
-
readonly warning?: boolean | undefined;
|
|
167
|
-
readonly when: string;
|
|
168
|
-
}[] | undefined;
|
|
169
158
|
readonly addon?: {
|
|
170
159
|
readonly size: "default" | "sm" | "xs";
|
|
171
160
|
readonly style?: string | undefined;
|
|
@@ -233,6 +222,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
233
222
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
234
223
|
}[];
|
|
235
224
|
} | undefined;
|
|
225
|
+
readonly validations?: readonly {
|
|
226
|
+
readonly message: readonly [{
|
|
227
|
+
readonly locale: "zh";
|
|
228
|
+
readonly message: string;
|
|
229
|
+
}, ...{
|
|
230
|
+
readonly locale: "en" | "ja" | "ko";
|
|
231
|
+
readonly message: string;
|
|
232
|
+
}[]];
|
|
233
|
+
readonly warning?: boolean | undefined;
|
|
234
|
+
readonly when: string;
|
|
235
|
+
}[] | undefined;
|
|
236
236
|
}) => any) | undefined;
|
|
237
237
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
238
238
|
declare const _default: typeof __VLS_export;
|
package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.vue.d.ts
CHANGED
|
@@ -39,17 +39,6 @@ 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 validations?: readonly {
|
|
43
|
-
readonly message: readonly [{
|
|
44
|
-
readonly locale: "zh";
|
|
45
|
-
readonly message: string;
|
|
46
|
-
}, ...{
|
|
47
|
-
readonly locale: "en" | "ja" | "ko";
|
|
48
|
-
readonly message: string;
|
|
49
|
-
}[]];
|
|
50
|
-
readonly warning?: boolean | undefined;
|
|
51
|
-
readonly when: string;
|
|
52
|
-
}[] | undefined;
|
|
53
42
|
readonly addon?: {
|
|
54
43
|
readonly size: "default" | "sm" | "xs";
|
|
55
44
|
readonly style?: string | undefined;
|
|
@@ -117,6 +106,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
117
106
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
118
107
|
}[];
|
|
119
108
|
} | undefined;
|
|
109
|
+
readonly validations?: readonly {
|
|
110
|
+
readonly message: readonly [{
|
|
111
|
+
readonly locale: "zh";
|
|
112
|
+
readonly message: string;
|
|
113
|
+
}, ...{
|
|
114
|
+
readonly locale: "en" | "ja" | "ko";
|
|
115
|
+
readonly message: string;
|
|
116
|
+
}[]];
|
|
117
|
+
readonly warning?: boolean | undefined;
|
|
118
|
+
readonly when: string;
|
|
119
|
+
}[] | undefined;
|
|
120
120
|
}) => any;
|
|
121
121
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
122
122
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -155,17 +155,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
155
155
|
readonly mode: "formula" | "prefill";
|
|
156
156
|
readonly expression: string;
|
|
157
157
|
} | undefined;
|
|
158
|
-
readonly validations?: readonly {
|
|
159
|
-
readonly message: readonly [{
|
|
160
|
-
readonly locale: "zh";
|
|
161
|
-
readonly message: string;
|
|
162
|
-
}, ...{
|
|
163
|
-
readonly locale: "en" | "ja" | "ko";
|
|
164
|
-
readonly message: string;
|
|
165
|
-
}[]];
|
|
166
|
-
readonly warning?: boolean | undefined;
|
|
167
|
-
readonly when: string;
|
|
168
|
-
}[] | undefined;
|
|
169
158
|
readonly addon?: {
|
|
170
159
|
readonly size: "default" | "sm" | "xs";
|
|
171
160
|
readonly style?: string | undefined;
|
|
@@ -233,6 +222,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
233
222
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
234
223
|
}[];
|
|
235
224
|
} | undefined;
|
|
225
|
+
readonly validations?: readonly {
|
|
226
|
+
readonly message: readonly [{
|
|
227
|
+
readonly locale: "zh";
|
|
228
|
+
readonly message: string;
|
|
229
|
+
}, ...{
|
|
230
|
+
readonly locale: "en" | "ja" | "ko";
|
|
231
|
+
readonly message: string;
|
|
232
|
+
}[]];
|
|
233
|
+
readonly warning?: boolean | undefined;
|
|
234
|
+
readonly when: string;
|
|
235
|
+
}[] | undefined;
|
|
236
236
|
}) => any) | undefined;
|
|
237
237
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
238
238
|
declare const _default: typeof __VLS_export;
|
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts
CHANGED
|
@@ -42,17 +42,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
42
42
|
readonly mode: "formula" | "prefill";
|
|
43
43
|
readonly expression: string;
|
|
44
44
|
} | undefined;
|
|
45
|
-
readonly
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
readonly message: string;
|
|
49
|
-
}, ...{
|
|
50
|
-
readonly locale: "en" | "ja" | "ko";
|
|
51
|
-
readonly message: string;
|
|
52
|
-
}[]];
|
|
53
|
-
readonly warning?: boolean | undefined;
|
|
54
|
-
readonly when: string;
|
|
55
|
-
}[] | undefined;
|
|
45
|
+
readonly precision?: number | undefined;
|
|
46
|
+
readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
|
|
47
|
+
readonly valueAsString?: boolean | undefined;
|
|
56
48
|
readonly addon?: {
|
|
57
49
|
readonly size: "default" | "sm" | "xs";
|
|
58
50
|
readonly style?: string | undefined;
|
|
@@ -120,9 +112,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
120
112
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
121
113
|
}[];
|
|
122
114
|
} | undefined;
|
|
123
|
-
readonly
|
|
124
|
-
|
|
125
|
-
|
|
115
|
+
readonly validations?: readonly {
|
|
116
|
+
readonly message: readonly [{
|
|
117
|
+
readonly locale: "zh";
|
|
118
|
+
readonly message: string;
|
|
119
|
+
}, ...{
|
|
120
|
+
readonly locale: "en" | "ja" | "ko";
|
|
121
|
+
readonly message: string;
|
|
122
|
+
}[]];
|
|
123
|
+
readonly warning?: boolean | undefined;
|
|
124
|
+
readonly when: string;
|
|
125
|
+
}[] | undefined;
|
|
126
126
|
}) => any;
|
|
127
127
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
128
128
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -164,17 +164,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
164
164
|
readonly mode: "formula" | "prefill";
|
|
165
165
|
readonly expression: string;
|
|
166
166
|
} | undefined;
|
|
167
|
-
readonly
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
readonly message: string;
|
|
171
|
-
}, ...{
|
|
172
|
-
readonly locale: "en" | "ja" | "ko";
|
|
173
|
-
readonly message: string;
|
|
174
|
-
}[]];
|
|
175
|
-
readonly warning?: boolean | undefined;
|
|
176
|
-
readonly when: string;
|
|
177
|
-
}[] | undefined;
|
|
167
|
+
readonly precision?: number | undefined;
|
|
168
|
+
readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
|
|
169
|
+
readonly valueAsString?: boolean | undefined;
|
|
178
170
|
readonly addon?: {
|
|
179
171
|
readonly size: "default" | "sm" | "xs";
|
|
180
172
|
readonly style?: string | undefined;
|
|
@@ -242,9 +234,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
242
234
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
243
235
|
}[];
|
|
244
236
|
} | undefined;
|
|
245
|
-
readonly
|
|
246
|
-
|
|
247
|
-
|
|
237
|
+
readonly validations?: readonly {
|
|
238
|
+
readonly message: readonly [{
|
|
239
|
+
readonly locale: "zh";
|
|
240
|
+
readonly message: string;
|
|
241
|
+
}, ...{
|
|
242
|
+
readonly locale: "en" | "ja" | "ko";
|
|
243
|
+
readonly message: string;
|
|
244
|
+
}[]];
|
|
245
|
+
readonly warning?: boolean | undefined;
|
|
246
|
+
readonly when: string;
|
|
247
|
+
}[] | undefined;
|
|
248
248
|
}) => any) | undefined;
|
|
249
249
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
250
250
|
declare const _default: typeof __VLS_export;
|
package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts
CHANGED
|
@@ -42,17 +42,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
42
42
|
readonly mode: "formula" | "prefill";
|
|
43
43
|
readonly expression: string;
|
|
44
44
|
} | undefined;
|
|
45
|
-
readonly
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
readonly message: string;
|
|
49
|
-
}, ...{
|
|
50
|
-
readonly locale: "en" | "ja" | "ko";
|
|
51
|
-
readonly message: string;
|
|
52
|
-
}[]];
|
|
53
|
-
readonly warning?: boolean | undefined;
|
|
54
|
-
readonly when: string;
|
|
55
|
-
}[] | undefined;
|
|
45
|
+
readonly precision?: number | undefined;
|
|
46
|
+
readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
|
|
47
|
+
readonly valueAsString?: boolean | undefined;
|
|
56
48
|
readonly addon?: {
|
|
57
49
|
readonly size: "default" | "sm" | "xs";
|
|
58
50
|
readonly style?: string | undefined;
|
|
@@ -120,9 +112,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
120
112
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
121
113
|
}[];
|
|
122
114
|
} | undefined;
|
|
123
|
-
readonly
|
|
124
|
-
|
|
125
|
-
|
|
115
|
+
readonly validations?: readonly {
|
|
116
|
+
readonly message: readonly [{
|
|
117
|
+
readonly locale: "zh";
|
|
118
|
+
readonly message: string;
|
|
119
|
+
}, ...{
|
|
120
|
+
readonly locale: "en" | "ja" | "ko";
|
|
121
|
+
readonly message: string;
|
|
122
|
+
}[]];
|
|
123
|
+
readonly warning?: boolean | undefined;
|
|
124
|
+
readonly when: string;
|
|
125
|
+
}[] | undefined;
|
|
126
126
|
}) => any;
|
|
127
127
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
128
128
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -164,17 +164,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
164
164
|
readonly mode: "formula" | "prefill";
|
|
165
165
|
readonly expression: string;
|
|
166
166
|
} | undefined;
|
|
167
|
-
readonly
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
readonly message: string;
|
|
171
|
-
}, ...{
|
|
172
|
-
readonly locale: "en" | "ja" | "ko";
|
|
173
|
-
readonly message: string;
|
|
174
|
-
}[]];
|
|
175
|
-
readonly warning?: boolean | undefined;
|
|
176
|
-
readonly when: string;
|
|
177
|
-
}[] | undefined;
|
|
167
|
+
readonly precision?: number | undefined;
|
|
168
|
+
readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
|
|
169
|
+
readonly valueAsString?: boolean | undefined;
|
|
178
170
|
readonly addon?: {
|
|
179
171
|
readonly size: "default" | "sm" | "xs";
|
|
180
172
|
readonly style?: string | undefined;
|
|
@@ -242,9 +234,17 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
242
234
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
243
235
|
}[];
|
|
244
236
|
} | undefined;
|
|
245
|
-
readonly
|
|
246
|
-
|
|
247
|
-
|
|
237
|
+
readonly validations?: readonly {
|
|
238
|
+
readonly message: readonly [{
|
|
239
|
+
readonly locale: "zh";
|
|
240
|
+
readonly message: string;
|
|
241
|
+
}, ...{
|
|
242
|
+
readonly locale: "en" | "ja" | "ko";
|
|
243
|
+
readonly message: string;
|
|
244
|
+
}[]];
|
|
245
|
+
readonly warning?: boolean | undefined;
|
|
246
|
+
readonly when: string;
|
|
247
|
+
}[] | undefined;
|
|
248
248
|
}) => any) | undefined;
|
|
249
249
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
250
250
|
declare const _default: typeof __VLS_export;
|
|
@@ -50,6 +50,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
50
50
|
readonly locale: "en" | "ja" | "ko";
|
|
51
51
|
readonly message: string;
|
|
52
52
|
}[]] | undefined;
|
|
53
|
+
readonly precision?: number | undefined;
|
|
54
|
+
readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
|
|
55
|
+
readonly valueAsString?: boolean | undefined;
|
|
53
56
|
readonly validations?: readonly {
|
|
54
57
|
readonly message: readonly [{
|
|
55
58
|
readonly locale: "zh";
|
|
@@ -61,9 +64,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
61
64
|
readonly warning?: boolean | undefined;
|
|
62
65
|
readonly when: string;
|
|
63
66
|
}[] | undefined;
|
|
64
|
-
readonly precision?: number | undefined;
|
|
65
|
-
readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
|
|
66
|
-
readonly valueAsString?: boolean | undefined;
|
|
67
67
|
}) => any;
|
|
68
68
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
69
69
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -113,6 +113,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
113
113
|
readonly locale: "en" | "ja" | "ko";
|
|
114
114
|
readonly message: string;
|
|
115
115
|
}[]] | undefined;
|
|
116
|
+
readonly precision?: number | undefined;
|
|
117
|
+
readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
|
|
118
|
+
readonly valueAsString?: boolean | undefined;
|
|
116
119
|
readonly validations?: readonly {
|
|
117
120
|
readonly message: readonly [{
|
|
118
121
|
readonly locale: "zh";
|
|
@@ -124,9 +127,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
124
127
|
readonly warning?: boolean | undefined;
|
|
125
128
|
readonly when: string;
|
|
126
129
|
}[] | undefined;
|
|
127
|
-
readonly precision?: number | undefined;
|
|
128
|
-
readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
|
|
129
|
-
readonly valueAsString?: boolean | undefined;
|
|
130
130
|
}) => any) | undefined;
|
|
131
131
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
132
132
|
declare const _default: typeof __VLS_export;
|