@office-open/core
Advanced tools
| import { children, escapeXml, findChild, textOf } from "@office-open/xml"; | ||
| //#region src/descriptor/builder.ts | ||
| function element$1(tag) { | ||
| return new DescriptorBuilder(tag); | ||
| } | ||
| var DescriptorBuilder = class { | ||
| _tag; | ||
| _attrs = []; | ||
| _content = []; | ||
| constructor(tag) { | ||
| this._tag = tag; | ||
| } | ||
| /** Add an attribute mapping. */ | ||
| attr(key, xmlName, opts) { | ||
| this._attrs.push({ | ||
| kind: "child", | ||
| key, | ||
| xmlName, | ||
| ...opts | ||
| }); | ||
| return this; | ||
| } | ||
| /** Add a single child element mapping. */ | ||
| child(key, tag, desc) { | ||
| this._content.push({ | ||
| kind: "child", | ||
| key, | ||
| tag, | ||
| desc | ||
| }); | ||
| return this; | ||
| } | ||
| /** Add a repeating child element mapping. */ | ||
| children(key, tag, desc) { | ||
| this._content.push({ | ||
| kind: "children", | ||
| key, | ||
| tag, | ||
| desc | ||
| }); | ||
| return this; | ||
| } | ||
| /** Add a union (one-of-several) child mapping. */ | ||
| union(key, variants) { | ||
| this._content.push({ | ||
| kind: "union", | ||
| key, | ||
| variants | ||
| }); | ||
| return this; | ||
| } | ||
| /** Add a text content mapping. */ | ||
| text(key) { | ||
| this._content.push({ | ||
| kind: "text", | ||
| key | ||
| }); | ||
| return this; | ||
| } | ||
| /** Add a custom content handler. */ | ||
| custom(spec) { | ||
| this._content.push(spec); | ||
| return this; | ||
| } | ||
| /** Build the immutable ElementDescriptor. */ | ||
| build() { | ||
| const result = { | ||
| kind: "element", | ||
| tag: this._tag | ||
| }; | ||
| if (this._attrs.length) result.attrs = Object.freeze(this._attrs); | ||
| if (this._content.length) result.content = Object.freeze(this._content); | ||
| return Object.freeze(result); | ||
| } | ||
| }; | ||
| //#endregion | ||
| //#region src/descriptor/runtime.ts | ||
| /** | ||
| * Descriptor runtime: stringify (write) and parse (parse path) functions. | ||
| * | ||
| * Write path: Options → stringify(desc, opts, ctx) → string | ||
| * Parse path: Element → parse(desc, el, ctx) → Partial<Options> | ||
| * | ||
| * No intermediate representation — each path is a single step. | ||
| * | ||
| * @module | ||
| */ | ||
| /** | ||
| * Serialize an Options object to an XML string using its descriptor. | ||
| * Returns `undefined` when an optional element should be omitted. | ||
| */ | ||
| function stringify(desc, value, ctx) { | ||
| if (desc.kind === "custom") return desc.stringify(value, ctx); | ||
| return stringifyElement(desc, value, ctx); | ||
| } | ||
| function stringifyElement(desc, value, ctx) { | ||
| const tag = desc.tag; | ||
| const attrStr = stringifyAttrs(desc.attrs, value); | ||
| let hasContent = false; | ||
| const parts = []; | ||
| if (desc.content) for (let i = 0; i < desc.content.length; i++) { | ||
| const spec = desc.content[i]; | ||
| const s = stringifyContentSpec(spec, value, ctx); | ||
| if (s !== void 0) { | ||
| hasContent = true; | ||
| parts.push(s); | ||
| } | ||
| } | ||
| if (!hasContent) { | ||
| if (!attrStr) return void 0; | ||
| return `<${tag}${attrStr}/>`; | ||
| } | ||
| parts.unshift(`<${tag}${attrStr}>`); | ||
| parts.push(`</${tag}>`); | ||
| return parts.join(""); | ||
| } | ||
| function stringifyAttrs(attrs, value) { | ||
| if (!attrs) return ""; | ||
| const parts = []; | ||
| for (let i = 0; i < attrs.length; i++) { | ||
| const spec = attrs[i]; | ||
| const raw = value[spec.key]; | ||
| if (raw === void 0) continue; | ||
| if (spec.default !== void 0 && raw === spec.default) continue; | ||
| const encoded = spec.encode ? spec.encode(raw) : typeof raw === "string" || typeof raw === "number" || typeof raw === "boolean" ? String(raw) : String(raw); | ||
| if (encoded === void 0) continue; | ||
| parts.push(`${spec.xmlName}="${escapeXml(encoded)}"`); | ||
| } | ||
| return parts.length ? " " + parts.join(" ") : ""; | ||
| } | ||
| function stringifyContentSpec(spec, value, ctx) { | ||
| switch (spec.kind) { | ||
| case "child": return stringifyChild(spec, value, ctx); | ||
| case "children": return stringifyChildren(spec, value, ctx); | ||
| case "union": return stringifyUnion(spec, value, ctx); | ||
| case "text": return stringifyText(spec, value); | ||
| case "custom": return stringifyCustom(spec, value, ctx); | ||
| } | ||
| } | ||
| function stringifyChild(spec, value, ctx) { | ||
| const childValue = value[spec.key]; | ||
| if (childValue === void 0 || childValue === null) return void 0; | ||
| return stringify(spec.desc, childValue, ctx); | ||
| } | ||
| function stringifyChildren(spec, value, ctx) { | ||
| const items = value[spec.key]; | ||
| if (!items || items.length === 0) return void 0; | ||
| const parts = []; | ||
| for (let i = 0; i < items.length; i++) { | ||
| const s = stringify(spec.desc, items[i], ctx); | ||
| if (s !== void 0) parts.push(s); | ||
| } | ||
| return parts.length ? parts.join("") : void 0; | ||
| } | ||
| function stringifyUnion(spec, value, ctx) { | ||
| const childValue = value[spec.key]; | ||
| if (childValue === void 0 || childValue === null) return void 0; | ||
| const variants = spec.variants; | ||
| for (let i = 0; i < variants.length; i++) { | ||
| const v = variants[i]; | ||
| if (v.match(childValue)) return stringify(v.desc, childValue, ctx); | ||
| } | ||
| } | ||
| function stringifyText(spec, value) { | ||
| const text = value[spec.key]; | ||
| if (text === void 0 || text === null) return void 0; | ||
| return escapeXml(typeof text === "string" ? text : String(text)); | ||
| } | ||
| function stringifyCustom(spec, value, ctx) { | ||
| return spec.stringify(value, ctx); | ||
| } | ||
| /** | ||
| * Parse an XML Element into an Options object using its descriptor. | ||
| */ | ||
| function parse(desc, el, ctx) { | ||
| if (desc.kind === "custom") return desc.parse(el, ctx); | ||
| return parseElement(desc, el, ctx); | ||
| } | ||
| function parseElement(desc, el, ctx) { | ||
| const result = {}; | ||
| if (desc.attrs && el.attributes) for (let i = 0; i < desc.attrs.length; i++) { | ||
| const spec = desc.attrs[i]; | ||
| const raw = el.attributes[spec.xmlName]; | ||
| if (raw !== void 0) result[spec.key] = spec.decode ? spec.decode(String(raw)) : raw; | ||
| } | ||
| if (desc.content) for (let i = 0; i < desc.content.length; i++) { | ||
| const spec = desc.content[i]; | ||
| parseContentSpec(spec, el, ctx, result); | ||
| } | ||
| return result; | ||
| } | ||
| function parseContentSpec(spec, el, ctx, result) { | ||
| switch (spec.kind) { | ||
| case "child": { | ||
| const child = findChild(el, spec.tag); | ||
| if (child) result[spec.key] = parse(spec.desc, child, ctx); | ||
| break; | ||
| } | ||
| case "children": { | ||
| const items = children(el, spec.tag); | ||
| if (items.length) result[spec.key] = items.map((c) => parse(spec.desc, c, ctx)); | ||
| break; | ||
| } | ||
| case "union": | ||
| for (let i = 0; i < spec.variants.length; i++) { | ||
| const v = spec.variants[i]; | ||
| const child = findChild(el, v.tag); | ||
| if (child) { | ||
| result[spec.key] = parse(v.desc, child, ctx); | ||
| break; | ||
| } | ||
| } | ||
| break; | ||
| case "text": { | ||
| const text = textOf(el); | ||
| if (text) result[spec.key] = text; | ||
| break; | ||
| } | ||
| case "custom": | ||
| Object.assign(result, spec.parse(el, ctx)); | ||
| break; | ||
| } | ||
| } | ||
| //#endregion | ||
| //#region src/descriptor/helpers.ts | ||
| /** | ||
| * OOXML-specific encode/decode helpers for descriptors. | ||
| * | ||
| * XML traversal helpers (findChild, etc.) are in @office-open/xml utils. | ||
| * This file only contains OOXML value encoding/decoding. | ||
| * | ||
| * @module | ||
| */ | ||
| /** Encode boolean for CT_OnOff: true → omit val, false → "0". */ | ||
| const boolEncode = (v) => { | ||
| if (v === void 0) return void 0; | ||
| return v ? void 0 : "0"; | ||
| }; | ||
| /** Decode CT_OnOff: absent or "true"/"1" → true, "0"/"false" → false. */ | ||
| const boolDecode = (raw) => raw !== "0" && raw !== "false"; | ||
| /** Create an enum encoder from a JS↔XML mapping. */ | ||
| const enumEncode = (map) => (v) => { | ||
| if (v === void 0) return void 0; | ||
| return map[v] ?? v; | ||
| }; | ||
| /** Create an enum decoder from a JS↔XML mapping (inverted). */ | ||
| const enumDecode = (map) => { | ||
| const inv = invertRecord(map); | ||
| return (raw) => inv[raw] ?? raw; | ||
| }; | ||
| function invertRecord(map) { | ||
| const result = {}; | ||
| for (const key of Object.keys(map)) result[map[key]] = key; | ||
| return result; | ||
| } | ||
| //#endregion | ||
| //#region src/descriptor/registry.ts | ||
| var DescriptorRegistry = class DescriptorRegistry { | ||
| static _map = /* @__PURE__ */ new Map(); | ||
| /** Register a descriptor with its XML tag. */ | ||
| static register(tag, desc) { | ||
| DescriptorRegistry._map.set(tag, desc); | ||
| } | ||
| /** Look up a descriptor by XML tag. */ | ||
| static get(tag) { | ||
| return DescriptorRegistry._map.get(tag); | ||
| } | ||
| /** Get all registered tags. */ | ||
| static tags() { | ||
| return new Set(DescriptorRegistry._map.keys()); | ||
| } | ||
| /** Check if a tag is registered. */ | ||
| static has(tag) { | ||
| return DescriptorRegistry._map.has(tag); | ||
| } | ||
| /** Get the number of registered descriptors. */ | ||
| static get size() { | ||
| return DescriptorRegistry._map.size; | ||
| } | ||
| }; | ||
| //#endregion | ||
| export { enumEncode as a, DescriptorBuilder as c, enumDecode as i, element$1 as l, boolDecode as n, parse as o, boolEncode as r, stringify as s, DescriptorRegistry as t }; |
| import { m as CustomDescriptor } from "./index-D81RV9Vc.mjs"; | ||
| //#region src/theme/theme-options.d.ts | ||
| /** | ||
| * Theme options for OOXML documents. | ||
| * | ||
| * @module | ||
| */ | ||
| /** Color scheme — 12 theme colors (hex without #). */ | ||
| interface ColorSchemeOptions { | ||
| readonly dark1?: string; | ||
| readonly light1?: string; | ||
| readonly dark2?: string; | ||
| readonly light2?: string; | ||
| readonly accent1?: string; | ||
| readonly accent2?: string; | ||
| readonly accent3?: string; | ||
| readonly accent4?: string; | ||
| readonly accent5?: string; | ||
| readonly accent6?: string; | ||
| readonly hyperlink?: string; | ||
| readonly followedHyperlink?: string; | ||
| } | ||
| /** Font scheme — 4 font slots (latin + east-asian for major/minor). */ | ||
| interface FontSchemeOptions { | ||
| readonly majorFont?: string; | ||
| readonly minorFont?: string; | ||
| readonly majorFontAsian?: string; | ||
| readonly minorFontAsian?: string; | ||
| } | ||
| /** Theme customization options. */ | ||
| interface ThemeOptions { | ||
| readonly name?: string; | ||
| readonly colors?: ColorSchemeOptions; | ||
| readonly fonts?: FontSchemeOptions; | ||
| } | ||
| //#endregion | ||
| //#region src/theme/default-theme.d.ts | ||
| /** | ||
| * Generate theme XML string from options. | ||
| * Returns cached default when no options provided. | ||
| */ | ||
| declare function createThemeXml(options?: ThemeOptions): string; | ||
| //#endregion | ||
| //#region src/theme/build-theme-xml.d.ts | ||
| declare function buildThemeXml(options?: ThemeOptions): string; | ||
| //#endregion | ||
| //#region src/theme/default-colors.d.ts | ||
| /** Office 2016+ default theme colors (hex without #). */ | ||
| declare const DEFAULT_COLORS: Required<ColorSchemeOptions>; | ||
| //#endregion | ||
| //#region src/theme/theme-descriptors.d.ts | ||
| declare const themeDesc: CustomDescriptor<ThemeOptions>; | ||
| //#endregion | ||
| export { ColorSchemeOptions as a, createThemeXml as i, DEFAULT_COLORS as n, FontSchemeOptions as o, buildThemeXml as r, ThemeOptions as s, themeDesc as t }; |
Sorry, the diff of this file is too big to display
| import { Element } from "@office-open/xml"; | ||
| //#region src/descriptor/context.d.ts | ||
| /** Context passed during stringify (write path). */ | ||
| interface WriteContext { | ||
| /** Register a relationship and return its rId. */ | ||
| addRelationship(type: string, target: string, mode?: string): string; | ||
| /** Add a media file and return its reference. */ | ||
| addMedia(data: Uint8Array, type: string): string; | ||
| } | ||
| /** Context passed during parse (parse path). */ | ||
| interface ReadContext { | ||
| /** Resolve a relationship rId to its target path. */ | ||
| resolveRelationship(rId: string): string | undefined; | ||
| /** Get a parsed XML part by path. */ | ||
| getPart(path: string): Element | undefined; | ||
| /** Get raw binary data (images, media, etc.) by path. */ | ||
| getRaw(path: string): Uint8Array | undefined; | ||
| } | ||
| //#endregion | ||
| //#region src/descriptor/types.d.ts | ||
| /** Element descriptor — declarative XML mapping. */ | ||
| interface ElementDescriptor<T> { | ||
| readonly kind: "element"; | ||
| readonly tag: string; | ||
| readonly attrs?: readonly AttrSpec<T>[]; | ||
| readonly content?: readonly ContentSpec<T>[]; | ||
| } | ||
| /** Custom descriptor — for complex logic that doesn't fit the declarative model. */ | ||
| interface CustomDescriptor<T, Ctx = WriteContext> { | ||
| readonly kind: "custom"; | ||
| stringify(value: T, ctx: Ctx): string | undefined; | ||
| parse(el: Element, ctx: ReadContext): T; | ||
| } | ||
| /** Union type for all descriptors. */ | ||
| type Descriptor<T> = ElementDescriptor<T> | CustomDescriptor<T>; | ||
| interface AttrSpec<T> { | ||
| /** Property key in the Options object. */ | ||
| readonly key: keyof T & string; | ||
| /** XML attribute name (e.g. "w:val"). */ | ||
| readonly xmlName: string; | ||
| /** Default value — omitted during stringify when equal. */ | ||
| readonly default?: unknown; | ||
| /** Encode a JS value to an XML attribute string. Return undefined to skip. */ | ||
| readonly encode?: (v: any) => string | undefined; | ||
| /** Decode an XML attribute string to a JS value. */ | ||
| readonly decode?: (raw: string) => any; | ||
| } | ||
| /** Single child element mapped to a property. */ | ||
| interface ChildSpec<T> { | ||
| readonly kind: "child"; | ||
| readonly key: keyof T & string; | ||
| readonly tag: string; | ||
| readonly desc: Descriptor<any>; | ||
| } | ||
| /** Multiple child elements of the same tag mapped to an array property. */ | ||
| interface ChildrenSpec<T> { | ||
| readonly kind: "children"; | ||
| readonly key: keyof T & string; | ||
| readonly tag: string; | ||
| readonly desc: Descriptor<any>; | ||
| } | ||
| /** Union child — one of several possible child elements. */ | ||
| interface UnionSpec<T> { | ||
| readonly kind: "union"; | ||
| readonly key: keyof T & string; | ||
| readonly variants: readonly UnionVariant[]; | ||
| } | ||
| /** Text content mapped to a property. */ | ||
| interface TextSpec<T> { | ||
| readonly kind: "text"; | ||
| readonly key: keyof T & string; | ||
| } | ||
| interface UnionVariant { | ||
| readonly tag: string; | ||
| readonly match: (opts: any) => boolean; | ||
| readonly desc: Descriptor<any>; | ||
| } | ||
| /** Discriminated union of all content spec types. */ | ||
| type ContentSpec<T> = ChildSpec<T> | ChildrenSpec<T> | UnionSpec<T> | TextSpec<T> | CustomDescriptor<T>; | ||
| //#endregion | ||
| //#region src/descriptor/builder.d.ts | ||
| declare function element$1<T extends object>(tag: string): DescriptorBuilder<T>; | ||
| declare class DescriptorBuilder<T extends object> { | ||
| private readonly _tag; | ||
| private readonly _attrs; | ||
| private readonly _content; | ||
| constructor(tag: string); | ||
| /** Add an attribute mapping. */ | ||
| attr(key: keyof T & string, xmlName: string, opts?: { | ||
| readonly default?: unknown; | ||
| readonly encode?: (v: any) => string | undefined; | ||
| readonly decode?: (raw: string) => any; | ||
| }): this; | ||
| /** Add a single child element mapping. */ | ||
| child(key: keyof T & string, tag: string, desc: ChildSpec<T>["desc"]): this; | ||
| /** Add a repeating child element mapping. */ | ||
| children(key: keyof T & string, tag: string, desc: ChildrenSpec<T>["desc"]): this; | ||
| /** Add a union (one-of-several) child mapping. */ | ||
| union(key: keyof T & string, variants: readonly UnionVariant[]): this; | ||
| /** Add a text content mapping. */ | ||
| text(key: keyof T & string): this; | ||
| /** Add a custom content handler. */ | ||
| custom(spec: CustomDescriptor<T>): this; | ||
| /** Build the immutable ElementDescriptor. */ | ||
| build(): ElementDescriptor<T>; | ||
| } | ||
| //#endregion | ||
| //#region src/descriptor/runtime.d.ts | ||
| /** | ||
| * Serialize an Options object to an XML string using its descriptor. | ||
| * Returns `undefined` when an optional element should be omitted. | ||
| */ | ||
| declare function stringify<T>(desc: Descriptor<T>, value: T, ctx: WriteContext): string | undefined; | ||
| /** | ||
| * Parse an XML Element into an Options object using its descriptor. | ||
| */ | ||
| declare function parse<T>(desc: Descriptor<T>, el: Element, ctx: ReadContext): T; | ||
| //#endregion | ||
| //#region src/descriptor/helpers.d.ts | ||
| /** | ||
| * OOXML-specific encode/decode helpers for descriptors. | ||
| * | ||
| * XML traversal helpers (findChild, etc.) are in @office-open/xml utils. | ||
| * This file only contains OOXML value encoding/decoding. | ||
| * | ||
| * @module | ||
| */ | ||
| /** Encode boolean for CT_OnOff: true → omit val, false → "0". */ | ||
| declare const boolEncode: (v: boolean | undefined) => string | undefined; | ||
| /** Decode CT_OnOff: absent or "true"/"1" → true, "0"/"false" → false. */ | ||
| declare const boolDecode: (raw: string) => boolean; | ||
| /** Create an enum encoder from a JS↔XML mapping. */ | ||
| declare const enumEncode: (map: Record<string, string>) => (v: string | undefined) => string | undefined; | ||
| /** Create an enum decoder from a JS↔XML mapping (inverted). */ | ||
| declare const enumDecode: (map: Record<string, string>) => (raw: string) => string; | ||
| //#endregion | ||
| //#region src/descriptor/registry.d.ts | ||
| declare class DescriptorRegistry { | ||
| private static readonly _map; | ||
| /** Register a descriptor with its XML tag. */ | ||
| static register(tag: string, desc: Descriptor<any>): void; | ||
| /** Look up a descriptor by XML tag. */ | ||
| static get(tag: string): Descriptor<any> | undefined; | ||
| /** Get all registered tags. */ | ||
| static tags(): ReadonlySet<string>; | ||
| /** Check if a tag is registered. */ | ||
| static has(tag: string): boolean; | ||
| /** Get the number of registered descriptors. */ | ||
| static get size(): number; | ||
| } | ||
| //#endregion | ||
| export { TextSpec as _, enumEncode as a, ReadContext as b, DescriptorBuilder as c, ChildSpec as d, ChildrenSpec as f, ElementDescriptor as g, Descriptor as h, enumDecode as i, element$1 as l, CustomDescriptor as m, boolDecode as n, parse as o, ContentSpec as p, boolEncode as r, stringify as s, DescriptorRegistry as t, AttrSpec as u, UnionSpec as v, WriteContext as x, UnionVariant as y }; |
| import { Element } from "@office-open/xml"; | ||
| //#region src/patch/xml-namespace.d.ts | ||
| /** | ||
| * Namespace configuration for XML patch operations. | ||
| * | ||
| * Parameterises element names so the same patch algorithm works for both | ||
| * DOCX (`w:*`) and PPTX (`a:*`) documents. | ||
| */ | ||
| interface XmlNamespaceConfig { | ||
| readonly paragraph: string; | ||
| readonly run: string; | ||
| readonly text: string; | ||
| readonly runProperties: string; | ||
| } | ||
| declare const DOCX_NS: XmlNamespaceConfig; | ||
| declare const PPTX_NS: XmlNamespaceConfig; | ||
| //#endregion | ||
| //#region src/patch/xml-replacer.d.ts | ||
| interface ReplacerConfig { | ||
| readonly ns: XmlNamespaceConfig; | ||
| readonly formatChild: (child: unknown, context: unknown) => Element[]; | ||
| readonly preserveSpace?: boolean; | ||
| } | ||
| interface ReplacerResult { | ||
| readonly element: Element; | ||
| readonly didFindOccurrence: boolean; | ||
| } | ||
| declare function createReplacer(config: ReplacerConfig): ({ | ||
| json, | ||
| patch, | ||
| patchText, | ||
| context, | ||
| keepOriginalStyles | ||
| }: { | ||
| readonly json: Element; | ||
| readonly patch: { | ||
| readonly type: string; | ||
| readonly children: readonly unknown[]; | ||
| }; | ||
| readonly patchText: string; | ||
| readonly context: unknown; | ||
| readonly keepOriginalStyles?: boolean; | ||
| }) => ReplacerResult; | ||
| //#endregion | ||
| //#region src/patch/run-renderer.d.ts | ||
| interface ElementWrapper { | ||
| readonly element: Element; | ||
| readonly index: number; | ||
| readonly parent: ElementWrapper | undefined; | ||
| } | ||
| interface RenderedParagraphNode { | ||
| readonly text: string; | ||
| readonly runs: readonly RenderedRunNode[]; | ||
| readonly index: number; | ||
| readonly pathToParagraph: readonly number[]; | ||
| } | ||
| interface StartAndEnd { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| } | ||
| type IParts = { | ||
| readonly text: string; | ||
| readonly index: number; | ||
| } & StartAndEnd; | ||
| type RenderedRunNode = { | ||
| readonly text: string; | ||
| readonly parts: readonly IParts[]; | ||
| readonly index: number; | ||
| } & StartAndEnd; | ||
| declare function createRunRenderer(ns: XmlNamespaceConfig): (node: ElementWrapper) => RenderedParagraphNode; | ||
| //#endregion | ||
| //#region src/patch/xml-traverser.d.ts | ||
| declare function createTraverser(ns: XmlNamespaceConfig): { | ||
| traverse: (node: Element) => readonly RenderedParagraphNode[]; | ||
| findLocationOfText: (node: Element, text: string) => readonly RenderedParagraphNode[]; | ||
| }; | ||
| //#endregion | ||
| //#region src/patch/paragraph-token-replacer.d.ts | ||
| declare function createTokenReplacer(createTextElementContents: (text: string) => Element[], options?: { | ||
| readonly preserveSpace?: boolean; | ||
| }): ({ | ||
| paragraphElement, | ||
| renderedParagraph, | ||
| originalText, | ||
| replacementText | ||
| }: { | ||
| readonly paragraphElement: Element; | ||
| readonly renderedParagraph: RenderedParagraphNode; | ||
| readonly originalText: string; | ||
| readonly replacementText: string; | ||
| }) => Element; | ||
| //#endregion | ||
| //#region src/patch/paragraph-split-inject.d.ts | ||
| declare class TokenNotFoundError extends Error { | ||
| constructor(token: string); | ||
| } | ||
| declare function createSplitInject(ns: XmlNamespaceConfig, createTextElementContents: (text: string) => Element[], options?: { | ||
| readonly preserveSpace?: boolean; | ||
| }): { | ||
| findRunElementIndexWithToken: (paragraphElement: Element, token: string) => number; | ||
| splitRunElement: (runElement: Element, token: string) => { | ||
| readonly left: Element; | ||
| readonly right: Element; | ||
| }; | ||
| }; | ||
| //#endregion | ||
| //#region src/patch/xml-patch-utils.d.ts | ||
| declare const toJson: (xmlData: string) => Element; | ||
| /** | ||
| * Creates the inner content of a text element (`w:t` / `a:t`). | ||
| * | ||
| * Returns `[{ type: "text", text }]` for non-empty text, `[]` for empty. | ||
| * The `xml:space` attribute is handled separately by `patchSpaceAttribute`. | ||
| */ | ||
| declare const createTextElementContents: (text: string) => Element[]; | ||
| declare const patchSpaceAttribute: (element: Element) => Element; | ||
| declare const getFirstLevelElements: (relationships: Element, id: string) => Element[]; | ||
| //#endregion | ||
| //#region src/patch/content-types-manager.d.ts | ||
| declare const appendContentType: (element: Element, contentType: string, extension: string) => void; | ||
| //#endregion | ||
| //#region src/patch/relationship-manager.d.ts | ||
| declare const getNextRelationshipIndex: (relationships: Element) => number; | ||
| declare const appendRelationship: (relationships: Element, id: number | string, type: string, target: string, targetMode?: string) => readonly Element[]; | ||
| //#endregion | ||
| export { PPTX_NS as _, getFirstLevelElements as a, TokenNotFoundError as c, createTraverser as d, RenderedParagraphNode as f, DOCX_NS as g, createReplacer as h, createTextElementContents as i, createSplitInject as l, ReplacerConfig as m, getNextRelationshipIndex as n, patchSpaceAttribute as o, createRunRenderer as p, appendContentType as r, toJson as s, appendRelationship as t, createTokenReplacer as u, XmlNamespaceConfig as v }; |
| import { m as CustomDescriptor } from "./index-D81RV9Vc.mjs"; | ||
| //#region src/chart/chart-collection.d.ts | ||
| /** | ||
| * Chart data and collection for document generation. | ||
| * | ||
| * @module | ||
| */ | ||
| interface ChartData { | ||
| key: string; | ||
| chartSpaceXml: string; | ||
| } | ||
| declare class ChartCollection { | ||
| private map; | ||
| constructor(); | ||
| addChart(key: string, chartData: ChartData): void; | ||
| get array(): ChartData[]; | ||
| } | ||
| //#endregion | ||
| //#region src/chart/types.d.ts | ||
| /** | ||
| * Chart type definitions — interfaces and constants. | ||
| * | ||
| * Class implementations have been removed; all chart XML generation | ||
| * goes through chart-descriptors.ts (stringify/parse path). | ||
| * | ||
| * @module | ||
| */ | ||
| interface BubbleSeriesData { | ||
| readonly name: string; | ||
| readonly xValues: readonly number[]; | ||
| readonly yValues: readonly number[]; | ||
| readonly bubbleSize: readonly number[]; | ||
| } | ||
| declare const TrendlineType: { | ||
| readonly EXP: "exp"; | ||
| readonly LINEAR: "linear"; | ||
| readonly LOG: "log"; | ||
| readonly MOVING_AVG: "movingAvg"; | ||
| readonly POLY: "poly"; | ||
| readonly POWER: "power"; | ||
| }; | ||
| type TrendlineType = (typeof TrendlineType)[keyof typeof TrendlineType]; | ||
| interface TrendlineOptions { | ||
| readonly type?: TrendlineType; | ||
| readonly name?: string; | ||
| readonly order?: number; | ||
| readonly period?: number; | ||
| readonly forward?: number; | ||
| readonly backward?: number; | ||
| readonly intercept?: number; | ||
| readonly dispRSqr?: boolean; | ||
| readonly dispEq?: boolean; | ||
| } | ||
| declare const ErrorBarDirection: { | ||
| readonly BOTH: "both"; | ||
| readonly X: "x"; | ||
| readonly Y: "y"; | ||
| }; | ||
| type ErrorBarDirection = (typeof ErrorBarDirection)[keyof typeof ErrorBarDirection]; | ||
| declare const ErrorBarType: { | ||
| readonly BOTH: "both"; | ||
| readonly MINUS: "minus"; | ||
| readonly PLUS: "plus"; | ||
| }; | ||
| type ErrorBarType = (typeof ErrorBarType)[keyof typeof ErrorBarType]; | ||
| declare const ErrorValueType: { | ||
| readonly CUST: "cust"; | ||
| readonly FIXED: "fixedVal"; | ||
| readonly PERCENTAGE: "percentage"; | ||
| readonly STD_DEV: "stdDev"; | ||
| readonly STD_ERR: "stdErr"; | ||
| }; | ||
| type ErrorValueType = (typeof ErrorValueType)[keyof typeof ErrorValueType]; | ||
| interface ErrorBarOptions { | ||
| readonly direction?: ErrorBarDirection; | ||
| readonly barType?: ErrorBarType; | ||
| readonly valueType?: ErrorValueType; | ||
| readonly value?: number; | ||
| } | ||
| declare const DataLabelPosition: { | ||
| readonly BEST_FIT: "bestFit"; | ||
| readonly B: "b"; | ||
| readonly CTRL: "ctr"; | ||
| readonly IN_BASE: "inBase"; | ||
| readonly IN_END: "inEnd"; | ||
| readonly L: "l"; | ||
| readonly OUT_END: "outEnd"; | ||
| readonly R: "r"; | ||
| readonly T: "t"; | ||
| }; | ||
| type DataLabelPosition = (typeof DataLabelPosition)[keyof typeof DataLabelPosition]; | ||
| interface DataLabelsOptions { | ||
| readonly position?: DataLabelPosition; | ||
| readonly showVal?: boolean; | ||
| readonly showCatName?: boolean; | ||
| readonly showSerName?: boolean; | ||
| readonly showPercent?: boolean; | ||
| readonly showBubbleSize?: boolean; | ||
| readonly showLeaderLines?: boolean; | ||
| } | ||
| interface ChartSeriesData { | ||
| readonly name: string; | ||
| readonly values: readonly number[]; | ||
| readonly trendlines?: readonly TrendlineOptions[]; | ||
| readonly errorBars?: ErrorBarOptions; | ||
| readonly dataLabels?: DataLabelsOptions; | ||
| } | ||
| type ChartType = "column" | "bar" | "line" | "pie" | "area" | "scatter" | "bubble" | "doughnut" | "radar" | "stock" | "surface"; | ||
| type AxisChartType = Exclude<ChartType, "bubble">; | ||
| interface ChartSpaceOptions { | ||
| readonly title?: string; | ||
| readonly type: ChartType; | ||
| readonly categories?: readonly string[]; | ||
| readonly series: readonly ChartSeriesData[] | readonly BubbleSeriesData[]; | ||
| readonly showLegend?: boolean; | ||
| readonly style?: number; | ||
| readonly threeD?: boolean; | ||
| } | ||
| declare const TimeUnit: { | ||
| readonly DAYS: "days"; | ||
| readonly MONTHS: "months"; | ||
| readonly YEARS: "years"; | ||
| }; | ||
| type TimeUnit = (typeof TimeUnit)[keyof typeof TimeUnit]; | ||
| interface View3DOptions { | ||
| readonly rotX?: number; | ||
| readonly rotY?: number; | ||
| readonly depthPercent?: number; | ||
| readonly rAngAx?: boolean; | ||
| readonly perspective?: number; | ||
| } | ||
| //#endregion | ||
| //#region src/chart/chart-descriptors.d.ts | ||
| declare const chartSpaceDesc: CustomDescriptor<ChartSpaceOptions>; | ||
| //#endregion | ||
| export { ChartCollection as _, ChartSpaceOptions as a, DataLabelsOptions as c, ErrorBarType as d, ErrorValueType as f, View3DOptions as g, TrendlineType as h, ChartSeriesData as i, ErrorBarDirection as l, TrendlineOptions as m, AxisChartType as n, ChartType as o, TimeUnit as p, BubbleSeriesData as r, DataLabelPosition as s, chartSpaceDesc as t, ErrorBarOptions as u, ChartData as v }; |
Sorry, the diff of this file is too big to display
@@ -1,2 +0,2 @@ | ||
| 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-DNH2sizc.mjs"; | ||
| 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-xXbaecaB.mjs"; | ||
| export { AxisChartType, BubbleSeriesData, ChartCollection, ChartData, ChartSeriesData, ChartSpaceOptions, ChartType, DataLabelPosition, DataLabelsOptions, ErrorBarDirection, ErrorBarOptions, ErrorBarType, ErrorValueType, TimeUnit, TrendlineOptions, TrendlineType, View3DOptions, chartSpaceDesc }; |
@@ -1,2 +0,2 @@ | ||
| import { _ as TextSpec, a as enumEncode, b as ReadContext, c as DescriptorBuilder, d as ChildSpec, f as ChildrenSpec, g as ElementDescriptor, h as Descriptor, i as enumDecode, l as element, m as CustomDescriptor, n as boolDecode, o as parse, p as ContentSpec, r as boolEncode, s as stringify, t as DescriptorRegistry, u as AttrSpec, v as UnionSpec, x as WriteContext, y as UnionVariant } from "../index-BI-1SKm5.mjs"; | ||
| import { _ as TextSpec, a as enumEncode, b as ReadContext, c as DescriptorBuilder, d as ChildSpec, f as ChildrenSpec, g as ElementDescriptor, h as Descriptor, i as enumDecode, l as element, m as CustomDescriptor, n as boolDecode, o as parse, p as ContentSpec, r as boolEncode, s as stringify, t as DescriptorRegistry, u as AttrSpec, v as UnionSpec, x as WriteContext, y as UnionVariant } from "../index-D81RV9Vc.mjs"; | ||
| export { type AttrSpec, type ChildSpec, type ChildrenSpec, type ContentSpec, type CustomDescriptor, type Descriptor, DescriptorBuilder, DescriptorRegistry, type ElementDescriptor, type ReadContext, type TextSpec, type UnionSpec, type UnionVariant, type WriteContext, boolDecode, boolEncode, element, enumDecode, enumEncode, parse, stringify }; |
@@ -1,2 +0,2 @@ | ||
| import { a as enumEncode, c as DescriptorBuilder, i as enumDecode, l as element, n as boolDecode, o as parse, r as boolEncode, s as stringify, t as DescriptorRegistry } from "../descriptor-DKmR7pw-.mjs"; | ||
| import { a as enumEncode, c as DescriptorBuilder, i as enumDecode, l as element, n as boolDecode, o as parse, r as boolEncode, s as stringify, t as DescriptorRegistry } from "../descriptor-57JUzfpG.mjs"; | ||
| export { DescriptorBuilder, DescriptorRegistry, boolDecode, boolEncode, element, enumDecode, enumEncode, parse, stringify }; |
@@ -1,2 +0,2 @@ | ||
| import { $ as createStyleLbl, $a as createSchemeColor, $n as ReflectionEffectOptions, $t as TableStyleOptions, A as scRgbColorDesc, Aa as GradientStop, An as Shape3DOptions, At as createAdj, B as DiagramRelIdsOptions, Ba as createTileInfo, Bn as Scene3DOptions, Bt as GroupLockingOptions, C as fillDesc, Ca as BlipFillMediaData, Cn as PathOptions, Cr as LineEndOptions, Ct as AnimOneValue, D as hslColorDesc, Da as extractBlipFillMedia, Dn as GeometryGuide, Dr as DashStop, Dt as HierBranchStyle, E as getColorDescriptor, Ea as buildFill, En as stringifyPresetGeometry, Er as createLineEnd, Et as HierBranchOptions, F as DiagramExtensionOptions, Fa as TileFlipMode, Fn as createBottomBevel, Ft as createChPref, G as DiagramStyleOptions, Ga as SolidFillOptions, Gn as EffectContainerType, Gt as createPictureLocking, H as ColorListOptions, Ha as createSourceRectangle, Hn as Vector3D, Ht as ShapeLockingOptions, I as DiagramTextPropsOptions, Ia as createGradientFill, In as BackdropOptions, It as createHierBranch, J as StyleMatrixIndex, Ja as SystemColor, Jn as BlurEffectOptions, Jt as StyleMatrixReferenceOptions, K as FontCollectionIndex, Ka as createColorElement, Kn as EffectDagOptions, Kt as createShapeLocking, L as createDiagramExtLst, La as createGradientStop, Ln as CameraOptions, Lt as createOrgChart, M as solidFillDesc, Ma as PathShadeOptions, Mn as BevelOptions, Mt as createAnimLvl, N as systemColorDesc, Na as PathShadeType, Nn as BevelPresetType, Nt as createAnimOne, O as presetColorDesc, Oa as GradientFillOptions, On as stringifyAdjustmentValues, Or as createCustomDash, Ot as OrgChartOptions, P as DiagramExtLstOptions, Pa as RelativeRect, Pn as createBevel, Pt as createChMax, Q as createLinClrLst, Qa as SchemeColorOptions, Qn as createEffectList, Qt as TableStyleListOptions, R as createDiagramSp3d, Ra as TileAlignment, Rn as LightRigOptions, Rt as createPresLayoutVars, S as outlineDesc, Sa as BlipFillConfigOptions, Sn as PathFillMode, Sr as LineEndLength, St as AnimOneOptions, T as patternFillDesc, Ta as GradientStopOptions, Tn as PresetGeometryOptions, Tr as LineEndWidth, Tt as ChPrefOptions, U as ColorMethod, Ua as BlipEffectsOptions, Un as createScene3D, Ut as createGraphicFrameLocking, V as createDiagramRelIds, Va as SourceRectangleOptions, Vn as SphereCoords, Vt as PictureLockingOptions, W as DiagramStyleLblOptions, Wa as createBlipEffects, Wn as createSoftEdgeEffect, Wt as createGroupLocking, X as createEffectClrLst, Xa as createSystemColor, Xn as EffectListOptions, Xt as TableCellStyleOptions, Y as createDiagramStyle, Ya as SystemColorOptions, Yn as EffectExtent, Yt as TableCellBorderOptions, Z as createFillClrLst, Za as SchemeColor, Zn as calculateEffectExtent, Zt as TablePartStyleOptions, _ as graphicFrameLockingDesc, _a as createGroupFill, _n as createBlip, _r as OutlineFillProperties, _t as createStyleDefHdrLst, a as blipDesc, an as MediaDataTransformation, ao as PresetColorOptions, ar as RectAlignment, at as DiagramCategoryOptions, b as shapeLockingDesc, ba as createPatternFill, bn as GeomRect, br as PresetDash, bt as AnimLevelValue, c as stretchDesc, cn as GroupTransform2DOptions, co as createHslColor, cr as createInnerShadowEffect, ct as LayoutDefHdrLstOptions, d as scene3DDesc, dn as createTransform2D, dr as BlendMode, dt as StyleDefHdrOptions, en as TableStyleRegion, eo as ScRgbColorOptions, er as createReflectionEffect, et as createTxEffectClrLst, f as shape3DDesc, fn as stringifyStretch, fr as FillOverlayEffectOptions, ft as createColorsDefHdr, g as presetGeometryDesc, gn as BlipOptions, gr as LineJoin, gt as createStyleDefHdr, h as customGeometryDesc, hn as createBlipFill, hr as LineCap, ht as createLayoutDefHdrLst, i as presLayoutVarsDesc, in as createTableStyleList, io as PresetColor, ir as OuterShadowEffectOptions, it as ColorsDefHdrOptions, j as schemeColorDesc, ja as LinearShadeOptions, jn as createShape3D, jt as createAdjLst, k as rgbColorDesc, ka as GradientShadeOptions, kn as PresetMaterialType, kt as PresLayoutVarsOptions, l as tileDesc, ln as Transform2DOptions, lo as ColorTransformOptions, lr as GlowEffectOptions, lt as LayoutDefHdrOptions, m as transform2DDesc, mn as BlipFillOptions, mr as CompoundLine, mt as createLayoutDefHdr, n as diagramRelIdsDesc, nn as ThemeableLineStyleOptions, no as RgbColorOptions, nr as PresetShadowVal, nt as createTxLinClrLst, o as blipFillDesc, on as MediaTransformation, oo as createPresetColor, or as createOuterShadowEffect, ot as DiagramDescriptionOptions, p as groupTransform2DDesc, pn as createExtentionList, pr as createFillOverlayEffect, pt as createColorsDefHdrLst, q as HueDirection, qa as createSolidFill, qn as createEffectDag, qt as OnOffStyleType, r as diagramStyleDesc, rn as createTableStyle, ro as createRgbColor, rr as createPresetShadowEffect, rt as ColorsDefHdrLstOptions, s as sourceRectangleDesc, sn as createTransformation, so as HslColorOptions, sr as InnerShadowEffectOptions, st as DiagramNameOptions, t as diagramExtLstDesc, tn as TableTextStyleOptions, to as createScRgbColor, tr as PresetShadowEffectOptions, tt as createTxFillClrLst, u as bevelDesc, un as createGroupTransform2D, uo as createColorTransforms, ur as createGlowEffect, ut as StyleDefHdrLstOptions, v as groupLockingDesc, va as PatternFillOptions, vn as ConnectionSite, vr as OutlineOptions, vt as AdjLstOptions, w as gradientFillDesc, wa as FillOptions, wn as createCustomGeometry, wr as LineEndType, wt as ChMaxOptions, x as effectListDesc, xa as createNoFill, xn as PathCommand, xr as createOutline, xt as AnimLvlOptions, y as pictureLockingDesc, ya as PresetPattern, yn as CustomGeometryOptions, yr as PenAlignment, yt as AdjOptions, z as createDiagramTxPr, za as TileOptions, zn as Point3D, zt as GraphicFrameLockingOptions } from "../index-RWXzxibP.mjs"; | ||
| import { $ as createStyleLbl, $a as createSchemeColor, $n as ReflectionEffectOptions, $t as TableStyleOptions, A as scRgbColorDesc, Aa as GradientStop, An as Shape3DOptions, At as createAdj, B as DiagramRelIdsOptions, Ba as createTileInfo, Bn as Scene3DOptions, Bt as GroupLockingOptions, C as fillDesc, Ca as BlipFillMediaData, Cn as PathOptions, Cr as LineEndOptions, Ct as AnimOneValue, D as hslColorDesc, Da as extractBlipFillMedia, Dn as GeometryGuide, Dr as DashStop, Dt as HierBranchStyle, E as getColorDescriptor, Ea as buildFill, En as stringifyPresetGeometry, Er as createLineEnd, Et as HierBranchOptions, F as DiagramExtensionOptions, Fa as TileFlipMode, Fn as createBottomBevel, Ft as createChPref, G as DiagramStyleOptions, Ga as SolidFillOptions, Gn as EffectContainerType, Gt as createPictureLocking, H as ColorListOptions, Ha as createSourceRectangle, Hn as Vector3D, Ht as ShapeLockingOptions, I as DiagramTextPropsOptions, Ia as createGradientFill, In as BackdropOptions, It as createHierBranch, J as StyleMatrixIndex, Ja as SystemColor, Jn as BlurEffectOptions, Jt as StyleMatrixReferenceOptions, K as FontCollectionIndex, Ka as createColorElement, Kn as EffectDagOptions, Kt as createShapeLocking, L as createDiagramExtLst, La as createGradientStop, Ln as CameraOptions, Lt as createOrgChart, M as solidFillDesc, Ma as PathShadeOptions, Mn as BevelOptions, Mt as createAnimLvl, N as systemColorDesc, Na as PathShadeType, Nn as BevelPresetType, Nt as createAnimOne, O as presetColorDesc, Oa as GradientFillOptions, On as stringifyAdjustmentValues, Or as createCustomDash, Ot as OrgChartOptions, P as DiagramExtLstOptions, Pa as RelativeRect, Pn as createBevel, Pt as createChMax, Q as createLinClrLst, Qa as SchemeColorOptions, Qn as createEffectList, Qt as TableStyleListOptions, R as createDiagramSp3d, Ra as TileAlignment, Rn as LightRigOptions, Rt as createPresLayoutVars, S as outlineDesc, Sa as BlipFillConfigOptions, Sn as PathFillMode, Sr as LineEndLength, St as AnimOneOptions, T as patternFillDesc, Ta as GradientStopOptions, Tn as PresetGeometryOptions, Tr as LineEndWidth, Tt as ChPrefOptions, U as ColorMethod, Ua as BlipEffectsOptions, Un as createScene3D, Ut as createGraphicFrameLocking, V as createDiagramRelIds, Va as SourceRectangleOptions, Vn as SphereCoords, Vt as PictureLockingOptions, W as DiagramStyleLblOptions, Wa as createBlipEffects, Wn as createSoftEdgeEffect, Wt as createGroupLocking, X as createEffectClrLst, Xa as createSystemColor, Xn as EffectListOptions, Xt as TableCellStyleOptions, Y as createDiagramStyle, Ya as SystemColorOptions, Yn as EffectExtent, Yt as TableCellBorderOptions, Z as createFillClrLst, Za as SchemeColor, Zn as calculateEffectExtent, Zt as TablePartStyleOptions, _ as graphicFrameLockingDesc, _a as createGroupFill, _n as createBlip, _r as OutlineFillProperties, _t as createStyleDefHdrLst, a as blipDesc, an as MediaDataTransformation, ao as PresetColorOptions, ar as RectAlignment, at as DiagramCategoryOptions, b as shapeLockingDesc, ba as createPatternFill, bn as GeomRect, br as PresetDash, bt as AnimLevelValue, c as stretchDesc, cn as GroupTransform2DOptions, co as createHslColor, cr as createInnerShadowEffect, ct as LayoutDefHdrLstOptions, d as scene3DDesc, dn as createTransform2D, dr as BlendMode, dt as StyleDefHdrOptions, en as TableStyleRegion, eo as ScRgbColorOptions, er as createReflectionEffect, et as createTxEffectClrLst, f as shape3DDesc, fn as stringifyStretch, fr as FillOverlayEffectOptions, ft as createColorsDefHdr, g as presetGeometryDesc, gn as BlipOptions, gr as LineJoin, gt as createStyleDefHdr, h as customGeometryDesc, hn as createBlipFill, hr as LineCap, ht as createLayoutDefHdrLst, i as presLayoutVarsDesc, in as createTableStyleList, io as PresetColor, ir as OuterShadowEffectOptions, it as ColorsDefHdrOptions, j as schemeColorDesc, ja as LinearShadeOptions, jn as createShape3D, jt as createAdjLst, k as rgbColorDesc, ka as GradientShadeOptions, kn as PresetMaterialType, kt as PresLayoutVarsOptions, l as tileDesc, ln as Transform2DOptions, lo as ColorTransformOptions, lr as GlowEffectOptions, lt as LayoutDefHdrOptions, m as transform2DDesc, mn as BlipFillOptions, mr as CompoundLine, mt as createLayoutDefHdr, n as diagramRelIdsDesc, nn as ThemeableLineStyleOptions, no as RgbColorOptions, nr as PresetShadowVal, nt as createTxLinClrLst, o as blipFillDesc, on as MediaTransformation, oo as createPresetColor, or as createOuterShadowEffect, ot as DiagramDescriptionOptions, p as groupTransform2DDesc, pn as createExtentionList, pr as createFillOverlayEffect, pt as createColorsDefHdrLst, q as HueDirection, qa as createSolidFill, qn as createEffectDag, qt as OnOffStyleType, r as diagramStyleDesc, rn as createTableStyle, ro as createRgbColor, rr as createPresetShadowEffect, rt as ColorsDefHdrLstOptions, s as sourceRectangleDesc, sn as createTransformation, so as HslColorOptions, sr as InnerShadowEffectOptions, st as DiagramNameOptions, t as diagramExtLstDesc, tn as TableTextStyleOptions, to as createScRgbColor, tr as PresetShadowEffectOptions, tt as createTxFillClrLst, u as bevelDesc, un as createGroupTransform2D, uo as createColorTransforms, ur as createGlowEffect, ut as StyleDefHdrLstOptions, v as groupLockingDesc, va as PatternFillOptions, vn as ConnectionSite, vr as OutlineOptions, vt as AdjLstOptions, w as gradientFillDesc, wa as FillOptions, wn as createCustomGeometry, wr as LineEndType, wt as ChMaxOptions, x as effectListDesc, xa as createNoFill, xn as PathCommand, xr as createOutline, xt as AnimLvlOptions, y as pictureLockingDesc, ya as PresetPattern, yn as CustomGeometryOptions, yr as PenAlignment, yt as AdjOptions, z as createDiagramTxPr, za as TileOptions, zn as Point3D, zt as GraphicFrameLockingOptions } from "../index-BqJRDf5H.mjs"; | ||
| export { type AdjLstOptions, type AdjOptions, AnimLevelValue, type AnimLvlOptions, type AnimOneOptions, AnimOneValue, type BackdropOptions, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, type CameraOptions, type ChMaxOptions, type ChPrefOptions, type ColorListOptions, ColorMethod, type ColorTransformOptions, type ColorsDefHdrLstOptions, type ColorsDefHdrOptions, CompoundLine, type ConnectionSite, type CustomGeometryOptions, type DashStop, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtLstOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelIdsOptions, type DiagramStyleLblOptions, type DiagramStyleOptions, type DiagramTextPropsOptions, 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 LayoutDefHdrLstOptions, type LayoutDefHdrOptions, type LightRigOptions, LineCap, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, 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 PresLayoutVarsOptions, 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 StyleDefHdrLstOptions, type StyleDefHdrOptions, 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, createAdj, createAdjLst, createAnimLvl, createAnimOne, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChMax, createChPref, createColorElement, createColorTransforms, createColorsDefHdr, createColorsDefHdrLst, createCustomDash, createCustomGeometry, createDiagramExtLst, createDiagramRelIds, createDiagramSp3d, createDiagramStyle, createDiagramTxPr, createEffectClrLst, createEffectDag, createEffectList, createExtentionList, createFillClrLst, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefHdr, createLayoutDefHdrLst, createLinClrLst, createLineEnd, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPresLayoutVars, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefHdr, createStyleDefHdrLst, createStyleLbl, createSystemColor, createTableStyle, createTableStyleList, createTileInfo, createTransform2D, createTransformation, createTxEffectClrLst, createTxFillClrLst, createTxLinClrLst, customGeometryDesc, diagramExtLstDesc, diagramRelIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc, getColorDescriptor, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hslColorDesc, outlineDesc, patternFillDesc, pictureLockingDesc, presLayoutVarsDesc, presetColorDesc, presetGeometryDesc, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyPresetGeometry, stringifyStretch, systemColorDesc, tileDesc, transform2DDesc }; |
@@ -1,2 +0,2 @@ | ||
| import { $ as systemColorDesc, A as bevelDesc, An as LineCap, Ar as PresetColor, At as createChPref, B as shapeLockingDesc, Bn as createGroupFill, Bt as createTransformation, C as diagramStyleDesc, Cn as RectAlignment, Cr as createSolidFill, Ct as AnimOneValue, D as sourceRectangleDesc, Dn as BlendMode, Dr as createSchemeColor, Dt as createAnimLvl, E as blipFillDesc, En as createGlowEffect, Er as SchemeColor, Et as createAdjLst, F as customGeometryDesc, Fn as LineEndLength, Ft as createGroupLocking, G as patternFillDesc, Gn as createPatternFill, H as outlineDesc, Hn as buildFill, I as presetGeometryDesc, In as LineEndType, It as createPictureLocking, J as presetColorDesc, Jn as createGradientFill, K as getColorDescriptor, Kn as PathShadeType, L as graphicFrameLockingDesc, Ln as LineEndWidth, Lt as createShapeLocking, M as shape3DDesc, Mn as PenAlignment, Mr as createHslColor, Mt as createOrgChart, N as groupTransform2DDesc, Nn as PresetDash, Nr as createColorTransforms, Nt as createPresLayoutVars, O as stretchDesc, On as createFillOverlayEffect, Or as createScRgbColor, Ot as createAnimOne, P as transform2DDesc, Pn as createOutline, Pt as createGraphicFrameLocking, Q as solidFillDesc, R as groupLockingDesc, Rn as createLineEnd, Rt as createTableStyle, S as diagramRelIdsDesc, Sn as createPresetShadowEffect, Sr as createColorElement, St as AnimLevelValue, T as blipDesc, Tn as createInnerShadowEffect, Tr as createSystemColor, Tt as createAdj, U as fillDesc, Un as extractBlipFillMedia, V as effectListDesc, Vn as createNoFill, W as gradientFillDesc, Wn as PresetPattern, X as scRgbColorDesc, Xn as TileAlignment, Y as rgbColorDesc, Yn as createGradientStop, Z as schemeColorDesc, Zn as createTileInfo, _n as calculateEffectExtent, _r as createBlipEffects, _t as createColorsDefHdrLst, an as createBlip, at as FontCollectionIndex, bn as createReflectionEffect, bt as createStyleDefHdr, cn as stringifyPresetGeometry, ct as createDiagramStyle, dn as createShape3D, dt as createLinClrLst, et as createDiagramExtLst, fn as BevelPresetType, ft as createStyleLbl, gn as createEffectDag, gr as createSourceRectangle, gt as createColorsDefHdr, hn as createScene3D, ht as createTxLinClrLst, in as createBlipFill, it as ColorMethod, j as scene3DDesc, jn as LineJoin, jr as createPresetColor, jt as createHierBranch, k as tileDesc, kn as CompoundLine, kr as createRgbColor, kt as createChMax, ln as stringifyAdjustmentValues, lt as createEffectClrLst, mn as createBottomBevel, mt as createTxFillClrLst, nn as createTransform2D, nt as createDiagramTxPr, on as createExtentionList, ot as HueDirection, pn as createBevel, pt as createTxEffectClrLst, q as hslColorDesc, qn as TileFlipMode, rn as stringifyStretch, rt as createDiagramRelIds, sn as createCustomGeometry, st as StyleMatrixIndex, tn as createGroupTransform2D, tt as createDiagramSp3d, un as PresetMaterialType, ut as createFillClrLst, vn as createEffectList, vt as createLayoutDefHdr, w as presLayoutVarsDesc, wn as createOuterShadowEffect, wr as SystemColor, wt as HierBranchStyle, x as diagramExtLstDesc, xn as PresetShadowVal, xt as createStyleDefHdrLst, yn as createSoftEdgeEffect, yt as createLayoutDefHdrLst, z as pictureLockingDesc, zn as createCustomDash, zt as createTableStyleList } from "../src-CU2AFKyt.mjs"; | ||
| import { $ as systemColorDesc, A as bevelDesc, An as LineCap, Ar as PresetColor, At as createChPref, B as shapeLockingDesc, Bn as createGroupFill, Bt as createTransformation, C as diagramStyleDesc, Cn as RectAlignment, Cr as createSolidFill, Ct as AnimOneValue, D as sourceRectangleDesc, Dn as BlendMode, Dr as createSchemeColor, Dt as createAnimLvl, E as blipFillDesc, En as createGlowEffect, Er as SchemeColor, Et as createAdjLst, F as customGeometryDesc, Fn as LineEndLength, Ft as createGroupLocking, G as patternFillDesc, Gn as createPatternFill, H as outlineDesc, Hn as buildFill, I as presetGeometryDesc, In as LineEndType, It as createPictureLocking, J as presetColorDesc, Jn as createGradientFill, K as getColorDescriptor, Kn as PathShadeType, L as graphicFrameLockingDesc, Ln as LineEndWidth, Lt as createShapeLocking, M as shape3DDesc, Mn as PenAlignment, Mr as createHslColor, Mt as createOrgChart, N as groupTransform2DDesc, Nn as PresetDash, Nr as createColorTransforms, Nt as createPresLayoutVars, O as stretchDesc, On as createFillOverlayEffect, Or as createScRgbColor, Ot as createAnimOne, P as transform2DDesc, Pn as createOutline, Pt as createGraphicFrameLocking, Q as solidFillDesc, R as groupLockingDesc, Rn as createLineEnd, Rt as createTableStyle, S as diagramRelIdsDesc, Sn as createPresetShadowEffect, Sr as createColorElement, St as AnimLevelValue, T as blipDesc, Tn as createInnerShadowEffect, Tr as createSystemColor, Tt as createAdj, U as fillDesc, Un as extractBlipFillMedia, V as effectListDesc, Vn as createNoFill, W as gradientFillDesc, Wn as PresetPattern, X as scRgbColorDesc, Xn as TileAlignment, Y as rgbColorDesc, Yn as createGradientStop, Z as schemeColorDesc, Zn as createTileInfo, _n as calculateEffectExtent, _r as createBlipEffects, _t as createColorsDefHdrLst, an as createBlip, at as FontCollectionIndex, bn as createReflectionEffect, bt as createStyleDefHdr, cn as stringifyPresetGeometry, ct as createDiagramStyle, dn as createShape3D, dt as createLinClrLst, et as createDiagramExtLst, fn as BevelPresetType, ft as createStyleLbl, gn as createEffectDag, gr as createSourceRectangle, gt as createColorsDefHdr, hn as createScene3D, ht as createTxLinClrLst, in as createBlipFill, it as ColorMethod, j as scene3DDesc, jn as LineJoin, jr as createPresetColor, jt as createHierBranch, k as tileDesc, kn as CompoundLine, kr as createRgbColor, kt as createChMax, ln as stringifyAdjustmentValues, lt as createEffectClrLst, mn as createBottomBevel, mt as createTxFillClrLst, nn as createTransform2D, nt as createDiagramTxPr, on as createExtentionList, ot as HueDirection, pn as createBevel, pt as createTxEffectClrLst, q as hslColorDesc, qn as TileFlipMode, rn as stringifyStretch, rt as createDiagramRelIds, sn as createCustomGeometry, st as StyleMatrixIndex, tn as createGroupTransform2D, tt as createDiagramSp3d, un as PresetMaterialType, ut as createFillClrLst, vn as createEffectList, vt as createLayoutDefHdr, w as presLayoutVarsDesc, wn as createOuterShadowEffect, wr as SystemColor, wt as HierBranchStyle, x as diagramExtLstDesc, xn as PresetShadowVal, xt as createStyleDefHdrLst, yn as createSoftEdgeEffect, yt as createLayoutDefHdrLst, z as pictureLockingDesc, zn as createCustomDash, zt as createTableStyleList } from "../src-DPuDEZYF.mjs"; | ||
| export { AnimLevelValue, AnimOneValue, 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, createAdj, createAdjLst, createAnimLvl, createAnimOne, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChMax, createChPref, createColorElement, createColorTransforms, createColorsDefHdr, createColorsDefHdrLst, createCustomDash, createCustomGeometry, createDiagramExtLst, createDiagramRelIds, createDiagramSp3d, createDiagramStyle, createDiagramTxPr, createEffectClrLst, createEffectDag, createEffectList, createExtentionList, createFillClrLst, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefHdr, createLayoutDefHdrLst, createLinClrLst, createLineEnd, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPresLayoutVars, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefHdr, createStyleDefHdrLst, createStyleLbl, createSystemColor, createTableStyle, createTableStyleList, createTileInfo, createTransform2D, createTransformation, createTxEffectClrLst, createTxFillClrLst, createTxLinClrLst, customGeometryDesc, diagramExtLstDesc, diagramRelIdsDesc, diagramStyleDesc, effectListDesc, extractBlipFillMedia, fillDesc, getColorDescriptor, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hslColorDesc, outlineDesc, patternFillDesc, pictureLockingDesc, presLayoutVarsDesc, presetColorDesc, presetGeometryDesc, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyPresetGeometry, stringifyStretch, systemColorDesc, tileDesc, transform2DDesc }; |
+5
-5
@@ -1,8 +0,8 @@ | ||
| 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-DNH2sizc.mjs"; | ||
| import { _ as TextSpec, a as enumEncode, b as ReadContext, c as DescriptorBuilder, d as ChildSpec, f as ChildrenSpec, g as ElementDescriptor, h as Descriptor, i as enumDecode, l as element, m as CustomDescriptor, n as boolDecode, o as parse, p as ContentSpec, r as boolEncode, s as stringify, t as DescriptorRegistry, u as AttrSpec, v as UnionSpec, x as WriteContext, y as UnionVariant } from "./index-BI-1SKm5.mjs"; | ||
| import { $ as createStyleLbl, $a as createSchemeColor, $i as zipAndConvert, $n as ReflectionEffectOptions, $r as xsdMaterialType, $t as TableStyleOptions, A as scRgbColorDesc, Aa as GradientStop, Ai as convertToEmu, An as Shape3DOptions, Ar as SmartArtRelOptions, At as createAdj, B as DiagramRelIdsOptions, Ba as createTileInfo, Bi as DataType, Bn as Scene3DOptions, Br as replaceChartPlaceholders, Bt as GroupLockingOptions, C as fillDesc, Ca as BlipFillMediaData, Ci as convertEmuToPoints, Cn as PathOptions, Cr as LineEndOptions, Ct as AnimOneValue, D as hslColorDesc, Da as extractBlipFillMedia, Di as convertPixelsToEmu, Dn as GeometryGuide, Dr as DashStop, Dt as HierBranchStyle, E as getColorDescriptor, Ea as buildFill, Ei as convertMillimetersToTwip, En as stringifyPresetGeometry, Er as createLineEnd, Et as HierBranchOptions, F as DiagramExtensionOptions, Fa as TileFlipMode, Fi as compileMapping, Fn as createBottomBevel, Fr as getMediaRefs, Ft as createChPref, G as DiagramStyleOptions, Ga as SolidFillOptions, Gi as ZIP_STORED_LEVEL, Gn as EffectContainerType, Gr as replaceSmartArtPlaceholders, Gt as createPictureLocking, H as ColorListOptions, Ha as createSourceRectangle, Hi as PackerOptions, Hn as Vector3D, Hr as replaceImagePlaceholders, Ht as ShapeLockingOptions, I as DiagramTextPropsOptions, Ia as createGradientFill, Ii as ParsedArchive, In as BackdropOptions, Ir as getReferencedMedia, It as createHierBranch, J as StyleMatrixIndex, Ja as SystemColor, Ji as createPacker, Jn as BlurEffectOptions, Jr as xsdBlendMode, Jt as StyleMatrixReferenceOptions, K as FontCollectionIndex, Ka as createColorElement, Ki as ZipOptions, Kn as EffectDagOptions, Kr as replaceVideoPlaceholders, Kt as createShapeLocking, L as createDiagramExtLst, La as createGradientStop, Li as parseArchive, Ln as CameraOptions, Lr as getVideoRefs, Lt as createOrgChart, M as solidFillDesc, Ma as PathShadeOptions, Mi as convertUniversalMeasureToEmu, Mn as BevelOptions, Mr as collectPlaceholderKeys, Mt as createAnimLvl, N as systemColorDesc, Na as PathShadeType, Ni as convertUniversalMeasureToTwip, Nn as BevelPresetType, Nr as findAndReplaceImagePlaceholders, Nt as createAnimOne, O as presetColorDesc, Oa as GradientFillOptions, Oi as convertPointsToEmu, On as stringifyAdjustmentValues, Or as createCustomDash, Ot as OrgChartOptions, P as DiagramExtLstOptions, Pa as RelativeRect, Pi as parseUniversalMeasure, Pn as createBevel, Pr as formatId, Pt as createChMax, Q as createLinClrLst, Qa as SchemeColorOptions, Qi as unzipSync, Qn as createEffectList, Qr as xsdLineEndSize, Qt as TableStyleListOptions, R as createDiagramSp3d, Ra as TileAlignment, Ri as CompileFn, Rn as LightRigOptions, Rr as hasPlaceholders, Rt as createPresLayoutVars, S as outlineDesc, Sa as BlipFillConfigOptions, Si as convertEmuToPixels, Sn as PathFillMode, Sr as LineEndLength, St as AnimOneOptions, T as patternFillDesc, Ta as GradientStopOptions, Ti as convertInchesToTwip, Tn as PresetGeometryOptions, Tr as LineEndWidth, Tt as ChPrefOptions, U as ColorMethod, Ua as BlipEffectsOptions, Ui as XmlifyedFile, Un as createScene3D, Ur as replaceMediaPlaceholders, Ut as createGraphicFrameLocking, V as createDiagramRelIds, Va as SourceRectangleOptions, Vi as Packer, Vn as SphereCoords, Vr as replaceHyperlinkPlaceholders, Vt as PictureLockingOptions, W as DiagramStyleLblOptions, Wa as createBlipEffects, Wi as ZIP_DEFLATE_LEVEL, Wn as createSoftEdgeEffect, Wr as replaceNumberingPlaceholders, Wt as createGroupLocking, X as createEffectClrLst, Xa as createSystemColor, Xi as strFromU8, Xn as EffectListOptions, Xr as xsdEffectContainer, Xt as TableCellStyleOptions, Y as createDiagramStyle, Ya as SystemColorOptions, Yi as createZipStream, Yn as EffectExtent, Yr as xsdCompoundLine, Yt as TableCellBorderOptions, Z as createFillClrLst, Za as SchemeColor, Zi as toUint8Array, Zn as calculateEffectExtent, Zr as xsdLineCap, Zt as TablePartStyleOptions, _ as graphicFrameLockingDesc, _a as createGroupFill, _i as hashPasswordAgile, _n as createBlip, _r as OutlineFillProperties, _t as createStyleDefHdrLst, a as blipDesc, aa as CoreProperties, ai as xsdStrikeStyle, an as MediaDataTransformation, ao as PresetColorOptions, ar as RectAlignment, at as DiagramCategoryOptions, b as shapeLockingDesc, ba as createPatternFill, bi as PixelPosition, bn as GeomRect, br as PresetDash, bt as AnimLevelValue, c as stretchDesc, ca as parseCorePropsElement, ci as xsdTextCaps, cn as GroupTransform2DOptions, co as createHslColor, cr as createInnerShadowEffect, ct as LayoutDefHdrLstOptions, d as scene3DDesc, da as createDefault, di as UniqueNumericIdCreator, dn as createTransform2D, dr as BlendMode, dt as StyleDefHdrOptions, ea as zipSyncAndConvert, ei as xsdPathFillMode, en as TableStyleRegion, eo as ScRgbColorOptions, er as createReflectionEffect, et as createTxEffectClrLst, f as shape3DDesc, fa as createOverride, fi as hashedId, fn as stringifyStretch, fr as FillOverlayEffectOptions, ft as createColorsDefHdr, g as presetGeometryDesc, ga as APP_PROPS_XML, gi as derivePasswordHash, gn as BlipOptions, gr as LineJoin, gt as createStyleDefHdr, h as customGeometryDesc, ha as TargetModeType, hi as uniqueUuid, hn as createBlipFill, hr as LineCap, ht as createLayoutDefHdrLst, i as presLayoutVarsDesc, ia as convertOutput, ii as xsdRectAlignment, in as createTableStyleList, io as PresetColor, ir as OuterShadowEffectOptions, it as ColorsDefHdrOptions, j as schemeColorDesc, ja as LinearShadeOptions, ji as convertToTwip, jn as createShape3D, jr as addSmartArtRelationships, jt as createAdjLst, k as rgbColorDesc, ka as GradientShadeOptions, ki as convertPositionToEmu, kn as PresetMaterialType, kr as IdFormat, kt as PresLayoutVarsOptions, l as tileDesc, la as DefaultAttributes, li as xsdUnderlineStyle, ln as Transform2DOptions, lo as ColorTransformOptions, lr as GlowEffectOptions, lt as LayoutDefHdrOptions, m as transform2DDesc, ma as Relationships, mi as uniqueNumericIdCreator, mn as BlipFillOptions, mr as CompoundLine, mt as createLayoutDefHdr, n as diagramRelIdsDesc, na as OutputByType, ni as xsdPenAlignment, nn as ThemeableLineStyleOptions, no as RgbColorOptions, nr as PresetShadowVal, nt as createTxLinClrLst, o as blipFillDesc, oa as buildCorePropertiesXml, oi as xsdTextAlign, on as MediaTransformation, oo as createPresetColor, or as createOuterShadowEffect, ot as DiagramDescriptionOptions, p as groupTransform2DDesc, pa as RelationshipType, pi as uniqueId, pn as createExtentionList, pr as createFillOverlayEffect, pt as createColorsDefHdrLst, q as HueDirection, qa as createSolidFill, qi as Zippable, qn as createEffectDag, qr as invertMap, qt as OnOffStyleType, r as diagramStyleDesc, ra as OutputType, ri as xsdPresetShadow, rn as createTableStyle, ro as createRgbColor, rr as createPresetShadowEffect, rt as ColorsDefHdrLstOptions, s as sourceRectangleDesc, sa as buildCorePropertiesXmlString, si as xsdTextAnchor, sn as createTransformation, so as HslColorOptions, sr as InnerShadowEffectOptions, st as DiagramNameOptions, t as diagramExtLstDesc, ta as OoxmlMimeType, ti as xsdPattern, tn as TableTextStyleOptions, to as createScRgbColor, tr as PresetShadowEffectOptions, tt as createTxFillClrLst, u as bevelDesc, ua as OverrideAttributes, ui as xsdVerticalMergeRev, un as createGroupTransform2D, uo as createColorTransforms, ur as createGlowEffect, ut as StyleDefHdrLstOptions, v as groupLockingDesc, va as PatternFillOptions, vi as randomBytes, vn as ConnectionSite, vr as OutlineOptions, vt as AdjLstOptions, w as gradientFillDesc, wa as FillOptions, wi as convertInchesToEmu, wn as createCustomGeometry, wr as LineEndType, wt as ChMaxOptions, x as effectListDesc, xa as createNoFill, xi as convertEmuToInches, xn as PathCommand, xr as createOutline, xt as AnimLvlOptions, y as pictureLockingDesc, ya as PresetPattern, yi as EmuPosition, yn as CustomGeometryOptions, yr as PenAlignment, yt as AdjOptions, z as createDiagramTxPr, za as TileOptions, zi as CompressionOptions, zn as Point3D, zr as replaceAllPlaceholders, zt as GraphicFrameLockingOptions } from "./index-RWXzxibP.mjs"; | ||
| 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-xXbaecaB.mjs"; | ||
| import { _ as TextSpec, a as enumEncode, b as ReadContext, c as DescriptorBuilder, d as ChildSpec, f as ChildrenSpec, g as ElementDescriptor, h as Descriptor, i as enumDecode, l as element, m as CustomDescriptor, n as boolDecode, o as parse, p as ContentSpec, r as boolEncode, s as stringify, t as DescriptorRegistry, u as AttrSpec, v as UnionSpec, x as WriteContext, y as UnionVariant } from "./index-D81RV9Vc.mjs"; | ||
| import { $ as createStyleLbl, $a as createSchemeColor, $i as zipAndConvert, $n as ReflectionEffectOptions, $r as xsdMaterialType, $t as TableStyleOptions, A as scRgbColorDesc, Aa as GradientStop, Ai as convertToEmu, An as Shape3DOptions, Ar as SmartArtRelOptions, At as createAdj, B as DiagramRelIdsOptions, Ba as createTileInfo, Bi as DataType, Bn as Scene3DOptions, Br as replaceChartPlaceholders, Bt as GroupLockingOptions, C as fillDesc, Ca as BlipFillMediaData, Ci as convertEmuToPoints, Cn as PathOptions, Cr as LineEndOptions, Ct as AnimOneValue, D as hslColorDesc, Da as extractBlipFillMedia, Di as convertPixelsToEmu, Dn as GeometryGuide, Dr as DashStop, Dt as HierBranchStyle, E as getColorDescriptor, Ea as buildFill, Ei as convertMillimetersToTwip, En as stringifyPresetGeometry, Er as createLineEnd, Et as HierBranchOptions, F as DiagramExtensionOptions, Fa as TileFlipMode, Fi as compileMapping, Fn as createBottomBevel, Fr as getMediaRefs, Ft as createChPref, G as DiagramStyleOptions, Ga as SolidFillOptions, Gi as ZIP_STORED_LEVEL, Gn as EffectContainerType, Gr as replaceSmartArtPlaceholders, Gt as createPictureLocking, H as ColorListOptions, Ha as createSourceRectangle, Hi as PackerOptions, Hn as Vector3D, Hr as replaceImagePlaceholders, Ht as ShapeLockingOptions, I as DiagramTextPropsOptions, Ia as createGradientFill, Ii as ParsedArchive, In as BackdropOptions, Ir as getReferencedMedia, It as createHierBranch, J as StyleMatrixIndex, Ja as SystemColor, Ji as createPacker, Jn as BlurEffectOptions, Jr as xsdBlendMode, Jt as StyleMatrixReferenceOptions, K as FontCollectionIndex, Ka as createColorElement, Ki as ZipOptions, Kn as EffectDagOptions, Kr as replaceVideoPlaceholders, Kt as createShapeLocking, L as createDiagramExtLst, La as createGradientStop, Li as parseArchive, Ln as CameraOptions, Lr as getVideoRefs, Lt as createOrgChart, M as solidFillDesc, Ma as PathShadeOptions, Mi as convertUniversalMeasureToEmu, Mn as BevelOptions, Mr as collectPlaceholderKeys, Mt as createAnimLvl, N as systemColorDesc, Na as PathShadeType, Ni as convertUniversalMeasureToTwip, Nn as BevelPresetType, Nr as findAndReplaceImagePlaceholders, Nt as createAnimOne, O as presetColorDesc, Oa as GradientFillOptions, Oi as convertPointsToEmu, On as stringifyAdjustmentValues, Or as createCustomDash, Ot as OrgChartOptions, P as DiagramExtLstOptions, Pa as RelativeRect, Pi as parseUniversalMeasure, Pn as createBevel, Pr as formatId, Pt as createChMax, Q as createLinClrLst, Qa as SchemeColorOptions, Qi as unzipSync, Qn as createEffectList, Qr as xsdLineEndSize, Qt as TableStyleListOptions, R as createDiagramSp3d, Ra as TileAlignment, Ri as CompileFn, Rn as LightRigOptions, Rr as hasPlaceholders, Rt as createPresLayoutVars, S as outlineDesc, Sa as BlipFillConfigOptions, Si as convertEmuToPixels, Sn as PathFillMode, Sr as LineEndLength, St as AnimOneOptions, T as patternFillDesc, Ta as GradientStopOptions, Ti as convertInchesToTwip, Tn as PresetGeometryOptions, Tr as LineEndWidth, Tt as ChPrefOptions, U as ColorMethod, Ua as BlipEffectsOptions, Ui as XmlifyedFile, Un as createScene3D, Ur as replaceMediaPlaceholders, Ut as createGraphicFrameLocking, V as createDiagramRelIds, Va as SourceRectangleOptions, Vi as Packer, Vn as SphereCoords, Vr as replaceHyperlinkPlaceholders, Vt as PictureLockingOptions, W as DiagramStyleLblOptions, Wa as createBlipEffects, Wi as ZIP_DEFLATE_LEVEL, Wn as createSoftEdgeEffect, Wr as replaceNumberingPlaceholders, Wt as createGroupLocking, X as createEffectClrLst, Xa as createSystemColor, Xi as strFromU8, Xn as EffectListOptions, Xr as xsdEffectContainer, Xt as TableCellStyleOptions, Y as createDiagramStyle, Ya as SystemColorOptions, Yi as createZipStream, Yn as EffectExtent, Yr as xsdCompoundLine, Yt as TableCellBorderOptions, Z as createFillClrLst, Za as SchemeColor, Zi as toUint8Array, Zn as calculateEffectExtent, Zr as xsdLineCap, Zt as TablePartStyleOptions, _ as graphicFrameLockingDesc, _a as createGroupFill, _i as hashPasswordAgile, _n as createBlip, _r as OutlineFillProperties, _t as createStyleDefHdrLst, a as blipDesc, aa as CoreProperties, ai as xsdStrikeStyle, an as MediaDataTransformation, ao as PresetColorOptions, ar as RectAlignment, at as DiagramCategoryOptions, b as shapeLockingDesc, ba as createPatternFill, bi as PixelPosition, bn as GeomRect, br as PresetDash, bt as AnimLevelValue, c as stretchDesc, ca as parseCorePropsElement, ci as xsdTextCaps, cn as GroupTransform2DOptions, co as createHslColor, cr as createInnerShadowEffect, ct as LayoutDefHdrLstOptions, d as scene3DDesc, da as createDefault, di as UniqueNumericIdCreator, dn as createTransform2D, dr as BlendMode, dt as StyleDefHdrOptions, ea as zipSyncAndConvert, ei as xsdPathFillMode, en as TableStyleRegion, eo as ScRgbColorOptions, er as createReflectionEffect, et as createTxEffectClrLst, f as shape3DDesc, fa as createOverride, fi as hashedId, fn as stringifyStretch, fr as FillOverlayEffectOptions, ft as createColorsDefHdr, g as presetGeometryDesc, ga as APP_PROPS_XML, gi as derivePasswordHash, gn as BlipOptions, gr as LineJoin, gt as createStyleDefHdr, h as customGeometryDesc, ha as TargetModeType, hi as uniqueUuid, hn as createBlipFill, hr as LineCap, ht as createLayoutDefHdrLst, i as presLayoutVarsDesc, ia as convertOutput, ii as xsdRectAlignment, in as createTableStyleList, io as PresetColor, ir as OuterShadowEffectOptions, it as ColorsDefHdrOptions, j as schemeColorDesc, ja as LinearShadeOptions, ji as convertToTwip, jn as createShape3D, jr as addSmartArtRelationships, jt as createAdjLst, k as rgbColorDesc, ka as GradientShadeOptions, ki as convertPositionToEmu, kn as PresetMaterialType, kr as IdFormat, kt as PresLayoutVarsOptions, l as tileDesc, la as DefaultAttributes, li as xsdUnderlineStyle, ln as Transform2DOptions, lo as ColorTransformOptions, lr as GlowEffectOptions, lt as LayoutDefHdrOptions, m as transform2DDesc, ma as Relationships, mi as uniqueNumericIdCreator, mn as BlipFillOptions, mr as CompoundLine, mt as createLayoutDefHdr, n as diagramRelIdsDesc, na as OutputByType, ni as xsdPenAlignment, nn as ThemeableLineStyleOptions, no as RgbColorOptions, nr as PresetShadowVal, nt as createTxLinClrLst, o as blipFillDesc, oa as buildCorePropertiesXml, oi as xsdTextAlign, on as MediaTransformation, oo as createPresetColor, or as createOuterShadowEffect, ot as DiagramDescriptionOptions, p as groupTransform2DDesc, pa as RelationshipType, pi as uniqueId, pn as createExtentionList, pr as createFillOverlayEffect, pt as createColorsDefHdrLst, q as HueDirection, qa as createSolidFill, qi as Zippable, qn as createEffectDag, qr as invertMap, qt as OnOffStyleType, r as diagramStyleDesc, ra as OutputType, ri as xsdPresetShadow, rn as createTableStyle, ro as createRgbColor, rr as createPresetShadowEffect, rt as ColorsDefHdrLstOptions, s as sourceRectangleDesc, sa as buildCorePropertiesXmlString, si as xsdTextAnchor, sn as createTransformation, so as HslColorOptions, sr as InnerShadowEffectOptions, st as DiagramNameOptions, t as diagramExtLstDesc, ta as OoxmlMimeType, ti as xsdPattern, tn as TableTextStyleOptions, to as createScRgbColor, tr as PresetShadowEffectOptions, tt as createTxFillClrLst, u as bevelDesc, ua as OverrideAttributes, ui as xsdVerticalMergeRev, un as createGroupTransform2D, uo as createColorTransforms, ur as createGlowEffect, ut as StyleDefHdrLstOptions, v as groupLockingDesc, va as PatternFillOptions, vi as randomBytes, vn as ConnectionSite, vr as OutlineOptions, vt as AdjLstOptions, w as gradientFillDesc, wa as FillOptions, wi as convertInchesToEmu, wn as createCustomGeometry, wr as LineEndType, wt as ChMaxOptions, x as effectListDesc, xa as createNoFill, xi as convertEmuToInches, xn as PathCommand, xr as createOutline, xt as AnimLvlOptions, y as pictureLockingDesc, ya as PresetPattern, yi as EmuPosition, yn as CustomGeometryOptions, yr as PenAlignment, yt as AdjOptions, z as createDiagramTxPr, za as TileOptions, zi as CompressionOptions, zn as Point3D, zr as replaceAllPlaceholders, zt as GraphicFrameLockingOptions } from "./index-BqJRDf5H.mjs"; | ||
| import { a as PointPropertySetOptions, c as stringifyDataModel, d as getColorXml, f as getLayoutXml, g as STYLE_CATEGORIES, h as LAYOUT_CATEGORIES, i as SmartArtData, l as stringifyConnection, m as COLOR_CATEGORIES, n as createDataModel, o as stringifyPoint, p as getStyleXml, r as SmartArtCollection, s as stringifyTransPoint, t as TreeNode, u as DEFAULT_DRAWING_XML } from "./index-eu1aFQCm.mjs"; | ||
| import { _ as PPTX_NS, a as getFirstLevelElements, c as TokenNotFoundError, d as createTraverser, f as RenderedParagraphNode, g as DOCX_NS, h as createReplacer, i as createTextElementContents, l as createSplitInject, m as ReplacerConfig, n as getNextRelationshipIndex, o as patchSpaceAttribute, p as createRunRenderer, r as appendContentType, s as toJson, t as appendRelationship, u as createTokenReplacer, v as XmlNamespaceConfig } from "./index-BCUfgp9A.mjs"; | ||
| import { a as ColorSchemeOptions, i as createThemeXml, n as DEFAULT_COLORS, o as FontSchemeOptions, r as buildThemeXml, s as ThemeOptions, t as themeDesc } from "./index-DByjp6ug.mjs"; | ||
| import { _ as PPTX_NS, a as getFirstLevelElements, c as TokenNotFoundError, d as createTraverser, f as RenderedParagraphNode, g as DOCX_NS, h as createReplacer, i as createTextElementContents, l as createSplitInject, m as ReplacerConfig, n as getNextRelationshipIndex, o as patchSpaceAttribute, p as createRunRenderer, r as appendContentType, s as toJson, t as appendRelationship, u as createTokenReplacer, v as XmlNamespaceConfig } from "./index-DmPBJwSk.mjs"; | ||
| import { a as ColorSchemeOptions, i as createThemeXml, n as DEFAULT_COLORS, o as FontSchemeOptions, r as buildThemeXml, s as ThemeOptions, t as themeDesc } from "./index-BKotL3AP.mjs"; | ||
| import { C as uCharHexNumber, S as twipsMeasureValue, T as unsignedDecimalNumber, _ as pointMeasureValue, a as ThemeColor, b as signedHpsMeasureValue, c as dateTimeValue, d as hexBinary, f as hexColorValue, g as percentageValue, h as measurementOrPercentValue, i as RelativeMeasure, l as decimalNumber, m as longHexNumber, n as PositivePercentage, o as ThemeFont, p as hpsMeasureValue, r as PositiveUniversalMeasure, s as UniversalMeasure, t as Percentage, u as eighthPointMeasureValue, v as positiveUniversalMeasureValue, w as universalMeasureValue, x as signedTwipsMeasureValue, y as shortHexNumber } from "./values-Dqj8cbcy.mjs"; | ||
| export { APP_PROPS_XML, type AdjLstOptions, type AdjOptions, AnimLevelValue, type AnimLvlOptions, type AnimOneOptions, AnimOneValue, type AttrSpec, AxisChartType, type BackdropOptions, type BevelOptions, BevelPresetType, BlendMode, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, BubbleSeriesData, COLOR_CATEGORIES, type CameraOptions, type ChMaxOptions, type ChPrefOptions, ChartCollection, ChartData, ChartSeriesData, ChartSpaceOptions, ChartType, type ChildSpec, type ChildrenSpec, type ColorListOptions, ColorMethod, type ColorSchemeOptions, type ColorTransformOptions, type ColorsDefHdrLstOptions, type ColorsDefHdrOptions, type CompileFn, CompoundLine, type CompressionOptions, type ConnectionSite, type ContentSpec, type CoreProperties, type CustomDescriptor, type CustomGeometryOptions, DEFAULT_COLORS, DEFAULT_DRAWING_XML, DOCX_NS, type DashStop, DataLabelPosition, DataLabelsOptions, type DataType, type DefaultAttributes, type Descriptor, DescriptorBuilder, DescriptorRegistry, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtLstOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelIdsOptions, type DiagramStyleLblOptions, type DiagramStyleOptions, type DiagramTextPropsOptions, type EffectContainerType, type EffectDagOptions, type EffectExtent, type EffectListOptions, type ElementDescriptor, EmuPosition, ErrorBarDirection, ErrorBarOptions, ErrorBarType, ErrorValueType, type FillOptions, type FillOverlayEffectOptions, FontCollectionIndex, type FontSchemeOptions, 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, IdFormat, type InnerShadowEffectOptions, LAYOUT_CATEGORIES, type LayoutDefHdrLstOptions, type LayoutDefHdrOptions, type LightRigOptions, LineCap, LineEndLength, type LineEndOptions, LineEndType, LineEndWidth, LineJoin, type LinearShadeOptions, type MediaDataTransformation, type MediaTransformation, type OnOffStyleType, OoxmlMimeType, type OrgChartOptions, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, type OutputByType, type OutputType, type OverrideAttributes, PPTX_NS, type Packer, type PackerOptions, ParsedArchive, type PathCommand, type PathFillMode, type PathOptions, type PathShadeOptions, PathShadeType, type PatternFillOptions, PenAlignment, Percentage, type PictureLockingOptions, PixelPosition, type Point3D, PointPropertySetOptions, PositivePercentage, PositiveUniversalMeasure, type PresLayoutVarsOptions, PresetColor, type PresetColorOptions, PresetDash, type PresetGeometryOptions, PresetMaterialType, PresetPattern, type PresetShadowEffectOptions, PresetShadowVal, type ReadContext, RectAlignment, type ReflectionEffectOptions, type RelationshipType, Relationships, RelativeMeasure, type RelativeRect, type RenderedParagraphNode, type ReplacerConfig, type RgbColorOptions, STYLE_CATEGORIES, type ScRgbColorOptions, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, type ShapeLockingOptions, SmartArtCollection, SmartArtData, SmartArtRelOptions, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, type StyleDefHdrLstOptions, type StyleDefHdrOptions, StyleMatrixIndex, type StyleMatrixReferenceOptions, SystemColor, type SystemColorOptions, type TableCellBorderOptions, type TableCellStyleOptions, type TablePartStyleOptions, type TableStyleListOptions, type TableStyleOptions, type TableStyleRegion, type TableTextStyleOptions, TargetModeType, type TextSpec, ThemeColor, ThemeFont, type ThemeOptions, type ThemeableLineStyleOptions, TileAlignment, TileFlipMode, type TileOptions, TimeUnit, TokenNotFoundError, type Transform2DOptions, TreeNode, TrendlineOptions, TrendlineType, type UnionSpec, type UnionVariant, UniqueNumericIdCreator, UniversalMeasure, type Vector3D, View3DOptions, type WriteContext, type XmlNamespaceConfig, type XmlifyedFile, ZIP_DEFLATE_LEVEL, ZIP_STORED_LEVEL, type ZipOptions, type Zippable, addSmartArtRelationships, appendContentType, appendRelationship, bevelDesc, blipDesc, blipFillDesc, boolDecode, boolEncode, buildCorePropertiesXml, buildCorePropertiesXmlString, buildFill, buildThemeXml, calculateEffectExtent, chartSpaceDesc, collectPlaceholderKeys, compileMapping, convertEmuToInches, convertEmuToPixels, convertEmuToPoints, convertInchesToEmu, convertInchesToTwip, convertMillimetersToTwip, convertOutput, convertPixelsToEmu, convertPointsToEmu, convertPositionToEmu, convertToEmu, convertToTwip, convertUniversalMeasureToEmu, convertUniversalMeasureToTwip, createAdj, createAdjLst, createAnimLvl, createAnimOne, createBevel, createBlip, createBlipEffects, createBlipFill, createBottomBevel, createChMax, createChPref, createColorElement, createColorTransforms, createColorsDefHdr, createColorsDefHdrLst, createCustomDash, createCustomGeometry, createDataModel, createDefault, createDiagramExtLst, createDiagramRelIds, createDiagramSp3d, createDiagramStyle, createDiagramTxPr, createEffectClrLst, createEffectDag, createEffectList, createExtentionList, createFillClrLst, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefHdr, createLayoutDefHdrLst, createLinClrLst, createLineEnd, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createOverride, createPacker, createPatternFill, createPictureLocking, createPresLayoutVars, createPresetColor, createPresetShadowEffect, createReflectionEffect, createReplacer, createRgbColor, createRunRenderer, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createSplitInject, createStyleDefHdr, createStyleDefHdrLst, createStyleLbl, createSystemColor, createTableStyle, createTableStyleList, createTextElementContents, createThemeXml, createTileInfo, createTokenReplacer, createTransform2D, createTransformation, createTraverser, createTxEffectClrLst, createTxFillClrLst, createTxLinClrLst, createZipStream, customGeometryDesc, dateTimeValue, decimalNumber, derivePasswordHash, diagramExtLstDesc, diagramRelIdsDesc, diagramStyleDesc, effectListDesc, eighthPointMeasureValue, element, enumDecode, enumEncode, extractBlipFillMedia, fillDesc, findAndReplaceImagePlaceholders, formatId, getColorDescriptor, getColorXml, getFirstLevelElements, getLayoutXml, getMediaRefs, getNextRelationshipIndex, getReferencedMedia, getStyleXml, getVideoRefs, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupTransform2DDesc, hasPlaceholders, hashPasswordAgile, hashedId, hexBinary, hexColorValue, hpsMeasureValue, hslColorDesc, invertMap, longHexNumber, measurementOrPercentValue, outlineDesc, parse, parseArchive, parseCorePropsElement, parseUniversalMeasure, patchSpaceAttribute, patternFillDesc, percentageValue, pictureLockingDesc, pointMeasureValue, positiveUniversalMeasureValue, presLayoutVarsDesc, presetColorDesc, presetGeometryDesc, randomBytes, replaceAllPlaceholders, replaceChartPlaceholders, replaceHyperlinkPlaceholders, replaceImagePlaceholders, replaceMediaPlaceholders, replaceNumberingPlaceholders, replaceSmartArtPlaceholders, replaceVideoPlaceholders, rgbColorDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, shortHexNumber, signedHpsMeasureValue, signedTwipsMeasureValue, solidFillDesc, sourceRectangleDesc, strFromU8, stretchDesc, stringify, stringifyAdjustmentValues, stringifyConnection, stringifyDataModel, stringifyPoint, stringifyPresetGeometry, stringifyStretch, stringifyTransPoint, systemColorDesc, themeDesc, tileDesc, toJson, toUint8Array, transform2DDesc, twipsMeasureValue, uCharHexNumber, uniqueId, uniqueNumericIdCreator, uniqueUuid, universalMeasureValue, unsignedDecimalNumber, unzipSync, xsdBlendMode, xsdCompoundLine, xsdEffectContainer, xsdLineCap, xsdLineEndSize, xsdMaterialType, xsdPathFillMode, xsdPattern, xsdPenAlignment, xsdPresetShadow, xsdRectAlignment, xsdStrikeStyle, xsdTextAlign, xsdTextAnchor, xsdTextCaps, xsdUnderlineStyle, xsdVerticalMergeRev, zipAndConvert, zipSyncAndConvert }; |
+2
-2
@@ -1,5 +0,5 @@ | ||
| import { $ as systemColorDesc, $n as xsdBlendMode, $r as TargetModeType, $t as convertUniversalMeasureToTwip, A as bevelDesc, An as LineCap, Ar as PresetColor, At as createChPref, B as shapeLockingDesc, Bn as createGroupFill, Br as strFromU8, Bt as createTransformation, C as diagramStyleDesc, Cn as RectAlignment, Cr as createSolidFill, Ct as AnimOneValue, D as sourceRectangleDesc, Dn as BlendMode, Dr as createSchemeColor, Dt as createAnimLvl, E as blipFillDesc, En as createGlowEffect, Er as SchemeColor, Et as createAdjLst, F as customGeometryDesc, Fn as LineEndLength, Fr as parseArchive, Ft as createGroupLocking, G as patternFillDesc, Gn as createPatternFill, Gr as OoxmlMimeType, Gt as convertInchesToTwip, H as outlineDesc, Hn as buildFill, Hr as unzipSync, Ht as convertEmuToPixels, I as presetGeometryDesc, In as LineEndType, Ir as ZIP_DEFLATE_LEVEL, It as createPictureLocking, J as presetColorDesc, Jn as createGradientFill, Jr as buildCorePropertiesXmlString, Jt as convertPointsToEmu, K as getColorDescriptor, Kn as PathShadeType, Kr as convertOutput, Kt as convertMillimetersToTwip, L as graphicFrameLockingDesc, Ln as LineEndWidth, Lr as ZIP_STORED_LEVEL, Lt as createShapeLocking, M as shape3DDesc, Mn as PenAlignment, Mr as createHslColor, Mt as createOrgChart, N as groupTransform2DDesc, Nn as PresetDash, Nr as createColorTransforms, Nt as createPresLayoutVars, O as stretchDesc, On as createFillOverlayEffect, Or as createScRgbColor, Ot as createAnimOne, P as transform2DDesc, Pn as createOutline, Pr as ParsedArchive, Pt as createGraphicFrameLocking, Q as solidFillDesc, Qn as invertMap, Qr as Relationships, Qt as convertUniversalMeasureToEmu, R as groupLockingDesc, Rn as createLineEnd, Rr as createPacker, Rt as createTableStyle, S as diagramRelIdsDesc, Sn as createPresetShadowEffect, Sr as createColorElement, St as AnimLevelValue, T as blipDesc, Tn as createInnerShadowEffect, Tr as createSystemColor, Tt as createAdj, U as fillDesc, Un as extractBlipFillMedia, Ur as zipAndConvert, Ut as convertEmuToPoints, V as effectListDesc, Vn as createNoFill, Vr as toUint8Array, Vt as convertEmuToInches, W as gradientFillDesc, Wn as PresetPattern, Wr as zipSyncAndConvert, Wt as convertInchesToEmu, X as scRgbColorDesc, Xn as TileAlignment, Xr as createDefault, Xt as convertToEmu, Y as rgbColorDesc, Yn as createGradientStop, Yr as parseCorePropsElement, Yt as convertPositionToEmu, Z as schemeColorDesc, Zn as createTileInfo, Zr as createOverride, Zt as convertToTwip, _ as derivePasswordHash, _n as calculateEffectExtent, _r as createBlipEffects, _t as createColorsDefHdrLst, a as getMediaRefs, an as createBlip, ar as xsdPathFillMode, at as FontCollectionIndex, b as compileMapping, bn as createReflectionEffect, br as uniqueNumericIdCreator, bt as createStyleDefHdr, c as hasPlaceholders, cn as stringifyPresetGeometry, cr as xsdPresetShadow, ct as createDiagramStyle, d as replaceHyperlinkPlaceholders, dn as createShape3D, dr as xsdTextAlign, dt as createLinClrLst, ei as APP_PROPS_XML, en as parseUniversalMeasure, er as xsdCompoundLine, et as createDiagramExtLst, f as replaceImagePlaceholders, fn as BevelPresetType, fr as xsdTextAnchor, ft as createStyleLbl, g as replaceVideoPlaceholders, gn as createEffectDag, gr as createSourceRectangle, gt as createColorsDefHdr, h as replaceSmartArtPlaceholders, hn as createScene3D, hr as xsdVerticalMergeRev, ht as createTxLinClrLst, i as formatId, in as createBlipFill, ir as xsdMaterialType, it as ColorMethod, j as scene3DDesc, jn as LineJoin, jr as createPresetColor, jt as createHierBranch, k as tileDesc, kn as CompoundLine, kr as createRgbColor, kt as createChMax, l as replaceAllPlaceholders, ln as stringifyAdjustmentValues, lr as xsdRectAlignment, lt as createEffectClrLst, m as replaceNumberingPlaceholders, mn as createBottomBevel, mr as xsdUnderlineStyle, mt as createTxFillClrLst, n as collectPlaceholderKeys, nn as createTransform2D, nr as xsdLineCap, nt as createDiagramTxPr, o as getReferencedMedia, on as createExtentionList, or as xsdPattern, ot as HueDirection, p as replaceMediaPlaceholders, pn as createBevel, pr as xsdTextCaps, pt as createTxEffectClrLst, q as hslColorDesc, qn as TileFlipMode, qr as buildCorePropertiesXml, qt as convertPixelsToEmu, r as findAndReplaceImagePlaceholders, rn as stringifyStretch, rr as xsdLineEndSize, rt as createDiagramRelIds, s as getVideoRefs, sn as createCustomGeometry, sr as xsdPenAlignment, st as StyleMatrixIndex, t as addSmartArtRelationships, tn as createGroupTransform2D, tr as xsdEffectContainer, tt as createDiagramSp3d, u as replaceChartPlaceholders, un as PresetMaterialType, ur as xsdStrikeStyle, ut as createFillClrLst, v as hashPasswordAgile, vn as createEffectList, vr as hashedId, vt as createLayoutDefHdr, w as presLayoutVarsDesc, wn as createOuterShadowEffect, wr as SystemColor, wt as HierBranchStyle, x as diagramExtLstDesc, xn as PresetShadowVal, xr as uniqueUuid, xt as createStyleDefHdrLst, y as randomBytes, yn as createSoftEdgeEffect, yr as uniqueId, yt as createLayoutDefHdrLst, z as pictureLockingDesc, zn as createCustomDash, zr as createZipStream, zt as createTableStyleList } from "./src-CU2AFKyt.mjs"; | ||
| import { $ as systemColorDesc, $n as xsdBlendMode, $r as TargetModeType, $t as convertUniversalMeasureToTwip, A as bevelDesc, An as LineCap, Ar as PresetColor, At as createChPref, B as shapeLockingDesc, Bn as createGroupFill, Br as strFromU8, Bt as createTransformation, C as diagramStyleDesc, Cn as RectAlignment, Cr as createSolidFill, Ct as AnimOneValue, D as sourceRectangleDesc, Dn as BlendMode, Dr as createSchemeColor, Dt as createAnimLvl, E as blipFillDesc, En as createGlowEffect, Er as SchemeColor, Et as createAdjLst, F as customGeometryDesc, Fn as LineEndLength, Fr as parseArchive, Ft as createGroupLocking, G as patternFillDesc, Gn as createPatternFill, Gr as OoxmlMimeType, Gt as convertInchesToTwip, H as outlineDesc, Hn as buildFill, Hr as unzipSync, Ht as convertEmuToPixels, I as presetGeometryDesc, In as LineEndType, Ir as ZIP_DEFLATE_LEVEL, It as createPictureLocking, J as presetColorDesc, Jn as createGradientFill, Jr as buildCorePropertiesXmlString, Jt as convertPointsToEmu, K as getColorDescriptor, Kn as PathShadeType, Kr as convertOutput, Kt as convertMillimetersToTwip, L as graphicFrameLockingDesc, Ln as LineEndWidth, Lr as ZIP_STORED_LEVEL, Lt as createShapeLocking, M as shape3DDesc, Mn as PenAlignment, Mr as createHslColor, Mt as createOrgChart, N as groupTransform2DDesc, Nn as PresetDash, Nr as createColorTransforms, Nt as createPresLayoutVars, O as stretchDesc, On as createFillOverlayEffect, Or as createScRgbColor, Ot as createAnimOne, P as transform2DDesc, Pn as createOutline, Pr as ParsedArchive, Pt as createGraphicFrameLocking, Q as solidFillDesc, Qn as invertMap, Qr as Relationships, Qt as convertUniversalMeasureToEmu, R as groupLockingDesc, Rn as createLineEnd, Rr as createPacker, Rt as createTableStyle, S as diagramRelIdsDesc, Sn as createPresetShadowEffect, Sr as createColorElement, St as AnimLevelValue, T as blipDesc, Tn as createInnerShadowEffect, Tr as createSystemColor, Tt as createAdj, U as fillDesc, Un as extractBlipFillMedia, Ur as zipAndConvert, Ut as convertEmuToPoints, V as effectListDesc, Vn as createNoFill, Vr as toUint8Array, Vt as convertEmuToInches, W as gradientFillDesc, Wn as PresetPattern, Wr as zipSyncAndConvert, Wt as convertInchesToEmu, X as scRgbColorDesc, Xn as TileAlignment, Xr as createDefault, Xt as convertToEmu, Y as rgbColorDesc, Yn as createGradientStop, Yr as parseCorePropsElement, Yt as convertPositionToEmu, Z as schemeColorDesc, Zn as createTileInfo, Zr as createOverride, Zt as convertToTwip, _ as derivePasswordHash, _n as calculateEffectExtent, _r as createBlipEffects, _t as createColorsDefHdrLst, a as getMediaRefs, an as createBlip, ar as xsdPathFillMode, at as FontCollectionIndex, b as compileMapping, bn as createReflectionEffect, br as uniqueNumericIdCreator, bt as createStyleDefHdr, c as hasPlaceholders, cn as stringifyPresetGeometry, cr as xsdPresetShadow, ct as createDiagramStyle, d as replaceHyperlinkPlaceholders, dn as createShape3D, dr as xsdTextAlign, dt as createLinClrLst, ei as APP_PROPS_XML, en as parseUniversalMeasure, er as xsdCompoundLine, et as createDiagramExtLst, f as replaceImagePlaceholders, fn as BevelPresetType, fr as xsdTextAnchor, ft as createStyleLbl, g as replaceVideoPlaceholders, gn as createEffectDag, gr as createSourceRectangle, gt as createColorsDefHdr, h as replaceSmartArtPlaceholders, hn as createScene3D, hr as xsdVerticalMergeRev, ht as createTxLinClrLst, i as formatId, in as createBlipFill, ir as xsdMaterialType, it as ColorMethod, j as scene3DDesc, jn as LineJoin, jr as createPresetColor, jt as createHierBranch, k as tileDesc, kn as CompoundLine, kr as createRgbColor, kt as createChMax, l as replaceAllPlaceholders, ln as stringifyAdjustmentValues, lr as xsdRectAlignment, lt as createEffectClrLst, m as replaceNumberingPlaceholders, mn as createBottomBevel, mr as xsdUnderlineStyle, mt as createTxFillClrLst, n as collectPlaceholderKeys, nn as createTransform2D, nr as xsdLineCap, nt as createDiagramTxPr, o as getReferencedMedia, on as createExtentionList, or as xsdPattern, ot as HueDirection, p as replaceMediaPlaceholders, pn as createBevel, pr as xsdTextCaps, pt as createTxEffectClrLst, q as hslColorDesc, qn as TileFlipMode, qr as buildCorePropertiesXml, qt as convertPixelsToEmu, r as findAndReplaceImagePlaceholders, rn as stringifyStretch, rr as xsdLineEndSize, rt as createDiagramRelIds, s as getVideoRefs, sn as createCustomGeometry, sr as xsdPenAlignment, st as StyleMatrixIndex, t as addSmartArtRelationships, tn as createGroupTransform2D, tr as xsdEffectContainer, tt as createDiagramSp3d, u as replaceChartPlaceholders, un as PresetMaterialType, ur as xsdStrikeStyle, ut as createFillClrLst, v as hashPasswordAgile, vn as createEffectList, vr as hashedId, vt as createLayoutDefHdr, w as presLayoutVarsDesc, wn as createOuterShadowEffect, wr as SystemColor, wt as HierBranchStyle, x as diagramExtLstDesc, xn as PresetShadowVal, xr as uniqueUuid, xt as createStyleDefHdrLst, y as randomBytes, yn as createSoftEdgeEffect, yr as uniqueId, yt as createLayoutDefHdrLst, z as pictureLockingDesc, zn as createCustomDash, zr as createZipStream, zt as createTableStyleList } from "./src-DPuDEZYF.mjs"; | ||
| import { a as stringifyDataModel, c as getColorXml, d as COLOR_CATEGORIES, f as LAYOUT_CATEGORIES, i as stringifyTransPoint, l as getLayoutXml, n as SmartArtCollection, o as stringifyConnection, p as STYLE_CATEGORIES, r as stringifyPoint, s as DEFAULT_DRAWING_XML, t as createDataModel, u as getStyleXml } from "./smartart-DCY-Vdv7.mjs"; | ||
| import { a as TimeUnit, c as ChartCollection, i as ErrorValueType, n as ErrorBarDirection, o as TrendlineType, r as ErrorBarType, s as chartSpaceDesc, t as DataLabelPosition } from "./chart-DNpai28f.mjs"; | ||
| import { a as enumEncode, c as DescriptorBuilder, i as enumDecode, l as element, n as boolDecode, o as parse, r as boolEncode, s as stringify, t as DescriptorRegistry } from "./descriptor-DKmR7pw-.mjs"; | ||
| import { a as enumEncode, c as DescriptorBuilder, i as enumDecode, l as element, n as boolDecode, o as parse, r as boolEncode, s as stringify, t as DescriptorRegistry } from "./descriptor-57JUzfpG.mjs"; | ||
| import { a as createTraverser, c as TokenNotFoundError, d as getFirstLevelElements, f as patchSpaceAttribute, h as PPTX_NS, i as createReplacer, l as createSplitInject, m as DOCX_NS, n as getNextRelationshipIndex, o as createRunRenderer, p as toJson, r as appendContentType, s as createTokenReplacer, t as appendRelationship, u as createTextElementContents } from "./patch-ilNZTQmG.mjs"; | ||
@@ -6,0 +6,0 @@ import { i as DEFAULT_COLORS, n as createThemeXml, r as buildThemeXml, t as themeDesc } from "./theme-CiNzdl-9.mjs"; |
@@ -1,2 +0,2 @@ | ||
| import { _ as PPTX_NS, a as getFirstLevelElements, c as TokenNotFoundError, d as createTraverser, f as RenderedParagraphNode, g as DOCX_NS, h as createReplacer, i as createTextElementContents, l as createSplitInject, m as ReplacerConfig, n as getNextRelationshipIndex, o as patchSpaceAttribute, p as createRunRenderer, r as appendContentType, s as toJson, t as appendRelationship, u as createTokenReplacer, v as XmlNamespaceConfig } from "../index-BCUfgp9A.mjs"; | ||
| import { _ as PPTX_NS, a as getFirstLevelElements, c as TokenNotFoundError, d as createTraverser, f as RenderedParagraphNode, g as DOCX_NS, h as createReplacer, i as createTextElementContents, l as createSplitInject, m as ReplacerConfig, n as getNextRelationshipIndex, o as patchSpaceAttribute, p as createRunRenderer, r as appendContentType, s as toJson, t as appendRelationship, u as createTokenReplacer, v as XmlNamespaceConfig } from "../index-DmPBJwSk.mjs"; | ||
| export { DOCX_NS, PPTX_NS, type RenderedParagraphNode, type ReplacerConfig, TokenNotFoundError, type XmlNamespaceConfig, appendContentType, appendRelationship, createReplacer, createRunRenderer, createSplitInject, createTextElementContents, createTokenReplacer, createTraverser, getFirstLevelElements, getNextRelationshipIndex, patchSpaceAttribute, toJson }; |
@@ -1,2 +0,2 @@ | ||
| import { a as ColorSchemeOptions, i as createThemeXml, n as DEFAULT_COLORS, o as FontSchemeOptions, r as buildThemeXml, s as ThemeOptions, t as themeDesc } from "../index-DByjp6ug.mjs"; | ||
| import { a as ColorSchemeOptions, i as createThemeXml, n as DEFAULT_COLORS, o as FontSchemeOptions, r as buildThemeXml, s as ThemeOptions, t as themeDesc } from "../index-BKotL3AP.mjs"; | ||
| export { type ColorSchemeOptions, DEFAULT_COLORS, type FontSchemeOptions, type ThemeOptions, buildThemeXml, createThemeXml, themeDesc }; |
+3
-5
| { | ||
| "name": "@office-open/core", | ||
| "version": "0.9.0", | ||
| "version": "0.9.1", | ||
| "description": "Shared OOXML infrastructure — XML components, validators, converters, charts, and SmartArt", | ||
@@ -67,7 +67,5 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@noble/hashes": "2.2.0", | ||
| "fflate": "0.8.3", | ||
| "hash.js": "1.1.7", | ||
| "nanoid": "5.1.11", | ||
| "undio": "0.2.0", | ||
| "@office-open/xml": "0.9.0" | ||
| "@office-open/xml": "0.9.1" | ||
| }, | ||
@@ -74,0 +72,0 @@ "scripts": { |
+1
-1
@@ -18,3 +18,3 @@ # @office-open/core | ||
| - **Unit Converters** — TWIP and EMU conversions (mm/in/pt/px) | ||
| - **ID Generators** — Sequential numeric IDs, nanoid, SHA-1 hash, UUID v4 | ||
| - **ID Generators** — Sequential numeric IDs, random IDs, SHA-1 hash, UUID v4 | ||
| - **Template Patching** — Placeholder replacement, XML traverser, and token replacer | ||
@@ -21,0 +21,0 @@ - **OOXML Compliance** — All types verified against ISO/IEC 29500-4 XSD schemas |
| import { children, escapeXml, findChild, textOf } from "@office-open/xml"; | ||
| //#region src/descriptor/builder.ts | ||
| function element$1(tag) { | ||
| return new DescriptorBuilder(tag); | ||
| } | ||
| var DescriptorBuilder = class { | ||
| _tag; | ||
| _attrs = []; | ||
| _content = []; | ||
| constructor(tag) { | ||
| this._tag = tag; | ||
| } | ||
| /** Add an attribute mapping. */ | ||
| attr(key, xmlName, opts) { | ||
| this._attrs.push({ | ||
| kind: "child", | ||
| key, | ||
| xmlName, | ||
| ...opts | ||
| }); | ||
| return this; | ||
| } | ||
| /** Add a single child element mapping. */ | ||
| child(key, tag, desc) { | ||
| this._content.push({ | ||
| kind: "child", | ||
| key, | ||
| tag, | ||
| desc | ||
| }); | ||
| return this; | ||
| } | ||
| /** Add a repeating child element mapping. */ | ||
| children(key, tag, desc) { | ||
| this._content.push({ | ||
| kind: "children", | ||
| key, | ||
| tag, | ||
| desc | ||
| }); | ||
| return this; | ||
| } | ||
| /** Add a union (one-of-several) child mapping. */ | ||
| union(key, variants) { | ||
| this._content.push({ | ||
| kind: "union", | ||
| key, | ||
| variants | ||
| }); | ||
| return this; | ||
| } | ||
| /** Add a text content mapping. */ | ||
| text(key) { | ||
| this._content.push({ | ||
| kind: "text", | ||
| key | ||
| }); | ||
| return this; | ||
| } | ||
| /** Add a custom content handler. */ | ||
| custom(spec) { | ||
| this._content.push(spec); | ||
| return this; | ||
| } | ||
| /** Build the immutable ElementDescriptor. */ | ||
| build() { | ||
| const result = { | ||
| kind: "element", | ||
| tag: this._tag | ||
| }; | ||
| if (this._attrs.length) result.attrs = Object.freeze(this._attrs); | ||
| if (this._content.length) result.content = Object.freeze(this._content); | ||
| return Object.freeze(result); | ||
| } | ||
| }; | ||
| //#endregion | ||
| //#region src/descriptor/runtime.ts | ||
| /** | ||
| * Descriptor runtime: stringify (write) and parse (parse path) functions. | ||
| * | ||
| * Write path: Options → stringify(desc, opts, ctx) → string | ||
| * Parse path: Element → parse(desc, el, ctx) → Partial<Options> | ||
| * | ||
| * No intermediate representation — each path is a single step. | ||
| * | ||
| * @module | ||
| */ | ||
| /** | ||
| * Serialize an Options object to an XML string using its descriptor. | ||
| * Returns `undefined` when an optional element should be omitted. | ||
| */ | ||
| function stringify(desc, value, ctx) { | ||
| if (desc.kind === "custom") return desc.stringify(value, ctx); | ||
| return stringifyElement(desc, value, ctx); | ||
| } | ||
| function stringifyElement(desc, value, ctx) { | ||
| const tag = desc.tag; | ||
| const attrStr = stringifyAttrs(desc.attrs, value); | ||
| let hasContent = false; | ||
| const parts = []; | ||
| if (desc.content) for (let i = 0; i < desc.content.length; i++) { | ||
| const spec = desc.content[i]; | ||
| const s = stringifyContentSpec(spec, value, ctx); | ||
| if (s !== void 0) { | ||
| hasContent = true; | ||
| parts.push(s); | ||
| } | ||
| } | ||
| if (!hasContent) { | ||
| if (!attrStr) return void 0; | ||
| return `<${tag}${attrStr}/>`; | ||
| } | ||
| parts.unshift(`<${tag}${attrStr}>`); | ||
| parts.push(`</${tag}>`); | ||
| return parts.join(""); | ||
| } | ||
| function stringifyAttrs(attrs, value) { | ||
| if (!attrs) return ""; | ||
| const parts = []; | ||
| for (let i = 0; i < attrs.length; i++) { | ||
| const spec = attrs[i]; | ||
| const raw = value[spec.key]; | ||
| if (raw === void 0) continue; | ||
| if (spec.default !== void 0 && raw === spec.default) continue; | ||
| const encoded = spec.encode ? spec.encode(raw) : typeof raw === "string" || typeof raw === "number" || typeof raw === "boolean" ? String(raw) : String(raw); | ||
| if (encoded === void 0) continue; | ||
| parts.push(`${spec.xmlName}="${escapeXml(encoded)}"`); | ||
| } | ||
| return parts.length ? " " + parts.join(" ") : ""; | ||
| } | ||
| function stringifyContentSpec(spec, value, ctx) { | ||
| switch (spec.kind) { | ||
| case "child": return stringifyChild(spec, value, ctx); | ||
| case "children": return stringifyChildren(spec, value, ctx); | ||
| case "union": return stringifyUnion(spec, value, ctx); | ||
| case "text": return stringifyText(spec, value); | ||
| case "custom": return stringifyCustom(spec, value, ctx); | ||
| } | ||
| } | ||
| function stringifyChild(spec, value, ctx) { | ||
| const childValue = value[spec.key]; | ||
| if (childValue === void 0 || childValue === null) return void 0; | ||
| return stringify(spec.desc, childValue, ctx); | ||
| } | ||
| function stringifyChildren(spec, value, ctx) { | ||
| const items = value[spec.key]; | ||
| if (!items || items.length === 0) return void 0; | ||
| const parts = []; | ||
| for (let i = 0; i < items.length; i++) { | ||
| const s = stringify(spec.desc, items[i], ctx); | ||
| if (s !== void 0) parts.push(s); | ||
| } | ||
| return parts.length ? parts.join("") : void 0; | ||
| } | ||
| function stringifyUnion(spec, value, ctx) { | ||
| const childValue = value[spec.key]; | ||
| if (childValue === void 0 || childValue === null) return void 0; | ||
| const variants = spec.variants; | ||
| for (let i = 0; i < variants.length; i++) { | ||
| const v = variants[i]; | ||
| if (v.match(childValue)) return stringify(v.desc, childValue, ctx); | ||
| } | ||
| } | ||
| function stringifyText(spec, value) { | ||
| const text = value[spec.key]; | ||
| if (text === void 0 || text === null) return void 0; | ||
| return escapeXml(typeof text === "string" ? text : String(text)); | ||
| } | ||
| function stringifyCustom(spec, value, ctx) { | ||
| return spec.stringify(value, ctx); | ||
| } | ||
| /** | ||
| * Parse an XML Element into a partial Options object using its descriptor. | ||
| */ | ||
| function parse(desc, el, ctx) { | ||
| if (desc.kind === "custom") return desc.parse(el, ctx); | ||
| return parseElement(desc, el, ctx); | ||
| } | ||
| function parseElement(desc, el, ctx) { | ||
| const result = {}; | ||
| if (desc.attrs && el.attributes) for (let i = 0; i < desc.attrs.length; i++) { | ||
| const spec = desc.attrs[i]; | ||
| const raw = el.attributes[spec.xmlName]; | ||
| if (raw !== void 0) result[spec.key] = spec.decode ? spec.decode(String(raw)) : raw; | ||
| } | ||
| if (desc.content) for (let i = 0; i < desc.content.length; i++) { | ||
| const spec = desc.content[i]; | ||
| parseContentSpec(spec, el, ctx, result); | ||
| } | ||
| return result; | ||
| } | ||
| function parseContentSpec(spec, el, ctx, result) { | ||
| switch (spec.kind) { | ||
| case "child": { | ||
| const child = findChild(el, spec.tag); | ||
| if (child) result[spec.key] = parse(spec.desc, child, ctx); | ||
| break; | ||
| } | ||
| case "children": { | ||
| const items = children(el, spec.tag); | ||
| if (items.length) result[spec.key] = items.map((c) => parse(spec.desc, c, ctx)); | ||
| break; | ||
| } | ||
| case "union": | ||
| for (let i = 0; i < spec.variants.length; i++) { | ||
| const v = spec.variants[i]; | ||
| const child = findChild(el, v.tag); | ||
| if (child) { | ||
| result[spec.key] = parse(v.desc, child, ctx); | ||
| break; | ||
| } | ||
| } | ||
| break; | ||
| case "text": { | ||
| const text = textOf(el); | ||
| if (text) result[spec.key] = text; | ||
| break; | ||
| } | ||
| case "custom": | ||
| Object.assign(result, spec.parse(el, ctx)); | ||
| break; | ||
| } | ||
| } | ||
| //#endregion | ||
| //#region src/descriptor/helpers.ts | ||
| /** | ||
| * OOXML-specific encode/decode helpers for descriptors. | ||
| * | ||
| * XML traversal helpers (findChild, etc.) are in @office-open/xml utils. | ||
| * This file only contains OOXML value encoding/decoding. | ||
| * | ||
| * @module | ||
| */ | ||
| /** Encode boolean for CT_OnOff: true → omit val, false → "0". */ | ||
| const boolEncode = (v) => { | ||
| if (v === void 0) return void 0; | ||
| return v ? void 0 : "0"; | ||
| }; | ||
| /** Decode CT_OnOff: absent or "true"/"1" → true, "0"/"false" → false. */ | ||
| const boolDecode = (raw) => raw !== "0" && raw !== "false"; | ||
| /** Create an enum encoder from a JS↔XML mapping. */ | ||
| const enumEncode = (map) => (v) => { | ||
| if (v === void 0) return void 0; | ||
| return map[v] ?? v; | ||
| }; | ||
| /** Create an enum decoder from a JS↔XML mapping (inverted). */ | ||
| const enumDecode = (map) => { | ||
| const inv = invertRecord(map); | ||
| return (raw) => inv[raw] ?? raw; | ||
| }; | ||
| function invertRecord(map) { | ||
| const result = {}; | ||
| for (const key of Object.keys(map)) result[map[key]] = key; | ||
| return result; | ||
| } | ||
| //#endregion | ||
| //#region src/descriptor/registry.ts | ||
| var DescriptorRegistry = class DescriptorRegistry { | ||
| static _map = /* @__PURE__ */ new Map(); | ||
| /** Register a descriptor with its XML tag. */ | ||
| static register(tag, desc) { | ||
| DescriptorRegistry._map.set(tag, desc); | ||
| } | ||
| /** Look up a descriptor by XML tag. */ | ||
| static get(tag) { | ||
| return DescriptorRegistry._map.get(tag); | ||
| } | ||
| /** Get all registered tags. */ | ||
| static tags() { | ||
| return new Set(DescriptorRegistry._map.keys()); | ||
| } | ||
| /** Check if a tag is registered. */ | ||
| static has(tag) { | ||
| return DescriptorRegistry._map.has(tag); | ||
| } | ||
| /** Get the number of registered descriptors. */ | ||
| static get size() { | ||
| return DescriptorRegistry._map.size; | ||
| } | ||
| }; | ||
| //#endregion | ||
| export { enumEncode as a, DescriptorBuilder as c, enumDecode as i, element$1 as l, boolDecode as n, parse as o, boolEncode as r, stringify as s, DescriptorRegistry as t }; |
| import { Element } from "@office-open/xml"; | ||
| //#region src/patch/xml-namespace.d.ts | ||
| /** | ||
| * Namespace configuration for XML patch operations. | ||
| * | ||
| * Parameterises element names so the same patch algorithm works for both | ||
| * DOCX (`w:*`) and PPTX (`a:*`) documents. | ||
| */ | ||
| interface XmlNamespaceConfig { | ||
| readonly paragraph: string; | ||
| readonly run: string; | ||
| readonly text: string; | ||
| readonly runProperties: string; | ||
| } | ||
| declare const DOCX_NS: XmlNamespaceConfig; | ||
| declare const PPTX_NS: XmlNamespaceConfig; | ||
| //#endregion | ||
| //#region src/patch/xml-replacer.d.ts | ||
| interface ReplacerConfig { | ||
| readonly ns: XmlNamespaceConfig; | ||
| readonly formatChild: (child: unknown, context: unknown) => Element[]; | ||
| readonly preserveSpace?: boolean; | ||
| } | ||
| interface ReplacerResult { | ||
| readonly element: Element; | ||
| readonly didFindOccurrence: boolean; | ||
| } | ||
| declare function createReplacer(config: ReplacerConfig): ({ | ||
| json, | ||
| patch, | ||
| patchText, | ||
| context, | ||
| keepOriginalStyles | ||
| }: { | ||
| readonly json: Element; | ||
| readonly patch: { | ||
| readonly type: string; | ||
| readonly children: readonly unknown[]; | ||
| }; | ||
| readonly patchText: string; | ||
| readonly context: unknown; | ||
| readonly keepOriginalStyles?: boolean; | ||
| }) => ReplacerResult; | ||
| //#endregion | ||
| //#region src/patch/run-renderer.d.ts | ||
| interface ElementWrapper { | ||
| readonly element: Element; | ||
| readonly index: number; | ||
| readonly parent: ElementWrapper | undefined; | ||
| } | ||
| interface RenderedParagraphNode { | ||
| readonly text: string; | ||
| readonly runs: readonly IRenderedRunNode[]; | ||
| readonly index: number; | ||
| readonly pathToParagraph: readonly number[]; | ||
| } | ||
| interface StartAndEnd { | ||
| readonly start: number; | ||
| readonly end: number; | ||
| } | ||
| type IParts = { | ||
| readonly text: string; | ||
| readonly index: number; | ||
| } & StartAndEnd; | ||
| type IRenderedRunNode = { | ||
| readonly text: string; | ||
| readonly parts: readonly IParts[]; | ||
| readonly index: number; | ||
| } & StartAndEnd; | ||
| declare function createRunRenderer(ns: XmlNamespaceConfig): (node: ElementWrapper) => RenderedParagraphNode; | ||
| //#endregion | ||
| //#region src/patch/xml-traverser.d.ts | ||
| declare function createTraverser(ns: XmlNamespaceConfig): { | ||
| traverse: (node: Element) => readonly RenderedParagraphNode[]; | ||
| findLocationOfText: (node: Element, text: string) => readonly RenderedParagraphNode[]; | ||
| }; | ||
| //#endregion | ||
| //#region src/patch/paragraph-token-replacer.d.ts | ||
| declare function createTokenReplacer(createTextElementContents: (text: string) => Element[], options?: { | ||
| readonly preserveSpace?: boolean; | ||
| }): ({ | ||
| paragraphElement, | ||
| renderedParagraph, | ||
| originalText, | ||
| replacementText | ||
| }: { | ||
| readonly paragraphElement: Element; | ||
| readonly renderedParagraph: RenderedParagraphNode; | ||
| readonly originalText: string; | ||
| readonly replacementText: string; | ||
| }) => Element; | ||
| //#endregion | ||
| //#region src/patch/paragraph-split-inject.d.ts | ||
| declare class TokenNotFoundError extends Error { | ||
| constructor(token: string); | ||
| } | ||
| declare function createSplitInject(ns: XmlNamespaceConfig, createTextElementContents: (text: string) => Element[], options?: { | ||
| readonly preserveSpace?: boolean; | ||
| }): { | ||
| findRunElementIndexWithToken: (paragraphElement: Element, token: string) => number; | ||
| splitRunElement: (runElement: Element, token: string) => { | ||
| readonly left: Element; | ||
| readonly right: Element; | ||
| }; | ||
| }; | ||
| //#endregion | ||
| //#region src/patch/xml-patch-utils.d.ts | ||
| declare const toJson: (xmlData: string) => Element; | ||
| /** | ||
| * Creates the inner content of a text element (`w:t` / `a:t`). | ||
| * | ||
| * Returns `[{ type: "text", text }]` for non-empty text, `[]` for empty. | ||
| * The `xml:space` attribute is handled separately by `patchSpaceAttribute`. | ||
| */ | ||
| declare const createTextElementContents: (text: string) => Element[]; | ||
| declare const patchSpaceAttribute: (element: Element) => Element; | ||
| declare const getFirstLevelElements: (relationships: Element, id: string) => Element[]; | ||
| //#endregion | ||
| //#region src/patch/content-types-manager.d.ts | ||
| declare const appendContentType: (element: Element, contentType: string, extension: string) => void; | ||
| //#endregion | ||
| //#region src/patch/relationship-manager.d.ts | ||
| declare const getNextRelationshipIndex: (relationships: Element) => number; | ||
| declare const appendRelationship: (relationships: Element, id: number | string, type: string, target: string, targetMode?: string) => readonly Element[]; | ||
| //#endregion | ||
| export { PPTX_NS as _, getFirstLevelElements as a, TokenNotFoundError as c, createTraverser as d, RenderedParagraphNode as f, DOCX_NS as g, createReplacer as h, createTextElementContents as i, createSplitInject as l, ReplacerConfig as m, getNextRelationshipIndex as n, patchSpaceAttribute as o, createRunRenderer as p, appendContentType as r, toJson as s, appendRelationship as t, createTokenReplacer as u, XmlNamespaceConfig as v }; |
| import { Element } from "@office-open/xml"; | ||
| //#region src/descriptor/context.d.ts | ||
| /** Context passed during stringify (write path). */ | ||
| interface WriteContext { | ||
| /** Register a relationship and return its rId. */ | ||
| addRelationship(type: string, target: string, mode?: string): string; | ||
| /** Add a media file and return its reference. */ | ||
| addMedia(data: Uint8Array, type: string): string; | ||
| } | ||
| /** Context passed during parse (parse path). */ | ||
| interface ReadContext { | ||
| /** Resolve a relationship rId to its target path. */ | ||
| resolveRelationship(rId: string): string | undefined; | ||
| /** Get a parsed XML part by path. */ | ||
| getPart(path: string): Element | undefined; | ||
| /** Get raw binary data (images, media, etc.) by path. */ | ||
| getRaw(path: string): Uint8Array | undefined; | ||
| } | ||
| //#endregion | ||
| //#region src/descriptor/types.d.ts | ||
| /** Element descriptor — declarative XML mapping. */ | ||
| interface ElementDescriptor<T> { | ||
| readonly kind: "element"; | ||
| readonly tag: string; | ||
| readonly attrs?: readonly AttrSpec<T>[]; | ||
| readonly content?: readonly ContentSpec<T>[]; | ||
| } | ||
| /** Custom descriptor — for complex logic that doesn't fit the declarative model. */ | ||
| interface CustomDescriptor<T, Ctx = WriteContext> { | ||
| readonly kind: "custom"; | ||
| stringify(value: T, ctx: Ctx): string | undefined; | ||
| parse(el: Element, ctx: ReadContext): Partial<T>; | ||
| } | ||
| /** Union type for all descriptors. */ | ||
| type Descriptor<T> = ElementDescriptor<T> | CustomDescriptor<T>; | ||
| interface AttrSpec<T> { | ||
| /** Property key in the Options object. */ | ||
| readonly key: keyof T & string; | ||
| /** XML attribute name (e.g. "w:val"). */ | ||
| readonly xmlName: string; | ||
| /** Default value — omitted during stringify when equal. */ | ||
| readonly default?: unknown; | ||
| /** Encode a JS value to an XML attribute string. Return undefined to skip. */ | ||
| readonly encode?: (v: any) => string | undefined; | ||
| /** Decode an XML attribute string to a JS value. */ | ||
| readonly decode?: (raw: string) => any; | ||
| } | ||
| /** Single child element mapped to a property. */ | ||
| interface ChildSpec<T> { | ||
| readonly kind: "child"; | ||
| readonly key: keyof T & string; | ||
| readonly tag: string; | ||
| readonly desc: Descriptor<any>; | ||
| } | ||
| /** Multiple child elements of the same tag mapped to an array property. */ | ||
| interface ChildrenSpec<T> { | ||
| readonly kind: "children"; | ||
| readonly key: keyof T & string; | ||
| readonly tag: string; | ||
| readonly desc: Descriptor<any>; | ||
| } | ||
| /** Union child — one of several possible child elements. */ | ||
| interface UnionSpec<T> { | ||
| readonly kind: "union"; | ||
| readonly key: keyof T & string; | ||
| readonly variants: readonly UnionVariant[]; | ||
| } | ||
| /** Text content mapped to a property. */ | ||
| interface TextSpec<T> { | ||
| readonly kind: "text"; | ||
| readonly key: keyof T & string; | ||
| } | ||
| interface UnionVariant { | ||
| readonly tag: string; | ||
| readonly match: (opts: any) => boolean; | ||
| readonly desc: Descriptor<any>; | ||
| } | ||
| /** Discriminated union of all content spec types. */ | ||
| type ContentSpec<T> = ChildSpec<T> | ChildrenSpec<T> | UnionSpec<T> | TextSpec<T> | CustomDescriptor<T>; | ||
| //#endregion | ||
| //#region src/descriptor/builder.d.ts | ||
| declare function element$1<T extends object>(tag: string): DescriptorBuilder<T>; | ||
| declare class DescriptorBuilder<T extends object> { | ||
| private readonly _tag; | ||
| private readonly _attrs; | ||
| private readonly _content; | ||
| constructor(tag: string); | ||
| /** Add an attribute mapping. */ | ||
| attr(key: keyof T & string, xmlName: string, opts?: { | ||
| readonly default?: unknown; | ||
| readonly encode?: (v: any) => string | undefined; | ||
| readonly decode?: (raw: string) => any; | ||
| }): this; | ||
| /** Add a single child element mapping. */ | ||
| child(key: keyof T & string, tag: string, desc: ChildSpec<T>["desc"]): this; | ||
| /** Add a repeating child element mapping. */ | ||
| children(key: keyof T & string, tag: string, desc: ChildrenSpec<T>["desc"]): this; | ||
| /** Add a union (one-of-several) child mapping. */ | ||
| union(key: keyof T & string, variants: readonly UnionVariant[]): this; | ||
| /** Add a text content mapping. */ | ||
| text(key: keyof T & string): this; | ||
| /** Add a custom content handler. */ | ||
| custom(spec: CustomDescriptor<T>): this; | ||
| /** Build the immutable ElementDescriptor. */ | ||
| build(): ElementDescriptor<T>; | ||
| } | ||
| //#endregion | ||
| //#region src/descriptor/runtime.d.ts | ||
| /** | ||
| * Serialize an Options object to an XML string using its descriptor. | ||
| * Returns `undefined` when an optional element should be omitted. | ||
| */ | ||
| declare function stringify<T>(desc: Descriptor<T>, value: T, ctx: WriteContext): string | undefined; | ||
| /** | ||
| * Parse an XML Element into a partial Options object using its descriptor. | ||
| */ | ||
| declare function parse<T>(desc: Descriptor<T>, el: Element, ctx: ReadContext): Partial<T>; | ||
| //#endregion | ||
| //#region src/descriptor/helpers.d.ts | ||
| /** | ||
| * OOXML-specific encode/decode helpers for descriptors. | ||
| * | ||
| * XML traversal helpers (findChild, etc.) are in @office-open/xml utils. | ||
| * This file only contains OOXML value encoding/decoding. | ||
| * | ||
| * @module | ||
| */ | ||
| /** Encode boolean for CT_OnOff: true → omit val, false → "0". */ | ||
| declare const boolEncode: (v: boolean | undefined) => string | undefined; | ||
| /** Decode CT_OnOff: absent or "true"/"1" → true, "0"/"false" → false. */ | ||
| declare const boolDecode: (raw: string) => boolean; | ||
| /** Create an enum encoder from a JS↔XML mapping. */ | ||
| declare const enumEncode: (map: Record<string, string>) => (v: string | undefined) => string | undefined; | ||
| /** Create an enum decoder from a JS↔XML mapping (inverted). */ | ||
| declare const enumDecode: (map: Record<string, string>) => (raw: string) => string; | ||
| //#endregion | ||
| //#region src/descriptor/registry.d.ts | ||
| declare class DescriptorRegistry { | ||
| private static readonly _map; | ||
| /** Register a descriptor with its XML tag. */ | ||
| static register(tag: string, desc: Descriptor<any>): void; | ||
| /** Look up a descriptor by XML tag. */ | ||
| static get(tag: string): Descriptor<any> | undefined; | ||
| /** Get all registered tags. */ | ||
| static tags(): ReadonlySet<string>; | ||
| /** Check if a tag is registered. */ | ||
| static has(tag: string): boolean; | ||
| /** Get the number of registered descriptors. */ | ||
| static get size(): number; | ||
| } | ||
| //#endregion | ||
| export { TextSpec as _, enumEncode as a, ReadContext as b, DescriptorBuilder as c, ChildSpec as d, ChildrenSpec as f, ElementDescriptor as g, Descriptor as h, enumDecode as i, element$1 as l, CustomDescriptor as m, boolDecode as n, parse as o, ContentSpec as p, boolEncode as r, stringify as s, DescriptorRegistry as t, AttrSpec as u, UnionSpec as v, WriteContext as x, UnionVariant as y }; |
| import { m as CustomDescriptor } from "./index-BI-1SKm5.mjs"; | ||
| //#region src/theme/theme-options.d.ts | ||
| /** | ||
| * Theme options for OOXML documents. | ||
| * | ||
| * @module | ||
| */ | ||
| /** Color scheme — 12 theme colors (hex without #). */ | ||
| interface ColorSchemeOptions { | ||
| readonly dark1?: string; | ||
| readonly light1?: string; | ||
| readonly dark2?: string; | ||
| readonly light2?: string; | ||
| readonly accent1?: string; | ||
| readonly accent2?: string; | ||
| readonly accent3?: string; | ||
| readonly accent4?: string; | ||
| readonly accent5?: string; | ||
| readonly accent6?: string; | ||
| readonly hyperlink?: string; | ||
| readonly followedHyperlink?: string; | ||
| } | ||
| /** Font scheme — 4 font slots (latin + east-asian for major/minor). */ | ||
| interface FontSchemeOptions { | ||
| readonly majorFont?: string; | ||
| readonly minorFont?: string; | ||
| readonly majorFontAsian?: string; | ||
| readonly minorFontAsian?: string; | ||
| } | ||
| /** Theme customization options. */ | ||
| interface ThemeOptions { | ||
| readonly name?: string; | ||
| readonly colors?: ColorSchemeOptions; | ||
| readonly fonts?: FontSchemeOptions; | ||
| } | ||
| //#endregion | ||
| //#region src/theme/default-theme.d.ts | ||
| /** | ||
| * Generate theme XML string from options. | ||
| * Returns cached default when no options provided. | ||
| */ | ||
| declare function createThemeXml(options?: ThemeOptions): string; | ||
| //#endregion | ||
| //#region src/theme/build-theme-xml.d.ts | ||
| declare function buildThemeXml(options?: ThemeOptions): string; | ||
| //#endregion | ||
| //#region src/theme/default-colors.d.ts | ||
| /** Office 2016+ default theme colors (hex without #). */ | ||
| declare const DEFAULT_COLORS: Required<ColorSchemeOptions>; | ||
| //#endregion | ||
| //#region src/theme/theme-descriptors.d.ts | ||
| declare const themeDesc: CustomDescriptor<ThemeOptions>; | ||
| //#endregion | ||
| export { ColorSchemeOptions as a, createThemeXml as i, DEFAULT_COLORS as n, FontSchemeOptions as o, buildThemeXml as r, ThemeOptions as s, themeDesc as t }; |
| import { m as CustomDescriptor } from "./index-BI-1SKm5.mjs"; | ||
| //#region src/chart/chart-collection.d.ts | ||
| /** | ||
| * Chart data and collection for document generation. | ||
| * | ||
| * @module | ||
| */ | ||
| interface ChartData { | ||
| key: string; | ||
| chartSpaceXml: string; | ||
| } | ||
| declare class ChartCollection { | ||
| private map; | ||
| constructor(); | ||
| addChart(key: string, chartData: ChartData): void; | ||
| get array(): ChartData[]; | ||
| } | ||
| //#endregion | ||
| //#region src/chart/types.d.ts | ||
| /** | ||
| * Chart type definitions — interfaces and constants. | ||
| * | ||
| * Class implementations have been removed; all chart XML generation | ||
| * goes through chart-descriptors.ts (stringify/parse path). | ||
| * | ||
| * @module | ||
| */ | ||
| interface BubbleSeriesData { | ||
| readonly name: string; | ||
| readonly xValues: readonly number[]; | ||
| readonly yValues: readonly number[]; | ||
| readonly bubbleSize: readonly number[]; | ||
| } | ||
| declare const TrendlineType: { | ||
| readonly EXP: "exp"; | ||
| readonly LINEAR: "linear"; | ||
| readonly LOG: "log"; | ||
| readonly MOVING_AVG: "movingAvg"; | ||
| readonly POLY: "poly"; | ||
| readonly POWER: "power"; | ||
| }; | ||
| type TrendlineType = (typeof TrendlineType)[keyof typeof TrendlineType]; | ||
| interface TrendlineOptions { | ||
| readonly type?: TrendlineType; | ||
| readonly name?: string; | ||
| readonly order?: number; | ||
| readonly period?: number; | ||
| readonly forward?: number; | ||
| readonly backward?: number; | ||
| readonly intercept?: number; | ||
| readonly dispRSqr?: boolean; | ||
| readonly dispEq?: boolean; | ||
| } | ||
| declare const ErrorBarDirection: { | ||
| readonly BOTH: "both"; | ||
| readonly X: "x"; | ||
| readonly Y: "y"; | ||
| }; | ||
| type ErrorBarDirection = (typeof ErrorBarDirection)[keyof typeof ErrorBarDirection]; | ||
| declare const ErrorBarType: { | ||
| readonly BOTH: "both"; | ||
| readonly MINUS: "minus"; | ||
| readonly PLUS: "plus"; | ||
| }; | ||
| type ErrorBarType = (typeof ErrorBarType)[keyof typeof ErrorBarType]; | ||
| declare const ErrorValueType: { | ||
| readonly CUST: "cust"; | ||
| readonly FIXED: "fixedVal"; | ||
| readonly PERCENTAGE: "percentage"; | ||
| readonly STD_DEV: "stdDev"; | ||
| readonly STD_ERR: "stdErr"; | ||
| }; | ||
| type ErrorValueType = (typeof ErrorValueType)[keyof typeof ErrorValueType]; | ||
| interface ErrorBarOptions { | ||
| readonly direction?: ErrorBarDirection; | ||
| readonly barType?: ErrorBarType; | ||
| readonly valueType?: ErrorValueType; | ||
| readonly value?: number; | ||
| } | ||
| declare const DataLabelPosition: { | ||
| readonly BEST_FIT: "bestFit"; | ||
| readonly B: "b"; | ||
| readonly CTRL: "ctr"; | ||
| readonly IN_BASE: "inBase"; | ||
| readonly IN_END: "inEnd"; | ||
| readonly L: "l"; | ||
| readonly OUT_END: "outEnd"; | ||
| readonly R: "r"; | ||
| readonly T: "t"; | ||
| }; | ||
| type DataLabelPosition = (typeof DataLabelPosition)[keyof typeof DataLabelPosition]; | ||
| interface DataLabelsOptions { | ||
| readonly position?: DataLabelPosition; | ||
| readonly showVal?: boolean; | ||
| readonly showCatName?: boolean; | ||
| readonly showSerName?: boolean; | ||
| readonly showPercent?: boolean; | ||
| readonly showBubbleSize?: boolean; | ||
| readonly showLeaderLines?: boolean; | ||
| } | ||
| interface ChartSeriesData { | ||
| readonly name: string; | ||
| readonly values: readonly number[]; | ||
| readonly trendlines?: readonly TrendlineOptions[]; | ||
| readonly errorBars?: ErrorBarOptions; | ||
| readonly dataLabels?: DataLabelsOptions; | ||
| } | ||
| type ChartType = "column" | "bar" | "line" | "pie" | "area" | "scatter" | "bubble" | "doughnut" | "radar" | "stock" | "surface"; | ||
| type AxisChartType = Exclude<ChartType, "bubble">; | ||
| interface ChartSpaceOptions { | ||
| readonly title?: string; | ||
| readonly type: ChartType; | ||
| readonly categories?: readonly string[]; | ||
| readonly series: readonly ChartSeriesData[] | readonly BubbleSeriesData[]; | ||
| readonly showLegend?: boolean; | ||
| readonly style?: number; | ||
| readonly threeD?: boolean; | ||
| } | ||
| declare const TimeUnit: { | ||
| readonly DAYS: "days"; | ||
| readonly MONTHS: "months"; | ||
| readonly YEARS: "years"; | ||
| }; | ||
| type TimeUnit = (typeof TimeUnit)[keyof typeof TimeUnit]; | ||
| interface View3DOptions { | ||
| readonly rotX?: number; | ||
| readonly rotY?: number; | ||
| readonly depthPercent?: number; | ||
| readonly rAngAx?: boolean; | ||
| readonly perspective?: number; | ||
| } | ||
| //#endregion | ||
| //#region src/chart/chart-descriptors.d.ts | ||
| declare const chartSpaceDesc: CustomDescriptor<ChartSpaceOptions>; | ||
| //#endregion | ||
| export { ChartCollection as _, ChartSpaceOptions as a, DataLabelsOptions as c, ErrorBarType as d, ErrorValueType as f, View3DOptions as g, TrendlineType as h, ChartSeriesData as i, ErrorBarDirection as l, TrendlineOptions as m, AxisChartType as n, ChartType as o, TimeUnit as p, BubbleSeriesData as r, DataLabelPosition as s, chartSpaceDesc as t, ErrorBarOptions as u, ChartData as v }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
607667
0.65%3
-40%9495
0.68%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated