@agile-team/mach-report 2.22.0 → 2.23.0

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 (154) hide show
  1. package/README.md +7 -6
  2. package/dist/{ExcelBindingWizard-CZyppD7I.js → ExcelBindingWizard-D4FLind-.js} +3 -3
  3. package/dist/{ExcelBindingWizard-CW79I6Gl.cjs → ExcelBindingWizard-D4RS5Bpg.cjs} +1 -1
  4. package/dist/{ParamEditor-CiYCJI0b.cjs → ParamEditor-C-6C9rd2.cjs} +1 -1
  5. package/dist/{ParamEditor-DQit-Gdf.js → ParamEditor-CASZt-Ma.js} +2 -2
  6. package/dist/{ReportBatchPanel-DKTpV7MU.js → ReportBatchPanel-Bq7t8a5r.js} +2 -2
  7. package/dist/{ReportBatchPanel-Db6TAfG5.cjs → ReportBatchPanel-YVj5IO5y.cjs} +1 -1
  8. package/dist/ReportLabelStudio-Cqhita1b.cjs +1 -0
  9. package/dist/{ReportLabelStudio-BYnRqmje.js → ReportLabelStudio-Dj7GXhuv.js} +295 -292
  10. package/dist/ReportParamPanel-DZbFVmDL.cjs +1 -0
  11. package/dist/{ReportParamPanel-BHSKVL8k.js → ReportParamPanel-Dgmqro1Y.js} +93 -79
  12. package/dist/ReportPreview-DeWzG8jQ.js +6257 -0
  13. package/dist/ReportPreview-FFIryrIr.cjs +6 -0
  14. package/dist/{ReportTemplateLibrary-DEXH07ND.cjs → ReportTemplateLibrary-BaWodmpm.cjs} +1 -1
  15. package/dist/{ReportTemplateLibrary-BZuKn0YK.js → ReportTemplateLibrary-DdAAAD2I.js} +1 -1
  16. package/dist/{RuleEditor-CIQn547x.js → RuleEditor-D2UwQGF6.js} +59 -59
  17. package/dist/{RuleEditor-zSUmPjKa.cjs → RuleEditor-DcT9xI1v.cjs} +1 -1
  18. package/dist/TemplateOutlinePanel-CUHFFiNM.cjs +1 -0
  19. package/dist/{TemplateOutlinePanel-D0PgOSQE.js → TemplateOutlinePanel-DrT7XN0m.js} +2 -2
  20. package/dist/{TemplateReusePanel-BKlAEF8-.js → TemplateReusePanel-4eejkNqi.js} +2 -2
  21. package/dist/{TemplateReusePanel-DAy_Hwqz.cjs → TemplateReusePanel-DZMyiX5I.cjs} +1 -1
  22. package/dist/{TemplateReviewPanel-div-EH_m.js → TemplateReviewPanel-BIhNLeNw.js} +2 -2
  23. package/dist/{TemplateReviewPanel-CowmHaQQ.cjs → TemplateReviewPanel-DnYImiXu.cjs} +1 -1
  24. package/dist/analytics.cjs +1 -1
  25. package/dist/analytics.js +26 -26
  26. package/dist/artifact-integrity.json +106 -104
  27. package/dist/assets-D2gHc4Mz.cjs +1 -0
  28. package/dist/assets-T_gDeFaz.js +132 -0
  29. package/dist/auto-4pK9HePf.cjs +1 -0
  30. package/dist/auto-CTIJ6PnR.js +257 -0
  31. package/dist/capabilities-DiBj4Qgl.cjs +1 -0
  32. package/dist/capabilities-pg7j7VLT.js +106 -0
  33. package/dist/charts-Cjw5AYkg.cjs +1 -0
  34. package/dist/{charts-Dlv8j2AG.js → charts-CxJZ0XaY.js} +1 -1
  35. package/dist/computed-DK6BruFz.cjs +1 -0
  36. package/dist/{computed-C8NRZQss.js → computed-f3pOqWLX.js} +381 -301
  37. package/dist/data-bar-CeZuFmYl.cjs +1 -0
  38. package/dist/{data-bar-8baGYEZ9.js → data-bar-IkI6VvMQ.js} +1 -1
  39. package/dist/designer-DhrE7jzw.js +7169 -0
  40. package/dist/designer-IAZu6kBX.cjs +2 -0
  41. package/dist/designer.cjs +1 -1
  42. package/dist/designer.d.cts +98 -45
  43. package/dist/designer.d.ts +98 -45
  44. package/dist/designer.js +3 -3
  45. package/dist/dom-ChE5D-L-.cjs +1 -0
  46. package/dist/dom-JWrchIre.js +452 -0
  47. package/dist/dom-cell-address-DLD1mkTB.cjs +1 -0
  48. package/dist/dom-cell-address-Fn-8nk7D.js +11 -0
  49. package/dist/{encoding-ncQAvyOv.cjs → encoding-BefcaHdp.cjs} +1 -1
  50. package/dist/{encoding-DbnhbwI8.js → encoding-CL6rXEkR.js} +2 -2
  51. package/dist/{font-loader-Di0lQKFf.js → font-loader-BT5baV-o.js} +1 -1
  52. package/dist/{font-loader-BB372_XN.cjs → font-loader-Ga51c2VC.cjs} +1 -1
  53. package/dist/grid-strokes-Be24LGuV.cjs +1 -0
  54. package/dist/grid-strokes-EoY66L2f.js +53 -0
  55. package/dist/index.cjs +8 -8
  56. package/dist/index.d.cts +6 -1
  57. package/dist/index.d.ts +6 -1
  58. package/dist/index.js +944 -1259
  59. package/dist/json-snapshot-1tvQNzQE.cjs +2 -0
  60. package/dist/{json-snapshot-DvQbZlD7.js → json-snapshot-OqkPyUk5.js} +763 -776
  61. package/dist/matrix-B8QWbsGM.cjs +1 -0
  62. package/dist/matrix-C6e_r_vp.js +302 -0
  63. package/dist/{pdf-CARdBcuw.cjs → pdf-HiEeXe9H.cjs} +42 -42
  64. package/dist/{pdf-DmlnL5eB.js → pdf-aobetCsy.js} +20 -20
  65. package/dist/pdf.cjs +1 -1
  66. package/dist/pdf.js +2 -2
  67. package/dist/{plugin-AcAQ2m9X.cjs → plugin-BFANt-i8.cjs} +1 -1
  68. package/dist/{plugin-w5Nyt08U.js → plugin-DeYYAL6F.js} +1 -1
  69. package/dist/{prefill-BXBxx5We.js → prefill-Dk4C6S5R.js} +21 -21
  70. package/dist/prefill-DsUD5OoK.cjs +1 -0
  71. package/dist/prepared-DCIxhKFo.js +94 -0
  72. package/dist/prepared-Dv-XM3i1.cjs +1 -0
  73. package/dist/progress-ByiOxUD3.js +250 -0
  74. package/dist/progress-WomPRP3B.cjs +1 -0
  75. package/dist/{protocol-C9ZaylID.cjs → protocol-B9YgfQ_d.cjs} +1 -1
  76. package/dist/{protocol-fjaeKkjf.js → protocol-DxeUKGYG.js} +3 -3
  77. package/dist/record-bindings-DatJZv_e.js +200 -0
  78. package/dist/record-bindings-MBxbeBsi.cjs +1 -0
  79. package/dist/{region-binding-workflow-aA8nxmkZ.js → region-binding-workflow-DjrXuR1q.js} +2 -2
  80. package/dist/{region-binding-workflow-BiJQ7NU6.cjs → region-binding-workflow-l7NGfagJ.cjs} +2 -2
  81. package/dist/report-encoding-worker.cjs +1 -1
  82. package/dist/report-encoding-worker.js +1 -1
  83. package/dist/rich-text-layout-Ciwa6D2o.js +52 -0
  84. package/dist/rich-text-layout-DK7A_a5r.cjs +3 -0
  85. package/dist/{runtime-BTtpjF3D.js → runtime-75Y5Oq5B.js} +52 -51
  86. package/dist/runtime-DKlGd_D4.cjs +1 -0
  87. package/dist/sbom.cdx.json +1 -1
  88. package/dist/server-node.cjs +5 -5
  89. package/dist/server-node.js +1642 -1586
  90. package/dist/server.cjs +1 -1
  91. package/dist/server.js +24 -24
  92. package/dist/style.css +1 -1
  93. package/dist/{template-catalog-JSxSqk5y.js → template-catalog--cjxzgH7.js} +17 -17
  94. package/dist/template-catalog-CoT7jm_6.cjs +1 -0
  95. package/dist/{template-fragments-D2JFj7Du.js → template-fragments-CPpGpQoz.js} +12 -12
  96. package/dist/template-fragments-GVjpew_q.cjs +1 -0
  97. package/dist/template-registry-DI59PXVK.cjs +1 -0
  98. package/dist/{template-registry-Do1Uav2Z.js → template-registry-O0hNIOfB.js} +17 -17
  99. package/dist/{template-serialization-CU4n_Miu.js → template-serialization-CWmHq7lX.js} +1 -1
  100. package/dist/{template-serialization-CgqBo6s-.cjs → template-serialization-CqQY4zDg.cjs} +1 -1
  101. package/dist/{textwrap-CkGjRFT3.js → textwrap-BIjtEWmq.js} +1 -1
  102. package/dist/textwrap-Cy7o1hIR.cjs +4 -0
  103. package/dist/vue/async.d.cts +24 -0
  104. package/dist/vue/async.d.ts +24 -0
  105. package/dist/vue/index.d.cts +25 -1
  106. package/dist/vue/index.d.ts +25 -1
  107. package/dist/vue-async.cjs +1 -1
  108. package/dist/vue-async.js +3 -3
  109. package/dist/vue.cjs +1 -1
  110. package/dist/vue.js +52 -47
  111. package/dist/{workbook-session-BvEBRRMz.cjs → workbook-session-C6-SrnCT.cjs} +4 -4
  112. package/dist/{workbook-session-f0wVlzst.js → workbook-session-C9ZmCBwY.js} +15 -16
  113. package/dist/worker.cjs +1 -1
  114. package/dist/worker.js +4 -4
  115. package/dist/xlsx.cjs +4 -4
  116. package/dist/xlsx.js +184 -179
  117. package/package.json +1 -1
  118. package/dist/ReportLabelStudio-B0i9ohQj.cjs +0 -1
  119. package/dist/ReportParamPanel-lngONOEz.cjs +0 -1
  120. package/dist/ReportPreview-BDgKssYR.js +0 -5887
  121. package/dist/ReportPreview-Dw-4icG6.cjs +0 -6
  122. package/dist/TemplateOutlinePanel-B5SfGYVN.cjs +0 -1
  123. package/dist/assets-CxHunY_9.js +0 -232
  124. package/dist/assets-vbjAGgk8.cjs +0 -1
  125. package/dist/auto-DcUHlKob.cjs +0 -1
  126. package/dist/auto-moShblh1.js +0 -240
  127. package/dist/charts-aCtoswXq.cjs +0 -1
  128. package/dist/component-tree-1_QCiQJX.js +0 -67
  129. package/dist/component-tree-BjZIp6w9.cjs +0 -1
  130. package/dist/computed-4TnxzgIh.cjs +0 -1
  131. package/dist/data-bar-YltqGTaC.cjs +0 -1
  132. package/dist/designer-B7jJeAeG.js +0 -6914
  133. package/dist/designer-BWQVpJeN.cjs +0 -2
  134. package/dist/grid-geometry-D3SJgWFv.js +0 -136
  135. package/dist/grid-geometry-D8ReblRV.cjs +0 -1
  136. package/dist/json-snapshot-nyV63AbB.cjs +0 -2
  137. package/dist/matrix-0hywp0-F.cjs +0 -1
  138. package/dist/matrix-Dy-tyY7E.js +0 -381
  139. package/dist/prefill-DUvejVt1.cjs +0 -1
  140. package/dist/prepared-YXy-fVLw.cjs +0 -1
  141. package/dist/prepared-rXCKqdHY.js +0 -88
  142. package/dist/progress-B0ctFpKf.cjs +0 -1
  143. package/dist/progress-Hc2vxoCs.js +0 -52
  144. package/dist/record-bindings-Ct1HkPrc.cjs +0 -1
  145. package/dist/record-bindings-VZGS-Qd8.js +0 -155
  146. package/dist/rich-text-layout-K48VHUoW.cjs +0 -3
  147. package/dist/rich-text-layout-wxBhnAS7.js +0 -102
  148. package/dist/runtime-Dq0LUsyS.cjs +0 -1
  149. package/dist/template-catalog-CLAM4w7H.cjs +0 -1
  150. package/dist/template-fragments-Ca25Jt7e.cjs +0 -1
  151. package/dist/template-outline-CDWXptuj.js +0 -88
  152. package/dist/template-outline-K4jGhATu.cjs +0 -1
  153. package/dist/template-registry-CWnuGqyP.cjs +0 -1
  154. package/dist/textwrap-OTOUMr4f.cjs +0 -4
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),B=require("@agile-team/mach-report"),F=require("./designer-BWQVpJeN.cjs"),K=require("./_plugin-vue_export-helper-BLmdZLlg.cjs");function H(o){return!o||typeof o.id!="string"||!o.id.trim()||typeof o.name!="string"||!o.name.trim()||[o.draftRevision,o.publishedRevision].some(m=>m!==void 0&&(typeof m!="string"||!m.trim()))?!1:o.tags===void 0||Array.isArray(o.tags)&&o.tags.length<=20&&o.tags.every(m=>typeof m=="string")}function O(o){if(!o||!Array.isArray(o.items)||o.items.length>100||o.next!==void 0&&(typeof o.next!="string"||!o.next||o.next.length>4096))throw new Error("invalid");const m=new Set;for(const i of o.items){if(!H(i)||m.has(i.id))throw new Error("invalid");m.add(i.id)}if(o.categories!==void 0&&(!Array.isArray(o.categories)||o.categories.length>1e3||o.categories.some(i=>!i||typeof i.id!="string"||!i.id||typeof i.label!="string")))throw new Error("invalid")}function j(o,m){const i=e.computed(()=>({...F.TEMPLATE_LIBRARY_MESSAGES,...o.messages})),T=e.ref(""),n=e.ref(""),D=e.shallowRef([]),S=e.shallowRef([]),d=e.ref([void 0]),p=e.ref(),N=e.ref(!1),h=e.ref(!1),f=e.ref(""),s=e.shallowRef(),w=e.ref(""),V=e.ref(""),y=e.ref("search"),k=e.ref(""),E=e.shallowRef();let v=0,g=0,C,x,R;const A=e.computed(()=>({search:i.value.retrySearch,open:i.value.retryOpen,copy:i.value.retryCopy})[y.value]);function _(){f.value="",E.value=void 0}function l(t,a){if(O(t),t.next!==void 0&&(t.next===a.cursor||!a.previous&&d.value.includes(t.next)))throw new Error(i.value.stale);D.value=t.items.map(u=>({...u,...u.tags?{tags:[...u.tags]}:{}})),p.value=t.next,a.previous?d.value=d.value.slice(0,-1):a.more&&(d.value=[...d.value,a.cursor]),t.categories&&(S.value=t.categories)}function r(t){return t instanceof Error?t.message==="invalid"?i.value.invalid:t.message:String(t)}async function b(t){clearTimeout(R),C?.abort();const a=++v,u=new AbortController;C=u,N.value=!0,_(),!t.more&&!t.previous&&(D.value=[],p.value=void 0,d.value=[void 0]);try{const c=await o.provider.search({query:t.query,category:t.category,cursor:t.cursor,limit:30,signal:u.signal});if(a!==v)return;l(c,t)}catch(c){a===v&&!u.signal.aborted&&(f.value=r(c),y.value="search",E.value=()=>b(t))}finally{a===v&&(N.value=!1)}}async function q(t=!1,a=!1){t&&!p.value||a&&d.value.length<2||await b({query:T.value.trim(),category:n.value||void 0,cursor:a?d.value.at(-2):t?p.value:void 0,more:t,previous:a})}async function M(t,a,u){if(t.savedDocument)return B.parseReportTemplate(t.savedDocument);if(t.candidate)return B.parseReportTemplate(t.candidate);const c=await o.provider.get(t.entry.id,{signal:a,mode:t.mode});if(u!==g)return;if(!c||c.id!==t.entry.id)throw new Error(i.value.missing);const $=B.parseReportTemplate(c);if(t.mode==="published"&&t.entry.publishedRevision!==$.revision)throw new Error(i.value.publicationChanged);return t.copy?(t.candidate=B.cloneReportTemplate($,t.identity),B.parseReportTemplate(t.candidate)):$}async function L(t){if(h.value)return;const a=++g,u=new AbortController;x=u,h.value=!0,_(),k.value=(t.copy&&!t.savedDocument?i.value.creatingTarget:i.value.openingTarget).replace("{name}",t.savedDocument?.name??t.entry.name);try{let c=await M(t,u.signal,a);if(!c||a!==g)return;if(t.copy&&!t.savedDocument){if(!t.create||(c=B.parseReportTemplate(await t.create(c,{signal:u.signal})),a!==g))return;if(c.id!==t.identity.id)throw new Error(i.value.invalid);t.savedDocument=B.parseReportTemplate(c),s.value=void 0}m(c,{mode:t.mode}),t.copy&&q()}catch(c){a===g&&!u.signal.aborted&&(f.value=r(c),y.value=t.copy&&!t.savedDocument?"copy":"open",E.value=()=>L(t))}finally{a===g&&(h.value=!1,k.value="")}}async function P(t,a=!1,u="edit"){await L({entry:{...t},copy:a,mode:a?"edit":u,identity:{id:w.value.trim(),name:V.value.trim()},create:o.create})}function I(){v++,C?.abort(),D.value=[],p.value=void 0,d.value=[void 0],N.value=!0,_(),clearTimeout(R),R=setTimeout(()=>{q()},180)}function U(){g++,x?.abort(),h.value=!1,k.value="",s.value=void 0,q()}return e.watch([T,n],I),e.watch([()=>o.provider,()=>o.create],U),e.watch([w,V],()=>{y.value==="copy"&&_()}),e.onBeforeUnmount(()=>{v++,g++,clearTimeout(R),C?.abort(),x?.abort()}),q(),{m:i,cursors:d,query:T,category:n,entries:D,categories:S,next:p,loading:N,busy:h,error:f,errorKind:y,retryLabel:A,loadingTarget:k,copying:s,newId:w,newName:V,search:q,load:P,retry:async()=>{!h.value&&!N.value&&await E.value?.()},beginCopy:t=>{_(),s.value=t,w.value="",V.value=t.name},cancelCopy:()=>{h.value||(s.value=void 0,_())}}}const z=["aria-label","aria-busy"],G=["disabled"],Y={class:"mr-library-search"},J=["placeholder","aria-label"],Q=["aria-label"],W={value:""},X=["value"],Z={key:0,class:"mr-library-progress",role:"status"},ee={key:1,role:"alert",class:"mr-library-error"},te=["disabled"],re=["disabled"],oe=["disabled"],ne=["disabled"],le=["disabled"],ae={key:3},ie={class:"mr-library-info"},se=["title","disabled","onClick"],ue=["title"],ce={key:0},de={key:1},fe={key:2,class:"mr-library-tags"},me=["title"],ve={class:"mr-library-actions"},pe=["disabled","onClick"],ye=["disabled","onClick"],ge=["disabled","onClick"],be={key:4,class:"mr-library-empty",role:"status"},he={key:0},ke=["disabled"],Ee=["disabled"],_e=e.defineComponent({__name:"ReportTemplateLibrary",props:{provider:{},messages:{},create:{type:Function}},emits:["open"],setup(o,{emit:m}){const i=o,T=m,{m:n,cursors:D,query:S,category:d,entries:p,categories:N,next:h,loading:f,busy:s,error:w,copying:V,newId:y,newName:k,search:E,load:v,beginCopy:g,cancelCopy:C,retry:x,retryLabel:R,loadingTarget:A}=j(i,(_,l)=>T("open",_,l));return(_,l)=>(e.openBlock(),e.createElementBlock("section",{class:"mr-library","aria-label":e.unref(n).title,"aria-busy":e.unref(f)||e.unref(s)},[e.createElementVNode("header",null,[e.createElementVNode("div",null,[e.createElementVNode("h2",null,e.toDisplayString(e.unref(n).title),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(n).subtitle),1)]),e.createElementVNode("button",{type:"button",disabled:e.unref(f)||e.unref(s),onClick:l[0]||(l[0]=r=>e.unref(E)())},e.toDisplayString(e.unref(n).refresh),9,G)]),e.createElementVNode("div",Y,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[1]||(l[1]=r=>e.isRef(S)?S.value=r:null),type:"search",placeholder:e.unref(n).search,"aria-label":e.unref(n).search,onKeydown:l[2]||(l[2]=e.withKeys(r=>e.unref(E)(),["enter"]))},null,40,J),[[e.vModelText,e.unref(S)]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":l[3]||(l[3]=r=>e.isRef(d)?d.value=r:null),"aria-label":e.unref(n).all},[e.createElementVNode("option",W,e.toDisplayString(e.unref(n).all),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),r=>(e.openBlock(),e.createElementBlock("option",{key:r.id,value:r.id},e.toDisplayString(r.label)+e.toDisplayString(r.count===void 0?"":` (${r.count})`),9,X))),128))],8,Q),[[e.vModelSelect,e.unref(d)]])]),e.unref(A)?(e.openBlock(),e.createElementBlock("div",Z,e.toDisplayString(e.unref(A)),1)):e.createCommentVNode("",!0),e.unref(w)?(e.openBlock(),e.createElementBlock("div",ee,[e.createTextVNode(e.toDisplayString(e.unref(w))+" ",1),e.createElementVNode("button",{type:"button",disabled:e.unref(f)||e.unref(s),onClick:l[4]||(l[4]=r=>e.unref(x)())},e.toDisplayString(e.unref(R)),9,te)])):e.createCommentVNode("",!0),e.unref(V)?(e.openBlock(),e.createElementBlock("form",{key:2,class:"mr-library-copy",onSubmit:l[8]||(l[8]=e.withModifiers(r=>e.unref(v)(e.unref(V),!0),["prevent"]))},[e.createElementVNode("strong",null,e.toDisplayString(e.unref(n).copyTitle)+" · "+e.toDisplayString(e.unref(V).name),1),e.createElementVNode("label",null,[e.createTextVNode(e.toDisplayString(e.unref(n).newId),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[5]||(l[5]=r=>e.isRef(y)?y.value=r:null),required:"",maxlength:"256",disabled:e.unref(s)},null,8,re),[[e.vModelText,e.unref(y)]])]),e.createElementVNode("label",null,[e.createTextVNode(e.toDisplayString(e.unref(n).newName),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[6]||(l[6]=r=>e.isRef(k)?k.value=r:null),required:"",maxlength:"256",disabled:e.unref(s)},null,8,oe),[[e.vModelText,e.unref(k)]])]),e.createElementVNode("div",null,[e.createElementVNode("button",{type:"button",disabled:e.unref(s),onClick:l[7]||(l[7]=r=>e.unref(C)())},e.toDisplayString(e.unref(n).cancel),9,ne),e.createElementVNode("button",{type:"submit",disabled:e.unref(s)||!e.unref(y).trim()||!e.unref(k).trim()},e.toDisplayString(e.unref(s)?e.unref(n).loading:e.unref(n).create),9,le)])],32)):e.createCommentVNode("",!0),e.unref(p).length?(e.openBlock(),e.createElementBlock("ul",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),r=>(e.openBlock(),e.createElementBlock("li",{key:r.id},[e.createElementVNode("div",ie,[e.createElementVNode("button",{class:"mr-library-name",title:r.name,type:"button",disabled:e.unref(s),onClick:b=>e.unref(v)(r)},e.toDisplayString(r.name),9,se),e.createElementVNode("small",{title:r.id},[e.createTextVNode(e.toDisplayString(r.id),1),r.revision?(e.openBlock(),e.createElementBlock("span",ce," · "+e.toDisplayString(e.unref(n).revision)+" "+e.toDisplayString(r.revision),1)):e.createCommentVNode("",!0)],8,ue),r.draftRevision||r.publishedRevision?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["mr-library-state",{"mr-library-state--draft":r.draftRevision}])},e.toDisplayString(r.draftRevision?r.publishedRevision?e.unref(n).draftPending:e.unref(n).draft:e.unref(n).published),3)):e.createCommentVNode("",!0),r.description?(e.openBlock(),e.createElementBlock("p",de,e.toDisplayString(r.description),1)):e.createCommentVNode("",!0),r.tags?.length?(e.openBlock(),e.createElementBlock("div",fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.tags,b=>(e.openBlock(),e.createElementBlock("span",{key:b,title:b},e.toDisplayString(b),9,me))),128))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",ve,[o.create?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",disabled:e.unref(s),onClick:b=>e.unref(g)(r)},e.toDisplayString(e.unref(n).copy),9,pe)):e.createCommentVNode("",!0),r.publishedRevision?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",disabled:e.unref(s),onClick:b=>e.unref(v)(r,!1,"published")},e.toDisplayString(e.unref(n).viewPublished),9,ye)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",disabled:e.unref(s),onClick:b=>e.unref(v)(r)},e.toDisplayString(r.draftRevision?e.unref(n).continueDraft:e.unref(n).open),9,ge)])]))),128))])):(e.openBlock(),e.createElementBlock("div",be,[e.createElementVNode("strong",null,e.toDisplayString(e.unref(f)?e.unref(n).loading:e.unref(n).empty),1),e.unref(f)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",he,e.toDisplayString(e.unref(n).emptyHint),1))])),e.createElementVNode("footer",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(D).length)+" "+e.toDisplayString(e.unref(n).page)+" · "+e.toDisplayString(e.unref(p).length)+" "+e.toDisplayString(e.unref(n).count),1),e.createElementVNode("div",null,[e.unref(D).length>1?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",disabled:e.unref(f)||e.unref(s),onClick:l[9]||(l[9]=r=>e.unref(E)(!1,!0))},e.toDisplayString(e.unref(n).previous),9,ke)):e.createCommentVNode("",!0),e.unref(h)?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",disabled:e.unref(f)||e.unref(s),onClick:l[10]||(l[10]=r=>e.unref(E)(!0))},e.toDisplayString(e.unref(f)?e.unref(n).loading:e.unref(n).loadMore),9,Ee)):e.createCommentVNode("",!0)])])],8,z))}}),Ve=K._export_sfc(_e,[["__scopeId","data-v-9513aca4"]]);exports.default=Ve;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),B=require("@agile-team/mach-report"),F=require("./designer-IAZu6kBX.cjs"),K=require("./_plugin-vue_export-helper-BLmdZLlg.cjs");function H(o){return!o||typeof o.id!="string"||!o.id.trim()||typeof o.name!="string"||!o.name.trim()||[o.draftRevision,o.publishedRevision].some(m=>m!==void 0&&(typeof m!="string"||!m.trim()))?!1:o.tags===void 0||Array.isArray(o.tags)&&o.tags.length<=20&&o.tags.every(m=>typeof m=="string")}function O(o){if(!o||!Array.isArray(o.items)||o.items.length>100||o.next!==void 0&&(typeof o.next!="string"||!o.next||o.next.length>4096))throw new Error("invalid");const m=new Set;for(const i of o.items){if(!H(i)||m.has(i.id))throw new Error("invalid");m.add(i.id)}if(o.categories!==void 0&&(!Array.isArray(o.categories)||o.categories.length>1e3||o.categories.some(i=>!i||typeof i.id!="string"||!i.id||typeof i.label!="string")))throw new Error("invalid")}function j(o,m){const i=e.computed(()=>({...F.TEMPLATE_LIBRARY_MESSAGES,...o.messages})),T=e.ref(""),n=e.ref(""),D=e.shallowRef([]),S=e.shallowRef([]),d=e.ref([void 0]),p=e.ref(),N=e.ref(!1),h=e.ref(!1),f=e.ref(""),s=e.shallowRef(),w=e.ref(""),V=e.ref(""),y=e.ref("search"),k=e.ref(""),E=e.shallowRef();let v=0,g=0,C,x,R;const A=e.computed(()=>({search:i.value.retrySearch,open:i.value.retryOpen,copy:i.value.retryCopy})[y.value]);function _(){f.value="",E.value=void 0}function l(t,a){if(O(t),t.next!==void 0&&(t.next===a.cursor||!a.previous&&d.value.includes(t.next)))throw new Error(i.value.stale);D.value=t.items.map(u=>({...u,...u.tags?{tags:[...u.tags]}:{}})),p.value=t.next,a.previous?d.value=d.value.slice(0,-1):a.more&&(d.value=[...d.value,a.cursor]),t.categories&&(S.value=t.categories)}function r(t){return t instanceof Error?t.message==="invalid"?i.value.invalid:t.message:String(t)}async function b(t){clearTimeout(R),C?.abort();const a=++v,u=new AbortController;C=u,N.value=!0,_(),!t.more&&!t.previous&&(D.value=[],p.value=void 0,d.value=[void 0]);try{const c=await o.provider.search({query:t.query,category:t.category,cursor:t.cursor,limit:30,signal:u.signal});if(a!==v)return;l(c,t)}catch(c){a===v&&!u.signal.aborted&&(f.value=r(c),y.value="search",E.value=()=>b(t))}finally{a===v&&(N.value=!1)}}async function q(t=!1,a=!1){t&&!p.value||a&&d.value.length<2||await b({query:T.value.trim(),category:n.value||void 0,cursor:a?d.value.at(-2):t?p.value:void 0,more:t,previous:a})}async function M(t,a,u){if(t.savedDocument)return B.parseReportTemplate(t.savedDocument);if(t.candidate)return B.parseReportTemplate(t.candidate);const c=await o.provider.get(t.entry.id,{signal:a,mode:t.mode});if(u!==g)return;if(!c||c.id!==t.entry.id)throw new Error(i.value.missing);const $=B.parseReportTemplate(c);if(t.mode==="published"&&t.entry.publishedRevision!==$.revision)throw new Error(i.value.publicationChanged);return t.copy?(t.candidate=B.cloneReportTemplate($,t.identity),B.parseReportTemplate(t.candidate)):$}async function L(t){if(h.value)return;const a=++g,u=new AbortController;x=u,h.value=!0,_(),k.value=(t.copy&&!t.savedDocument?i.value.creatingTarget:i.value.openingTarget).replace("{name}",t.savedDocument?.name??t.entry.name);try{let c=await M(t,u.signal,a);if(!c||a!==g)return;if(t.copy&&!t.savedDocument){if(!t.create||(c=B.parseReportTemplate(await t.create(c,{signal:u.signal})),a!==g))return;if(c.id!==t.identity.id)throw new Error(i.value.invalid);t.savedDocument=B.parseReportTemplate(c),s.value=void 0}m(c,{mode:t.mode}),t.copy&&q()}catch(c){a===g&&!u.signal.aborted&&(f.value=r(c),y.value=t.copy&&!t.savedDocument?"copy":"open",E.value=()=>L(t))}finally{a===g&&(h.value=!1,k.value="")}}async function P(t,a=!1,u="edit"){await L({entry:{...t},copy:a,mode:a?"edit":u,identity:{id:w.value.trim(),name:V.value.trim()},create:o.create})}function I(){v++,C?.abort(),D.value=[],p.value=void 0,d.value=[void 0],N.value=!0,_(),clearTimeout(R),R=setTimeout(()=>{q()},180)}function U(){g++,x?.abort(),h.value=!1,k.value="",s.value=void 0,q()}return e.watch([T,n],I),e.watch([()=>o.provider,()=>o.create],U),e.watch([w,V],()=>{y.value==="copy"&&_()}),e.onBeforeUnmount(()=>{v++,g++,clearTimeout(R),C?.abort(),x?.abort()}),q(),{m:i,cursors:d,query:T,category:n,entries:D,categories:S,next:p,loading:N,busy:h,error:f,errorKind:y,retryLabel:A,loadingTarget:k,copying:s,newId:w,newName:V,search:q,load:P,retry:async()=>{!h.value&&!N.value&&await E.value?.()},beginCopy:t=>{_(),s.value=t,w.value="",V.value=t.name},cancelCopy:()=>{h.value||(s.value=void 0,_())}}}const z=["aria-label","aria-busy"],G=["disabled"],Y={class:"mr-library-search"},J=["placeholder","aria-label"],Q=["aria-label"],W={value:""},X=["value"],Z={key:0,class:"mr-library-progress",role:"status"},ee={key:1,role:"alert",class:"mr-library-error"},te=["disabled"],re=["disabled"],oe=["disabled"],ne=["disabled"],le=["disabled"],ae={key:3},ie={class:"mr-library-info"},se=["title","disabled","onClick"],ue=["title"],ce={key:0},de={key:1},fe={key:2,class:"mr-library-tags"},me=["title"],ve={class:"mr-library-actions"},pe=["disabled","onClick"],ye=["disabled","onClick"],ge=["disabled","onClick"],be={key:4,class:"mr-library-empty",role:"status"},he={key:0},ke=["disabled"],Ee=["disabled"],_e=e.defineComponent({__name:"ReportTemplateLibrary",props:{provider:{},messages:{},create:{type:Function}},emits:["open"],setup(o,{emit:m}){const i=o,T=m,{m:n,cursors:D,query:S,category:d,entries:p,categories:N,next:h,loading:f,busy:s,error:w,copying:V,newId:y,newName:k,search:E,load:v,beginCopy:g,cancelCopy:C,retry:x,retryLabel:R,loadingTarget:A}=j(i,(_,l)=>T("open",_,l));return(_,l)=>(e.openBlock(),e.createElementBlock("section",{class:"mr-library","aria-label":e.unref(n).title,"aria-busy":e.unref(f)||e.unref(s)},[e.createElementVNode("header",null,[e.createElementVNode("div",null,[e.createElementVNode("h2",null,e.toDisplayString(e.unref(n).title),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(n).subtitle),1)]),e.createElementVNode("button",{type:"button",disabled:e.unref(f)||e.unref(s),onClick:l[0]||(l[0]=r=>e.unref(E)())},e.toDisplayString(e.unref(n).refresh),9,G)]),e.createElementVNode("div",Y,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[1]||(l[1]=r=>e.isRef(S)?S.value=r:null),type:"search",placeholder:e.unref(n).search,"aria-label":e.unref(n).search,onKeydown:l[2]||(l[2]=e.withKeys(r=>e.unref(E)(),["enter"]))},null,40,J),[[e.vModelText,e.unref(S)]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":l[3]||(l[3]=r=>e.isRef(d)?d.value=r:null),"aria-label":e.unref(n).all},[e.createElementVNode("option",W,e.toDisplayString(e.unref(n).all),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N),r=>(e.openBlock(),e.createElementBlock("option",{key:r.id,value:r.id},e.toDisplayString(r.label)+e.toDisplayString(r.count===void 0?"":` (${r.count})`),9,X))),128))],8,Q),[[e.vModelSelect,e.unref(d)]])]),e.unref(A)?(e.openBlock(),e.createElementBlock("div",Z,e.toDisplayString(e.unref(A)),1)):e.createCommentVNode("",!0),e.unref(w)?(e.openBlock(),e.createElementBlock("div",ee,[e.createTextVNode(e.toDisplayString(e.unref(w))+" ",1),e.createElementVNode("button",{type:"button",disabled:e.unref(f)||e.unref(s),onClick:l[4]||(l[4]=r=>e.unref(x)())},e.toDisplayString(e.unref(R)),9,te)])):e.createCommentVNode("",!0),e.unref(V)?(e.openBlock(),e.createElementBlock("form",{key:2,class:"mr-library-copy",onSubmit:l[8]||(l[8]=e.withModifiers(r=>e.unref(v)(e.unref(V),!0),["prevent"]))},[e.createElementVNode("strong",null,e.toDisplayString(e.unref(n).copyTitle)+" · "+e.toDisplayString(e.unref(V).name),1),e.createElementVNode("label",null,[e.createTextVNode(e.toDisplayString(e.unref(n).newId),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[5]||(l[5]=r=>e.isRef(y)?y.value=r:null),required:"",maxlength:"256",disabled:e.unref(s)},null,8,re),[[e.vModelText,e.unref(y)]])]),e.createElementVNode("label",null,[e.createTextVNode(e.toDisplayString(e.unref(n).newName),1),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[6]||(l[6]=r=>e.isRef(k)?k.value=r:null),required:"",maxlength:"256",disabled:e.unref(s)},null,8,oe),[[e.vModelText,e.unref(k)]])]),e.createElementVNode("div",null,[e.createElementVNode("button",{type:"button",disabled:e.unref(s),onClick:l[7]||(l[7]=r=>e.unref(C)())},e.toDisplayString(e.unref(n).cancel),9,ne),e.createElementVNode("button",{type:"submit",disabled:e.unref(s)||!e.unref(y).trim()||!e.unref(k).trim()},e.toDisplayString(e.unref(s)?e.unref(n).loading:e.unref(n).create),9,le)])],32)):e.createCommentVNode("",!0),e.unref(p).length?(e.openBlock(),e.createElementBlock("ul",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),r=>(e.openBlock(),e.createElementBlock("li",{key:r.id},[e.createElementVNode("div",ie,[e.createElementVNode("button",{class:"mr-library-name",title:r.name,type:"button",disabled:e.unref(s),onClick:b=>e.unref(v)(r)},e.toDisplayString(r.name),9,se),e.createElementVNode("small",{title:r.id},[e.createTextVNode(e.toDisplayString(r.id),1),r.revision?(e.openBlock(),e.createElementBlock("span",ce," · "+e.toDisplayString(e.unref(n).revision)+" "+e.toDisplayString(r.revision),1)):e.createCommentVNode("",!0)],8,ue),r.draftRevision||r.publishedRevision?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["mr-library-state",{"mr-library-state--draft":r.draftRevision}])},e.toDisplayString(r.draftRevision?r.publishedRevision?e.unref(n).draftPending:e.unref(n).draft:e.unref(n).published),3)):e.createCommentVNode("",!0),r.description?(e.openBlock(),e.createElementBlock("p",de,e.toDisplayString(r.description),1)):e.createCommentVNode("",!0),r.tags?.length?(e.openBlock(),e.createElementBlock("div",fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.tags,b=>(e.openBlock(),e.createElementBlock("span",{key:b,title:b},e.toDisplayString(b),9,me))),128))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",ve,[o.create?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",disabled:e.unref(s),onClick:b=>e.unref(g)(r)},e.toDisplayString(e.unref(n).copy),9,pe)):e.createCommentVNode("",!0),r.publishedRevision?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",disabled:e.unref(s),onClick:b=>e.unref(v)(r,!1,"published")},e.toDisplayString(e.unref(n).viewPublished),9,ye)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",disabled:e.unref(s),onClick:b=>e.unref(v)(r)},e.toDisplayString(r.draftRevision?e.unref(n).continueDraft:e.unref(n).open),9,ge)])]))),128))])):(e.openBlock(),e.createElementBlock("div",be,[e.createElementVNode("strong",null,e.toDisplayString(e.unref(f)?e.unref(n).loading:e.unref(n).empty),1),e.unref(f)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("p",he,e.toDisplayString(e.unref(n).emptyHint),1))])),e.createElementVNode("footer",null,[e.createElementVNode("span",null,e.toDisplayString(e.unref(D).length)+" "+e.toDisplayString(e.unref(n).page)+" · "+e.toDisplayString(e.unref(p).length)+" "+e.toDisplayString(e.unref(n).count),1),e.createElementVNode("div",null,[e.unref(D).length>1?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",disabled:e.unref(f)||e.unref(s),onClick:l[9]||(l[9]=r=>e.unref(E)(!1,!0))},e.toDisplayString(e.unref(n).previous),9,ke)):e.createCommentVNode("",!0),e.unref(h)?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",disabled:e.unref(f)||e.unref(s),onClick:l[10]||(l[10]=r=>e.unref(E)(!0))},e.toDisplayString(e.unref(f)?e.unref(n).loading:e.unref(n).loadMore),9,Ee)):e.createCommentVNode("",!0)])])],8,z))}}),Ve=K._export_sfc(_e,[["__scopeId","data-v-9513aca4"]]);exports.default=Ve;
@@ -1,6 +1,6 @@
1
1
  import { computed as W, ref as _, shallowRef as K, watch as O, onBeforeUnmount as oe, defineComponent as re, openBlock as u, createElementBlock as c, unref as e, createElementVNode as i, toDisplayString as l, withDirectives as F, withKeys as ae, isRef as z, vModelText as Y, Fragment as j, renderList as J, vModelSelect as le, createCommentVNode as g, createTextVNode as G, withModifiers as ie, normalizeClass as se } from "vue";
2
2
  import { parseReportTemplate as M, cloneReportTemplate as ne } from "@agile-team/mach-report";
3
- import { a as de } from "./designer-B7jJeAeG.js";
3
+ import { a as de } from "./designer-DhrE7jzw.js";
4
4
  import { _ as ue } from "./_plugin-vue_export-helper-8SL1F89S.js";
5
5
  function ce(r) {
6
6
  return !r || typeof r.id != "string" || !r.id.trim() || typeof r.name != "string" || !r.name.trim() || [r.draftRevision, r.publishedRevision].some((p) => p !== void 0 && (typeof p != "string" || !p.trim())) ? !1 : r.tags === void 0 || Array.isArray(r.tags) && r.tags.length <= 20 && r.tags.every((p) => typeof p == "string");
@@ -1,11 +1,11 @@
1
- import { ref as G, computed as j, defineComponent as ce, resolveComponent as ye, openBlock as s, createElementBlock as d, normalizeClass as ve, createElementVNode as a, createTextVNode as k, toDisplayString as t, createCommentVNode as E, Fragment as C, renderList as x, createVNode as re, watch as ne, withDirectives as F, isRef as oe, vModelCheckbox as de, unref as l, vModelSelect as L, vModelText as q, createBlock as fe, vShow as Ee } from "vue";
2
- import { r as Ke, i as be, v as Te, e as Le } from "./computed-C8NRZQss.js";
1
+ import { ref as G, computed as H, defineComponent as ce, resolveComponent as ye, openBlock as s, createElementBlock as d, normalizeClass as ve, createElementVNode as a, createTextVNode as k, toDisplayString as t, createCommentVNode as E, Fragment as C, renderList as x, createVNode as re, watch as ne, withDirectives as F, isRef as oe, vModelCheckbox as de, unref as l, vModelSelect as L, vModelText as q, createBlock as fe, vShow as Ee } from "vue";
2
+ import { r as Ke, j as be, v as Te, e as Le } from "./computed-f3pOqWLX.js";
3
3
  import { _ as me } from "./_plugin-vue_export-helper-8SL1F89S.js";
4
- import { u as he, D as Be } from "./designer-B7jJeAeG.js";
4
+ import { u as he, D as Be } from "./designer-DhrE7jzw.js";
5
5
  import { u as ue } from "./useLocalDraft-BnhcxXk_.js";
6
- import { c as Oe } from "./matrix-Dy-tyY7E.js";
7
- import { v as ke } from "./template-registry-Do1Uav2Z.js";
8
- import { c as Ae } from "./template-serialization-CU4n_Miu.js";
6
+ import { c as Oe } from "./matrix-C6e_r_vp.js";
7
+ import { v as ke } from "./template-registry-O0hNIOfB.js";
8
+ import { c as Ae } from "./template-serialization-CWmHq7lX.js";
9
9
  function $e(e, A = /* @__PURE__ */ new Set()) {
10
10
  return typeof e == "string" || ("field" in e && e.field && A.add(e.field), "weightField" in e && e.weightField && A.add(e.weightField), "args" in e && e.condition && Ke(e.condition).forEach(($) => A.add($)), "args" in e && e.args.forEach(($) => $e($, A))), A;
11
11
  }
@@ -18,7 +18,7 @@ function Ie(e, A, $) {
18
18
  const U = e.list.columns.find((T) => T.field === S)?.format;
19
19
  return U && "digits" in U && U.digits !== void 0 ? `${U.digits} ${$.value.digits}` : void 0;
20
20
  }
21
- const m = j(() => {
21
+ const m = H(() => {
22
22
  const S = /* @__PURE__ */ new Map();
23
23
  for (const U of e.datasetSchema?.fields ?? []) S.set(U.field, {
24
24
  field: U.field,
@@ -27,22 +27,22 @@ function Ie(e, A, $) {
27
27
  });
28
28
  for (const U of e.list.columns) S.has(U.field) || S.set(U.field, { field: U.field, label: U.header || U.field, meta: U.semanticRole ?? "" });
29
29
  return [...S.values()];
30
- }), i = j(() => {
30
+ }), i = H(() => {
31
31
  const S = J.value.trim().toLocaleLowerCase();
32
32
  return m.value.filter((U) => `${U.field} ${U.label} ${U.meta}`.toLocaleLowerCase().includes(S));
33
- }), h = j(() => Ve(A.value.expression, $.value)), V = j(() => {
33
+ }), h = H(() => Ve(A.value.expression, $.value)), V = H(() => {
34
34
  const S = [...$e(A.value.expression)];
35
35
  return (e.datasets?.[e.list.dataset] ?? []).slice(0, 5).map((U, T) => ({
36
36
  row: T + 1,
37
37
  values: S.map((M) => `${M} = ${U[M] == null ? $.value.null : String(U[M])}`).join(" · ")
38
38
  }));
39
39
  });
40
- return { query: J, matches: i, fieldWindow: j(() => i.value.slice(0, 50)), expression: h, sources: V };
40
+ return { query: J, matches: i, fieldWindow: H(() => i.value.slice(0, 50)), expression: h, sources: V };
41
41
  }
42
- const We = { class: "mr-predicate__mode" }, Ge = ["aria-label", "value", "disabled"], Je = { value: "comparison" }, He = {
42
+ const We = { class: "mr-predicate__mode" }, Ge = ["aria-label", "value", "disabled"], Je = { value: "comparison" }, je = {
43
43
  key: 0,
44
44
  value: "all"
45
- }, je = {
45
+ }, He = {
46
46
  key: 1,
47
47
  value: "any"
48
48
  }, Pe = {
@@ -62,7 +62,7 @@ const We = { class: "mr-predicate__mode" }, Ge = ["aria-label", "value", "disabl
62
62
  },
63
63
  emits: ["update:modelValue"],
64
64
  setup(e, { emit: A }) {
65
- const $ = e, J = A, w = j(() => "all" in $.modelValue ? "all" : "any" in $.modelValue ? "any" : "not" in $.modelValue ? "not" : "comparison"), m = j(() => "all" in $.modelValue ? $.modelValue.all : "any" in $.modelValue ? $.modelValue.any : "not" in $.modelValue ? [$.modelValue.not] : []), i = j(() => "field" in $.modelValue ? $.modelValue : void 0);
65
+ const $ = e, J = A, w = H(() => "all" in $.modelValue ? "all" : "any" in $.modelValue ? "any" : "not" in $.modelValue ? "not" : "comparison"), m = H(() => "all" in $.modelValue ? $.modelValue.all : "any" in $.modelValue ? $.modelValue.any : "not" in $.modelValue ? [$.modelValue.not] : []), i = H(() => "field" in $.modelValue ? $.modelValue : void 0);
66
66
  function h(n) {
67
67
  $.readonly || J("update:modelValue", n);
68
68
  }
@@ -117,8 +117,8 @@ const We = { class: "mr-predicate__mode" }, Ge = ["aria-label", "value", "disabl
117
117
  onChange: b[0] || (b[0] = (f) => S(f.target.value))
118
118
  }, [
119
119
  a("option", Je, t(e.messages.comparison), 1),
120
- (e.depth ?? 0) < 8 ? (s(), d("option", He, t(e.messages.all), 1)) : E("", !0),
121
- (e.depth ?? 0) < 8 ? (s(), d("option", je, t(e.messages.any), 1)) : E("", !0),
120
+ (e.depth ?? 0) < 8 ? (s(), d("option", je, t(e.messages.all), 1)) : E("", !0),
121
+ (e.depth ?? 0) < 8 ? (s(), d("option", He, t(e.messages.any), 1)) : E("", !0),
122
122
  (e.depth ?? 0) < 8 ? (s(), d("option", Pe, t(e.messages.not), 1)) : E("", !0)
123
123
  ], 40, Ge)
124
124
  ]),
@@ -267,14 +267,14 @@ function yl(e, A) {
267
267
  measures: []
268
268
  }), i = G({ input: "flat", idField: "id", parentField: "parentId", labelField: "", parentValues: "source" }), h = ue(() => ({ enabled: $.value, detail: w.value, matrix: m.value, tree: i.value }));
269
269
  let V;
270
- const S = G(), U = j(() => [
270
+ const S = G(), U = H(() => [
271
271
  .../* @__PURE__ */ new Set([
272
272
  ...Object.keys(e.datasets ?? {}),
273
273
  ...Object.keys(e.datasetSchemas ?? {})
274
274
  ])
275
- ]), T = j(
275
+ ]), T = H(
276
276
  () => W(e.list.dataset, e.datasetSchema)
277
- ), M = j(() => W(w.value.dataset));
277
+ ), M = H(() => W(w.value.dataset));
278
278
  function W(v, D) {
279
279
  const R = /* @__PURE__ */ new Map();
280
280
  for (const c of (D ?? e.datasetSchemas?.[v])?.fields ?? [])
@@ -362,7 +362,7 @@ function yl(e, A) {
362
362
  }
363
363
  function X(v, D, R) {
364
364
  if (e.readonly || !m.value.hierarchy) return;
365
- const N = m.value.hierarchy[v] ??= {}, u = (v === "row" ? m.value.rowFields : m.value.columnFields).map((H, B) => N.sort?.[B] ?? "source");
365
+ const N = m.value.hierarchy[v] ??= {}, u = (v === "row" ? m.value.rowFields : m.value.columnFields).map((j, B) => N.sort?.[B] ?? "source");
366
366
  u[D] = R, N.sort = u;
367
367
  }
368
368
  function ee(v, D, R) {
@@ -463,7 +463,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
463
463
  }, Cl = ["value"], Ul = { class: "mr-data-layout__pair" }, Fl = ["aria-label", "disabled"], Sl = ["value"], Ml = ["aria-label", "disabled"], Dl = {
464
464
  value: "",
465
465
  disabled: ""
466
- }, xl = ["value"], Nl = ["aria-label", "disabled"], Rl = { value: void 0 }, El = ["value"], Kl = { class: "mr-data-layout__choices" }, Tl = ["checked", "disabled", "onChange"], Ll = ["aria-label", "disabled"], Bl = { class: "mr-data-layout__pair" }, Ol = ["aria-label", "disabled"], Al = { value: "error" }, Il = { value: "ignore" }, Wl = { class: "mr-data-layout__check" }, Gl = ["disabled"], Jl = { class: "mr-data-layout__hint" }, Hl = { class: "mr-data-layout__pair" }, jl = ["aria-label", "disabled"], Pl = { value: "flat" }, zl = { value: "nested" }, ql = ["aria-label", "disabled"], Zl = ["value"], Ql = { class: "mr-data-layout__pair" }, Xl = { key: 0 }, Yl = ["aria-label", "disabled"], pl = ["value"], _l = { key: 1 }, ea = ["aria-label", "disabled"], la = ["aria-label", "disabled"], aa = ["value"], ta = { class: "mr-data-layout__pair" }, na = ["aria-label", "disabled"], ia = { key: 0 }, sa = ["aria-label", "disabled"], da = { value: "error" }, oa = { value: "root" }, ua = ["aria-label", "disabled"], ra = { value: "source" }, ca = { value: "leaf-aggregate" }, ma = { class: "mr-data-layout__pair" }, va = ["onUpdate:modelValue", "aria-label", "disabled"], ba = ["value"], ga = ["onUpdate:modelValue", "aria-label", "disabled"], ya = ["value"], fa = { key: 0 }, ha = ["onUpdate:modelValue", "aria-label", "disabled"], ka = ["value"], $a = { class: "mr-data-layout__pair" }, Va = ["onUpdate:modelValue", "aria-label", "disabled"], wa = { value: "number" }, Ca = { value: "decimal" }, Ua = ["onUpdate:modelValue", "aria-label", "disabled"], Fa = ["disabled", "onClick"], Sa = ["disabled"], Ma = { class: "mr-data-layout__pair" }, Da = ["aria-label", "disabled"], xa = ["aria-label", "disabled"], Na = { class: "mr-data-layout__hint" }, Ra = { class: "mr-data-layout__hint" }, Ea = ["checked", "disabled", "onChange"], Ka = { class: "mr-data-layout__pair" }, Ta = ["aria-label", "onUpdate:modelValue", "disabled"], La = ["value"], Ba = ["aria-label", "onUpdate:modelValue", "disabled"], Oa = ["value"], Aa = ["aria-label", "onUpdate:modelValue", "disabled", "placeholder"], Ia = { key: 0 }, Wa = ["aria-label", "onUpdate:modelValue", "disabled"], Ga = ["value"], Ja = { class: "mr-data-layout__pair" }, Ha = ["aria-label", "onUpdate:modelValue", "disabled"], ja = { value: "number" }, Pa = { value: "decimal" }, za = ["aria-label", "onUpdate:modelValue", "disabled"], qa = ["disabled", "onClick"], Za = ["disabled"], Qa = { class: "mr-data-layout__check" }, Xa = ["disabled"], Ya = { class: "mr-data-layout__check" }, pa = ["checked", "disabled"], _a = { class: "mr-data-layout__hint" }, et = ["aria-label", "disabled"], lt = ["aria-label", "value", "disabled", "onChange"], at = { value: "source" }, tt = { value: "asc" }, nt = { value: "desc" }, it = ["aria-label", "disabled", "onClick"], st = ["aria-label", "disabled", "onClick"], dt = {
466
+ }, xl = ["value"], Nl = ["aria-label", "disabled"], Rl = { value: void 0 }, El = ["value"], Kl = { class: "mr-data-layout__choices" }, Tl = ["checked", "disabled", "onChange"], Ll = ["aria-label", "disabled"], Bl = { class: "mr-data-layout__pair" }, Ol = ["aria-label", "disabled"], Al = { value: "error" }, Il = { value: "ignore" }, Wl = { class: "mr-data-layout__check" }, Gl = ["disabled"], Jl = { class: "mr-data-layout__hint" }, jl = { class: "mr-data-layout__pair" }, Hl = ["aria-label", "disabled"], Pl = { value: "flat" }, zl = { value: "nested" }, ql = ["aria-label", "disabled"], Zl = ["value"], Ql = { class: "mr-data-layout__pair" }, Xl = { key: 0 }, Yl = ["aria-label", "disabled"], pl = ["value"], _l = { key: 1 }, ea = ["aria-label", "disabled"], la = ["aria-label", "disabled"], aa = ["value"], ta = { class: "mr-data-layout__pair" }, na = ["aria-label", "disabled"], ia = { key: 0 }, sa = ["aria-label", "disabled"], da = { value: "error" }, oa = { value: "root" }, ua = ["aria-label", "disabled"], ra = { value: "source" }, ca = { value: "leaf-aggregate" }, ma = { class: "mr-data-layout__pair" }, va = ["onUpdate:modelValue", "aria-label", "disabled"], ba = ["value"], ga = ["onUpdate:modelValue", "aria-label", "disabled"], ya = ["value"], fa = { key: 0 }, ha = ["onUpdate:modelValue", "aria-label", "disabled"], ka = ["value"], $a = { class: "mr-data-layout__pair" }, Va = ["onUpdate:modelValue", "aria-label", "disabled"], wa = { value: "number" }, Ca = { value: "decimal" }, Ua = ["onUpdate:modelValue", "aria-label", "disabled"], Fa = ["disabled", "onClick"], Sa = ["disabled"], Ma = { class: "mr-data-layout__pair" }, Da = ["aria-label", "disabled"], xa = ["aria-label", "disabled"], Na = { class: "mr-data-layout__hint" }, Ra = { class: "mr-data-layout__hint" }, Ea = ["checked", "disabled", "onChange"], Ka = { class: "mr-data-layout__pair" }, Ta = ["aria-label", "onUpdate:modelValue", "disabled"], La = ["value"], Ba = ["aria-label", "onUpdate:modelValue", "disabled"], Oa = ["value"], Aa = ["aria-label", "onUpdate:modelValue", "disabled", "placeholder"], Ia = { key: 0 }, Wa = ["aria-label", "onUpdate:modelValue", "disabled"], Ga = ["value"], Ja = { class: "mr-data-layout__pair" }, ja = ["aria-label", "onUpdate:modelValue", "disabled"], Ha = { value: "number" }, Pa = { value: "decimal" }, za = ["aria-label", "onUpdate:modelValue", "disabled"], qa = ["disabled", "onClick"], Za = ["disabled"], Qa = { class: "mr-data-layout__check" }, Xa = ["disabled"], Ya = { class: "mr-data-layout__check" }, pa = ["checked", "disabled"], _a = { class: "mr-data-layout__hint" }, et = ["aria-label", "disabled"], lt = ["aria-label", "value", "disabled", "onChange"], at = { value: "source" }, tt = { value: "asc" }, nt = { value: "desc" }, it = ["aria-label", "disabled", "onClick"], st = ["aria-label", "disabled", "onClick"], dt = {
467
467
  key: 0,
468
468
  class: "mr-data-layout__check"
469
469
  }, ot = ["checked", "disabled", "onChange"], ut = { class: "mr-data-layout__pair" }, rt = ["disabled"], ct = ["disabled"], mt = { class: "mr-data-layout__actions" }, vt = ["disabled"], bt = ["disabled"], gt = ["disabled"], yt = {
@@ -632,7 +632,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
632
632
  ])
633
633
  ], 64)) : l(m) && e.mode === "tree" ? (s(), d(C, { key: 1 }, [
634
634
  a("p", Jl, t(e.messages.treeHint), 1),
635
- a("div", Hl, [
635
+ a("div", jl, [
636
636
  a("label", null, [
637
637
  k(t(e.messages.treeInput), 1),
638
638
  F(a("select", {
@@ -642,7 +642,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
642
642
  }, [
643
643
  a("option", Pl, t(e.messages.treeFlat), 1),
644
644
  a("option", zl, t(e.messages.treeNested), 1)
645
- ], 8, jl), [
645
+ ], 8, Hl), [
646
646
  [L, l(V).input]
647
647
  ])
648
648
  ]),
@@ -984,9 +984,9 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
984
984
  "onUpdate:modelValue": (o) => n.numeric = o,
985
985
  disabled: e.readonly
986
986
  }, [
987
- a("option", ja, t(e.messages.number), 1),
987
+ a("option", Ha, t(e.messages.number), 1),
988
988
  a("option", Pa, t(e.messages.decimal), 1)
989
- ], 8, Ha), [
989
+ ], 8, ja), [
990
990
  [L, n.numeric]
991
991
  ])
992
992
  ]),
