odf.js 6.1.2 → 6.2.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 +44 -1
- package/dist/{codec-lz3vgEos.d.cts → codec-B72LApRl.d.cts} +3 -0
- package/dist/{codec-CyJ4gSH2.d.ts → codec-rbZGlr37.d.ts} +3 -0
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/index.cjs +17 -0
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +4 -1
- package/dist/ns-C14w-Zhf.d.cts +42 -0
- package/dist/ns-CTyKJZeF.d.ts +42 -0
- package/dist/ooo1/ns.cjs +74 -0
- package/dist/ooo1/ns.d.cts +2 -0
- package/dist/ooo1/ns.d.ts +2 -0
- package/dist/ooo1/ns.js +69 -0
- package/dist/ooo1/properties.cjs +405 -0
- package/dist/ooo1/properties.d.cts +7 -0
- package/dist/ooo1/properties.d.ts +7 -0
- package/dist/ooo1/properties.js +403 -0
- package/dist/ooo1/read.cjs +39 -0
- package/dist/ooo1/read.d.cts +2 -0
- package/dist/ooo1/read.d.ts +2 -0
- package/dist/ooo1/read.js +31 -0
- package/dist/ooo1/transform.cjs +402 -0
- package/dist/ooo1/transform.d.cts +2 -0
- package/dist/ooo1/transform.d.ts +2 -0
- package/dist/ooo1/transform.js +401 -0
- package/dist/read-3yy5EFV_.d.ts +17 -0
- package/dist/read-RFqq4ckj.d.cts +17 -0
- package/dist/transform-DRr76JEu.d.ts +5 -0
- package/dist/transform-SDysw9wx.d.cts +5 -0
- package/package.json +9 -3
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
//#region src/ooo1/properties.ts
|
|
2
|
+
const PROPERTIES_ELEMENT_TAG = {
|
|
3
|
+
graphic: "style:graphic-properties",
|
|
4
|
+
"drawing-page": "style:drawing-page-properties",
|
|
5
|
+
"page-layout": "style:page-layout-properties",
|
|
6
|
+
"header-footer": "style:header-footer-properties",
|
|
7
|
+
text: "style:text-properties",
|
|
8
|
+
paragraph: "style:paragraph-properties",
|
|
9
|
+
ruby: "style:ruby-properties",
|
|
10
|
+
section: "style:section-properties",
|
|
11
|
+
table: "style:table-properties",
|
|
12
|
+
"table-column": "style:table-column-properties",
|
|
13
|
+
"table-row": "style:table-row-properties",
|
|
14
|
+
"table-cell": "style:table-cell-properties",
|
|
15
|
+
"list-level": "style:list-level-properties",
|
|
16
|
+
chart: "style:chart-properties"
|
|
17
|
+
};
|
|
18
|
+
const PROPERTY_TYPES_BY_FAMILY = /* @__PURE__ */ new Map([
|
|
19
|
+
["graphic", [
|
|
20
|
+
"graphic",
|
|
21
|
+
"paragraph",
|
|
22
|
+
"text"
|
|
23
|
+
]],
|
|
24
|
+
["presentation", [
|
|
25
|
+
"graphic",
|
|
26
|
+
"paragraph",
|
|
27
|
+
"text"
|
|
28
|
+
]],
|
|
29
|
+
["drawing-page", ["drawing-page"]],
|
|
30
|
+
["text", ["text"]],
|
|
31
|
+
["paragraph", ["paragraph", "text"]],
|
|
32
|
+
["ruby", ["ruby"]],
|
|
33
|
+
["section", ["section"]],
|
|
34
|
+
["table", ["table"]],
|
|
35
|
+
["table-column", ["table-column"]],
|
|
36
|
+
["table-row", ["table-row"]],
|
|
37
|
+
["table-cell", [
|
|
38
|
+
"table-cell",
|
|
39
|
+
"paragraph",
|
|
40
|
+
"text"
|
|
41
|
+
]],
|
|
42
|
+
["chart", [
|
|
43
|
+
"chart",
|
|
44
|
+
"graphic",
|
|
45
|
+
"paragraph",
|
|
46
|
+
"text"
|
|
47
|
+
]]
|
|
48
|
+
]);
|
|
49
|
+
const PROPERTY_TYPES_BY_CONTAINER_TAG = /* @__PURE__ */ new Map([
|
|
50
|
+
["style:page-master", ["page-layout"]],
|
|
51
|
+
["style:header-style", ["header-footer"]],
|
|
52
|
+
["style:footer-style", ["header-footer"]],
|
|
53
|
+
["text:list-level-style-number", ["list-level"]],
|
|
54
|
+
["text:list-level-style-bullet", ["list-level"]],
|
|
55
|
+
["text:list-level-style-image", ["list-level"]],
|
|
56
|
+
["text:outline-level-style", ["list-level"]],
|
|
57
|
+
["number:number-style", ["text"]],
|
|
58
|
+
["number:currency-style", ["text"]],
|
|
59
|
+
["number:percentage-style", ["text"]],
|
|
60
|
+
["number:date-style", ["text"]],
|
|
61
|
+
["number:time-style", ["text"]],
|
|
62
|
+
["number:boolean-style", ["text"]],
|
|
63
|
+
["number:text-style", ["text"]]
|
|
64
|
+
]);
|
|
65
|
+
const ATTRIBUTES_BY_PROPERTY_TYPE = /* @__PURE__ */ new Map([
|
|
66
|
+
["text", /* @__PURE__ */ new Set([
|
|
67
|
+
"fo:color",
|
|
68
|
+
"fo:country",
|
|
69
|
+
"fo:font-family",
|
|
70
|
+
"fo:font-size",
|
|
71
|
+
"fo:font-style",
|
|
72
|
+
"fo:font-variant",
|
|
73
|
+
"fo:font-weight",
|
|
74
|
+
"fo:hyphenate",
|
|
75
|
+
"fo:hyphenation-push-char-count",
|
|
76
|
+
"fo:hyphenation-remain-char-count",
|
|
77
|
+
"fo:language",
|
|
78
|
+
"fo:letter-spacing",
|
|
79
|
+
"fo:script",
|
|
80
|
+
"fo:text-shadow",
|
|
81
|
+
"fo:text-transform",
|
|
82
|
+
"style:country-asian",
|
|
83
|
+
"style:country-complex",
|
|
84
|
+
"style:font-charset",
|
|
85
|
+
"style:font-charset-asian",
|
|
86
|
+
"style:font-charset-complex",
|
|
87
|
+
"style:font-family-asian",
|
|
88
|
+
"style:font-family-complex",
|
|
89
|
+
"style:font-family-generic",
|
|
90
|
+
"style:font-family-generic-asian",
|
|
91
|
+
"style:font-family-generic-complex",
|
|
92
|
+
"style:font-name",
|
|
93
|
+
"style:font-name-asian",
|
|
94
|
+
"style:font-name-complex",
|
|
95
|
+
"style:font-pitch",
|
|
96
|
+
"style:font-pitch-asian",
|
|
97
|
+
"style:font-pitch-complex",
|
|
98
|
+
"style:font-relief",
|
|
99
|
+
"style:font-size-asian",
|
|
100
|
+
"style:font-size-complex",
|
|
101
|
+
"style:font-size-rel",
|
|
102
|
+
"style:font-size-rel-asian",
|
|
103
|
+
"style:font-size-rel-complex",
|
|
104
|
+
"style:font-style-asian",
|
|
105
|
+
"style:font-style-complex",
|
|
106
|
+
"style:font-style-name",
|
|
107
|
+
"style:font-style-name-asian",
|
|
108
|
+
"style:font-style-name-complex",
|
|
109
|
+
"style:font-weight-asian",
|
|
110
|
+
"style:font-weight-complex",
|
|
111
|
+
"style:language-asian",
|
|
112
|
+
"style:language-complex",
|
|
113
|
+
"style:letter-kerning",
|
|
114
|
+
"style:script-type",
|
|
115
|
+
"style:text-background-color",
|
|
116
|
+
"style:text-blinking",
|
|
117
|
+
"style:text-combine",
|
|
118
|
+
"style:text-combine-end-char",
|
|
119
|
+
"style:text-combine-start-char",
|
|
120
|
+
"style:text-emphasize",
|
|
121
|
+
"style:text-line-through-color",
|
|
122
|
+
"style:text-line-through-mode",
|
|
123
|
+
"style:text-line-through-style",
|
|
124
|
+
"style:text-line-through-text",
|
|
125
|
+
"style:text-line-through-text-style",
|
|
126
|
+
"style:text-line-through-type",
|
|
127
|
+
"style:text-line-through-width",
|
|
128
|
+
"style:text-outline",
|
|
129
|
+
"style:text-position",
|
|
130
|
+
"style:text-rotation-angle",
|
|
131
|
+
"style:text-rotation-scale",
|
|
132
|
+
"style:text-scale",
|
|
133
|
+
"style:text-underline-color",
|
|
134
|
+
"style:text-underline-mode",
|
|
135
|
+
"style:text-underline-style",
|
|
136
|
+
"style:text-underline-type",
|
|
137
|
+
"style:text-underline-width",
|
|
138
|
+
"style:use-window-font-color",
|
|
139
|
+
"text:condition",
|
|
140
|
+
"text:display",
|
|
141
|
+
"style:text-underline",
|
|
142
|
+
"style:text-crossing-out"
|
|
143
|
+
])],
|
|
144
|
+
["paragraph", /* @__PURE__ */ new Set([
|
|
145
|
+
"fo:background-color",
|
|
146
|
+
"fo:border",
|
|
147
|
+
"fo:border-bottom",
|
|
148
|
+
"fo:border-left",
|
|
149
|
+
"fo:border-right",
|
|
150
|
+
"fo:border-top",
|
|
151
|
+
"fo:break-after",
|
|
152
|
+
"fo:break-before",
|
|
153
|
+
"fo:hyphenation-keep",
|
|
154
|
+
"fo:hyphenation-ladder-count",
|
|
155
|
+
"fo:keep-together",
|
|
156
|
+
"fo:keep-with-next",
|
|
157
|
+
"fo:line-height",
|
|
158
|
+
"fo:margin",
|
|
159
|
+
"fo:margin-bottom",
|
|
160
|
+
"fo:margin-left",
|
|
161
|
+
"fo:margin-right",
|
|
162
|
+
"fo:margin-top",
|
|
163
|
+
"fo:orphans",
|
|
164
|
+
"fo:padding",
|
|
165
|
+
"fo:padding-bottom",
|
|
166
|
+
"fo:padding-left",
|
|
167
|
+
"fo:padding-right",
|
|
168
|
+
"fo:padding-top",
|
|
169
|
+
"fo:text-align",
|
|
170
|
+
"fo:text-align-last",
|
|
171
|
+
"fo:text-indent",
|
|
172
|
+
"fo:widows",
|
|
173
|
+
"style:auto-text-indent",
|
|
174
|
+
"style:background-transparency",
|
|
175
|
+
"style:border-line-width",
|
|
176
|
+
"style:border-line-width-bottom",
|
|
177
|
+
"style:border-line-width-left",
|
|
178
|
+
"style:border-line-width-right",
|
|
179
|
+
"style:border-line-width-top",
|
|
180
|
+
"style:contextual-spacing",
|
|
181
|
+
"style:font-independent-line-spacing",
|
|
182
|
+
"style:justify-single-word",
|
|
183
|
+
"style:line-break",
|
|
184
|
+
"style:line-height-at-least",
|
|
185
|
+
"style:line-spacing",
|
|
186
|
+
"style:master-page-name",
|
|
187
|
+
"style:page-number",
|
|
188
|
+
"style:punctuation-wrap",
|
|
189
|
+
"style:register-true",
|
|
190
|
+
"style:shadow",
|
|
191
|
+
"style:snap-to-layout-grid",
|
|
192
|
+
"style:tab-stop-distance",
|
|
193
|
+
"style:text-autospace",
|
|
194
|
+
"style:vertical-align",
|
|
195
|
+
"style:writing-mode",
|
|
196
|
+
"style:writing-mode-automatic",
|
|
197
|
+
"text:line-number",
|
|
198
|
+
"text:number-lines"
|
|
199
|
+
])],
|
|
200
|
+
["table-cell", /* @__PURE__ */ new Set([
|
|
201
|
+
"fo:background-color",
|
|
202
|
+
"fo:border",
|
|
203
|
+
"fo:border-bottom",
|
|
204
|
+
"fo:border-left",
|
|
205
|
+
"fo:border-right",
|
|
206
|
+
"fo:border-top",
|
|
207
|
+
"fo:padding",
|
|
208
|
+
"fo:padding-bottom",
|
|
209
|
+
"fo:padding-left",
|
|
210
|
+
"fo:padding-right",
|
|
211
|
+
"fo:padding-top",
|
|
212
|
+
"style:border-line-width",
|
|
213
|
+
"style:border-line-width-bottom",
|
|
214
|
+
"style:border-line-width-left",
|
|
215
|
+
"style:border-line-width-right",
|
|
216
|
+
"style:border-line-width-top",
|
|
217
|
+
"style:shadow",
|
|
218
|
+
"style:vertical-align",
|
|
219
|
+
"style:writing-mode"
|
|
220
|
+
])],
|
|
221
|
+
["graphic", /* @__PURE__ */ new Set([
|
|
222
|
+
"fo:background-color",
|
|
223
|
+
"fo:border",
|
|
224
|
+
"fo:border-bottom",
|
|
225
|
+
"fo:border-left",
|
|
226
|
+
"fo:border-right",
|
|
227
|
+
"fo:border-top",
|
|
228
|
+
"fo:margin",
|
|
229
|
+
"fo:margin-bottom",
|
|
230
|
+
"fo:margin-left",
|
|
231
|
+
"fo:margin-right",
|
|
232
|
+
"fo:margin-top",
|
|
233
|
+
"fo:padding",
|
|
234
|
+
"fo:padding-bottom",
|
|
235
|
+
"fo:padding-left",
|
|
236
|
+
"fo:padding-right",
|
|
237
|
+
"fo:padding-top",
|
|
238
|
+
"style:background-transparency",
|
|
239
|
+
"style:border-line-width",
|
|
240
|
+
"style:border-line-width-bottom",
|
|
241
|
+
"style:border-line-width-left",
|
|
242
|
+
"style:border-line-width-right",
|
|
243
|
+
"style:border-line-width-top",
|
|
244
|
+
"style:shadow",
|
|
245
|
+
"style:vertical-align",
|
|
246
|
+
"style:writing-mode"
|
|
247
|
+
])]
|
|
248
|
+
]);
|
|
249
|
+
const ELEMENTS_BY_PROPERTY_TYPE = /* @__PURE__ */ new Map([
|
|
250
|
+
["paragraph", /* @__PURE__ */ new Set([
|
|
251
|
+
"style:tab-stops",
|
|
252
|
+
"style:drop-cap",
|
|
253
|
+
"style:background-image"
|
|
254
|
+
])],
|
|
255
|
+
["table-cell", /* @__PURE__ */ new Set(["style:background-image"])],
|
|
256
|
+
["graphic", /* @__PURE__ */ new Set(["style:background-image"])]
|
|
257
|
+
]);
|
|
258
|
+
function propertyTypesForContainer(container) {
|
|
259
|
+
const byTag = PROPERTY_TYPES_BY_CONTAINER_TAG.get(container.tag);
|
|
260
|
+
if (byTag !== void 0) return byTag;
|
|
261
|
+
if (container.tag !== "style:style" && container.tag !== "style:default-style") return;
|
|
262
|
+
const family = container.attributes.find((attribute) => attribute.name === "style:family")?.value;
|
|
263
|
+
return family === void 0 ? void 0 : PROPERTY_TYPES_BY_FAMILY.get(family);
|
|
264
|
+
}
|
|
265
|
+
function routeTo(name, candidates, membership) {
|
|
266
|
+
for (const candidate of candidates) if (membership.get(candidate)?.has(name) === true) return candidate;
|
|
267
|
+
const first = candidates[0];
|
|
268
|
+
if (first === void 0) throw new Error("a style family must have at least one property type");
|
|
269
|
+
return first;
|
|
270
|
+
}
|
|
271
|
+
const UNDERLINE_EXPANSIONS = /* @__PURE__ */ new Map([
|
|
272
|
+
["single", { style: "solid" }],
|
|
273
|
+
["double", {
|
|
274
|
+
style: "solid",
|
|
275
|
+
type: "double"
|
|
276
|
+
}],
|
|
277
|
+
["bold", {
|
|
278
|
+
style: "solid",
|
|
279
|
+
width: "bold"
|
|
280
|
+
}],
|
|
281
|
+
["bold-dotted", {
|
|
282
|
+
style: "dotted",
|
|
283
|
+
width: "bold"
|
|
284
|
+
}],
|
|
285
|
+
["bold-dash", {
|
|
286
|
+
style: "dash",
|
|
287
|
+
width: "bold"
|
|
288
|
+
}],
|
|
289
|
+
["bold-long-dash", {
|
|
290
|
+
style: "long-dash",
|
|
291
|
+
width: "bold"
|
|
292
|
+
}],
|
|
293
|
+
["bold-dot-dash", {
|
|
294
|
+
style: "dot-dash",
|
|
295
|
+
width: "bold"
|
|
296
|
+
}],
|
|
297
|
+
["bold-dot-dot-dash", {
|
|
298
|
+
style: "dot-dot-dash",
|
|
299
|
+
width: "bold"
|
|
300
|
+
}],
|
|
301
|
+
["bold-wave", {
|
|
302
|
+
style: "wave",
|
|
303
|
+
width: "bold"
|
|
304
|
+
}],
|
|
305
|
+
["double-wave", {
|
|
306
|
+
style: "wave",
|
|
307
|
+
type: "double"
|
|
308
|
+
}]
|
|
309
|
+
]);
|
|
310
|
+
const LINE_THROUGH_EXPANSIONS = /* @__PURE__ */ new Map([
|
|
311
|
+
["single-line", { style: "solid" }],
|
|
312
|
+
["double-line", {
|
|
313
|
+
style: "solid",
|
|
314
|
+
type: "double"
|
|
315
|
+
}],
|
|
316
|
+
["thick-line", {
|
|
317
|
+
style: "solid",
|
|
318
|
+
width: "bold"
|
|
319
|
+
}],
|
|
320
|
+
["slash", {
|
|
321
|
+
style: "solid",
|
|
322
|
+
text: "/"
|
|
323
|
+
}],
|
|
324
|
+
["X", {
|
|
325
|
+
style: "solid",
|
|
326
|
+
text: "X"
|
|
327
|
+
}]
|
|
328
|
+
]);
|
|
329
|
+
function expandPropertyAttribute(attribute) {
|
|
330
|
+
if (attribute.name === "style:text-underline") {
|
|
331
|
+
const expansion = UNDERLINE_EXPANSIONS.get(attribute.value);
|
|
332
|
+
const out = [{
|
|
333
|
+
name: "style:text-underline-style",
|
|
334
|
+
value: expansion?.style ?? attribute.value
|
|
335
|
+
}];
|
|
336
|
+
if (expansion?.width !== void 0) out.push({
|
|
337
|
+
name: "style:text-underline-width",
|
|
338
|
+
value: expansion.width
|
|
339
|
+
});
|
|
340
|
+
if (expansion?.type !== void 0) out.push({
|
|
341
|
+
name: "style:text-underline-type",
|
|
342
|
+
value: expansion.type
|
|
343
|
+
});
|
|
344
|
+
return out;
|
|
345
|
+
}
|
|
346
|
+
if (attribute.name === "style:text-crossing-out") {
|
|
347
|
+
const expansion = LINE_THROUGH_EXPANSIONS.get(attribute.value);
|
|
348
|
+
const out = [{
|
|
349
|
+
name: "style:text-line-through-style",
|
|
350
|
+
value: expansion?.style ?? attribute.value
|
|
351
|
+
}];
|
|
352
|
+
if (expansion?.width !== void 0) out.push({
|
|
353
|
+
name: "style:text-line-through-width",
|
|
354
|
+
value: expansion.width
|
|
355
|
+
});
|
|
356
|
+
if (expansion?.type !== void 0) out.push({
|
|
357
|
+
name: "style:text-line-through-type",
|
|
358
|
+
value: expansion.type
|
|
359
|
+
});
|
|
360
|
+
if (expansion?.text !== void 0) out.push({
|
|
361
|
+
name: "style:text-line-through-text",
|
|
362
|
+
value: expansion.text
|
|
363
|
+
});
|
|
364
|
+
return out;
|
|
365
|
+
}
|
|
366
|
+
if (attribute.name === "fo:keep-with-next") return [{
|
|
367
|
+
name: "fo:keep-with-next",
|
|
368
|
+
value: attribute.value === "true" ? "always" : "auto"
|
|
369
|
+
}];
|
|
370
|
+
return [attribute];
|
|
371
|
+
}
|
|
372
|
+
function splitStyleProperties(properties, candidates) {
|
|
373
|
+
const attributesByType = /* @__PURE__ */ new Map();
|
|
374
|
+
const childrenByType = /* @__PURE__ */ new Map();
|
|
375
|
+
for (const attribute of properties.attributes) {
|
|
376
|
+
const target = routeTo(attribute.name, candidates, ATTRIBUTES_BY_PROPERTY_TYPE);
|
|
377
|
+
const bucket = attributesByType.get(target) ?? [];
|
|
378
|
+
bucket.push(...expandPropertyAttribute(attribute));
|
|
379
|
+
attributesByType.set(target, bucket);
|
|
380
|
+
}
|
|
381
|
+
for (const child of properties.children) {
|
|
382
|
+
if (child.type !== "element") continue;
|
|
383
|
+
const target = routeTo(child.tag, candidates, ELEMENTS_BY_PROPERTY_TYPE);
|
|
384
|
+
const bucket = childrenByType.get(target) ?? [];
|
|
385
|
+
bucket.push(child);
|
|
386
|
+
childrenByType.set(target, bucket);
|
|
387
|
+
}
|
|
388
|
+
const out = [];
|
|
389
|
+
for (const type of candidates) {
|
|
390
|
+
const attributes = attributesByType.get(type) ?? [];
|
|
391
|
+
const children = childrenByType.get(type) ?? [];
|
|
392
|
+
if (attributes.length === 0 && children.length === 0) continue;
|
|
393
|
+
out.push({
|
|
394
|
+
type: "element",
|
|
395
|
+
tag: PROPERTIES_ELEMENT_TAG[type],
|
|
396
|
+
attributes,
|
|
397
|
+
children
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
return out;
|
|
401
|
+
}
|
|
402
|
+
//#endregion
|
|
403
|
+
export { propertyTypesForContainer, splitStyleProperties };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_typed_odg_read = require("../typed/odg/read.cjs");
|
|
3
|
+
const require_typed_odp_read = require("../typed/odp/read.cjs");
|
|
4
|
+
const require_embedded = require("../embedded-BsO-SvtW.cjs");
|
|
5
|
+
const require_ooo1_transform = require("./transform.cjs");
|
|
6
|
+
//#region src/ooo1/read.ts
|
|
7
|
+
function readSxwContent(pkg, options = {}) {
|
|
8
|
+
return require_embedded.readOdtContent(require_ooo1_transform.transformOoo1Package(pkg), options);
|
|
9
|
+
}
|
|
10
|
+
function readSxw(pkg, options = {}) {
|
|
11
|
+
return require_embedded.readOdt(require_ooo1_transform.transformOoo1Package(pkg), options);
|
|
12
|
+
}
|
|
13
|
+
function readSxcContent(pkg) {
|
|
14
|
+
return require_embedded.readOdsContent(require_ooo1_transform.transformOoo1Package(pkg));
|
|
15
|
+
}
|
|
16
|
+
function readSxc(pkg) {
|
|
17
|
+
return require_embedded.readOds(require_ooo1_transform.transformOoo1Package(pkg));
|
|
18
|
+
}
|
|
19
|
+
function readSxiContent(pkg) {
|
|
20
|
+
return require_typed_odp_read.readOdpContent(require_ooo1_transform.transformOoo1Package(pkg));
|
|
21
|
+
}
|
|
22
|
+
function readSxi(pkg) {
|
|
23
|
+
return require_typed_odp_read.readOdp(require_ooo1_transform.transformOoo1Package(pkg));
|
|
24
|
+
}
|
|
25
|
+
function readSxdContent(pkg) {
|
|
26
|
+
return require_typed_odg_read.readOdgContent(require_ooo1_transform.transformOoo1Package(pkg));
|
|
27
|
+
}
|
|
28
|
+
function readSxd(pkg) {
|
|
29
|
+
return require_typed_odg_read.readOdg(require_ooo1_transform.transformOoo1Package(pkg));
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.readSxc = readSxc;
|
|
33
|
+
exports.readSxcContent = readSxcContent;
|
|
34
|
+
exports.readSxd = readSxd;
|
|
35
|
+
exports.readSxdContent = readSxdContent;
|
|
36
|
+
exports.readSxi = readSxi;
|
|
37
|
+
exports.readSxiContent = readSxiContent;
|
|
38
|
+
exports.readSxw = readSxw;
|
|
39
|
+
exports.readSxwContent = readSxwContent;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as readSxi, c as readSxwContent, i as readSxdContent, n as readSxcContent, o as readSxiContent, r as readSxd, s as readSxw, t as readSxc } from "../read-RFqq4ckj.cjs";
|
|
2
|
+
export { readSxc, readSxcContent, readSxd, readSxdContent, readSxi, readSxiContent, readSxw, readSxwContent };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as readSxi, c as readSxwContent, i as readSxdContent, n as readSxcContent, o as readSxiContent, r as readSxd, s as readSxw, t as readSxc } from "../read-3yy5EFV_.js";
|
|
2
|
+
export { readSxc, readSxcContent, readSxd, readSxdContent, readSxi, readSxiContent, readSxw, readSxwContent };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { readOdg, readOdgContent } from "../typed/odg/read.js";
|
|
2
|
+
import { readOdp, readOdpContent } from "../typed/odp/read.js";
|
|
3
|
+
import { a as readOdtContent, i as readOdt, o as readOds, s as readOdsContent } from "../embedded-UQQNFd5U.js";
|
|
4
|
+
import { transformOoo1Package } from "./transform.js";
|
|
5
|
+
//#region src/ooo1/read.ts
|
|
6
|
+
function readSxwContent(pkg, options = {}) {
|
|
7
|
+
return readOdtContent(transformOoo1Package(pkg), options);
|
|
8
|
+
}
|
|
9
|
+
function readSxw(pkg, options = {}) {
|
|
10
|
+
return readOdt(transformOoo1Package(pkg), options);
|
|
11
|
+
}
|
|
12
|
+
function readSxcContent(pkg) {
|
|
13
|
+
return readOdsContent(transformOoo1Package(pkg));
|
|
14
|
+
}
|
|
15
|
+
function readSxc(pkg) {
|
|
16
|
+
return readOds(transformOoo1Package(pkg));
|
|
17
|
+
}
|
|
18
|
+
function readSxiContent(pkg) {
|
|
19
|
+
return readOdpContent(transformOoo1Package(pkg));
|
|
20
|
+
}
|
|
21
|
+
function readSxi(pkg) {
|
|
22
|
+
return readOdp(transformOoo1Package(pkg));
|
|
23
|
+
}
|
|
24
|
+
function readSxdContent(pkg) {
|
|
25
|
+
return readOdgContent(transformOoo1Package(pkg));
|
|
26
|
+
}
|
|
27
|
+
function readSxd(pkg) {
|
|
28
|
+
return readOdg(transformOoo1Package(pkg));
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { readSxc, readSxcContent, readSxd, readSxdContent, readSxi, readSxiContent, readSxw, readSxwContent };
|