@agile-team/mach-report 2.18.0 → 2.19.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.
- package/README.md +3 -2
- package/dist/{ExcelBindingWizard-Czn3C2yE.cjs → ExcelBindingWizard-UHSApSG9.cjs} +1 -1
- package/dist/{ExcelBindingWizard-DMGZj6I6.js → ExcelBindingWizard-xJIYmnZ_.js} +1 -1
- package/dist/{ParamEditor-oDfD8LgE.cjs → ParamEditor-BZb-okUd.cjs} +1 -1
- package/dist/{ParamEditor-KzDQvbHY.js → ParamEditor-D1wWemaf.js} +1 -1
- package/dist/{ReportBatchPanel-BJK7PvZ4.js → ReportBatchPanel-B88R-fME.js} +1 -1
- package/dist/{ReportBatchPanel-DnmNRssu.cjs → ReportBatchPanel-BkJFqeEW.cjs} +1 -1
- package/dist/ReportLabelStudio-B4WZ2XNN.js +239 -0
- package/dist/ReportLabelStudio-BN-fYNCr.cjs +1 -0
- package/dist/{ReportPreview-BxWWTUL5.js → ReportPreview-BUr8GQUW.js} +2143 -2108
- package/dist/ReportPreview-D7PvKzs3.cjs +6 -0
- package/dist/{ReportTemplateLibrary-BFjB08Wu.js → ReportTemplateLibrary-BGELmgd3.js} +1 -1
- package/dist/{ReportTemplateLibrary-BO42QnWd.cjs → ReportTemplateLibrary-BOh2MgjQ.cjs} +1 -1
- package/dist/{RuleEditor-CqxT1a-W.js → RuleEditor-CoLqgehG.js} +1 -1
- package/dist/{RuleEditor-D7YWigD9.cjs → RuleEditor-XaLcCdTb.cjs} +1 -1
- package/dist/{TemplateOutlinePanel-zG0DrsIB.js → TemplateOutlinePanel-DU95loB-.js} +1 -1
- package/dist/{TemplateOutlinePanel-B0XX350V.cjs → TemplateOutlinePanel-DiG8tRRe.cjs} +1 -1
- package/dist/{TemplateReusePanel-Czwe5GbC.js → TemplateReusePanel-DE1KSD6c.js} +1 -1
- package/dist/{TemplateReusePanel-BD0HSKp_.cjs → TemplateReusePanel-G-Y299wc.cjs} +1 -1
- package/dist/{TemplateReviewPanel-CA5sdffM.cjs → TemplateReviewPanel-KQx9ts0D.cjs} +1 -1
- package/dist/{TemplateReviewPanel-NhmQI65C.js → TemplateReviewPanel-vqFJ_Y9o.js} +1 -1
- package/dist/artifact-integrity.json +34 -32
- package/dist/designer-CyKXBhQg.cjs +2 -0
- package/dist/designer-fVvpYg8H.js +5824 -0
- package/dist/designer.cjs +1 -1
- package/dist/designer.d.cts +93 -1
- package/dist/designer.d.ts +93 -1
- package/dist/designer.js +22 -19
- package/dist/{plugin-DM1M2wlI.cjs → plugin-4VuL38Nc.cjs} +1 -1
- package/dist/{plugin-ByjF2kiV.js → plugin-YWHcI3t4.js} +1 -1
- package/dist/sbom.cdx.json +1 -1
- package/dist/server.cjs +1 -1
- package/dist/server.js +1 -1
- package/dist/style.css +1 -1
- package/dist/vue-async.cjs +1 -1
- package/dist/vue-async.js +3 -3
- package/dist/vue.cjs +1 -1
- package/dist/vue.js +3 -3
- package/package.json +1 -1
- package/dist/ReportPreview-Yf99omi3.cjs +0 -6
- package/dist/designer--TKECSEc.cjs +0 -2
- package/dist/designer-d6hJS41w.js +0 -5683
package/dist/vue-async.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./plugin-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./plugin-4VuL38Nc.cjs");function i(){return Promise.resolve().then(()=>require("./ReportPreview-D7PvKzs3.cjs")).then(e=>e.ReportPreview$1)}const t={install(e,o={}){r.machReportPlugin.install(e,o)}};exports.MachReportPreview=r.MachReportPreview;exports.default=t;exports.machReportAsyncPlugin=t;exports.preloadMachReport=i;
|
package/dist/vue-async.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { m as o } from "./plugin-
|
|
2
|
-
import { M as l } from "./plugin-
|
|
1
|
+
import { m as o } from "./plugin-YWHcI3t4.js";
|
|
2
|
+
import { M as l } from "./plugin-YWHcI3t4.js";
|
|
3
3
|
function a() {
|
|
4
|
-
return import("./ReportPreview-
|
|
4
|
+
return import("./ReportPreview-BUr8GQUW.js").then((t) => t.v);
|
|
5
5
|
}
|
|
6
6
|
const n = {
|
|
7
7
|
install(t, r = {}) {
|
package/dist/vue.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@agile-team/mach-report"),i=require("./ReportPreview-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@agile-team/mach-report"),i=require("./ReportPreview-D7PvKzs3.cjs"),a=require("./ReportParamPanel-sOANVRz-.cjs"),f=require("./injection-keys-Db_DyLkm.cjs"),O=require("./plugin-4VuL38Nc.cjs"),T=require("vue"),C=require("./json-snapshot-jiXff4lc.cjs"),y=require("./progress-B0ctFpKf.cjs");function v(r){const e=E.createReportSource(r),n=async t=>{if(t.reportIds.length===0)throw new i.PlanLoadError("缺少报表 ID");for(const o of t.reportIds)if(!Object.prototype.hasOwnProperty.call(r,o)||!r[o])throw new i.PlanLoadError(`本地模板 ${o} 不存在`);return e(t)};return n.getParamDefs=e.getParamDefs,n}const I=Object.freeze({loading:!1,hasPlan:!1,pageCount:0,currentPage:1,exporting:null,printing:!1,canExport:!1,canPrint:!1,error:null,pdfFont:Object.freeze({status:"unchecked",fontUrl:""})});function D(){const r=T.shallowRef(null),e=()=>r.value?.state??I,n=Object.freeze({get loading(){return e().loading},get hasPlan(){return e().hasPlan},get pageCount(){return e().pageCount},get currentPage(){return e().currentPage},get exporting(){return e().exporting},get printing(){return e().printing},get canExport(){return e().canExport},get canPrint(){return e().canPrint},get error(){return e().error},get pdfFont(){return e().pdfFont},get editing(){return e().editing??!1},get saving(){return e().saving??!1},get importing(){return e().importing??!1},get dirty(){return e().dirty??!1},get pendingLocalChanges(){return e().pendingLocalChanges??!1},get task(){return e().task??null},get diagnostics(){return e().diagnostics??[]},get reportIds(){return e().reportIds??[]},get params(){return e().params??{}},get canUndo(){return e().canUndo??!1},get canRedo(){return e().canRedo??!1},get changeCount(){return e().changeCount??0},get selection(){return e().selection??null}});function t(){if(!r.value)throw new a.MachReportError("config","报表预览尚未挂载,请在 ready 后调用控制器");return r.value}return{ref(o){const s=o;r.value=s&&typeof s.reload=="function"&&typeof s.print=="function"&&typeof s.exportAs=="function"&&typeof s.openPdfWindow=="function"&&typeof s.gotoPage=="function"&&typeof s.setParams=="function"?s:null},ready:T.computed(()=>r.value!==null),state:n,async checkPdfFont(){const o=t();return o.checkPdfFont?o.checkPdfFont():{status:"unverified",fontUrl:"",message:"旧自定义控制器未提供字体检查,请由宿主确认字体配置"}},cancelTask(){t().cancelTask?.()},async confirmDiscard(o){return await t().confirmDiscard?.(o)??!0},getOutputDiagnostics(o){return t().getOutputDiagnostics?.(o)??[]},async reload(){await t().reload()},async print(){await t().print()},async exportAs(o){await t().exportAs(o)},openPdfWindow(){t().openPdfWindow()},gotoPage(o){t().gotoPage(o)},async setParams(o,s){await t().setParams(o,s)},async importExcel(o,s){const g=t();if(!g.importExcel)throw new a.MachReportError("config","旧自定义控制器未提供 Excel 导入");return g.importExcel(o,s)},getPlan(){return t().getPlan?.()??null},getChanges(){return t().getChanges?.()??[]},getDifferences:()=>t().getDifferences?.()??[],undo:async()=>await t().undo?.()??!1,redo:async()=>await t().redo?.()??!1,restoreChanges:async()=>await t().restoreChanges?.()??!1,getSelection:()=>t().getSelection?.()??null,focusCell:async(o,s)=>await t().focusCell?.(o,s)??!1,focusField:async o=>await t().focusField?.(o)??!1,copySelection:()=>t().copySelection?.()??"",pasteSelection:async o=>await t().pasteSelection?.(o)??!1}}function L(){return T.inject(f.MACH_REPORT_CONTROLLER_KEY,null)}function h(r){return!!r&&typeof r=="object"&&!Array.isArray(r)}function F(r){return Array.isArray(r)&&r.every(e=>h(e)&&typeof e.code=="string"&&typeof e.message=="string"&&["info","warning","error"].includes(e.severity)&&(e.path===void 0||typeof e.path=="string")&&C.hasValidDataExplanation(e))}function x(r,e){return Array.isArray(r)&&r.every(n=>h(n)&&Number.isSafeInteger(n.editIndex)&&n.editIndex>=0&&n.editIndex<e&&typeof n.code=="string"&&typeof n.message=="string")}function b(r,e){let n;if(!h(r)||typeof r.revision!="string"||!r.revision.trim()?n="非空 revision(请先在适配器解包业务响应)":r.sourceToken!==void 0&&typeof r.sourceToken!="string"?n="字符串 sourceToken":r.diagnostics!==void 0&&!F(r.diagnostics)?n="结构化 diagnostics":r.conflicts!==void 0&&!x(r.conflicts,e)&&(n="有效 editIndex/code/message conflicts"),n)throw new a.MachReportError("edit",`ReportProvider.save 必须返回${n};服务器可能已提交,请重新查询确认后再编辑`)}function m(r){return typeof r=="function"?r():r}function q(r,e){const n=new Set(r.flatMap(t=>t.source?.[e]===void 0?[]:[String(t.source[e])]));return n.size===1?[...n][0]:void 0}function A(r,e,n,t){return typeof r=="function"?r():q(e,n)??t??r}function U(r){return r.requestId??globalThis.crypto?.randomUUID?.()??`mr-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}function G(r,e){if(!r.save)throw new a.MachReportError("config","ReportProvider.save 未配置,无法启用业务保存");let n="",t,o,s=0;function g(c,u,p){c.conflicts?.length||u!==n||p!==s||(t=c.revision,o=c.sourceToken)}async function _(c,u){if(u.signal.aborted)throw u.signal.reason??new DOMException("Aborted","AbortError");const p=m(e.reportId),S={...m(e.params??{})},R=JSON.stringify([p,S]),M=++s;if(R!==n&&(n=R,t=void 0,o=void 0),e.requireSource!==!1&&c.edits.some(l=>!l.source))throw new E.ReportCellEditError("missing");const d=await r.save({reportId:p,params:S,signal:u.signal,requestId:c.requestId,action:u.action,edits:i.cloneReportSnapshot(c.edits),expectedRevision:A(e.expectedRevision,c.edits,"revision",t),sourceToken:A(e.sourceToken,c.edits,"sourceToken",o)});if(u.signal.aborted)throw u.signal.reason??new DOMException("Aborted","AbortError");b(d,c.edits.length),d.diagnostics?.forEach(l=>y.observeOutput(()=>e.onDiagnostic?.(l)));const P=d.diagnostics?.filter(l=>l.severity==="error");if(P?.length)throw new a.MachReportError("edit",P.map(l=>l.message).join(";"),{diagnostics:P});const w=d.conflicts?.map(l=>({source:c.edits[l.editIndex]?.source,address:c.edits[l.editIndex]?.address,message:l.message}));return g(d,R,M),{revision:d.revision,sourceToken:d.sourceToken,conflicts:w}}return{requireSource:e.requireSource??!0,canEdit:e.canEdit,validate:e.validate,saveBatch:_,save:(c,u)=>_({requestId:U(u),edits:[i.cloneReportSnapshot(c)]},u)}}exports.PlanLoadError=i.PlanLoadError;exports.REPORT_EXPORT_FORMATS=i.REPORT_EXPORT_FORMATS;exports.REPORT_PREVIEW_TOOLS=i.REPORT_PREVIEW_TOOLS;exports.ReportDataComparisonPanel=i._sfc_main;exports.ReportPagination=i.ReportPagination;exports.ReportPrefillPanel=i._sfc_main$1;exports.ReportPreview=i.ReportPreview;exports.ReportPrintResourceError=i.ReportPrintResourceError;exports.ReportToolbar=i.ReportToolbar;exports.ReportValidationPanel=i.ReportValidationPanel;exports.buildPrintDocument=i.buildPrintDocument;exports.buildWordHtml=i.buildWordHtml;exports.createDefaultPdfExporter=i.createDefaultPdfExporter;exports.createFetchRequest=i.createFetchRequest;exports.createPrintCalibrationPlan=i.createPrintCalibrationPlan;exports.createReportStoragePreferences=i.createReportStoragePreferences;exports.joinReportIds=i.joinReportIds;exports.normalizeReportIds=i.normalizeReportIds;exports.preparePrintResources=i.preparePrintResources;exports.printPlans=i.printPlans;exports.usePageWindow=i.usePageWindow;exports.usePrintExport=i.usePrintExport;exports.useZoom=i.useZoom;exports.DEFAULT_CALCULATION_MESSAGES=a.DEFAULT_CALCULATION_MESSAGES;exports.DEFAULT_DATA_REVIEW_MESSAGES=a.DEFAULT_DATA_REVIEW_MESSAGES;exports.DEFAULT_MESSAGES=a.DEFAULT_MESSAGES;exports.DEFAULT_PRINT_MESSAGES=a.DEFAULT_PRINT_MESSAGES;exports.DEFAULT_THEME=a.DEFAULT_THEME;exports.MachReportError=a.MachReportError;exports.PARAM_OPTIONS_MESSAGES=a.PARAM_OPTIONS_MESSAGES;exports.ReportParamPanel=a.ReportParamPanel;exports.SILENT_LOGGER=a.SILENT_LOGGER;exports.defineMachReportConfig=a.defineMachReportConfig;exports.defineMachReportPreset=a.defineMachReportPreset;exports.normalizeReportLoadError=a.normalizeReportLoadError;exports.printCalibration=a.printCalibration;exports.provideMachReportConfig=a.provideMachReportConfig;exports.resolveCalculationMessages=a.resolveCalculationMessages;exports.resolveConfig=a.resolveConfig;exports.resolveDataReviewMessages=a.resolveDataReviewMessages;exports.snapshotPrintOptions=a.snapshotPrintOptions;exports.themeToCssVars=a.themeToCssVars;exports.toErrorDetail=a.toErrorDetail;exports.useMachReportConfig=a.useMachReportConfig;exports.MACH_REPORT_CONFIG_KEY=f.MACH_REPORT_CONFIG_KEY;exports.MACH_REPORT_CONTROLLER_KEY=f.MACH_REPORT_CONTROLLER_KEY;exports.MACH_REPORT_FETCHER_KEY=f.MACH_REPORT_FETCHER_KEY;exports.MACH_REPORT_PDF_EXPORTER_KEY=f.MACH_REPORT_PDF_EXPORTER_KEY;exports.MachReportPreview=O.MachReportPreview;exports.machReportPlugin=O.machReportPlugin;exports.createLocalFetcher=v;exports.createProviderEditing=G;exports.useMachReport=D;exports.useReportPreview=L;Object.keys(E).forEach(r=>{r!=="default"&&!Object.prototype.hasOwnProperty.call(exports,r)&&Object.defineProperty(exports,r,{enumerable:!0,get:()=>E[r]})});
|
package/dist/vue.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createReportSource as v, ReportCellEditError as A } from "@agile-team/mach-report";
|
|
2
2
|
export * from "@agile-team/mach-report";
|
|
3
|
-
import { P as R, c as h } from "./ReportPreview-
|
|
4
|
-
import { R as Z, a as Q, _ as ee, b as re, d as te, e as ne, f as oe, g as se, h as ae, i as ie, j as ce, k as fe, l as ue, m as de, n as le, o as ge, p as pe, q as Pe, r as me, u as Ee, s as Re, t as he } from "./ReportPreview-
|
|
3
|
+
import { P as R, c as h } from "./ReportPreview-BUr8GQUW.js";
|
|
4
|
+
import { R as Z, a as Q, _ as ee, b as re, d as te, e as ne, f as oe, g as se, h as ae, i as ie, j as ce, k as fe, l as ue, m as de, n as le, o as ge, p as pe, q as Pe, r as me, u as Ee, s as Re, t as he } from "./ReportPreview-BUr8GQUW.js";
|
|
5
5
|
import { M as u } from "./ReportParamPanel-mQkeN70Q.js";
|
|
6
6
|
import { D as ye, a as Se, b as Te, c as ve, d as Ae, P as xe, R as Ce, S as _e, e as Ie, f as Oe, n as Me, p as De, g as ke, r as Fe, h as Le, i as be, s as Ue, t as qe, j as je, u as Ge } from "./ReportParamPanel-mQkeN70Q.js";
|
|
7
7
|
import { M as x } from "./injection-keys-e85udZCp.js";
|
|
8
8
|
import { a as He, b as We, c as ze } from "./injection-keys-e85udZCp.js";
|
|
9
|
-
import { M as Ye, m as Ke } from "./plugin-
|
|
9
|
+
import { M as Ye, m as Ke } from "./plugin-YWHcI3t4.js";
|
|
10
10
|
import { shallowRef as C, computed as _, inject as I } from "vue";
|
|
11
11
|
import { x as O } from "./json-snapshot-By4ZVVUt.js";
|
|
12
12
|
import { a as M } from "./progress-Hc2vxoCs.js";
|