@@ -1194,7 +1194,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1194
1194
  }, It = ["value"], Wt = ["value", "disabled", "aria-label"], Gt = {
1195
1195
  value: "",
1196
1196
  disabled: ""
1197
- }, Jt = ["value"], Ht = ["value", "disabled", "aria-label"], jt = { value: "true" }, Pt = { value: "false" }, zt = ["type", "value", "disabled", "aria-label"], qt = { class: "mr-expression__help" }, Zt = ["disabled", "aria-label", "onClick"], Qt = ["disabled"], Xt = /* @__PURE__ */ ce({
1197
+ }, Jt = ["value"], jt = ["value", "disabled", "aria-label"], Ht = { value: "true" }, Pt = { value: "false" }, zt = ["type", "value", "disabled", "aria-label"], qt = { class: "mr-expression__help" }, Zt = ["disabled", "aria-label", "onClick"], Qt = ["disabled"], Xt = /* @__PURE__ */ ce({
1198
1198
  __name: "ReportExpressionEditor",
1199
1199
  props: {
1200
1200
  modelValue: {},
@@ -1205,7 +1205,7 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1205
1205
  },
1206
1206
  emits: ["update:modelValue"],
1207
1207
  setup(e, { emit: A }) {
1208
- const $ = e, J = A, w = be(), m = j(() => "op" in $.modelValue ? w.functions.find((r) => r.name === $.modelValue.op) : void 0), i = j(
1208
+ const $ = e, J = A, w = be(), m = H(() => "op" in $.modelValue ? w.functions.find((r) => r.name === $.modelValue.op) : void 0), i = H(
1209
1209
  () => "aggregate" in $.modelValue ? "aggregate" : "field" in $.modelValue ? "field" : "value" in $.modelValue ? "constant" : "operation"
1210
1210
  ), h = G("text");
1211
1211
  ne(
@@ -1357,9 +1357,9 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1357
1357
  value: o.target.value === "true"
1358
1358
  }))
1359
1359
  }, [
1360
- a("option", jt, t(e.messages.true), 1),
1360
+ a("option", Ht, t(e.messages.true), 1),
1361
1361
  a("option", Pt, t(e.messages.false), 1)
1362
- ], 40, Ht)) : h.value !== "null" ? (s(), d("input", {
1362
+ ], 40, jt)) : h.value !== "null" ? (s(), d("input", {
1363
1363
  key: 1,
1364
1364
  type: h.value === "number" ? "number" : "text",
1365
1365
  value: e.modelValue.value ?? "",
@@ -1409,22 +1409,22 @@ const fl = { class: "mr-data-layout" }, hl = { class: "mr-data-layout__check" },
1409
1409
  }
1410
1410
  }), Yt = /* @__PURE__ */ me(Xt, [["__scopeId", "data-v-bfaf6bd5"]]), P = (e) => JSON.parse(JSON.stringify(e));
