@agile-team/mach-report 2.25.0 → 2.25.2
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 +6 -2
- package/dist/{ExcelBindingWizard-NQ_v396s.js → ExcelBindingWizard-bs3F4dD8.js} +3 -3
- package/dist/{ExcelBindingWizard-BgJG-T6k.cjs → ExcelBindingWizard-jSdjBtWw.cjs} +1 -1
- package/dist/{ParamEditor-Z-3yodp5.js → ParamEditor-B7YVD28E.js} +1 -1
- package/dist/{ParamEditor-DEP38mBp.cjs → ParamEditor-CGfaweYX.cjs} +1 -1
- package/dist/{ReportBatchPanel-D33LjMrA.cjs → ReportBatchPanel-BRJt0TXp.cjs} +1 -1
- package/dist/{ReportBatchPanel-DG8FV-5X.js → ReportBatchPanel-BTKHtLTW.js} +1 -1
- package/dist/{ReportLabelStudio-Bz-xAayk.cjs → ReportLabelStudio-BvK_WBke.cjs} +1 -1
- package/dist/{ReportLabelStudio-BZp23_hA.js → ReportLabelStudio-CZwqyO3t.js} +2 -2
- package/dist/ReportPreview-D1ZC5kzz.js +7317 -0
- package/dist/ReportPreview-DAU-V3Ov.cjs +6 -0
- package/dist/{ReportTemplateLibrary-DpSGgvFa.js → ReportTemplateLibrary-C7sB0Jay.js} +1 -1
- package/dist/{ReportTemplateLibrary-uG1gENaW.cjs → ReportTemplateLibrary-ClwxhnC0.cjs} +1 -1
- package/dist/{RuleEditor-BONALh1Q.js → RuleEditor-CsDGFaWz.js} +3 -3
- package/dist/{RuleEditor-bLXiRcxL.cjs → RuleEditor-D-OdaGdR.cjs} +1 -1
- package/dist/{TemplateOutlinePanel-JGBKeF3e.js → TemplateOutlinePanel-CXOT7d1r.js} +1 -1
- package/dist/{TemplateOutlinePanel-C3nfHuaR.cjs → TemplateOutlinePanel-DAqR9zQi.cjs} +1 -1
- package/dist/{TemplateReusePanel-DXQUO6nQ.js → TemplateReusePanel-Dcfx3Hba.js} +2 -2
- package/dist/{TemplateReusePanel-BKhgp6kg.cjs → TemplateReusePanel-ygIi-Ajz.cjs} +1 -1
- package/dist/{TemplateReviewPanel-DhL7Hapy.js → TemplateReviewPanel-COU8FqPq.js} +1 -1
- package/dist/{TemplateReviewPanel-5RWFUUEf.cjs → TemplateReviewPanel-DyGULVxr.cjs} +1 -1
- package/dist/analytics.cjs +1 -1
- package/dist/analytics.js +2 -2
- package/dist/artifact-integrity.json +71 -71
- package/dist/{auto-D-eDZa_V.cjs → auto-DjmvmcX-.cjs} +1 -1
- package/dist/{auto-umW_ozwr.js → auto-j7mr8Kvc.js} +82 -82
- package/dist/{designer-CCyj5WYS.js → designer-B597ZdC0.js} +4 -4
- package/dist/{designer-Cj7fn4Hh.cjs → designer-DFIdv_n7.cjs} +1 -1
- package/dist/designer.cjs +1 -1
- package/dist/designer.js +1 -1
- package/dist/{encoding-CEkBtlUP.js → encoding-BWEMdzFG.js} +2 -2
- package/dist/{encoding-Cipno7dq.cjs → encoding-DVea2qIR.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -8
- package/dist/{json-snapshot-x0JpllWL.js → json-snapshot-DdzALe8q.js} +995 -911
- package/dist/json-snapshot-L_gJ7KRS.cjs +2 -0
- package/dist/matrix-DUYPRL7t.cjs +1 -0
- package/dist/{matrix-C6e_r_vp.js → matrix-b6T291xo.js} +120 -104
- package/dist/{plugin-B_k23hut.cjs → plugin-D5BRHlne.cjs} +1 -1
- package/dist/{plugin-CttO46hc.js → plugin-FWhTnjr0.js} +1 -1
- package/dist/{prefill-BvkuwooY.cjs → prefill-DZymomY6.cjs} +1 -1
- package/dist/{prefill-BkF9Fw_p.js → prefill-m01IM1hl.js} +1 -1
- package/dist/{prepared-CSywIEAZ.cjs → prepared-BHu8bIdj.cjs} +1 -1
- package/dist/{prepared-Cyuh61fJ.js → prepared-DO5pe6Ed.js} +1 -1
- package/dist/{protocol-DwtxjXzO.js → protocol-CZddmu2n.js} +2 -2
- package/dist/{protocol-BwbJNVZl.cjs → protocol-CymmHWmL.cjs} +1 -1
- package/dist/{region-binding-workflow-D8I4QWRh.js → region-binding-workflow-EYxvUYJ-.js} +1 -1
- package/dist/{region-binding-workflow-COD8nISZ.cjs → region-binding-workflow-NdkMSFCh.cjs} +1 -1
- package/dist/report-encoding-worker.cjs +1 -1
- package/dist/report-encoding-worker.js +1 -1
- package/dist/{runtime-BE30icyB.js → runtime-D8AlfJ6S.js} +83 -76
- package/dist/runtime-ywf3oLBR.cjs +1 -0
- package/dist/sbom.cdx.json +1 -1
- package/dist/server-node.cjs +5 -5
- package/dist/server-node.js +1880 -1773
- package/dist/server.cjs +1 -1
- package/dist/server.js +6 -6
- package/dist/{template-catalog-D_gl93va.js → template-catalog-DLu814zA.js} +2 -2
- package/dist/{template-catalog-C0riwrx7.cjs → template-catalog-Lil5Ryt-.cjs} +1 -1
- package/dist/{template-fragments-D94ZZmPc.js → template-fragments-BDxdCuMD.js} +1 -1
- package/dist/{template-fragments-CgzPdFKB.cjs → template-fragments-DbKdxI1z.cjs} +1 -1
- package/dist/template-registry-B-AK1oam.cjs +1 -0
- package/dist/{template-registry-DZOtRY7t.js → template-registry-DeVgwEZj.js} +143 -142
- package/dist/vue/index.d.cts +2 -1
- package/dist/vue/index.d.ts +2 -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 +127 -126
- package/dist/{workbook-session-SzfILBJJ.js → workbook-session-B6hRjTyX.js} +1 -1
- package/dist/{workbook-session-DR2j6Hxm.cjs → workbook-session-BclW7KKH.cjs} +1 -1
- package/dist/worker.cjs +1 -1
- package/dist/worker.js +4 -4
- package/dist/xlsx.cjs +1 -1
- package/dist/xlsx.js +3 -3
- package/package.json +1 -1
- package/dist/ReportPreview-CilFAS9U.js +0 -7170
- package/dist/ReportPreview-dOOzPts2.cjs +0 -6
- package/dist/json-snapshot-DQdkA_At.cjs +0 -2
- package/dist/matrix-B8QWbsGM.cjs +0 -1
- package/dist/runtime-DRSuy_SQ.cjs +0 -1
- package/dist/template-registry-BMScUmM4.cjs +0 -1
package/dist/vue/index.d.cts
CHANGED
|
@@ -965,7 +965,8 @@ export declare function createFetchRequest(options?: FetchRequestOptions): HostR
|
|
|
965
965
|
export declare function createLocalFetcher(entries: Record<string, LocalTemplateEntry> | ReportRegistry): PlanFetcher;
|
|
966
966
|
/** Independent physical test page. Its ruler is measured in millimetres, never CSS pixels. */
|
|
967
967
|
export declare function createPrintCalibrationPlan(widthMm: number, heightMm: number): RenderPlan;
|
|
968
|
-
/** Explicit persistence bridge.
|
|
968
|
+
/** Explicit persistence bridge. Direct callbacks own one logical editing session;
|
|
969
|
+
* Preview instances isolate a shared bridge automatically. Registration never enables saving. */
|
|
969
970
|
export declare function createProviderEditing(provider: ReportProvider, options?: ProviderEditingOptions): ReportEditingOptions;
|
|
970
971
|
/** Optional browser convenience adapter. Access errors are handled by the preview. */
|
|
971
972
|
export declare function createReportStoragePreferences(storage: Pick<Storage, "getItem" | "setItem" | "removeItem">): ReportPreferencesAdapter;
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -965,7 +965,8 @@ export declare function createFetchRequest(options?: FetchRequestOptions): HostR
|
|
|
965
965
|
export declare function createLocalFetcher(entries: Record<string, LocalTemplateEntry> | ReportRegistry): PlanFetcher;
|
|
966
966
|
/** Independent physical test page. Its ruler is measured in millimetres, never CSS pixels. */
|
|
967
967
|
export declare function createPrintCalibrationPlan(widthMm: number, heightMm: number): RenderPlan;
|
|
968
|
-
/** Explicit persistence bridge.
|
|
968
|
+
/** Explicit persistence bridge. Direct callbacks own one logical editing session;
|
|
969
|
+
* Preview instances isolate a shared bridge automatically. Registration never enables saving. */
|
|
969
970
|
export declare function createProviderEditing(provider: ReportProvider, options?: ProviderEditingOptions): ReportEditingOptions;
|
|
970
971
|
/** Optional browser convenience adapter. Access errors are handled by the preview. */
|
|
971
972
|
export declare function createReportStoragePreferences(storage: Pick<Storage, "getItem" | "setItem" | "removeItem">): ReportPreferencesAdapter;
|
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-D5BRHlne.cjs");function i(){return Promise.resolve().then(()=>require("./ReportPreview-DAU-V3Ov.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-FWhTnjr0.js";
|
|
2
|
+
import { M as l } from "./plugin-FWhTnjr0.js";
|
|
3
3
|
function a() {
|
|
4
|
-
return import("./ReportPreview-
|
|
4
|
+
return import("./ReportPreview-D1ZC5kzz.js").then((t) => t.y);
|
|
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 g=require("@agile-team/mach-report"),i=require("./ReportPreview-dOOzPts2.cjs"),a=require("./ReportParamPanel-B27IGJjk.cjs"),E=require("./injection-keys-Db_DyLkm.cjs"),M=require("./plugin-B_k23hut.cjs"),m=require("vue"),D=require("./json-snapshot-DQdkA_At.cjs"),L=require("./diagnostic-collector-wASg6Fzs.cjs");function F(e){const r=g.createReportSource(e),n=async t=>{if(t.reportIds.length===0)throw new i.PlanLoadError("缺少报表 ID");for(const o of t.reportIds)if(!Object.prototype.hasOwnProperty.call(e,o)||!e[o])throw new i.PlanLoadError(`本地模板 ${o} 不存在`);return r(t)};return n.getParamDefs=r.getParamDefs,n}const x=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 b(){const e=m.shallowRef(null),r=()=>e.value?.state??x,n=Object.freeze({get loading(){return r().loading},get stale(){return r().stale??!1},get hasPlan(){return r().hasPlan},get pageCount(){return r().pageCount},get currentPage(){return r().currentPage},get exporting(){return r().exporting},get printing(){return r().printing},get canExport(){return r().canExport},get canPrint(){return r().canPrint},get error(){return r().error},get pdfFont(){return r().pdfFont},get editing(){return r().editing??!1},get saving(){return r().saving??!1},get importing(){return r().importing??!1},get dirty(){return r().dirty??!1},get pendingLocalChanges(){return r().pendingLocalChanges??!1},get task(){return r().task??null},get diagnostics(){return r().diagnostics??[]},get reportIds(){return r().reportIds??[]},get params(){return r().params??{}},get canUndo(){return r().canUndo??!1},get canRedo(){return r().canRedo??!1},get changeCount(){return r().changeCount??0},get selection(){return r().selection??null}});function t(){if(!e.value)throw new a.MachReportError("config","报表预览尚未挂载,请在 ready 后调用控制器");return e.value}return{ref(o){const s=o;e.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:m.computed(()=>e.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 f=t();if(!f.importExcel)throw new a.MachReportError("config","旧自定义控制器未提供 Excel 导入");return f.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 q(){return m.inject(E.MACH_REPORT_CONTROLLER_KEY,null)}function T(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function N(e){return Array.isArray(e)&&e.every(r=>T(r)&&typeof r.code=="string"&&typeof r.message=="string"&&["info","warning","error"].includes(r.severity)&&(r.path===void 0||typeof r.path=="string")&&D.hasValidDataExplanation(r))}function A(e){return typeof e=="number"&&Number.isFinite(e)&&(!Number.isInteger(e)||Number.isSafeInteger(e))}function k(e){return e==null||typeof e=="string"||typeof e=="boolean"||A(e)}function U(e){return e===void 0||typeof e=="string"&&!!e.trim()||A(e)}function G(e,r){return Array.isArray(e)&&e.every(n=>T(n)&&Number.isSafeInteger(n.editIndex)&&n.editIndex>=0&&n.editIndex<r&&typeof n.code=="string"&&typeof n.message=="string"&&k(n.currentValue)&&U(n.revision))}function j(e,r){let n;if(!T(e)||typeof e.revision!="string"||!e.revision.trim()?n="非空 revision(请先在适配器解包业务响应)":e.sourceToken!==void 0&&typeof e.sourceToken!="string"?n="字符串 sourceToken":e.diagnostics!==void 0&&!N(e.diagnostics)?n="结构化 diagnostics":e.conflicts!==void 0&&!G(e.conflicts,r)&&(n="有效 editIndex/code/message/currentValue/revision conflicts"),n)throw new a.MachReportError("edit",`ReportProvider.save 必须返回${n};服务器可能已提交,请重新查询确认后再编辑`)}function y(e){return typeof e=="function"?e():e}function w(e,r){const n=new Set(e.flatMap(t=>t.source?.[r]===void 0?[]:[String(t.source[r])]));return n.size===1?[...n][0]:void 0}function O(e,r,n,t,o,s=!1){return typeof e=="function"?e():s?t??o?.[n]??w(r,n)??e:w(r,n)??t??e??o?.[n]}function H(e,r,n){const t=r.query,o=e.reportId===void 0;if(o&&(!t||t.reportIds.length!==1))throw new a.MachReportError("config","自动业务保存需要当前成功查询的单个报表上下文");const s=e.reportId===void 0?t.reportIds[0]:y(e.reportId);if(!s.trim())throw new a.MachReportError("config","业务保存缺少报表 ID");if(o&&new Set(n.map(u=>u.source?.sourceScope)).size>1)throw new g.ReportCellEditError("atomic");const f={...y(e.params??t?.params??{})},p=t?.sources.filter(u=>u.reportId===s)??[],c=p.length===1?p[0]:void 0;return{reportId:s,params:f,source:c,automatic:o,identity:JSON.stringify([s,f,t?.queryId??t?.sources])}}function V(e){return e.requestId??globalThis.crypto?.randomUUID?.()??`mr-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}function W(e,r={}){if(!e.save)throw new a.MachReportError("config","ReportProvider.save 未配置,无法启用业务保存");let n="",t,o,s=0;function f(c,u,R){c.conflicts?.length||u!==n||R!==s||(t=c.revision,o=c.sourceToken)}async function p(c,u){if(u.signal.aborted)throw u.signal.reason??new DOMException("Aborted","AbortError");const{reportId:R,params:C,identity:P,source:S,automatic:_}=H(r,u,c.edits),v=++s;if(P!==n&&(n=P,t=void 0,o=void 0),r.requireSource!==!1&&c.edits.some(l=>!l.source))throw new g.ReportCellEditError("missing");const d=await e.save({reportId:R,params:C,signal:u.signal,requestId:c.requestId,action:u.action,edits:i.cloneReportSnapshot(c.edits),expectedRevision:O(r.expectedRevision,c.edits,"revision",t,S,_),sourceToken:O(r.sourceToken,c.edits,"sourceToken",o,S,_)});if(u.signal.aborted)throw u.signal.reason??new DOMException("Aborted","AbortError");j(d,c.edits.length),d.diagnostics?.forEach(l=>L.observeOutput(()=>r.onDiagnostic?.(l)));const h=d.diagnostics?.filter(l=>l.severity==="error");if(h?.length)throw new a.MachReportError("edit",h.map(l=>l.message).join(";"),{diagnostics:h});const I=d.conflicts?.map(l=>({source:c.edits[l.editIndex]?.source,address:c.edits[l.editIndex]?.address,message:l.message,...l.currentValue===void 0?{}:{currentValue:l.currentValue},revision:l.revision??d.revision}));return f(d,P,v),{revision:d.revision,sourceToken:d.sourceToken,conflicts:I}}return{requireSource:r.requireSource??!0,canEdit:r.canEdit,readOnlyReason:r.readOnlyReason,history:r.history,fields:r.fields,validate:r.validate,validation:r.validation,validateBatch:r.validateBatch,saveBatch:p,save:(c,u)=>p({requestId:V(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.ReportExportMenu=i.ReportExportMenu;exports.ReportPagination=i.ReportPagination;exports.ReportPrefillPanel=i._sfc_main$1;exports.ReportPreview=i.ReportPreview;exports.ReportPrintResourceError=i.ReportPrintResourceError;exports.ReportTaskStatus=i.ReportTaskStatus;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=E.MACH_REPORT_CONFIG_KEY;exports.MACH_REPORT_CONTROLLER_KEY=E.MACH_REPORT_CONTROLLER_KEY;exports.MACH_REPORT_FETCHER_KEY=E.MACH_REPORT_FETCHER_KEY;exports.MACH_REPORT_PDF_EXPORTER_KEY=E.MACH_REPORT_PDF_EXPORTER_KEY;exports.MachReportPreview=M.MachReportPreview;exports.machReportPlugin=M.machReportPlugin;exports.createLocalFetcher=F;exports.createProviderEditing=W;exports.useMachReport=b;exports.useReportPreview=q;Object.keys(g).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>g[e]})});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("@agile-team/mach-report"),i=require("./ReportPreview-DAU-V3Ov.cjs"),a=require("./ReportParamPanel-B27IGJjk.cjs"),E=require("./injection-keys-Db_DyLkm.cjs"),A=require("./plugin-D5BRHlne.cjs"),T=require("vue"),F=require("./json-snapshot-L_gJ7KRS.cjs"),x=require("./diagnostic-collector-wASg6Fzs.cjs");function b(e){const r=p.createReportSource(e),n=async t=>{if(t.reportIds.length===0)throw new i.PlanLoadError("缺少报表 ID");for(const o of t.reportIds)if(!Object.prototype.hasOwnProperty.call(e,o)||!e[o])throw new i.PlanLoadError(`本地模板 ${o} 不存在`);return r(t)};return n.getParamDefs=r.getParamDefs,n}const q=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 k(){const e=T.shallowRef(null),r=()=>e.value?.state??q,n=Object.freeze({get loading(){return r().loading},get stale(){return r().stale??!1},get hasPlan(){return r().hasPlan},get pageCount(){return r().pageCount},get currentPage(){return r().currentPage},get exporting(){return r().exporting},get printing(){return r().printing},get canExport(){return r().canExport},get canPrint(){return r().canPrint},get error(){return r().error},get pdfFont(){return r().pdfFont},get editing(){return r().editing??!1},get saving(){return r().saving??!1},get importing(){return r().importing??!1},get dirty(){return r().dirty??!1},get pendingLocalChanges(){return r().pendingLocalChanges??!1},get task(){return r().task??null},get diagnostics(){return r().diagnostics??[]},get reportIds(){return r().reportIds??[]},get params(){return r().params??{}},get canUndo(){return r().canUndo??!1},get canRedo(){return r().canRedo??!1},get changeCount(){return r().changeCount??0},get selection(){return r().selection??null}});function t(){if(!e.value)throw new a.MachReportError("config","报表预览尚未挂载,请在 ready 后调用控制器");return e.value}return{ref(o){const s=o;e.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(()=>e.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 f=t();if(!f.importExcel)throw new a.MachReportError("config","旧自定义控制器未提供 Excel 导入");return f.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 N(){return T.inject(E.MACH_REPORT_CONTROLLER_KEY,null)}function S(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function U(e){return Array.isArray(e)&&e.every(r=>S(r)&&typeof r.code=="string"&&typeof r.message=="string"&&["info","warning","error"].includes(r.severity)&&(r.path===void 0||typeof r.path=="string")&&F.hasValidDataExplanation(r))}function v(e){return typeof e=="number"&&Number.isFinite(e)&&(!Number.isInteger(e)||Number.isSafeInteger(e))}function G(e){return e==null||typeof e=="string"||typeof e=="boolean"||v(e)}function j(e){return e===void 0||typeof e=="string"&&!!e.trim()||v(e)}function H(e,r){return Array.isArray(e)&&e.every(n=>S(n)&&Number.isSafeInteger(n.editIndex)&&n.editIndex>=0&&n.editIndex<r&&typeof n.code=="string"&&typeof n.message=="string"&&G(n.currentValue)&&j(n.revision))}function V(e,r){let n;if(!S(e)||typeof e.revision!="string"||!e.revision.trim()?n="非空 revision(请先在适配器解包业务响应)":e.sourceToken!==void 0&&typeof e.sourceToken!="string"?n="字符串 sourceToken":e.diagnostics!==void 0&&!U(e.diagnostics)?n="结构化 diagnostics":e.conflicts!==void 0&&!H(e.conflicts,r)&&(n="有效 editIndex/code/message/currentValue/revision conflicts"),n)throw new a.MachReportError("edit",`ReportProvider.save 必须返回${n};服务器可能已提交,请重新查询确认后再编辑`)}function w(e){return typeof e=="function"?e():e}function O(e,r){const n=new Set(e.flatMap(t=>t.source?.[r]===void 0?[]:[String(t.source[r])]));return n.size===1?[...n][0]:void 0}function M(e,r,n,t,o,s=!1){return typeof e=="function"?e():s?t??o?.[n]??O(r,n)??e:O(r,n)??t??e??o?.[n]}function W(e,r,n){const t=r.query,o=e.reportId===void 0;if(o&&(!t||t.reportIds.length!==1))throw new a.MachReportError("config","自动业务保存需要当前成功查询的单个报表上下文");const s=e.reportId===void 0?t.reportIds[0]:w(e.reportId);if(!s.trim())throw new a.MachReportError("config","业务保存缺少报表 ID");if(o&&new Set(n.map(c=>c.source?.sourceScope)).size>1)throw new p.ReportCellEditError("atomic");const f={...w(e.params??t?.params??{})},g=t?.sources.filter(c=>c.reportId===s)??[],R=g.length===1?g[0]:void 0;return{reportId:s,params:f,source:R,automatic:o,identity:JSON.stringify([s,f,t?.queryId,t?.sources])}}function K(e){return e.requestId??globalThis.crypto?.randomUUID?.()??`mr-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}function C(e,r={}){if(!e.save)throw new a.MachReportError("config","ReportProvider.save 未配置,无法启用业务保存");let n="",t,o,s=0;function f(c,d,P){c.conflicts?.length||d!==n||P!==s||(t=c.revision,c.sourceToken!==void 0&&(o=c.sourceToken))}async function g(c,d){if(d.signal.aborted)throw d.signal.reason??new DOMException("Aborted","AbortError");const{reportId:P,params:I,identity:h,source:_,automatic:y}=W(r,d,c.edits),D=++s;if(h!==n&&(n=h,t=void 0,o=void 0),r.requireSource!==!1&&c.edits.some(u=>!u.source))throw new p.ReportCellEditError("missing");const l=await e.save({reportId:P,params:I,signal:d.signal,requestId:c.requestId,action:d.action,edits:i.cloneReportSnapshot(c.edits),expectedRevision:M(r.expectedRevision,c.edits,"revision",t,_,y),sourceToken:M(r.sourceToken,c.edits,"sourceToken",o,_,y)});if(d.signal.aborted)throw d.signal.reason??new DOMException("Aborted","AbortError");V(l,c.edits.length),l.diagnostics?.forEach(u=>x.observeOutput(()=>r.onDiagnostic?.(u)));const m=l.diagnostics?.filter(u=>u.severity==="error");if(m?.length)throw new a.MachReportError("edit",m.map(u=>u.message).join(";"),{diagnostics:m});const L=l.conflicts?.map(u=>({source:c.edits[u.editIndex]?.source,address:c.edits[u.editIndex]?.address,message:u.message,...u.currentValue===void 0?{}:{currentValue:u.currentValue},revision:u.revision??l.revision}));return f(l,h,D),{revision:l.revision,sourceToken:l.sourceToken,conflicts:L}}const R={requireSource:r.requireSource??!0,canEdit:r.canEdit,readOnlyReason:r.readOnlyReason,history:r.history,fields:r.fields,validate:r.validate,validation:r.validation,validateBatch:r.validateBatch,saveBatch:g,save:(c,d)=>g({requestId:K(d),edits:[i.cloneReportSnapshot(c)]},d)};return i.registerProviderEditing(R,()=>C(e,r)),R}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.ReportExportMenu=i.ReportExportMenu;exports.ReportPagination=i.ReportPagination;exports.ReportPrefillPanel=i._sfc_main$1;exports.ReportPreview=i.ReportPreview;exports.ReportPrintResourceError=i.ReportPrintResourceError;exports.ReportTaskStatus=i.ReportTaskStatus;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=E.MACH_REPORT_CONFIG_KEY;exports.MACH_REPORT_CONTROLLER_KEY=E.MACH_REPORT_CONTROLLER_KEY;exports.MACH_REPORT_FETCHER_KEY=E.MACH_REPORT_FETCHER_KEY;exports.MACH_REPORT_PDF_EXPORTER_KEY=E.MACH_REPORT_PDF_EXPORTER_KEY;exports.MachReportPreview=A.MachReportPreview;exports.machReportPlugin=A.machReportPlugin;exports.createLocalFetcher=b;exports.createProviderEditing=C;exports.useMachReport=k;exports.useReportPreview=N;Object.keys(p).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>p[e]})});
|
package/dist/vue.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { createReportSource as
|
|
1
|
+
import { createReportSource as _, ReportCellEditError as I } from "@agile-team/mach-report";
|
|
2
2
|
export * from "@agile-team/mach-report";
|
|
3
|
-
import { P as
|
|
4
|
-
import { R as
|
|
3
|
+
import { P as y, r as M, c as w } from "./ReportPreview-D1ZC5kzz.js";
|
|
4
|
+
import { R as ae, a as ie, _ as ce, b as ue, d as fe, e as de, f as ge, g as le, h as pe, i as me, j as Pe, k as Ee, l as Re, m as he, n as ye, o as we, p as Se, q as ve, s as Te, t as Ie, u as Ae, v as xe, w as Ce, x as Oe } from "./ReportPreview-D1ZC5kzz.js";
|
|
5
5
|
import { M as d } from "./ReportParamPanel-DGXzBzl2.js";
|
|
6
|
-
import { D as
|
|
7
|
-
import { M as
|
|
8
|
-
import { a as
|
|
9
|
-
import { M as
|
|
10
|
-
import { shallowRef as
|
|
11
|
-
import { v as
|
|
12
|
-
import { z as
|
|
13
|
-
function
|
|
14
|
-
const r =
|
|
15
|
-
if (t.reportIds.length === 0) throw new
|
|
6
|
+
import { D as Me, a as De, b as be, c as ke, d as Fe, P as Le, R as qe, S as Ne, e as Ue, f as Ve, n as je, p as Ge, g as ze, r as He, h as We, i as Ye, s as Be, t as Ke, j as $e, u as Xe } from "./ReportParamPanel-DGXzBzl2.js";
|
|
7
|
+
import { M as D } from "./injection-keys-e85udZCp.js";
|
|
8
|
+
import { a as Ze, b as Qe, c as er } from "./injection-keys-e85udZCp.js";
|
|
9
|
+
import { M as tr, m as nr } from "./plugin-FWhTnjr0.js";
|
|
10
|
+
import { shallowRef as b, computed as k, inject as F } from "vue";
|
|
11
|
+
import { v as L } from "./json-snapshot-DdzALe8q.js";
|
|
12
|
+
import { z as q } from "./diagnostic-collector-gB07PHy2.js";
|
|
13
|
+
function ee(e) {
|
|
14
|
+
const r = _(e), o = async (t) => {
|
|
15
|
+
if (t.reportIds.length === 0) throw new y("缺少报表 ID");
|
|
16
16
|
for (const n of t.reportIds)
|
|
17
17
|
if (!Object.prototype.hasOwnProperty.call(e, n) || !e[n])
|
|
18
|
-
throw new
|
|
18
|
+
throw new y(`本地模板 ${n} 不存在`);
|
|
19
19
|
return r(t);
|
|
20
20
|
};
|
|
21
21
|
return o.getParamDefs = r.getParamDefs, o;
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const N = Object.freeze({
|
|
24
24
|
loading: !1,
|
|
25
25
|
hasPlan: !1,
|
|
26
26
|
pageCount: 0,
|
|
@@ -32,8 +32,8 @@ const L = Object.freeze({
|
|
|
32
32
|
error: null,
|
|
33
33
|
pdfFont: Object.freeze({ status: "unchecked", fontUrl: "" })
|
|
34
34
|
});
|
|
35
|
-
function
|
|
36
|
-
const e =
|
|
35
|
+
function re() {
|
|
36
|
+
const e = b(null), r = () => e.value?.state ?? N, o = Object.freeze({
|
|
37
37
|
get loading() {
|
|
38
38
|
return r().loading;
|
|
39
39
|
},
|
|
@@ -117,7 +117,7 @@ function Z() {
|
|
|
117
117
|
const s = n;
|
|
118
118
|
e.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;
|
|
119
119
|
},
|
|
120
|
-
ready:
|
|
120
|
+
ready: k(() => e.value !== null),
|
|
121
121
|
state: o,
|
|
122
122
|
async checkPdfFont() {
|
|
123
123
|
const n = t();
|
|
@@ -172,93 +172,93 @@ function Z() {
|
|
|
172
172
|
pasteSelection: async (n) => await t().pasteSelection?.(n) ?? !1
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
return
|
|
175
|
+
function te() {
|
|
176
|
+
return F(D, null);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function E(e) {
|
|
179
179
|
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
return Array.isArray(e) && e.every((r) =>
|
|
181
|
+
function U(e) {
|
|
182
|
+
return Array.isArray(e) && e.every((r) => E(r) && typeof r.code == "string" && typeof r.message == "string" && ["info", "warning", "error"].includes(r.severity) && (r.path === void 0 || typeof r.path == "string") && L(r));
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function A(e) {
|
|
185
185
|
return typeof e == "number" && Number.isFinite(e) && (!Number.isInteger(e) || Number.isSafeInteger(e));
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
return e == null || typeof e == "string" || typeof e == "boolean" ||
|
|
187
|
+
function V(e) {
|
|
188
|
+
return e == null || typeof e == "string" || typeof e == "boolean" || A(e);
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
return e === void 0 || typeof e == "string" && !!e.trim() ||
|
|
190
|
+
function j(e) {
|
|
191
|
+
return e === void 0 || typeof e == "string" && !!e.trim() || A(e);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
return Array.isArray(e) && e.every((o) =>
|
|
193
|
+
function G(e, r) {
|
|
194
|
+
return Array.isArray(e) && e.every((o) => E(o) && Number.isSafeInteger(o.editIndex) && o.editIndex >= 0 && o.editIndex < r && typeof o.code == "string" && typeof o.message == "string" && V(o.currentValue) && j(o.revision));
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function z(e, r) {
|
|
197
197
|
let o;
|
|
198
|
-
if (!
|
|
198
|
+
if (!E(e) || typeof e.revision != "string" || !e.revision.trim() ? o = "非空 revision(请先在适配器解包业务响应)" : e.sourceToken !== void 0 && typeof e.sourceToken != "string" ? o = "字符串 sourceToken" : e.diagnostics !== void 0 && !U(e.diagnostics) ? o = "结构化 diagnostics" : e.conflicts !== void 0 && !G(e.conflicts, r) && (o = "有效 editIndex/code/message/currentValue/revision conflicts"), o) throw new d("edit", `ReportProvider.save 必须返回${o};服务器可能已提交,请重新查询确认后再编辑`);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function S(e) {
|
|
201
201
|
return typeof e == "function" ? e() : e;
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function v(e, r) {
|
|
204
204
|
const o = new Set(e.flatMap((t) => t.source?.[r] === void 0 ? [] : [String(t.source[r])]));
|
|
205
205
|
return o.size === 1 ? [...o][0] : void 0;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
return typeof e == "function" ? e() : s ? t ?? n?.[o] ??
|
|
207
|
+
function T(e, r, o, t, n, s = !1) {
|
|
208
|
+
return typeof e == "function" ? e() : s ? t ?? n?.[o] ?? v(r, o) ?? e : v(r, o) ?? t ?? e ?? n?.[o];
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function H(e, r, o) {
|
|
211
211
|
const t = r.query, n = e.reportId === void 0;
|
|
212
212
|
if (n && (!t || t.reportIds.length !== 1)) throw new d("config", "自动业务保存需要当前成功查询的单个报表上下文");
|
|
213
|
-
const s = e.reportId === void 0 ? t.reportIds[0] :
|
|
213
|
+
const s = e.reportId === void 0 ? t.reportIds[0] : S(e.reportId);
|
|
214
214
|
if (!s.trim()) throw new d("config", "业务保存缺少报表 ID");
|
|
215
|
-
if (n && new Set(o.map((
|
|
216
|
-
const f = { ...
|
|
215
|
+
if (n && new Set(o.map((a) => a.source?.sourceScope)).size > 1) throw new I("atomic");
|
|
216
|
+
const f = { ...S(e.params ?? t?.params ?? {}) }, g = t?.sources.filter((a) => a.reportId === s) ?? [], l = g.length === 1 ? g[0] : void 0;
|
|
217
217
|
return {
|
|
218
218
|
reportId: s,
|
|
219
219
|
params: f,
|
|
220
|
-
source:
|
|
220
|
+
source: l,
|
|
221
221
|
automatic: n,
|
|
222
|
-
identity: JSON.stringify([s, f, t?.queryId
|
|
222
|
+
identity: JSON.stringify([s, f, t?.queryId, t?.sources])
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function W(e) {
|
|
226
226
|
return e.requestId ?? globalThis.crypto?.randomUUID?.() ?? `mr-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function Y(e, r = {}) {
|
|
229
229
|
if (!e.save) throw new d("config", "ReportProvider.save 未配置,无法启用业务保存");
|
|
230
230
|
let o = "", t, n, s = 0;
|
|
231
|
-
function f(a,
|
|
232
|
-
a.conflicts?.length ||
|
|
231
|
+
function f(a, c, p) {
|
|
232
|
+
a.conflicts?.length || c !== o || p !== s || (t = a.revision, a.sourceToken !== void 0 && (n = a.sourceToken));
|
|
233
233
|
}
|
|
234
|
-
async function
|
|
235
|
-
if (
|
|
236
|
-
const { reportId:
|
|
237
|
-
if (
|
|
234
|
+
async function g(a, c) {
|
|
235
|
+
if (c.signal.aborted) throw c.signal.reason ?? new DOMException("Aborted", "AbortError");
|
|
236
|
+
const { reportId: p, params: x, identity: m, source: R, automatic: h } = H(r, c, a.edits), C = ++s;
|
|
237
|
+
if (m !== o && (o = m, t = void 0, n = void 0), r.requireSource !== !1 && a.edits.some((i) => !i.source)) throw new I("missing");
|
|
238
238
|
const u = await e.save({
|
|
239
|
-
reportId:
|
|
240
|
-
params:
|
|
241
|
-
signal:
|
|
239
|
+
reportId: p,
|
|
240
|
+
params: x,
|
|
241
|
+
signal: c.signal,
|
|
242
242
|
requestId: a.requestId,
|
|
243
|
-
action:
|
|
244
|
-
edits:
|
|
245
|
-
expectedRevision:
|
|
246
|
-
sourceToken:
|
|
243
|
+
action: c.action,
|
|
244
|
+
edits: w(a.edits),
|
|
245
|
+
expectedRevision: T(r.expectedRevision, a.edits, "revision", t, R, h),
|
|
246
|
+
sourceToken: T(r.sourceToken, a.edits, "sourceToken", n, R, h)
|
|
247
247
|
});
|
|
248
|
-
if (
|
|
249
|
-
|
|
250
|
-
const
|
|
251
|
-
if (
|
|
252
|
-
const
|
|
253
|
-
source: a.edits[
|
|
254
|
-
address: a.edits[
|
|
255
|
-
message:
|
|
256
|
-
...
|
|
257
|
-
revision:
|
|
248
|
+
if (c.signal.aborted) throw c.signal.reason ?? new DOMException("Aborted", "AbortError");
|
|
249
|
+
z(u, a.edits.length), u.diagnostics?.forEach((i) => q(() => r.onDiagnostic?.(i)));
|
|
250
|
+
const P = u.diagnostics?.filter((i) => i.severity === "error");
|
|
251
|
+
if (P?.length) throw new d("edit", P.map((i) => i.message).join(";"), { diagnostics: P });
|
|
252
|
+
const O = u.conflicts?.map((i) => ({
|
|
253
|
+
source: a.edits[i.editIndex]?.source,
|
|
254
|
+
address: a.edits[i.editIndex]?.address,
|
|
255
|
+
message: i.message,
|
|
256
|
+
...i.currentValue === void 0 ? {} : { currentValue: i.currentValue },
|
|
257
|
+
revision: i.revision ?? u.revision
|
|
258
258
|
}));
|
|
259
|
-
return f(u,
|
|
259
|
+
return f(u, m, C), { revision: u.revision, sourceToken: u.sourceToken, conflicts: O };
|
|
260
260
|
}
|
|
261
|
-
|
|
261
|
+
const l = {
|
|
262
262
|
requireSource: r.requireSource ?? !0,
|
|
263
263
|
canEdit: r.canEdit,
|
|
264
264
|
readOnlyReason: r.readOnlyReason,
|
|
@@ -267,65 +267,66 @@ function ee(e, r = {}) {
|
|
|
267
267
|
validate: r.validate,
|
|
268
268
|
validation: r.validation,
|
|
269
269
|
validateBatch: r.validateBatch,
|
|
270
|
-
saveBatch:
|
|
271
|
-
save: (a,
|
|
270
|
+
saveBatch: g,
|
|
271
|
+
save: (a, c) => g({ requestId: W(c), edits: [w(a)] }, c)
|
|
272
272
|
};
|
|
273
|
+
return M(l, () => Y(e, r)), l;
|
|
273
274
|
}
|
|
274
275
|
export {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
276
|
+
Me as DEFAULT_CALCULATION_MESSAGES,
|
|
277
|
+
De as DEFAULT_DATA_REVIEW_MESSAGES,
|
|
278
|
+
be as DEFAULT_MESSAGES,
|
|
279
|
+
ke as DEFAULT_PRINT_MESSAGES,
|
|
280
|
+
Fe as DEFAULT_THEME,
|
|
281
|
+
Ze as MACH_REPORT_CONFIG_KEY,
|
|
282
|
+
D as MACH_REPORT_CONTROLLER_KEY,
|
|
283
|
+
Qe as MACH_REPORT_FETCHER_KEY,
|
|
284
|
+
er as MACH_REPORT_PDF_EXPORTER_KEY,
|
|
284
285
|
d as MachReportError,
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
286
|
+
tr as MachReportPreview,
|
|
287
|
+
Le as PARAM_OPTIONS_MESSAGES,
|
|
288
|
+
y as PlanLoadError,
|
|
289
|
+
ae as REPORT_EXPORT_FORMATS,
|
|
290
|
+
ie as REPORT_PREVIEW_TOOLS,
|
|
291
|
+
ce as ReportDataComparisonPanel,
|
|
292
|
+
ue as ReportExportMenu,
|
|
293
|
+
fe as ReportPagination,
|
|
294
|
+
qe as ReportParamPanel,
|
|
295
|
+
de as ReportPrefillPanel,
|
|
296
|
+
ge as ReportPreview,
|
|
297
|
+
le as ReportPrintResourceError,
|
|
298
|
+
pe as ReportTaskStatus,
|
|
299
|
+
me as ReportToolbar,
|
|
300
|
+
Pe as ReportValidationPanel,
|
|
301
|
+
Ne as SILENT_LOGGER,
|
|
302
|
+
Ee as buildPrintDocument,
|
|
303
|
+
Re as buildWordHtml,
|
|
304
|
+
he as createDefaultPdfExporter,
|
|
305
|
+
ye as createFetchRequest,
|
|
306
|
+
ee as createLocalFetcher,
|
|
307
|
+
we as createPrintCalibrationPlan,
|
|
308
|
+
Y as createProviderEditing,
|
|
309
|
+
Se as createReportStoragePreferences,
|
|
310
|
+
Ue as defineMachReportConfig,
|
|
311
|
+
Ve as defineMachReportPreset,
|
|
312
|
+
ve as joinReportIds,
|
|
313
|
+
nr as machReportPlugin,
|
|
314
|
+
Te as normalizeReportIds,
|
|
315
|
+
je as normalizeReportLoadError,
|
|
316
|
+
Ie as preparePrintResources,
|
|
317
|
+
Ge as printCalibration,
|
|
318
|
+
Ae as printPlans,
|
|
319
|
+
ze as provideMachReportConfig,
|
|
320
|
+
He as resolveCalculationMessages,
|
|
321
|
+
We as resolveConfig,
|
|
322
|
+
Ye as resolveDataReviewMessages,
|
|
323
|
+
Be as snapshotPrintOptions,
|
|
324
|
+
Ke as themeToCssVars,
|
|
325
|
+
$e as toErrorDetail,
|
|
326
|
+
re as useMachReport,
|
|
327
|
+
Xe as useMachReportConfig,
|
|
328
|
+
xe as usePageWindow,
|
|
329
|
+
Ce as usePrintExport,
|
|
330
|
+
te as useReportPreview,
|
|
331
|
+
Oe as useZoom
|
|
331
332
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as ve, w as Ke, o as He, O as gr, I as yr, R as vr, F as er } from "./diagnostic-collector-gB07PHy2.js";
|
|
2
2
|
import { c as Kt, g as wr } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
3
|
-
import { o as Ze, s as cr, r as _r, t as Ge, u as xr, w as Sr, x as kr, y as Cr, q as Er } from "./region-binding-workflow-
|
|
3
|
+
import { o as Ze, s as cr, r as _r, t as Ge, u as xr, w as Sr, x as kr, y as Cr, q as Er } from "./region-binding-workflow-EYxvUYJ-.js";
|
|
4
4
|
import { c as Mr } from "./media-Y90dHK9z.js";
|
|
5
5
|
import { f as Tr } from "./number-format-BA_KwrZe.js";
|
|
6
6
|
function $e(G) {
|