@agile-team/mach-report 2.22.0 → 2.23.1

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 (171) hide show
  1. package/README.md +8 -6
  2. package/dist/ExcelBindingWizard-BrTmdo7f.cjs +1 -0
  3. package/dist/ExcelBindingWizard-CcDMLO8Q.js +1486 -0
  4. package/dist/ParamEditor-BGjovFUe.js +737 -0
  5. package/dist/ParamEditor-CeNp4_zQ.cjs +1 -0
  6. package/dist/ReportBatchPanel-CHxBtG9R.cjs +1 -0
  7. package/dist/ReportBatchPanel-CJB67WNd.js +351 -0
  8. package/dist/ReportLabelStudio-Tplc1TLJ.js +784 -0
  9. package/dist/ReportLabelStudio-g8PkqJWn.cjs +1 -0
  10. package/dist/ReportParamPanel-C7fZTllk.cjs +1 -0
  11. package/dist/{ReportParamPanel-BHSKVL8k.js → ReportParamPanel-GI43aGa0.js} +146 -127
  12. package/dist/ReportPreview-BoGBGyRr.cjs +6 -0
  13. package/dist/ReportPreview-QLONCyci.js +6257 -0
  14. package/dist/ReportTemplateLibrary-BFQIX0sg.cjs +1 -0
  15. package/dist/ReportTemplateLibrary-KqX4E2sN.js +312 -0
  16. package/dist/RuleEditor-BZUP9yvL.cjs +1 -0
  17. package/dist/RuleEditor-OPX1awrH.js +2342 -0
  18. package/dist/TemplateOutlinePanel-CVYKVLv_.cjs +1 -0
  19. package/dist/TemplateOutlinePanel-DQS-eOs6.js +97 -0
  20. package/dist/TemplateReusePanel-CY6O93Zk.cjs +1 -0
  21. package/dist/TemplateReusePanel-DKXiFTyB.js +389 -0
  22. package/dist/TemplateReviewPanel-DbeNC8Ms.cjs +1 -0
  23. package/dist/TemplateReviewPanel-Dijwm9YE.js +593 -0
  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-BB99S802.js +257 -0
  30. package/dist/auto-BrPWo7Xm.cjs +1 -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-BZoVWTgl.js +7172 -0
  40. package/dist/designer-zS2uKJmY.cjs +2 -0
  41. package/dist/designer.cjs +1 -1
  42. package/dist/designer.d.cts +105 -45
  43. package/dist/designer.d.ts +105 -45
  44. package/dist/designer.js +4 -4
  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-7lquyj0w.cjs} +1 -1
  50. package/dist/{encoding-DbnhbwI8.js → encoding-CEd-dq9A.js} +2 -2
  51. package/dist/{font-loader-Di0lQKFf.js → font-loader-CNWXomuV.js} +1 -1
  52. package/dist/{font-loader-BB372_XN.cjs → font-loader-D8pI87fL.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-DvQbZlD7.js → json-snapshot-BRnzKudk.js} +763 -776
  60. package/dist/json-snapshot-DNiIbpOr.cjs +2 -0
  61. package/dist/matrix-B8QWbsGM.cjs +1 -0
  62. package/dist/matrix-C6e_r_vp.js +302 -0
  63. package/dist/{pdf-DmlnL5eB.js → pdf-CJToa81Z.js} +20 -20
  64. package/dist/{pdf-CARdBcuw.cjs → pdf-DpMkW72B.cjs} +42 -42
  65. package/dist/pdf.cjs +1 -1
  66. package/dist/pdf.js +2 -2
  67. package/dist/{plugin-AcAQ2m9X.cjs → plugin-BWTp-X7b.cjs} +1 -1
  68. package/dist/{plugin-w5Nyt08U.js → plugin-_BkUVc2z.js} +1 -1
  69. package/dist/{prefill-BXBxx5We.js → prefill-CWGdnqQd.js} +21 -21
  70. package/dist/prefill-PaAy6wLk.cjs +1 -0
  71. package/dist/prepared-CJy_qk7d.js +94 -0
  72. package/dist/prepared-D0yCSxSO.cjs +1 -0
  73. package/dist/progress-ByiOxUD3.js +250 -0
  74. package/dist/progress-WomPRP3B.cjs +1 -0
  75. package/dist/{protocol-fjaeKkjf.js → protocol-BG16rz6D.js} +3 -3
  76. package/dist/{protocol-C9ZaylID.cjs → protocol-wzhl1Fim.cjs} +1 -1
  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-DYMOS_gz.cjs +1 -0
  86. package/dist/{runtime-BTtpjF3D.js → runtime-PiCax9zQ.js} +52 -51
  87. package/dist/sbom.cdx.json +1 -1
  88. package/dist/server-node.cjs +5 -5
  89. package/dist/server-node.js +1676 -1619
  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-CRuZL3pi.js} +17 -17
  94. package/dist/template-catalog-DtrtT1FY.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-D4ZksyMK.js +111 -0
  102. package/dist/textwrap-DEHqAjKZ.cjs +4 -0
  103. package/dist/vue/async.d.cts +31 -0
  104. package/dist/vue/async.d.ts +31 -0
  105. package/dist/vue/index.d.cts +32 -1
  106. package/dist/vue/index.d.ts +32 -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/ExcelBindingWizard-CW79I6Gl.cjs +0 -1
  119. package/dist/ExcelBindingWizard-CZyppD7I.js +0 -1485
  120. package/dist/ParamEditor-CiYCJI0b.cjs +0 -1
  121. package/dist/ParamEditor-DQit-Gdf.js +0 -732
  122. package/dist/ReportBatchPanel-DKTpV7MU.js +0 -350
  123. package/dist/ReportBatchPanel-Db6TAfG5.cjs +0 -1
  124. package/dist/ReportLabelStudio-B0i9ohQj.cjs +0 -1
  125. package/dist/ReportLabelStudio-BYnRqmje.js +0 -780
  126. package/dist/ReportParamPanel-lngONOEz.cjs +0 -1
  127. package/dist/ReportPreview-BDgKssYR.js +0 -5887
  128. package/dist/ReportPreview-Dw-4icG6.cjs +0 -6
  129. package/dist/ReportTemplateLibrary-BZuKn0YK.js +0 -311
  130. package/dist/ReportTemplateLibrary-DEXH07ND.cjs +0 -1
  131. package/dist/RuleEditor-CIQn547x.js +0 -2341
  132. package/dist/RuleEditor-zSUmPjKa.cjs +0 -1
  133. package/dist/TemplateOutlinePanel-B5SfGYVN.cjs +0 -1
  134. package/dist/TemplateOutlinePanel-D0PgOSQE.js +0 -96
  135. package/dist/TemplateReusePanel-BKlAEF8-.js +0 -388
  136. package/dist/TemplateReusePanel-DAy_Hwqz.cjs +0 -1
  137. package/dist/TemplateReviewPanel-CowmHaQQ.cjs +0 -1
  138. package/dist/TemplateReviewPanel-div-EH_m.js +0 -592
  139. package/dist/assets-CxHunY_9.js +0 -232
  140. package/dist/assets-vbjAGgk8.cjs +0 -1
  141. package/dist/auto-DcUHlKob.cjs +0 -1
  142. package/dist/auto-moShblh1.js +0 -240
  143. package/dist/charts-aCtoswXq.cjs +0 -1
  144. package/dist/component-tree-1_QCiQJX.js +0 -67
  145. package/dist/component-tree-BjZIp6w9.cjs +0 -1
  146. package/dist/computed-4TnxzgIh.cjs +0 -1
  147. package/dist/data-bar-YltqGTaC.cjs +0 -1
  148. package/dist/designer-B7jJeAeG.js +0 -6914
  149. package/dist/designer-BWQVpJeN.cjs +0 -2
  150. package/dist/grid-geometry-D3SJgWFv.js +0 -136
  151. package/dist/grid-geometry-D8ReblRV.cjs +0 -1
  152. package/dist/json-snapshot-nyV63AbB.cjs +0 -2
  153. package/dist/matrix-0hywp0-F.cjs +0 -1
  154. package/dist/matrix-Dy-tyY7E.js +0 -381
  155. package/dist/prefill-DUvejVt1.cjs +0 -1
  156. package/dist/prepared-YXy-fVLw.cjs +0 -1
  157. package/dist/prepared-rXCKqdHY.js +0 -88
  158. package/dist/progress-B0ctFpKf.cjs +0 -1
  159. package/dist/progress-Hc2vxoCs.js +0 -52
  160. package/dist/record-bindings-Ct1HkPrc.cjs +0 -1
  161. package/dist/record-bindings-VZGS-Qd8.js +0 -155
  162. package/dist/rich-text-layout-K48VHUoW.cjs +0 -3
  163. package/dist/rich-text-layout-wxBhnAS7.js +0 -102
  164. package/dist/runtime-Dq0LUsyS.cjs +0 -1
  165. package/dist/template-catalog-CLAM4w7H.cjs +0 -1
  166. package/dist/template-fragments-Ca25Jt7e.cjs +0 -1
  167. package/dist/template-outline-CDWXptuj.js +0 -88
  168. package/dist/template-outline-K4jGhATu.cjs +0 -1
  169. package/dist/template-registry-CWnuGqyP.cjs +0 -1
  170. package/dist/textwrap-CkGjRFT3.js +0 -110
  171. package/dist/textwrap-OTOUMr4f.cjs +0 -4
