@docx4j/core-ts 0.3.1 → 0.4.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 +3 -1
- package/dist/html/convert.d.mts +116 -0
- package/dist/html/convert.mjs +541 -0
- package/dist/html/elements.d.mts +19 -0
- package/dist/html/elements.mjs +182 -0
- package/dist/html/index.d.mts +2 -0
- package/dist/html/index.mjs +4 -0
- package/dist/model/content/Body.mjs +9 -1
- package/dist/model/content/ContentControl.d.mts +5 -1
- package/dist/model/content/ContentControl.mjs +18 -5
- package/dist/model/content/InlinePicture.d.mts +18 -3
- package/dist/model/content/InlinePicture.mjs +44 -7
- package/dist/model/content/Paragraph.d.mts +11 -11
- package/dist/model/content/Paragraph.mjs +30 -43
- package/dist/model/content/Range.mjs +3 -2
- package/dist/model/content/Table.d.mts +38 -0
- package/dist/model/content/Table.mjs +80 -2
- package/dist/model/content/index.d.mts +2 -1
- package/dist/model/content/index.mjs +2 -1
- package/dist/model/content/stylesFacade.d.mts +4 -2
- package/dist/model/content/stylesFacade.mjs +23 -6
- package/dist/model/content/tableColumns.d.mts +48 -0
- package/dist/model/content/tableColumns.mjs +484 -0
- package/dist/model/content/tracking.d.mts +14 -0
- package/dist/model/content/tracking.mjs +19 -10
- package/dist/model/customxml/CustomXmlPartCollection.d.mts +6 -1
- package/dist/model/customxml/CustomXmlPartCollection.mjs +19 -3
- package/dist/model/customxml/XmlMapping.d.mts +20 -4
- package/dist/model/customxml/XmlMapping.mjs +44 -6
- package/dist/model/customxml/bindings.d.mts +13 -3
- package/dist/model/customxml/bindings.mjs +38 -7
- package/dist/model/customxml/index.d.mts +4 -1
- package/dist/model/customxml/index.mjs +4 -1
- package/dist/model/customxml/insert.d.mts +10 -0
- package/dist/model/customxml/insert.mjs +13 -0
- package/dist/model/customxml/opendope.d.mts +32 -0
- package/dist/model/customxml/opendope.mjs +56 -0
- package/dist/model/customxml/pictures.d.mts +54 -0
- package/dist/model/customxml/pictures.mjs +186 -0
- package/dist/model/customxml/xhtml.d.mts +42 -0
- package/dist/model/customxml/xhtml.mjs +162 -0
- package/dist/model/fonts/RunFontSelector.d.mts +8 -1
- package/dist/model/fonts/RunFontSelector.mjs +6 -5
- package/dist/model/properties/PropertyResolver.d.mts +110 -10
- package/dist/model/properties/PropertyResolver.mjs +300 -31
- package/dist/model/properties/index.d.mts +3 -0
- package/dist/model/properties/index.mjs +2 -0
- package/dist/model/properties/table.d.mts +155 -0
- package/dist/model/properties/table.mjs +315 -0
- package/dist/model/properties/tableStyleConditions.d.mts +101 -0
- package/dist/model/properties/tableStyleConditions.mjs +296 -0
- package/dist/packages/WordprocessingMLPackage.mjs +1 -0
- package/dist/parts/wml/knownStyles.d.mts +1 -0
- package/dist/parts/wml/knownStyles.mjs +2233 -0
- package/dist/parts/wml/placeholderStyle.d.mts +3 -0
- package/dist/parts/wml/placeholderStyle.mjs +13 -0
- package/package.json +7 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as wmlFactory from '@docx4j/generated-objects-ts/factory/org_docx4j_wml';
|
|
2
|
+
import { PLACEHOLDER_STYLE } from '../../model/customxml/bindings.mjs';
|
|
3
|
+
/** A fresh copy of the definition, each call. */
|
|
4
|
+
export function placeholderStyle() {
|
|
5
|
+
return wmlFactory.createStyle({
|
|
6
|
+
type: 'character', styleId: PLACEHOLDER_STYLE,
|
|
7
|
+
name: wmlFactory.createStyleName({ val: 'Placeholder Text' }),
|
|
8
|
+
basedOn: wmlFactory.createStyleBasedOn({ val: 'DefaultParagraphFont' }),
|
|
9
|
+
uiPriority: wmlFactory.createStyleUiPriority({ val: 99 }),
|
|
10
|
+
unhideWhenUsed: wmlFactory.createBooleanDefaultTrue(),
|
|
11
|
+
rPr: wmlFactory.createRPr({ color: wmlFactory.createColor({ val: '666666' }) }),
|
|
12
|
+
});
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docx4j/core-ts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "docx4j-core for TypeScript: Open Packaging (docx/pptx/xlsx zip and flat OPC), typed parts and relationships, style, numbering and font resolution over @docx4j/generated-objects-ts. Node, browsers, Word add-ins.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -37,6 +37,10 @@
|
|
|
37
37
|
"./xpath-fonto": {
|
|
38
38
|
"types": "./dist/model/customxml/xpath-fonto.d.mts",
|
|
39
39
|
"import": "./dist/model/customxml/xpath-fonto.mjs"
|
|
40
|
+
},
|
|
41
|
+
"./html": {
|
|
42
|
+
"types": "./dist/html/index.d.mts",
|
|
43
|
+
"import": "./dist/html/index.mjs"
|
|
40
44
|
}
|
|
41
45
|
},
|
|
42
46
|
"files": [
|
|
@@ -79,11 +83,12 @@
|
|
|
79
83
|
},
|
|
80
84
|
"license": "Apache-2.0",
|
|
81
85
|
"dependencies": {
|
|
82
|
-
"@docx4j/generated-objects-ts": "^0.3.
|
|
86
|
+
"@docx4j/generated-objects-ts": "^0.3.1",
|
|
83
87
|
"fflate": "^0.8.2"
|
|
84
88
|
},
|
|
85
89
|
"devDependencies": {
|
|
86
90
|
"fontoxpath": "^3.34.0",
|
|
91
|
+
"linkedom": "^0.18.13",
|
|
87
92
|
"typescript": "~5.6.3",
|
|
88
93
|
"xpath": "^0.0.34"
|
|
89
94
|
},
|