@shwfed/config 2.9.3 → 2.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/mcp.mjs +8 -0
  2. package/dist/module.json +1 -1
  3. package/dist/preview/assets/{badge-CY7N4tzE.js → badge-Nmf0QGvo.js} +1 -1
  4. package/dist/preview/assets/{config-CqhZtEzh.js → config-BuBQPlju.js} +1 -1
  5. package/dist/preview/assets/{config-CdTo0RnO.js → config-CBxDLjqQ.js} +1 -1
  6. package/dist/preview/assets/{config-Ch-uzD4K.js → config-CSU0Tuu4.js} +1 -1
  7. package/dist/preview/assets/{config-D2iQ1cHu.js → config-Cnu3ZCPF.js} +1 -1
  8. package/dist/preview/assets/{config-Cou30eMf.js → config-CzBP2y8L.js} +1 -1
  9. package/dist/preview/assets/{config-BI9O-CMH.js → config-nczxdERQ.js} +1 -1
  10. package/dist/preview/assets/{config-B6xtqPys.js → config-qCPGn6mB.js} +1 -1
  11. package/dist/preview/assets/{config-D0e-dO3Y.js → config-vHYVnzyt.js} +1 -1
  12. package/dist/preview/assets/{config-C9LThFFM.js → config-w2mvI_4h.js} +1 -1
  13. package/dist/preview/assets/{definition.vue_vue_type_script_setup_true_lang-8UNFiK_W.js → definition.vue_vue_type_script_setup_true_lang-DqE0YNVF.js} +1 -1
  14. package/dist/preview/assets/index-BgvMBKzp.js +1 -0
  15. package/dist/preview/assets/{index-CNgUJDgV.js → index-CHkjJPVP.js} +1 -1
  16. package/dist/preview/assets/{index-DZS4TKGX.js → index-cyMSopN_.js} +59 -59
  17. package/dist/preview/assets/{item-Cjwnz068.js → item-DAL4Ui_l.js} +1 -1
  18. package/dist/preview/assets/{runtime-BhLcYJQW.js → runtime-BcsMOkA2.js} +1 -1
  19. package/dist/preview/assets/{runtime-BHXxRkau.js → runtime-BzwoxDCd.js} +1 -1
  20. package/dist/preview/assets/{runtime-CiHPMpFW.js → runtime-Cu2DKoI0.js} +1 -1
  21. package/dist/preview/assets/{runtime-ncpmo94E.js → runtime-Dp0JEFtU.js} +1 -1
  22. package/dist/preview/assets/{runtime-Caf4c7Qr.js → runtime-Dy1bI4VO.js} +1 -1
  23. package/dist/preview/assets/{runtime-Bxhg8fck.js → runtime-YE1oXXQN.js} +1 -1
  24. package/dist/preview/assets/{runtime-DLY_TObR.js → runtime-YRSxexBQ.js} +1 -1
  25. package/dist/preview/assets/{runtime-DNRZcUw_.js → runtime-lZLYBBgn.js} +1 -1
  26. package/dist/preview/assets/{runtime-Bi-TAMSI.js → runtime-uwt0BxpS.js} +1 -1
  27. package/dist/preview/index.html +1 -1
  28. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.d.vue.ts +4 -4
  29. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.daterange/config.vue.d.ts +4 -4
  30. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.d.vue.ts +6 -6
  31. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.datetimerange/config.vue.d.ts +6 -6
  32. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.d.vue.ts +2 -2
  33. package/dist/runtime/components/form/fields/2026-04-27/com.shwfed.form.field.timerange/config.vue.d.ts +2 -2
  34. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.d.vue.ts +4 -4
  35. package/dist/runtime/components/form/fields/2026-05-24/com.shwfed.form.field.monthrange/config.vue.d.ts +4 -4
  36. package/dist/runtime/components/ui/date-picker/DatePickerInput.d.vue.ts +1 -1
  37. package/dist/runtime/components/ui/date-picker/DatePickerInput.vue.d.ts +1 -1
  38. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.d.vue.ts +1 -1
  39. package/dist/runtime/components/ui/date-picker/DatePickerTimeInput.vue.d.ts +1 -1
  40. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.d.vue.ts +1 -1
  41. package/dist/runtime/components/ui/date-range-picker/DateRangePickerInput.vue.d.ts +1 -1
  42. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.d.vue.ts +2 -2
  43. package/dist/runtime/components/ui/date-range-picker/DateRangePickerTimeInput.vue.d.ts +2 -2
  44. package/dist/runtime/vendor/cel-js/CLAUDE.md +2 -0
  45. package/dist/runtime/vendor/cel-js/PROMPT.md +9 -0
  46. package/dist/runtime/vendor/cel-js/lib/functions.js +8 -0
  47. package/package.json +1 -1
  48. package/dist/preview/assets/index-BTleLwMz.js +0 -1
