@office-open/core 0.10.15 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/chart/index.d.mts +2 -2
- package/dist/chart/index.mjs +2 -2
- package/dist/chart-DED4tXC9.mjs +2325 -0
- package/dist/chart-DED4tXC9.mjs.map +1 -0
- package/dist/color-mapping-CFF0vRSe.mjs +117 -0
- package/dist/color-mapping-CFF0vRSe.mjs.map +1 -0
- package/dist/data-type-CZMKVaaT.d.mts.map +1 -1
- package/dist/descriptor/index.d.mts +2 -2
- package/dist/descriptor/index.mjs +1 -1
- package/dist/{descriptor-BjNkn5jo.mjs → descriptor-BqaNZrrZ.mjs} +43 -11
- package/dist/{descriptor-BjNkn5jo.mjs.map → descriptor-BqaNZrrZ.mjs.map} +1 -1
- package/dist/drawing/index.d.mts +2 -0
- package/dist/drawing/index.mjs +2 -0
- package/dist/{drawingml-sj1J3lb0.mjs → drawing-BCAyrCCw.mjs} +4456 -3452
- package/dist/drawing-BCAyrCCw.mjs.map +1 -0
- package/dist/{converters-C_Y2QX1w.mjs → ext-uri-BHBcIrW7.mjs} +742 -45
- package/dist/ext-uri-BHBcIrW7.mjs.map +1 -0
- package/dist/index-BAxlDUQ1.d.mts +590 -0
- package/dist/index-BAxlDUQ1.d.mts.map +1 -0
- package/dist/index-BP541uS-.d.mts +489 -0
- package/dist/index-BP541uS-.d.mts.map +1 -0
- package/dist/{index-BVK2dv6C.d.mts → index-BQLIofaF.d.mts} +10 -4
- package/dist/index-BQLIofaF.d.mts.map +1 -0
- package/dist/{index-k8WKLXnA.d.mts → index-CaNwM5_e.d.mts} +19 -20
- package/dist/index-CaNwM5_e.d.mts.map +1 -0
- package/dist/index-DPkf_CtG.d.mts +1578 -0
- package/dist/index-DPkf_CtG.d.mts.map +1 -0
- package/dist/index-DcukVskh.d.mts +31 -0
- package/dist/index-DcukVskh.d.mts.map +1 -0
- package/dist/index-Di6XPdGl.d.mts +322 -0
- package/dist/index-Di6XPdGl.d.mts.map +1 -0
- package/dist/index-L6AXewfV.d.mts +872 -0
- package/dist/index-L6AXewfV.d.mts.map +1 -0
- package/dist/index.d.mts +294 -30
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1327 -112
- package/dist/index.mjs.map +1 -1
- package/dist/{output-D_G_JR_8.d.mts → output-yyxdkG0C.d.mts} +2 -3
- package/dist/output-yyxdkG0C.d.mts.map +1 -0
- package/dist/patch/index.d.mts +2 -2
- package/dist/patch/index.mjs +2 -2
- package/dist/{patch-BmRfghOo.mjs → patch-AkQY17CD.mjs} +73 -28
- package/dist/patch-AkQY17CD.mjs.map +1 -0
- package/dist/smartart/index.d.mts +2 -2
- package/dist/smartart/index.mjs +2 -2
- package/dist/smartart-n1kYJ6Jg.mjs +1650 -0
- package/dist/smartart-n1kYJ6Jg.mjs.map +1 -0
- package/dist/style-matrix-B6jhPAT3.mjs +123 -0
- package/dist/style-matrix-B6jhPAT3.mjs.map +1 -0
- package/dist/theme/index.d.mts +4 -2
- package/dist/theme/index.mjs +4 -2
- package/dist/theme-BKnXRmvn.mjs +426 -0
- package/dist/theme-BKnXRmvn.mjs.map +1 -0
- package/dist/theme-options-kO89NUEX.d.mts +109 -0
- package/dist/theme-options-kO89NUEX.d.mts.map +1 -0
- package/dist/util/index.d.mts +3 -3
- package/dist/util/index.mjs +3 -3
- package/dist/{util-Tq9PSjK0.mjs → util-ptE16MEk.mjs} +237 -459
- package/dist/util-ptE16MEk.mjs.map +1 -0
- package/dist/{values-8di32lIe.d.mts → values-BECDm4zr.d.mts} +17 -31
- package/dist/values-BECDm4zr.d.mts.map +1 -0
- package/dist/vector/index.d.mts +2 -0
- package/dist/vector/index.mjs +2 -0
- package/dist/vector-DhLGZjP5.mjs +3049 -0
- package/dist/vector-DhLGZjP5.mjs.map +1 -0
- package/package.json +16 -8
- package/dist/chart-DIGJna_6.mjs +0 -582
- package/dist/chart-DIGJna_6.mjs.map +0 -1
- package/dist/converters-C_Y2QX1w.mjs.map +0 -1
- package/dist/drawingml/index.d.mts +0 -2
- package/dist/drawingml/index.mjs +0 -2
- package/dist/drawingml-sj1J3lb0.mjs.map +0 -1
- package/dist/index-BVK2dv6C.d.mts.map +0 -1
- package/dist/index-BfHfKuKy.d.mts +0 -275
- package/dist/index-BfHfKuKy.d.mts.map +0 -1
- package/dist/index-CE53SwpZ.d.mts +0 -1463
- package/dist/index-CE53SwpZ.d.mts.map +0 -1
- package/dist/index-D6VE-MnJ.d.mts +0 -43
- package/dist/index-D6VE-MnJ.d.mts.map +0 -1
- package/dist/index-DE4CLElr.d.mts +0 -145
- package/dist/index-DE4CLElr.d.mts.map +0 -1
- package/dist/index-DlPA26cw.d.mts +0 -91
- package/dist/index-DlPA26cw.d.mts.map +0 -1
- package/dist/index-k8WKLXnA.d.mts.map +0 -1
- package/dist/output-D_G_JR_8.d.mts.map +0 -1
- package/dist/patch-BmRfghOo.mjs.map +0 -1
- package/dist/smartart-B7ukZ-Tw.mjs +0 -305
- package/dist/smartart-B7ukZ-Tw.mjs.map +0 -1
- package/dist/theme-CiNzdl-9.mjs +0 -177
- package/dist/theme-CiNzdl-9.mjs.map +0 -1
- package/dist/util-Tq9PSjK0.mjs.map +0 -1
- package/dist/values-8di32lIe.d.mts.map +0 -1
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { escapeXml } from "@office-open/xml";
|
|
2
|
+
//#region src/theme/color-mapping.ts
|
|
3
|
+
/**
|
|
4
|
+
* Color mapping (a:clrMap / CT_ColorMapping) stringify + parse.
|
|
5
|
+
*
|
|
6
|
+
* Remaps the 12 semantic color slots to theme color slots. Public options use
|
|
7
|
+
* full words; this module owns the abbreviated OOXML tokens.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
const MAPPING_ATTRS = [
|
|
12
|
+
{
|
|
13
|
+
attr: "bg1",
|
|
14
|
+
key: "background1"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
attr: "tx1",
|
|
18
|
+
key: "text1"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
attr: "bg2",
|
|
22
|
+
key: "background2"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
attr: "tx2",
|
|
26
|
+
key: "text2"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
attr: "accent1",
|
|
30
|
+
key: "accent1"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
attr: "accent2",
|
|
34
|
+
key: "accent2"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
attr: "accent3",
|
|
38
|
+
key: "accent3"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
attr: "accent4",
|
|
42
|
+
key: "accent4"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
attr: "accent5",
|
|
46
|
+
key: "accent5"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
attr: "accent6",
|
|
50
|
+
key: "accent6"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
attr: "hlink",
|
|
54
|
+
key: "hyperlink"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
attr: "folHlink",
|
|
58
|
+
key: "followedHyperlink"
|
|
59
|
+
}
|
|
60
|
+
];
|
|
61
|
+
const COLOR_SCHEME_INDEX_TO_XML = {
|
|
62
|
+
dark1: "dk1",
|
|
63
|
+
light1: "lt1",
|
|
64
|
+
dark2: "dk2",
|
|
65
|
+
light2: "lt2",
|
|
66
|
+
accent1: "accent1",
|
|
67
|
+
accent2: "accent2",
|
|
68
|
+
accent3: "accent3",
|
|
69
|
+
accent4: "accent4",
|
|
70
|
+
accent5: "accent5",
|
|
71
|
+
accent6: "accent6",
|
|
72
|
+
hyperlink: "hlink",
|
|
73
|
+
followedHyperlink: "folHlink"
|
|
74
|
+
};
|
|
75
|
+
const XML_TO_COLOR_SCHEME_INDEX = Object.fromEntries(Object.entries(COLOR_SCHEME_INDEX_TO_XML).map(([key, value]) => [value, key]));
|
|
76
|
+
/** Standard Office mapping from semantic slots to theme color slots. */
|
|
77
|
+
const DEFAULT_COLOR_MAPPING = {
|
|
78
|
+
background1: "light1",
|
|
79
|
+
text1: "dark1",
|
|
80
|
+
background2: "light2",
|
|
81
|
+
text2: "dark2",
|
|
82
|
+
accent1: "accent1",
|
|
83
|
+
accent2: "accent2",
|
|
84
|
+
accent3: "accent3",
|
|
85
|
+
accent4: "accent4",
|
|
86
|
+
accent5: "accent5",
|
|
87
|
+
accent6: "accent6",
|
|
88
|
+
hyperlink: "hyperlink",
|
|
89
|
+
followedHyperlink: "followedHyperlink"
|
|
90
|
+
};
|
|
91
|
+
/** Serialize a complete, XSD-valid CT_ColorMapping element. */
|
|
92
|
+
function stringifyColorMapping(opts, elementName = "a:clrMap") {
|
|
93
|
+
const merged = {
|
|
94
|
+
...DEFAULT_COLOR_MAPPING,
|
|
95
|
+
...opts
|
|
96
|
+
};
|
|
97
|
+
return `<${elementName} ${MAPPING_ATTRS.map(({ attr, key }) => {
|
|
98
|
+
const value = COLOR_SCHEME_INDEX_TO_XML[merged[key]];
|
|
99
|
+
return `${attr}="${escapeXml(value)}"`;
|
|
100
|
+
}).join(" ")}/>`;
|
|
101
|
+
}
|
|
102
|
+
/** Parse CT_ColorMapping attributes into full-word public keys and values. */
|
|
103
|
+
function parseColorMapping(el) {
|
|
104
|
+
if (!el?.attributes) return void 0;
|
|
105
|
+
const result = {};
|
|
106
|
+
for (const { attr, key } of MAPPING_ATTRS) {
|
|
107
|
+
const value = el.attributes[attr];
|
|
108
|
+
if (value === void 0) continue;
|
|
109
|
+
const parsed = XML_TO_COLOR_SCHEME_INDEX[String(value)];
|
|
110
|
+
if (parsed !== void 0) result[key] = parsed;
|
|
111
|
+
}
|
|
112
|
+
return Object.keys(result).length > 0 ? result : void 0;
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
export { parseColorMapping as n, stringifyColorMapping as r, DEFAULT_COLOR_MAPPING as t };
|
|
116
|
+
|
|
117
|
+
//# sourceMappingURL=color-mapping-CFF0vRSe.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-mapping-CFF0vRSe.mjs","names":[],"sources":["../src/theme/color-mapping.ts"],"sourcesContent":["/**\n * Color mapping (a:clrMap / CT_ColorMapping) stringify + parse.\n *\n * Remaps the 12 semantic color slots to theme color slots. Public options use\n * full words; this module owns the abbreviated OOXML tokens.\n *\n * @module\n */\nimport { escapeXml } from \"@office-open/xml\";\nimport type { Element as XmlElement } from \"@office-open/xml\";\n\nimport type { ColorMappingOptions, ColorSchemeIndex } from \"./theme-options\";\n\nconst MAPPING_ATTRS: ReadonlyArray<{ attr: string; key: keyof ColorMappingOptions }> = [\n { attr: \"bg1\", key: \"background1\" },\n { attr: \"tx1\", key: \"text1\" },\n { attr: \"bg2\", key: \"background2\" },\n { attr: \"tx2\", key: \"text2\" },\n { attr: \"accent1\", key: \"accent1\" },\n { attr: \"accent2\", key: \"accent2\" },\n { attr: \"accent3\", key: \"accent3\" },\n { attr: \"accent4\", key: \"accent4\" },\n { attr: \"accent5\", key: \"accent5\" },\n { attr: \"accent6\", key: \"accent6\" },\n { attr: \"hlink\", key: \"hyperlink\" },\n { attr: \"folHlink\", key: \"followedHyperlink\" },\n];\n\nconst COLOR_SCHEME_INDEX_TO_XML: Record<ColorSchemeIndex, string> = {\n dark1: \"dk1\",\n light1: \"lt1\",\n dark2: \"dk2\",\n light2: \"lt2\",\n accent1: \"accent1\",\n accent2: \"accent2\",\n accent3: \"accent3\",\n accent4: \"accent4\",\n accent5: \"accent5\",\n accent6: \"accent6\",\n hyperlink: \"hlink\",\n followedHyperlink: \"folHlink\",\n};\n\nconst XML_TO_COLOR_SCHEME_INDEX = Object.fromEntries(\n Object.entries(COLOR_SCHEME_INDEX_TO_XML).map(([key, value]) => [value, key]),\n) as Record<string, ColorSchemeIndex>;\n\n/** Standard Office mapping from semantic slots to theme color slots. */\nexport const DEFAULT_COLOR_MAPPING: ColorMappingOptions = {\n background1: \"light1\",\n text1: \"dark1\",\n background2: \"light2\",\n text2: \"dark2\",\n accent1: \"accent1\",\n accent2: \"accent2\",\n accent3: \"accent3\",\n accent4: \"accent4\",\n accent5: \"accent5\",\n accent6: \"accent6\",\n hyperlink: \"hyperlink\",\n followedHyperlink: \"followedHyperlink\",\n};\n\n/** Serialize a complete, XSD-valid CT_ColorMapping element. */\nexport function stringifyColorMapping(\n opts: Partial<ColorMappingOptions> | undefined,\n elementName = \"a:clrMap\",\n): string {\n const merged = { ...DEFAULT_COLOR_MAPPING, ...opts };\n const attrs = MAPPING_ATTRS.map(({ attr, key }) => {\n const value = COLOR_SCHEME_INDEX_TO_XML[merged[key]];\n return `${attr}=\"${escapeXml(value)}\"`;\n }).join(\" \");\n return `<${elementName} ${attrs}/>`;\n}\n\n/** Parse CT_ColorMapping attributes into full-word public keys and values. */\nexport function parseColorMapping(\n el: XmlElement | undefined,\n): Partial<ColorMappingOptions> | undefined {\n if (!el?.attributes) return undefined;\n const result: Partial<ColorMappingOptions> = {};\n for (const { attr, key } of MAPPING_ATTRS) {\n const value = el.attributes[attr];\n if (value === undefined) continue;\n const parsed = XML_TO_COLOR_SCHEME_INDEX[String(value)];\n if (parsed !== undefined) result[key] = parsed;\n }\n return Object.keys(result).length > 0 ? result : undefined;\n}\n"],"mappings":";;;;;;;;;;AAaA,MAAM,gBAAiF;CACrF;EAAE,MAAM;EAAO,KAAK;CAAc;CAClC;EAAE,MAAM;EAAO,KAAK;CAAQ;CAC5B;EAAE,MAAM;EAAO,KAAK;CAAc;CAClC;EAAE,MAAM;EAAO,KAAK;CAAQ;CAC5B;EAAE,MAAM;EAAW,KAAK;CAAU;CAClC;EAAE,MAAM;EAAW,KAAK;CAAU;CAClC;EAAE,MAAM;EAAW,KAAK;CAAU;CAClC;EAAE,MAAM;EAAW,KAAK;CAAU;CAClC;EAAE,MAAM;EAAW,KAAK;CAAU;CAClC;EAAE,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"file":"data-type-CZMKVaaT.d.mts","names":[],"sources":["../src/util/data-type.ts"],"mappings":";KAaY,
|
|
1
|
+
{"version":3,"file":"data-type-CZMKVaaT.d.mts","names":[],"sources":["../src/util/data-type.ts"],"mappings":";KAaY,WACR,kBACA,OACA,sBAEA,0BAEA;iBAOY,gBAAgB;UAKf;EAUf;;iBAIc,aAAa,MAAM,UAAU,UAAU,sBAAsB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as diffTagSets, c as FIELD_SPECS, d as stringify, f as CustomDescriptor, h as WriteContext, i as checkOrder, l as findFieldSpec, m as ReadContext, n as OrderViolation, o as roundTripFields, p as
|
|
2
|
-
export { type CustomDescriptor, type
|
|
1
|
+
import { a as diffTagSets, c as FIELD_SPECS, d as stringify, f as CustomDescriptor, h as WriteContext, i as checkOrder, l as findFieldSpec, m as ReadContext, n as OrderViolation, o as roundTripFields, p as HyperlinkTarget, r as RoundTripResult, s as DescriptorFieldSpec, t as FieldConsistencyReport, u as parse } from "../index-BQLIofaF.mjs";
|
|
2
|
+
export { type CustomDescriptor, type DescriptorFieldSpec, FIELD_SPECS, type FieldConsistencyReport, type HyperlinkTarget, type OrderViolation, type ReadContext, type RoundTripResult, type WriteContext, checkOrder, diffTagSets, findFieldSpec, parse, roundTripFields, stringify };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as roundTripFields, i as diffTagSets, n as findFieldSpec, o as parse, r as checkOrder, s as stringify, t as FIELD_SPECS } from "../descriptor-
|
|
1
|
+
import { a as roundTripFields, i as diffTagSets, n as findFieldSpec, o as parse, r as checkOrder, s as stringify, t as FIELD_SPECS } from "../descriptor-BqaNZrrZ.mjs";
|
|
2
2
|
export { FIELD_SPECS, checkOrder, diffTagSets, findFieldSpec, parse, roundTripFields, stringify };
|
|
@@ -118,7 +118,7 @@ function deepEqual(a, b) {
|
|
|
118
118
|
}
|
|
119
119
|
const ao = a;
|
|
120
120
|
const bo = b;
|
|
121
|
-
const keys = new Set([...Object.keys(ao), ...Object.keys(bo)]);
|
|
121
|
+
const keys = /* @__PURE__ */ new Set([...Object.keys(ao), ...Object.keys(bo)]);
|
|
122
122
|
for (const k of keys) if (!deepEqual(ao[k], bo[k])) return false;
|
|
123
123
|
return true;
|
|
124
124
|
}
|
|
@@ -132,6 +132,7 @@ function deepEqual(a, b) {
|
|
|
132
132
|
const FIELD_SPECS = [{
|
|
133
133
|
id: "core-properties",
|
|
134
134
|
optionsInterface: "CorePropertiesOptions",
|
|
135
|
+
excludeFields: ["defaultNamespace"],
|
|
135
136
|
interfaceFields: [
|
|
136
137
|
"title",
|
|
137
138
|
"subject",
|
|
@@ -142,7 +143,13 @@ const FIELD_SPECS = [{
|
|
|
142
143
|
"revision",
|
|
143
144
|
"lastPrinted",
|
|
144
145
|
"created",
|
|
145
|
-
"modified"
|
|
146
|
+
"modified",
|
|
147
|
+
"category",
|
|
148
|
+
"contentStatus",
|
|
149
|
+
"contentType",
|
|
150
|
+
"identifier",
|
|
151
|
+
"language",
|
|
152
|
+
"version"
|
|
146
153
|
],
|
|
147
154
|
writeFields: [
|
|
148
155
|
"title",
|
|
@@ -154,7 +161,13 @@ const FIELD_SPECS = [{
|
|
|
154
161
|
"revision",
|
|
155
162
|
"lastPrinted",
|
|
156
163
|
"created",
|
|
157
|
-
"modified"
|
|
164
|
+
"modified",
|
|
165
|
+
"category",
|
|
166
|
+
"contentStatus",
|
|
167
|
+
"contentType",
|
|
168
|
+
"identifier",
|
|
169
|
+
"language",
|
|
170
|
+
"version"
|
|
158
171
|
],
|
|
159
172
|
parseFields: [
|
|
160
173
|
"title",
|
|
@@ -166,10 +179,17 @@ const FIELD_SPECS = [{
|
|
|
166
179
|
"revision",
|
|
167
180
|
"lastPrinted",
|
|
168
181
|
"created",
|
|
169
|
-
"modified"
|
|
182
|
+
"modified",
|
|
183
|
+
"category",
|
|
184
|
+
"contentStatus",
|
|
185
|
+
"contentType",
|
|
186
|
+
"identifier",
|
|
187
|
+
"language",
|
|
188
|
+
"version"
|
|
170
189
|
],
|
|
171
190
|
sampleOptions: {
|
|
172
191
|
title: "T",
|
|
192
|
+
contentType: "Document",
|
|
173
193
|
subject: "S",
|
|
174
194
|
creator: "C",
|
|
175
195
|
keywords: "k1,k2",
|
|
@@ -178,9 +198,14 @@ const FIELD_SPECS = [{
|
|
|
178
198
|
revision: 3,
|
|
179
199
|
lastPrinted: "2024-01-02T03:04:05Z",
|
|
180
200
|
created: "2018-05-11T07:02:00Z",
|
|
181
|
-
modified: "2026-04-10T02:02:36Z"
|
|
201
|
+
modified: "2026-04-10T02:02:36Z",
|
|
202
|
+
category: "cat",
|
|
203
|
+
contentStatus: "draft",
|
|
204
|
+
identifier: "id-1",
|
|
205
|
+
language: "en-US",
|
|
206
|
+
version: "1.2"
|
|
182
207
|
},
|
|
183
|
-
notes: "created/modified round-tripped verbatim from dcterms:created/modified."
|
|
208
|
+
notes: "created/modified round-tripped verbatim from dcterms:created/modified; the five string fields map CT_CoreProperties elements 1:1."
|
|
184
209
|
}, {
|
|
185
210
|
id: "paragraph-properties",
|
|
186
211
|
optionsInterface: "ParagraphPropertiesOptions",
|
|
@@ -221,7 +246,8 @@ const FIELD_SPECS = [{
|
|
|
221
246
|
"outlineLevel",
|
|
222
247
|
"divId",
|
|
223
248
|
"cnfStyle",
|
|
224
|
-
"revision"
|
|
249
|
+
"revision",
|
|
250
|
+
"emptyProperties"
|
|
225
251
|
],
|
|
226
252
|
writeFields: [
|
|
227
253
|
"heading",
|
|
@@ -260,7 +286,8 @@ const FIELD_SPECS = [{
|
|
|
260
286
|
"outlineLevel",
|
|
261
287
|
"divId",
|
|
262
288
|
"cnfStyle",
|
|
263
|
-
"revision"
|
|
289
|
+
"revision",
|
|
290
|
+
"emptyProperties"
|
|
264
291
|
],
|
|
265
292
|
parseFields: [
|
|
266
293
|
"heading",
|
|
@@ -294,8 +321,13 @@ const FIELD_SPECS = [{
|
|
|
294
321
|
"topLinePunct",
|
|
295
322
|
"autoSpaceDE",
|
|
296
323
|
"textAlignment",
|
|
324
|
+
"textboxTightWrap",
|
|
325
|
+
"textDirection",
|
|
297
326
|
"outlineLevel",
|
|
298
|
-
"
|
|
327
|
+
"divId",
|
|
328
|
+
"cnfStyle",
|
|
329
|
+
"revision",
|
|
330
|
+
"emptyProperties"
|
|
299
331
|
],
|
|
300
332
|
order: [
|
|
301
333
|
"pStyle",
|
|
@@ -378,7 +410,7 @@ const FIELD_SPECS = [{
|
|
|
378
410
|
"leftTabStop",
|
|
379
411
|
"includeIfEmpty"
|
|
380
412
|
],
|
|
381
|
-
notes: "
|
|
413
|
+
notes: "Input-side sugar excluded from the field sets: thematicBreak (→pBdr/border), rightTabStop/leftTabStop (→tabs/tabStops), includeIfEmpty (control flag) — these map field→XML but XML→a different field, breaking the 1:1 round-trip assumption."
|
|
382
414
|
}];
|
|
383
415
|
function findFieldSpec(id) {
|
|
384
416
|
return FIELD_SPECS.find((s) => s.id === id);
|
|
@@ -386,4 +418,4 @@ function findFieldSpec(id) {
|
|
|
386
418
|
//#endregion
|
|
387
419
|
export { roundTripFields as a, diffTagSets as i, findFieldSpec as n, parse$1 as o, checkOrder as r, stringify$1 as s, FIELD_SPECS as t };
|
|
388
420
|
|
|
389
|
-
//# sourceMappingURL=descriptor-
|
|
421
|
+
//# sourceMappingURL=descriptor-BqaNZrrZ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptor-BjNkn5jo.mjs","names":["stringify","parse","parseXml"],"sources":["../src/descriptor/runtime.ts","../src/descriptor/field-consistency.ts","../src/descriptor/field-spec.ts"],"sourcesContent":["/**\n * Descriptor runtime: stringify (write) and parse (parse path) functions.\n *\n * Write path: Options → stringify(desc, opts, ctx) → string\n * Parse path: Element → parse(desc, el, ctx) → Options\n *\n * Both paths delegate to the descriptor's own stringify()/parse() methods —\n * every descriptor is a CustomDescriptor.\n *\n * @module\n */\n\nimport type { Element as XmlElement } from \"@office-open/xml\";\n\nimport type { ReadContext, WriteContext } from \"./context\";\nimport type { CustomDescriptor } from \"./types\";\n\n// ── Write path ──\n\n/**\n * Serialize an Options object to an XML string using its descriptor.\n * Returns `undefined` when an optional element should be omitted.\n */\nexport function stringify<TInput, Ctx = WriteContext, TOutput = TInput>(\n desc: CustomDescriptor<TInput, Ctx, TOutput>,\n value: TInput,\n ctx: Ctx,\n): string | undefined {\n return desc.stringify(value, ctx);\n}\n\n// ── Read path ──\n\n/** Parse an XML Element into an Options object using its descriptor. */\nexport function parse<TInput, TOutput = TInput, Ctx = WriteContext>(\n desc: CustomDescriptor<TInput, Ctx, TOutput>,\n el: XmlElement,\n ctx: ReadContext,\n): TOutput {\n return desc.parse(el, ctx);\n}\n","/**\n * Field-consistency helpers for descriptor round-trip auditing.\n *\n * Pairs with {@link DescriptorFieldSpec}: {@link diffTagSets} flags the static\n * asymmetries between the interface / write / parse field sets (F1/F2/F3/F5),\n * and {@link roundTripFields} runs an actual stringify→parse cycle and reports\n * which fields were lost, gained, or mutated (F4).\n *\n * @module\n */\nimport { parse as parseXml } from \"@office-open/xml\";\nimport type { Element } from \"@office-open/xml\";\n\nimport type { DescriptorFieldSpec } from \"./field-spec\";\n\nexport interface FieldConsistencyReport {\n /** F1 — declared on the interface but never written (write-loss). */\n f1WriteLoss: readonly string[];\n /** F2 — written but absent from the interface (write-only inflation). */\n f2WriteOnly: readonly string[];\n /** F3 — written but never restored on parse (round-trip loss). */\n f3ParseLoss: readonly string[];\n /** F5 — restored on parse but never written (parse-only). */\n f5ParseOnly: readonly string[];\n}\n\n/** Diff the interface / write / parse field sets declared on a spec. */\nexport function diffTagSets(spec: DescriptorFieldSpec): FieldConsistencyReport {\n const interfaceSet = new Set(spec.interfaceFields);\n const writeSet = new Set(spec.writeFields);\n const parseSet = new Set(spec.parseFields);\n return {\n f1WriteLoss: spec.interfaceFields.filter((f) => !writeSet.has(f)),\n f2WriteOnly: spec.writeFields.filter((f) => !interfaceSet.has(f)),\n f3ParseLoss: spec.writeFields.filter((f) => !parseSet.has(f)),\n f5ParseOnly: spec.parseFields.filter((f) => !writeSet.has(f)),\n };\n}\n\nexport interface RoundTripResult {\n /** Present in the sample, absent after round-trip. */\n lost: readonly string[];\n /** Absent from the sample, present after round-trip. */\n gained: readonly string[];\n /** Present on both sides with differing values. */\n mutated: readonly string[];\n}\n\n/**\n * Run a stringify→parse cycle over a sample and diff the result field set.\n * Returns the F4 round-trip drift. The caller supplies the descriptor's own\n * stringify/parse (a `CustomDescriptor` pair or a function pair).\n */\nexport function roundTripFields<T extends object, WC = unknown, RC = unknown>(\n stringifyFn: (opts: T, ctx: WC) => string | undefined,\n parseFn: (el: Element, ctx: RC) => T,\n sample: T,\n writeCtx: WC,\n readCtx: RC,\n): RoundTripResult {\n const xml = stringifyFn(sample, writeCtx);\n if (xml === undefined) {\n throw new Error(\"roundTripFields: stringify returned undefined for the sample\");\n }\n const doc = parseXml(xml) as Element;\n const root = doc.elements?.find((e) => e.type === \"element\");\n if (!root) throw new Error(\"roundTripFields: stringify produced no root element\");\n const result = parseFn(root, readCtx);\n return diffObjects(sample, result);\n}\n\nexport interface OrderViolation {\n /** Position of the offending child within its parent. */\n index: number;\n /** Local name of the child element (namespace prefix stripped). */\n tag: string;\n /** Why the child violates the expected sequence. */\n reason: \"unexpected\" | \"out-of-order\";\n}\n\n/**\n * Verify the child element order of a stringified container against an XSD\n * sequence — the F6 check. Namespace prefixes are normalized, so `expected`\n * entries may be qualified (`w:pStyle`) or local (`pStyle`); both match a\n * `<w:pStyle>` child. Elements absent from `expected` are flagged \"unexpected\";\n * a child whose expected position precedes the previous child's is\n * \"out-of-order\".\n */\nexport function checkOrder(xml: string, expected: readonly string[]): readonly OrderViolation[] {\n const doc = parseXml(xml) as Element;\n const root = doc.elements?.find((e) => e.type === \"element\");\n if (!root) return [];\n const expectedLocal = expected.map(localName);\n const violations: OrderViolation[] = [];\n let lastIdx = -1;\n const children = (root.elements ?? []).filter((e) => e.type === \"element\");\n children.forEach((child, i) => {\n const tag = localName(child.name);\n const idx = expectedLocal.indexOf(tag);\n if (idx === -1) {\n violations.push({ index: i, tag, reason: \"unexpected\" });\n return;\n }\n if (idx < lastIdx) {\n violations.push({ index: i, tag, reason: \"out-of-order\" });\n }\n lastIdx = idx;\n });\n return violations;\n}\n\nfunction localName(name: string | undefined): string {\n if (name === undefined) return \"\";\n const colon = name.lastIndexOf(\":\");\n return colon === -1 ? name : name.slice(colon + 1);\n}\n\nfunction diffObjects(sample: object, result: object): RoundTripResult {\n const sampleKeys = enumerableKeys(sample);\n const resultKeys = enumerableKeys(result);\n const lost = sampleKeys.filter((k) => !(k in result));\n const gained = resultKeys.filter((k) => !(k in sample));\n const mutated = sampleKeys.filter(\n (k) => k in result && !deepEqual(fieldValue(sample, k), fieldValue(result, k)),\n );\n return { lost, gained, mutated };\n}\n\nfunction enumerableKeys(value: object): string[] {\n return Object.keys(value).filter((k) => fieldValue(value, k) !== undefined);\n}\n\nfunction fieldValue(value: object, key: string): unknown {\n return (value as Record<string, unknown>)[key];\n}\n\n/** Structural deep equality (objects, arrays, primitives); no special-case classes. */\nfunction deepEqual(a: unknown, b: unknown): boolean {\n if (a === b) return true;\n if (typeof a !== typeof b) return false;\n if (a === null || b === null) return a === b;\n if (typeof a !== \"object\") return a === b;\n const aArr = Array.isArray(a);\n const bArr = Array.isArray(b);\n if (aArr || bArr) {\n if (!aArr || !bArr) return false;\n const aa = a as unknown[];\n const bb = b as unknown[];\n if (aa.length !== bb.length) return false;\n return aa.every((v, i) => deepEqual(v, bb[i]));\n }\n const ao = a as Record<string, unknown>;\n const bo = b as Record<string, unknown>;\n const keys = new Set([...Object.keys(ao), ...Object.keys(bo)]);\n for (const k of keys) {\n if (!deepEqual(ao[k], bo[k])) return false;\n }\n return true;\n}\n","/**\n * Declarative field-consistency spec for descriptors.\n *\n * The `CustomDescriptor<T>` closure carries no field metadata, so the three\n * places that must agree — the Options interface, the stringify body, and the\n * parse body — drift silently (reflection dropping 9/14 props, styles\n * round-trip loss, core-properties 8-interface/10-write/8-parse inflation).\n *\n * Each entry declares the three field sets in a single semantic dimension\n * (Options field names, not XML tags), so {@link diffTagSets} can surface the\n * asymmetries directly:\n * - F1 write-loss — declared on the interface but never written\n * - F2 write-only — written but absent from the interface (inflation)\n * - F3 parse-loss — written but never restored on parse (round-trip loss)\n * - F5 parse-only — restored but never written\n *\n * @module\n */\n\nexport interface DescriptorFieldSpec {\n /** Stable identifier, matched to the descriptor under test. */\n id: string;\n /** Options interface name (documentation / assertion messages). */\n optionsInterface: string;\n /** Fields declared on the Options interface — the contract. */\n interfaceFields: readonly string[];\n /** Fields the stringify path actually emits; may carry inflation not on the interface. */\n writeFields: readonly string[];\n /** Fields the parse path actually restores. */\n parseFields: readonly string[];\n /** Expected child order when the XSD mandates sequence; omitted when order-independent. */\n order?: readonly string[];\n /** Sample exercising the interface fields, for F4 round-trip deep-equality. */\n sampleOptions: unknown;\n /**\n * Interface fields excluded from the contract comparison — input-side sugar\n * (thematicBreak→border, rightTabStop→tabStops) and control flags\n * (includeIfEmpty) that map field→XML but XML→a different field, breaking the\n * 1:1 round-trip assumption. The interface-drift test asserts\n * `interfaceFields === (live interface fields − excludeFields)`.\n */\n excludeFields?: readonly string[];\n notes?: string;\n}\n\n/**\n * Curated high-value targets — each maps to a known historical drift.\n * `settings` is intentionally absent: its round-trip is rawXml-based (byte\n * passthrough), so field-level diff would mislabel every field as F2.\n */\nexport const FIELD_SPECS: readonly DescriptorFieldSpec[] = [\n {\n id: \"core-properties\",\n optionsInterface: \"CorePropertiesOptions\",\n // 10 interface fields — created/modified are now carried for round-trip fidelity.\n interfaceFields: [\n \"title\",\n \"subject\",\n \"creator\",\n \"keywords\",\n \"description\",\n \"lastModifiedBy\",\n \"revision\",\n \"lastPrinted\",\n \"created\",\n \"modified\",\n ],\n // stringify emits all 10 fields; created/modified default to now when absent.\n writeFields: [\n \"title\",\n \"subject\",\n \"creator\",\n \"keywords\",\n \"description\",\n \"lastModifiedBy\",\n \"revision\",\n \"lastPrinted\",\n \"created\",\n \"modified\",\n ],\n // parse reads back all 10 interface fields.\n parseFields: [\n \"title\",\n \"subject\",\n \"creator\",\n \"keywords\",\n \"description\",\n \"lastModifiedBy\",\n \"revision\",\n \"lastPrinted\",\n \"created\",\n \"modified\",\n ],\n sampleOptions: {\n title: \"T\",\n subject: \"S\",\n creator: \"C\",\n keywords: \"k1,k2\",\n description: \"D\",\n lastModifiedBy: \"LMB\",\n revision: 3,\n lastPrinted: \"2024-01-02T03:04:05Z\",\n created: \"2018-05-11T07:02:00Z\",\n modified: \"2026-04-10T02:02:36Z\",\n },\n notes: \"created/modified round-tripped verbatim from dcterms:created/modified.\",\n },\n {\n id: \"paragraph-properties\",\n optionsInterface: \"ParagraphPropertiesOptions\",\n interfaceFields: [\n \"heading\",\n \"style\",\n \"bullet\",\n \"run\",\n \"border\",\n \"shading\",\n \"numbering\",\n \"alignment\",\n \"bidirectional\",\n \"pageBreakBefore\",\n \"tabStops\",\n \"widowControl\",\n \"contextualSpacing\",\n \"indent\",\n \"spacing\",\n \"keepNext\",\n \"keepLines\",\n \"frame\",\n \"suppressLineNumbers\",\n \"wordWrap\",\n \"overflowPunctuation\",\n \"autoSpaceEastAsianText\",\n \"suppressOverlap\",\n \"suppressAutoHyphens\",\n \"adjustRightInd\",\n \"snapToGrid\",\n \"mirrorIndents\",\n \"kinsoku\",\n \"topLinePunct\",\n \"autoSpaceDE\",\n \"textAlignment\",\n \"textboxTightWrap\",\n \"textDirection\",\n \"outlineLevel\",\n \"divId\",\n \"cnfStyle\",\n \"revision\",\n ],\n // stringify writes every interface field (pPrChange is revision's XML).\n writeFields: [\n \"heading\",\n \"style\",\n \"bullet\",\n \"run\",\n \"border\",\n \"shading\",\n \"numbering\",\n \"alignment\",\n \"bidirectional\",\n \"pageBreakBefore\",\n \"tabStops\",\n \"widowControl\",\n \"contextualSpacing\",\n \"indent\",\n \"spacing\",\n \"keepNext\",\n \"keepLines\",\n \"frame\",\n \"suppressLineNumbers\",\n \"wordWrap\",\n \"overflowPunctuation\",\n \"autoSpaceEastAsianText\",\n \"suppressOverlap\",\n \"suppressAutoHyphens\",\n \"adjustRightInd\",\n \"snapToGrid\",\n \"mirrorIndents\",\n \"kinsoku\",\n \"topLinePunct\",\n \"autoSpaceDE\",\n \"textAlignment\",\n \"textboxTightWrap\",\n \"textDirection\",\n \"outlineLevel\",\n \"divId\",\n \"cnfStyle\",\n \"revision\",\n ],\n // parse omits textDirection, textboxTightWrap, divId, cnfStyle\n // (no findChild for these in parseParagraphProperties).\n parseFields: [\n \"heading\",\n \"style\",\n \"bullet\",\n \"run\",\n \"border\",\n \"shading\",\n \"numbering\",\n \"alignment\",\n \"bidirectional\",\n \"pageBreakBefore\",\n \"tabStops\",\n \"widowControl\",\n \"contextualSpacing\",\n \"indent\",\n \"spacing\",\n \"keepNext\",\n \"keepLines\",\n \"frame\",\n \"suppressLineNumbers\",\n \"wordWrap\",\n \"overflowPunctuation\",\n \"autoSpaceEastAsianText\",\n \"suppressOverlap\",\n \"suppressAutoHyphens\",\n \"adjustRightInd\",\n \"snapToGrid\",\n \"mirrorIndents\",\n \"kinsoku\",\n \"topLinePunct\",\n \"autoSpaceDE\",\n \"textAlignment\",\n \"outlineLevel\",\n \"revision\",\n ],\n order: [\n \"pStyle\",\n \"keepNext\",\n \"keepLines\",\n \"pageBreakBefore\",\n \"framePr\",\n \"widowControl\",\n \"numPr\",\n \"suppressLineNumbers\",\n \"pBdr\",\n \"shd\",\n \"tabs\",\n \"suppressAutoHyphens\",\n \"kinsoku\",\n \"wordWrap\",\n \"overflowPunct\",\n \"topLinePunct\",\n \"autoSpaceDE\",\n \"autoSpaceDN\",\n \"bidi\",\n \"adjustRightInd\",\n \"snapToGrid\",\n \"spacing\",\n \"ind\",\n \"contextualSpacing\",\n \"mirrorIndents\",\n \"suppressOverlap\",\n \"jc\",\n \"textDirection\",\n \"textAlignment\",\n \"textboxTightWrap\",\n \"outlineLvl\",\n \"divId\",\n \"cnfStyle\",\n \"rPr\",\n \"pPrChange\",\n ],\n sampleOptions: {\n heading: \"Heading1\",\n alignment: \"center\",\n spacing: { before: 240, after: 120, line: 278, lineRule: \"auto\" },\n indent: { left: 720, firstLine: 360 },\n keepNext: true,\n keepLines: true,\n widowControl: true,\n contextualSpacing: true,\n border: { bottom: { style: \"single\", color: \"FF0000\", size: 6, space: 1 } },\n shading: { fill: \"FFFF00\", type: \"clear\" },\n tabStops: [{ position: 720, type: \"left\" }],\n numbering: { reference: \"list_1\", level: 0 },\n outlineLevel: 1,\n textAlignment: \"center\",\n },\n excludeFields: [\"thematicBreak\", \"rightTabStop\", \"leftTabStop\", \"includeIfEmpty\"],\n notes:\n \"F3 parse-loss: textDirection, textboxTightWrap, divId, cnfStyle written but never parsed. \" +\n \"Input-side sugar excluded from the field sets: thematicBreak (→pBdr/border), \" +\n \"rightTabStop/leftTabStop (→tabs/tabStops), includeIfEmpty (control flag) — these map field→XML but XML→a different field, breaking the 1:1 round-trip assumption.\",\n },\n];\n\nexport function findFieldSpec(id: string): DescriptorFieldSpec | undefined {\n return FIELD_SPECS.find((s) => s.id === id);\n}\n"],"mappings":";;;;;;AAuBA,SAAgBA,YACd,MACA,OACA,KACoB;CACpB,OAAO,KAAK,UAAU,OAAO,GAAG;AAClC;;AAKA,SAAgBC,QACd,MACA,IACA,KACS;CACT,OAAO,KAAK,MAAM,IAAI,GAAG;AAC3B;;;;;;;;;;;;;;ACbA,SAAgB,YAAY,MAAmD;CAC7E,MAAM,eAAe,IAAI,IAAI,KAAK,eAAe;CACjD,MAAM,WAAW,IAAI,IAAI,KAAK,WAAW;CACzC,MAAM,WAAW,IAAI,IAAI,KAAK,WAAW;CACzC,OAAO;EACL,aAAa,KAAK,gBAAgB,QAAQ,MAAM,CAAC,SAAS,IAAI,CAAC,CAAC;EAChE,aAAa,KAAK,YAAY,QAAQ,MAAM,CAAC,aAAa,IAAI,CAAC,CAAC;EAChE,aAAa,KAAK,YAAY,QAAQ,MAAM,CAAC,SAAS,IAAI,CAAC,CAAC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5GA,MAAa,cAA8C,CACzD;CACE,IAAI;CACJ,kBAAkB;CAElB,iBAAiB;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CAEA,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CAEA,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,eAAe;EACb,OAAO;EACP,SAAS;EACT,SAAS;EACT,UAAU;EACV,aAAa;EACb,gBAAgB;EAChB,UAAU;EACV,aAAa;EACb,SAAS;EACT,UAAU;CACZ;CACA,OAAO;AACT,GACA;CACE,IAAI;CACJ,kBAAkB;CAClB,iBAAiB;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CAEA,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CAGA,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,eAAe;EACb,SAAS;EACT,WAAW;EACX,SAAS;GAAE,QAAQ;GAAK,OAAO;GAAK,MAAM;GAAK,UAAU;EAAO;EAChE,QAAQ;GAAE,MAAM;GAAK,WAAW;EAAI;EACpC,UAAU;EACV,WAAW;EACX,cAAc;EACd,mBAAmB;EACnB,QAAQ,EAAE,QAAQ;GAAE,OAAO;GAAU,OAAO;GAAU,MAAM;GAAG,OAAO;EAAE,EAAE;EAC1E,SAAS;GAAE,MAAM;GAAU,MAAM;EAAQ;EACzC,UAAU,CAAC;GAAE,UAAU;GAAK,MAAM;EAAO,CAAC;EAC1C,WAAW;GAAE,WAAW;GAAU,OAAO;EAAE;EAC3C,cAAc;EACd,eAAe;CACjB;CACA,eAAe;EAAC;EAAiB;EAAgB;EAAe;CAAgB;CAChF,OACE;AAGJ,CACF;AAEA,SAAgB,cAAc,IAA6C;CACzE,OAAO,YAAY,MAAM,MAAM,EAAE,OAAO,EAAE;AAC5C"}
|
|
1
|
+
{"version":3,"file":"descriptor-BqaNZrrZ.mjs","names":["stringify","parse","parseXml"],"sources":["../src/descriptor/runtime.ts","../src/descriptor/field-consistency.ts","../src/descriptor/field-spec.ts"],"sourcesContent":["/**\n * Descriptor runtime: stringify (write) and parse (parse path) functions.\n *\n * Write path: Options → stringify(desc, opts, ctx) → string\n * Parse path: Element → parse(desc, el, ctx) → Options\n *\n * Both paths delegate to the descriptor's own stringify()/parse() methods —\n * every descriptor is a CustomDescriptor.\n *\n * @module\n */\n\nimport type { Element as XmlElement } from \"@office-open/xml\";\n\nimport type { ReadContext, WriteContext } from \"./context\";\nimport type { CustomDescriptor } from \"./types\";\n\n// ── Write path ──\n\n/**\n * Serialize an Options object to an XML string using its descriptor.\n * Returns `undefined` when an optional element should be omitted.\n */\nexport function stringify<TInput, Ctx = WriteContext, TOutput = TInput>(\n desc: CustomDescriptor<TInput, Ctx, TOutput>,\n value: TInput,\n ctx: Ctx,\n): string | undefined {\n return desc.stringify(value, ctx);\n}\n\n// ── Read path ──\n\n/** Parse an XML Element into an Options object using its descriptor. */\nexport function parse<TInput, TOutput = TInput, Ctx = WriteContext>(\n desc: CustomDescriptor<TInput, Ctx, TOutput>,\n el: XmlElement,\n ctx: ReadContext,\n): TOutput {\n return desc.parse(el, ctx);\n}\n","/**\n * Field-consistency helpers for descriptor round-trip auditing.\n *\n * Pairs with {@link DescriptorFieldSpec}: {@link diffTagSets} flags the static\n * asymmetries between the interface / write / parse field sets (F1/F2/F3/F5),\n * and {@link roundTripFields} runs an actual stringify→parse cycle and reports\n * which fields were lost, gained, or mutated (F4).\n *\n * @module\n */\nimport { parse as parseXml } from \"@office-open/xml\";\nimport type { Element } from \"@office-open/xml\";\n\nimport type { DescriptorFieldSpec } from \"./field-spec\";\n\nexport interface FieldConsistencyReport {\n /** F1 — declared on the interface but never written (write-loss). */\n f1WriteLoss: readonly string[];\n /** F2 — written but absent from the interface (write-only inflation). */\n f2WriteOnly: readonly string[];\n /** F3 — written but never restored on parse (round-trip loss). */\n f3ParseLoss: readonly string[];\n /** F5 — restored on parse but never written (parse-only). */\n f5ParseOnly: readonly string[];\n}\n\n/** Diff the interface / write / parse field sets declared on a spec. */\nexport function diffTagSets(spec: DescriptorFieldSpec): FieldConsistencyReport {\n const interfaceSet = new Set(spec.interfaceFields);\n const writeSet = new Set(spec.writeFields);\n const parseSet = new Set(spec.parseFields);\n return {\n f1WriteLoss: spec.interfaceFields.filter((f) => !writeSet.has(f)),\n f2WriteOnly: spec.writeFields.filter((f) => !interfaceSet.has(f)),\n f3ParseLoss: spec.writeFields.filter((f) => !parseSet.has(f)),\n f5ParseOnly: spec.parseFields.filter((f) => !writeSet.has(f)),\n };\n}\n\nexport interface RoundTripResult {\n /** Present in the sample, absent after round-trip. */\n lost: readonly string[];\n /** Absent from the sample, present after round-trip. */\n gained: readonly string[];\n /** Present on both sides with differing values. */\n mutated: readonly string[];\n}\n\n/**\n * Run a stringify→parse cycle over a sample and diff the result field set.\n * Returns the F4 round-trip drift. The caller supplies the descriptor's own\n * stringify/parse (a `CustomDescriptor` pair or a function pair).\n */\nexport function roundTripFields<T extends object, WC = unknown, RC = unknown>(\n stringifyFn: (opts: T, ctx: WC) => string | undefined,\n parseFn: (el: Element, ctx: RC) => T,\n sample: T,\n writeCtx: WC,\n readCtx: RC,\n): RoundTripResult {\n const xml = stringifyFn(sample, writeCtx);\n if (xml === undefined) {\n throw new Error(\"roundTripFields: stringify returned undefined for the sample\");\n }\n const doc = parseXml(xml) as Element;\n const root = doc.elements?.find((e) => e.type === \"element\");\n if (!root) throw new Error(\"roundTripFields: stringify produced no root element\");\n const result = parseFn(root, readCtx);\n return diffObjects(sample, result);\n}\n\nexport interface OrderViolation {\n /** Position of the offending child within its parent. */\n index: number;\n /** Local name of the child element (namespace prefix stripped). */\n tag: string;\n /** Why the child violates the expected sequence. */\n reason: \"unexpected\" | \"out-of-order\";\n}\n\n/**\n * Verify the child element order of a stringified container against an XSD\n * sequence — the F6 check. Namespace prefixes are normalized, so `expected`\n * entries may be qualified (`w:pStyle`) or local (`pStyle`); both match a\n * `<w:pStyle>` child. Elements absent from `expected` are flagged \"unexpected\";\n * a child whose expected position precedes the previous child's is\n * \"out-of-order\".\n */\nexport function checkOrder(xml: string, expected: readonly string[]): readonly OrderViolation[] {\n const doc = parseXml(xml) as Element;\n const root = doc.elements?.find((e) => e.type === \"element\");\n if (!root) return [];\n const expectedLocal = expected.map(localName);\n const violations: OrderViolation[] = [];\n let lastIdx = -1;\n const children = (root.elements ?? []).filter((e) => e.type === \"element\");\n children.forEach((child, i) => {\n const tag = localName(child.name);\n const idx = expectedLocal.indexOf(tag);\n if (idx === -1) {\n violations.push({ index: i, tag, reason: \"unexpected\" });\n return;\n }\n if (idx < lastIdx) {\n violations.push({ index: i, tag, reason: \"out-of-order\" });\n }\n lastIdx = idx;\n });\n return violations;\n}\n\nfunction localName(name: string | undefined): string {\n if (name === undefined) return \"\";\n const colon = name.lastIndexOf(\":\");\n return colon === -1 ? name : name.slice(colon + 1);\n}\n\nfunction diffObjects(sample: object, result: object): RoundTripResult {\n const sampleKeys = enumerableKeys(sample);\n const resultKeys = enumerableKeys(result);\n const lost = sampleKeys.filter((k) => !(k in result));\n const gained = resultKeys.filter((k) => !(k in sample));\n const mutated = sampleKeys.filter(\n (k) => k in result && !deepEqual(fieldValue(sample, k), fieldValue(result, k)),\n );\n return { lost, gained, mutated };\n}\n\nfunction enumerableKeys(value: object): string[] {\n return Object.keys(value).filter((k) => fieldValue(value, k) !== undefined);\n}\n\nfunction fieldValue(value: object, key: string): unknown {\n return (value as Record<string, unknown>)[key];\n}\n\n/** Structural deep equality (objects, arrays, primitives); no special-case classes. */\nfunction deepEqual(a: unknown, b: unknown): boolean {\n if (a === b) return true;\n if (typeof a !== typeof b) return false;\n if (a === null || b === null) return a === b;\n if (typeof a !== \"object\") return a === b;\n const aArr = Array.isArray(a);\n const bArr = Array.isArray(b);\n if (aArr || bArr) {\n if (!aArr || !bArr) return false;\n const aa = a as unknown[];\n const bb = b as unknown[];\n if (aa.length !== bb.length) return false;\n return aa.every((v, i) => deepEqual(v, bb[i]));\n }\n const ao = a as Record<string, unknown>;\n const bo = b as Record<string, unknown>;\n const keys = new Set([...Object.keys(ao), ...Object.keys(bo)]);\n for (const k of keys) {\n if (!deepEqual(ao[k], bo[k])) return false;\n }\n return true;\n}\n","/**\n * Declarative field-consistency spec for descriptors.\n *\n * The `CustomDescriptor<T>` closure carries no field metadata, so the three\n * places that must agree — the Options interface, the stringify body, and the\n * parse body — drift silently (reflection dropping 9/14 props, styles\n * round-trip loss, core-properties 8-interface/10-write/8-parse inflation).\n *\n * Each entry declares the three field sets in a single semantic dimension\n * (Options field names, not XML tags), so {@link diffTagSets} can surface the\n * asymmetries directly:\n * - F1 write-loss — declared on the interface but never written\n * - F2 write-only — written but absent from the interface (inflation)\n * - F3 parse-loss — written but never restored on parse (round-trip loss)\n * - F5 parse-only — restored but never written\n *\n * @module\n */\n\nexport interface DescriptorFieldSpec {\n /** Stable identifier, matched to the descriptor under test. */\n id: string;\n /** Options interface name (documentation / assertion messages). */\n optionsInterface: string;\n /** Fields declared on the Options interface — the contract. */\n interfaceFields: readonly string[];\n /** Fields the stringify path actually emits; may carry inflation not on the interface. */\n writeFields: readonly string[];\n /** Fields the parse path actually restores. */\n parseFields: readonly string[];\n /** Expected child order when the XSD mandates sequence; omitted when order-independent. */\n order?: readonly string[];\n /** Sample exercising the interface fields, for F4 round-trip deep-equality. */\n sampleOptions: unknown;\n /**\n * Interface fields excluded from the contract comparison — input-side sugar\n * (thematicBreak→border, rightTabStop→tabStops) and control flags\n * (includeIfEmpty) that map field→XML but XML→a different field, breaking the\n * 1:1 round-trip assumption. The interface-drift test asserts\n * `interfaceFields === (live interface fields − excludeFields)`.\n */\n excludeFields?: readonly string[];\n notes?: string;\n}\n\n/**\n * Curated high-value targets — each maps to a known historical drift.\n * `settings` is intentionally absent: its round-trip is rawXml-based (byte\n * passthrough), so field-level diff would mislabel every field as F2.\n */\nexport const FIELD_SPECS: readonly DescriptorFieldSpec[] = [\n {\n id: \"core-properties\",\n optionsInterface: \"CorePropertiesOptions\",\n // 16 content fields — created/modified + the six CT_CoreProperties\n // string fields (category/contentStatus/identifier/language/version).\n // defaultNamespace is a round-trip form flag (prefix vs default-ns\n // binding), not a serialized content field.\n excludeFields: [\"defaultNamespace\"],\n interfaceFields: [\n \"title\",\n \"subject\",\n \"creator\",\n \"keywords\",\n \"description\",\n \"lastModifiedBy\",\n \"revision\",\n \"lastPrinted\",\n \"created\",\n \"modified\",\n \"category\",\n \"contentStatus\",\n \"contentType\",\n \"identifier\",\n \"language\",\n \"version\",\n ],\n // stringify emits all 15 fields; created/modified default to now when absent.\n writeFields: [\n \"title\",\n \"subject\",\n \"creator\",\n \"keywords\",\n \"description\",\n \"lastModifiedBy\",\n \"revision\",\n \"lastPrinted\",\n \"created\",\n \"modified\",\n \"category\",\n \"contentStatus\",\n \"contentType\",\n \"identifier\",\n \"language\",\n \"version\",\n ],\n // parse reads back all 16 interface fields.\n parseFields: [\n \"title\",\n \"subject\",\n \"creator\",\n \"keywords\",\n \"description\",\n \"lastModifiedBy\",\n \"revision\",\n \"lastPrinted\",\n \"created\",\n \"modified\",\n \"category\",\n \"contentStatus\",\n \"contentType\",\n \"identifier\",\n \"language\",\n \"version\",\n ],\n sampleOptions: {\n title: \"T\",\n contentType: \"Document\",\n subject: \"S\",\n creator: \"C\",\n keywords: \"k1,k2\",\n description: \"D\",\n lastModifiedBy: \"LMB\",\n revision: 3,\n lastPrinted: \"2024-01-02T03:04:05Z\",\n created: \"2018-05-11T07:02:00Z\",\n modified: \"2026-04-10T02:02:36Z\",\n category: \"cat\",\n contentStatus: \"draft\",\n identifier: \"id-1\",\n language: \"en-US\",\n version: \"1.2\",\n },\n notes:\n \"created/modified round-tripped verbatim from dcterms:created/modified; the five string fields map CT_CoreProperties elements 1:1.\",\n },\n {\n id: \"paragraph-properties\",\n optionsInterface: \"ParagraphPropertiesOptions\",\n interfaceFields: [\n \"heading\",\n \"style\",\n \"bullet\",\n \"run\",\n \"border\",\n \"shading\",\n \"numbering\",\n \"alignment\",\n \"bidirectional\",\n \"pageBreakBefore\",\n \"tabStops\",\n \"widowControl\",\n \"contextualSpacing\",\n \"indent\",\n \"spacing\",\n \"keepNext\",\n \"keepLines\",\n \"frame\",\n \"suppressLineNumbers\",\n \"wordWrap\",\n \"overflowPunctuation\",\n \"autoSpaceEastAsianText\",\n \"suppressOverlap\",\n \"suppressAutoHyphens\",\n \"adjustRightInd\",\n \"snapToGrid\",\n \"mirrorIndents\",\n \"kinsoku\",\n \"topLinePunct\",\n \"autoSpaceDE\",\n \"textAlignment\",\n \"textboxTightWrap\",\n \"textDirection\",\n \"outlineLevel\",\n \"divId\",\n \"cnfStyle\",\n \"revision\",\n \"emptyProperties\",\n ],\n // stringify writes every interface field (pPrChange is revision's XML).\n writeFields: [\n \"heading\",\n \"style\",\n \"bullet\",\n \"run\",\n \"border\",\n \"shading\",\n \"numbering\",\n \"alignment\",\n \"bidirectional\",\n \"pageBreakBefore\",\n \"tabStops\",\n \"widowControl\",\n \"contextualSpacing\",\n \"indent\",\n \"spacing\",\n \"keepNext\",\n \"keepLines\",\n \"frame\",\n \"suppressLineNumbers\",\n \"wordWrap\",\n \"overflowPunctuation\",\n \"autoSpaceEastAsianText\",\n \"suppressOverlap\",\n \"suppressAutoHyphens\",\n \"adjustRightInd\",\n \"snapToGrid\",\n \"mirrorIndents\",\n \"kinsoku\",\n \"topLinePunct\",\n \"autoSpaceDE\",\n \"textAlignment\",\n \"textboxTightWrap\",\n \"textDirection\",\n \"outlineLevel\",\n \"divId\",\n \"cnfStyle\",\n \"revision\",\n \"emptyProperties\",\n ],\n // parse covers every write field (round-trip complete).\n parseFields: [\n \"heading\",\n \"style\",\n \"bullet\",\n \"run\",\n \"border\",\n \"shading\",\n \"numbering\",\n \"alignment\",\n \"bidirectional\",\n \"pageBreakBefore\",\n \"tabStops\",\n \"widowControl\",\n \"contextualSpacing\",\n \"indent\",\n \"spacing\",\n \"keepNext\",\n \"keepLines\",\n \"frame\",\n \"suppressLineNumbers\",\n \"wordWrap\",\n \"overflowPunctuation\",\n \"autoSpaceEastAsianText\",\n \"suppressOverlap\",\n \"suppressAutoHyphens\",\n \"adjustRightInd\",\n \"snapToGrid\",\n \"mirrorIndents\",\n \"kinsoku\",\n \"topLinePunct\",\n \"autoSpaceDE\",\n \"textAlignment\",\n \"textboxTightWrap\",\n \"textDirection\",\n \"outlineLevel\",\n \"divId\",\n \"cnfStyle\",\n \"revision\",\n \"emptyProperties\",\n ],\n order: [\n \"pStyle\",\n \"keepNext\",\n \"keepLines\",\n \"pageBreakBefore\",\n \"framePr\",\n \"widowControl\",\n \"numPr\",\n \"suppressLineNumbers\",\n \"pBdr\",\n \"shd\",\n \"tabs\",\n \"suppressAutoHyphens\",\n \"kinsoku\",\n \"wordWrap\",\n \"overflowPunct\",\n \"topLinePunct\",\n \"autoSpaceDE\",\n \"autoSpaceDN\",\n \"bidi\",\n \"adjustRightInd\",\n \"snapToGrid\",\n \"spacing\",\n \"ind\",\n \"contextualSpacing\",\n \"mirrorIndents\",\n \"suppressOverlap\",\n \"jc\",\n \"textDirection\",\n \"textAlignment\",\n \"textboxTightWrap\",\n \"outlineLvl\",\n \"divId\",\n \"cnfStyle\",\n \"rPr\",\n \"pPrChange\",\n ],\n sampleOptions: {\n heading: \"Heading1\",\n alignment: \"center\",\n spacing: { before: 240, after: 120, line: 278, lineRule: \"auto\" },\n indent: { left: 720, firstLine: 360 },\n keepNext: true,\n keepLines: true,\n widowControl: true,\n contextualSpacing: true,\n border: { bottom: { style: \"single\", color: \"FF0000\", size: 6, space: 1 } },\n shading: { fill: \"FFFF00\", type: \"clear\" },\n tabStops: [{ position: 720, type: \"left\" }],\n numbering: { reference: \"list_1\", level: 0 },\n outlineLevel: 1,\n textAlignment: \"center\",\n },\n excludeFields: [\"thematicBreak\", \"rightTabStop\", \"leftTabStop\", \"includeIfEmpty\"],\n notes:\n \"Input-side sugar excluded from the field sets: thematicBreak (→pBdr/border), \" +\n \"rightTabStop/leftTabStop (→tabs/tabStops), includeIfEmpty (control flag) — these map field→XML but XML→a different field, breaking the 1:1 round-trip assumption.\",\n },\n];\n\nexport function findFieldSpec(id: string): DescriptorFieldSpec | undefined {\n return FIELD_SPECS.find((s) => s.id === id);\n}\n"],"mappings":";;;;;;AAuBA,SAAgBA,YACd,MACA,OACA,KACoB;CACpB,OAAO,KAAK,UAAU,OAAO,GAAG;AAClC;;AAKA,SAAgBC,QACd,MACA,IACA,KACS;CACT,OAAO,KAAK,MAAM,IAAI,GAAG;AAC3B;;;;;;;;;;;;;;ACbA,SAAgB,YAAY,MAAmD;CAC7E,MAAM,eAAe,IAAI,IAAI,KAAK,eAAe;CACjD,MAAM,WAAW,IAAI,IAAI,KAAK,WAAW;CACzC,MAAM,WAAW,IAAI,IAAI,KAAK,WAAW;CACzC,OAAO;EACL,aAAa,KAAK,gBAAgB,QAAQ,MAAM,CAAC,SAAS,IAAI,CAAC,CAAC;EAChE,aAAa,KAAK,YAAY,QAAQ,MAAM,CAAC,aAAa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ACd,IAAI,CAAC,UAAU,GAAG,IAAI,GAAG,EAAE,GAAG,OAAO;CAEvC,OAAO;AACT;;;;;;;;AC5GA,MAAa,cAA8C,CACzD;CACE,IAAI;CACJ,kBAAkB;CAKlB,eAAe,CAAC,kBAAkB;CAClC,iBAAiB;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CAEA,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CAEA,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,eAAe;EACb,OAAO;EACP,aAAa;EACb,SAAS;EACT,SAAS;EACT,UAAU;EACV,aAAa;EACb,gBAAgB;EAChB,UAAU;EACV,aAAa;EACb,SAAS;EACT,UAAU;EACV,UAAU;EACV,eAAe;EACf,YAAY;EACZ,UAAU;EACV,SAAS;CACX;CACA,OACE;AACJ,GACA;CACE,IAAI;CACJ,kBAAkB;CAClB,iBAAiB;EACf;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CAEA,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CAEA,aAAa;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,eAAe;EACb,SAAS;EACT,WAAW;EACX,SAAS;GAAE,QAAQ;GAAK,OAAO;GAAK,MAAM;GAAK,UAAU;EAAO;EAChE,QAAQ;GAAE,MAAM;GAAK,WAAW;EAAI;EACpC,UAAU;EACV,WAAW;EACX,cAAc;EACd,mBAAmB;EACnB,QAAQ,EAAE,QAAQ;GAAE,OAAO;GAAU,OAAO;GAAU,MAAM;GAAG,OAAO;EAAE,EAAE;EAC1E,SAAS;GAAE,MAAM;GAAU,MAAM;EAAQ;EACzC,UAAU,CAAC;GAAE,UAAU;GAAK,MAAM;EAAO,CAAC;EAC1C,WAAW;GAAE,WAAW;GAAU,OAAO;EAAE;EAC3C,cAAc;EACd,eAAe;CACjB;CACA,eAAe;EAAC;EAAiB;EAAgB;EAAe;CAAgB;CAChF,OACE;AAEJ,CACF;AAEA,SAAgB,cAAc,IAA6C;CACzE,OAAO,YAAY,MAAM,MAAM,EAAE,OAAO,EAAE;AAC5C"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $ as ColorStyleLabelOptions, $a as SchemeColorOptions, $i as FillOptions, $n as createGroupFill, $r as TextShapePreset, $t as pickNonVisualDrawingProperties, A as patternFillDesc, Aa as PatternFillOptions, Ai as PresetDash, An as parseTableStyle, Ar as DEFAULT_SHADOW_BLUR_RADIUS, At as AnimateOneByOneOptions, B as solidFillDesc, Ba as createGradientFill, Bi as ShapeType, Bn as Transform2DOptions, Br as TextFieldOptions, Bt as createAdjustList, C as pictureLockingDesc, Ca as InnerShadowEffectOptions, Ci as createScene3D, Cn as TableStyleListOptions, Cr as BulletCharOptions, Ct as createLayoutDefinitionHeader, D as fillDesc, Da as BlendMode, Di as OutlineFillProperties, Dn as ThemeableLineStyleOptions, Dr as BulletStyleOptions, Dt as AdjustListOptions, E as emitFillXml, Ea as createGlowEffect, Ei as LineJoin, En as TableTextStyleOptions, Er as BulletPictureOptions, Et as createStyleDefinitionHeaderList, F as parseColorChoiceElement, Fa as GradientStop, Fi as LineEndWidth, Fn as scene3DDesc, Fr as TabStopOptions, Ft as MaxChildrenOptions, G as DiagramTextPropertiesOptions, Ga as createTileInfo, Gi as PathCommand, Gn as BlipFillOptions, Gr as TextTabAlignment, Gt as createOrgChart, H as systemColorDesc, Ha as TileAlignment, Hi as ConnectionSite, Hn as createTransform2D, Hr as TextHyperlinkOptions, Ht as createAnimationLevel, I as presetColorDesc, Ia as LinearShadeOptions, Ii as createLineEnd, In as shape3DDesc, Ir as TextAlignment, It as OrgChartOptions, J as createDiagramTextProperties, Ja as createSolidFill, Ji as createCustomGeometry, Jn as BlipOptions, Jr as FlatTextOptions, Jt as NonVisualContentPartPropertiesOptions, K as createDiagramExtensionList, Ka as SolidFillOptions, Ki as PathFillMode, Kn as createBlipFill, Kr as UnderlineStyle, Kt as createPreferredChildren, L as rgbColorDesc, La as PathShade, Li as DashStop, Ln as StyleMatrixReferenceOptions, Lr as TextBreakOptions, Lt as PreferredChildrenOptions, M as hslColorDesc, Ma as createPatternFill, Mi as LineEndLength, Mn as Cell3DOptions, Mr as DEFAULT_SHADOW_DISTANCE, Mt as AnimationLevelOptions, N as isPlainRgbColor, Na as GradientFillOptions, Ni as LineEndOptions, Nn as bevelDesc, Nr as RunFont, Nt as HierBranch, O as findFillChild, Oa as FillOverlayEffectOptions, Oi as OutlineOptions, On as createTableStyle, Or as DEFAULT_OUTLINE_WIDTH, Ot as AdjustOptions, P as parseColorChoice, Pa as GradientShadeOptions, Pi as LineEndType, Pn as cell3DDesc, Pr as StrikeStyle, Pt as HierBranchOptions, Q as ColorMethod, Qa as SchemeColor, Qi as BlipFillMediaData, Qn as stringifyLineProperties, Qr as TextHorzOverflow, Qt as parseNonVisualDrawingProperties, R as scRgbColorDesc, Ra as PathShadeOptions, Ri as createCustomDash, Rn as BlackWhiteMode, Rr as TextCapitalization, Rt as PresentationLayoutVariablesOptions, S as groupLockingDesc, Sa as createOuterShadowEffect, Si as Vector3D, Sn as TablePartStyleOptions, Sr as BulletAutoNumOptions, St as createColorsDefinitionHeaderList, T as effectListDesc, Ta as GlowEffectOptions, Ti as LineCap, Tn as TableStyleRegion, Tr as BulletOptions, Tt as createStyleDefinitionHeader, U as DiagramExtensionListOptions, Ua as TileFlipMode, Ui as CustomGeometryOptions, Un as stringifyStretch, Ur as TextParagraphPropertiesOptions, Ut as createHierBranch, V as stringifyColorChoice, Va as createGradientStop, Vi as stringifyPresetGeometry, Vn as createGroupTransform2D, Vr as TextFont, Vt as createAnimateOneByOne, W as DiagramExtensionOptions, Wa as TileOptions, Wi as GeomRect, Wn as createExtensionList, Wr as TextRunOptions, Wt as createMaxChildren, X as createDiagramRelationshipIds, Xa as SystemColorOptions, Xi as stringifyAdjustmentValues, Xn as createSoftEdgeEffect, Xr as PresetTextShapeOptions, Xt as stringifyNonVisualContentPartProperties, Y as DiagramRelationshipIdsOptions, Ya as SystemColor, Yi as GeometryGuide, Yn as createBlip, Yr as NormalAutofitOptions, Yt as parseNonVisualContentPartProperties, Z as ColorListOptions, Za as createSystemColor, Zi as BlipFillConfigOptions, Zn as outlineDesc, Zr as TextBodyWrapping, Zt as NonVisualDrawingPropertiesOptions, _ as transform2DDesc, _a as PresetShadow, _i as CameraOptions, _n as OnOffStyleType, _r as stringifyTextListStyleTag, _t as LayoutDefinitionHeaderListOptions, a as BlipDescriptorOptions, aa as EffectContainer, ai as parseBodyProperties, an as ContentPartLockingOptions, ao as PresetColor, ar as readParagraphProperties, at as createEffectColorList, b as connectorLockingDesc, ba as OuterShadowEffectOptions, bi as Scene3DOptions, bn as TableCellStyleOptions, br as textStylesDesc, bt as StyleDefinitionHeaderOptions, c as sourceRectangleDesc, ca as BlipEffectsOptions, ci as shapePropertiesDesc, cn as PictureLockingOptions, co as HslColorOptions, cr as buildHyperlinkElement, ct as createStyleLabel, d as tileDesc, da as EffectExtent, di as createShape3D, dn as createContentPartLocking, do as createColorTransforms, dr as runPropertiesDesc, dt as createTextLineColorList, ea as GradientStopOptions, ei as TextVertOverflow, en as stringifyNonVisualDrawingProperties, eo as createSchemeColor, er as createNoFill, et as DiagramStyleOptions, f as stringifyTextRun, fa as EffectListOptions, fi as BevelOptions, fn as createGraphicFrameLocking, fr as stringifyRunProperties, ft as ColorsDefinitionHeaderListOptions, g as groupTransform2DDesc, ga as createReflectionEffect, gi as BackdropOptions, gn as CompoundLineType, gr as parseTextStyles, gt as DiagramNameOptions, h as groupShapePropertiesDesc, ha as ReflectionEffectOptions, hi as createBottomBevel, hn as createShapeLocking, hr as TextStylesOptions, ht as DiagramDescriptionOptions, i as presentationLayoutVariablesDesc, ia as createSourceRectangle, ii as createBodyProperties, in as ConnectorLockingOptions, io as createRgbColor, ir as paragraphDesc, it as createDiagramStyle, j as emitColorChoice, ja as PresetPattern, ji as createOutline, jn as parseTableStyleList, jr as DEFAULT_SHADOW_DIRECTION, jt as AnimationLevel, k as gradientFillDesc, ka as createFillOverlayEffect, ki as PenAlignment, kn as createTableStyleList, kr as DEFAULT_SHADOW_ALPHA, kt as AnimateOneByOne, l as stretchDesc, la as createBlipEffects, li as PresetMaterial, ln as ShapeLockingOptions, lo as createHslColor, lr as readHyperlink, lt as createTextEffectColorList, m as GroupShapePropertiesOptions, ma as createEffectList, mi as createBevel, mn as createPictureLocking, mr as TextListStyleOptions, mt as DiagramCategoryOptions, n as diagramRelationshipIdsDesc, na as extractBlipFillMedia, ni as VerticalAnchor, nn as parseEndpointConnection, no as createScRgbColor, nr as textBodyDesc, nt as HueDirection, o as blipDesc, oa as EffectDagOptions, oi as ShapePropertiesExtensionOptions, on as GraphicFrameLockingOptions, oo as PresetColorOptions, or as stringifyParagraphPropertiesElement, ot as createFillColorList, p as textRunDesc, pa as calculateEffectExtent, pi as BevelPreset, pn as createGroupLocking, pr as DEFAULT_TEXT_STYLES, pt as ColorsDefinitionHeaderOptions, q as createDiagramShape3D, qa as createColorElement, qi as PathOptions, qn as BlipCompression, qr as BodyPropertiesOptions, qt as createPresentationLayoutVariables, r as diagramStyleDesc, ra as SourceRectangleOptions, ri as bodyPropertiesDesc, rn as stringifyEndpointConnection, ro as RgbColorOptions, rr as ParagraphDescriptorOptions, rt as StyleMatrixIndex, s as blipFillDesc, sa as createEffectDag, si as ShapePropertiesOptions, sn as GroupLockingOptions, so as createPresetColor, sr as Mutable, st as createLineColorList, t as diagramExtensionListDesc, ta as buildFill, ti as TextVertical, tn as EndpointConnectionOptions, to as ScRgbColorOptions, tr as TextBodyOptions, tt as FontCollectionIndex, u as stringifyBlipEffects, ua as BlurEffectOptions, ui as Shape3DOptions, un as createConnectorLocking, uo as ColorTransformOptions, ur as registerHyperlink, ut as createTextFillColorList, v as customGeometryDesc, va as PresetShadowEffectOptions, vi as LightRigOptions, vn as TableBackgroundStyleOptions, vr as stringifyTextStyles, vt as LayoutDefinitionHeaderOptions, w as shapeLockingDesc, wa as createInnerShadowEffect, wi as CompoundLine, wn as TableStyleOptions, wr as BulletNoneOption, wt as createLayoutDefinitionHeaderList, x as graphicFrameLockingDesc, xa as RectAlignment, xi as SphereCoords, xn as TableFontReferenceOptions, xr as AutoNumberFormat, xt as createColorsDefinitionHeader, y as presetGeometryDesc, ya as createPresetShadowEffect, yi as Point3D, yn as TableCellBorderOptions, yr as textListStyleDesc, yt as StyleDefinitionHeaderListOptions, z as schemeColorDesc, za as RelativeRect, zi as PresetGeometryOptions, zn as GroupTransform2DOptions, zr as TextCharacterPropertiesOptions, zt as createAdjust } from "../index-DPkf_CtG.mjs";
|
|
2
|
+
export { type AdjustListOptions, type AdjustOptions, type AnimateOneByOne, type AnimateOneByOneOptions, type AnimationLevel, type AnimationLevelOptions, AutoNumberFormat, type BackdropOptions, type BevelOptions, type BevelPreset, type BlackWhiteMode, BlendMode, type BlipCompression, BlipDescriptorOptions, type BlipEffectsOptions, type BlipFillConfigOptions, type BlipFillMediaData, type BlipFillOptions, type BlipOptions, type BlurEffectOptions, BodyPropertiesOptions, BulletAutoNumOptions, BulletCharOptions, BulletNoneOption, BulletOptions, BulletPictureOptions, BulletStyleOptions, type CameraOptions, Cell3DOptions, type ColorListOptions, type ColorMethod, type ColorStyleLabelOptions, type ColorTransformOptions, type ColorsDefinitionHeaderListOptions, type ColorsDefinitionHeaderOptions, type CompoundLine, type CompoundLineType, type ConnectionSite, type ConnectorLockingOptions, type ContentPartLockingOptions, type CustomGeometryOptions, DEFAULT_OUTLINE_WIDTH, DEFAULT_SHADOW_ALPHA, DEFAULT_SHADOW_BLUR_RADIUS, DEFAULT_SHADOW_DIRECTION, DEFAULT_SHADOW_DISTANCE, DEFAULT_TEXT_STYLES, type DashStop, type DiagramCategoryOptions, type DiagramDescriptionOptions, type DiagramExtensionListOptions, type DiagramExtensionOptions, type DiagramNameOptions, type DiagramRelationshipIdsOptions, type DiagramStyleOptions, type DiagramTextPropertiesOptions, type EffectContainer, type EffectDagOptions, type EffectExtent, type EffectListOptions, type EndpointConnectionOptions, type FillOptions, type FillOverlayEffectOptions, FlatTextOptions, FontCollectionIndex, type GeomRect, type GeometryGuide, type GlowEffectOptions, type GradientFillOptions, type GradientShadeOptions, type GradientStop, type GradientStopOptions, type GraphicFrameLockingOptions, type GroupLockingOptions, GroupShapePropertiesOptions, type GroupTransform2DOptions, type HierBranch, type HierBranchOptions, type HslColorOptions, type HueDirection, type InnerShadowEffectOptions, type LayoutDefinitionHeaderListOptions, type LayoutDefinitionHeaderOptions, type LightRigOptions, type LineCap, type LineEndLength, type LineEndOptions, type LineEndType, type LineEndWidth, type LineJoin, type LinearShadeOptions, type MaxChildrenOptions, Mutable, type NonVisualContentPartPropertiesOptions, type NonVisualDrawingPropertiesOptions, NormalAutofitOptions, type OnOffStyleType, type OrgChartOptions, type OuterShadowEffectOptions, type OutlineFillProperties, type OutlineOptions, ParagraphDescriptorOptions, type PathCommand, type PathFillMode, type PathOptions, type PathShade, type PathShadeOptions, type PatternFillOptions, type PenAlignment, type PictureLockingOptions, type Point3D, type PreferredChildrenOptions, type PresentationLayoutVariablesOptions, PresetColor, type PresetColorOptions, type PresetDash, type PresetGeometryOptions, type PresetMaterial, type PresetPattern, type PresetShadow, type PresetShadowEffectOptions, PresetTextShapeOptions, type RectAlignment, type ReflectionEffectOptions, type RelativeRect, type RgbColorOptions, RunFont, type ScRgbColorOptions, type Scene3DOptions, SchemeColor, type SchemeColorOptions, type Shape3DOptions, type ShapeLockingOptions, ShapePropertiesExtensionOptions, ShapePropertiesOptions, type ShapeType, type SolidFillOptions, type SourceRectangleOptions, type SphereCoords, StrikeStyle, type StyleDefinitionHeaderListOptions, type StyleDefinitionHeaderOptions, type StyleMatrixIndex, type StyleMatrixReferenceOptions, SystemColor, type SystemColorOptions, TabStopOptions, type TableBackgroundStyleOptions, type TableCellBorderOptions, type TableCellStyleOptions, type TableFontReferenceOptions, type TablePartStyleOptions, type TableStyleListOptions, type TableStyleOptions, type TableStyleRegion, type TableTextStyleOptions, TextAlignment, TextBodyOptions, TextBodyWrapping, TextBreakOptions, TextCapitalization, TextCharacterPropertiesOptions, TextFieldOptions, TextFont, TextHorzOverflow, TextHyperlinkOptions, TextListStyleOptions, TextParagraphPropertiesOptions, TextRunOptions, TextShapePreset, TextStylesOptions, TextTabAlignment, TextVertOverflow, TextVertical, type ThemeableLineStyleOptions, type TileAlignment, type TileFlipMode, type TileOptions, type Transform2DOptions, UnderlineStyle, type Vector3D, VerticalAnchor, bevelDesc, blipDesc, blipFillDesc, bodyPropertiesDesc, buildFill, buildHyperlinkElement, calculateEffectExtent, cell3DDesc, connectorLockingDesc, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBodyProperties, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createConnectorLocking, createContentPartLocking, createCustomDash, createCustomGeometry, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList, createExtensionList, createFillColorList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefinitionHeader, createLayoutDefinitionHeaderList, createLineColorList, createLineEnd, createMaxChildren, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPreferredChildren, createPresentationLayoutVariables, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefinitionHeader, createStyleDefinitionHeaderList, createStyleLabel, createSystemColor, createTableStyle, createTableStyleList, createTextEffectColorList, createTextFillColorList, createTextLineColorList, createTileInfo, createTransform2D, customGeometryDesc, diagramExtensionListDesc, diagramRelationshipIdsDesc, diagramStyleDesc, effectListDesc, emitColorChoice, emitFillXml, extractBlipFillMedia, fillDesc, findFillChild, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupShapePropertiesDesc, groupTransform2DDesc, hslColorDesc, isPlainRgbColor, outlineDesc, paragraphDesc, parseBodyProperties, parseColorChoice, parseColorChoiceElement, parseEndpointConnection, parseNonVisualContentPartProperties, parseNonVisualDrawingProperties, parseTableStyle, parseTableStyleList, parseTextStyles, patternFillDesc, pickNonVisualDrawingProperties, pictureLockingDesc, presentationLayoutVariablesDesc, presetColorDesc, presetGeometryDesc, readHyperlink, readParagraphProperties, registerHyperlink, rgbColorDesc, runPropertiesDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, shapePropertiesDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyBlipEffects, stringifyColorChoice, stringifyEndpointConnection, stringifyLineProperties, stringifyNonVisualContentPartProperties, stringifyNonVisualDrawingProperties, stringifyParagraphPropertiesElement, stringifyPresetGeometry, stringifyRunProperties, stringifyStretch, stringifyTextListStyleTag, stringifyTextRun, stringifyTextStyles, systemColorDesc, textBodyDesc, textListStyleDesc, textRunDesc, textStylesDesc, tileDesc, transform2DDesc };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $ as createAdjustList, $n as createSystemColor, $t as createGroupFill, A as groupShapePropertiesDesc, An as createEffectColorList, At as createCustomGeometry, B as shapeLockingDesc, Bn as emitColorChoice, Bt as createSoftEdgeEffect, C as createBodyProperties, Cn as bevelDesc, Ct as parseTableStyleList, D as DEFAULT_SHADOW_BLUR_RADIUS, Dn as FontCollectionIndex, Dt as createBlipFill, E as DEFAULT_SHADOW_ALPHA, En as shape3DDesc, Et as stringifyStretch, F as presetGeometryDesc, Fn as createTextFillColorList, Ft as createBottomBevel, G as createDiagramRelationshipIds, Gn as presetColorDesc, Gt as createGlowEffect, H as createDiagramExtensionList, Hn as isPlainRgbColor, Ht as createPresetShadowEffect, I as connectorLockingDesc, In as createTextLineColorList, It as createScene3D, J as createLayoutDefinitionHeader, Jn as schemeColorDesc, Jt as outlineDesc, K as createColorsDefinitionHeader, Kn as rgbColorDesc, Kt as BlendMode, L as graphicFrameLockingDesc, Lt as createEffectDag, M as groupTransform2DDesc, Mn as createLineColorList, Mt as stringifyAdjustmentValues, N as transform2DDesc, Nn as createStyleLabel, Nt as createShape3D, O as DEFAULT_SHADOW_DIRECTION, Ot as createBlip, P as customGeometryDesc, Pn as createTextEffectColorList, Pt as createBevel, Q as createAdjust, Qn as SystemColor, Qt as createCustomDash, R as groupLockingDesc, Rn as createColorElement, Rt as calculateEffectExtent, S as bodyPropertiesDesc, Sn as createRgbColor, St as parseTableStyle, T as DEFAULT_OUTLINE_WIDTH, Tn as scene3DDesc, Tt as createTransform2D, U as createDiagramShape3D, Un as parseColorChoice, Ut as createOuterShadowEffect, V as effectListDesc, Vn as hslColorDesc, Vt as createReflectionEffect, W as createDiagramTextProperties, Wn as parseColorChoiceElement, Wt as createInnerShadowEffect, X as createStyleDefinitionHeader, Xn as stringifyColorChoice, Xt as createOutline, Y as createLayoutDefinitionHeaderList, Yn as solidFillDesc, Yt as stringifyLineProperties, Z as createStyleDefinitionHeaderList, Zn as systemColorDesc, Zt as createLineEnd, _ as buildHyperlinkElement, _n as stretchDesc, _t as createGroupLocking, a as textBodyDesc, an as extractBlipFillMedia, at as createPreferredChildren, b as runPropertiesDesc, bn as createScRgbColor, bt as createTableStyle, c as stringifyTextListStyleTag, cn as findFillChild, ct as stringifyNonVisualContentPartProperties, d as textStylesDesc, dn as createTileInfo, dt as stringifyNonVisualDrawingProperties, en as createPatternFill, er as SchemeColor, et as createAnimateOneByOne, f as paragraphDesc, fn as createSourceRectangle, ft as parseEndpointConnection, g as textRunDesc, gn as sourceRectangleDesc, gt as createGraphicFrameLocking, h as stringifyTextRun, hn as blipFillDesc, ht as createContentPartLocking, i as presentationLayoutVariablesDesc, in as buildFill, ir as createColorTransforms, it as createOrgChart, j as shapePropertiesDesc, jn as createFillColorList, jt as stringifyPresetGeometry, k as DEFAULT_SHADOW_DISTANCE, kn as createDiagramStyle, kt as createExtensionList, l as stringifyTextStyles, ln as gradientFillDesc, lt as parseNonVisualDrawingProperties, m as stringifyParagraphPropertiesElement, mn as blipDesc, mt as createConnectorLocking, n as diagramRelationshipIdsDesc, nn as createGradientStop, nr as PresetColor, nt as createHierBranch, o as DEFAULT_TEXT_STYLES, on as emitFillXml, ot as createPresentationLayoutVariables, p as readParagraphProperties, pn as createBlipEffects, pt as stringifyEndpointConnection, q as createColorsDefinitionHeaderList, qn as scRgbColorDesc, qt as createFillOverlayEffect, r as diagramStyleDesc, rn as createNoFill, rr as createPresetColor, rt as createMaxChildren, s as parseTextStyles, sn as fillDesc, st as parseNonVisualContentPartProperties, t as diagramExtensionListDesc, tn as createGradientFill, tr as createSchemeColor, tt as createAnimationLevel, u as textListStyleDesc, un as patternFillDesc, ut as pickNonVisualDrawingProperties, v as readHyperlink, vn as stringifyBlipEffects, vt as createPictureLocking, w as parseBodyProperties, wn as cell3DDesc, wt as createGroupTransform2D, x as stringifyRunProperties, xn as createHslColor, xt as createTableStyleList, y as registerHyperlink, yn as tileDesc, yt as createShapeLocking, z as pictureLockingDesc, zn as createSolidFill, zt as createEffectList } from "../drawing-BCAyrCCw.mjs";
|
|
2
|
+
export { BlendMode, DEFAULT_OUTLINE_WIDTH, DEFAULT_SHADOW_ALPHA, DEFAULT_SHADOW_BLUR_RADIUS, DEFAULT_SHADOW_DIRECTION, DEFAULT_SHADOW_DISTANCE, DEFAULT_TEXT_STYLES, FontCollectionIndex, PresetColor, SchemeColor, SystemColor, bevelDesc, blipDesc, blipFillDesc, bodyPropertiesDesc, buildFill, buildHyperlinkElement, calculateEffectExtent, cell3DDesc, connectorLockingDesc, createAdjust, createAdjustList, createAnimateOneByOne, createAnimationLevel, createBevel, createBlip, createBlipEffects, createBlipFill, createBodyProperties, createBottomBevel, createColorElement, createColorTransforms, createColorsDefinitionHeader, createColorsDefinitionHeaderList, createConnectorLocking, createContentPartLocking, createCustomDash, createCustomGeometry, createDiagramExtensionList, createDiagramRelationshipIds, createDiagramShape3D, createDiagramStyle, createDiagramTextProperties, createEffectColorList, createEffectDag, createEffectList, createExtensionList, createFillColorList, createFillOverlayEffect, createGlowEffect, createGradientFill, createGradientStop, createGraphicFrameLocking, createGroupFill, createGroupLocking, createGroupTransform2D, createHierBranch, createHslColor, createInnerShadowEffect, createLayoutDefinitionHeader, createLayoutDefinitionHeaderList, createLineColorList, createLineEnd, createMaxChildren, createNoFill, createOrgChart, createOuterShadowEffect, createOutline, createPatternFill, createPictureLocking, createPreferredChildren, createPresentationLayoutVariables, createPresetColor, createPresetShadowEffect, createReflectionEffect, createRgbColor, createScRgbColor, createScene3D, createSchemeColor, createShape3D, createShapeLocking, createSoftEdgeEffect, createSolidFill, createSourceRectangle, createStyleDefinitionHeader, createStyleDefinitionHeaderList, createStyleLabel, createSystemColor, createTableStyle, createTableStyleList, createTextEffectColorList, createTextFillColorList, createTextLineColorList, createTileInfo, createTransform2D, customGeometryDesc, diagramExtensionListDesc, diagramRelationshipIdsDesc, diagramStyleDesc, effectListDesc, emitColorChoice, emitFillXml, extractBlipFillMedia, fillDesc, findFillChild, gradientFillDesc, graphicFrameLockingDesc, groupLockingDesc, groupShapePropertiesDesc, groupTransform2DDesc, hslColorDesc, isPlainRgbColor, outlineDesc, paragraphDesc, parseBodyProperties, parseColorChoice, parseColorChoiceElement, parseEndpointConnection, parseNonVisualContentPartProperties, parseNonVisualDrawingProperties, parseTableStyle, parseTableStyleList, parseTextStyles, patternFillDesc, pickNonVisualDrawingProperties, pictureLockingDesc, presentationLayoutVariablesDesc, presetColorDesc, presetGeometryDesc, readHyperlink, readParagraphProperties, registerHyperlink, rgbColorDesc, runPropertiesDesc, scRgbColorDesc, scene3DDesc, schemeColorDesc, shape3DDesc, shapeLockingDesc, shapePropertiesDesc, solidFillDesc, sourceRectangleDesc, stretchDesc, stringifyAdjustmentValues, stringifyBlipEffects, stringifyColorChoice, stringifyEndpointConnection, stringifyLineProperties, stringifyNonVisualContentPartProperties, stringifyNonVisualDrawingProperties, stringifyParagraphPropertiesElement, stringifyPresetGeometry, stringifyRunProperties, stringifyStretch, stringifyTextListStyleTag, stringifyTextRun, stringifyTextStyles, systemColorDesc, textBodyDesc, textListStyleDesc, textRunDesc, textStylesDesc, tileDesc, transform2DDesc };
|