@svgrid/enterprise 3.1.26 → 3.1.28

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 (33) hide show
  1. package/dist/cdn/svgrid-enterprise.svelte-external.js +20195 -19732
  2. package/dist/designer/assets/{GridFooter-DKMfZpL4.js → GridFooter-EyLg77jG.js} +1 -1
  3. package/dist/designer/assets/{GridMenus-C8WqB-To.js → GridMenus-BAgfpDd-.js} +2 -2
  4. package/dist/designer/assets/SvGrid.helpers-DHkH3mHW.js +1 -0
  5. package/dist/designer/assets/{SvGridCellEditor-CC9UMdVq.js → SvGridCellEditor-BHxH4b5h.js} +1 -1
  6. package/dist/designer/assets/column-types-Bl5R-97G.js +1 -0
  7. package/dist/designer/assets/{index-PEFkd-5C.js → index-DPk7cZrl.js} +317 -317
  8. package/dist/designer/assets/src-sFRH_up7.js +60 -0
  9. package/dist/designer/index.html +8 -7
  10. package/dist/export-conditional.d.ts +2 -0
  11. package/dist/export-conditional.js +2 -0
  12. package/dist/export-pdf.d.ts +142 -7
  13. package/dist/export-pdf.js +368 -44
  14. package/dist/export.d.ts +22 -4
  15. package/dist/export.js +150 -53
  16. package/dist/import.js +4 -3
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/node/studio.js +2 -2
  20. package/dist/pdf-worker.d.ts +92 -0
  21. package/dist/pdf-worker.js +147 -0
  22. package/dist/sheet/ods-document.js +3 -1
  23. package/dist/sheet/open-file.js +4 -2
  24. package/dist/sheet/xlsx-document.d.ts +2 -2
  25. package/dist/sheet/xlsx-document.js +4 -3
  26. package/dist/version.d.ts +2 -2
  27. package/dist/version.js +2 -2
  28. package/dist/wc/sv-sheet-element.js +4768 -4712
  29. package/dist/xlsx-limits.d.ts +34 -0
  30. package/dist/xlsx-limits.js +68 -0
  31. package/package.json +7 -3
  32. package/dist/designer/assets/SvGrid.helpers-BF2QRcNt.js +0 -1
  33. 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.async('base64').then((base64) => { parts[clean] = `data:${mediaTypeOf(clean)};base64,${base64}`; }));
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.async('string').then((text) => { parts[clean] = text; }));
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.26";
13
+ export declare const SVGRID_VERSION = "3.1.28";
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.
@@ -23,4 +23,4 @@ export declare const SVGRID_VERSION = "3.1.26";
23
23
  *
24
24
  * `version.test.ts` asserts this matches packages/grid/package.json.
25
25
  */
26
- export declare const GRID_VERSION = "3.0.23";
26
+ export declare const GRID_VERSION = "3.0.25";
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.26';
13
+ export const SVGRID_VERSION = '3.1.28';
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.
@@ -23,4 +23,4 @@ export const SVGRID_VERSION = '3.1.26';
23
23
  *
24
24
  * `version.test.ts` asserts this matches packages/grid/package.json.
25
25
  */
26
- export const GRID_VERSION = '3.0.23';
26
+ export const GRID_VERSION = '3.0.25';