@@ -1 +1 @@
1
- import{d as q,u as B,o as O,w as y,a as M,c as E,n as T,b as V,r as x,e as o,g as z,f as A,h as s,i as J,j as L,p as P,l as U,k as W,m as D,q as g,s as G,t as h,v as H}from"./index-DZS4TKGX.js";import K from"./index-CNgUJDgV.js";const X=q({name:"ShwfedBlockAnimatedNumberItem",__name:"item",props:{item:{}},setup(b){const n=b,j=G(),a=x(void 0),m=x(0);function u(){return D(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=o(()=>a.value===void 0?g():H(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=o(()=>v(n.item.prefix)),_=o(()=>v(n.item.suffix));function C(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 F=o(()=>C(n.item.style));async function r(){const e=n.item.dataSource,t=u(),N=z(function*(){let i=g();e.request&&(i=yield*A(yield*s(e.request,t)));const k=yield*s(e.value,{...t,json:i});return{json:J(i),value:k}});try{const i=await L(P(N,U));a.value=i.json,m.value=S(i.value)}catch(i){console.warn("[shwfed-animated-number] fetch failed",i)}}const l=o(()=>(n.item.pollingInterval??0)>0),I=o(()=>Math.max(1,n.item.pollingInterval??1)*1e3),c=W(),{pause:p,resume:f}=B(()=>{r()},I,{immediate:!1});return O(()=>{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)=>(M(),E(V(K),{value:m.value,prefix:w.value,suffix:_.value,style:T(F.value)},null,8,["value","prefix","suffix","style"]))}});export{X as default};
1
+ import{d as q,u as B,o as O,w as y,a as M,c as E,n as T,b as V,r as x,e as o,g as z,f as A,h as s,i as J,j as L,p as P,l as U,k as W,m as D,q as g,s as G,t as h,v as H}from"./index-cyMSopN_.js";import K from"./index-CHkjJPVP.js";const X=q({name:"ShwfedBlockAnimatedNumberItem",__name:"item",props:{item:{}},setup(b){const n=b,j=G(),a=x(void 0),m=x(0);function u(){return D(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=o(()=>a.value===void 0?g():H(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=o(()=>v(n.item.prefix)),_=o(()=>v(n.item.suffix));function C(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 F=o(()=>C(n.item.style));async function r(){const e=n.item.dataSource,t=u(),N=z(function*(){let i=g();e.request&&(i=yield*A(yield*s(e.request,t)));const k=yield*s(e.value,{...t,json:i});return{json:J(i),value:k}});try{const i=await L(P(N,U));a.value=i.json,m.value=S(i.value)}catch(i){console.warn("[shwfed-animated-number] fetch failed",i)}}const l=o(()=>(n.item.pollingInterval??0)>0),I=o(()=>Math.max(1,n.item.pollingInterval??1)*1e3),c=W(),{pause:p,resume:f}=B(()=>{r()},I,{immediate:!1});return O(()=>{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)=>(M(),E(V(K),{value:m.value,prefix:w.value,suffix:_.value,style:T(F.value)},null,8,["value","prefix","suffix","style"]))}});export{X as default};
@@ -1 +1 @@
1
- import{d as l,aX as g,aJ as A,aM as y,aE as h,c as _,b,h as S,m as j,aI as k,aY as C,a as B,s as E}from"./index-DZS4TKGX.js";import{_ as I}from"./definition.vue_vue_type_script_setup_true_lang-8UNFiK_W.js";const F=l({name:"ShwfedStateWriteActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(r){const s=r,i=E(),f=(e,t)=>S(e,{...j(i),...t}),n=g(),c=n.kind==="form"&&n.parent?n.parent:n,u=k(),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 h(u,s.config.onSuccess)}));return(e,t)=>(B(),_(I,{"action-id":r.buttonId,effect:b(d)},null,8,["action-id","effect"]))}});export{F as default};
1
+ import{d as l,aX as g,aJ as A,aM as y,aE as h,c as _,b,h as S,m as j,aI as k,aY as C,a as B,s as E}from"./index-cyMSopN_.js";import{_ as I}from"./definition.vue_vue_type_script_setup_true_lang-DqE0YNVF.js";const F=l({name:"ShwfedStateWriteActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(r){const s=r,i=E(),f=(e,t)=>S(e,{...j(i),...t}),n=g(),c=n.kind==="form"&&n.parent?n.parent:n,u=k(),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 h(u,s.config.onSuccess)}));return(e,t)=>(B(),_(I,{"action-id":r.buttonId,effect:b(d)},null,8,["action-id","effect"]))}});export{F as default};
@@ -1 +1 @@
1
- import{d as r,aJ as f,aK as u,aE as g,aH as p,c as m,b as d,h as l,m as x,aI as h,s as E,a as _}from"./index-DZS4TKGX.js";import{_ as b}from"./definition.vue_vue_type_script_setup_true_lang-8UNFiK_W.js";const B=r({name:"ShwfedHttpRequestActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(n){const e=n,c=E(),a=(o,t)=>l(o,{...x(c),...t}),s=h(),i=f(()=>u(g(s,e.config.before),()=>p(e.config.expression,a,{messageExpression:e.config.messageExpression,resultExpression:e.config.resultExpression,channel:s,triggers:{success:e.config.onSuccess,warning:e.config.onWarning,error:e.config.onError,info:e.config.onInfo}})));return(o,t)=>(_(),m(b,{"action-id":n.buttonId,effect:d(i)},null,8,["action-id","effect"]))}});export{B as default};
1
+ import{d as r,aJ as f,aK as u,aE as g,aH as p,c as m,b as d,h as l,m as x,aI as h,s as E,a as _}from"./index-cyMSopN_.js";import{_ as b}from"./definition.vue_vue_type_script_setup_true_lang-DqE0YNVF.js";const B=r({name:"ShwfedHttpRequestActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(n){const e=n,c=E(),a=(o,t)=>l(o,{...x(c),...t}),s=h(),i=f(()=>u(g(s,e.config.before),()=>p(e.config.expression,a,{messageExpression:e.config.messageExpression,resultExpression:e.config.resultExpression,channel:s,triggers:{success:e.config.onSuccess,warning:e.config.onWarning,error:e.config.onError,info:e.config.onInfo}})));return(o,t)=>(_(),m(b,{"action-id":n.buttonId,effect:d(i)},null,8,["action-id","effect"]))}});export{B as default};
@@ -1 +1 @@
1
- import{_ as n}from"./definition.vue_vue_type_script_setup_true_lang-8UNFiK_W.js";import{d as o,c as a,b as c,a as f,aL as i}from"./index-DZS4TKGX.js";const _=o({name:"ShwfedPrototypeActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(t){const e=i;return(r,s)=>(f(),a(n,{"action-id":t.buttonId,effect:c(e)},null,8,["action-id","effect"]))}});export{_ as default};
1
+ import{_ as n}from"./definition.vue_vue_type_script_setup_true_lang-DqE0YNVF.js";import{d as o,c as a,b as c,a as f,aL as i}from"./index-cyMSopN_.js";const _=o({name:"ShwfedPrototypeActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(t){const e=i;return(r,s)=>(f(),a(n,{"action-id":t.buttonId,effect:c(e)},null,8,["action-id","effect"]))}});export{_ as default};
@@ -1 +1 @@
1
- import{d as f,aJ as u,aM as l,aN as d,c as m,b as w,h as p,m as h,s as _,a as g}from"./index-DZS4TKGX.js";import{_ as b}from"./definition.vue_vue_type_script_setup_true_lang-8UNFiK_W.js";function v(){return{resolve:e=>({href:new URL(e,window.location.href).href})}}function x(e,t){return window.location.assign(e),Promise.resolve()}const B=f({name:"ShwfedNavigationActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const t=e,i=v(),a=_(),r=(n,o)=>p(n,{...h(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 x(n)})));return(n,o)=>(g(),m(b,{"action-id":e.buttonId,effect:w(s)},null,8,["action-id","effect"]))}});export{B as default};
1
+ import{d as f,aJ as u,aM as l,aN as d,c as m,b as w,h as p,m as h,s as _,a as g}from"./index-cyMSopN_.js";import{_ as b}from"./definition.vue_vue_type_script_setup_true_lang-DqE0YNVF.js";function v(){return{resolve:e=>({href:new URL(e,window.location.href).href})}}function x(e,t){return window.location.assign(e),Promise.resolve()}const B=f({name:"ShwfedNavigationActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const t=e,i=v(),a=_(),r=(n,o)=>p(n,{...h(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 x(n)})));return(n,o)=>(g(),m(b,{"action-id":e.buttonId,effect:w(s)},null,8,["action-id","effect"]))}});export{B as default};
@@ -1 +1 @@
1
- import{d as E,aJ as _,g as S,aQ as r,aE as m,aV as b,aW as j,c as v,b as x,h as B,m as L,aI as k,s as C,a as R}from"./index-DZS4TKGX.js";import{_ as I}from"./definition.vue_vue_type_script_setup_true_lang-8UNFiK_W.js";const q=E({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)}const a={json:yield*u.json()},i=o===void 0?"success":yield*b(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 w=yield*(yield*t(e.download,a)).file();yield*r(()=>f(w))}const h={success:c.config.onSuccess,warning:c.config.onWarning,error:c.config.onError,info:c.config.onInfo};return yield*m(l,h[i])}));return(e,n)=>(R(),v(I,{"action-id":d.buttonId,effect:x(y)},null,8,["action-id","effect"]))}});export{q as default};
1
+ import{d as E,aJ as _,g as S,aQ as r,aE as m,aV as b,aW as j,c as v,b as x,h as B,m as L,aI as k,s as C,a as R}from"./index-cyMSopN_.js";import{_ as I}from"./definition.vue_vue_type_script_setup_true_lang-DqE0YNVF.js";const q=E({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)}const a={json:yield*u.json()},i=o===void 0?"success":yield*b(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 w=yield*(yield*t(e.download,a)).file();yield*r(()=>f(w))}const h={success:c.config.onSuccess,warning:c.config.onWarning,error:c.config.onError,info:c.config.onInfo};return yield*m(l,h[i])}));return(e,n)=>(R(),v(I,{"action-id":d.buttonId,effect:x(y)},null,8,["action-id","effect"]))}});export{q as default};
@@ -1 +1 @@
1
- import{d as i,G as x,aO as M,g as T,M as c,aP as p,t as S,c as b,H as d,b as u,r as I,y as N,aI as k,aQ as L,a as H,S as w,n as A,I as r,aR as F,aS as R,ax as V,s as $,aT as f,D as m,aU as j}from"./index-DZS4TKGX.js";import{_ as z}from"./definition.vue_vue_type_script_setup_true_lang-8UNFiK_W.js";const Y=i({name:"ShwfedModalLayoutActionRuntime",__name:"runtime",props:{buttonId:{},config:{},buttonTitle:{}},setup(n){const a=n,{locale:l}=x(),v=e=>{},g=$(),s=N(f,void 0),h=k(),o=I(null),C=M(a.buttonId,{close:()=>L(()=>{o.value?.()})},h),y=i({name:"ModalBoundaryBridge",setup(e,{slots:t}){return R(g),m(j,C),s&&m(f,s),()=>t.default?.()}}),E=(e,t)=>V()?.(e,t),_=T(function*(){const e=c(a.config.modalTitle,l.value)??c(a.buttonTitle,l.value)??"",{modal:t,close:B}=yield*p({title:e,width:a.config.modalWidth});o.value=()=>S(B()),yield*t,o.value=null});return(e,t)=>(H(),b(z,{"action-id":n.buttonId,effect:u(_)},{default:d(()=>[w("div",{style:A(n.config.modalMinHeight?`min-height: ${n.config.modalMinHeight}`:void 0)},[r(u(y),null,{default:d(()=>[r(F,{"slot-value":n.config.slot,configure:v,"find-entry":E},null,8,["slot-value"])]),_:1})],4)]),_:1},8,["action-id","effect"]))}});export{Y as default};
1
+ import{d as i,G as x,aO as M,g as T,M as c,aP as p,t as S,c as b,H as d,b as u,r as I,y as N,aI as k,aQ as L,a as H,S as w,n as A,I as r,aR as F,aS as R,ax as V,s as $,aT as f,D as m,aU as j}from"./index-cyMSopN_.js";import{_ as z}from"./definition.vue_vue_type_script_setup_true_lang-DqE0YNVF.js";const Y=i({name:"ShwfedModalLayoutActionRuntime",__name:"runtime",props:{buttonId:{},config:{},buttonTitle:{}},setup(n){const a=n,{locale:l}=x(),v=e=>{},g=$(),s=N(f,void 0),h=k(),o=I(null),C=M(a.buttonId,{close:()=>L(()=>{o.value?.()})},h),y=i({name:"ModalBoundaryBridge",setup(e,{slots:t}){return R(g),m(j,C),s&&m(f,s),()=>t.default?.()}}),E=(e,t)=>V()?.(e,t),_=T(function*(){const e=c(a.config.modalTitle,l.value)??c(a.buttonTitle,l.value)??"",{modal:t,close:B}=yield*p({title:e,width:a.config.modalWidth});o.value=()=>S(B()),yield*t,o.value=null});return(e,t)=>(H(),b(z,{"action-id":n.buttonId,effect:u(_)},{default:d(()=>[w("div",{style:A(n.config.modalMinHeight?`min-height: ${n.config.modalMinHeight}`:void 0)},[r(u(y),null,{default:d(()=>[r(F,{"slot-value":n.config.slot,configure:v,"find-entry":E},null,8,["slot-value"])]),_:1})],4)]),_:1},8,["action-id","effect"]))}});export{Y as default};
@@ -1 +1 @@
1
- import{d as u,G as i,c as l,b as p,e as m,a as d,J as f,M as _,aF as k,h as w,m as x,s as g}from"./index-DZS4TKGX.js";const B=u({name:"ShwfedMarkdownItemRuntime",__name:"runtime",props:{config:{}},setup(n){const o=n,{locale:t}=i(),a=g(),c=(e,s)=>w(e,{...x(a),...s}),r=m(()=>{const e=_(o.config.content,t.value)??"";return k(e,c)});return(e,s)=>(d(),l(p(f),{"data-slot":"buttons-markdown",source:r.value,class:"prose prose-sm prose-zinc px-1"},null,8,["source"]))}});export{B as default};
1
+ import{d as u,G as i,c as l,b as p,e as m,a as d,J as f,M as _,aF as k,h as w,m as x,s as g}from"./index-cyMSopN_.js";const B=u({name:"ShwfedMarkdownItemRuntime",__name:"runtime",props:{config:{}},setup(n){const o=n,{locale:t}=i(),a=g(),c=(e,s)=>w(e,{...x(a),...s}),r=m(()=>{const e=_(o.config.content,t.value)??"";return k(e,c)});return(e,s)=>(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{_ as c}from"./definition.vue_vue_type_script_setup_true_lang-8UNFiK_W.js";import{d as s,aJ as o,aE as i,c as r,b as f,aI as u,a as m}from"./index-DZS4TKGX.js";const g=s({name:"ShwfedEventDispatchActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const n=e,t=u(),a=o(()=>i(t,n.config.triggers));return(p,d)=>(m(),r(c,{"action-id":e.buttonId,effect:f(a)},null,8,["action-id","effect"]))}});export{g as default};
1
+ import{_ as c}from"./definition.vue_vue_type_script_setup_true_lang-DqE0YNVF.js";import{d as s,aJ as o,aE as i,c as r,b as f,aI as u,a as m}from"./index-cyMSopN_.js";const g=s({name:"ShwfedEventDispatchActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(e){const n=e,t=u(),a=o(()=>i(t,n.config.triggers));return(p,d)=>(m(),r(c,{"action-id":e.buttonId,effect:f(a)},null,8,["action-id","effect"]))}});export{g as default};
@@ -1 +1 @@
1
- import{d as f,G as g,g as l,aE as u,M as d,aF as p,aG as m,aH as x,c as E,b as h,h as _,m as w,aI as C,s as I,a as b}from"./index-DZS4TKGX.js";import{_ as k}from"./definition.vue_vue_type_script_setup_true_lang-8UNFiK_W.js";const H=f({name:"ShwfedHttpRequestConfirmActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(s){const n=s,{locale:i}=g(),a=I(),c=(e,o)=>_(e,{...w(a),...o}),t=C(),r=l(function*(){yield*u(t,n.config.before);const e=d(n.config.markdown,i.value)??"",o=p(e,c);(yield*m({content:o,icon:n.config.icon,color:n.config.color}))||(yield*x(n.config.expression,c,{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)=>(b(),E(k,{"action-id":s.buttonId,effect:h(r)},null,8,["action-id","effect"]))}});export{H as default};
1
+ import{d as f,G as g,g as l,aE as u,M as d,aF as p,aG as m,aH as x,c as E,b as h,h as _,m as w,aI as C,s as I,a as b}from"./index-cyMSopN_.js";import{_ as k}from"./definition.vue_vue_type_script_setup_true_lang-DqE0YNVF.js";const H=f({name:"ShwfedHttpRequestConfirmActionRuntime",__name:"runtime",props:{buttonId:{},config:{}},setup(s){const n=s,{locale:i}=g(),a=I(),c=(e,o)=>_(e,{...w(a),...o}),t=C(),r=l(function*(){yield*u(t,n.config.before);const e=d(n.config.markdown,i.value)??"",o=p(e,c);(yield*m({content:o,icon:n.config.icon,color:n.config.color}))||(yield*x(n.config.expression,c,{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)=>(b(),E(k,{"action-id":s.buttonId,effect:h(r)},null,8,["action-id","effect"]))}});export{H as default};
@@ -10,7 +10,7 @@
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-DZS4TKGX.js"></script>
13
+ <script type="module" crossorigin src="./assets/index-cyMSopN_.js"></script>
14
14
  <link rel="stylesheet" crossorigin href="./assets/index-COSjWreD.css">
15
15
  </head>
16
16
  <body>
@@ -33,8 +33,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
33
33
  readonly expression: string;
34
34
  } | undefined;
35
35
  readonly numberOfMonths?: number | undefined;
36
- readonly rangeSeparatorIcon?: string | undefined;
37
36
  readonly format?: string | undefined;
37
+ readonly valueFormat?: string | undefined;
38
+ readonly rangeSeparatorIcon?: string | undefined;
38
39
  readonly startPlaceholder?: readonly [{
39
40
  readonly locale: "zh";
40
41
  readonly message: string;
@@ -49,7 +50,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
49
50
  readonly locale: "en" | "ja" | "ko";
50
51
  readonly message: string;
51
52
  }[]] | undefined;
52
- readonly valueFormat?: string | undefined;
53
53
  readonly validations?: readonly {
54
54
  readonly message: readonly [{
55
55
  readonly locale: "zh";
@@ -105,8 +105,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
105
105
  readonly expression: string;
106
106
  } | undefined;
107
107
  readonly numberOfMonths?: number | undefined;
108
- readonly rangeSeparatorIcon?: string | undefined;
109
108
  readonly format?: string | undefined;
109
+ readonly valueFormat?: string | undefined;
110
+ readonly rangeSeparatorIcon?: string | undefined;
110
111
  readonly startPlaceholder?: readonly [{
111
112
  readonly locale: "zh";
112
113
  readonly message: string;
@@ -121,7 +122,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
121
122
  readonly locale: "en" | "ja" | "ko";
122
123
  readonly message: string;
123
124
  }[]] | undefined;
124
- readonly valueFormat?: string | undefined;
125
125
  readonly validations?: readonly {
126
126
  readonly message: readonly [{
127
127
  readonly locale: "zh";
@@ -33,8 +33,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
33
33
  readonly expression: string;
34
34
  } | undefined;
35
35
  readonly numberOfMonths?: number | undefined;
36
- readonly rangeSeparatorIcon?: string | undefined;
37
36
  readonly format?: string | undefined;
37
+ readonly valueFormat?: string | undefined;
38
+ readonly rangeSeparatorIcon?: string | undefined;
38
39
  readonly startPlaceholder?: readonly [{
39
40
  readonly locale: "zh";
40
41
  readonly message: string;
@@ -49,7 +50,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
49
50
  readonly locale: "en" | "ja" | "ko";
50
51
  readonly message: string;
51
52
  }[]] | undefined;
52
- readonly valueFormat?: string | undefined;
53
53
  readonly validations?: readonly {
54
54
  readonly message: readonly [{
55
55
  readonly locale: "zh";
@@ -105,8 +105,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
105
105
  readonly expression: string;
106
106
  } | undefined;
107
107
  readonly numberOfMonths?: number | undefined;
108
- readonly rangeSeparatorIcon?: string | undefined;
109
108
  readonly format?: string | undefined;
109
+ readonly valueFormat?: string | undefined;
110
+ readonly rangeSeparatorIcon?: string | undefined;
110
111
  readonly startPlaceholder?: readonly [{
111
112
  readonly locale: "zh";
112
113
  readonly message: string;
@@ -121,7 +122,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
121
122
  readonly locale: "en" | "ja" | "ko";
122
123
  readonly message: string;
123
124
  }[]] | undefined;
124
- readonly valueFormat?: string | undefined;
125
125
  readonly validations?: readonly {
126
126
  readonly message: readonly [{
127
127
  readonly locale: "zh";
@@ -34,8 +34,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
34
34
  } | undefined;
35
35
  readonly numberOfMonths?: number | undefined;
36
36
  readonly hourCycle?: 12 | 24 | undefined;
37
- readonly rangeSeparatorIcon?: string | undefined;
38
37
  readonly format?: string | undefined;
38
+ readonly valueFormat?: string | undefined;
39
+ readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
40
+ readonly rangeSeparatorIcon?: string | undefined;
39
41
  readonly startPlaceholder?: readonly [{
40
42
  readonly locale: "zh";
41
43
  readonly message: string;
@@ -50,8 +52,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
50
52
  readonly locale: "en" | "ja" | "ko";
51
53
  readonly message: string;
52
54
  }[]] | undefined;
53
- readonly valueFormat?: string | undefined;
54
- readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
55
55
  readonly validations?: readonly {
56
56
  readonly message: readonly [{
57
57
  readonly locale: "zh";
@@ -108,8 +108,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  } | undefined;
109
109
  readonly numberOfMonths?: number | undefined;
110
110
  readonly hourCycle?: 12 | 24 | undefined;
111
- readonly rangeSeparatorIcon?: string | undefined;
112
111
  readonly format?: string | undefined;
112
+ readonly valueFormat?: string | undefined;
113
+ readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
114
+ readonly rangeSeparatorIcon?: string | undefined;
113
115
  readonly startPlaceholder?: readonly [{
114
116
  readonly locale: "zh";
115
117
  readonly message: string;
@@ -124,8 +126,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
124
126
  readonly locale: "en" | "ja" | "ko";
125
127
  readonly message: string;
126
128
  }[]] | undefined;
127
- readonly valueFormat?: string | undefined;
128
- readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
129
129
  readonly validations?: readonly {
130
130
  readonly message: readonly [{
131
131
  readonly locale: "zh";
@@ -34,8 +34,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
34
34
  } | undefined;
35
35
  readonly numberOfMonths?: number | undefined;
36
36
  readonly hourCycle?: 12 | 24 | undefined;
37
- readonly rangeSeparatorIcon?: string | undefined;
38
37
  readonly format?: string | undefined;
38
+ readonly valueFormat?: string | undefined;
39
+ readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
40
+ readonly rangeSeparatorIcon?: string | undefined;
39
41
  readonly startPlaceholder?: readonly [{
40
42
  readonly locale: "zh";
41
43
  readonly message: string;
@@ -50,8 +52,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
50
52
  readonly locale: "en" | "ja" | "ko";
51
53
  readonly message: string;
52
54
  }[]] | undefined;
53
- readonly valueFormat?: string | undefined;
54
- readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
55
55
  readonly validations?: readonly {
56
56
  readonly message: readonly [{
57
57
  readonly locale: "zh";
@@ -108,8 +108,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
108
108
  } | undefined;
109
109
  readonly numberOfMonths?: number | undefined;
110
110
  readonly hourCycle?: 12 | 24 | undefined;
111
- readonly rangeSeparatorIcon?: string | undefined;
112
111
  readonly format?: string | undefined;
112
+ readonly valueFormat?: string | undefined;
113
+ readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
114
+ readonly rangeSeparatorIcon?: string | undefined;
113
115
  readonly startPlaceholder?: readonly [{
114
116
  readonly locale: "zh";
115
117
  readonly message: string;
@@ -124,8 +126,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
124
126
  readonly locale: "en" | "ja" | "ko";
125
127
  readonly message: string;
126
128
  }[]] | undefined;
127
- readonly valueFormat?: string | undefined;
128
- readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
129
129
  readonly validations?: readonly {
130
130
  readonly message: readonly [{
131
131
  readonly locale: "zh";
@@ -33,9 +33,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
33
33
  readonly expression: string;
34
34
  } | undefined;
35
35
  readonly hourCycle?: 12 | 24 | undefined;
36
- readonly rangeSeparatorIcon?: string | undefined;
37
36
  readonly valueFormat?: string | undefined;
38
37
  readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
38
+ readonly rangeSeparatorIcon?: string | undefined;
39
39
  readonly validations?: readonly {
40
40
  readonly message: readonly [{
41
41
  readonly locale: "zh";
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
79
79
  readonly expression: string;
80
80
  } | undefined;
81
81
  readonly hourCycle?: 12 | 24 | undefined;
82
- readonly rangeSeparatorIcon?: string | undefined;
83
82
  readonly valueFormat?: string | undefined;
84
83
  readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
84
+ readonly rangeSeparatorIcon?: string | undefined;
85
85
  readonly validations?: readonly {
86
86
  readonly message: readonly [{
87
87
  readonly locale: "zh";
@@ -33,9 +33,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
33
33
  readonly expression: string;
34
34
  } | undefined;
35
35
  readonly hourCycle?: 12 | 24 | undefined;
36
- readonly rangeSeparatorIcon?: string | undefined;
37
36
  readonly valueFormat?: string | undefined;
38
37
  readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
38
+ readonly rangeSeparatorIcon?: string | undefined;
39
39
  readonly validations?: readonly {
40
40
  readonly message: readonly [{
41
41
  readonly locale: "zh";
@@ -79,9 +79,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
79
79
  readonly expression: string;
80
80
  } | undefined;
81
81
  readonly hourCycle?: 12 | 24 | undefined;
82
- readonly rangeSeparatorIcon?: string | undefined;
83
82
  readonly valueFormat?: string | undefined;
84
83
  readonly timeGranularity?: "hour" | "minute" | "second" | undefined;
84
+ readonly rangeSeparatorIcon?: string | undefined;
85
85
  readonly validations?: readonly {
86
86
  readonly message: readonly [{
87
87
  readonly locale: "zh";
@@ -32,8 +32,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
32
32
  readonly mode: "formula" | "prefill";
33
33
  readonly expression: string;
34
34
  } | undefined;
35
- readonly rangeSeparatorIcon?: string | undefined;
36
35
  readonly format?: string | undefined;
36
+ readonly valueFormat?: string | undefined;
37
+ readonly rangeSeparatorIcon?: string | undefined;
37
38
  readonly startPlaceholder?: readonly [{
38
39
  readonly locale: "zh";
39
40
  readonly message: string;
@@ -48,7 +49,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
48
49
  readonly locale: "en" | "ja" | "ko";
49
50
  readonly message: string;
50
51
  }[]] | undefined;
51
- readonly valueFormat?: string | undefined;
52
52
  readonly validations?: readonly {
53
53
  readonly message: readonly [{
54
54
  readonly locale: "zh";
@@ -103,8 +103,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
103
  readonly mode: "formula" | "prefill";
104
104
  readonly expression: string;
105
105
  } | undefined;
106
- readonly rangeSeparatorIcon?: string | undefined;
107
106
  readonly format?: string | undefined;
107
+ readonly valueFormat?: string | undefined;
108
+ readonly rangeSeparatorIcon?: string | undefined;
108
109
  readonly startPlaceholder?: readonly [{
109
110
  readonly locale: "zh";
110
111
  readonly message: string;
@@ -119,7 +120,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
119
120
  readonly locale: "en" | "ja" | "ko";
120
121
  readonly message: string;
121
122
  }[]] | undefined;
122
- readonly valueFormat?: string | undefined;
123
123
  readonly validations?: readonly {
124
124
  readonly message: readonly [{
125
125
  readonly locale: "zh";
@@ -32,8 +32,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
32
32
  readonly mode: "formula" | "prefill";
33
33
  readonly expression: string;
34
34
  } | undefined;
35
- readonly rangeSeparatorIcon?: string | undefined;
36
35
  readonly format?: string | undefined;
36
+ readonly valueFormat?: string | undefined;
37
+ readonly rangeSeparatorIcon?: string | undefined;
37
38
  readonly startPlaceholder?: readonly [{
38
39
  readonly locale: "zh";
39
40
  readonly message: string;
@@ -48,7 +49,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
48
49
  readonly locale: "en" | "ja" | "ko";
49
50
  readonly message: string;
50
51
  }[]] | undefined;
51
- readonly valueFormat?: string | undefined;
52
52
  readonly validations?: readonly {
53
53
  readonly message: readonly [{
54
54
  readonly locale: "zh";
@@ -103,8 +103,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
103
103
  readonly mode: "formula" | "prefill";
104
104
  readonly expression: string;
105
105
  } | undefined;
106
- readonly rangeSeparatorIcon?: string | undefined;
107
106
  readonly format?: string | undefined;
107
+ readonly valueFormat?: string | undefined;
108
+ readonly rangeSeparatorIcon?: string | undefined;
108
109
  readonly startPlaceholder?: readonly [{
109
110
  readonly locale: "zh";
110
111
  readonly message: string;
@@ -119,7 +120,6 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {},
119
120
  readonly locale: "en" | "ja" | "ko";
120
121
  readonly message: string;
121
122
  }[]] | undefined;
122
- readonly valueFormat?: string | undefined;
123
123
  readonly validations?: readonly {
124
124
  readonly message: readonly [{
125
125
  readonly locale: "zh";
@@ -24,8 +24,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
24
24
  "onUpdate:modelValue"?: ((args_0: Date | undefined) => any) | undefined;
25
25
  }>, {
26
26
  size: "sm" | "md" | "lg";
27
- clearIcon: string;
28
27
  clearable: boolean;
28
+ clearIcon: string;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
30
  declare const _default: typeof __VLS_export;
31
31
  export default _default;
@@ -24,8 +24,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
24
24
  "onUpdate:modelValue"?: ((args_0: Date | undefined) => any) | undefined;
25
25
  }>, {
26
26
  size: "sm" | "md" | "lg";
27
- clearIcon: string;
28
27
  clearable: boolean;
28
+ clearIcon: string;
29
29
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
30
  declare const _default: typeof __VLS_export;
31
31
  export default _default;
@@ -22,8 +22,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
22
22
  size: "sm" | "md" | "lg";
23
23
  granularity: "hour" | "minute" | "second";
24
24
  hourCycle: 12 | 24;
25
- clearIcon: string;
26
25
  clearable: boolean;
26
+ clearIcon: string;
27
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  declare const _default: typeof __VLS_export;
29
29
  export default _default;
@@ -22,8 +22,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
22
22
  size: "sm" | "md" | "lg";
23
23
  granularity: "hour" | "minute" | "second";
24
24
  hourCycle: 12 | 24;
25
- clearIcon: string;
26
25
  clearable: boolean;
26
+ clearIcon: string;
27
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
28
  declare const _default: typeof __VLS_export;
29
29
  export default _default;
@@ -29,8 +29,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
29
29
  "onUpdate:endValue"?: ((args_0: Date | undefined) => any) | undefined;
30
30
  }>, {
31
31
  size: "sm" | "md" | "lg";
32
- clearIcon: string;
33
32
  clearable: boolean;
33
+ clearIcon: string;
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  export default _default;
@@ -29,8 +29,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
29
29
  "onUpdate:endValue"?: ((args_0: Date | undefined) => any) | undefined;
30
30
  }>, {
31
31
  size: "sm" | "md" | "lg";
32
- clearIcon: string;
33
32
  clearable: boolean;
33
+ clearIcon: string;
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  export default _default;
@@ -26,9 +26,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
26
26
  size: "sm" | "md" | "lg";
27
27
  granularity: "hour" | "minute" | "second";
28
28
  hourCycle: 12 | 24;
29
- rangeSeparatorIcon: string;
30
- clearIcon: string;
31
29
  clearable: boolean;
30
+ clearIcon: string;
31
+ rangeSeparatorIcon: string;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
33
  declare const _default: typeof __VLS_export;
34
34
  export default _default;
@@ -26,9 +26,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
26
26
  size: "sm" | "md" | "lg";
27
27
  granularity: "hour" | "minute" | "second";
28
28
  hourCycle: 12 | 24;
29
- rangeSeparatorIcon: string;
30
- clearIcon: string;
31
29
  clearable: boolean;
30
+ clearIcon: string;
31
+ rangeSeparatorIcon: string;
32
32
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
33
  declare const _default: typeof __VLS_export;
34
34
  export default _default;
@@ -16,6 +16,8 @@ A `range()` built-in has been added (not from upstream) — `range(number, numbe
16
16
 
17
17
  A `list.enumerate(): list<map<string, dyn>>` receiver method has been added (not from upstream, in `functions.ts` beside `list.size()`) — pairs each element with its 0-based index as a plain `{index, value}` record (CEL has no tuple type). It is a plain function, not a macro (no variable binding); the index is a `Decimal` so it stays a CEL `number` for downstream arithmetic. Receiver `list` resolves to `list<dyn>`, so it matches any list.
18
18
 
19
+ A `list.slice(number)` / `list.slice(number, number)` receiver pair has been added (not from upstream, in `functions.ts` beside `list.enumerate()`) — delegates straight to JS `Array.prototype.slice`, so negative indices count from the end (`list.slice(0, -1)` drops the last element) and out-of-range bounds clamp rather than throw. End is exclusive. Fills the gap left by CEL's `list[i]`, which has no negative indexing. Both overloads return `list<dyn>`.
20
+
19
21
  `evaluate` now returns `Effect<T, ParseError | EvaluationError | TypeError>` instead of a plain value. The entire evaluation pipeline is Effect-based — every AST node's `evaluate` function returns an Effect, and sub-expressions are composed via `Effect.gen` / `yield*`. Promise-based async handling has been removed. User-registered functions may return `Effect` values, which are automatically flatMapped into the evaluation pipeline. Import `Effect` from `effect` and use `Effect.runSync` or `Effect.runPromise` to execute the returned Effect.
20
22
 
21
23
  The `homogeneousAggregateLiterals` and `enableOptionalTypes` environment options have been removed. Aggregate data structures (lists, maps) are always heterogeneous — mixed-type literals are inferred as `list<dyn>` or `map<dyn, dyn>`. Optional types (`.?`, `[?]`, `optional.*` helpers) are always enabled.
@@ -139,6 +139,15 @@ items.enumerate().map(e, string(e.index) + ": " + e.value)
139
139
  ```
140
140
  Pairs each element with its 0-based index as `{index, value}` records (CEL has no tuple type). Works on any `list`. Returns `list<map<string, dyn>>`.
141
141
 
142
+ ### List slice
143
+ ```cel
144
+ [10, 20, 30, 40].slice(1) // [20, 30, 40] — from index 1 to end
145
+ [10, 20, 30, 40].slice(1, 3) // [20, 30] — start inclusive, end exclusive
146
+ [10, 20, 30, 40].slice(0, -1) // [10, 20, 30] — drop the last element
147
+ [10, 20, 30, 40].slice(-2) // [30, 40] — keep the last two
148
+ ```
149
+ Mirrors JS `Array.prototype.slice`. Negative indices count from the end (CEL's `list[i]` has no negative indexing). End is exclusive; out-of-range bounds clamp rather than throw. Works on any `list`; returns `list<dyn>`.
150
+
142
151
  ### String methods
143
152
  ```cel
144
153
  "hello".contains("ell") // true
@@ -54,6 +54,14 @@ export function registerFunctions(registry) {
54
54
  "list.enumerate(): list<map<string, dyn>>",
55
55
  (v) => v.map((value, i) => ({ index: Decimal.from(i), value }))
56
56
  );
57
+ functionOverload(
58
+ "list.slice(number): list<dyn>",
59
+ (v, start) => v.slice(toNum(start))
60
+ );
61
+ functionOverload(
62
+ "list.slice(number, number): list<dyn>",
63
+ (v, start, end) => v.slice(toNum(start), toNum(end))
64
+ );
57
65
  functionOverload("bytes(string): bytes", (v) => ByteOpts.fromString(v));
58
66
  functionOverload("bytes(bytes): bytes", identity);
59
67
  functionOverload("number(number): number", (v) => Decimal.from(v));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shwfed/config",
3
- "version": "2.9.3",
3
+ "version": "2.9.4",
4
4
  "description": "Configurable UI for SHWFED",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -1 +0,0 @@
1
- import{b1 as e}from"./index-DZS4TKGX.js";import{b2 as f,b3 as r,b4 as s}from"./index-DZS4TKGX.js";export{f as TableConfig,r as createTableConfig,e as default,s as getColumnTechnicalKey};