@shwfed/config 2.10.6 → 2.10.8
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 +24 -10
- package/dist/module.json +1 -1
- package/dist/preview/assets/{FieldGroup.vue_vue_type_script_setup_true_lang-DoTYH4r0.js → FieldGroup.vue_vue_type_script_setup_true_lang-BX_UfcPb.js} +1 -1
- package/dist/preview/assets/{badge-DigodVby.js → badge-obDKnV3E.js} +1 -1
- package/dist/preview/assets/{config-Bjb63ooF.js → config-9weuJKPA.js} +1 -1
- package/dist/preview/assets/{config-DOqjxDka.js → config-B27gvYuN.js} +1 -1
- package/dist/preview/assets/{config-Cn5zWISv.js → config-BKVK2els.js} +1 -1
- package/dist/preview/assets/{config-dwZBY29w.js → config-BYhrPimZ.js} +1 -1
- package/dist/preview/assets/{config-C1-hX0FZ.js → config-C6IfQR2K.js} +1 -1
- package/dist/preview/assets/{config-WRBBSsbf.js → config-CYdIN2D7.js} +1 -1
- package/dist/preview/assets/{config-ia-gXiHl.js → config-CaaIte9f.js} +1 -1
- package/dist/preview/assets/{config-CNjSJQmf.js → config-CnpY7wA_.js} +1 -1
- package/dist/preview/assets/{config-BiRUzXVx.js → config-DGJLbdm3.js} +1 -1
- package/dist/preview/assets/{config-Yzim7dYM.js → config-DSD3RZZt.js} +1 -1
- package/dist/preview/assets/{config-D3BYzFT7.js → config-DbdgS5Ng.js} +1 -1
- package/dist/preview/assets/{config-BFLui9zF.js → config-DxmfhxW9.js} +1 -1
- package/dist/preview/assets/{config-GquBxa0k.js → config-jBRCpIX5.js} +1 -1
- package/dist/preview/assets/{config-fj68oKtH.js → config-xdKDKKAa.js} +1 -1
- package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-DLRdfLnh.js → definition.vue_vue_type_script_setup_true_lang-C97mjLAr.js} +1 -1
- package/dist/preview/assets/index-ADrQrdaQ.js +1 -0
- package/dist/preview/assets/{index-DjPejdGe.js → index-BWc0rZ2y.js} +1 -1
- package/dist/preview/assets/{index-DyMqqPo8.css → index-Cj7bRG7B.css} +1 -1
- package/dist/preview/assets/{index-ByDPdF8R.js → index-DFmBrVzd.js} +164 -164
- package/dist/preview/assets/{item-D1eyfO0S.js → item-BRGONTEu.js} +1 -1
- package/dist/preview/assets/{runtime-BnmMh817.js → runtime-BGRgWBLF.js} +1 -1
- package/dist/preview/assets/{runtime-CersyeE4.js → runtime-BoiTEUZt.js} +1 -1
- package/dist/preview/assets/{runtime-DlviPSYa.js → runtime-CHOWqPGP.js} +1 -1
- package/dist/preview/assets/{runtime-D2v11Q9f.js → runtime-CJVZpawP.js} +1 -1
- package/dist/preview/assets/{runtime-DDLzkTJO.js → runtime-Ci3L--AW.js} +1 -1
- package/dist/preview/assets/{runtime-DVt270HE.js → runtime-Czg0F_NN.js} +1 -1
- package/dist/preview/assets/{runtime-CeWW9OWp.js → runtime-D-9NZJ0Z.js} +1 -1
- package/dist/preview/assets/{runtime-uMgaWxns.js → runtime-DZtGKJgS.js} +1 -1
- package/dist/preview/assets/{runtime-PGalcWzI.js → runtime-DcQjFFJx.js} +1 -1
- package/dist/preview/assets/{runtime-BDsoGLTr.js → runtime-DqhT5NCm.js} +1 -1
- package/dist/preview/assets/{schema-meta-DudoTEwn.js → schema-meta-xFd44RnL.js} +1 -1
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/runtime.vue +6 -1
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.js +1 -1
- 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 +4 -0
- package/dist/runtime/components/config/config.vue +42 -3
- package/dist/runtime/components/config/use-editor.js +3 -1
- package/dist/runtime/components/config/utils/resolve.d.ts +12 -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-24/com.shwfed.form.field.combobox.single/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.combobox.single/config.vue.d.ts +16 -16
- 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/form/fields/2026-05-12/com.shwfed.form.field.upload/runtime.vue +23 -1
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.d.vue.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-25/com.shwfed.form.field.combobox.multi/config.vue.d.ts +16 -16
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/config.vue.d.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.d.vue.ts +22 -22
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/config.vue.d.ts +22 -22
- 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/dist/runtime/components/table/config.vue +1 -1
- package/dist/runtime/components/table/schema.js +15 -9
- package/dist/runtime/components/ui/expression-editor/picker-entries.js +1 -1
- package/dist/runtime/components/ui/expression-editor/selection-refs.js +1 -1
- package/dist/runtime/vendor/cel-js/CLAUDE.md +1 -0
- package/dist/runtime/vendor/cel-js/lib/evaluator.d.ts +1 -0
- package/dist/runtime/vendor/cel-js/lib/evaluator.js +4 -0
- package/package.json +1 -1
- package/dist/preview/assets/index-5uVTbNBd.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-DFmBrVzd.js";import Q from"./index-BWc0rZ2y.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 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-DFmBrVzd.js";import{_ as b}from"./definition.vue_vue_type_script_setup_true_lang-C97mjLAr.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-
|
|
1
|
+
import{_ as o}from"./definition.vue_vue_type_script_setup_true_lang-C97mjLAr.js";import{d as n,c,b as a,o as f,aV as i}from"./index-DFmBrVzd.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 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-DFmBrVzd.js";import{_ as W}from"./definition.vue_vue_type_script_setup_true_lang-C97mjLAr.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 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-DFmBrVzd.js";import{_ as C}from"./definition.vue_vue_type_script_setup_true_lang-C97mjLAr.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-DFmBrVzd.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-DFmBrVzd.js";import{_ as I}from"./definition.vue_vue_type_script_setup_true_lang-C97mjLAr.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 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-DFmBrVzd.js";import{_ as C}from"./definition.vue_vue_type_script_setup_true_lang-C97mjLAr.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,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-DFmBrVzd.js";import{_ as k}from"./definition.vue_vue_type_script_setup_true_lang-C97mjLAr.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 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-DFmBrVzd.js";import{_ as z}from"./definition.vue_vue_type_script_setup_true_lang-C97mjLAr.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 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-DFmBrVzd.js";import{_ as R}from"./definition.vue_vue_type_script_setup_true_lang-C97mjLAr.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{C as o,D as l,E as d}from"./index-
|
|
1
|
+
import{C as o,D as l,E as d}from"./index-DFmBrVzd.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-DFmBrVzd.js"></script>
|
|
14
|
+
<link rel="stylesheet" crossorigin href="./assets/index-Cj7bRG7B.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
17
17
|
<div id="app"></div>
|
package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/runtime.vue
CHANGED
|
@@ -5,12 +5,17 @@ import { Effect } from "effect";
|
|
|
5
5
|
import { cel } from "../../../../../utils/cel";
|
|
6
6
|
import { celBindings, injectCELContext } from "../../../../../utils/cel-context";
|
|
7
7
|
import { getLocalizedText } from "../../../../../share/locale";
|
|
8
|
+
import { interpolateMarkdown } from "../../../../../share/interpolate";
|
|
8
9
|
import { Markdown } from "../../../../ui/markdown";
|
|
9
10
|
defineOptions({ name: "ShwfedBlockMarkdownRuntime" });
|
|
10
11
|
const block = defineModel("block", { type: null, ...{ required: true } });
|
|
11
12
|
const { locale } = useI18n();
|
|
12
|
-
const source = computed(() => getLocalizedText(block.value.content, locale.value) ?? "");
|
|
13
13
|
const inheritedContext = injectCELContext();
|
|
14
|
+
const $cel = (expression, context) => cel(expression, { ...celBindings(inheritedContext), ...context });
|
|
15
|
+
const source = computed(() => {
|
|
16
|
+
const raw = getLocalizedText(block.value.content, locale.value) ?? "";
|
|
17
|
+
return raw ? interpolateMarkdown(raw, $cel) : "";
|
|
18
|
+
});
|
|
14
19
|
function evalStyle(expression) {
|
|
15
20
|
if (!expression) return void 0;
|
|
16
21
|
try {
|
package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.markdown/schema.js
CHANGED
|
@@ -28,7 +28,7 @@ export function schema(configure, _blockRef) {
|
|
|
28
28
|
}),
|
|
29
29
|
content: Locale.annotations({
|
|
30
30
|
title: "\u5185\u5BB9",
|
|
31
|
-
description: "\u6E32\u67D3\u4E3A Markdown \u7684\u591A\u8BED\u8A00\u6587\u672C"
|
|
31
|
+
description: "\u6E32\u67D3\u4E3A Markdown \u7684\u591A\u8BED\u8A00\u6587\u672C\uFF1B\u53EF\u7528 `{{ \u8868\u8FBE\u5F0F }}` \u63D2\u5165 CEL \u8868\u8FBE\u5F0F\uFF08\u5982 `{{ form.name }}`\uFF09\uFF0C\u6C42\u503C\u540E\u518D\u6309 Markdown \u6E32\u67D3\uFF0C\u8868\u8FBE\u5F0F\u51FA\u9519\u65F6\u539F\u6837\u4FDD\u7559"
|
|
32
32
|
})
|
|
33
33
|
}).annotations({
|
|
34
34
|
title: "Markdown \u5757",
|
|
@@ -7,6 +7,7 @@ export declare const metadata: {
|
|
|
7
7
|
readonly name: "表格";
|
|
8
8
|
readonly icon: "fluent:table-20-regular";
|
|
9
9
|
readonly selection: true;
|
|
10
|
+
readonly instanceName: (value: Record<string, unknown>) => string | undefined;
|
|
10
11
|
readonly w: {
|
|
11
12
|
readonly initial: 32;
|
|
12
13
|
readonly min: 12;
|
|
@@ -10,6 +10,10 @@ export const metadata = {
|
|
|
10
10
|
// sibling block can read `selections["<block-id>"]` — the array of selected
|
|
11
11
|
// row records. The flag lists it in the page-level selection roster.
|
|
12
12
|
selection: true,
|
|
13
|
+
// The block carries no own name — the user names the embedded table (its
|
|
14
|
+
// 内部名称). Surface it as the block's instance label so the sidebar and the
|
|
15
|
+
// selection-roster picker show 「岗位」/「用户」 instead of a generic 「表格」.
|
|
16
|
+
instanceName: (value) => value.table?.displayName || void 0,
|
|
13
17
|
w: { initial: 32, min: 12, max: Infinity },
|
|
14
18
|
// `grow: true`: the table's height is content-driven, so its row escapes the
|
|
15
19
|
// grid's `1fr` equal-share (bare `auto`) and the table grows top-anchored from
|
|
@@ -90,9 +90,48 @@ const pageEventAncestor = computed(() => ({
|
|
|
90
90
|
operations: pageMetadata.operations
|
|
91
91
|
}));
|
|
92
92
|
provideEventAncestor(pageEventAncestor);
|
|
93
|
-
|
|
94
|
-
(
|
|
95
|
-
|
|
93
|
+
function isSlot(v) {
|
|
94
|
+
if (!v || typeof v !== "object") return false;
|
|
95
|
+
const o = v;
|
|
96
|
+
return Array.isArray(o.blocks) && Array.isArray(o.layouts);
|
|
97
|
+
}
|
|
98
|
+
function activePlacements(slot) {
|
|
99
|
+
const sets = slot.layouts;
|
|
100
|
+
if (!sets || sets.length === 0) return {};
|
|
101
|
+
const set = sets.find((s) => !s.media) ?? sets[sets.length - 1];
|
|
102
|
+
return set?.layout?.placements ?? {};
|
|
103
|
+
}
|
|
104
|
+
function nestedSlots(value, out) {
|
|
105
|
+
if (isSlot(value)) {
|
|
106
|
+
out.push(value);
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
if (Array.isArray(value)) {
|
|
110
|
+
for (const v of value) nestedSlots(v, out);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
if (value && typeof value === "object") {
|
|
114
|
+
for (const v of Object.values(value)) nestedSlots(v, out);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
function collectSelectionRefs(slot, seen, out) {
|
|
118
|
+
const placed = activePlacements(slot);
|
|
119
|
+
for (const b of slot.blocks) {
|
|
120
|
+
if (!(b.id in placed) || seen.has(b.id)) continue;
|
|
121
|
+
seen.add(b.id);
|
|
122
|
+
if (props.state.findBlockMeta(b.type, b.compatibilityDate)?.metadata?.selection) {
|
|
123
|
+
out.push({ id: b.id, name: props.state.getBlockLabel(b) });
|
|
124
|
+
}
|
|
125
|
+
const slots = [];
|
|
126
|
+
nestedSlots(b, slots);
|
|
127
|
+
for (const s of slots) collectSelectionRefs(s, seen, out);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
const selectionRoster = computed(() => {
|
|
131
|
+
const out = [];
|
|
132
|
+
collectSelectionRefs(props.state.draft.value.slot, /* @__PURE__ */ new Set(), out);
|
|
133
|
+
return out;
|
|
134
|
+
});
|
|
96
135
|
provideSelectionRoster(selectionRoster);
|
|
97
136
|
const sidebarRef = useTemplateRef("sidebarRef");
|
|
98
137
|
function addLayout() {
|
|
@@ -151,7 +151,9 @@ export function useSlotEditor(slot, options = {}) {
|
|
|
151
151
|
const entry = findBlock(b.type, b.compatibilityDate);
|
|
152
152
|
const typeName = entry?.metadata.name ?? "\u672A\u547D\u540D\u5757";
|
|
153
153
|
const displayName = b.displayName;
|
|
154
|
-
|
|
154
|
+
if (typeof displayName === "string" && displayName.length > 0) return displayName;
|
|
155
|
+
const derived = entry?.metadata.instanceName?.(b);
|
|
156
|
+
return derived && derived.length > 0 ? derived : typeName;
|
|
155
157
|
}
|
|
156
158
|
function findBlockMeta(type, compatibilityDate) {
|
|
157
159
|
return findBlock(type, compatibilityDate);
|
|
@@ -44,6 +44,18 @@ export type BlockMetadata = Readonly<{
|
|
|
44
44
|
* `ColumnMetadata.selection` / `FieldMetadata.selection`, one host up.
|
|
45
45
|
*/
|
|
46
46
|
selection?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Optional resolver for a block's friendly INSTANCE name, derived from its
|
|
49
|
+
* value. A wrapper block (e.g. `block.table`) carries no own `displayName` —
|
|
50
|
+
* the user-facing name lives one level in (the embedded table's 内部名称) — so
|
|
51
|
+
* `getBlockLabel`'s fallback to the type name would render every table as
|
|
52
|
+
* 「表格」, colliding in the sidebar and the selection-roster picker. A block
|
|
53
|
+
* that owns such a nested name returns it here; `getBlockLabel` prefers it
|
|
54
|
+
* over the type name. Returns `undefined` when nothing is set, so the type
|
|
55
|
+
* name still applies. Colocated with the block like `defaultBody`, so the
|
|
56
|
+
* host never special-cases a type.
|
|
57
|
+
*/
|
|
58
|
+
instanceName?: (value: Record<string, unknown>) => string | undefined;
|
|
47
59
|
}>;
|
|
48
60
|
export type BlockEntry = Readonly<{
|
|
49
61
|
type: string;
|
package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.text/config.d.vue.ts
CHANGED
|
@@ -39,6 +39,17 @@ 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;
|
|
42
53
|
readonly addon?: {
|
|
43
54
|
readonly size: "default" | "sm" | "xs";
|
|
44
55
|
readonly style?: string | undefined;
|
|
@@ -106,17 +117,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
106
117
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
107
118
|
}[];
|
|
108
119
|
} | 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,6 +155,17 @@ 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;
|
|
158
169
|
readonly addon?: {
|
|
159
170
|
readonly size: "default" | "sm" | "xs";
|
|
160
171
|
readonly style?: string | undefined;
|
|
@@ -222,17 +233,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
222
233
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
223
234
|
}[];
|
|
224
235
|
} | 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,6 +39,17 @@ 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;
|
|
42
53
|
readonly addon?: {
|
|
43
54
|
readonly size: "default" | "sm" | "xs";
|
|
44
55
|
readonly style?: string | undefined;
|
|
@@ -106,17 +117,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
106
117
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
107
118
|
}[];
|
|
108
119
|
} | 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,6 +155,17 @@ 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;
|
|
158
169
|
readonly addon?: {
|
|
159
170
|
readonly size: "default" | "sm" | "xs";
|
|
160
171
|
readonly style?: string | undefined;
|
|
@@ -222,17 +233,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
222
233
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
223
234
|
}[];
|
|
224
235
|
} | 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;
|
|
@@ -40,6 +40,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
40
40
|
readonly expression: string;
|
|
41
41
|
} | undefined;
|
|
42
42
|
readonly options: string;
|
|
43
|
+
readonly optionValue: string;
|
|
44
|
+
readonly optionLabel: readonly [{
|
|
45
|
+
readonly locale: "zh";
|
|
46
|
+
readonly message: string;
|
|
47
|
+
}, ...{
|
|
48
|
+
readonly locale: "en" | "ja" | "ko";
|
|
49
|
+
readonly message: string;
|
|
50
|
+
}[]];
|
|
43
51
|
readonly validations?: readonly {
|
|
44
52
|
readonly message: readonly [{
|
|
45
53
|
readonly locale: "zh";
|
|
@@ -51,14 +59,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
51
59
|
readonly warning?: boolean | undefined;
|
|
52
60
|
readonly when: string;
|
|
53
61
|
}[] | undefined;
|
|
54
|
-
readonly optionValue: string;
|
|
55
|
-
readonly optionLabel: readonly [{
|
|
56
|
-
readonly locale: "zh";
|
|
57
|
-
readonly message: string;
|
|
58
|
-
}, ...{
|
|
59
|
-
readonly locale: "en" | "ja" | "ko";
|
|
60
|
-
readonly message: string;
|
|
61
|
-
}[]];
|
|
62
62
|
}) => any;
|
|
63
63
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
64
64
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -98,6 +98,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
98
98
|
readonly expression: string;
|
|
99
99
|
} | undefined;
|
|
100
100
|
readonly options: string;
|
|
101
|
+
readonly optionValue: string;
|
|
102
|
+
readonly optionLabel: readonly [{
|
|
103
|
+
readonly locale: "zh";
|
|
104
|
+
readonly message: string;
|
|
105
|
+
}, ...{
|
|
106
|
+
readonly locale: "en" | "ja" | "ko";
|
|
107
|
+
readonly message: string;
|
|
108
|
+
}[]];
|
|
101
109
|
readonly validations?: readonly {
|
|
102
110
|
readonly message: readonly [{
|
|
103
111
|
readonly locale: "zh";
|
|
@@ -109,14 +117,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
109
117
|
readonly warning?: boolean | undefined;
|
|
110
118
|
readonly when: string;
|
|
111
119
|
}[] | undefined;
|
|
112
|
-
readonly optionValue: string;
|
|
113
|
-
readonly optionLabel: readonly [{
|
|
114
|
-
readonly locale: "zh";
|
|
115
|
-
readonly message: string;
|
|
116
|
-
}, ...{
|
|
117
|
-
readonly locale: "en" | "ja" | "ko";
|
|
118
|
-
readonly message: string;
|
|
119
|
-
}[]];
|
|
120
120
|
}) => any) | undefined;
|
|
121
121
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
122
122
|
declare const _default: typeof __VLS_export;
|
|
@@ -40,6 +40,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
40
40
|
readonly expression: string;
|
|
41
41
|
} | undefined;
|
|
42
42
|
readonly options: string;
|
|
43
|
+
readonly optionValue: string;
|
|
44
|
+
readonly optionLabel: readonly [{
|
|
45
|
+
readonly locale: "zh";
|
|
46
|
+
readonly message: string;
|
|
47
|
+
}, ...{
|
|
48
|
+
readonly locale: "en" | "ja" | "ko";
|
|
49
|
+
readonly message: string;
|
|
50
|
+
}[]];
|
|
43
51
|
readonly validations?: readonly {
|
|
44
52
|
readonly message: readonly [{
|
|
45
53
|
readonly locale: "zh";
|
|
@@ -51,14 +59,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
51
59
|
readonly warning?: boolean | undefined;
|
|
52
60
|
readonly when: string;
|
|
53
61
|
}[] | undefined;
|
|
54
|
-
readonly optionValue: string;
|
|
55
|
-
readonly optionLabel: readonly [{
|
|
56
|
-
readonly locale: "zh";
|
|
57
|
-
readonly message: string;
|
|
58
|
-
}, ...{
|
|
59
|
-
readonly locale: "en" | "ja" | "ko";
|
|
60
|
-
readonly message: string;
|
|
61
|
-
}[]];
|
|
62
62
|
}) => any;
|
|
63
63
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
64
64
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -98,6 +98,14 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
98
98
|
readonly expression: string;
|
|
99
99
|
} | undefined;
|
|
100
100
|
readonly options: string;
|
|
101
|
+
readonly optionValue: string;
|
|
102
|
+
readonly optionLabel: readonly [{
|
|
103
|
+
readonly locale: "zh";
|
|
104
|
+
readonly message: string;
|
|
105
|
+
}, ...{
|
|
106
|
+
readonly locale: "en" | "ja" | "ko";
|
|
107
|
+
readonly message: string;
|
|
108
|
+
}[]];
|
|
101
109
|
readonly validations?: readonly {
|
|
102
110
|
readonly message: readonly [{
|
|
103
111
|
readonly locale: "zh";
|
|
@@ -109,14 +117,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
109
117
|
readonly warning?: boolean | undefined;
|
|
110
118
|
readonly when: string;
|
|
111
119
|
}[] | undefined;
|
|
112
|
-
readonly optionValue: string;
|
|
113
|
-
readonly optionLabel: readonly [{
|
|
114
|
-
readonly locale: "zh";
|
|
115
|
-
readonly message: string;
|
|
116
|
-
}, ...{
|
|
117
|
-
readonly locale: "en" | "ja" | "ko";
|
|
118
|
-
readonly message: string;
|
|
119
|
-
}[]];
|
|
120
120
|
}) => any) | undefined;
|
|
121
121
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
122
122
|
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,9 +42,17 @@ 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
|
-
|
|
45
|
+
readonly validations?: readonly {
|
|
46
|
+
readonly message: readonly [{
|
|
47
|
+
readonly locale: "zh";
|
|
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;
|
|
48
56
|
readonly addon?: {
|
|
49
57
|
readonly size: "default" | "sm" | "xs";
|
|
50
58
|
readonly style?: string | undefined;
|
|
@@ -112,17 +120,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
112
120
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
113
121
|
}[];
|
|
114
122
|
} | undefined;
|
|
115
|
-
readonly
|
|
116
|
-
|
|
117
|
-
|
|
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;
|
|
123
|
+
readonly precision?: number | undefined;
|
|
124
|
+
readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
|
|
125
|
+
readonly valueAsString?: boolean | undefined;
|
|
126
126
|
}) => any;
|
|
127
127
|
}, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
|
|
128
128
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -164,9 +164,17 @@ 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
|
-
|
|
167
|
+
readonly validations?: readonly {
|
|
168
|
+
readonly message: readonly [{
|
|
169
|
+
readonly locale: "zh";
|
|
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;
|
|
170
178
|
readonly addon?: {
|
|
171
179
|
readonly size: "default" | "sm" | "xs";
|
|
172
180
|
readonly style?: string | undefined;
|
|
@@ -234,17 +242,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
|
|
|
234
242
|
readonly variant?: "default" | "link" | "destructive" | "primary" | "ghost" | undefined;
|
|
235
243
|
}[];
|
|
236
244
|
} | undefined;
|
|
237
|
-
readonly
|
|
238
|
-
|
|
239
|
-
|
|
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;
|
|
245
|
+
readonly precision?: number | undefined;
|
|
246
|
+
readonly roundingMode?: "round" | "floor" | "ceil" | undefined;
|
|
247
|
+
readonly valueAsString?: boolean | undefined;
|
|
248
248
|
}) => any) | undefined;
|
|
249
249
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
250
250
|
declare const _default: typeof __VLS_export;
|