@@ -1,9 +1,9 @@
1
- import { ref as k, watch as D, nextTick as V, onMounted as ge, onBeforeUnmount as ie, inject as se, computed as E, provide as be, shallowRef as ye, defineComponent as _, openBlock as f, createElementBlock as m, Fragment as U, renderList as H, unref as w, createElementVNode as q, toDisplayString as x, createTextVNode as G, createCommentVNode as I, normalizeClass as Y, createVNode as W, withModifiers as he, createBlock as ne, withKeys as K } from "vue";
1
+ import { ref as k, watch as I, nextTick as V, onMounted as ge, onBeforeUnmount as ie, inject as se, computed as E, provide as be, shallowRef as ye, defineComponent as _, openBlock as f, createElementBlock as m, Fragment as U, renderList as H, unref as w, createElementVNode as q, toDisplayString as x, createTextVNode as G, createCommentVNode as D, normalizeClass as Y, createVNode as W, withModifiers as he, createBlock as ne, withKeys as K } from "vue";
2
2
  import { a as Q } from "./injection-keys-e85udZCp.js";
3
- import { ReportParamValidationError as we, ReportSourceError as Ee, validateReportParams as oe, parseReportCascaderPath as Se, formatReportCascaderPath as Pe, parseReportParamSelection as Ce, formatReportParamSelection as Oe } from "@agile-team/mach-report";
4
- import { w as xe } from "./progress-Hc2vxoCs.js";
3
+ import { ReportParamValidationError as we, ReportSourceError as Ee, validateReportParams as oe, parseReportCascaderPath as Se, formatReportCascaderPath as Ce, parseReportParamSelection as Pe, formatReportParamSelection as Oe } from "@agile-team/mach-report";
4
+ import { w as xe } from "./progress-ByiOxUD3.js";
5
5
  import { _ as ee, a as X } from "./_plugin-vue_export-helper-8SL1F89S.js";
