@evotecit/officeimo 0.1.5 → 0.1.19
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 +15 -3
- package/bundles/officeimo-canopyx-adapter.js +1444 -0
- package/bundles/officeimo-canopyx-adapter.min.js +2 -0
- package/bundles/officeimo-canopyx-adapter.min.mjs +2 -0
- package/bundles/officeimo-canopyx-adapter.mjs +1426 -0
- package/bundles/officeimo-canopyx.js +15 -14
- package/bundles/officeimo-canopyx.min.js +2 -0
- package/bundles/officeimo-canopyx.min.mjs +2 -0
- package/bundles/officeimo-canopyx.mjs +7 -6
- package/bundles/officeimo-csv.min.js +2 -0
- package/bundles/officeimo-csv.min.mjs +2 -0
- package/bundles/officeimo-datatables-adapter.js +626 -0
- package/bundles/officeimo-datatables-adapter.min.js +2 -0
- package/bundles/officeimo-datatables-adapter.min.mjs +2 -0
- package/bundles/officeimo-datatables-adapter.mjs +617 -0
- package/bundles/officeimo-datatables.js +55 -10
- package/bundles/officeimo-datatables.min.js +2 -0
- package/bundles/officeimo-datatables.min.mjs +2 -0
- package/bundles/officeimo-datatables.mjs +51 -6
- package/bundles/officeimo-execution.min.js +2 -0
- package/bundles/officeimo-execution.min.mjs +2 -0
- package/bundles/officeimo-pdf.min.js +2 -0
- package/bundles/officeimo-pdf.min.mjs +2 -0
- package/bundles/officeimo-xlsx.min.js +2 -0
- package/bundles/officeimo-xlsx.min.mjs +2 -0
- package/bundles/officeimo.min.js +2 -0
- package/bundles/officeimo.min.mjs +2 -0
- package/bundles/officeimo.mjs +2 -1
- package/dist/integrations/canopyx/metadata.js +1 -1
- package/dist/integrations/canopyx/pdf-number.js +6 -5
- package/dist/integrations/canopyx/types.d.ts +2 -1
- package/dist/integrations/datatables/snapshot.js +51 -6
- package/package.json +6 -2
|
@@ -12548,7 +12548,7 @@ _modules.set("97b7bd3037e8060328387470a7e471b6933f1fa062e9562c7908f8ea9a29044b",
|
|
|
12548
12548
|
return _exports;
|
|
12549
12549
|
})();
|
|
12550
12550
|
|
|
12551
|
-
const _m103 = _modules.get("
|
|
12551
|
+
const _m103 = _modules.get("99b23f94e240ecbeee81dbc96909e40786623c7df225f74ae7bd4d719b15d1e8") ?? (() => {
|
|
12552
12552
|
const { cellText } = _m35;
|
|
12553
12553
|
|
|
12554
12554
|
const { cleanXml } = _m28;
|
|
@@ -12557,7 +12557,7 @@ const { cleanXml } = _m28;
|
|
|
12557
12557
|
function canopyAbout(request, options) {
|
|
12558
12558
|
const result = [["revision", request.revision], ["recordCount", request.recordCount === null ? "unknown" : request.recordCount]];
|
|
12559
12559
|
if (request.scope !== undefined) {
|
|
12560
|
-
if (!["filtered", "selected", "all"].includes(request.scope))
|
|
12560
|
+
if (!["filtered", "visible", "selected", "all"].includes(request.scope))
|
|
12561
12561
|
throw new TypeError("Invalid Canopy export scope.");
|
|
12562
12562
|
result.push(["scope", request.scope]);
|
|
12563
12563
|
}
|
|
@@ -12603,7 +12603,7 @@ function canopyAbout(request, options) {
|
|
|
12603
12603
|
return Object.freeze(result.map(row => Object.freeze(row)));
|
|
12604
12604
|
}
|
|
12605
12605
|
const _exports = Object.freeze({ canopyAbout: canopyAbout });
|
|
12606
|
-
_modules.set("
|
|
12606
|
+
_modules.set("99b23f94e240ecbeee81dbc96909e40786623c7df225f74ae7bd4d719b15d1e8", _exports);
|
|
12607
12607
|
return _exports;
|
|
12608
12608
|
})();
|
|
12609
12609
|
|
|
@@ -12668,7 +12668,7 @@ _modules.set("ccfefc97a47cc288f2c9a2eed33fff323570e35193cedbd876ebb3e8fb78a42e",
|
|
|
12668
12668
|
return _exports;
|
|
12669
12669
|
})();
|
|
12670
12670
|
|
|
12671
|
-
const _m106 = _modules.get("
|
|
12671
|
+
const _m106 = _modules.get("a0c020124a53cd7be15e3d53388b8393c981c3abc0f8d4aee76a442a2458457f") ?? (() => {
|
|
12672
12672
|
const { ExportCell } = _m1;
|
|
12673
12673
|
|
|
12674
12674
|
/** Fixed numeric formats affect PDF text, not the frozen numeric value used by other writers. */
|
|
@@ -12684,25 +12684,26 @@ function numericProfile(format) {
|
|
|
12684
12684
|
return { minimumFractionDigits: (match[3]?.match(/0/g) ?? []).length, maximumFractionDigits: match[3]?.length ?? 0,
|
|
12685
12685
|
percent: !!match[4], grouping: !!match[2], prefix: literal(match[1]), suffix: literal(match[5]) };
|
|
12686
12686
|
}
|
|
12687
|
-
/** Separate declared literal units before recognizing the captured numeric token.
|
|
12687
|
+
/** Separate declared literal units before recognizing the captured numeric token. U+2212 MINUS SIGN counts as a
|
|
12688
|
+
* sign like "-": the number is re-rendered with Intl's sign, so it never becomes a literal prefix. */
|
|
12688
12689
|
function capturedNumber(text, profile) {
|
|
12689
12690
|
let body = text, signBeforePrefix = false;
|
|
12690
12691
|
if (profile.prefix && body.startsWith(profile.prefix))
|
|
12691
12692
|
body = body.slice(profile.prefix.length);
|
|
12692
|
-
else if (profile.prefix && /^[
|
|
12693
|
+
else if (profile.prefix && /^[+\-\u2212]/.test(body) && body.slice(1).startsWith(profile.prefix)) {
|
|
12693
12694
|
signBeforePrefix = true;
|
|
12694
12695
|
body = body[0] + body.slice(1 + profile.prefix.length);
|
|
12695
12696
|
}
|
|
12696
12697
|
if (profile.suffix && body.endsWith(profile.suffix))
|
|
12697
12698
|
body = body.slice(0, -profile.suffix.length);
|
|
12698
|
-
const match = /^([^0-9
|
|
12699
|
+
const match = /^([^0-9+\-\u2212]*)([+\-\u2212]?\d[\d., \u00a0\u202f]*?)([^0-9]*)$/.exec(body);
|
|
12699
12700
|
return match ? { prefix: profile.prefix || match[1], number: match[2], suffix: profile.suffix || match[3], signBeforePrefix } : undefined;
|
|
12700
12701
|
}
|
|
12701
12702
|
/** Distinguish a captured thousands mark from a decimal, using the raw value. */
|
|
12702
12703
|
function groupedInteger(numeric, value) {
|
|
12703
|
-
if (!/^[
|
|
12704
|
+
if (!/^[+\-\u2212]?\d{1,3}(?:,\d{3})+$/.test(numeric) && !/^[+\-\u2212]?\d{1,3}(?:\.\d{3})+$/.test(numeric))
|
|
12704
12705
|
return false;
|
|
12705
|
-
const grouped = Number(numeric.replace(/[.,]/g, ""));
|
|
12706
|
+
const grouped = Number(numeric.replace(/[.,]/g, "").replace("\u2212", "-"));
|
|
12706
12707
|
return grouped !== 0 && Math.abs(grouped - value) <= .5;
|
|
12707
12708
|
}
|
|
12708
12709
|
/** Choose once for the document; percent text is the strongest captured culture signal. */
|
|
@@ -12788,11 +12789,11 @@ function canopyPdfNumbers(sample, columns) {
|
|
|
12788
12789
|
});
|
|
12789
12790
|
}
|
|
12790
12791
|
const _exports = Object.freeze({ canopyPdfNumbers: canopyPdfNumbers });
|
|
12791
|
-
_modules.set("
|
|
12792
|
+
_modules.set("a0c020124a53cd7be15e3d53388b8393c981c3abc0f8d4aee76a442a2458457f", _exports);
|
|
12792
12793
|
return _exports;
|
|
12793
12794
|
})();
|
|
12794
12795
|
|
|
12795
|
-
const _m105 = _modules.get("
|
|
12796
|
+
const _m105 = _modules.get("dab3e04542b3619c5c937162b41068f7cb1c3021b4620987c0fb95d4bd98d8e2") ?? (() => {
|
|
12796
12797
|
const { ExportCell, NotSupportedError, OfficeIMOError } = _m1;
|
|
12797
12798
|
|
|
12798
12799
|
const { inputRows, checkAbort, pause, taskYieldDue } = _m4;
|
|
@@ -12897,11 +12898,11 @@ async function withCanopyPdfLayout(source, captured, options, write) {
|
|
|
12897
12898
|
}
|
|
12898
12899
|
}
|
|
12899
12900
|
const _exports = Object.freeze({ withCanopyPdfLayout: withCanopyPdfLayout });
|
|
12900
|
-
_modules.set("
|
|
12901
|
+
_modules.set("dab3e04542b3619c5c937162b41068f7cb1c3021b4620987c0fb95d4bd98d8e2", _exports);
|
|
12901
12902
|
return _exports;
|
|
12902
12903
|
})();
|
|
12903
12904
|
|
|
12904
|
-
const _m0 = _modules.get("
|
|
12905
|
+
const _m0 = _modules.get("5e3ca0adb71a24d6f5c464db0e63a6bbd2f62d6cba70e4be37afc4518de7d0e3") ?? (() => {
|
|
12905
12906
|
const { BlobByteSink, ExportCell } = _m1;
|
|
12906
12907
|
|
|
12907
12908
|
const { notifyProgress } = _m14;
|
|
@@ -13040,7 +13041,7 @@ async function exportCanopy(capture, format, options = {}) {
|
|
|
13040
13041
|
}
|
|
13041
13042
|
}
|
|
13042
13043
|
const _exports = Object.freeze({ createCanopyExport: _m96.createCanopyExport, ExportCell: _m5.ExportCell, PdfFont: _m64.PdfFont, writeCanopyTo: writeCanopyTo, exportCanopy: exportCanopy });
|
|
13043
|
-
_modules.set("
|
|
13044
|
+
_modules.set("5e3ca0adb71a24d6f5c464db0e63a6bbd2f62d6cba70e4be37afc4518de7d0e3", _exports);
|
|
13044
13045
|
return _exports;
|
|
13045
13046
|
})();
|
|
13046
13047
|
Object.assign(officeimo, _m0);
|