@silurus/ooxml 0.73.2 → 0.74.0
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 +5 -1
- package/dist/{docx-C6i4Ut3d.js → docx-CgeW6eIH.js} +3295 -3289
- package/dist/docx.mjs +2 -2
- package/dist/docx_parser_bg.wasm +0 -0
- package/dist/{find-cursor-CaGrVs7z.js → find-cursor-DtgyGs5V.js} +1358 -1337
- package/dist/{highlight-rect-DZn1OD1x.js → highlight-rect-IjFkGg4X.js} +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{pptx-BVDbKJFr.js → pptx-9C5JKbFv.js} +170 -165
- package/dist/pptx.mjs +2 -2
- package/dist/pptx_parser_bg.wasm +0 -0
- package/dist/render-worker-host-1rPbze5W.js +27 -0
- package/dist/render-worker-host-B-Y1DmN9.js +27 -0
- package/dist/render-worker-host-B5otq5TA.js +27 -0
- package/dist/types/index.d.ts +131 -4
- package/dist/types/pptx.d.ts +8 -2
- package/dist/types/xlsx.d.ts +124 -3
- package/dist/{visible-index-CyuaF_ZP.js → visible-index-C3_3gBg-.js} +1 -1
- package/dist/{xlsx-z4Bs4HLQ.js → xlsx-D-UFFxVs.js} +133 -121
- package/dist/xlsx.mjs +2 -2
- package/dist/xlsx_parser_bg.wasm +0 -0
- package/package.json +1 -1
- package/dist/render-worker-host-Bz0flu1p.js +0 -27
- package/dist/render-worker-host-Custze53.js +0 -27
- package/dist/render-worker-host-G3B-g9HJ.js +0 -27
package/dist/types/index.d.ts
CHANGED
|
@@ -3968,7 +3968,7 @@ declare namespace docx_d_exports {
|
|
|
3968
3968
|
export { AnchorHostMetrics, AutoResizeOptions, BodyElement, BorderSpec, CellBorders, CellElement, ChartRun, ColSpec, ColumnsSpec, DocComment, DocNote, DocParagraph, DocRevision, DocRun, DocSettings, DocTable, DocTableCell, DocTableRow, DocxDocument, DocxDocumentModel, DocxHighlightColors, DocxHighlightMatch, DocxMatchLocation, DocxRunBorder, DocxScrollViewer, DocxScrollViewerOptions, DocxTextRun, DocxTextRunInfo, DocxViewer, DocxViewerOptions, EmbeddedFontRef, FieldRun, FindMatch, FindMatchesOptions, FramePr, GradientStop$1 as GradientStop, HeaderFooter, HeadersFooters, HyperlinkTarget, ImageRun, LineEnd, LineNumbering, LineSpacing, LoadOptions$2 as LoadOptions, NoteRef, NumberingInfo, OoxmlError, OoxmlErrorCode, PTabRun, PageBorderEdge, PageBorders, PageNumType, ParaBorderEdge, ParagraphBorders, PathCmd$2 as PathCmd, RenderPageOptions, RenderPageToBitmapOptions, RubyAnnotation, RunRevision, SectionGeom, SectionProps, ShapeRun, ShapeText$1 as ShapeText, ShapeTextRun$1 as ShapeTextRun, TabStop$1 as TabStop, TableBorders, TblpPr, TextPath, WireRenderPageOptions, autoResize, buildDocxHighlightLayer, buildDocxTextLayer, noteText, openExternalHyperlink };
|
|
3969
3969
|
}
|
|
3970
3970
|
//#endregion
|
|
3971
|
-
//#region dist/.types-work/common-
|
|
3971
|
+
//#region dist/.types-work/common-5TjSrjhP.d.ts
|
|
3972
3972
|
//#region packages/core/src/types/common.d.ts
|
|
3973
3973
|
type PathCmd$1 = {
|
|
3974
3974
|
cmd: 'moveTo';
|
|
@@ -4152,6 +4152,12 @@ interface Stroke {
|
|
|
4152
4152
|
color: string;
|
|
4153
4153
|
/** Width in EMU */
|
|
4154
4154
|
width: number;
|
|
4155
|
+
/** Authored non-solid DrawingML line paint. Solid lines use `color`. */
|
|
4156
|
+
fill?: Exclude<Fill, {
|
|
4157
|
+
fillType: 'image';
|
|
4158
|
+
} | {
|
|
4159
|
+
fillType: 'none';
|
|
4160
|
+
}>;
|
|
4155
4161
|
/** OOXML prstDash value: "dash", "dot", "dashDot", "lgDash", "lgDashDot", etc. */
|
|
4156
4162
|
dashStyle?: string;
|
|
4157
4163
|
/** Canvas line cap normalized from DrawingML/VML (`flat` → `butt`). */
|
|
@@ -4434,7 +4440,7 @@ interface RenderOptions {
|
|
|
4434
4440
|
skipMediaControls?: boolean;
|
|
4435
4441
|
}
|
|
4436
4442
|
//#endregion
|
|
4437
|
-
//#region dist/.types-work/pptx-
|
|
4443
|
+
//#region dist/.types-work/pptx-CJgt70hV.d.ts
|
|
4438
4444
|
//#region packages/pptx/src/types.d.ts
|
|
4439
4445
|
/**
|
|
4440
4446
|
* Picture bullet — ECMA-376 §21.1.2.4.2 `<a:buBlip><a:blip r:embed>`. The
|
|
@@ -6268,7 +6274,7 @@ declare namespace pptx_d_exports {
|
|
|
6268
6274
|
export { AutoResizeOptions, Bevel3d, BlipBullet, Bullet, Camera3d, ChartElement, ChartModel, ChartSeries, DimOptions, Fill, FillRect, FindMatch, FindMatchesOptions, Glow, GradientFill, GradientStop, HiddenSlideMode, HyperlinkTarget, ImageFill, LightRig, LineBreak, LoadOptions$1 as LoadOptions, MediaElement, NoFill, OoxmlError, OoxmlErrorCode, Paragraph, PathCmd$1 as PathCmd, PictureElement, PptxComment, PptxHighlightColors, PptxHighlightMatch, PptxMatchLocation, PptxPresentation, PptxScrollViewer, PptxScrollViewerOptions, PptxTextRunInfo, PptxViewer, PptxViewerOptions, Presentation, PresentationHandle, Reflection, RenderOptions, RenderSlideOptions, RenderSlideToBitmapOptions, Rot3d, Scene3d, Shadow, ShapeElement, Slide, SlideElement, SoftEdge, SolidFill, Sp3d, SpaceLine, Stroke, TabStop, TableCell, TableElement, TableRow, TextBody, TextRect, TextRun, TextRunCallback, TextRunData, TileInfo, autoResize, buildPptxHighlightLayer, buildPptxTextLayer, openExternalHyperlink, renderSlide };
|
|
6269
6275
|
}
|
|
6270
6276
|
//#endregion
|
|
6271
|
-
//#region dist/.types-work/xlsx-
|
|
6277
|
+
//#region dist/.types-work/xlsx-1vWbvQcb.d.ts
|
|
6272
6278
|
//#region packages/xlsx/src/types.d.ts
|
|
6273
6279
|
interface Workbook {
|
|
6274
6280
|
sheets: SheetMeta[];
|
|
@@ -6384,6 +6390,11 @@ interface Worksheet {
|
|
|
6384
6390
|
* caption and the saved item list (with selection flags) so the renderer
|
|
6385
6391
|
* can draw a static button bank without the live pivot engine. */
|
|
6386
6392
|
slicers?: SlicerAnchor[];
|
|
6393
|
+
/** Metadata-only pivot facts (ECMA-376 §18.10). Consumers must treat saved
|
|
6394
|
+
* worksheet cell values and styles as authoritative. */
|
|
6395
|
+
pivotTables?: PivotTableMetadata[];
|
|
6396
|
+
/** Pivot parts skipped because their XML, identity, or location was invalid. */
|
|
6397
|
+
pivotDiagnostics?: PivotDiagnostic[];
|
|
6387
6398
|
/** Sparkline groups (Office 2010+ extension `x14:sparklineGroup`).
|
|
6388
6399
|
* Cross-sheet `<xm:f>` data references are resolved to numeric values at
|
|
6389
6400
|
* parse time, and theme + tint colors are flattened to `#RRGGBB`. */
|
|
@@ -6408,6 +6419,106 @@ interface Worksheet {
|
|
|
6408
6419
|
* every healthy sheet. The renderer paints a visible error overlay. */
|
|
6409
6420
|
parseError?: string;
|
|
6410
6421
|
}
|
|
6422
|
+
interface PivotTableMetadata {
|
|
6423
|
+
name: string;
|
|
6424
|
+
/** Declarative identity fact only; cache resolution uses the pivot part relationship. */
|
|
6425
|
+
cacheId: number;
|
|
6426
|
+
location: PivotLocation;
|
|
6427
|
+
/** Signed field indexes; `-2` is the Values pseudo-field sentinel. */
|
|
6428
|
+
rowFields: number[];
|
|
6429
|
+
columnFields: number[];
|
|
6430
|
+
pageFields: PivotPageField[];
|
|
6431
|
+
dataFields: PivotDataField[];
|
|
6432
|
+
/** Absent when the cache definition could not be parsed; false includes the schema default. */
|
|
6433
|
+
refreshOnLoad?: boolean;
|
|
6434
|
+
/** Cache invalidity flag; absent when the cache definition did not parse. */
|
|
6435
|
+
cacheInvalid?: boolean;
|
|
6436
|
+
cacheDefinitionPart?: string;
|
|
6437
|
+
cacheSource?: PivotCacheSource;
|
|
6438
|
+
status: PivotMetadataStatus;
|
|
6439
|
+
extensionUris?: string[];
|
|
6440
|
+
}
|
|
6441
|
+
interface PivotLocation extends CellRange$1 {
|
|
6442
|
+
firstHeaderRow: number;
|
|
6443
|
+
firstDataRow: number;
|
|
6444
|
+
firstDataCol: number;
|
|
6445
|
+
}
|
|
6446
|
+
interface PivotPageField {
|
|
6447
|
+
field: number;
|
|
6448
|
+
item?: number;
|
|
6449
|
+
name?: string;
|
|
6450
|
+
}
|
|
6451
|
+
interface PivotDataField {
|
|
6452
|
+
field: number;
|
|
6453
|
+
subtotal?: string;
|
|
6454
|
+
rawSubtotal?: string;
|
|
6455
|
+
name?: string;
|
|
6456
|
+
}
|
|
6457
|
+
type PivotCacheSource = {
|
|
6458
|
+
kind: 'worksheet';
|
|
6459
|
+
sheet?: string;
|
|
6460
|
+
reference?: string;
|
|
6461
|
+
name?: string;
|
|
6462
|
+
relationshipId?: string;
|
|
6463
|
+
} | {
|
|
6464
|
+
kind: 'external';
|
|
6465
|
+
} | {
|
|
6466
|
+
kind: 'consolidation';
|
|
6467
|
+
} | {
|
|
6468
|
+
kind: 'scenario';
|
|
6469
|
+
};
|
|
6470
|
+
type PivotMetadataStatus = {
|
|
6471
|
+
state: 'complete';
|
|
6472
|
+
} | {
|
|
6473
|
+
state: 'partial';
|
|
6474
|
+
reasons: PivotPartialReason[];
|
|
6475
|
+
};
|
|
6476
|
+
type PivotPartialReason = {
|
|
6477
|
+
kind: 'missingCacheRelationship';
|
|
6478
|
+
} | {
|
|
6479
|
+
kind: 'malformedCacheRelationships';
|
|
6480
|
+
} | {
|
|
6481
|
+
kind: 'unreadableCacheRelationships';
|
|
6482
|
+
} | {
|
|
6483
|
+
kind: 'externalCacheRelationship';
|
|
6484
|
+
} | {
|
|
6485
|
+
kind: 'ambiguousCacheRelationship';
|
|
6486
|
+
} | {
|
|
6487
|
+
kind: 'unreadableCacheDefinition';
|
|
6488
|
+
} | {
|
|
6489
|
+
kind: 'malformedCacheDefinition';
|
|
6490
|
+
} | {
|
|
6491
|
+
kind: 'malformedField';
|
|
6492
|
+
field: string;
|
|
6493
|
+
} | {
|
|
6494
|
+
kind: 'unsupportedCacheSource';
|
|
6495
|
+
sourceType: string;
|
|
6496
|
+
} | {
|
|
6497
|
+
kind: 'unresolvedWorksheetSourceRelationship';
|
|
6498
|
+
} | {
|
|
6499
|
+
kind: 'unsupportedSemanticFeature';
|
|
6500
|
+
feature: string;
|
|
6501
|
+
};
|
|
6502
|
+
interface PivotDiagnostic {
|
|
6503
|
+
part: string;
|
|
6504
|
+
reason: {
|
|
6505
|
+
kind: 'unreadableWorksheetRelationships';
|
|
6506
|
+
} | {
|
|
6507
|
+
kind: 'malformedWorksheetRelationships';
|
|
6508
|
+
} | {
|
|
6509
|
+
kind: 'malformedPivotRelationship';
|
|
6510
|
+
} | {
|
|
6511
|
+
kind: 'externalPivotRelationship';
|
|
6512
|
+
} | {
|
|
6513
|
+
kind: 'unreadablePart';
|
|
6514
|
+
} | {
|
|
6515
|
+
kind: 'malformedXml';
|
|
6516
|
+
} | {
|
|
6517
|
+
kind: 'missingIdentity';
|
|
6518
|
+
} | {
|
|
6519
|
+
kind: 'invalidLocation';
|
|
6520
|
+
};
|
|
6521
|
+
}
|
|
6411
6522
|
interface SparklineGroup {
|
|
6412
6523
|
/** `line` (default) | `column` | `stem` (win-loss). */
|
|
6413
6524
|
kind: 'line' | 'column' | 'stem';
|
|
@@ -6459,11 +6570,27 @@ interface SlicerAnchor {
|
|
|
6459
6570
|
toRowOff: number;
|
|
6460
6571
|
caption: string;
|
|
6461
6572
|
items: SlicerItem[];
|
|
6573
|
+
/** Resolved custom slicer style. Absent means use the built-in fallback. */
|
|
6574
|
+
style?: SlicerStyle;
|
|
6462
6575
|
}
|
|
6463
6576
|
interface SlicerItem {
|
|
6464
6577
|
name: string;
|
|
6465
6578
|
selected: boolean;
|
|
6466
6579
|
}
|
|
6580
|
+
interface SlicerStyle {
|
|
6581
|
+
whole?: SlicerElementStyle;
|
|
6582
|
+
header?: SlicerElementStyle;
|
|
6583
|
+
selectedItemWithData?: SlicerElementStyle;
|
|
6584
|
+
unselectedItemWithData?: SlicerElementStyle;
|
|
6585
|
+
}
|
|
6586
|
+
interface SlicerElementStyle {
|
|
6587
|
+
fontColor?: string;
|
|
6588
|
+
fontSize?: number;
|
|
6589
|
+
fontBold?: boolean;
|
|
6590
|
+
fontFamily?: string;
|
|
6591
|
+
fillColor?: string;
|
|
6592
|
+
borderColor?: string;
|
|
6593
|
+
}
|
|
6467
6594
|
interface TableInfo {
|
|
6468
6595
|
range: CellRange$1;
|
|
6469
6596
|
styleName: string;
|
|
@@ -8177,7 +8304,7 @@ declare class XlsxViewer implements ZoomableViewer {
|
|
|
8177
8304
|
*/
|
|
8178
8305
|
declare function resolveSharedStrings(ws: Worksheet, sharedStrings: SharedString[]): Worksheet;
|
|
8179
8306
|
declare namespace xlsx_d_exports {
|
|
8180
|
-
export { AutoResizeOptions, Border, BorderEdge, Cell, CellAddress, CellFill, CellFont, CellRange, CellValue, CellXf, CfIcon, CfRule, CfStop, CfValue, ChartAnchor, ChartDataLabelOverride, ChartDataPointOverride, ChartErrBars, ChartManualLayout, ChartModel, ChartSeries, ChartSeriesDataLabels, ConditionalFormat, DataLabelOverride, DataPointOverride, DataValidation, DefinedName, Duotone, Dxf, ErrBars, FindMatch, FindMatchesOptions, GradientFillSpec, HiddenSheetMode, Hyperlink, HyperlinkTarget, ImageAnchor, LegendManualLayout, LoadOptions, ManualLayout, MergeCell, NumFmt, OoxmlError, OoxmlErrorCode, OutlinePr, ParsedWorkbook, PathCmd, PathInfo, PhoneticAlignment, PhoneticProperties, PhoneticRun, PhoneticType, RenderViewportOptions, ResolvedList, Row, Run, RunFont, SelectionMode, SeriesDataLabels, ShapeAnchor, ShapeGeom, ShapeInfo, ShapeParagraph, ShapeText, ShapeTextRun, SharedString, SheetMeta, SheetVisibility, SlicerAnchor, SlicerItem, Sparkline, SparklineGroup, Styles, TableColumnInfo, TableInfo, ViewportRange, WireRenderViewportOptions, WireSizeOverrides, Workbook, Worksheet, XlsxChartSeries, XlsxComment, XlsxMatchLocation, XlsxTextRunInfo, XlsxViewer, XlsxViewerOptions, XlsxWorkbook, autoResize, openExternalHyperlink, resolveSharedStrings };
|
|
8307
|
+
export { AutoResizeOptions, Border, BorderEdge, Cell, CellAddress, CellFill, CellFont, CellRange, CellValue, CellXf, CfIcon, CfRule, CfStop, CfValue, ChartAnchor, ChartDataLabelOverride, ChartDataPointOverride, ChartErrBars, ChartManualLayout, ChartModel, ChartSeries, ChartSeriesDataLabels, ConditionalFormat, DataLabelOverride, DataPointOverride, DataValidation, DefinedName, Duotone, Dxf, ErrBars, FindMatch, FindMatchesOptions, GradientFillSpec, HiddenSheetMode, Hyperlink, HyperlinkTarget, ImageAnchor, LegendManualLayout, LoadOptions, ManualLayout, MergeCell, NumFmt, OoxmlError, OoxmlErrorCode, OutlinePr, ParsedWorkbook, PathCmd, PathInfo, PhoneticAlignment, PhoneticProperties, PhoneticRun, PhoneticType, PivotCacheSource, PivotDataField, PivotDiagnostic, PivotLocation, PivotMetadataStatus, PivotPageField, PivotPartialReason, PivotTableMetadata, RenderViewportOptions, ResolvedList, Row, Run, RunFont, SelectionMode, SeriesDataLabels, ShapeAnchor, ShapeGeom, ShapeInfo, ShapeParagraph, ShapeText, ShapeTextRun, SharedString, SheetMeta, SheetVisibility, SlicerAnchor, SlicerElementStyle, SlicerItem, SlicerStyle, Sparkline, SparklineGroup, Styles, TableColumnInfo, TableInfo, ViewportRange, WireRenderViewportOptions, WireSizeOverrides, Workbook, Worksheet, XlsxChartSeries, XlsxComment, XlsxMatchLocation, XlsxTextRunInfo, XlsxViewer, XlsxViewerOptions, XlsxWorkbook, autoResize, openExternalHyperlink, resolveSharedStrings };
|
|
8181
8308
|
}
|
|
8182
8309
|
//#endregion
|
|
8183
8310
|
export { docx_d_exports as docx, pptx_d_exports as pptx, xlsx_d_exports as xlsx };
|
package/dist/types/pptx.d.ts
CHANGED
|
@@ -1329,7 +1329,7 @@ interface FindMatch<Loc = unknown> {
|
|
|
1329
1329
|
location: Loc;
|
|
1330
1330
|
}
|
|
1331
1331
|
//#endregion
|
|
1332
|
-
//#region dist/.types-work/common-
|
|
1332
|
+
//#region dist/.types-work/common-5TjSrjhP.d.ts
|
|
1333
1333
|
//#region packages/core/src/types/common.d.ts
|
|
1334
1334
|
type PathCmd = {
|
|
1335
1335
|
cmd: 'moveTo';
|
|
@@ -1513,6 +1513,12 @@ interface Stroke {
|
|
|
1513
1513
|
color: string;
|
|
1514
1514
|
/** Width in EMU */
|
|
1515
1515
|
width: number;
|
|
1516
|
+
/** Authored non-solid DrawingML line paint. Solid lines use `color`. */
|
|
1517
|
+
fill?: Exclude<Fill, {
|
|
1518
|
+
fillType: 'image';
|
|
1519
|
+
} | {
|
|
1520
|
+
fillType: 'none';
|
|
1521
|
+
}>;
|
|
1516
1522
|
/** OOXML prstDash value: "dash", "dot", "dashDot", "lgDash", "lgDashDot", etc. */
|
|
1517
1523
|
dashStyle?: string;
|
|
1518
1524
|
/** Canvas line cap normalized from DrawingML/VML (`flat` → `butt`). */
|
|
@@ -1795,7 +1801,7 @@ interface RenderOptions {
|
|
|
1795
1801
|
skipMediaControls?: boolean;
|
|
1796
1802
|
}
|
|
1797
1803
|
//#endregion
|
|
1798
|
-
//#region dist/.types-work/pptx-
|
|
1804
|
+
//#region dist/.types-work/pptx-CJgt70hV.d.ts
|
|
1799
1805
|
//#region packages/pptx/src/types.d.ts
|
|
1800
1806
|
/**
|
|
1801
1807
|
* Picture bullet — ECMA-376 §21.1.2.4.2 `<a:buBlip><a:blip r:embed>`. The
|
package/dist/types/xlsx.d.ts
CHANGED
|
@@ -1297,7 +1297,7 @@ interface FindMatch<Loc = unknown> {
|
|
|
1297
1297
|
location: Loc;
|
|
1298
1298
|
}
|
|
1299
1299
|
//#endregion
|
|
1300
|
-
//#region dist/.types-work/common-
|
|
1300
|
+
//#region dist/.types-work/common-5TjSrjhP.d.ts
|
|
1301
1301
|
type SpaceLine = {
|
|
1302
1302
|
type: 'pct';
|
|
1303
1303
|
val: number;
|
|
@@ -1306,7 +1306,7 @@ type SpaceLine = {
|
|
|
1306
1306
|
val: number;
|
|
1307
1307
|
};
|
|
1308
1308
|
//#endregion
|
|
1309
|
-
//#region dist/.types-work/xlsx-
|
|
1309
|
+
//#region dist/.types-work/xlsx-1vWbvQcb.d.ts
|
|
1310
1310
|
//#region packages/xlsx/src/types.d.ts
|
|
1311
1311
|
interface Workbook {
|
|
1312
1312
|
sheets: SheetMeta[];
|
|
@@ -1422,6 +1422,11 @@ interface Worksheet {
|
|
|
1422
1422
|
* caption and the saved item list (with selection flags) so the renderer
|
|
1423
1423
|
* can draw a static button bank without the live pivot engine. */
|
|
1424
1424
|
slicers?: SlicerAnchor[];
|
|
1425
|
+
/** Metadata-only pivot facts (ECMA-376 §18.10). Consumers must treat saved
|
|
1426
|
+
* worksheet cell values and styles as authoritative. */
|
|
1427
|
+
pivotTables?: PivotTableMetadata[];
|
|
1428
|
+
/** Pivot parts skipped because their XML, identity, or location was invalid. */
|
|
1429
|
+
pivotDiagnostics?: PivotDiagnostic[];
|
|
1425
1430
|
/** Sparkline groups (Office 2010+ extension `x14:sparklineGroup`).
|
|
1426
1431
|
* Cross-sheet `<xm:f>` data references are resolved to numeric values at
|
|
1427
1432
|
* parse time, and theme + tint colors are flattened to `#RRGGBB`. */
|
|
@@ -1446,6 +1451,106 @@ interface Worksheet {
|
|
|
1446
1451
|
* every healthy sheet. The renderer paints a visible error overlay. */
|
|
1447
1452
|
parseError?: string;
|
|
1448
1453
|
}
|
|
1454
|
+
interface PivotTableMetadata {
|
|
1455
|
+
name: string;
|
|
1456
|
+
/** Declarative identity fact only; cache resolution uses the pivot part relationship. */
|
|
1457
|
+
cacheId: number;
|
|
1458
|
+
location: PivotLocation;
|
|
1459
|
+
/** Signed field indexes; `-2` is the Values pseudo-field sentinel. */
|
|
1460
|
+
rowFields: number[];
|
|
1461
|
+
columnFields: number[];
|
|
1462
|
+
pageFields: PivotPageField[];
|
|
1463
|
+
dataFields: PivotDataField[];
|
|
1464
|
+
/** Absent when the cache definition could not be parsed; false includes the schema default. */
|
|
1465
|
+
refreshOnLoad?: boolean;
|
|
1466
|
+
/** Cache invalidity flag; absent when the cache definition did not parse. */
|
|
1467
|
+
cacheInvalid?: boolean;
|
|
1468
|
+
cacheDefinitionPart?: string;
|
|
1469
|
+
cacheSource?: PivotCacheSource;
|
|
1470
|
+
status: PivotMetadataStatus;
|
|
1471
|
+
extensionUris?: string[];
|
|
1472
|
+
}
|
|
1473
|
+
interface PivotLocation extends CellRange$1 {
|
|
1474
|
+
firstHeaderRow: number;
|
|
1475
|
+
firstDataRow: number;
|
|
1476
|
+
firstDataCol: number;
|
|
1477
|
+
}
|
|
1478
|
+
interface PivotPageField {
|
|
1479
|
+
field: number;
|
|
1480
|
+
item?: number;
|
|
1481
|
+
name?: string;
|
|
1482
|
+
}
|
|
1483
|
+
interface PivotDataField {
|
|
1484
|
+
field: number;
|
|
1485
|
+
subtotal?: string;
|
|
1486
|
+
rawSubtotal?: string;
|
|
1487
|
+
name?: string;
|
|
1488
|
+
}
|
|
1489
|
+
type PivotCacheSource = {
|
|
1490
|
+
kind: 'worksheet';
|
|
1491
|
+
sheet?: string;
|
|
1492
|
+
reference?: string;
|
|
1493
|
+
name?: string;
|
|
1494
|
+
relationshipId?: string;
|
|
1495
|
+
} | {
|
|
1496
|
+
kind: 'external';
|
|
1497
|
+
} | {
|
|
1498
|
+
kind: 'consolidation';
|
|
1499
|
+
} | {
|
|
1500
|
+
kind: 'scenario';
|
|
1501
|
+
};
|
|
1502
|
+
type PivotMetadataStatus = {
|
|
1503
|
+
state: 'complete';
|
|
1504
|
+
} | {
|
|
1505
|
+
state: 'partial';
|
|
1506
|
+
reasons: PivotPartialReason[];
|
|
1507
|
+
};
|
|
1508
|
+
type PivotPartialReason = {
|
|
1509
|
+
kind: 'missingCacheRelationship';
|
|
1510
|
+
} | {
|
|
1511
|
+
kind: 'malformedCacheRelationships';
|
|
1512
|
+
} | {
|
|
1513
|
+
kind: 'unreadableCacheRelationships';
|
|
1514
|
+
} | {
|
|
1515
|
+
kind: 'externalCacheRelationship';
|
|
1516
|
+
} | {
|
|
1517
|
+
kind: 'ambiguousCacheRelationship';
|
|
1518
|
+
} | {
|
|
1519
|
+
kind: 'unreadableCacheDefinition';
|
|
1520
|
+
} | {
|
|
1521
|
+
kind: 'malformedCacheDefinition';
|
|
1522
|
+
} | {
|
|
1523
|
+
kind: 'malformedField';
|
|
1524
|
+
field: string;
|
|
1525
|
+
} | {
|
|
1526
|
+
kind: 'unsupportedCacheSource';
|
|
1527
|
+
sourceType: string;
|
|
1528
|
+
} | {
|
|
1529
|
+
kind: 'unresolvedWorksheetSourceRelationship';
|
|
1530
|
+
} | {
|
|
1531
|
+
kind: 'unsupportedSemanticFeature';
|
|
1532
|
+
feature: string;
|
|
1533
|
+
};
|
|
1534
|
+
interface PivotDiagnostic {
|
|
1535
|
+
part: string;
|
|
1536
|
+
reason: {
|
|
1537
|
+
kind: 'unreadableWorksheetRelationships';
|
|
1538
|
+
} | {
|
|
1539
|
+
kind: 'malformedWorksheetRelationships';
|
|
1540
|
+
} | {
|
|
1541
|
+
kind: 'malformedPivotRelationship';
|
|
1542
|
+
} | {
|
|
1543
|
+
kind: 'externalPivotRelationship';
|
|
1544
|
+
} | {
|
|
1545
|
+
kind: 'unreadablePart';
|
|
1546
|
+
} | {
|
|
1547
|
+
kind: 'malformedXml';
|
|
1548
|
+
} | {
|
|
1549
|
+
kind: 'missingIdentity';
|
|
1550
|
+
} | {
|
|
1551
|
+
kind: 'invalidLocation';
|
|
1552
|
+
};
|
|
1553
|
+
}
|
|
1449
1554
|
interface SparklineGroup {
|
|
1450
1555
|
/** `line` (default) | `column` | `stem` (win-loss). */
|
|
1451
1556
|
kind: 'line' | 'column' | 'stem';
|
|
@@ -1497,11 +1602,27 @@ interface SlicerAnchor {
|
|
|
1497
1602
|
toRowOff: number;
|
|
1498
1603
|
caption: string;
|
|
1499
1604
|
items: SlicerItem[];
|
|
1605
|
+
/** Resolved custom slicer style. Absent means use the built-in fallback. */
|
|
1606
|
+
style?: SlicerStyle;
|
|
1500
1607
|
}
|
|
1501
1608
|
interface SlicerItem {
|
|
1502
1609
|
name: string;
|
|
1503
1610
|
selected: boolean;
|
|
1504
1611
|
}
|
|
1612
|
+
interface SlicerStyle {
|
|
1613
|
+
whole?: SlicerElementStyle;
|
|
1614
|
+
header?: SlicerElementStyle;
|
|
1615
|
+
selectedItemWithData?: SlicerElementStyle;
|
|
1616
|
+
unselectedItemWithData?: SlicerElementStyle;
|
|
1617
|
+
}
|
|
1618
|
+
interface SlicerElementStyle {
|
|
1619
|
+
fontColor?: string;
|
|
1620
|
+
fontSize?: number;
|
|
1621
|
+
fontBold?: boolean;
|
|
1622
|
+
fontFamily?: string;
|
|
1623
|
+
fillColor?: string;
|
|
1624
|
+
borderColor?: string;
|
|
1625
|
+
}
|
|
1505
1626
|
interface TableInfo {
|
|
1506
1627
|
range: CellRange$1;
|
|
1507
1628
|
styleName: string;
|
|
@@ -3215,4 +3336,4 @@ declare class XlsxViewer implements ZoomableViewer {
|
|
|
3215
3336
|
*/
|
|
3216
3337
|
declare function resolveSharedStrings(ws: Worksheet, sharedStrings: SharedString[]): Worksheet;
|
|
3217
3338
|
//#endregion
|
|
3218
|
-
export { type AutoResizeOptions, type Border, type BorderEdge, type Cell, type CellAddress, type CellFill, type CellFont, type CellRange, type CellValue, type CellXf, type CfIcon, type CfRule, type CfStop, type CfValue, type ChartAnchor, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartErrBars, type ChartManualLayout, type ChartModel, type ChartSeries, type ChartSeriesDataLabels, type ConditionalFormat, type DataLabelOverride, type DataPointOverride, type DataValidation, type DefinedName, type Duotone, type Dxf, type ErrBars, type FindMatch, type FindMatchesOptions, type GradientFillSpec, type HiddenSheetMode, type Hyperlink, type HyperlinkTarget, type ImageAnchor, type LegendManualLayout, type LoadOptions, type ManualLayout, type MergeCell, type NumFmt, OoxmlError, type OoxmlErrorCode, type OutlinePr, type ParsedWorkbook, type PathCmd, type PathInfo, type PhoneticAlignment, type PhoneticProperties, type PhoneticRun, type PhoneticType, type RenderViewportOptions, type ResolvedList, type Row, type Run, type RunFont, type SelectionMode, type SeriesDataLabels, type ShapeAnchor, type ShapeGeom, type ShapeInfo, type ShapeParagraph, type ShapeText, type ShapeTextRun, type SharedString, type SheetMeta, type SheetVisibility, type SlicerAnchor, type SlicerItem, type Sparkline, type SparklineGroup, type Styles, type TableColumnInfo, type TableInfo, type ViewportRange, type WireRenderViewportOptions, type WireSizeOverrides, type Workbook, type Worksheet, type XlsxChartSeries, type XlsxComment, type XlsxMatchLocation, type XlsxTextRunInfo, XlsxViewer, type XlsxViewerOptions, XlsxWorkbook, autoResize, openExternalHyperlink, resolveSharedStrings };
|
|
3339
|
+
export { type AutoResizeOptions, type Border, type BorderEdge, type Cell, type CellAddress, type CellFill, type CellFont, type CellRange, type CellValue, type CellXf, type CfIcon, type CfRule, type CfStop, type CfValue, type ChartAnchor, type ChartDataLabelOverride, type ChartDataPointOverride, type ChartErrBars, type ChartManualLayout, type ChartModel, type ChartSeries, type ChartSeriesDataLabels, type ConditionalFormat, type DataLabelOverride, type DataPointOverride, type DataValidation, type DefinedName, type Duotone, type Dxf, type ErrBars, type FindMatch, type FindMatchesOptions, type GradientFillSpec, type HiddenSheetMode, type Hyperlink, type HyperlinkTarget, type ImageAnchor, type LegendManualLayout, type LoadOptions, type ManualLayout, type MergeCell, type NumFmt, OoxmlError, type OoxmlErrorCode, type OutlinePr, type ParsedWorkbook, type PathCmd, type PathInfo, type PhoneticAlignment, type PhoneticProperties, type PhoneticRun, type PhoneticType, type PivotCacheSource, type PivotDataField, type PivotDiagnostic, type PivotLocation, type PivotMetadataStatus, type PivotPageField, type PivotPartialReason, type PivotTableMetadata, type RenderViewportOptions, type ResolvedList, type Row, type Run, type RunFont, type SelectionMode, type SeriesDataLabels, type ShapeAnchor, type ShapeGeom, type ShapeInfo, type ShapeParagraph, type ShapeText, type ShapeTextRun, type SharedString, type SheetMeta, type SheetVisibility, type SlicerAnchor, type SlicerElementStyle, type SlicerItem, type SlicerStyle, type Sparkline, type SparklineGroup, type Styles, type TableColumnInfo, type TableInfo, type ViewportRange, type WireRenderViewportOptions, type WireSizeOverrides, type Workbook, type Worksheet, type XlsxChartSeries, type XlsxComment, type XlsxMatchLocation, type XlsxTextRunInfo, XlsxViewer, type XlsxViewerOptions, XlsxWorkbook, autoResize, openExternalHyperlink, resolveSharedStrings };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { X as e, it as t, ot as n, tt as r } from "./find-cursor-
|
|
1
|
+
import { X as e, it as t, ot as n, tt as r } from "./find-cursor-DtgyGs5V.js";
|
|
2
2
|
//#region packages/core/src/image/duotone-bitmap-by-path.ts
|
|
3
3
|
function i(e, t) {
|
|
4
4
|
return t ? `${e}|duo:${t.clr1}:${t.clr2}` : e;
|