@openworkbook/react 0.1.1 → 0.2.1

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/index.js CHANGED
@@ -1999,6 +1999,7 @@ var STRINGS_UI2 = {
1999
1999
  "sheetRename.badChar": "the name contains one of \\ / ? * [ ] :",
2000
2000
  "sheetRename.apostrophe": "the name starts or ends with an apostrophe",
2001
2001
  "sheetRename.duplicate": "the name is already used by another sheet",
2002
+ "sheetRename.reserved": "History is a name Excel reserves",
2002
2003
  // built-in number formats of the format lists (core's builtinFormats labels)
2003
2004
  "numFormat.general": "General",
2004
2005
  "numFormat.number": "Number",
@@ -3013,6 +3014,7 @@ var STRINGS_CORE = {
3013
3014
  "err.sheet.name.tooLong": "Invalid sheet name {name}: the name is longer than 31 characters",
3014
3015
  "err.sheet.name.chars": "Invalid sheet name {name}: the name contains one of \\ / ? * [ ] :",
3015
3016
  "err.sheet.name.apostrophe": "Invalid sheet name {name}: the name starts or ends with an apostrophe",
3017
+ "err.sheet.name.reserved": "Invalid sheet name {name}: History is a name Excel reserves",
3016
3018
  "err.sheet.name.taken": "Invalid sheet name {name}: the name is already used by another sheet",
3017
3019
  "err.sheet.noIndex": "There is no sheet at index {index}.",
3018
3020
  "err.sheet.notFound": 'No sheet "{name}" in this workbook.',
@@ -3463,8 +3465,18 @@ var STRINGS_I18N = {
3463
3465
  "options.languageDefault": "Default ({0})"
3464
3466
  };
3465
3467
 
3468
+ // src/i18n/strings-security.ts
3469
+ var STRINGS_SECURITY = {
3470
+ "security.pictures.title": "External pictures blocked",
3471
+ "security.pictures.message": "This workbook shows pictures from other web sites. They have not been loaded: loading them sends a request, which can include data from the workbook, to {hosts}.",
3472
+ "security.pictures.thisSite": "this site",
3473
+ "security.pictures.more": "{host} and {n, plural, one {# other site} other {# other sites}}",
3474
+ "security.pictures.enable": "Enable content",
3475
+ "security.pictures.dismiss": "Close the message"
3476
+ };
3477
+
3466
3478
  // src/i18n/extraLabels.ts
3467
- var EXTRA_LABELS = { ...STRINGS_UI, ...STRINGS_UI2, ...STRINGS_CORE, ...STRINGS_A11Y, ...STRINGS_A11Y2, ...STRINGS_A11Y_GRID, ...STRINGS_I18N };
3479
+ var EXTRA_LABELS = { ...STRINGS_UI, ...STRINGS_UI2, ...STRINGS_CORE, ...STRINGS_A11Y, ...STRINGS_A11Y2, ...STRINGS_A11Y_GRID, ...STRINGS_I18N, ...STRINGS_SECURITY };
3468
3480
 
3469
3481
  // src/labels.ts
3470
3482
  var CHART_LABELS = {
@@ -3482,18 +3494,18 @@ var CHART_LABELS = {
3482
3494
  areaStacked100: "100% Stacked Area",
3483
3495
  pie: "Pie",
3484
3496
  doughnut: "Doughnut",
3485
- scatter: "Scatter",
3486
- scatterLines: "Scatter with Straight Lines",
3497
+ scatter: "Scatter with only Markers",
3498
+ scatterLines: "Scatter with Straight Lines and Markers",
3487
3499
  bubble: "Bubble",
3488
3500
  radar: "Radar",
3489
3501
  radarFilled: "Filled Radar",
3490
- combo: "Combo",
3502
+ combo: "Column Clustered - Line",
3491
3503
  stock: "Stock (High-Low-Close)",
3492
3504
  funnel: "Funnel",
3493
3505
  waterfall: "Waterfall",
3494
3506
  histogram: "Histogram",
3495
3507
  pareto: "Pareto",
3496
- boxWhisker: "Box & Whisker",
3508
+ boxWhisker: "Box and Whisker",
3497
3509
  treemap: "Treemap",
3498
3510
  sunburst: "Sunburst",
3499
3511
  gauge: "Gauge",
@@ -3520,7 +3532,17 @@ var CHART_LABELS = {
3520
3532
  surfaceContour: "Contour",
3521
3533
  surfaceContourWireframe: "Wireframe Contour"
3522
3534
  };
3523
- var CHART_COMMANDS = /* @__PURE__ */ Object.fromEntries(Object.keys(CHART_LABELS).map((t) => [`insert.chart.${t}`, CHART_LABELS[t]]));
3535
+ var CHART_PRESET_LABELS = {
3536
+ lineStackedMarkers: "Stacked Line with Markers",
3537
+ lineStacked100Markers: "100% Stacked Line with Markers",
3538
+ scatterSmoothMarkers: "Scatter with Smooth Lines and Markers",
3539
+ scatterSmooth: "Scatter with Smooth Lines",
3540
+ scatterStraight: "Scatter with Straight Lines",
3541
+ comboColumnLineSecondary: "Column Clustered - Line on Secondary Axis",
3542
+ comboAreaColumn: "Stacked Area - Column Clustered",
3543
+ radarMarkers: "Radar with Markers"
3544
+ };
3545
+ var CHART_COMMANDS = /* @__PURE__ */ Object.fromEntries(Object.entries({ ...CHART_LABELS, ...CHART_PRESET_LABELS }).map(([t, label]) => [`insert.chart.${t}`, label]));
3524
3546
  var COMMANDS = {
3525
3547
  // ---- File
3526
3548
  "file.new": "New",
@@ -4353,7 +4375,14 @@ var COMMANDS = {
4353
4375
  "home.cf.dataBarSolid": "Solid Fill Data Bar",
4354
4376
  "home.cf.dataBarRule": "Data Bar Rule\u2026",
4355
4377
  "home.cf.colorScaleRule": "Color Scale Rule\u2026",
4356
- "home.cf.averageRule": "Above or Below Average Rule\u2026"
4378
+ "home.cf.averageRule": "Above or Below Average Rule\u2026",
4379
+ // ---- [classic ribbon] the ribbon display options (the chevron at the right end of the ribbon)
4380
+ "ribbon.options": "Ribbon Display Options",
4381
+ "ribbon.layout.classic": "Classic Ribbon",
4382
+ "ribbon.layout.singleLine": "Single Line Ribbon",
4383
+ "ribbon.show.always": "Always show ribbon",
4384
+ "ribbon.show.tabsOnly": "Show tabs only",
4385
+ "ribbon.show.auto": "Adjust automatically"
4357
4386
  };
4358
4387
  var STUDIO_COMMANDS = COMMANDS;
4359
4388
  var UI = {
@@ -4431,6 +4460,88 @@ var UI = {
4431
4460
  "shapeFormat.down": "Down",
4432
4461
  "shapeFormat.ccw": "Counter-clockwise",
4433
4462
  "shapeFormat.cw": "Clockwise",
4463
+ // [classic ribbon] menu headings, the command search path and the group names of the ribbon tabs
4464
+ "head.ribbonLayout": "Ribbon Layout",
4465
+ "head.showRibbon": "Show Ribbon",
4466
+ "ui.ribbon": "Ribbon",
4467
+ "group.undo": "Undo",
4468
+ "group.clipboard": "Clipboard",
4469
+ "group.font": "Font",
4470
+ "group.alignment": "Alignment",
4471
+ "group.number": "Number",
4472
+ "group.styles": "Styles",
4473
+ "group.cells": "Cells",
4474
+ "group.editing": "Editing",
4475
+ "group.tables": "Tables",
4476
+ "group.illustrations": "Illustrations",
4477
+ "group.charts": "Charts",
4478
+ "group.controls": "Controls",
4479
+ "group.links": "Links",
4480
+ "group.comments": "Comments",
4481
+ "group.symbols": "Symbols",
4482
+ "group.tools": "Tools",
4483
+ "group.pens": "Pens",
4484
+ "group.ink": "Ink",
4485
+ "group.touch": "Touch",
4486
+ "group.pageSetup": "Page Setup",
4487
+ "group.printSetup": "Print Setup",
4488
+ "group.gridlines": "Gridlines",
4489
+ "group.headings": "Headings",
4490
+ "group.themes": "Themes",
4491
+ "group.sheetDirection": "Sheet Direction",
4492
+ "group.print": "Print",
4493
+ "group.functionLibrary": "Function Library",
4494
+ "group.definedNames": "Defined Names",
4495
+ "group.formulaAuditing": "Formula Auditing",
4496
+ "group.calculation": "Calculation",
4497
+ "group.getData": "Get & Transform Data",
4498
+ "group.dataTypes": "Data Types",
4499
+ "group.sortFilter": "Sort & Filter",
4500
+ "group.dataTools": "Data Tools",
4501
+ "group.outline": "Outline",
4502
+ "group.forecast": "Forecast",
4503
+ "group.dataStore": "Data Store",
4504
+ "group.analyze": "Analyze",
4505
+ "group.workbookLinks": "Workbook Links",
4506
+ "group.proofing": "Proofing",
4507
+ "group.accessibility": "Accessibility",
4508
+ "group.notes": "Notes",
4509
+ "group.protection": "Protection",
4510
+ "group.changes": "Changes",
4511
+ "group.sheetView": "Sheet View",
4512
+ "group.workbookViews": "Workbook Views",
4513
+ "group.panes": "Panes",
4514
+ "group.show": "Show",
4515
+ "group.zoom": "Zoom",
4516
+ "group.display": "Display",
4517
+ "group.regionalFormat": "Regional Format",
4518
+ "group.window": "Window",
4519
+ "group.help": "Help",
4520
+ "group.data": "Data",
4521
+ "group.chartElements": "Chart Elements",
4522
+ "group.analysis": "Analysis",
4523
+ "group.shapeStyles": "Shape Styles",
4524
+ "group.text": "Text",
4525
+ "group.picture": "Picture",
4526
+ "group.adjust": "Adjust",
4527
+ "group.barcode": "Barcode",
4528
+ "group.slicer": "Slicer",
4529
+ "group.selection": "Selection",
4530
+ "group.buttons": "Buttons",
4531
+ "group.timeline": "Timeline",
4532
+ "group.arrange": "Arrange",
4533
+ "group.size": "Size",
4534
+ "group.properties": "Properties",
4535
+ "group.tableStyles": "Table Styles",
4536
+ "group.styleOptions": "Style Options",
4537
+ "group.pivotTable": "PivotTable",
4538
+ "group.activeField": "Active Field",
4539
+ "group.group": "Group",
4540
+ "group.filter": "Filter",
4541
+ "group.actions": "Actions",
4542
+ "group.calculations": "Calculations",
4543
+ "group.layout": "Layout",
4544
+ "group.pivotStyles": "PivotTable Styles",
4434
4545
  // buttons and chrome
4435
4546
  "ui.ok": "OK",
4436
4547
  "ui.cancel": "Cancel",
@@ -4577,8 +4688,15 @@ var UI = {
4577
4688
  "menu.chart.radar": "Radar",
4578
4689
  "menu.chart.surface": "Surface",
4579
4690
  "menu.chart.statistical": "Statistical",
4580
- "menu.chart.hierarchy": "Hierarchy",
4581
- "menu.chart.other": "Other Charts",
4691
+ "menu.chart.hierarchy": "Hierarchical",
4692
+ "menu.chart.other": "Other",
4693
+ // [chart gallery] headings of the chart gallery and of its "More charts" part
4694
+ "menu.chart.pie": "Pie",
4695
+ "menu.chart.combo": "Combo",
4696
+ "menu.chart.more": "More charts",
4697
+ "menu.chart.threeD": "3-D",
4698
+ "menu.chart.stock": "Stock",
4699
+ "menu.chart.polar": "Gauge and Polar",
4582
4700
  // dialog titles that differ from their command label
4583
4701
  "dlg.newWorkbook": "New Workbook",
4584
4702
  "dlg.newWorkbook.text": "Start a new blank workbook? Unsaved changes will be lost.",
@@ -6503,7 +6621,7 @@ import { roundedBoxCss } from "@openworkbook/core";
6503
6621
  import { pivotPrintMarks } from "@openworkbook/core";
6504
6622
 
6505
6623
  // src/cellDecorHtml.ts
6506
- import { cellPadding, cssColor, cssFontFamily, cssNumber, escapeAttr, escapeHtml, labelShown, safeImageSrc } from "@openworkbook/core";
6624
+ import { cellPadding, cssColor, cssFontFamily, cssNumber, escapeAttr, escapeHtml, labelShown, safeImageSrc, htmlPictureSrc } from "@openworkbook/core";
6507
6625
  var px = (v, d, max = 200) => cssNumber(v, 0, max) ?? d;
6508
6626
  function cellPaddingCss(st) {
6509
6627
  const indent = cssNumber(st.indent, 0, 250) || 0;
@@ -6527,7 +6645,7 @@ function cellBackgroundCss(st, layers) {
6527
6645
  add(`linear-gradient(${dir},${c} 50%,transparent 50%)`, `${n}px ${n}px`, at);
6528
6646
  }
6529
6647
  for (const l of layers) add(l, "100% 100%", "0 0");
6530
- const src = st.backImage ? safeImageSrc(st.backImage) : null;
6648
+ const src = st.backImage ? htmlPictureSrc(st.backImage, { kind: "decoration" }) : null;
6531
6649
  if (src) {
6532
6650
  const fit = st.backImageFit;
6533
6651
  add(`url('${src}')`, fit === "contain" ? "contain" : fit === "cover" ? "cover" : fit === "center" ? "auto" : "100% 100%", "center");
@@ -6549,7 +6667,7 @@ function cellDecorHtml(st, empty) {
6549
6667
  }
6550
6668
  let left = 2, right = 2, outL = 2, outR = 1;
6551
6669
  for (const ic of st.decoration?.icons || []) {
6552
- const src = ic && safeImageSrc(ic.src);
6670
+ const src = ic && htmlPictureSrc(ic.src, { kind: "decoration" });
6553
6671
  if (!src) continue;
6554
6672
  const w = cssNumber(ic.width, 1, 200) || 12, h = cssNumber(ic.height, 1, 200) || w, pos = ic.position;
6555
6673
  const place = pos === "outsideLeft" ? `left:${-(outL + w)}px` : pos === "outsideRight" ? `right:${-(outR + w)}px` : pos === "right" || pos === "afterText" ? `right:${right}px` : `left:${left}px`;
@@ -6583,7 +6701,8 @@ function cellWatermarkHtml(st) {
6583
6701
 
6584
6702
  // src/print.ts
6585
6703
  import { generalAlign, singleLineRuns, singleLineText } from "@openworkbook/core";
6586
- import { cssColor as cssColor2, cssFontFamily as cssFontFamily2, cssKeyword, cssNumber as cssNumber2, escapeAttr as escapeAttr4, escapeHtml as escapeHtml3, safeImageSrc as safeImageSrc4 } from "@openworkbook/core";
6704
+ import { cssColor as cssColor2, cssFontFamily as cssFontFamily2, cssKeyword, cssNumber as cssNumber2, escapeAttr as escapeAttr4, escapeHtml as escapeHtml3 } from "@openworkbook/core";
6705
+ import { BLOCKED_PICTURE_HTML_STYLE, currentPictureGate, pictureGateFor, withPictureGate } from "@openworkbook/core";
6587
6706
  import {
6588
6707
  ObjectPainter,
6589
6708
  PRINT_HEADING_HEIGHT,
@@ -6610,12 +6729,12 @@ import {
6610
6729
  headerFooterPicturePosition,
6611
6730
  pageHeaderFooter,
6612
6731
  printsBackgroundOnPage,
6613
- safeImageSrc as safeImageSrc2,
6732
+ htmlPictureSrc as htmlPictureSrc2,
6614
6733
  splitAtPictureCode
6615
6734
  } from "@openworkbook/core";
6616
6735
  var num = (n) => Math.round((isFinite(n) ? n : 0) * 100) / 100;
6617
6736
  function pictureHtml(p) {
6618
- const src = p ? safeImageSrc2(p.src) : null;
6737
+ const src = p ? htmlPictureSrc2(p.src, { kind: "header-footer" }) : null;
6619
6738
  if (!p || !src) return "";
6620
6739
  return `<img alt="" src="${escapeAttr2(src)}" style="display:inline-block;vertical-align:bottom;width:${num(p.width)}pt;height:${num(p.height)}pt">`;
6621
6740
  }
@@ -6635,7 +6754,7 @@ function headerFooterBlockHtml(kind, st, ctx, pageIndex) {
6635
6754
  }
6636
6755
  function backgroundBlockHtml(sheet, st, box, at, position = 1) {
6637
6756
  if (!printsBackgroundOnPage(st, position) || !sheet.backgroundImage) return "";
6638
- const src = safeImageSrc2(sheet.backgroundImage);
6757
+ const src = htmlPictureSrc2(sheet.backgroundImage, { kind: "background", sheet: sheet.name }, sheet.wb);
6639
6758
  if (!src || /["'()\\\s<>]/.test(src)) return "";
6640
6759
  const side = sheet.rightToLeft ? "right" : "left", o = sheet.backgroundOptions;
6641
6760
  const over = o?.layer === "over", opacity = o && o.opacity < 1 ? `opacity:${num(o.opacity)};` : "";
@@ -6644,7 +6763,7 @@ function backgroundBlockHtml(sheet, st, box, at, position = 1) {
6644
6763
 
6645
6764
  // src/printSparks.ts
6646
6765
  import { cellSparkAt, drawSparkView, ruleRanges, sparkEnv, sparkImageSource, usesSparkFunction } from "@openworkbook/core";
6647
- import { escapeAttr as escapeAttr3, safeImageSrc as safeImageSrc3 } from "@openworkbook/core";
6766
+ import { escapeAttr as escapeAttr3, htmlPictureSrc as htmlPictureSrc3 } from "@openworkbook/core";
6648
6767
  function hasSparkContent(sheet) {
6649
6768
  if (sheet.condFormats.some((r) => r.type === "sparkline")) return true;
6650
6769
  for (const cell of sheet.cells.values()) if (usesSparkFunction(cell.f)) return true;
@@ -6698,7 +6817,7 @@ function sparkOverlayItems(sheet, ratio, rasterize2) {
6698
6817
  const box = `position:absolute;left:${Math.round(x - dx)}px;top:${Math.round(y - dy)}px;width:${Math.round(w)}px;height:${Math.round(h)}px`;
6699
6818
  let html = "";
6700
6819
  for (const p of pics) {
6701
- const u = safeImageSrc3(p.src);
6820
+ const u = htmlPictureSrc3(p.src, { kind: "sparkline", sheet: sheet.name, row, col }, sheet.wb);
6702
6821
  if (u) html += `<img alt="" src="${escapeAttr3(u)}" style="${box};box-sizing:border-box;padding:2px;${imageCss(p.view)}">`;
6703
6822
  }
6704
6823
  if (png) html += `<img alt="" src="${escapeAttr3(png)}" style="${box}">`;
@@ -6714,6 +6833,11 @@ import { DEFAULT_PAGE_SETUP as DEFAULT_PAGE_SETUP2 } from "@openworkbook/core";
6714
6833
  var esc = escapeHtml3;
6715
6834
  var num2 = (v, min, max) => cssNumber2(v, min, max) ?? 0;
6716
6835
  var span = (v) => Math.max(1, Math.round(num2(v, 1, 1e5)));
6836
+ function htmlPicture(src, context, sheet) {
6837
+ const r = currentPictureGate(sheet?.wb).check(src, { output: "print", ...context });
6838
+ return r.decision === "allow" ? { src: r.picture.url } : r.picture ? { blocked: true } : {};
6839
+ }
6840
+ var printGate = (sheet, o) => o.pictureGate ?? pictureGateFor(sheet.wb, o);
6717
6841
  function color(v) {
6718
6842
  const c = cssColor2(v);
6719
6843
  return c && c[0] === "#" ? v.trim() : c;
@@ -6783,13 +6907,14 @@ function rasterize(w, h, ratio, draw) {
6783
6907
  }
6784
6908
  function overlayItems(sheet, ratio) {
6785
6909
  const painter = new ObjectPainter(sheet.wb), out = [];
6910
+ painter.pictureGate = currentPictureGate(sheet.wb);
6786
6911
  const lazy = (make) => {
6787
6912
  let v;
6788
6913
  return () => v === void 0 ? v = make() : v;
6789
6914
  };
6790
- const img = (src, x, y, w, h, alt = "") => {
6791
- const u = safeImageSrc4(src);
6792
- return u ? `<img alt="${escapeAttr4(alt)}" src="${escapeAttr4(u)}" style="position:absolute;left:${Math.round(num2(x))}px;top:${Math.round(num2(y))}px;width:${Math.round(num2(w))}px;height:${Math.round(num2(h))}px">` : "";
6915
+ const img = (src, x, y, w, h, alt = "", context = { kind: "other" }) => {
6916
+ const u = htmlPicture(src, context, sheet), box = `position:absolute;left:${Math.round(num2(x))}px;top:${Math.round(num2(y))}px;width:${Math.round(num2(w))}px;height:${Math.round(num2(h))}px`;
6917
+ return u.src ? `<img alt="${escapeAttr4(alt)}" src="${escapeAttr4(u.src)}" style="${box}">` : u.blocked ? `<div class="os-print-blocked" style="${box};${BLOCKED_PICTURE_HTML_STYLE}"></div>` : "";
6793
6918
  };
6794
6919
  for (const sp of sheet.sparklines) {
6795
6920
  if (sheet.rows.isHidden(sp.row) || sheet.cols.isHidden(sp.col)) continue;
@@ -6811,20 +6936,25 @@ function overlayItems(sheet, ratio) {
6811
6936
  if (!ph) continue;
6812
6937
  if (ph.src) {
6813
6938
  const src2 = ph.src, alt = obj.alt ?? ph.text;
6814
- out.push({ ...b, html: (dx, dy) => img(src2, b.x - dx, b.y - dy, b.w, b.h, alt) });
6939
+ out.push({ ...b, html: (dx, dy) => img(src2, b.x - dx, b.y - dy, b.w, b.h, alt, { kind: "placeholder", sheet: sheet.name, objectId: obj.id }) });
6815
6940
  continue;
6816
6941
  }
6817
6942
  }
6818
6943
  const tf = objectTransform(obj);
6819
6944
  if (obj.kind === "image") {
6820
6945
  const crop = normCrop(obj.crop);
6946
+ const pctx = { kind: "object", sheet: sheet.name, objectId: obj.id };
6821
6947
  if (!crop && !tf.rotation && !tf.flipH && !tf.flipV) {
6822
- out.push({ ...b, html: (dx, dy) => img(obj.src, b.x - dx, b.y - dy, b.w, b.h, obj.alt) });
6948
+ out.push({ ...b, html: (dx, dy) => img(obj.src, b.x - dx, b.y - dy, b.w, b.h, obj.alt, pctx) });
6823
6949
  continue;
6824
6950
  }
6825
6951
  const c = crop || { left: 0, top: 0, right: 0, bottom: 0 }, fw = b.w / (1 - c.left - c.right), fh = b.h / (1 - c.top - c.bottom);
6826
6952
  const transform = `${tf.rotation ? `rotate(${num2(tf.rotation)}deg) ` : ""}${tf.flipH || tf.flipV ? `scale(${tf.flipH ? -1 : 1},${tf.flipV ? -1 : 1})` : ""}`.trim();
6827
- const src2 = safeImageSrc4(obj.src);
6953
+ const pic = htmlPicture(obj.src, pctx, sheet), src2 = pic.src;
6954
+ if (pic.blocked) {
6955
+ out.push({ ...b, html: (dx, dy) => img(obj.src, b.x - dx, b.y - dy, b.w, b.h, obj.alt, pctx) });
6956
+ continue;
6957
+ }
6828
6958
  if (!src2) continue;
6829
6959
  out.push({ ...b, html: (dx, dy) => `<div style="position:absolute;overflow:hidden;left:${Math.round(num2(b.x - dx))}px;top:${Math.round(num2(b.y - dy))}px;width:${Math.round(num2(b.w))}px;height:${Math.round(num2(b.h))}px${transform ? `;transform:${transform}` : ""}"><img alt="${escapeAttr4(obj.alt || "")}" src="${escapeAttr4(src2)}" style="position:absolute;max-width:none;left:${num2(-fw * c.left).toFixed(1)}px;top:${num2(-fh * c.top).toFixed(1)}px;width:${num2(fw).toFixed(1)}px;height:${num2(fh).toFixed(1)}px"></div>` });
6830
6960
  continue;
@@ -6973,7 +7103,7 @@ function tableHtml(sheet, g, look, titleRows, titleCols, marks) {
6973
7103
  const cellCss = css(st, generalAlign(v, st.format) === "right", { w: bw, h: bh }, sheet.rightToLeft) + (cond?.bar ? dataBarCss(cond.bar, bw, bh, sheet.rightToLeft) : "");
6974
7104
  const pic = cellImageAt(sheet, ar, ac);
6975
7105
  if (pic) {
6976
- html += `<td${spans} style="${cellCss};padding:2px 0 0 2px;vertical-align:top">${cellPictureHtml(pic, bw, bh)}</td>`;
7106
+ html += `<td${spans} style="${cellCss};padding:2px 0 0 2px;vertical-align:top">${cellPictureHtml(pic, bw, bh, { kind: pic.formula ? "formula" : "cell", sheet: sheet.name, row: ar, col: ac }, sheet)}</td>`;
6977
7107
  return;
6978
7108
  }
6979
7109
  const control = sheet.cellTypes.length ? cellTypeHtml(sheet.getCellType(ar, ac), v, f.text) : null;
@@ -7004,10 +7134,12 @@ function tableHtml(sheet, g, look, titleRows, titleCols, marks) {
7004
7134
  });
7005
7135
  return { html: html + "</table>", width, height, left, top };
7006
7136
  }
7007
- function cellPictureHtml(pic, w, h) {
7008
- const src = safeImageSrc4(pic.src);
7137
+ function cellPictureHtml(pic, w, h, context, sheet) {
7138
+ const p = htmlPicture(pic.src, context, sheet), src = p.src;
7139
+ const bw = Math.max(1, num2(w) - 5), bh = Math.max(1, num2(h) - 5);
7140
+ if (p.blocked) return `<div class="os-print-blocked" style="width:${bw}px;height:${bh}px;${BLOCKED_PICTURE_HTML_STYLE}"></div>`;
7009
7141
  if (!src) return "";
7010
- const bw = Math.max(1, num2(w) - 5), bh = Math.max(1, num2(h) - 5), pw = cssNumber2(pic.width, 0, 1e5), ph = cssNumber2(pic.height, 0, 1e5);
7142
+ const pw = cssNumber2(pic.width, 0, 1e5), ph = cssNumber2(pic.height, 0, 1e5);
7011
7143
  const fit = pic.sizing === 1 ? "width:100%;height:100%;object-fit:fill" : pic.sizing === 2 ? "flex:none" : pic.sizing === 3 ? `flex:none;width:${pw !== null ? `${pw}px` : "auto"};height:${ph !== null ? `${ph}px` : "auto"}` : "width:100%;height:100%;object-fit:contain";
7012
7144
  return `<div class="os-print-cellpic" style="display:flex;align-items:center;justify-content:center;overflow:hidden;width:${bw}px;height:${bh}px"><img alt="${escapeAttr4(pic.alt ?? "")}" src="${escapeAttr4(src)}" style="${fit}"></div>`;
7013
7145
  }
@@ -7037,6 +7169,9 @@ body{-webkit-print-color-adjust:exact;print-color-adjust:exact}
7037
7169
  `;
7038
7170
  }
7039
7171
  function sheetPrintPages(sheet, setup, options = {}) {
7172
+ return withPictureGate(printGate(sheet, options), () => printPages(sheet, setup, options));
7173
+ }
7174
+ function printPages(sheet, setup, options) {
7040
7175
  const st = resolvePageSetup(setup, sheet.pageSetup);
7041
7176
  const withObjects = options.objects !== false && !st.draft && canDraw() && (sheet.objects.length > 0 || sheet.sparklines.length > 0 || hasSparkContent(sheet));
7042
7177
  const layout = sheetPrintLayout(sheet, st, { objects: withObjects, pageBreaks: options.pageBreaks });
@@ -7067,7 +7202,7 @@ function flowHtml(sheet, st, options) {
7067
7202
  return areas.map((g, i) => `<div class="os-print-break"${i ? ' style="break-before:page;page-break-before:always"' : ""}>${one(g)}</div>`).join("");
7068
7203
  }
7069
7204
  function sheetToHtml(sheet, setup, options = {}) {
7070
- if (options.paged === false) return flowHtml(sheet, resolvePageSetup(setup, sheet.pageSetup), options);
7205
+ if (options.paged === false) return withPictureGate(printGate(sheet, options), () => flowHtml(sheet, resolvePageSetup(setup, sheet.pageSetup), options));
7071
7206
  return sheetPrintPages(sheet, setup, options).pages.join("");
7072
7207
  }
7073
7208
  function sheetToPrintDocument(sheet, setup, options = {}) {
@@ -7149,13 +7284,13 @@ import {
7149
7284
  Axis,
7150
7285
  BARCODE_TYPES,
7151
7286
  BLOCKED_LINK_SCHEMES,
7287
+ BLOCKED_PICTURE_HTML_STYLE as BLOCKED_PICTURE_HTML_STYLE2,
7152
7288
  BORDER_CORNERS,
7153
7289
  BUILTIN_CELL_STYLE_IDS,
7154
7290
  BUILTIN_CELL_TYPES,
7155
7291
  BUILTIN_FORMATS,
7156
7292
  BUILTIN_THEMES,
7157
7293
  BUILTIN_THEME_FONTS,
7158
- LIVE_STATE_KINDS,
7159
7294
  CHART_3D_TYPES,
7160
7295
  CHART_COLOR_SCALE_2,
7161
7296
  CHART_COLOR_SCALE_3,
@@ -7163,7 +7298,11 @@ import {
7163
7298
  CHART_COLOR_SCHEME_LABELS,
7164
7299
  CHART_COLOR_VARIATIONS,
7165
7300
  CHART_DISPLAY_UNITS,
7301
+ CHART_GALLERY,
7302
+ CHART_GALLERY_MORE,
7166
7303
  CHART_PATTERNS,
7304
+ CHART_PRESETS,
7305
+ CHART_PRESET_KEYS,
7167
7306
  CHART_TYPES,
7168
7307
  CHINESE_FORMULA_LANGUAGE,
7169
7308
  COMMENT_MARK_COLOR,
@@ -7180,11 +7319,6 @@ import {
7180
7319
  DARK_CHART_THEME,
7181
7320
  DARK_SPARKLINE_THEME,
7182
7321
  DARK_THEME,
7183
- QUERY_CHART_COLOR_STOPS,
7184
- QUERY_CHART_COLOR_TYPES,
7185
- QUERY_CHART_MAX_PANELS,
7186
- QUERY_CHART_PICTURE_TYPES,
7187
- QUERY_CHART_TYPES,
7188
7322
  DATA_MODEL_PREFIX,
7189
7323
  DATA_TABLE_PART_MESSAGE,
7190
7324
  DEFAULT_BACKGROUND_OPTIONS,
@@ -7217,9 +7351,9 @@ import {
7217
7351
  DUTCH_FORMULA_LANGUAGE,
7218
7352
  DYNAMIC_FILTER_TYPES,
7219
7353
  DYNAMIC_MIN_SIZE,
7220
- DataStore,
7221
7354
  DataRange,
7222
7355
  DataRecordError,
7356
+ DataStore,
7223
7357
  DocumentProperties,
7224
7358
  EDIT_ACTIONS,
7225
7359
  ELLIPSIS,
@@ -7235,6 +7369,7 @@ import {
7235
7369
  EVAL_ERROR_TEXT,
7236
7370
  Emitter,
7237
7371
  EtsError,
7372
+ ExternalContent,
7238
7373
  ExternalRefError,
7239
7374
  FILE_BUTTON_WIDTH,
7240
7375
  FILL_PATTERNS,
@@ -7243,6 +7378,7 @@ import {
7243
7378
  FORECAST_SHEET_LABELS,
7244
7379
  FORMULA_ASSIST_LABELS,
7245
7380
  FORMULA_FOLD_MARK,
7381
+ FORMULA_LIMITS,
7246
7382
  FORMULA_PROBLEM_MESSAGE,
7247
7383
  FORMULA_REF_COLORS,
7248
7384
  FORM_ARROW_W,
@@ -7284,6 +7420,7 @@ import {
7284
7420
  LINE_COMPOUNDS,
7285
7421
  LINE_END_SIZES,
7286
7422
  LINE_END_TYPES,
7423
+ LIVE_STATE_KINDS,
7287
7424
  LinkManager,
7288
7425
  LiveAnnouncer,
7289
7426
  MANY_CONDITIONAL_FORMATS,
@@ -7292,11 +7429,15 @@ import {
7292
7429
  MASK_INCOMPLETE_MESSAGE,
7293
7430
  MATH_NS,
7294
7431
  MAX_BORDER_RADIUS,
7432
+ MAX_CLIPBOARD_HTML_CELLS,
7433
+ MAX_CLIPBOARD_HTML_LENGTH,
7434
+ MAX_CLIPBOARD_HTML_STYLE,
7295
7435
  MAX_COLS,
7296
7436
  MAX_DATE_BUCKETS,
7297
7437
  MAX_HEADER_COUNT,
7298
7438
  MAX_HEADER_SIZE,
7299
7439
  MAX_LINK_LENGTH,
7440
+ MAX_LIST_SOURCE_ITEMS,
7300
7441
  MAX_OUTLINE_LEVEL,
7301
7442
  MAX_ROWS,
7302
7443
  MAX_WATCHES_PER_ADD,
@@ -7355,6 +7496,12 @@ import {
7355
7496
  PRINT_HEADING_WIDTH as PRINT_HEADING_WIDTH2,
7356
7497
  PROTECTION_OPTION_KEYS,
7357
7498
  PX_PER_INCH,
7499
+ PictureGate,
7500
+ QUERY_CHART_COLOR_STOPS,
7501
+ QUERY_CHART_COLOR_TYPES,
7502
+ QUERY_CHART_MAX_PANELS,
7503
+ QUERY_CHART_PICTURE_TYPES,
7504
+ QUERY_CHART_TYPES,
7358
7505
  RECORD_ICON_W,
7359
7506
  REFUSAL_LABELS,
7360
7507
  REFUSAL_MESSAGES,
@@ -7449,11 +7596,11 @@ import {
7449
7596
  accountingFormat,
7450
7597
  actionLabel,
7451
7598
  activeRangeIndex,
7452
- addQueryChart,
7453
7599
  addDateUnits,
7454
7600
  addHeaderFooterCode,
7455
7601
  addMonths,
7456
7602
  addPageBreak,
7603
+ addQueryChart,
7457
7604
  addRecentFunction,
7458
7605
  addReply,
7459
7606
  addSchemaField,
@@ -7483,6 +7630,7 @@ import {
7483
7630
  applyAutoLink,
7484
7631
  applyBorderTool,
7485
7632
  applyCellTemplate,
7633
+ applyChartPreset,
7486
7634
  applyDbNum,
7487
7635
  applyDragMerge,
7488
7636
  applyErrorCheckAction,
@@ -7531,6 +7679,7 @@ import {
7531
7679
  bindingConverterNames,
7532
7680
  bindingSchemaFromDataStore,
7533
7681
  bindingTemplate,
7682
+ blockedPictureOrigins,
7534
7683
  borderRadiusCss,
7535
7684
  borderSides,
7536
7685
  borderToolMode,
@@ -7569,8 +7718,8 @@ import {
7569
7718
  canvasCap,
7570
7719
  captureSheetViewState,
7571
7720
  carryObjectAnchor,
7572
- carveLiveStates,
7573
7721
  carveCellTypes,
7722
+ carveLiveStates,
7574
7723
  cellButtonAt,
7575
7724
  cellButtonLayout,
7576
7725
  cellButtonShown,
@@ -7592,9 +7741,6 @@ import {
7592
7741
  cellShiftPlan,
7593
7742
  cellSparkAt as cellSparkAt2,
7594
7743
  cellSparkViews,
7595
- liveStateOn,
7596
- liveStateStyle,
7597
- liveStatesAt,
7598
7744
  cellStyleImageSources,
7599
7745
  cellTemplateFromCell,
7600
7746
  cellTypeAt,
@@ -7633,6 +7779,10 @@ import {
7633
7779
  chartPatternBlend,
7634
7780
  chartPatternDensity,
7635
7781
  chartPatternStyle,
7782
+ chartPreset,
7783
+ chartPresetOf,
7784
+ chartPresetPatch,
7785
+ chartPresetSeries,
7636
7786
  chartProjection3D,
7637
7787
  chartSchemeColors,
7638
7788
  chartSchemeCount,
@@ -7655,6 +7805,7 @@ import {
7655
7805
  checkHeaderSpan,
7656
7806
  checkLinkUrl,
7657
7807
  checkPerformance,
7808
+ checkPictureUrl,
7658
7809
  checkSortKeys,
7659
7810
  checkboxCaption,
7660
7811
  checkboxLayout,
@@ -7671,6 +7822,7 @@ import {
7671
7822
  clearUnusedFormats,
7672
7823
  clearWatches,
7673
7824
  clipboardHeaderText,
7825
+ clipboardHtmlSheets,
7674
7826
  cloneRecord,
7675
7827
  cloneRuns,
7676
7828
  cloneTag,
@@ -7683,6 +7835,7 @@ import {
7683
7835
  commentTextParts,
7684
7836
  commentTimeText,
7685
7837
  compactFormula,
7838
+ compactSharedStyles,
7686
7839
  complexText,
7687
7840
  compoundBands,
7688
7841
  computePivot,
@@ -7735,6 +7888,7 @@ import {
7735
7888
  cultureRegistry,
7736
7889
  currencyFormat,
7737
7890
  currentDateText,
7891
+ currentPictureGate as currentPictureGate2,
7738
7892
  currentTimeText,
7739
7893
  customFormatCode,
7740
7894
  customListsOf,
@@ -7754,14 +7908,6 @@ import {
7754
7908
  dashPreset,
7755
7909
  dataBarGradientEnd as dataBarGradientEnd2,
7756
7910
  dataBarView,
7757
- queryChartError,
7758
- queryChartFields,
7759
- queryChartFilterMatch,
7760
- queryChartMeasureName,
7761
- queryChartRecords,
7762
- queryChartSeries,
7763
- queryChartSnapshot,
7764
- queryChartView,
7765
7911
  dataLabelSeparator,
7766
7912
  dataLabelText,
7767
7913
  dataTable1,
@@ -7781,6 +7927,7 @@ import {
7781
7927
  dbnumDigits,
7782
7928
  dbnumLanguage,
7783
7929
  dbnumNumber,
7930
+ decodeHtmlEntities,
7784
7931
  decodeWordList,
7785
7932
  decorationLines,
7786
7933
  defaultAdjustValues,
@@ -7794,6 +7941,7 @@ import {
7794
7941
  definedNameAreas,
7795
7942
  definedNameRange,
7796
7943
  deleteHeaderBands,
7944
+ delimitedField,
7797
7945
  delimitedWithHeaders,
7798
7946
  delocalizeFormula,
7799
7947
  delocalizeFunctionName,
@@ -7821,6 +7969,7 @@ import {
7821
7969
  draggedRefRange,
7822
7970
  draggedRefText,
7823
7971
  drawBarcode,
7972
+ drawBlockedPicture,
7824
7973
  drawCameraPicture,
7825
7974
  drawCellImage,
7826
7975
  drawCfIcon,
@@ -7886,11 +8035,11 @@ import {
7886
8035
  etsModel,
7887
8036
  evalFlashAtom,
7888
8037
  evalXPath,
7889
- evaluateQueryChart,
7890
8038
  evaluateFormula,
7891
8039
  evaluateFormulaAsync,
7892
8040
  evaluateGeometry,
7893
8041
  evaluateObjectFormula,
8042
+ evaluateQueryChart,
7894
8043
  evaluationValueText,
7895
8044
  excelFormatCode,
7896
8045
  excelPasswordHashBytes,
@@ -7898,6 +8047,7 @@ import {
7898
8047
  expandHeaderFooter as expandHeaderFooter2,
7899
8048
  expandHeaderFooterSections,
7900
8049
  expandSelectionToSpans,
8050
+ expandSharedStyles,
7901
8051
  exponentialSmoothingAnalysis,
7902
8052
  externalFunctionNames,
7903
8053
  externalNamePrefix,
@@ -7992,6 +8142,7 @@ import {
7992
8142
  formulaFunctionNames,
7993
8143
  formulaInputProblem,
7994
8144
  formulaLanguages,
8145
+ formulaLimitProblem,
7995
8146
  formulaPrecedents,
7996
8147
  formulaProblem,
7997
8148
  formulaToR1C1,
@@ -8021,8 +8172,8 @@ import {
8021
8172
  getCellTypeDef,
8022
8173
  getCulture,
8023
8174
  getCustomObjectType,
8024
- getDataStoreSource,
8025
8175
  getDataProvider,
8176
+ getDataStoreSource,
8026
8177
  getDefaultFont,
8027
8178
  getDeletedRowCount,
8028
8179
  getDirtyCells,
@@ -8061,6 +8212,7 @@ import {
8061
8212
  hasPixelEffects,
8062
8213
  hasRecordIcon,
8063
8214
  hasShapeEffects,
8215
+ hasSharedStyles,
8064
8216
  hasSheetViews,
8065
8217
  hasTextEffects,
8066
8218
  hashPassword,
@@ -8109,8 +8261,10 @@ import {
8109
8261
  hitRotatedHandle,
8110
8262
  hitSelectionHandle,
8111
8263
  hostShortcut,
8264
+ htmlColorToHex,
8112
8265
  htmlObjectPicture,
8113
8266
  htmlObjectPlaceholder as htmlObjectPlaceholder2,
8267
+ htmlPictureSrc as htmlPictureSrc4,
8114
8268
  hyperlinkUrl,
8115
8269
  iconSetCount,
8116
8270
  ignoreError,
@@ -8156,7 +8310,6 @@ import {
8156
8310
  isCellSelectable,
8157
8311
  isChart3DType,
8158
8312
  isColorCriterion,
8159
- isQueryChart,
8160
8313
  isDataTableFormula,
8161
8314
  isDateFormat,
8162
8315
  isDbcsCulture,
@@ -8167,6 +8320,7 @@ import {
8167
8320
  isDirtyState,
8168
8321
  isDirtyTracking,
8169
8322
  isDoubleUnderline,
8323
+ isEmbeddedPicture,
8170
8324
  isErrorIgnored,
8171
8325
  isFillPatternType,
8172
8326
  isFilterRule,
@@ -8175,6 +8329,7 @@ import {
8175
8329
  isFormatLocked,
8176
8330
  isFormulaFormat,
8177
8331
  isFormulaHidden,
8332
+ isFormulaLikeText,
8178
8333
  isHeaderFormula,
8179
8334
  isHeaderRich,
8180
8335
  isHtmlObject,
@@ -8189,7 +8344,10 @@ import {
8189
8344
  isOmml,
8190
8345
  isOpenWorkbookError,
8191
8346
  isPercentFormat,
8347
+ isPictureAllowedByPolicy,
8192
8348
  isPlainRuns,
8349
+ isPrivateNetworkAddress,
8350
+ isQueryChart,
8193
8351
  isR1C1Reference,
8194
8352
  isRecord,
8195
8353
  isRefResolvable,
@@ -8231,16 +8389,19 @@ import {
8231
8389
  listRuns as listRuns2,
8232
8390
  listText as listText2,
8233
8391
  listWatches,
8392
+ liveStateOn,
8393
+ liveStateStyle,
8394
+ liveStatesAt,
8234
8395
  loadAllowEditRanges,
8235
8396
  loadAutoMerges,
8236
8397
  loadBackgroundOptions,
8237
- loadLiveStates,
8238
8398
  loadCellTypes,
8239
8399
  loadChangeLog,
8240
8400
  loadComments,
8241
8401
  loadHeaderFooterPicture,
8242
8402
  loadHeaderFooterPictures,
8243
8403
  loadIgnoredErrors,
8404
+ loadLiveStates,
8244
8405
  loadNoteBoxes,
8245
8406
  loadOutlineStyle,
8246
8407
  loadPageBreaks as loadPageBreaks2,
@@ -8351,6 +8512,7 @@ import {
8351
8512
  normalizeGroupFixedPosition,
8352
8513
  normalizeKey,
8353
8514
  normalizeNoteBox,
8515
+ normalizePictureOrigin,
8354
8516
  normalizePictureSource,
8355
8517
  normalizePrintLineStyles,
8356
8518
  normalizeRuns,
@@ -8433,6 +8595,7 @@ import {
8433
8595
  parseBorderCorners,
8434
8596
  parseCellName,
8435
8597
  parseCjkNumber,
8598
+ parseClipboardHtml,
8436
8599
  parseComplexText,
8437
8600
  parseCssColor,
8438
8601
  parseCubeExpression,
@@ -8489,6 +8652,7 @@ import {
8489
8652
  pictureDataUrl,
8490
8653
  pictureEffectsKey,
8491
8654
  pictureFitRect,
8655
+ pictureGateFor as pictureGateFor2,
8492
8656
  pictureOpacity,
8493
8657
  pictureSize,
8494
8658
  pictureWithEffects,
@@ -8567,6 +8731,14 @@ import {
8567
8731
  properCase,
8568
8732
  protectWorkbookStructure,
8569
8733
  putNoteBoxes,
8734
+ queryChartError,
8735
+ queryChartFields,
8736
+ queryChartFilterMatch,
8737
+ queryChartMeasureName,
8738
+ queryChartRecords,
8739
+ queryChartSeries,
8740
+ queryChartSnapshot,
8741
+ queryChartView,
8570
8742
  r1c1References,
8571
8743
  rSquaredText,
8572
8744
  radioAt,
@@ -8631,9 +8803,9 @@ import {
8631
8803
  removeSchemaField,
8632
8804
  removeSheetFrom3d,
8633
8805
  removeWatch,
8634
- renameQueryChartSource,
8635
8806
  renameObject,
8636
8807
  renameObjectGroup,
8808
+ renameQueryChartSource,
8637
8809
  renameSheetInFormula,
8638
8810
  renameSheetInRef,
8639
8811
  renameSolverModel,
@@ -8666,6 +8838,7 @@ import {
8666
8838
  resolveMargins,
8667
8839
  resolveNamedStyle,
8668
8840
  resolvePageSetup as resolvePageSetup2,
8841
+ resolvePicturePolicy,
8669
8842
  resolvePrintLineStyle,
8670
8843
  resolveRange,
8671
8844
  resolveRefAreas,
@@ -8710,7 +8883,7 @@ import {
8710
8883
  runsEqual,
8711
8884
  runsText,
8712
8885
  runsToHtml as runsToHtml2,
8713
- safeImageSrc as safeImageSrc5,
8886
+ safeImageSrc as safeImageSrc2,
8714
8887
  safeUrl,
8715
8888
  sameAuthor,
8716
8889
  sameFocusCell,
@@ -8837,12 +9010,12 @@ import {
8837
9010
  sheetToView,
8838
9011
  sheetViews,
8839
9012
  shiftCellNames,
8840
- shiftLiveStates,
8841
9013
  shiftCellTypes,
8842
9014
  shiftColorCriteria,
8843
9015
  shiftComments,
8844
9016
  shiftFormula,
8845
9017
  shiftHeaders,
9018
+ shiftLiveStates,
8846
9019
  shiftNoteAnchor,
8847
9020
  shiftNoteBoxes,
8848
9021
  shiftObjectAnchors,
@@ -9006,6 +9179,7 @@ import {
9006
9179
  toNum,
9007
9180
  toPageSetupPatch,
9008
9181
  toStr,
9182
+ toValidSheetName,
9009
9183
  toggleFormControl,
9010
9184
  toggleIsOn,
9011
9185
  toggleNext,
@@ -9041,6 +9215,7 @@ import {
9041
9215
  usesJapaneseEra,
9042
9216
  usesSparkFunction as usesSparkFunction2,
9043
9217
  validateSolverModel,
9218
+ validationListItems,
9044
9219
  valueFraction,
9045
9220
  verifyPassword,
9046
9221
  versionLabel,
@@ -9055,11 +9230,13 @@ import {
9055
9230
  wildcardMatch,
9056
9231
  wildcardRegExp,
9057
9232
  withBookLists,
9058
- withLiveState,
9059
9233
  withCellType,
9060
9234
  withDraftSize,
9235
+ withLiveState,
9236
+ withPictureGate as withPictureGate2,
9061
9237
  withStateStyle,
9062
9238
  wordArtStyle,
9239
+ workbookPictureSources,
9063
9240
  workbookStatistics,
9064
9241
  workbookThemeFonts,
9065
9242
  workflowChoices,
@@ -9084,6 +9261,7 @@ export {
9084
9261
  Axis,
9085
9262
  BARCODE_TYPES,
9086
9263
  BLOCKED_LINK_SCHEMES,
9264
+ BLOCKED_PICTURE_HTML_STYLE2 as BLOCKED_PICTURE_HTML_STYLE,
9087
9265
  BORDER_CORNERS,
9088
9266
  BUILTIN_CELL_STYLE_IDS,
9089
9267
  BUILTIN_CELL_TYPES,
@@ -9097,8 +9275,13 @@ export {
9097
9275
  CHART_COLOR_SCHEME_LABELS,
9098
9276
  CHART_COLOR_VARIATIONS,
9099
9277
  CHART_DISPLAY_UNITS,
9278
+ CHART_GALLERY,
9279
+ CHART_GALLERY_MORE,
9100
9280
  CHART_LABELS,
9101
9281
  CHART_PATTERNS,
9282
+ CHART_PRESETS,
9283
+ CHART_PRESET_KEYS,
9284
+ CHART_PRESET_LABELS,
9102
9285
  CHART_TYPES,
9103
9286
  CHINESE_FORMULA_LANGUAGE,
9104
9287
  COMMENT_MARK_COLOR,
@@ -9166,6 +9349,7 @@ export {
9166
9349
  EVAL_ERROR_TEXT,
9167
9350
  Emitter,
9168
9351
  EtsError,
9352
+ ExternalContent,
9169
9353
  ExternalRefError,
9170
9354
  FILE_BUTTON_WIDTH,
9171
9355
  FILL_PATTERNS,
@@ -9176,6 +9360,7 @@ export {
9176
9360
  FORMULA_BOX_LABELS,
9177
9361
  FORMULA_EDITOR_LABELS,
9178
9362
  FORMULA_FOLD_MARK,
9363
+ FORMULA_LIMITS,
9179
9364
  FORMULA_PROBLEM_MESSAGE,
9180
9365
  FORMULA_REF_COLORS,
9181
9366
  FORM_ARROW_W,
@@ -9230,11 +9415,15 @@ export {
9230
9415
  MASK_INCOMPLETE_MESSAGE,
9231
9416
  MATH_NS,
9232
9417
  MAX_BORDER_RADIUS,
9418
+ MAX_CLIPBOARD_HTML_CELLS,
9419
+ MAX_CLIPBOARD_HTML_LENGTH,
9420
+ MAX_CLIPBOARD_HTML_STYLE,
9233
9421
  MAX_COLS,
9234
9422
  MAX_DATE_BUCKETS,
9235
9423
  MAX_HEADER_COUNT,
9236
9424
  MAX_HEADER_SIZE,
9237
9425
  MAX_LINK_LENGTH,
9426
+ MAX_LIST_SOURCE_ITEMS,
9238
9427
  MAX_OUTLINE_LEVEL,
9239
9428
  MAX_ROWS,
9240
9429
  MAX_WATCHES_PER_ADD,
@@ -9293,6 +9482,7 @@ export {
9293
9482
  PRINT_HEADING_WIDTH2 as PRINT_HEADING_WIDTH,
9294
9483
  PROTECTION_OPTION_KEYS,
9295
9484
  PX_PER_INCH,
9485
+ PictureGate,
9296
9486
  PrintSettings,
9297
9487
  QUERY_CHART_COLOR_STOPS,
9298
9488
  QUERY_CHART_COLOR_TYPES,
@@ -9435,6 +9625,7 @@ export {
9435
9625
  applyAutoLink,
9436
9626
  applyBorderTool,
9437
9627
  applyCellTemplate,
9628
+ applyChartPreset,
9438
9629
  applyDbNum,
9439
9630
  applyDragMerge,
9440
9631
  applyErrorCheckAction,
@@ -9486,6 +9677,7 @@ export {
9486
9677
  bindingConverterNames,
9487
9678
  bindingSchemaFromDataStore,
9488
9679
  bindingTemplate,
9680
+ blockedPictureOrigins,
9489
9681
  borderRadiusCss,
9490
9682
  borderSides,
9491
9683
  borderToolMode,
@@ -9587,6 +9779,10 @@ export {
9587
9779
  chartPatternBlend,
9588
9780
  chartPatternDensity,
9589
9781
  chartPatternStyle,
9782
+ chartPreset,
9783
+ chartPresetOf,
9784
+ chartPresetPatch,
9785
+ chartPresetSeries,
9590
9786
  chartProjection3D,
9591
9787
  chartSchemeColors,
9592
9788
  chartSchemeCount,
@@ -9609,6 +9805,7 @@ export {
9609
9805
  checkHeaderSpan,
9610
9806
  checkLinkUrl,
9611
9807
  checkPerformance,
9808
+ checkPictureUrl,
9612
9809
  checkSortKeys,
9613
9810
  checkboxCaption,
9614
9811
  checkboxLayout,
@@ -9626,6 +9823,7 @@ export {
9626
9823
  clearUnusedFormats,
9627
9824
  clearWatches,
9628
9825
  clipboardHeaderText,
9826
+ clipboardHtmlSheets,
9629
9827
  cloneRecord,
9630
9828
  cloneRuns,
9631
9829
  cloneTag,
@@ -9638,6 +9836,7 @@ export {
9638
9836
  commentTextParts,
9639
9837
  commentTimeText,
9640
9838
  compactFormula,
9839
+ compactSharedStyles,
9641
9840
  complexText,
9642
9841
  compoundBands,
9643
9842
  computePivot,
@@ -9690,6 +9889,7 @@ export {
9690
9889
  cultureRegistry,
9691
9890
  currencyFormat,
9692
9891
  currentDateText,
9892
+ currentPictureGate2 as currentPictureGate,
9693
9893
  currentSetup,
9694
9894
  currentTimeText,
9695
9895
  customFormatCode,
@@ -9729,6 +9929,7 @@ export {
9729
9929
  dbnumDigits,
9730
9930
  dbnumLanguage,
9731
9931
  dbnumNumber,
9932
+ decodeHtmlEntities,
9732
9933
  decodeWordList,
9733
9934
  decorationLines,
9734
9935
  defaultAdjustValues,
@@ -9742,6 +9943,7 @@ export {
9742
9943
  definedNameAreas,
9743
9944
  definedNameRange,
9744
9945
  deleteHeaderBands,
9946
+ delimitedField,
9745
9947
  delimitedWithHeaders,
9746
9948
  delocalizeFormula,
9747
9949
  delocalizeFunctionName,
@@ -9769,6 +9971,7 @@ export {
9769
9971
  draggedRefRange,
9770
9972
  draggedRefText,
9771
9973
  drawBarcode,
9974
+ drawBlockedPicture,
9772
9975
  drawCameraPicture,
9773
9976
  drawCellImage,
9774
9977
  drawCfIcon,
@@ -9848,6 +10051,7 @@ export {
9848
10051
  expandHeaderFooter2 as expandHeaderFooter,
9849
10052
  expandHeaderFooterSections,
9850
10053
  expandSelectionToSpans,
10054
+ expandSharedStyles,
9851
10055
  exponentialSmoothingAnalysis,
9852
10056
  externalFunctionNames,
9853
10057
  externalNamePrefix,
@@ -9946,6 +10150,7 @@ export {
9946
10150
  formulaFunctionNames,
9947
10151
  formulaInputProblem,
9948
10152
  formulaLanguages,
10153
+ formulaLimitProblem,
9949
10154
  formulaPrecedents,
9950
10155
  formulaProblem,
9951
10156
  formulaToR1C1,
@@ -10015,6 +10220,7 @@ export {
10015
10220
  hasPixelEffects,
10016
10221
  hasRecordIcon,
10017
10222
  hasShapeEffects,
10223
+ hasSharedStyles,
10018
10224
  hasSheetViews,
10019
10225
  hasTextEffects,
10020
10226
  hashPassword,
@@ -10066,8 +10272,10 @@ export {
10066
10272
  hitSelectionHandle,
10067
10273
  hitTestSpreadsheet,
10068
10274
  hostShortcut,
10275
+ htmlColorToHex,
10069
10276
  htmlObjectPicture,
10070
10277
  htmlObjectPlaceholder2 as htmlObjectPlaceholder,
10278
+ htmlPictureSrc4 as htmlPictureSrc,
10071
10279
  hyperlinkUrl,
10072
10280
  iconSetCount,
10073
10281
  ignoreError,
@@ -10124,6 +10332,7 @@ export {
10124
10332
  isDirtyState,
10125
10333
  isDirtyTracking,
10126
10334
  isDoubleUnderline,
10335
+ isEmbeddedPicture,
10127
10336
  isErrorIgnored,
10128
10337
  isFillPatternType,
10129
10338
  isFilterRule,
@@ -10132,6 +10341,7 @@ export {
10132
10341
  isFormatLocked,
10133
10342
  isFormulaFormat,
10134
10343
  isFormulaHidden,
10344
+ isFormulaLikeText,
10135
10345
  isHeaderFormula,
10136
10346
  isHeaderRich,
10137
10347
  isHtmlObject,
@@ -10146,7 +10356,9 @@ export {
10146
10356
  isOmml,
10147
10357
  isOpenWorkbookError,
10148
10358
  isPercentFormat,
10359
+ isPictureAllowedByPolicy,
10149
10360
  isPlainRuns,
10361
+ isPrivateNetworkAddress,
10150
10362
  isQueryChart,
10151
10363
  isR1C1Reference,
10152
10364
  isRecord,
@@ -10317,6 +10529,7 @@ export {
10317
10529
  normalizeGroupFixedPosition,
10318
10530
  normalizeKey,
10319
10531
  normalizeNoteBox,
10532
+ normalizePictureOrigin,
10320
10533
  normalizePictureSource,
10321
10534
  normalizePrintLineStyles,
10322
10535
  normalizeRuns,
@@ -10400,6 +10613,7 @@ export {
10400
10613
  parseBorderCorners,
10401
10614
  parseCellName,
10402
10615
  parseCjkNumber,
10616
+ parseClipboardHtml,
10403
10617
  parseComplexText,
10404
10618
  parseCssColor,
10405
10619
  parseCubeExpression,
@@ -10458,6 +10672,7 @@ export {
10458
10672
  pictureDataUrl,
10459
10673
  pictureEffectsKey,
10460
10674
  pictureFitRect,
10675
+ pictureGateFor2 as pictureGateFor,
10461
10676
  pictureOpacity,
10462
10677
  pictureSize,
10463
10678
  pictureWithEffects,
@@ -10650,6 +10865,7 @@ export {
10650
10865
  resolveMargins,
10651
10866
  resolveNamedStyle,
10652
10867
  resolvePageSetup2 as resolvePageSetup,
10868
+ resolvePicturePolicy,
10653
10869
  resolvePrintLineStyle,
10654
10870
  resolveRange,
10655
10871
  resolveRefAreas,
@@ -10694,7 +10910,7 @@ export {
10694
10910
  runsEqual,
10695
10911
  runsText,
10696
10912
  runsToHtml2 as runsToHtml,
10697
- safeImageSrc5 as safeImageSrc,
10913
+ safeImageSrc2 as safeImageSrc,
10698
10914
  safeUrl,
10699
10915
  sameAuthor,
10700
10916
  sameFocusCell,
@@ -10996,6 +11212,7 @@ export {
10996
11212
  toNum,
10997
11213
  toPageSetupPatch,
10998
11214
  toStr,
11215
+ toValidSheetName,
10999
11216
  toggleFormControl,
11000
11217
  toggleIsOn,
11001
11218
  toggleNext,
@@ -11034,6 +11251,7 @@ export {
11034
11251
  usesJapaneseEra,
11035
11252
  usesSparkFunction2 as usesSparkFunction,
11036
11253
  validateSolverModel,
11254
+ validationListItems,
11037
11255
  valueFraction,
11038
11256
  verifyPassword,
11039
11257
  versionLabel,
@@ -11051,8 +11269,10 @@ export {
11051
11269
  withCellType,
11052
11270
  withDraftSize,
11053
11271
  withLiveState,
11272
+ withPictureGate2 as withPictureGate,
11054
11273
  withStateStyle,
11055
11274
  wordArtStyle,
11275
+ workbookPictureSources,
11056
11276
  workbookStatistics,
11057
11277
  workbookThemeFonts,
11058
11278
  workflowChoices,