@office-open/core 0.10.2 → 0.10.3
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/chart/index.d.mts +1 -1
- package/dist/descriptor/index.d.mts +2 -2
- package/dist/descriptor/index.mjs +2 -2
- package/dist/{descriptor-BdWTH1vv.mjs → descriptor-DAER86Rt.mjs} +1 -26
- package/dist/drawingml/index.d.mts +2 -2
- package/dist/drawingml/index.mjs +2 -2
- package/dist/{index-vEeWkbm5.d.mts → index-3STznXzZ.d.mts} +1 -1
- package/dist/{index-DEeO4sOq.d.mts → index-BkEFbS8B.d.mts} +40 -26
- package/dist/{index-BEQ12eyX.d.mts → index-CN0YjNSx.d.mts} +1 -1
- package/dist/{index-L82O3q6V.d.mts → index-CpNwAcem.d.mts} +22 -23
- package/dist/{index-Bpw3LFuI.d.mts → index-Dl4z-M1N.d.mts} +187 -125
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +4 -4
- package/dist/patch/index.d.mts +2 -2
- package/dist/patch/index.mjs +2 -2
- package/dist/{patch-DocIv0Sn.mjs → patch-DEPPafeB.mjs} +49 -4
- package/dist/{src-DaZbVB3f.mjs → src-BPRAxccL.mjs} +1359 -1257
- package/dist/theme/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/chart/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as ChartCollection, a as ChartSpaceOptions, c as DataLabelsOptions, d as ErrorBarType, f as ErrorValueType, g as View3DOptions, h as TrendlineType, i as ChartSeriesData, l as ErrorBarDirection, m as TrendlineOptions, n as AxisChartType, o as ChartType, p as TimeUnit, r as BubbleSeriesData, s as DataLabelPosition, t as chartSpaceDesc, u as ErrorBarOptions, v as ChartData } from "../index-
|
|
1
|
+
import { _ as ChartCollection, a as ChartSpaceOptions, c as DataLabelsOptions, d as ErrorBarType, f as ErrorValueType, g as View3DOptions, h as TrendlineType, i as ChartSeriesData, l as ErrorBarDirection, m as TrendlineOptions, n as AxisChartType, o as ChartType, p as TimeUnit, r as BubbleSeriesData, s as DataLabelPosition, t as chartSpaceDesc, u as ErrorBarOptions, v as ChartData } from "../index-CN0YjNSx.mjs";
|
|
2
2
|
export { AxisChartType, BubbleSeriesData, ChartCollection, ChartData, ChartSeriesData, ChartSpaceOptions, ChartType, DataLabelPosition, DataLabelsOptions, ErrorBarDirection, ErrorBarOptions, ErrorBarType, ErrorValueType, TimeUnit, TrendlineOptions, TrendlineType, View3DOptions, chartSpaceDesc };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
export { type CustomDescriptor, type Descriptor, type DescriptorFieldSpec,
|
|
1
|
+
import { _ as Descriptor, a as diffTagSets, c as FIELD_SPECS, d as boolEncode, f as enumDecode, g as CustomDescriptor, h as stringify, i as checkOrder, l as findFieldSpec, m as parse, n as OrderViolation, o as roundTripFields, p as enumEncode, r as RoundTripResult, s as DescriptorFieldSpec, t as FieldConsistencyReport, u as boolDecode, v as ReadContext, y as WriteContext } from "../index-CpNwAcem.mjs";
|
|
2
|
+
export { type CustomDescriptor, type Descriptor, type DescriptorFieldSpec, FIELD_SPECS, type FieldConsistencyReport, type OrderViolation, type ReadContext, type RoundTripResult, type WriteContext, boolDecode, boolEncode, checkOrder, diffTagSets, enumDecode, enumEncode, findFieldSpec, parse, roundTripFields, stringify };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as roundTripFields, c as
|
|
2
|
-
export {
|
|
1
|
+
import { a as roundTripFields, c as enumDecode, d as stringify, i as diffTagSets, l as enumEncode, n as findFieldSpec, o as boolDecode, r as checkOrder, s as boolEncode, t as FIELD_SPECS, u as parse } from "../descriptor-DAER86Rt.mjs";
|
|
2
|
+
export { FIELD_SPECS, boolDecode, boolEncode, checkOrder, diffTagSets, enumDecode, enumEncode, findFieldSpec, parse, roundTripFields, stringify };
|
|
@@ -44,31 +44,6 @@ function invertRecord(map) {
|
|
|
44
44
|
return result;
|
|
45
45
|
}
|
|
46
46
|
//#endregion
|
|
47
|
-
//#region src/descriptor/registry.ts
|
|
48
|
-
var DescriptorRegistry = class DescriptorRegistry {
|
|
49
|
-
static _map = /* @__PURE__ */ new Map();
|
|
50
|
-
/** Register a descriptor with its XML tag. */
|
|
51
|
-
static register(tag, desc) {
|
|
52
|
-
DescriptorRegistry._map.set(tag, desc);
|
|
53
|
-
}
|
|
54
|
-
/** Look up a descriptor by XML tag. */
|
|
55
|
-
static get(tag) {
|
|
56
|
-
return DescriptorRegistry._map.get(tag);
|
|
57
|
-
}
|
|
58
|
-
/** Get all registered tags. */
|
|
59
|
-
static tags() {
|
|
60
|
-
return new Set(DescriptorRegistry._map.keys());
|
|
61
|
-
}
|
|
62
|
-
/** Check if a tag is registered. */
|
|
63
|
-
static has(tag) {
|
|
64
|
-
return DescriptorRegistry._map.has(tag);
|
|
65
|
-
}
|
|
66
|
-
/** Get the number of registered descriptors. */
|
|
67
|
-
static get size() {
|
|
68
|
-
return DescriptorRegistry._map.size;
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
//#endregion
|
|
72
47
|
//#region src/descriptor/field-consistency.ts
|
|
73
48
|
/**
|
|
74
49
|
* Field-consistency helpers for descriptor round-trip auditing.
|
|
@@ -441,4 +416,4 @@ function findFieldSpec(id) {
|
|
|
441
416
|
return FIELD_SPECS.find((s) => s.id === id);
|
|
442
417
|
}
|
|
443
418
|
//#endregion
|
|
444
|
-
export { roundTripFields as a,
|
|
419
|
+
export { roundTripFields as a, enumDecode as c, stringify$1 as d, diffTagSets as i, enumEncode as l, findFieldSpec as n, boolDecode as o, checkOrder as r, boolEncode as s, FIELD_SPECS as t, parse$1 as u };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as createLineColorList, $a as
|
|
2
|
-
export { type AdjustListOptions, type AdjustOptions, type AnimateOneByOneOptions, AnimateOneByOneValue, type AnimationLevelOptions, AnimationLevelValue, type BackdropOptions, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, type CameraOptions, type ColorListOptions, ColorMethod, type ColorTransformOptions, type ColorsDefinitionHeaderListOptions, type ColorsDefinitionHeaderOptions, CompoundLine, type ConnectionSite, type CustomGeometryOptions, type DashStop, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtensionListOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelationshipIdsOptions, type DiagramStyleLabelOptions, type DiagramStyleOptions, type DiagramTextPropertiesOptions, type EffectContainerType, type EffectDagOptions, type EffectExtent, type EffectListOptions, type FillOptions, type FillOverlayEffectOptions, FontCollectionIndex, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GraphicFrameLockingOptions, type GroupLockingOptions, type GroupTransform2DOptions, type HierBranchOptions, HierBranchStyle, type HslColorOptions, HueDirection, type InnerShadowEffectOptions, type LayoutDefinitionHeaderListOptions, type LayoutDefinitionHeaderOptions, type LightRigOptions, LineCap, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MaxChildrenOptions, type MediaDataTransformation, type MediaTransformation, type OnOffStyleType, type OrgChartOptions, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, type PictureLockingOptions, type Point3D, type PreferredChildrenOptions, type PresentationLayoutVariablesOptions, PresetColor, type PresetColorOptions, PresetDash, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, RectAlignment, type ReflectionEffectOptions, type RelativeRect, type RgbColorOptions, type ScRgbColorOptions, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, type ShapeLockingOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, type StyleDefinitionHeaderListOptions, type StyleDefinitionHeaderOptions, StyleMatrixIndex, type StyleMatrixReferenceOptions, SystemColor, type SystemColorOptions, type TableCellBorderOptions, type TableCellStyleOptions, type TablePartStyleOptions, type TableStyleListOptions, type TableStyleOptions, type TableStyleRegion, type TableTextStyleOptions, type ThemeableLineStyleOptions, TileAlignment, TileFlipMode, type TileOptions, type Transform2DOptions, type Vector3D, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createCustomDash, createCustomGeometry, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList, createExtentionList, createFillColorList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefinitionHeader, createLayoutDefinitionHeaderList, createLineColorList, createLineEnd, createMaxChildren, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPreferredChildren, createPresentationLayoutVariables, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefinitionHeader, createStyleDefinitionHeaderList, createStyleLabel, createSystemColor, createTableStyle, createTableStyleList, createTextEffectColorList, createTextFillColorList, createTextLineColorList, createTileInfo, createTransform2D, createTransformation, customGeometryDesc, diagramExtensionListDesc, diagramRelationshipIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc,
|
|
1
|
+
import { $ as createLineColorList, $a as createGradientFill, $n as calculateEffectExtent, $t as TableStyleListOptions, A as scRgbColorDesc, An as stringifyAdjustmentValues, Ar as createCustomDash, At as PresentationLayoutVariablesOptions, B as createDiagramTextProperties, Ba as BlipFillMediaData, Bn as LightRigOptions, Bt as GraphicFrameLockingOptions, C as fillDesc, Cn as PathCommand, Co as createPresetColor, Cr as createOutline, Ct as AnimationLevelOptions, D as parseColorChoice, Dn as PresetGeometryOptions, Do as createColorTransforms, Dr as LineEndWidth, Dt as MaxChildrenOptions, E as hslColorDesc, En as createCustomGeometry, Eo as ColorTransformOptions, Er as LineEndType, Et as HierBranchStyle, F as DiagramExtensionListOptions, Fa as PatternFillOptions, Fn as BevelPresetType, Ft as createHierBranch, G as DiagramStyleLabelOptions, Ga as GradientFillOptions, Gn as createScene3D, Gt as createGroupLocking, H as createDiagramRelationshipIds, Ha as GradientStopOptions, Hn as Scene3DOptions, Ht as PictureLockingOptions, I as DiagramExtensionOptions, Ia as PresetPattern, In as createBevel, It as createMaxChildren, J as HueDirection, Ja as LinearShadeOptions, Jn as EffectDagOptions, Jt as OnOffStyleType, K as DiagramStyleOptions, Ka as GradientShadeOptions, Kn as createSoftEdgeEffect, Kt as createPictureLocking, L as DiagramTextPropertiesOptions, La as createPatternFill, Ln as createBottomBevel, Lt as createOrgChart, M as solidFillDesc, Mn as Shape3DOptions, Mt as createAdjustList, N as stringifyColorChoice, Nn as createShape3D, Nt as createAnimateOneByOne, O as presetColorDesc, On as stringifyPresetGeometry, Or as createLineEnd, Ot as OrgChartOptions, P as systemColorDesc, Pa as createGroupFill, Pn as BevelOptions, Pt as createAnimationLevel, Q as createFillColorList, Qa as TileFlipMode, Qn as EffectListOptions, Qt as TablePartStyleOptions, R as createDiagramExtensionList, Ra as createNoFill, Rn as BackdropOptions, Rt as createPreferredChildren, S as outlineDesc, Sn as GeomRect, So as PresetColorOptions, Sr as PresetDash, St as AnimateOneByOneValue, T as patternFillDesc, Tn as PathOptions, To as createHslColor, Tr as LineEndOptions, Tt as HierBranchOptions, U as ColorListOptions, Ua as buildFill, Un as SphereCoords, Ut as ShapeLockingOptions, V as DiagramRelationshipIdsOptions, Va as FillOptions, Vn as Point3D, Vt as GroupLockingOptions, W as ColorMethod, Wa as extractBlipFillMedia, Wn as Vector3D, Wt as createGraphicFrameLocking, X as createDiagramStyle, Xa as PathShadeType, Xn as BlurEffectOptions, Xt as TableCellBorderOptions, Y as StyleMatrixIndex, Ya as PathShadeOptions, Yn as createEffectDag, Yt as StyleMatrixReferenceOptions, Z as createEffectColorList, Za as RelativeRect, Zn as EffectExtent, Zt as TableCellStyleOptions, _ as graphicFrameLockingDesc, _n as createBlipFill, _o as ScRgbColorOptions, _r as LineCap, _t as createStyleDefinitionHeader, a as blipDesc, an as createTableStyleList, ao as createSourceRectangle, ar as createPresetShadowEffect, at as ColorsDefinitionHeaderOptions, b as shapeLockingDesc, bn as ConnectionSite, bo as createRgbColor, br as OutlineOptions, bt as AdjustOptions, c as stretchDesc, cn as MediaTransformation, co as SolidFillOptions, cr as createOuterShadowEffect, ct as DiagramNameOptions, d as scene3DDesc, dn as Transform2DOptions, do as SystemColor, dr as GlowEffectOptions, dt as StyleDefinitionHeaderListOptions, en as TableStyleOptions, eo as createGradientStop, er as createEffectList, et as createStyleLabel, f as shape3DDesc, fn as createGroupTransform2D, fo as SystemColorOptions, fr as createGlowEffect, ft as StyleDefinitionHeaderOptions, g as presetGeometryDesc, gn as BlipFillOptions, go as createSchemeColor, gr as CompoundLine, gt as createLayoutDefinitionHeaderList, h as customGeometryDesc, hn as createExtentionList, ho as SchemeColorOptions, hr as createFillOverlayEffect, ht as createLayoutDefinitionHeader, i as presentationLayoutVariablesDesc, in as createTableStyle, io as SourceRectangleOptions, ir as PresetShadowVal, it as ColorsDefinitionHeaderListOptions, j as schemeColorDesc, jn as PresetMaterialType, jt as createAdjust, k as rgbColorDesc, kn as GeometryGuide, kr as DashStop, kt as PreferredChildrenOptions, l as tileDesc, ln as createTransformation, lo as createColorElement, lr as InnerShadowEffectOptions, lt as LayoutDefinitionHeaderListOptions, m as transform2DDesc, mn as stringifyStretch, mo as SchemeColor, mr as FillOverlayEffectOptions, mt as createColorsDefinitionHeaderList, n as diagramRelationshipIdsDesc, nn as TableTextStyleOptions, no as TileOptions, nr as createReflectionEffect, nt as createTextFillColorList, o as blipFillDesc, on as parseTableStyleList, oo as BlipEffectsOptions, or as OuterShadowEffectOptions, ot as DiagramCategoryOptions, p as groupTransform2DDesc, pn as createTransform2D, po as createSystemColor, pr as BlendMode, pt as createColorsDefinitionHeader, q as FontCollectionIndex, qa as GradientStop, qn as EffectContainerType, qt as createShapeLocking, r as diagramStyleDesc, rn as ThemeableLineStyleOptions, ro as createTileInfo, rr as PresetShadowEffectOptions, rt as createTextLineColorList, s as sourceRectangleDesc, sn as MediaDataTransformation, so as createBlipEffects, sr as RectAlignment, st as DiagramDescriptionOptions, t as diagramExtensionListDesc, tn as TableStyleRegion, to as TileAlignment, tr as ReflectionEffectOptions, tt as createTextEffectColorList, u as bevelDesc, un as GroupTransform2DOptions, uo as createSolidFill, ur as createInnerShadowEffect, ut as LayoutDefinitionHeaderOptions, v as groupLockingDesc, vn as BlipOptions, vo as createScRgbColor, vr as LineJoin, vt as createStyleDefinitionHeaderList, w as gradientFillDesc, wn as PathFillMode, wo as HslColorOptions, wr as LineEndLength, wt as AnimationLevelValue, x as effectListDesc, xn as CustomGeometryOptions, xo as PresetColor, xr as PenAlignment, xt as AnimateOneByOneOptions, y as pictureLockingDesc, yn as createBlip, yo as RgbColorOptions, yr as OutlineFillProperties, yt as AdjustListOptions, z as createDiagramShape3D, za as BlipFillConfigOptions, zn as CameraOptions, zt as createPresentationLayoutVariables } from "../index-Dl4z-M1N.mjs";
|
|
2
|
+
export { type AdjustListOptions, type AdjustOptions, type AnimateOneByOneOptions, AnimateOneByOneValue, type AnimationLevelOptions, AnimationLevelValue, type BackdropOptions, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, type CameraOptions, type ColorListOptions, ColorMethod, type ColorTransformOptions, type ColorsDefinitionHeaderListOptions, type ColorsDefinitionHeaderOptions, CompoundLine, type ConnectionSite, type CustomGeometryOptions, type DashStop, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtensionListOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelationshipIdsOptions, type DiagramStyleLabelOptions, type DiagramStyleOptions, type DiagramTextPropertiesOptions, type EffectContainerType, type EffectDagOptions, type EffectExtent, type EffectListOptions, type FillOptions, type FillOverlayEffectOptions, FontCollectionIndex, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GraphicFrameLockingOptions, type GroupLockingOptions, type GroupTransform2DOptions, type HierBranchOptions, HierBranchStyle, type HslColorOptions, HueDirection, type InnerShadowEffectOptions, type LayoutDefinitionHeaderListOptions, type LayoutDefinitionHeaderOptions, type LightRigOptions, LineCap, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MaxChildrenOptions, type MediaDataTransformation, type MediaTransformation, type OnOffStyleType, type OrgChartOptions, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, type PictureLockingOptions, type Point3D, type PreferredChildrenOptions, type PresentationLayoutVariablesOptions, PresetColor, type PresetColorOptions, PresetDash, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, RectAlignment, type ReflectionEffectOptions, type RelativeRect, type RgbColorOptions, type ScRgbColorOptions, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, type ShapeLockingOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, type StyleDefinitionHeaderListOptions, type StyleDefinitionHeaderOptions, StyleMatrixIndex, type StyleMatrixReferenceOptions, SystemColor, type SystemColorOptions, type TableCellBorderOptions, type TableCellStyleOptions, type TablePartStyleOptions, type TableStyleListOptions, type TableStyleOptions, type TableStyleRegion, type TableTextStyleOptions, type ThemeableLineStyleOptions, TileAlignment, TileFlipMode, type TileOptions, type Transform2DOptions, type Vector3D, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createCustomDash, createCustomGeometry, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList, createExtentionList, createFillColorList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefinitionHeader, createLayoutDefinitionHeaderList, createLineColorList, createLineEnd, createMaxChildren, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPreferredChildren, createPresentationLayoutVariables, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefinitionHeader, createStyleDefinitionHeaderList, createStyleLabel, createSystemColor, createTableStyle, createTableStyleList, createTextEffectColorList, createTextFillColorList, createTextLineColorList, createTileInfo, createTransform2D, createTransformation, customGeometryDesc, diagramExtensionListDesc, diagramRelationshipIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hslColorDesc, outlineDesc, parseColorChoice, parseTableStyleList, patternFillDesc, pictureLockingDesc, presentationLayoutVariablesDesc, presetColorDesc, presetGeometryDesc, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyColorChoice, stringifyPresetGeometry, stringifyStretch, systemColorDesc, tileDesc, transform2DDesc };
|
package/dist/drawingml/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { AnimateOneByOneValue, AnimationLevelValue, BevelPresetType, BlendMode, ColorMethod, CompoundLine, FontCollectionIndex, HierBranchStyle, HueDirection, LineCap, LineEndLength, LineEndType, LineEndWidth, LineJoin, PathShadeType, PenAlignment, PresetColor, PresetDash, PresetMaterialType, PresetPattern, PresetShadowVal, RectAlignment, SchemeColor, StyleMatrixIndex, SystemColor, TileAlignment, TileFlipMode, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createCustomDash, createCustomGeometry, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList, createExtentionList, createFillColorList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefinitionHeader, createLayoutDefinitionHeaderList, createLineColorList, createLineEnd, createMaxChildren, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPreferredChildren, createPresentationLayoutVariables, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefinitionHeader, createStyleDefinitionHeaderList, createStyleLabel, createSystemColor, createTableStyle, createTableStyleList, createTextEffectColorList, createTextFillColorList, createTextLineColorList, createTileInfo, createTransform2D, createTransformation, customGeometryDesc, diagramExtensionListDesc, diagramRelationshipIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc,
|
|
1
|
+
import { $ as stringifyColorChoice, $n as createTileInfo, A as customGeometryDesc, An as createFillOverlayEffect, Ar as SchemeColor, At as createHierBranch, B as patternFillDesc, Bn as createLineEnd, Bt as createTableStyleList, C as diagramStyleDesc, Cn as PresetShadowVal, Ct as AnimateOneByOneValue, D as shape3DDesc, Dn as createInnerShadowEffect, Dr as createSolidFill, Dt as createAdjustList, E as scene3DDesc, En as createOuterShadowEffect, Er as createColorElement, Et as createAdjust, F as shapeLockingDesc, Fn as PresetDash, Fr as createPresetColor, Ft as createGraphicFrameLocking, G as tileDesc, Gn as extractBlipFillMedia, H as blipFillDesc, Hn as createGroupFill, Ht as createTransformation, I as effectListDesc, In as createOutline, Ir as createHslColor, It as createGroupLocking, J as presetColorDesc, Jn as PathShadeType, K as hslColorDesc, Kn as PresetPattern, L as outlineDesc, Ln as LineEndLength, Lr as createColorTransforms, Lt as createPictureLocking, M as graphicFrameLockingDesc, Mn as LineCap, Mr as createScRgbColor, Mt as createOrgChart, N as groupLockingDesc, Nn as LineJoin, Nr as createRgbColor, Nt as createPreferredChildren, O as groupTransform2DDesc, On as createGlowEffect, Or as SystemColor, Ot as createAnimateOneByOne, P as pictureLockingDesc, Pn as PenAlignment, Pr as PresetColor, Pt as createPresentationLayoutVariables, Q as solidFillDesc, Qn as TileAlignment, R as fillDesc, Rn as LineEndType, Rt as createShapeLocking, S as diagramRelationshipIdsDesc, Sn as createReflectionEffect, St as createStyleDefinitionHeaderList, T as bevelDesc, Tn as RectAlignment, Tt as HierBranchStyle, U as sourceRectangleDesc, Un as createNoFill, V as blipDesc, Vn as createCustomDash, Vt as parseTableStyleList, W as stretchDesc, Wn as buildFill, X as scRgbColorDesc, Xn as createGradientFill, Y as rgbColorDesc, Yn as TileFlipMode, Z as schemeColorDesc, Zn as createGradientStop, _n as createScene3D, _t as createColorsDefinitionHeader, an as stringifyStretch, at as ColorMethod, bn as createEffectList, bt as createLayoutDefinitionHeaderList, cn as createExtentionList, ct as StyleMatrixIndex, dn as stringifyAdjustmentValues, dt as createFillColorList, et as systemColorDesc, fn as PresetMaterialType, ft as createLineColorList, gn as createBottomBevel, gt as createTextLineColorList, hn as createBevel, ht as createTextFillColorList, in as createTransform2D, it as createDiagramRelationshipIds, j as presetGeometryDesc, jn as CompoundLine, jr as createSchemeColor, jt as createMaxChildren, k as transform2DDesc, kn as BlendMode, kr as createSystemColor, kt as createAnimationLevel, ln as createCustomGeometry, lt as createDiagramStyle, mn as BevelPresetType, mt as createTextEffectColorList, nt as createDiagramShape3D, on as createBlipFill, ot as FontCollectionIndex, pn as createShape3D, pt as createStyleLabel, q as parseColorChoice, qn as createPatternFill, rn as createGroupTransform2D, rt as createDiagramTextProperties, sn as createBlip, st as HueDirection, tt as createDiagramExtensionList, un as stringifyPresetGeometry, ut as createEffectColorList, vn as createEffectDag, vr as createSourceRectangle, vt as createColorsDefinitionHeaderList, w as presentationLayoutVariablesDesc, wn as createPresetShadowEffect, wt as AnimationLevelValue, x as diagramExtensionListDesc, xn as createSoftEdgeEffect, xt as createStyleDefinitionHeader, yn as calculateEffectExtent, yr as createBlipEffects, yt as createLayoutDefinitionHeader, z as gradientFillDesc, zn as LineEndWidth, zt as createTableStyle } from "../src-BPRAxccL.mjs";
|
|
2
|
+
export { AnimateOneByOneValue, AnimationLevelValue, BevelPresetType, BlendMode, ColorMethod, CompoundLine, FontCollectionIndex, HierBranchStyle, HueDirection, LineCap, LineEndLength, LineEndType, LineEndWidth, LineJoin, PathShadeType, PenAlignment, PresetColor, PresetDash, PresetMaterialType, PresetPattern, PresetShadowVal, RectAlignment, SchemeColor, StyleMatrixIndex, SystemColor, TileAlignment, TileFlipMode, bevelDesc, blipDesc, blipFillDesc, buildFill, calculateEffectExtent, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createCustomDash, createCustomGeometry, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList, createExtentionList, createFillColorList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefinitionHeader, createLayoutDefinitionHeaderList, createLineColorList, createLineEnd, createMaxChildren, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPreferredChildren, createPresentationLayoutVariables, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefinitionHeader, createStyleDefinitionHeaderList, createStyleLabel, createSystemColor, createTableStyle, createTableStyleList, createTextEffectColorList, createTextFillColorList, createTextLineColorList, createTileInfo, createTransform2D, createTransformation, customGeometryDesc, diagramExtensionListDesc, diagramRelationshipIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hslColorDesc, outlineDesc, parseColorChoice, parseTableStyleList, patternFillDesc, pictureLockingDesc, presentationLayoutVariablesDesc, presetColorDesc, presetGeometryDesc, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyColorChoice, stringifyPresetGeometry, stringifyStretch, systemColorDesc, tileDesc, transform2DDesc };
|
|
@@ -9,6 +9,31 @@ declare function isBase64DataURL(input: string): boolean;
|
|
|
9
9
|
/** Normalize any supported binary input to a `Uint8Array`. */
|
|
10
10
|
declare function toUint8Array(data: DataType): Uint8Array;
|
|
11
11
|
//#endregion
|
|
12
|
+
//#region src/opc/output.d.ts
|
|
13
|
+
/**
|
|
14
|
+
* Output type definitions for OOXML document export.
|
|
15
|
+
*
|
|
16
|
+
* @module
|
|
17
|
+
*/
|
|
18
|
+
interface OutputByType {
|
|
19
|
+
base64: string;
|
|
20
|
+
string: string;
|
|
21
|
+
text: string;
|
|
22
|
+
binarystring: string;
|
|
23
|
+
array: readonly number[];
|
|
24
|
+
uint8array: Uint8Array;
|
|
25
|
+
arraybuffer: ArrayBuffer;
|
|
26
|
+
blob: Blob;
|
|
27
|
+
nodebuffer: Buffer;
|
|
28
|
+
}
|
|
29
|
+
type OutputType = keyof OutputByType;
|
|
30
|
+
declare const OoxmlMimeType: {
|
|
31
|
+
readonly DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
32
|
+
readonly PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
|
33
|
+
readonly XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
34
|
+
};
|
|
35
|
+
declare const convertOutput: <T extends OutputType>(data: Uint8Array, type: T, mimeType?: string) => OutputByType[T];
|
|
36
|
+
//#endregion
|
|
12
37
|
//#region src/opc/core.d.ts
|
|
13
38
|
type IXmlableObject = Readonly<Record<string, unknown>>;
|
|
14
39
|
/**
|
|
@@ -63,31 +88,6 @@ declare function buildCorePropertiesXml(opts: {
|
|
|
63
88
|
*/
|
|
64
89
|
declare function buildCorePropertiesXmlString(opts: CorePropertiesOptions): string;
|
|
65
90
|
//#endregion
|
|
66
|
-
//#region src/opc/output.d.ts
|
|
67
|
-
/**
|
|
68
|
-
* Output type definitions for OOXML document export.
|
|
69
|
-
*
|
|
70
|
-
* @module
|
|
71
|
-
*/
|
|
72
|
-
interface OutputByType {
|
|
73
|
-
base64: string;
|
|
74
|
-
string: string;
|
|
75
|
-
text: string;
|
|
76
|
-
binarystring: string;
|
|
77
|
-
array: readonly number[];
|
|
78
|
-
uint8array: Uint8Array;
|
|
79
|
-
arraybuffer: ArrayBuffer;
|
|
80
|
-
blob: Blob;
|
|
81
|
-
nodebuffer: Buffer;
|
|
82
|
-
}
|
|
83
|
-
type OutputType = keyof OutputByType;
|
|
84
|
-
declare const OoxmlMimeType: {
|
|
85
|
-
readonly DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
86
|
-
readonly PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
|
87
|
-
readonly XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
88
|
-
};
|
|
89
|
-
declare const convertOutput: <T extends OutputType>(data: Uint8Array, type: T, mimeType?: string) => OutputByType[T];
|
|
90
|
-
//#endregion
|
|
91
91
|
//#region src/patch/xml-namespace.d.ts
|
|
92
92
|
/**
|
|
93
93
|
* Namespace configuration for XML patch operations.
|
|
@@ -204,9 +204,23 @@ declare const toJson: (xmlData: string) => Element;
|
|
|
204
204
|
declare const createTextElementContents: (text: string) => Element[];
|
|
205
205
|
declare const patchSpaceAttribute: (element: Element) => Element;
|
|
206
206
|
declare const getFirstLevelElements: (relationships: Element, id: string) => Element[];
|
|
207
|
+
/**
|
|
208
|
+
* Next sequential numeric id: the largest `attr` value among direct children
|
|
209
|
+
* named `childName`, plus one. `seed` is the floor — e.g. PPTX `<p:sldId>`
|
|
210
|
+
* values start at 255, so the first appended id is at least 256.
|
|
211
|
+
*
|
|
212
|
+
* Unifies the per-package `maxCommentId` / `maxSldId` / `maxSheetId` helpers.
|
|
213
|
+
*/
|
|
214
|
+
declare const nextNumericId: (parent: Element | undefined, childName: string, attr: string, seed?: number) => number;
|
|
207
215
|
//#endregion
|
|
208
216
|
//#region src/patch/content-types-manager.d.ts
|
|
209
217
|
declare const appendContentType: (element: Element, contentType: string, extension: string) => void;
|
|
218
|
+
/**
|
|
219
|
+
* Append an `<Override>` element to a `[Content_Types].xml` root, deduped by
|
|
220
|
+
* `PartName`. Sibling to {@link appendContentType} (which handles `<Default>`):
|
|
221
|
+
* unifies the per-package Override-dedup blocks in docx/pptx/xlsx patchers.
|
|
222
|
+
*/
|
|
223
|
+
declare const appendOverride: (element: Element, partName: string, contentType: string) => void;
|
|
210
224
|
//#endregion
|
|
211
225
|
//#region src/patch/relationship-manager.d.ts
|
|
212
226
|
declare const getNextRelationshipIndex: (relationships: Element) => number;
|
|
@@ -236,4 +250,4 @@ interface BasePatchOptions<T extends OutputType = OutputType> {
|
|
|
236
250
|
placeholderDelimiters?: PlaceholderDelimiters;
|
|
237
251
|
}
|
|
238
252
|
//#endregion
|
|
239
|
-
export {
|
|
253
|
+
export { OutputType as A, XmlNamespaceConfig as C, parseCorePropsElement as D, buildCorePropertiesXmlString as E, DataType as M, isBase64DataURL as N, OoxmlMimeType as O, toUint8Array as P, PPTX_NS as S, buildCorePropertiesXml as T, RenderedParagraphNode as _, getNextRelationshipIndex as a, createReplacer as b, createTextElementContents as c, patchSpaceAttribute as d, toJson as f, createTraverser as g, createTokenReplacer as h, appendRelationship as i, convertOutput as j, OutputByType as k, getFirstLevelElements as l, createSplitInject as m, PlaceholderDelimiters as n, appendContentType as o, TokenNotFoundError as p, applyCorePropertiesOverride as r, appendOverride as s, BasePatchOptions as t, nextNumericId as u, createRunRenderer as v, CorePropertiesOptions as w, DOCX_NS as x, ReplacerConfig as y };
|
|
@@ -19,23 +19,37 @@ interface ReadContext {
|
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/descriptor/types.d.ts
|
|
22
|
-
/**
|
|
23
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Custom descriptor — hand-written stringify/parse for an OOXML part.
|
|
24
|
+
*
|
|
25
|
+
* `TInput` is the stringify input (the options shape callers build); `TOutput`
|
|
26
|
+
* is the parse output (the shape parse produces). They default to the same
|
|
27
|
+
* type, so the common case — a descriptor whose stringify and parse share one
|
|
28
|
+
* options shape — is written as `CustomDescriptor<T>` unchanged. Only
|
|
29
|
+
* descriptors whose parse yields a genuinely different shape (e.g. an
|
|
30
|
+
* accumulator-based stringify vs. a structured parse result) pass a third
|
|
31
|
+
* argument, which lets parse return its real type instead of lying via `as`.
|
|
32
|
+
*
|
|
33
|
+
* `Ctx` stays the second parameter to preserve the existing
|
|
34
|
+
* `CustomDescriptor<T, BodyContext>` call sites that customize the write
|
|
35
|
+
* context; `TOutput` is third so it never collides with that two-arg form.
|
|
36
|
+
*/
|
|
37
|
+
interface CustomDescriptor<TInput, Ctx = WriteContext, TOutput = TInput> {
|
|
24
38
|
kind: "custom";
|
|
25
|
-
stringify(value:
|
|
26
|
-
parse(el: Element, ctx: ReadContext):
|
|
39
|
+
stringify(value: TInput, ctx: Ctx): string | undefined;
|
|
40
|
+
parse(el: Element, ctx: ReadContext): TOutput;
|
|
27
41
|
}
|
|
28
42
|
/** Alias for "any descriptor" — retained for call-site readability. */
|
|
29
|
-
type Descriptor<
|
|
43
|
+
type Descriptor<TInput, Ctx = WriteContext, TOutput = TInput> = CustomDescriptor<TInput, Ctx, TOutput>;
|
|
30
44
|
//#endregion
|
|
31
45
|
//#region src/descriptor/runtime.d.ts
|
|
32
46
|
/**
|
|
33
47
|
* Serialize an Options object to an XML string using its descriptor.
|
|
34
48
|
* Returns `undefined` when an optional element should be omitted.
|
|
35
49
|
*/
|
|
36
|
-
declare function stringify$1<
|
|
50
|
+
declare function stringify$1<TInput, Ctx = WriteContext, TOutput = TInput>(desc: CustomDescriptor<TInput, Ctx, TOutput>, value: TInput, ctx: Ctx): string | undefined;
|
|
37
51
|
/** Parse an XML Element into an Options object using its descriptor. */
|
|
38
|
-
declare function parse$1<
|
|
52
|
+
declare function parse$1<TInput, TOutput = TInput, Ctx = WriteContext>(desc: CustomDescriptor<TInput, Ctx, TOutput>, el: Element, ctx: ReadContext): TOutput;
|
|
39
53
|
//#endregion
|
|
40
54
|
//#region src/descriptor/helpers.d.ts
|
|
41
55
|
/**
|
|
@@ -55,21 +69,6 @@ declare const enumEncode: (map: Record<string, string>) => (v: string | undefine
|
|
|
55
69
|
/** Create an enum decoder from a JS↔XML mapping (inverted). */
|
|
56
70
|
declare const enumDecode: (map: Record<string, string>) => (raw: string) => string;
|
|
57
71
|
//#endregion
|
|
58
|
-
//#region src/descriptor/registry.d.ts
|
|
59
|
-
declare class DescriptorRegistry {
|
|
60
|
-
private static readonly _map;
|
|
61
|
-
/** Register a descriptor with its XML tag. */
|
|
62
|
-
static register(tag: string, desc: Descriptor<any>): void;
|
|
63
|
-
/** Look up a descriptor by XML tag. */
|
|
64
|
-
static get(tag: string): Descriptor<any> | undefined;
|
|
65
|
-
/** Get all registered tags. */
|
|
66
|
-
static tags(): ReadonlySet<string>;
|
|
67
|
-
/** Check if a tag is registered. */
|
|
68
|
-
static has(tag: string): boolean;
|
|
69
|
-
/** Get the number of registered descriptors. */
|
|
70
|
-
static get size(): number;
|
|
71
|
-
}
|
|
72
|
-
//#endregion
|
|
73
72
|
//#region src/descriptor/field-spec.d.ts
|
|
74
73
|
/**
|
|
75
74
|
* Declarative field-consistency spec for descriptors.
|
|
@@ -167,4 +166,4 @@ interface OrderViolation {
|
|
|
167
166
|
*/
|
|
168
167
|
declare function checkOrder(xml: string, expected: readonly string[]): readonly OrderViolation[];
|
|
169
168
|
//#endregion
|
|
170
|
-
export {
|
|
169
|
+
export { Descriptor as _, diffTagSets as a, FIELD_SPECS as c, boolEncode as d, enumDecode as f, CustomDescriptor as g, stringify$1 as h, checkOrder as i, findFieldSpec as l, parse$1 as m, OrderViolation as n, roundTripFields as o, enumEncode as p, RoundTripResult as r, DescriptorFieldSpec as s, FieldConsistencyReport as t, boolDecode as u, ReadContext as v, WriteContext as y };
|