@shwfed/config 2.7.6 → 2.7.7
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 +73 -21
- package/dist/module.json +1 -1
- package/dist/preview/assets/badge-B0tiCpa_.js +1 -0
- package/dist/preview/assets/config-BG9TRQcv.js +1 -0
- package/dist/preview/assets/{config-B7hXY5FF.js → config-Bfb2sH6S.js} +1 -1
- package/dist/preview/assets/config-C-XJ-8Rs.js +1 -0
- package/dist/preview/assets/{config-C947O8za.js → config-CGvnv-5x.js} +1 -1
- package/dist/preview/assets/config-DDPihojt.js +1 -0
- package/dist/preview/assets/config-Dafqx9xC.js +1 -0
- package/dist/preview/assets/{config-DppExb4h.js → config-DqMRy1WL.js} +1 -1
- package/dist/preview/assets/{config-Bl8L6943.js → config-GCvXe12z.js} +1 -1
- package/dist/preview/assets/{config-DhAntnE5.js → config-jDPbLgBr.js} +1 -1
- package/dist/preview/assets/definition.vue_vue_type_script_setup_true_lang-DBXfCj4Q.js +1 -0
- package/dist/preview/assets/index-CHzOsSTW.js +680 -0
- package/dist/preview/assets/index-CSfKAdi7.js +1 -0
- package/dist/preview/assets/{index-DiC1rvCq.js → index-D7jDE3kp.js} +1 -1
- package/dist/preview/assets/item-DV-Garrg.js +1 -0
- package/dist/preview/assets/runtime-BovPWken.js +1 -0
- package/dist/preview/assets/runtime-BxBBFFHA.js +1 -0
- package/dist/preview/assets/{runtime-BQnHKogz.js → runtime-CwmJ9MLQ.js} +1 -1
- package/dist/preview/assets/runtime-Cyjx6haa.js +1 -0
- package/dist/preview/assets/runtime-D-LBi56N.js +1 -0
- package/dist/preview/assets/{runtime-kLWO8JbC.js → runtime-DA77AmOP.js} +1 -1
- package/dist/preview/assets/{runtime-DmV_M4B_.js → runtime-DHTqFEQI.js} +1 -1
- package/dist/preview/assets/runtime-DKtlQWwc.js +1 -0
- package/dist/preview/assets/runtime-UmLaEUGf.js +1 -0
- package/dist/preview/index.html +1 -1
- package/dist/runtime/components/actions/buttons/2026-04-21/com.shwfed.actions.button.navigation/runtime.vue +16 -2
- package/dist/runtime/components/config/blocks/2026-05-17/com.shwfed.block.chart.xy/runtime.vue +2 -2
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/item.vue +2 -2
- package/dist/runtime/components/config/blocks/2026-06-01/com.shwfed.block.animated.number/schema.js +2 -2
- package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/badge.vue +3 -2
- package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/schema.js +2 -2
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/runtime.vue +6 -5
- package/dist/runtime/components/form/fields/2026-05-13/com.shwfed.form.field.combobox.single.remote/schema.js +2 -2
- package/dist/runtime/components/form/fields/2026-05-23/com.shwfed.form.field.tree.multi/runtime.vue +3 -4
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.multi/runtime.vue +3 -4
- package/dist/runtime/components/form/fields/2026-05-26/com.shwfed.form.field.tree.combobox.single/runtime.vue +3 -4
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/runtime.vue +6 -5
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.multi/schema.js +2 -2
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/runtime.vue +6 -5
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.combobox.single/schema.js +2 -2
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.multi/runtime.vue +3 -4
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.combobox.single/runtime.vue +3 -4
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.multi/runtime.vue +3 -4
- package/dist/runtime/components/form/fields/2026-05-28/com.shwfed.form.field.tree.single/runtime.vue +3 -4
- package/dist/runtime/components/form/schema.js +2 -2
- package/dist/runtime/components/form/utils/initial.d.ts +5 -4
- package/dist/runtime/components/form/utils/initial.js +2 -2
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/runtime.vue +7 -6
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/schema.js +2 -2
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/runtime.vue +7 -6
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/schema.js +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/runtime.vue +7 -6
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi/schema.js +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/runtime.vue +7 -6
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.js +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/runtime.vue +7 -6
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single/schema.js +2 -2
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/runtime.vue +7 -6
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.js +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/runtime.vue +3 -4
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-multi/schema.js +2 -2
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/runtime.vue +3 -4
- package/dist/runtime/components/table/columns/2026-05-27/com.shwfed.table.column.tree-combobox-single/schema.js +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/runtime.vue +7 -6
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.js +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/runtime.vue +7 -6
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.js +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/runtime.vue +3 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-multi/schema.js +2 -2
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/runtime.vue +3 -4
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.tree-combobox-single/schema.js +2 -2
- package/dist/runtime/components/table/index.vue +3 -4
- package/dist/runtime/components/table/schema.js +3 -3
- package/dist/runtime/share/expression.d.ts +13 -0
- package/dist/runtime/share/expression.js +1 -0
- package/dist/runtime/share/request.d.ts +29 -0
- package/dist/runtime/share/request.js +11 -0
- package/dist/runtime/vendor/cel-js/CLAUDE.md +2 -2
- package/dist/runtime/vendor/cel-js/PROMPT.md +35 -3
- package/dist/runtime/vendor/cel-js/lib/functions.js +2 -2
- package/dist/runtime/vendor/cel-js/lib/optional.js +52 -1
- package/package.json +1 -1
- package/dist/preview/assets/badge-C-IvPZBx.js +0 -1
- package/dist/preview/assets/config-DXlCQMVi.js +0 -1
- package/dist/preview/assets/config-Dj0rEZRq.js +0 -1
- package/dist/preview/assets/config-_aVQvlhc.js +0 -1
- package/dist/preview/assets/config-l01zamcS.js +0 -1
- package/dist/preview/assets/definition.vue_vue_type_script_setup_true_lang-BbuC0qEM.js +0 -1
- package/dist/preview/assets/index-BNaI1T0H.js +0 -680
- package/dist/preview/assets/index-BwoBmSxu.js +0 -1
- package/dist/preview/assets/item-GFiAkFW6.js +0 -1
- package/dist/preview/assets/runtime-5h5U6Ozr.js +0 -1
- package/dist/preview/assets/runtime-B6dXW6zW.js +0 -1
- package/dist/preview/assets/runtime-BEOIc4zU.js +0 -1
- package/dist/preview/assets/runtime-Bx7G-5dR.js +0 -1
- package/dist/preview/assets/runtime-TNDFpOlo.js +0 -1
- package/dist/preview/assets/runtime-g9hb36Vh.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b1 as e}from"./index-BNaI1T0H.js";import{b2 as f,b3 as r,b4 as s}from"./index-BNaI1T0H.js";export{f as TableConfig,r as createTableConfig,e as default,s as getColumnTechnicalKey};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as M,u as O,o as E,w as y,a as T,c as V,n as z,b as A,r as x,e as i,g as L,f as s,s as g,h as P,i as U,p as W,l as D,j as G,k as H,m as b,q as J,t as j}from"./index-BNaI1T0H.js";import K from"./index-DiC1rvCq.js";const X=M({name:"ShwfedBlockAnimatedNumberItem",__name:"item",props:{item:{}},setup(h){const n=h,S=J(),a=x(void 0),m=x(0);function u(){return H(S)}function w(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?b():g(a.value));function v(e){if(!e)return"";try{const t=j(s(e,{...u(),json:d.value}));return t==null?"":String(t)}catch{return""}}const _=i(()=>v(n.item.prefix)),C=i(()=>v(n.item.suffix));function F(e){if(e)try{const t=j(s(e,{...u(),json:d.value}));return t==null?void 0:typeof t=="string"||typeof t=="object"?t:String(t)}catch{return}}const I=i(()=>F(n.item.style));async function o(){const e=n.item.dataSource,t=u(),k=L(function*(){let r=b();if(e.request){const B=yield*s(e.request,t);r=g(yield*B.json())}const q=yield*s(e.value,{...t,json:r});return{json:P(r),value:q}});try{const r=await U(W(k,D));a.value=r.json,m.value=w(r.value)}catch(r){console.warn("[shwfed-animated-number] fetch failed",r)}}const l=i(()=>(n.item.pollingInterval??0)>0),N=i(()=>Math.max(1,n.item.pollingInterval??1)*1e3),c=G(),{pause:p,resume:f}=O(()=>{o()},N,{immediate:!1});return E(()=>{o(),l.value&&c.value&&f()}),y(c,e=>{l.value&&(e?(o(),f()):p())}),y(()=>[n.item.dataSource.request??"",n.item.dataSource.value,n.item.pollingInterval??0].join("|"),()=>{o(),l.value&&c.value?f():p()}),(e,t)=>(T(),V(A(K),{value:m.value,prefix:_.value,suffix:C.value,style:z(I.value)},null,8,["value","prefix","suffix","style"]))}});export{X as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as l,aX as g,aJ as A,aL as y,aU as _,c as b,b as h,f as S,k,aI as j,aY as C,a as B,q as I}from"./index-BNaI1T0H.js";import{_ as O}from"./definition.vue_vue_type_script_setup_true_lang-BbuC0qEM.js";const F=l({name:"ShwfedStateWriteActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(r){const s=r,i=I(),f=(e,t)=>S(e,{...k(i),...t}),n=g(),c=n.kind==="form"&&n.parent?n.parent:n,u=j(),m=C((e,t,a)=>{if(Array.isArray(e[t])&&Array.isArray(a))return e[t]=a,!0});function o(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function p(e,t){return o(e)&&o(t)?m({...t},e):t}const d=A(()=>y(f(s.config.expression),e=>{for(const t of Object.keys(e)){const a=p(c.getAt(t),e[t]);c.setAt(t,a)}return _(u,s.config.onSuccess)}));return(e,t)=>(B(),b(O,{"action-id":r.buttonId,effect:h(d)},null,8,["action-id","effect"]))}});export{F as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as s,F as x,aO as T,g as p,L as c,aP as M,t as N,c as b,G as d,b as u,r as L,x as S,aI as k,aN as I,a as w,R as F,n as H,H as r,aQ as R,aR as A,aw as V,q as $,aS as f,C as m,aT as j}from"./index-BNaI1T0H.js";import{_ as z}from"./definition.vue_vue_type_script_setup_true_lang-BbuC0qEM.js";const Y=s({name:"ShwfedModalLayoutActionRuntime",__name:"runtime",props:{buttonId:{},config:{},buttonTitle:{}},setup(n){const a=n,{locale:l}=x(),v=e=>{},g=$(),i=S(f,void 0),h=k(),o=L(null),C=T(a.buttonId,{close:()=>I(()=>{o.value?.()})},h),E=s({name:"ModalBoundaryBridge",setup(e,{slots:t}){return A(g),m(j,C),i&&m(f,i),()=>t.default?.()}}),_=(e,t)=>V()?.(e,t),y=p(function*(){const e=c(a.config.modalTitle,l.value)??c(a.buttonTitle,l.value)??"",{modal:t,close:B}=yield*M({title:e,width:a.config.modalWidth});o.value=()=>N(B()),yield*t,o.value=null});return(e,t)=>(w(),b(z,{"action-id":n.buttonId,effect:u(y)},{default:d(()=>[F("div",{style:H(n.config.modalMinHeight?`min-height: ${n.config.modalMinHeight}`:void 0)},[r(u(E),null,{default:d(()=>[r(R,{"slot-value":n.config.slot,configure:v,"find-entry":_},null,8,["slot-value"])]),_:1})],4)]),_:1},8,["action-id","effect"]))}});export{Y as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as u,F as i,c as l,b as p,e as m,a as d,I as f,L as _,aE as k,f as w,k as x,q as g}from"./index-BNaI1T0H.js";const B=u({name:"ShwfedMarkdownItemRuntime",__name:"runtime",props:{config:{}},setup(s){const o=s,{locale:t}=i(),a=g(),c=(e,n)=>w(e,{...x(a),...n}),r=m(()=>{const e=_(o.config.content,t.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 +0,0 @@
|
|
|
1
|
-
import{d as l,F as u,g,aD as d,L as m,aE as p,aF as x,aG as E,c as k,b as _,f as h,k as w,aH as C,q as I,aI as F,a as b}from"./index-BNaI1T0H.js";import{_ as q}from"./definition.vue_vue_type_script_setup_true_lang-BbuC0qEM.js";const H=l({name:"ShwfedHttpRequestConfirmActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(s){const n=s,{locale:i}=u(),a=I(),t=(e,o)=>h(e,{...w(a),...o}),r=F(),c=C(),f=g(function*(){if(c&&!(yield*d(()=>c())))return;const e=m(n.config.markdown,i.value)??"",o=p(e,t);(yield*x({content:o,icon:n.config.icon,color:n.config.color}))||(yield*E(n.config.expression,t,{messageExpression:n.config.messageExpression,resultExpression:n.config.resultExpression,channel:r,triggers:{success:n.config.onSuccess,warning:n.config.onWarning,error:n.config.onError,info:n.config.onInfo}}))});return(e,o)=>(b(),k(q,{"action-id":s.buttonId,effect:_(f)},null,8,["action-id","effect"]))}});export{H as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as u,aJ as p,aD as g,aK as a,aL as m,aG as d,c as l,b as x,f as E,k as _,aH as h,q as C,aI as I,a as b}from"./index-BNaI1T0H.js";import{_ as k}from"./definition.vue_vue_type_script_setup_true_lang-BbuC0qEM.js";const B=u({name:"ShwfedHttpRequestActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(t){const e=t,c=C(),i=(n,s)=>E(n,{..._(c),...s}),r=I(),o=h(),f=p(()=>{const n=o?g(()=>o()):a(!0);return m(n,s=>s?d(e.config.expression,i,{messageExpression:e.config.messageExpression,resultExpression:e.config.resultExpression,channel:r,triggers:{success:e.config.onSuccess,warning:e.config.onWarning,error:e.config.onError,info:e.config.onInfo}}):a(void 0))});return(n,s)=>(b(),l(k,{"action-id":t.buttonId,effect:x(f)},null,8,["action-id","effect"]))}});export{B as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as i,aJ as f,aL as r,aN as d,c as m,b as u,f as p,k as l,q as _,a as g}from"./index-BNaI1T0H.js";import{_ as b}from"./definition.vue_vue_type_script_setup_true_lang-BbuC0qEM.js";const w=i({name:"ShwfedNavigationActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const t=e,o=_(),c=(n,a)=>p(n,{...l(o),...a}),s=f(()=>r(c(t.config.url),n=>d(()=>{window.open(n,t.config.mode)})));return(n,a)=>(g(),m(b,{"action-id":e.buttonId,effect:u(s)},null,8,["action-id","effect"]))}});export{w as default};
|