1411
1411
  function pt(e, A) {
1412
- const $ = j(() => ({
1412
+ const $ = H(() => ({
1413
1413
  ...Be,
1414
1414
  ...e.messages
1415
1415
  })), J = G("computations"), w = G(""), m = G(""), i = G({
1416
1416
  field: "",
1417
1417
  expression: { field: "" },
1418
1418
  scope: "row"
1419
- }), h = G([]), V = G(0), S = G(""), U = G(-1), T = G("style"), M = G({ field: "", op: ">", value: 0 }), W = G(null), z = j(() => W.value ?? M.value), I = G({
1419
+ }), h = G([]), V = G(0), S = G(""), U = G(-1), T = G("style"), M = G({ field: "", op: ">", value: 0 }), W = G(null), z = H(() => W.value ?? M.value), I = G({
1420
1420
  color: "#b91c1c",
1421
1421
  backgroundColor: "#fff1f2",
1422
1422
  bold: !1
1423
1423
  }), r = G([]), n = ue(() => i.value), b = ue(() => h.value), o = ue(() => ({ when: M.value, composedWhen: W.value, style: I.value })), f = G(/* @__PURE__ */ new Map()), O = G(/* @__PURE__ */ new Map());
1424
1424
  let Z = "", X = !1;
1425
- const ee = j(() => n.pending.value || b.pending.value || o.pending.value || f.value.size > 0 || O.value.size > 0);
1425
+ const ee = H(() => n.pending.value || b.pending.value || o.pending.value || f.value.size > 0 || O.value.size > 0);
1426
1426
  let _;
1427
- const Y = j(() => {
1427
+ const Y = H(() => {
1428
1428
  const g = /* @__PURE__ */ new Map();
1429
1429
  for (const y of e.datasetSchema?.fields ?? [])
1430
1430
  g.set(y.field, y.label ?? y.field);
@@ -1435,9 +1435,9 @@ function pt(e, A) {
1435
1435
  ))
1436
1436
  g.has(y) || g.set(y, y);
1437
1437
  return [...g].map(([y, K]) => ({ field: y, label: K }));
1438
- }), le = j(() => h.value[V.value]), p = j(
1438
+ }), le = H(() => h.value[V.value]), p = H(
1439
1439
  () => e.list.columns.find((g) => g.field === S.value)
1440
- ), ie = j(() => Te(D()));
1440
+ ), ie = H(() => Te(D()));
1441
1441
  function ae() {
1442
1442
  if (_ === JSON.stringify(e.list)) {
1443
1443
  _ = void 0;
@@ -1541,7 +1541,7 @@ function pt(e, A) {
1541
1541
  w.value = y instanceof Error ? y.message : String(y);
1542
1542
  }
1543
1543
  }
1544
- function H(g) {
1544
+ function j(g) {
1545
1545
  i.value.expression = g;
1546
1546
  }
1547
1547
  function B(g, y) {
@@ -1672,7 +1672,7 @@ function pt(e, A) {
1672
1672
  applyComputed: N,
1673
1673
  removeComputed: c,
1674
1674
  check: u,
1675
- setExpression: H,
1675
+ setExpression: j,
1676
1676
  toggleGroupField: B,
1677
1677
  addGroup: Ce,
1678
1678
  moveGroup: Ue,
@@ -1709,13 +1709,13 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
1709
1709
  }, Gn = {
1710
1710
  key: 1,
1711
1711
  class: "mr-rule-editor__panel"
1712
- }, Jn = { class: "mr-rule-editor__pair" }, Hn = ["aria-label"], jn = ["value"], Pn = {
1712
+ }, Jn = { class: "mr-rule-editor__pair" }, jn = ["aria-label"], Hn = ["value"], Pn = {
1713
1713
  key: 0,
1714
1714
  value: 0
1715
1715
  }, zn = ["disabled"], qn = ["aria-label", "disabled"], Zn = ["value"], Qn = { class: "mr-rule-editor__pair" }, Xn = ["aria-label", "disabled"], Yn = ["aria-label", "disabled"], pn = { class: "mr-rule-editor__checks" }, _n = ["disabled"], ei = ["disabled"], li = { class: "mr-rule-editor__pair" }, ai = ["aria-label", "onUpdate:modelValue", "disabled"], ti = ["value"], ni = ["aria-label", "onUpdate:modelValue", "disabled"], ii = ["value"], si = ["aria-label", "onUpdate:modelValue", "disabled"], di = { value: void 0 }, oi = ["value"], ui = { key: 0 }, ri = ["aria-label", "onUpdate:modelValue", "disabled"], ci = ["value"], mi = { class: "mr-rule-editor__pair" }, vi = ["onUpdate:modelValue", "disabled", "aria-label"], bi = { value: "number" }, gi = { value: "decimal" }, yi = ["disabled", "onClick"], fi = ["disabled"], hi = { class: "mr-rule-editor__actions" }, ki = ["disabled", "aria-label"], $i = ["disabled", "aria-label"], Vi = ["disabled"], wi = ["disabled"], Ci = {
1716
1716
  key: 2,
1717
1717
  class: "mr-rule-editor__panel"
1718
- }, Ui = ["aria-label", "disabled"], Fi = ["value"], Si = ["aria-label", "disabled"], Mi = { value: "style" }, Di = { value: "cell" }, xi = { value: "rowVisibility" }, Ni = { key: 0 }, Ri = ["aria-label", "value", "disabled"], Ei = { value: -1 }, Ki = ["value"], Ti = { class: "mr-rule-editor__pair" }, Li = ["disabled"], Bi = ["disabled"], Oi = { class: "mr-rule-editor__check" }, Ai = ["disabled"], Ii = { class: "mr-rule-editor__actions" }, Wi = ["disabled"], Gi = ["disabled"], Ji = { class: "mr-rule-editor__explanation" }, Hi = { key: 0 }, ji = { class: "mr-rule-editor__results" }, Pi = { key: 0 }, zi = { key: 1 }, qi = {
1718
+ }, Ui = ["aria-label", "disabled"], Fi = ["value"], Si = ["aria-label", "disabled"], Mi = { value: "style" }, Di = { value: "cell" }, xi = { value: "rowVisibility" }, Ni = { key: 0 }, Ri = ["aria-label", "value", "disabled"], Ei = { value: -1 }, Ki = ["value"], Ti = { class: "mr-rule-editor__pair" }, Li = ["disabled"], Bi = ["disabled"], Oi = { class: "mr-rule-editor__check" }, Ai = ["disabled"], Ii = { class: "mr-rule-editor__actions" }, Wi = ["disabled"], Gi = ["disabled"], Ji = { class: "mr-rule-editor__explanation" }, ji = { key: 0 }, Hi = { class: "mr-rule-editor__results" }, Pi = { key: 0 }, zi = { key: 1 }, qi = {
1719
1719
  key: 1,
1720
1720
  class: "mr-rule-editor__error",
1721
1721
  role: "alert"
@@ -1754,7 +1754,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
1754
1754
  function _() {
1755
1755
  m.resetDraft(), X.value = {}, ee.value++;
1756
1756
  }
1757
- const Y = j(() => m.pendingLocalChanges.value || Object.values(X.value).some(Boolean));
1757
+ const Y = H(() => m.pendingLocalChanges.value || Object.values(X.value).some(Boolean));
1758
1758
  ne([Y, m.draftSnapshot, X], () => w("dirty", Y.value), { immediate: !0, deep: !0, flush: "sync" }), A({ get pendingLocalChanges() {
1759
1759
  return Y.value;
1760
1760
  } });
@@ -1782,7 +1782,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
1782
1782
  role: "tab",
1783
1783
  "aria-selected": l(h) === u,
1784
1784
  class: ve({ "is-active": l(h) === u }),
1785
- onClick: (H) => h.value = u
1785
+ onClick: (j) => h.value = u
1786
1786
  }, [
1787
1787
  k(t(l(i)[u]), 1),
1788
1788
  u === "computations" && e.list.computed?.length ? (s(), d("span", tn, t(e.list.computed.length), 1)) : E("", !0),
@@ -1813,7 +1813,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
1813
1813
  type: "button",
1814
1814
  disabled: e.readonly || l(h) !== "computations",
1815
1815
  title: l(i).useField,
1816
- onClick: (H) => l(m).setExpression({ field: u.field })
1816
+ onClick: (j) => l(m).setExpression({ field: u.field })
1817
1817
  }, [
1818
1818
  a("strong", null, t(u.label), 1),
1819
1819
  a("code", null, t(u.field), 1),
@@ -1889,9 +1889,9 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
1889
1889
  type: "checkbox",
1890
1890
  checked: l(S).groupBy?.includes(u.field),
1891
1891
  disabled: e.readonly,
1892
- onChange: (H) => l(m).toggleGroupField(
1892
+ onChange: (j) => l(m).toggleGroupField(
1893
1893
  u.field,
1894
- H.target.checked
1894
+ j.target.checked
1895
1895
  )
1896
1896
  }, null, 40, Un),
1897
1897
  k(t(u.label), 1)
@@ -1988,12 +1988,12 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
1988
1988
  "onUpdate:modelValue": c[11] || (c[11] = (u) => oe(T) ? T.value = u : null),
1989
1989
  "aria-label": l(i).groups
1990
1990
  }, [
1991
- (s(!0), d(C, null, x(l(U), (u, H) => (s(), d("option", {
1992
- key: H,
1993
- value: H
1994
- }, t(H + 1) + " · " + t(u.field), 9, jn))), 128)),
1991
+ (s(!0), d(C, null, x(l(U), (u, j) => (s(), d("option", {
1992
+ key: j,
1993
+ value: j
1994
+ }, t(j + 1) + " · " + t(u.field), 9, Hn))), 128)),
1995
1995
  l(U).length ? E("", !0) : (s(), d("option", Pn, t(l(i).noGroups), 1))
1996
- ], 8, Hn), [
1996
+ ], 8, jn), [
1997
1997
  [
1998
1998
  L,
1999
1999
  l(T),
@@ -2069,8 +2069,8 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
2069
2069
  k(t(l(i).repeat), 1)
2070
2070
  ])
2071
2071
  ]),
2072
- (s(!0), d(C, null, x(l(M).aggregates, (u, H) => (s(), d("div", {
2073
- key: H,
2072
+ (s(!0), d(C, null, x(l(M).aggregates, (u, j) => (s(), d("div", {
2073
+ key: j,
2074
2074
  class: "mr-rule-editor__aggregate"
2075
2075
  }, [
2076
2076
  a("div", li, [
@@ -2150,7 +2150,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
2150
2150
  a("button", {
2151
2151
  type: "button",
2152
2152
  disabled: e.readonly,
2153
- onClick: (B) => l(M).aggregates?.splice(H, 1)
2153
+ onClick: (B) => l(M).aggregates?.splice(j, 1)
2154
2154
  }, t(l(i).remove), 9, yi)
2155
2155
  ])
2156
2156
  ]))), 128)),
@@ -2231,10 +2231,10 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
2231
2231
  ))
2232
2232
  }, [
2233
2233
  a("option", Ei, "+ " + t(l(i).newCondition), 1),
2234
- (s(!0), d(C, null, x(l(z)?.rules, (u, H) => (s(), d("option", {
2235
- key: H,
2236
- value: H
2237
- }, t(H + 1) + " · " + t("field" in u.when ? u.when.field : l(i).conditionGroup), 9, Ki))), 128))
2234
+ (s(!0), d(C, null, x(l(z)?.rules, (u, j) => (s(), d("option", {
2235
+ key: j,
2236
+ value: j
2237
+ }, t(j + 1) + " · " + t("field" in u.when ? u.when.field : l(i).conditionGroup), 9, Ki))), 128))
2238
2238
  ], 40, Ri)
2239
2239
  ])) : E("", !0),
