@shwfed/config 2.9.9 → 2.9.11
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 -2
- package/dist/module.json +1 -1
- package/dist/preview/assets/{FieldGroup.vue_vue_type_script_setup_true_lang-CdbT3cSj.js → FieldGroup.vue_vue_type_script_setup_true_lang-CN4xD2hQ.js} +1 -1
- package/dist/preview/assets/badge-CzfW1Ked.js +1 -0
- package/dist/preview/assets/config-BdX3zl4t.js +1 -0
- package/dist/preview/assets/{config-C8R7tsmC.js → config-Bzwfqv6w.js} +1 -1
- package/dist/preview/assets/config-C2y2XI2Q.js +1 -0
- package/dist/preview/assets/config-CCXJvpik.js +1 -0
- package/dist/preview/assets/config-CDYZN7EX.js +1 -0
- package/dist/preview/assets/config-CPuERNUd.js +1 -0
- package/dist/preview/assets/config-D37gWDMV.js +1 -0
- package/dist/preview/assets/config-DbNukLyq.js +1 -0
- package/dist/preview/assets/config-Op5IHwI_.js +1 -0
- package/dist/preview/assets/config-e5aOGFb2.js +1 -0
- package/dist/preview/assets/config-jJQ2fulH.js +1 -0
- package/dist/preview/assets/{config-DVk8b1Qf.js → config-jzfHh7bp.js} +1 -1
- package/dist/preview/assets/definition.vue_vue_type_script_setup_true_lang-BgssDGxW.js +1 -0
- package/dist/preview/assets/index-0vF7XQ-J.js +1 -0
- package/dist/preview/assets/{index-Df0XE7Lz.js → index-CAIvIAWJ.js} +1 -1
- package/dist/preview/assets/index-Cyjm-GKs.js +734 -0
- package/dist/preview/assets/index-D0eGXK5P.css +1 -0
- package/dist/preview/assets/item-CUoRMMz1.js +1 -0
- package/dist/preview/assets/{runtime-DU0iHs9-.js → runtime-BALr-Cq0.js} +1 -1
- package/dist/preview/assets/runtime-BvcTYin8.js +1 -0
- package/dist/preview/assets/runtime-CHQwYQ80.js +1 -0
- package/dist/preview/assets/runtime-CU5fYNMI.js +1 -0
- package/dist/preview/assets/runtime-CWt21RRo.js +1 -0
- package/dist/preview/assets/runtime-C_epees8.js +1 -0
- package/dist/preview/assets/runtime-D3TnRYXn.js +1 -0
- package/dist/preview/assets/runtime-DWKqftSK.js +1 -0
- package/dist/preview/assets/runtime-V_usL1Fa.js +1 -0
- package/dist/preview/assets/runtime-wAz72cCJ.js +1 -0
- package/dist/preview/assets/schema-meta-DwWuSVqk.js +1 -0
- package/dist/preview/index.html +2 -2
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.d.vue.ts +10 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/config.vue.d.ts +10 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json/schema.d.ts +5 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.d.vue.ts +10 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/config.vue.d.ts +10 -0
- package/dist/runtime/components/actions/buttons/2026-04-18/com.shwfed.actions.button.http.request.json.confirm/schema.d.ts +5 -0
- package/dist/runtime/components/actions/buttons/2026-05-11/com.shwfed.actions.button.modal.layout/config.vue +6 -1
- package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/config.d.vue.ts +2 -0
- package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/config.vue.d.ts +2 -0
- package/dist/runtime/components/actions/buttons/2026-05-15/com.shwfed.actions.button.event.dispatch/schema.d.ts +1 -0
- package/dist/runtime/components/actions/buttons/2026-05-21/com.shwfed.actions.button.http.download/config.d.vue.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-05-21/com.shwfed.actions.button.http.download/config.vue.d.ts +8 -0
- package/dist/runtime/components/actions/buttons/2026-05-21/com.shwfed.actions.button.http.download/schema.d.ts +4 -0
- package/dist/runtime/components/actions/buttons/2026-05-24/com.shwfed.actions.button.state.write/config.d.vue.ts +2 -0
- package/dist/runtime/components/actions/buttons/2026-05-24/com.shwfed.actions.button.state.write/config.vue.d.ts +2 -0
- package/dist/runtime/components/actions/buttons/2026-05-24/com.shwfed.actions.button.state.write/schema.d.ts +1 -0
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/config.d.vue.ts +2 -0
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/config.vue.d.ts +2 -0
- package/dist/runtime/components/actions/buttons/2026-06-08/com.shwfed.actions.button.http.request.json.batch/schema.d.ts +1 -0
- package/dist/runtime/components/actions/components/trigger-row-scope.d.vue.ts +17 -0
- package/dist/runtime/components/actions/components/trigger-row-scope.vue +15 -0
- package/dist/runtime/components/actions/components/trigger-row-scope.vue.d.ts +17 -0
- package/dist/runtime/components/actions/components/triggers-field.d.vue.ts +2 -0
- package/dist/runtime/components/actions/components/triggers-field.vue +29 -7
- package/dist/runtime/components/actions/components/triggers-field.vue.d.ts +2 -0
- package/dist/runtime/components/actions/config.d.vue.ts +1 -0
- package/dist/runtime/components/actions/config.vue +6 -2
- package/dist/runtime/components/actions/config.vue.d.ts +1 -0
- package/dist/runtime/components/block-layout-editor/index.vue +15 -2
- package/dist/runtime/components/config/blocks/2026-05-06/com.shwfed.block.tabs/config.vue +5 -2
- package/dist/runtime/components/config/blocks/2026-06-02/com.shwfed.block.card/config.vue +4 -1
- package/dist/runtime/components/config/config.d.vue.ts +1 -1
- package/dist/runtime/components/config/config.vue +2 -33
- package/dist/runtime/components/config/config.vue.d.ts +1 -1
- package/dist/runtime/components/config/index.vue +5 -1
- package/dist/runtime/components/config/schema.d.ts +5 -0
- package/dist/runtime/components/config/schema.js +10 -0
- package/dist/runtime/components/config/use-editor.d.ts +19 -0
- package/dist/runtime/components/config/use-editor.js +36 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.d.ts +1 -0
- package/dist/runtime/components/form/fields/2026-04-22/com.shwfed.form.field.markdown/schema.js +1 -1
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.d.vue.ts +2 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.vue +3 -2
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/config.vue.d.ts +2 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/runtime.vue +1 -1
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.d.ts +3 -0
- package/dist/runtime/components/form/fields/2026-04-24/com.shwfed.form.field.actions/schema.js +1 -1
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.number/config.vue.d.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.d.vue.ts +2 -2
- package/dist/runtime/components/form/fields/2026-04-28/com.shwfed.form.field.numberrange/config.vue.d.ts +2 -2
- package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/config.d.vue.ts +33 -0
- package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/config.vue +130 -0
- package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/config.vue.d.ts +33 -0
- package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/runtime.d.ts +2 -0
- package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/runtime.js +55 -0
- package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.d.ts +23 -0
- package/dist/runtime/components/operations/2026-06-11/com.shwfed.operation.http.request.json/schema.js +79 -0
- package/dist/runtime/components/operations/utils/resolve.d.ts +16 -1
- package/dist/runtime/components/operations/utils/resolve.js +1 -1
- package/dist/runtime/components/operations/utils/step-vars.d.ts +22 -0
- package/dist/runtime/components/operations/utils/step-vars.js +12 -0
- package/dist/runtime/components/table/columns/2026-04-14/com.shwfed.table.column.actions/config.vue +1 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-13/com.shwfed.table.column.switch.remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-24/com.shwfed.table.column.combobox-single.remote.options-static/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-25/com.shwfed.table.column.combobox-multi.remote.options-static/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-multi.remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-26/com.shwfed.table.column.combobox-single.remote/schema.d.ts +1 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-multi/schema.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.d.vue.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/config.vue.d.ts +2 -0
- package/dist/runtime/components/table/columns/2026-05-28/com.shwfed.table.column.combobox-single/schema.d.ts +2 -0
- package/dist/runtime/components/table/config.vue +1 -1
- package/dist/runtime/components/ui/expression-editor/CodeMirrorInput.d.vue.ts +2 -0
- package/dist/runtime/components/ui/expression-editor/CodeMirrorInput.vue +9 -1
- package/dist/runtime/components/ui/expression-editor/CodeMirrorInput.vue.d.ts +2 -0
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.d.vue.ts +2 -2
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue +33 -4
- package/dist/runtime/components/ui/expression-editor/ExpressionEditor.vue.d.ts +2 -2
- package/dist/runtime/components/ui/expression-editor/picker-entries.d.ts +3 -2
- package/dist/runtime/components/ui/expression-editor/picker-entries.js +13 -2
- package/dist/runtime/components/ui/expression-editor/step-chip-extension.d.ts +5 -0
- package/dist/runtime/components/ui/expression-editor/step-chip-extension.js +132 -0
- package/dist/runtime/components/ui/expression-editor/step-refs.d.ts +17 -0
- package/dist/runtime/components/ui/expression-editor/step-refs.js +29 -0
- package/dist/runtime/share/event-bus.d.ts +34 -1
- package/dist/runtime/share/event-bus.js +28 -11
- package/dist/runtime/utils/cel-context.d.ts +35 -0
- package/dist/runtime/utils/cel-context.js +8 -0
- package/package.json +1 -1
- package/dist/preview/assets/badge-DL-wtgr8.js +0 -1
- package/dist/preview/assets/config-80OJWswM.js +0 -1
- package/dist/preview/assets/config-B8F7X1oF.js +0 -1
- package/dist/preview/assets/config-B9BcmOZt.js +0 -1
- package/dist/preview/assets/config-C-Ta4ALL.js +0 -1
- package/dist/preview/assets/config-CoObmLL2.js +0 -1
- package/dist/preview/assets/config-DBQ-1J66.js +0 -1
- package/dist/preview/assets/config-DjsQoLiy.js +0 -1
- package/dist/preview/assets/config-RmdB0dwp.js +0 -1
- package/dist/preview/assets/config-h_hDvpHt.js +0 -1
- package/dist/preview/assets/definition.vue_vue_type_script_setup_true_lang-SX94Z692.js +0 -1
- package/dist/preview/assets/index-BIwwDhfa.js +0 -1
- package/dist/preview/assets/index-C1h9lV52.css +0 -1
- package/dist/preview/assets/index-CsN0336H.js +0 -717
- package/dist/preview/assets/item-B9XcOWjy.js +0 -1
- package/dist/preview/assets/runtime-BBsXfAZm.js +0 -1
- package/dist/preview/assets/runtime-BHlUDfbv.js +0 -1
- package/dist/preview/assets/runtime-BrwIgXY3.js +0 -1
- package/dist/preview/assets/runtime-C--WPQ3o.js +0 -1
- package/dist/preview/assets/runtime-C0yBdMlV.js +0 -1
- package/dist/preview/assets/runtime-C6uebSDU.js +0 -1
- package/dist/preview/assets/runtime-Dqa4phvv.js +0 -1
- package/dist/preview/assets/runtime-Dr-MmEyE.js +0 -1
- package/dist/preview/assets/runtime-v_nJoD5I.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as q,q as M,r as O,v as y,o as k,c as E,x as z,e as A,y as x,z as r,A as J,B as L,C as s,D as T,E as V,F as D,G,H,I as K,J as g,K as P,L as h,M as U}from"./index-CsN0336H.js";import W from"./index-Df0XE7Lz.js";const X=q({name:"ShwfedBlockAnimatedNumberItem",__name:"item",props:{item:{}},setup(b){const n=b,j=P(),a=x(void 0),m=x(0);function u(){return K(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=r(()=>a.value===void 0?g():U(a.value));function v(e){if(!e)return"";try{const t=h(s(e,{...u(),json:d.value}));return t==null?"":String(t)}catch{return""}}const w=r(()=>v(n.item.prefix)),C=r(()=>v(n.item.suffix));function F(e){if(e)try{const t=h(s(e,{...u(),json:d.value}));return t==null?void 0:typeof t=="string"||typeof t=="object"?t:String(t)}catch{return}}const I=r(()=>F(n.item.style));async function i(){const e=n.item.dataSource,t=u(),B=J(function*(){let o=g();e.request&&(o=yield*L(yield*s(e.request,t)));const N=yield*s(e.value,{...t,json:o});return{json:T(o),value:N}});try{const o=await V(D(B,G));a.value=o.json,m.value=S(o.value)}catch(o){console.warn("[shwfed-animated-number] fetch failed",o)}}const l=r(()=>(n.item.pollingInterval??0)>0),_=r(()=>Math.max(1,n.item.pollingInterval??1)*1e3),c=H(),{pause:p,resume:f}=M(()=>{i()},_,{immediate:!1});return O(()=>{i(),l.value&&c.value&&f()}),y(c,e=>{l.value&&(e?(i(),f()):p())}),y(()=>[n.item.dataSource.request??"",n.item.dataSource.value,n.item.pollingInterval??0].join("|"),()=>{i(),l.value&&c.value?f():p()}),(e,t)=>(k(),E(A(W),{value:m.value,prefix:w.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,b1 as g,aP as A,aS as y,aK as b,c as S,e as _,C as h,I as C,aO as j,b2 as k,K as O,o as B}from"./index-CsN0336H.js";import{_ as I}from"./definition.vue_vue_type_script_setup_true_lang-SX94Z692.js";const E=l({name:"ShwfedStateWriteActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(s){const a=s,f=O(),c=(e,t)=>h(e,{...C(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(I,{"action-id":s.buttonId,effect:_(d)},null,8,["action-id","effect"]))}});export{E as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as r,aP as f,aQ as u,aK as g,aN as p,c as d,e as m,C as l,I as x,aO as h,K as E,o as _}from"./index-CsN0336H.js";import{_ as C}from"./definition.vue_vue_type_script_setup_true_lang-SX94Z692.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(C,{"action-id":n.buttonId,effect:m(a)},null,8,["action-id","effect"]))}});export{B as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as r,aP as f,aK as d,c as u,e as m,aO as p,o as l,C as g,I as h,K as _}from"./index-CsN0336H.js";import{_ as C}from"./definition.vue_vue_type_script_setup_true_lang-SX94Z692.js";const E=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{E as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as o}from"./definition.vue_vue_type_script_setup_true_lang-SX94Z692.js";import{d as n,c,e as a,o as f,aR as i}from"./index-CsN0336H.js";const _=n({name:"ShwfedPrototypeActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const t=i;return(r,s)=>(f(),c(o,{"action-id":e.buttonId,effect:a(t)},null,8,["action-id","effect"]))}});export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as f,W as u,aP as p,aQ as d,aK as l,b3 as m,$ as g,c as x,e as h,C as E,I as _,aO as B,o as C,K as b}from"./index-CsN0336H.js";import{_ as k}from"./definition.vue_vue_type_script_setup_true_lang-SX94Z692.js";const O=f({name:"ShwfedHttpRequestBatchActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(n){const e=n,{locale:a}=u(),c=b(),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)=>(C(),x(k,{"action-id":n.buttonId,effect:h(r)},null,8,["action-id","effect"]))}});export{O as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as u,W as i,c as l,e as p,z as m,o as d,k as f,$ as _,aL as k,C as w,I as x,K as g}from"./index-CsN0336H.js";const h=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{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as s,W as x,aU as T,A as p,$ as c,aV as M,L as b,c as L,w as d,e as u,y as N,O as k,aO as S,aW as w,o as A,m as I,x as V,b as r,aX as $,aY as F,aB as H,K,aZ as f,T as m,a_ as O}from"./index-CsN0336H.js";import{_ as W}from"./definition.vue_vue_type_script_setup_true_lang-SX94Z692.js";const z=s({name:"ShwfedModalLayoutActionRuntime",__name:"runtime",props:{buttonId:{},config:{},buttonTitle:{}},setup(n){const a=n,{locale:l}=x(),v=e=>{},h=K(),i=k(f,void 0),g=S(),o=N(null),C=T(a.buttonId,{close:()=>w(()=>{o.value?.()})},g),_=s({name:"ModalBoundaryBridge",setup(e,{slots:t}){return F(h),m(O,C),i&&m(f,i),()=>t.default?.()}}),y=(e,t)=>H()?.(e,t),E=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=()=>b(B()),yield*t,o.value=null});return(e,t)=>(A(),L(W,{"action-id":n.buttonId,effect:u(E)},{default:d(()=>[I("div",{style:V(n.config.modalMinHeight?`min-height: ${n.config.modalMinHeight}`:void 0)},[r(u(_),null,{default:d(()=>[r($,{"slot-value":n.config.slot,configure:v,"find-entry":y},null,8,["slot-value"])]),_:1})],4)]),_:1},8,["action-id","effect"]))}});export{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as f,aP as u,aS as l,aT as d,c as m,e as w,C as p,I as _,K as g,o as h}from"./index-CsN0336H.js";import{_ as v}from"./definition.vue_vue_type_script_setup_true_lang-SX94Z692.js";function x(){return{resolve:e=>({href:new URL(e,window.location.href).href})}}function b(e,t){return window.location.assign(e),Promise.resolve()}const R=f({name:"ShwfedNavigationActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const t=e,i=x(),a=g(),r=(n,o)=>p(n,{..._(a),...o});function c(n){try{return new URL(n,window.location.href).origin!==window.location.origin}catch{return!1}}const s=u(()=>l(r(t.config.url),n=>d(async()=>{const o=c(n);if(t.config.mode==="_blank"){window.open(o?n:i.resolve(n).href,"_blank");return}await b(n)})));return(n,o)=>(h(),m(v,{"action-id":e.buttonId,effect:w(s)},null,8,["action-id","effect"]))}});export{R as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as f,W as g,A as l,aK as u,$ as d,aL as p,aM as m,aN as x,c as E,e as _,C as h,I as C,aO as w,K as I,o as k}from"./index-CsN0336H.js";import{_ as b}from"./definition.vue_vue_type_script_setup_true_lang-SX94Z692.js";const L=f({name:"ShwfedHttpRequestConfirmActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(c){const e=c,{locale:i}=g(),a=I(),s=(n,o)=>h(n,{...C(a),...o}),t=w(),r=l(function*(){yield*u(t,e.config.before,s);const n=d(e.config.markdown,i.value)??"",o=p(n,s);(yield*m({content:o,icon:e.config.icon,color:e.config.color}))||(yield*x(e.config.expression,s,{messageExpression:e.config.messageExpression,resultExpression:e.config.resultExpression,channel:t,triggers:{success:e.config.onSuccess,warning:e.config.onWarning,error:e.config.onError,info:e.config.onInfo}}))});return(n,o)=>(k(),E(b,{"action-id":c.buttonId,effect:_(r)},null,8,["action-id","effect"]))}});export{L as default};
|