6
- const Re = {
6
+ const Ae = {
7
7
  printPrepareTimeout: "打印资源准备超时,请检查字体与图片后重试。",
8
8
  printImageFailed: "第 {index} 张图片未能加载,已停止打印,避免输出缺失内容。",
9
9
  printFontFailed: "打印字体 {family} 未能加载,请检查字体资源后重试。",
@@ -23,7 +23,7 @@ function xa(e = {}) {
23
23
  if (e.fonts && (!Array.isArray(e.fonts) || e.fonts.length > 8)) throw new RangeError("At most eight print font faces are allowed");
24
24
  return { ...e, ...e.fonts ? { fonts: e.fonts.map((t) => ({ ...t })) } : {}, ...e.calibration ? { calibration: { ...e.calibration } } : {} };
25
25
  }
26
- function Ae(e = {}) {
26
+ function Re(e = {}) {
27
27
  const t = k(!1), l = k(null), n = k(null), i = k(null);
28
28
  function c(d = !1) {
29
29
  t.value = !1, d && V(() => n.value?.focus());
@@ -34,7 +34,7 @@ function Ae(e = {}) {
34
34
  function s(d) {
35
35
  d.key !== "Escape" || !t.value || d.isComposing || (d.preventDefault(), d.stopPropagation(), c(!0));
36
36
  }
37
- return D(t, (d) => {
37
+ return I(t, (d) => {
38
38
  !d || e.focusOnOpen === !1 || V(() => (i.value?.querySelector("input") ?? i.value?.querySelector("button:not(:disabled)"))?.focus());
39
39
  }), ge(() => {
40
40
  document.addEventListener("pointerdown", g), document.addEventListener("focusin", g);
@@ -90,7 +90,7 @@ const ae = {
90
90
  reviewNext: "下一页",
91
91
  reviewPage: "差异分页"
92
92
  };
93
- function Ra(e) {
93
+ function Aa(e) {
94
94
  return { ...de, ...Object.fromEntries(Object.entries(e).filter(([, t]) => t !== void 0)) };
95
95
  }
96
96
  const ue = {
@@ -130,7 +130,7 @@ const ue = {
130
130
  calculationErrorOverflow: "结果超出有效数值范围。",
131
131
  calculationErrorPrecision: "数值超出安全精度,或展示小数位不是 0 至 12 的整数。"
132
132
  };
133
- function Aa(e) {
133
+ function Ra(e) {
134
134
  const t = { ...ue };
135
135
  for (const l of Object.keys(t)) {
136
136
  const n = e[l];
@@ -153,7 +153,7 @@ const ke = {
153
153
  drillOpening: "正在打开…",
154
154
  drillMissingValue: "当前单元格缺少关联参数",
155
155
  drillFailed: "关联内容打开失败,请重试",
156
- ...Re,
156
+ ...Ae,
157
157
  ...ue,
158
158
  exportMenu: "导出",
159
159
  exportMenuDescription: "选择文件格式",
@@ -225,6 +225,20 @@ const ke = {
225
225
  importing: "正在导入 Excel…",
226
226
  editCell: "编辑单元格",
227
227
  editingHint: "双击单元格编辑 · Enter 确认 · Esc 取消",
228
+ editCellEditable: "可编辑",
229
+ editCellReadOnly: "只读",
230
+ editCellFormula: "公式结果由计算生成,不能直接修改。",
231
+ editCellProtected: "此单元格已受保护。",
232
+ editCellComplex: "此单元格包含复合内容,请在模板设计中调整。",
233
+ editCellStructure: "表头与结构单元格由模板控制。",
234
+ editCellDerived: "汇总或派生值随来源数据计算。",
235
+ editCellPermission: "当前业务权限不允许修改此单元格。",
236
+ editCellBusy: "报表处理中,当前单元格暂时只读。",
237
+ editHistoryLimited: "较早的撤销记录已释放,当前修改与来源差异仍完整保留。",
238
+ changesSearch: "搜索字段、行键或数据集",
239
+ changesAllDatasets: "全部数据集",
240
+ changesNoMatches: "没有匹配的修改",
241
+ changesRange: "{start}–{end} / {total}",
228
242
  saving: "正在保存修改…",
229
243
  editInvalidNumber: "请输入有效数字;清空表示无值",
230
244
  editInvalidBoolean: "请输入 true / false、是 / 否或 1 / 0",
@@ -311,6 +325,7 @@ const ke = {
311
325
  diagnosticAssetFailed: "图表或图片生成失败,请重试或联系管理员。",
312
326
  diagnosticAssetBudget: "图片资源超出处理范围,请减少资源或缩小报表范围。"
313
327
  }, Me = {
328
+ colorScheme: "light",
314
329
  emptyAccent: "#79a7e8",
315
330
  shellBg: "#f4f7fc",
316
331
  shellFg: "#334155",
@@ -321,15 +336,19 @@ const ke = {
321
336
  btnBorder: "#dbe3ef",
322
337
  btnHoverBg: "#edf3ff",
323
338
  btnHoverFg: "#315fba",
324
- btnActiveBg: "#3569d4"
339
+ btnActiveBg: "#3569d4",
340
+ btnActiveFg: "#ffffff",
341
+ errorFg: "#b91c1c",
342
+ warningFg: "#92400e",
343
+ successFg: "#047857"
325
344
  };
326
- function $e(e = {}) {
345
+ function Fe(e = {}) {
327
346
  return { ...e, defaults: e.defaults ?? {}, presets: e.presets ?? {} };
328
347
  }
329
348
  function ka(e) {
330
349
  return e;
331
350
  }
332
- const L = {
351
+ const T = {
333
352
  showExport: !0,
334
353
  showPrint: !0,
335
354
  showPdfWindow: !0,
@@ -341,11 +360,11 @@ const L = {
341
360
  }, Ma = { warn: () => {
342
361
  }, info: () => {
343
362
  } };
344
- function Fe(e, t) {
363
+ function $e(e, t) {
345
364
  if (!(!e && !t))
346
365
  return { ...e, ...t, calibration: { ...e?.calibration, ...t?.calibration } };
347
366
  }
348
- function Ie(e = {}, t = {}) {
367
+ function De(e = {}, t = {}) {
349
368
  const l = { ...e, ...t };
350
369
  return (e.unavailableReasons || t.unavailableReasons) && (l.unavailableReasons = { ...e.unavailableReasons, ...t.unavailableReasons }), l;
351
370
  }
@@ -357,24 +376,24 @@ function j(e, t) {
357
376
  messages: { ...e?.messages, ...t?.messages },
358
377
  preview: { ...e?.preview, ...t?.preview },
359
378
  xlsx: { ...e?.xlsx, ...t?.xlsx },
360
- toolbar: Ie(e?.toolbar, t?.toolbar),
379
+ toolbar: De(e?.toolbar, t?.toolbar),
361
380
  interaction: { ...e?.interaction, ...t?.interaction },
362
381
  refresh: { ...e?.refresh, ...t?.refresh },
363
382
  output: { ...e?.output, ...t?.output },
364
- printOptions: Fe(e?.printOptions, t?.printOptions)
383
+ printOptions: $e(e?.printOptions, t?.printOptions)
365
384
  };
366
385
  }
367
- function De(e) {
386
+ function Ie(e) {
368
387
  return {
369
- showExport: e.showExport ?? L.showExport,
370
- showPrint: e.showPrint ?? L.showPrint,
371
- showPdfWindow: e.showPdfWindow ?? L.showPdfWindow,
372
- showSettings: e.showSettings ?? L.showSettings,
373
- showParams: e.showParams ?? L.showParams,
374
- gapPx: e.gapPx ?? L.gapPx
388
+ showExport: e.showExport ?? T.showExport,
389
+ showPrint: e.showPrint ?? T.showPrint,
390
+ showPdfWindow: e.showPdfWindow ?? T.showPdfWindow,
391
+ showSettings: e.showSettings ?? T.showSettings,
392
+ showParams: e.showParams ?? T.showParams,
393
+ gapPx: e.gapPx ?? T.gapPx
375
394
  };
376
395
  }
377
- function $a(e, t) {
396
+ function Fa(e, t) {
378
397
  const l = t ? e?.presets?.[t] : e?.defaultPreset ? e?.presets?.[e.defaultPreset] : void 0, n = j(e?.defaults, l);
379
398
  return {
380
399
  drill: n.drill,
@@ -382,11 +401,11 @@ function $a(e, t) {
382
401
  dataComparison: n.dataComparison,
383
402
  exportExecution: n.exportExecution,
384
403
  loadParamOptions: n.loadParamOptions,
385
- ...De(n),
386
- pdfFontUrl: n.pdfFontUrl ?? L.pdfFontUrl,
404
+ ...Ie(n),
405
+ pdfFontUrl: n.pdfFontUrl ?? T.pdfFontUrl,
387
406
  theme: { ...Me, ...n.theme },
388
407
  messages: { ...ke, ...n.messages },
389
- logger: n.logger ?? L.logger,
408
+ logger: n.logger ?? T.logger,
390
409
  preview: {
391
410
  overscanPages: re(n.preview?.overscanPages, 1, 10, !0),
392
411
  searchDebounceMs: re(n.preview?.searchDebounceMs, 200, 2e3)
@@ -410,13 +429,13 @@ function re(e, t, l, n = !1) {
410
429
  const i = Math.max(0, Math.min(l, e));
411
430
  return n ? Math.floor(i) : i;
412
431
  }
413
- function Fa(e) {
432
+ function $a(e) {
414
433
  const t = {};
415
- return e.emptyAccent != null && (t["--mrp-empty-accent"] = e.emptyAccent), e.shellBg != null && (t["--mrp-shell-bg"] = e.shellBg), e.shellFg != null && (t["--mrp-shell-fg"] = e.shellFg), e.toolbarBg != null && (t["--mrp-toolbar-bg"] = e.toolbarBg), e.toolbarBorder != null && (t["--mrp-toolbar-border"] = e.toolbarBorder), e.toolbarFg != null && (t["--mrp-toolbar-fg"] = e.toolbarFg), e.btnFg != null && (t["--mrp-btn-fg"] = e.btnFg), e.btnBorder != null && (t["--mrp-btn-border"] = e.btnBorder), e.btnHoverBg != null && (t["--mrp-btn-hover-bg"] = e.btnHoverBg), e.btnHoverFg != null && (t["--mrp-btn-hover-fg"] = e.btnHoverFg), e.btnActiveBg != null && (t["--mrp-btn-active-bg"] = e.btnActiveBg), t;
434
+ return e.colorScheme != null && (t["--mrp-color-scheme"] = e.colorScheme), e.emptyAccent != null && (t["--mrp-empty-accent"] = e.emptyAccent), e.shellBg != null && (t["--mrp-shell-bg"] = e.shellBg), e.shellFg != null && (t["--mrp-shell-fg"] = e.shellFg), e.toolbarBg != null && (t["--mrp-toolbar-bg"] = e.toolbarBg), e.toolbarBorder != null && (t["--mrp-toolbar-border"] = e.toolbarBorder), e.toolbarFg != null && (t["--mrp-toolbar-fg"] = e.toolbarFg), e.btnFg != null && (t["--mrp-btn-fg"] = e.btnFg), e.btnBorder != null && (t["--mrp-btn-border"] = e.btnBorder), e.btnHoverBg != null && (t["--mrp-btn-hover-bg"] = e.btnHoverBg), e.btnHoverFg != null && (t["--mrp-btn-hover-fg"] = e.btnHoverFg), e.btnActiveBg != null && (t["--mrp-btn-active-bg"] = e.btnActiveBg), e.btnActiveFg != null && (t["--mrp-btn-active-fg"] = e.btnActiveFg), e.errorFg != null && (t["--mrp-error-fg"] = e.errorFg), e.warningFg != null && (t["--mrp-warning-fg"] = e.warningFg), e.successFg != null && (t["--mrp-success-fg"] = e.successFg), t;
416
435
  }
417
- function Ia(e) {
436
+ function Da(e) {
418
437
  const t = se(Q, null), l = E(() => {
419
- const n = t?.value ?? null, i = "defaults" in e || "presets" in e || "defaultPreset" in e ? $e(e) : { defaults: e, presets: {} };
438
+ const n = t?.value ?? null, i = "defaults" in e || "presets" in e || "defaultPreset" in e ? Fe(e) : { defaults: e, presets: {} };
420
439
  if (!n) return i;
421
440
  const c = { ...n.presets, ...i.presets };
422
441
  for (const g of Object.keys(c))
@@ -432,7 +451,7 @@ function Ia(e) {
432
451
  });
433
452
  be(Q, l);
434
453
  }
435
- function Da() {
454
+ function Ia() {
436
455
  return se(Q, E(() => null));
437
456
  }
438
457
  class B extends Error {
@@ -443,7 +462,7 @@ class B extends Error {
443
462
  function qa(e) {
444
463
  return e instanceof B ? { code: e.code, cause: e.cause } : { code: "render", cause: e };
445
464
  }
446
- function Ta(e) {
465
+ function La(e) {
447
466
  if (e instanceof B) return e;
448
467
  if (e instanceof we) return new B("param", e.message, e);
449
468
  if (e instanceof Ee) return new B(e.code, e.message, e.cause);
@@ -454,14 +473,14 @@ function Ta(e) {
454
473
  return new B("fetch", e instanceof Error ? e.message : "预览加载失败", e);
455
474
  }
456
475
  let qe = 0;
457
- function Te() {
476
+ function Le() {
458
477
  return `mrp-params-${++qe}`;
459
478
  }
460
479
  function ce(e, t, l) {
461
480
  const n = (Array.isArray(t) ? t.find((i) => i?.field === e.field)?.label : void 0) ?? e.field;
462
481
  return e.code === "required" ? l.paramRequired.replace("{label}", n) : (l.paramInvalid ?? "{label}:{message}").replace("{label}", n).replace("{message}", e.message);
463
482
  }
464
- function La(e) {
483
+ function Ta(e) {
465
484
  const t = k({}), l = k(!1);
466
485
  function n() {
467
486
  const s = {};
@@ -469,7 +488,7 @@ function La(e) {
469
488
  typeof d?.field == "string" && Object.defineProperty(s, d.field, { value: e.params()[d.field] ?? d.defaultValue ?? "", writable: !0, enumerable: !0, configurable: !0 });
470
489
  t.value = s, l.value = !1;
471
490
  }
472
- n(), D(e.defs, n), D(e.reportIds, n), D(() => JSON.stringify(e.params()), n);
491
+ n(), I(e.defs, n), I(e.reportIds, n), I(() => JSON.stringify(e.params()), n);
473
492
  const i = E(() => oe(e.defs.value, { ...e.params(), ...t.value })), c = E(() => !l.value && i.value.issues.length > 0 && i.value.issues.every((s) => s.code === "required"));
474
493
  function g() {
475
494
  const s = i.value;
@@ -477,13 +496,13 @@ function La(e) {
477
496
  const y = s.issues[0];
478
497
  return { quiet: c.value, error: new B(y.code === "definition" ? "config" : "param", ce(y, e.defs.value, e.messages()), { issues: s.issues }) };
479
498
  }
480
- const d = { ...s.values }, A = new Set(e.defs.value.filter((y) => y.defaultValue !== void 0).map((y) => y.field));
481
- for (const [y, u] of Object.entries(d)) u === "" && !A.has(y) && delete d[y];
499
+ const d = { ...s.values }, R = new Set(e.defs.value.filter((y) => y.defaultValue !== void 0).map((y) => y.field));
500
+ for (const [y, u] of Object.entries(d)) u === "" && !R.has(y) && delete d[y];
482
501
  return { params: d, quiet: !1 };
483
502
  }
484
503
  return { values: t, attempted: l, validation: i, pendingRequired: c, reset: n, query: g };
485
504
  }
486
- const Z = 100, Le = 32, Ne = 6e4, Be = 15e3;
505
+ const Z = 100, Te = 32, Ne = 6e4, Be = 15e3;
487
506
  function Ue(e) {
488
507
  let t = 0;
489
508
  const l = /* @__PURE__ */ new Set();
@@ -498,41 +517,41 @@ function Ue(e) {
498
517
  return n(e, 1);
499
518
  }
500
519
  function fe(e) {
501
- const t = k(""), l = ye([]), n = k(!1), i = k(!1), c = E(() => Object.fromEntries((Array.isArray(e.def().dependsOn) ? e.def().dependsOn : []).map((R) => [R, e.values()[R] ?? ""]))), g = E(() => Object.values(c.value).some((R) => !R.trim())), s = E(() => !e.loader()), d = /* @__PURE__ */ new Map();
502
- let A, y, u = 0;
520
+ const t = k(""), l = ye([]), n = k(!1), i = k(!1), c = E(() => Object.fromEntries((Array.isArray(e.def().dependsOn) ? e.def().dependsOn : []).map((A) => [A, e.values()[A] ?? ""]))), g = E(() => Object.values(c.value).some((A) => !A.trim())), s = E(() => !e.loader()), d = /* @__PURE__ */ new Map();
521
+ let R, y, u = 0;
503
522
  function h() {
504
- u++, A?.abort(), A = void 0, clearTimeout(y), n.value = !1;
523
+ u++, R?.abort(), R = void 0, clearTimeout(y), n.value = !1;
505
524
  }
506
525
  async function b() {
507
526
  h(), i.value = !1;
508
- const R = e.loader(), M = e.def();
509
- if (!R || !M.optionsSource || g.value || e.disabled() || !e.opened()) return;
510
- const F = { source: M.optionsSource, field: M.field, query: t.value.trim().slice(0, 256), params: Object.freeze({ ...c.value }), limit: Z }, r = JSON.stringify(F), p = d.get(r);
527
+ const A = e.loader(), M = e.def();
528
+ if (!A || !M.optionsSource || g.value || e.disabled() || !e.opened()) return;
529
+ const $ = { source: M.optionsSource, field: M.field, query: t.value.trim().slice(0, 256), params: Object.freeze({ ...c.value }), limit: Z }, r = JSON.stringify($), p = d.get(r);
511
530
  if (p && Date.now() - p.at < Ne) {
512
531
  d.delete(r), d.set(r, p), l.value = p.options;
513
532
  return;
514
533
  }
515
534
  const a = u, o = new AbortController();
516
- A = o, n.value = !0;
535
+ R = o, n.value = !0;
517
536
  const S = setTimeout(() => o.abort(), Be);
518
537
  try {
519
- const O = Ue(await xe(R(Object.freeze({ ...F, signal: o.signal })), o.signal));
538
+ const O = Ue(await xe(A(Object.freeze({ ...$, signal: o.signal })), o.signal));
520
539
  if (a !== u) return;
521
- for (l.value = O, d.delete(r), d.set(r, { at: Date.now(), options: O }); d.size > Le; ) d.delete(d.keys().next().value);
540
+ for (l.value = O, d.delete(r), d.set(r, { at: Date.now(), options: O }); d.size > Te; ) d.delete(d.keys().next().value);
522
541
  } catch {
523
542
  a === u && (i.value = !0);
524
543
  } finally {
525
- clearTimeout(S), a === u && (n.value = !1, A = void 0);
544
+ clearTimeout(S), a === u && (n.value = !1, R = void 0);
526
545
  }
527
546
  }
528
- function C() {
547
+ function P() {
529
548
  h(), l.value = [], i.value = !1, y = setTimeout(() => {
530
549
  b();
531
550
  }, 180);
532
551
  }
533
- return D(t, C, { flush: "sync" }), D([() => e.def().field, () => e.def().type, () => e.def().optionsSource, () => JSON.stringify(c.value), e.loader], () => {
552
+ return I(t, P, { flush: "sync" }), I([() => e.def().field, () => e.def().type, () => e.def().optionsSource, () => JSON.stringify(c.value), e.loader], () => {
534
553
  d.clear(), t.value = "", h(), l.value = [], i.value = !1, e.opened() && b();
535
- }, { flush: "sync" }), D([e.opened, e.disabled], () => {
554
+ }, { flush: "sync" }), I([e.opened, e.disabled], () => {
536
555
  !e.opened() || e.disabled() ? h() : b();
537
556
  }, { immediate: !0 }), ie(() => {
538
557
  h(), d.clear();
@@ -568,12 +587,12 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
568
587
  y.push(u), u = u.find((b) => b.value === c.value[h])?.children ?? [];
569
588
  return y;
570
589
  }), d = E(() => l.def.optionsSource ? i.waiting.value ? g.value.paramOptionsDependencies : i.missingLoader.value ? g.value.paramOptionsMissingLoader : i.failed.value ? g.value.paramOptionsFailed : i.loading.value ? g.value.paramOptionsLoading : s.value.length ? "" : g.value.paramOptionsEmpty : "");
571
- function A(y, u) {
590
+ function R(y, u) {
572
591
  if (l.disabled) return;
573
592
  const h = c.value.slice(0, y);
574
593
  u && h.push(u);
575
- const b = u ? s.value[y]?.find((C) => C.value === u)?.children : s.value[y];
576
- n("change", h.length ? b?.length ? JSON.stringify([...h, null]) : Pe(h) : "");
594
+ const b = u ? s.value[y]?.find((P) => P.value === u)?.children : s.value[y];
595
+ n("change", h.length ? b?.length ? JSON.stringify([...h, null]) : Ce(h) : "");
577
596
  }
578
597
  return (y, u) => (f(), m("div", {
579
598
  class: "mrp-cascader",
@@ -589,13 +608,13 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
589
608
  "aria-invalid": e.invalid || void 0,
590
609
  "aria-describedby": e.invalid ? `${e.id}-error` : d.value ? `${e.id}-status` : void 0,
591
610
  "aria-required": e.def.required || void 0,
592
- onChange: (C) => A(b, C.target.value)
611
+ onChange: (P) => R(b, P.target.value)
593
612
  }, [
594
613
  q("option", je, x(e.def.placeholder ?? (e.messages.paramSelectPlaceholder ?? "请选择{label}").replace("{label}", e.def.label ?? e.def.field)), 1),
595
- (f(!0), m(U, null, H(h, (C) => (f(), m("option", {
596
- key: C.value,
597
- value: C.value
598
- }, x(C.label), 9, Ge))), 128))
614
+ (f(!0), m(U, null, H(h, (P) => (f(), m("option", {
615
+ key: P.value,
616
+ value: P.value
617
+ }, x(P.label), 9, Ge))), 128))
599
618
  ], 40, Ve))), 128)),
600
619
  d.value ? (f(), m("small", {
601
620
  key: 0,
@@ -608,8 +627,8 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
608
627
  type: "button",
609
628
  onClick: u[0] || (u[0] = //@ts-ignore
610
629
  (...h) => w(i).request && w(i).request(...h))
611
- }, x(e.messages.retry), 1)) : I("", !0)
612
- ], 8, ze)) : I("", !0)
630
+ }, x(e.messages.retry), 1)) : D("", !0)
631
+ ], 8, ze)) : D("", !0)
613
632
  ], 8, He));
614
633
  }
615
634
  }), We = /* @__PURE__ */ ee(Je, [["__scopeId", "data-v-734dde49"]]), Ke = ["id", "value", "aria-labelledby", "aria-invalid", "aria-required", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "disabled", "placeholder"], Xe = ["aria-label", "disabled"], Ye = ["aria-label", "disabled"], Qe = ["id"], Ze = ["id", "aria-label", "aria-busy", "aria-multiselectable"], _e = ["id", "aria-selected", "disabled", "onPointermove", "onClick"], ea = {
@@ -633,24 +652,24 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
633
652
  },
634
653
  emits: ["change"],
635
654
  setup(e, { emit: t }) {
636
- const l = e, n = t, i = Ae({ focusOnOpen: !1 }), { root: c, panel: g, opened: s } = i, d = fe({ def: () => l.def, values: () => l.values, loader: () => l.loadOptions, opened: () => s.value, disabled: () => l.disabled === !0 }), { query: A, options: y, loading: u, failed: h, waiting: b, missingLoader: C } = d, R = E(() => ({ ...ae, ...l.messages })), M = E(() => l.def.type === "multiSelect"), F = E(() => M.value ? Ce(l.value) ?? [] : [l.value]), r = E(() => l.def.optionsSource ? y.value : (l.def.options ?? []).filter((v) => `${v.label} ${v.value}`.toLocaleLowerCase().includes(A.value.toLocaleLowerCase())).slice(0, 100)), p = /* @__PURE__ */ new Map(), a = E(() => M.value ? F.value.map((v) => p.get(v) ?? l.def.options?.find((P) => P.value === v)?.label ?? v).join("、") : S.value || l.value), o = k(0), S = k(""), O = k(), N = E(() => `${l.id}-options`), T = E(() => b.value ? R.value.paramOptionsDependencies : l.def.optionsSource && C.value ? R.value.paramOptionsMissingLoader : h.value ? R.value.paramOptionsFailed : u.value ? R.value.paramOptionsLoading : r.value.length ? "" : R.value.paramOptionsEmpty);
637
- D(() => l.value, () => {
655
+ const l = e, n = t, i = Re({ focusOnOpen: !1 }), { root: c, panel: g, opened: s } = i, d = fe({ def: () => l.def, values: () => l.values, loader: () => l.loadOptions, opened: () => s.value, disabled: () => l.disabled === !0 }), { query: R, options: y, loading: u, failed: h, waiting: b, missingLoader: P } = d, A = E(() => ({ ...ae, ...l.messages })), M = E(() => l.def.type === "multiSelect"), $ = E(() => M.value ? Pe(l.value) ?? [] : [l.value]), r = E(() => l.def.optionsSource ? y.value : (l.def.options ?? []).filter((v) => `${v.label} ${v.value}`.toLocaleLowerCase().includes(R.value.toLocaleLowerCase())).slice(0, 100)), p = /* @__PURE__ */ new Map(), a = E(() => M.value ? $.value.map((v) => p.get(v) ?? l.def.options?.find((C) => C.value === v)?.label ?? v).join("、") : S.value || l.value), o = k(0), S = k(""), O = k(), N = E(() => `${l.id}-options`), L = E(() => b.value ? A.value.paramOptionsDependencies : l.def.optionsSource && P.value ? A.value.paramOptionsMissingLoader : h.value ? A.value.paramOptionsFailed : u.value ? A.value.paramOptionsLoading : r.value.length ? "" : A.value.paramOptionsEmpty);
656
+ I(() => l.value, () => {
638
657
  S.value = "";
639
- }), D(r, () => {
658
+ }), I(r, () => {
640
659
  o.value = 0;
641
- }), D(() => [l.def.field, l.def.optionsSource, JSON.stringify(l.def.options)], () => {
660
+ }), I(() => [l.def.field, l.def.optionsSource, JSON.stringify(l.def.options)], () => {
642
661
  p.clear(), S.value = "";
643
- }), D(s, (v) => {
662
+ }), I(s, (v) => {
644
663
  v && V(() => O.value?.focus());
645
664
  });
646
665
  function te(v) {
647
666
  if (!(l.disabled || b.value || u.value || h.value)) {
648
667
  p.set(v.value, v.label);
649
- for (const P of p.keys()) P !== v.value && !F.value.includes(P) && p.delete(P);
668
+ for (const C of p.keys()) C !== v.value && !$.value.includes(C) && p.delete(C);
650
669
  if (M.value) {
651
- const P = F.value.includes(v.value) ? F.value.filter(($) => $ !== v.value) : [...F.value, v.value];
652
- if (P.length > Math.min(l.def.maxItems ?? 100, 100)) return;
653
- n("change", P.length ? Oe(P) : "");
670
+ const C = $.value.includes(v.value) ? $.value.filter((F) => F !== v.value) : [...$.value, v.value];
671
+ if (C.length > Math.min(l.def.maxItems ?? 100, 100)) return;
672
+ n("change", C.length ? Oe(C) : "");
654
673
  } else
655
674
  n("change", v.value), i.close();
656
675
  V(() => {
@@ -659,10 +678,10 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
659
678
  }
660
679
  }
661
680
  function le(v) {
662
- v.isComposing || (s.value = !0, A.value = v.target.value);
681
+ v.isComposing || (s.value = !0, R.value = v.target.value);
663
682
  }
664
683
  function z() {
665
- !l.disabled && !b.value && (!l.def.optionsSource || !C.value) && (A.value = "", s.value = !0);
684
+ !l.disabled && !b.value && (!l.def.optionsSource || !P.value) && (R.value = "", s.value = !0);
666
685
  }
667
686
  function pe(v) {
668
687
  if (!(v.isComposing || v.keyCode === 229)) {
@@ -676,8 +695,8 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
676
695
  return;
677
696
  }
678
697
  if (v.key === "Enter") {
679
- const P = r.value[o.value];
680
- P && te(P);
698
+ const C = r.value[o.value];
699
+ C && te(C);
681
700
  return;
682
701
  }
683
702
  r.value.length && (o.value = (o.value + (v.key === "ArrowDown" ? 1 : -1) + r.value.length) % r.value.length, V(() => g.value?.querySelector(`[id="${N.value}-${o.value}"]`)?.scrollIntoView?.({ block: "nearest" })));
@@ -687,7 +706,7 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
687
706
  function ve() {
688
707
  l.disabled || (n("change", ""), S.value = "", i.close());
689
708
  }
690
- return (v, P) => (f(), m("div", {
709
+ return (v, C) => (f(), m("div", {
691
710
  ref_key: "root",
692
711
  ref: c,
693
712
  class: "mrp-remote-param"
@@ -706,17 +725,17 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
706
725
  type: "text",
707
726
  role: "combobox",
708
727
  autocomplete: "off",
709
- value: w(s) ? w(A) : a.value,
728
+ value: w(s) ? w(R) : a.value,
710
729
  maxlength: 256,
711
730
  "aria-labelledby": `${e.id}-label`,
712
731
  "aria-invalid": e.invalid || void 0,
713
732
  "aria-required": e.def.required || void 0,
714
- "aria-describedby": e.invalid ? `${e.id}-error` : w(b) || e.def.optionsSource && w(C) ? `${e.id}-remote-status` : void 0,
733
+ "aria-describedby": e.invalid ? `${e.id}-error` : w(b) || e.def.optionsSource && w(P) ? `${e.id}-remote-status` : void 0,
715
734
  "aria-autocomplete": "list",
716
735
  "aria-expanded": w(s),
717
736
  "aria-controls": w(s) ? N.value : void 0,
718
737
  "aria-activedescendant": w(s) && r.value.length ? `${N.value}-${o.value}` : void 0,
719
- disabled: e.disabled || w(b) || !!e.def.optionsSource && w(C),
738
+ disabled: e.disabled || w(b) || !!e.def.optionsSource && w(P),
720
739
  placeholder: e.def.placeholder ?? (e.messages.paramSelectPlaceholder ?? "请选择{label}").replace("{label}", e.def.label ?? e.def.field),
721
740
  onClick: z,
722
741
  onInput: le,
@@ -726,7 +745,7 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
726
745
  e.value ? (f(), m("button", {
727
746
  key: 0,
728
747
  type: "button",
729
- "aria-label": R.value.paramOptionsClear,
748
+ "aria-label": A.value.paramOptionsClear,
730
749
  disabled: e.disabled,
731
750
  onClick: ve
732
751
  }, [
@@ -738,8 +757,8 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
738
757
  key: 1,
739
758
  type: "button",
740
759
  "aria-label": e.def.label ?? e.def.field,
741
- disabled: e.disabled || w(b) || !!e.def.optionsSource && w(C),
742
- onClick: P[0] || (P[0] = ($) => w(s) ? w(i).close() : z())
760
+ disabled: e.disabled || w(b) || !!e.def.optionsSource && w(P),
761
+ onClick: C[0] || (C[0] = (F) => w(s) ? w(i).close() : z())
743
762
  }, [
744
763
  W(X, {
745
764
  name: "chevron-down",
@@ -747,11 +766,11 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
747
766
  })
748
767
  ], 8, Ye))
749
768
  ], 2),
750
- w(b) || e.def.optionsSource && w(C) ? (f(), m("small", {
769
+ w(b) || e.def.optionsSource && w(P) ? (f(), m("small", {
751
770
  key: 0,
752
771
  id: `${e.id}-remote-status`,
753
772
  role: "status"
754
- }, x(T.value), 9, Qe)) : I("", !0),
773
+ }, x(L.value), 9, Qe)) : D("", !0),
755
774
  w(s) ? (f(), m("div", {
756
775
  key: 1,
757
776
  ref_key: "panel",
@@ -765,37 +784,37 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
765
784
  "aria-busy": w(u),
766
785
  "aria-multiselectable": M.value || void 0
767
786
  }, [
768
- (f(!0), m(U, null, H(r.value, ($, J) => (f(), m("button", {
787
+ (f(!0), m(U, null, H(r.value, (F, J) => (f(), m("button", {
769
788
  id: `${N.value}-${J}`,
770
- key: $.value,
789
+ key: F.value,
771
790
  type: "button",
772
791
  role: "option",
773
792
  tabindex: "-1",
774
- "aria-selected": F.value.includes($.value),
793
+ "aria-selected": $.value.includes(F.value),
775
794
  class: Y({ active: J === o.value }),
776
795
  disabled: w(u),
777
796
  onPointermove: (me) => o.value = J,
778
- onMousedown: P[1] || (P[1] = he(() => {
797
+ onMousedown: C[1] || (C[1] = he(() => {
779
798
  }, ["prevent"])),
780
- onClick: (me) => te($)
799
+ onClick: (me) => te(F)
781
800
  }, [
782
801
  q("span", null, [
783
- M.value ? (f(), m("span", ea, x(F.value.includes($.value) ? "✓" : ""), 1)) : I("", !0),
784
- G(x($.label), 1)
802
+ M.value ? (f(), m("span", ea, x($.value.includes(F.value) ? "✓" : ""), 1)) : D("", !0),
803
+ G(x(F.label), 1)
785
804
  ]),
786
- $.label !== $.value ? (f(), m("small", aa, x($.value), 1)) : I("", !0)
805
+ F.label !== F.value ? (f(), m("small", aa, x(F.value), 1)) : D("", !0)
787
806
  ], 42, _e))), 128))
788
807
  ], 8, Ze),
789
- T.value ? (f(), m("p", ta, [
790
- G(x(T.value), 1),
808
+ L.value ? (f(), m("p", ta, [
809
+ G(x(L.value), 1),
791
810
  w(h) ? (f(), m("button", {
792
811
  key: 0,
793
812
  type: "button",
794
- onClick: P[2] || (P[2] = //@ts-ignore
795
- (...$) => w(d).request && w(d).request(...$))
796
- }, x(e.messages.retry), 1)) : I("", !0)
797
- ])) : I("", !0)
798
- ], 512)) : I("", !0)
813
+ onClick: C[2] || (C[2] = //@ts-ignore
814
+ (...F) => w(d).request && w(d).request(...F))
815
+ }, x(e.messages.retry), 1)) : D("", !0)
816
+ ])) : D("", !0)
817
+ ], 512)) : D("", !0)
799
818
  ], 512));
800
819
  }
801
820
  }), na = /* @__PURE__ */ ee(la, [["__scopeId", "data-v-6ad41cf4"]]), ra = {
@@ -823,14 +842,14 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
823
842
  },
824
843
  emits: ["update:modelValue", "query", "reset"],
825
844
  setup(e, { expose: t, emit: l }) {
826
- const n = e, i = l, c = k({ ...n.modelValue }), g = k(null), s = Te();
827
- D(
845
+ const n = e, i = l, c = k({ ...n.modelValue }), g = k(null), s = Le();
846
+ I(
828
847
  () => n.modelValue,
829
848
  (r) => {
830
849
  c.value = { ...r };
831
850
  }
832
851
  );
833
- const d = E(() => n.issues ?? oe(n.defs, c.value).issues), A = E(
852
+ const d = E(() => n.issues ?? oe(n.defs, c.value).issues), R = E(
834
853
  () => (Array.isArray(n.defs) ? n.defs : []).filter((r) => r && typeof r.field == "string").map((r, p) => ({
835
854
  def: r,
836
855
  id: `${s}-${p}`,
@@ -866,29 +885,29 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
866
885
  return "";
867
886
  }
868
887
  }
869
- function C(r, p, a) {
888
+ function P(r, p, a) {
870
889
  return a ? !!b(r, 0) != !!b(r, 1) ? !b(r, p) || void 0 : !0 : void 0;
871
890
  }
872
- function R(r, p, a) {
891
+ function A(r, p, a) {
873
892
  const o = r.type === "numberRange", S = c.value[r.field] ?? "", O = [b(S, 0, o), b(S, 1, o)];
874
893
  O[p] = a;
875
- const N = o ? JSON.stringify(O.map((T) => T === "" ? null : Number(T))) : O.join("/");
876
- u(r.field, O.every((T) => !T) ? "" : N);
894
+ const N = o ? JSON.stringify(O.map((L) => L === "" ? null : Number(L))) : O.join("/");
895
+ u(r.field, O.every((L) => !L) ? "" : N);
877
896
  }
878
897
  function M(r) {
879
898
  r.isComposing || i("query");
880
899
  }
881
- function F() {
900
+ function $() {
882
901
  g.value?.querySelector('[aria-invalid="true"]')?.focus();
883
902
  }
884
- return t({ focusInvalid: F }), (r, p) => (f(), m("div", {
903
+ return t({ focusInvalid: $ }), (r, p) => (f(), m("div", {
885
904
  ref_key: "root",
886
905
  ref: g,
887
906
  class: "mrp-params"
888
907
  }, [
889
- e.showTitle !== !1 ? (f(), m("span", ra, x(e.messages.paramsTitle), 1)) : I("", !0),
908
+ e.showTitle !== !1 ? (f(), m("span", ra, x(e.messages.paramsTitle), 1)) : D("", !0),
890
909
  q("div", ia, [
891
- (f(!0), m(U, null, H(A.value, (a) => (f(), m("label", {
910
+ (f(!0), m(U, null, H(R.value, (a) => (f(), m("label", {
892
911
  key: a.id,
893
912
  class: Y(["mrp-param", { "mrp-param-missing": !!a.error }])
894
913
  }, [
@@ -897,7 +916,7 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
897
916
  class: "mrp-param-label"
898
917
  }, [
899
918
  G(x(a.label), 1),
900
- a.def.required ? (f(), m("i", oa, "*")) : I("", !0)
919
+ a.def.required ? (f(), m("i", oa, "*")) : D("", !0)
901
920
  ], 8, sa),
902
921
  a.def.type === "cascader" ? (f(), ne(We, {
903
922
  key: 0,
@@ -958,10 +977,10 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
958
977
  min: a.def.min,
959
978
  max: a.def.max,
960
979
  "aria-label": `${a.label} · ${o}`,
961
- "aria-invalid": a.def.type === "numberRange" ? !!a.error || void 0 : C(a.value, S, a.error),
980
+ "aria-invalid": a.def.type === "numberRange" ? !!a.error || void 0 : P(a.value, S, a.error),
962
981
  "aria-describedby": a.error ? `${a.id}-error` : void 0,
963
982
  "aria-required": a.def.required || void 0,
964
- onInput: (O) => R(a.def, S, O.target.value),
983
+ onInput: (O) => A(a.def, S, O.target.value),
965
984
  onKeydown: K(M, ["enter"])
966
985
  }, null, 40, pa))), 128))
967
986
  ], 8, fa)) : (f(), m("input", {
@@ -988,7 +1007,7 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
988
1007
  id: `${a.id}-error`,
989
1008
  class: "mrp-param-error",
990
1009
  role: "status"
991
- }, x(w(ce)(a.error, e.defs, e.messages)), 9, ma)) : I("", !0)
1010
+ }, x(w(ce)(a.error, e.defs, e.messages)), 9, ma)) : D("", !0)
992
1011
  ], 2))), 128))
993
1012
  ]),
994
1013
  e.showActions !== !1 ? (f(), m("div", ga, [
@@ -1004,10 +1023,10 @@ const He = ["aria-labelledby"], Ve = ["value", "disabled", "aria-label", "aria-i
1004
1023
  disabled: e.disabled,
1005
1024
  onClick: p[1] || (p[1] = (a) => r.$emit("reset"))
1006
1025
  }, x(e.messages.reset), 9, ya)
1007
- ])) : I("", !0)
1026
+ ])) : D("", !0)
1008
1027
  ], 512));
1009
1028
  }
1010
- }), Na = /* @__PURE__ */ ee(ha, [["__scopeId", "data-v-e74206d7"]]);
1029
+ }), Na = /* @__PURE__ */ ee(ha, [["__scopeId", "data-v-bad4d7de"]]);
1011
1030
  export {
1012
1031
  ue as D,
1013
1032
  B as M,
@@ -1016,20 +1035,20 @@ export {
1016
1035
  Ma as S,
1017
1036
  de as a,
1018
1037
  ke as b,
1019
- Re as c,
1038
+ Ae as c,
1020
1039
  Me as d,
1021
- $e as e,
1040
+ Fe as e,
1022
1041
  ka as f,
1023
- Ia as g,
1024
- $a as h,
1025
- Ra as i,
1042
+ Da as g,
1043
+ Fa as h,
1044
+ Aa as i,
1026
1045
  qa as j,
1027
- Ae as k,
1028
- La as l,
1029
- Ta as n,
1046
+ Re as k,
1047
+ Ta as l,
1048
+ La as n,
1030
1049
  Oa as p,
1031
- Aa as r,
1050
+ Ra as r,
1032
1051
  xa as s,
1033
- Fa as t,
1034
- Da as u
1052
+ $a as t,
1053
+ Ia as u
1035
1054
  };