@svgrid/enterprise 3.1.26 → 3.1.27
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/dist/cdn/svgrid-enterprise.svelte-external.js +20195 -19732
- package/dist/designer/assets/{GridFooter-DKMfZpL4.js → GridFooter-EyLg77jG.js} +1 -1
- package/dist/designer/assets/{GridMenus-C8WqB-To.js → GridMenus-BAgfpDd-.js} +2 -2
- package/dist/designer/assets/SvGrid.helpers-DHkH3mHW.js +1 -0
- package/dist/designer/assets/{SvGridCellEditor-CC9UMdVq.js → SvGridCellEditor-BHxH4b5h.js} +1 -1
- package/dist/designer/assets/column-types-Bl5R-97G.js +1 -0
- package/dist/designer/assets/{index-PEFkd-5C.js → index-Cim1_diz.js} +324 -324
- package/dist/designer/assets/src-sFRH_up7.js +60 -0
- package/dist/designer/index.html +8 -7
- package/dist/export-conditional.d.ts +2 -0
- package/dist/export-conditional.js +2 -0
- package/dist/export-pdf.d.ts +142 -7
- package/dist/export-pdf.js +368 -44
- package/dist/export.d.ts +22 -4
- package/dist/export.js +150 -53
- package/dist/import.js +4 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/node/studio.js +1 -1
- package/dist/pdf-worker.d.ts +92 -0
- package/dist/pdf-worker.js +147 -0
- package/dist/sheet/ods-document.js +3 -1
- package/dist/sheet/open-file.js +4 -2
- package/dist/sheet/xlsx-document.d.ts +2 -2
- package/dist/sheet/xlsx-document.js +4 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wc/sv-sheet-element.js +1476 -1439
- package/dist/xlsx-limits.d.ts +34 -0
- package/dist/xlsx-limits.js +68 -0
- package/package.json +5 -1
- package/dist/designer/assets/SvGrid.helpers-BF2QRcNt.js +0 -1
- package/dist/designer/assets/src-DC5nN4Q7.js +0 -58
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
* unzip them with jszip, an optional peer loaded on demand.
|
|
24
24
|
*/
|
|
25
25
|
import type { SheetDocument, SheetState } from './document.js';
|
|
26
|
+
import { type ZipEntryLike } from '../xlsx-limits.js';
|
|
26
27
|
export declare const isoToSerial: (iso: string) => number | null;
|
|
27
28
|
export declare const serialToIso: (serial: number) => string;
|
|
28
29
|
/** Excel's built-in number formats, the ones a file names by id alone. */
|
|
@@ -94,9 +95,8 @@ export type ZipCtor = {
|
|
|
94
95
|
file(path: string): {
|
|
95
96
|
async(type: 'string' | 'base64'): Promise<string>;
|
|
96
97
|
} | null;
|
|
97
|
-
forEach(fn: (path: string, entry: {
|
|
98
|
+
forEach(fn: (path: string, entry: ZipEntryLike & {
|
|
98
99
|
dir: boolean;
|
|
99
|
-
async(type: 'string' | 'base64'): Promise<string>;
|
|
100
100
|
}) => void): void;
|
|
101
101
|
}>;
|
|
102
102
|
};
|
|
@@ -13,7 +13,7 @@ import { drawingPartsFor, objectsFromDrawing, rectOfRef, REL_DRAWING } from './x
|
|
|
13
13
|
import { objectId } from './objects.js';
|
|
14
14
|
import { sparklineLines, sparklineId } from './sparklines.js';
|
|
15
15
|
import { autoFilterXlsx, filteredRows, filtersFromXlsx } from './filter-files.js';
|
|
16
|
-
import { XLSX_MAX_COLS, XLSX_MAX_FILL, XLSX_MAX_ROWS, xlsxFillError } from '../xlsx-limits.js';
|
|
16
|
+
import { createUnzipBudget, readZipEntry, XLSX_MAX_COLS, XLSX_MAX_FILL, XLSX_MAX_ROWS, xlsxFillError } from '../xlsx-limits.js';
|
|
17
17
|
// ---------------------------------------------------------------------------
|
|
18
18
|
// Shared pieces
|
|
19
19
|
// ---------------------------------------------------------------------------
|
|
@@ -1843,6 +1843,7 @@ export async function documentToXlsx(doc, JSZip) {
|
|
|
1843
1843
|
export async function documentFromXlsx(file, JSZip) {
|
|
1844
1844
|
const Zip = await loadZip(JSZip);
|
|
1845
1845
|
const zip = await Zip.loadAsync(file);
|
|
1846
|
+
const budget = createUnzipBudget();
|
|
1846
1847
|
const parts = {};
|
|
1847
1848
|
const pending = [];
|
|
1848
1849
|
zip.forEach((path, entry) => {
|
|
@@ -1852,12 +1853,12 @@ export async function documentFromXlsx(file, JSZip) {
|
|
|
1852
1853
|
// A picture comes back as the data URL an image object holds, so the
|
|
1853
1854
|
// rest of the reader never has to think about bytes.
|
|
1854
1855
|
if (clean.startsWith(MEDIA_PREFIX)) {
|
|
1855
|
-
pending.push(entry
|
|
1856
|
+
pending.push(readZipEntry(entry, 'base64', budget).then((base64) => { parts[clean] = `data:${mediaTypeOf(clean)};base64,${base64}`; }));
|
|
1856
1857
|
return;
|
|
1857
1858
|
}
|
|
1858
1859
|
if (!/\.(xml|rels|vml)$/i.test(path))
|
|
1859
1860
|
return;
|
|
1860
|
-
pending.push(entry
|
|
1861
|
+
pending.push(readZipEntry(entry, 'string', budget).then((text) => { parts[clean] = text; }));
|
|
1861
1862
|
});
|
|
1862
1863
|
await Promise.all(pending);
|
|
1863
1864
|
return documentFromXlsxParts(parts);
|
package/dist/version.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* `version.test.ts` asserts this matches `package.json`, so the two cannot drift.
|
|
12
12
|
*/
|
|
13
|
-
export declare const SVGRID_VERSION = "3.1.
|
|
13
|
+
export declare const SVGRID_VERSION = "3.1.27";
|
|
14
14
|
/**
|
|
15
15
|
* The version of `@svgrid/grid`, which releases on its own line: enterprise is
|
|
16
16
|
* on 3.1.x while the grid is on 3.0.x.
|
package/dist/version.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* `version.test.ts` asserts this matches `package.json`, so the two cannot drift.
|
|
12
12
|
*/
|
|
13
|
-
export const SVGRID_VERSION = '3.1.
|
|
13
|
+
export const SVGRID_VERSION = '3.1.27';
|
|
14
14
|
/**
|
|
15
15
|
* The version of `@svgrid/grid`, which releases on its own line: enterprise is
|
|
16
16
|
* on 3.1.x while the grid is on 3.0.x.
|