2240
2240
  re(we, {
@@ -2304,20 +2304,20 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
2304
2304
  readonly: e.readonly,
2305
2305
  messages: l(i),
2306
2306
  accept: l(m).applyLayout,
2307
- onDirty: (H) => X.value = { ...X.value, [u]: H }
2307
+ onDirty: (j) => X.value = { ...X.value, [u]: j }
2308
2308
  }, null, 8, ["list", "recovery-key", "mode", "datasets", "dataset-schema", "dataset-schemas", "readonly", "messages", "accept", "onDirty"]), [
2309
2309
  [Ee, l(h) === u]
2310
2310
  ])), 64)),
2311
2311
  a("aside", Ji, [
2312
2312
  a("header", null, [
2313
2313
  a("strong", null, t(l(i).explanation), 1),
2314
- Y.value ? (s(), d("span", Hi, t(l(i).pending), 1)) : E("", !0)
2314
+ Y.value ? (s(), d("span", ji, t(l(i).pending), 1)) : E("", !0)
2315
2315
  ]),
2316
2316
  a("p", null, t(l(i).sourceHint), 1),
2317
2317
  l(h) === "computations" ? (s(), d(C, { key: 0 }, [
2318
2318
  a("h4", null, t(l(i).expression), 1),
2319
2319
  a("code", null, t(l(v)), 1),
2320
- a("div", ji, [
2320
+ a("div", Hi, [
2321
2321
  a("h4", null, t(l(i).sourceValues) + " → " + t(l(i).result), 1),
2322
2322
  (s(!0), d(C, null, x(l(D), (u) => (s(), d("div", {
2323
2323
  key: u.row,
@@ -2325,7 +2325,7 @@ const _t = ["aria-label"], en = { class: "mr-rule-editor__directory" }, ln = ["a
2325
2325
  }, [
2326
2326
  a("small", null, "#" + t(u.row), 1),
2327
2327
  a("code", null, t(u.values), 1),
2328
- a("strong", null, t(l(f).find((H) => H.row === u.row)?.value ?? (l(f).length ? "—" : l(i).notChecked)), 1)
2328
+ a("strong", null, t(l(f).find((j) => j.row === u.row)?.value ?? (l(f).length ? "—" : l(i).notChecked)), 1)
2329
2329
  ]))), 128)),
2330
2330
  l(f).some((u) => u.value == null) ? (s(), d("p", Pi, t(l(i).nullReason), 1)) : E("", !0),
2331
2331
  l(f).length ? (s(), d("p", zi, t(l(i).sample), 1)) : E("", !0)