docx-plus 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +8 -0
- package/dist/index.d.cts +20 -19
- package/dist/index.d.mts +20 -19
- package/dist/index.iife.js +8 -0
- package/dist/index.mjs +8 -0
- package/dist/index.umd.js +8 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -16219,6 +16219,14 @@ var ParagraphProperties = class extends IgnoreIfEmptyXmlComponent {
|
|
|
16219
16219
|
} },
|
|
16220
16220
|
name: "w:textboxTightWrap"
|
|
16221
16221
|
}));
|
|
16222
|
+
if (options.textDirection !== void 0) this.push(new BuilderElement({
|
|
16223
|
+
attributes: { val: {
|
|
16224
|
+
key: "w:val",
|
|
16225
|
+
value: options.textDirection
|
|
16226
|
+
} },
|
|
16227
|
+
name: "w:textDirection"
|
|
16228
|
+
}));
|
|
16229
|
+
if (options.suppressOverlap !== void 0) this.push(new OnOffElement("w:suppressOverlap", options.suppressOverlap));
|
|
16222
16230
|
if (options.run) this.push(new ParagraphRunProperties(options.run));
|
|
16223
16231
|
if (options.revision) this.push(new ParagraphPropertiesChange(options.revision));
|
|
16224
16232
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -2841,7 +2841,11 @@ declare const TextboxTightWrapType: {
|
|
|
2841
2841
|
};
|
|
2842
2842
|
interface LevelParagraphStylePropertiesOptions {
|
|
2843
2843
|
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
2844
|
+
readonly bidirectional?: boolean;
|
|
2845
|
+
readonly pageBreakBefore?: boolean;
|
|
2846
|
+
readonly tabStops?: readonly TabStopDefinition[];
|
|
2844
2847
|
readonly thematicBreak?: boolean;
|
|
2848
|
+
readonly widowControl?: boolean;
|
|
2845
2849
|
readonly contextualSpacing?: boolean;
|
|
2846
2850
|
readonly rightTabStop?: number;
|
|
2847
2851
|
readonly leftTabStop?: number;
|
|
@@ -2849,6 +2853,22 @@ interface LevelParagraphStylePropertiesOptions {
|
|
|
2849
2853
|
readonly spacing?: ISpacingProperties;
|
|
2850
2854
|
readonly keepNext?: boolean;
|
|
2851
2855
|
readonly keepLines?: boolean;
|
|
2856
|
+
readonly frame?: IFrameOptions;
|
|
2857
|
+
readonly suppressLineNumbers?: boolean;
|
|
2858
|
+
readonly wordWrap?: boolean;
|
|
2859
|
+
readonly overflowPunctuation?: boolean;
|
|
2860
|
+
readonly autoSpaceEastAsianText?: boolean;
|
|
2861
|
+
readonly suppressOverlap?: boolean;
|
|
2862
|
+
readonly suppressAutoHyphens?: boolean;
|
|
2863
|
+
readonly adjustRightInd?: boolean;
|
|
2864
|
+
readonly snapToGrid?: boolean;
|
|
2865
|
+
readonly mirrorIndents?: boolean;
|
|
2866
|
+
readonly kinsoku?: boolean;
|
|
2867
|
+
readonly topLinePunct?: boolean;
|
|
2868
|
+
readonly autoSpaceDE?: boolean;
|
|
2869
|
+
readonly textAlignment?: (typeof TextAlignmentType)[keyof typeof TextAlignmentType];
|
|
2870
|
+
readonly textboxTightWrap?: (typeof TextboxTightWrapType)[keyof typeof TextboxTightWrapType];
|
|
2871
|
+
readonly textDirection?: "lr" | "rl" | "tb" | "tbV" | "rlV" | "lrV";
|
|
2852
2872
|
readonly outlineLevel?: number;
|
|
2853
2873
|
}
|
|
2854
2874
|
type IParagraphStylePropertiesOptions = {
|
|
@@ -2863,30 +2883,11 @@ type IParagraphStylePropertiesOptions = {
|
|
|
2863
2883
|
} & LevelParagraphStylePropertiesOptions;
|
|
2864
2884
|
type IParagraphPropertiesOptionsBase = {
|
|
2865
2885
|
readonly heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
|
|
2866
|
-
readonly bidirectional?: boolean;
|
|
2867
|
-
readonly pageBreakBefore?: boolean;
|
|
2868
|
-
readonly tabStops?: readonly TabStopDefinition[];
|
|
2869
2886
|
readonly style?: string;
|
|
2870
2887
|
readonly bullet?: {
|
|
2871
2888
|
readonly level: number;
|
|
2872
2889
|
};
|
|
2873
|
-
readonly widowControl?: boolean;
|
|
2874
|
-
readonly frame?: IFrameOptions;
|
|
2875
|
-
readonly suppressLineNumbers?: boolean;
|
|
2876
|
-
readonly wordWrap?: boolean;
|
|
2877
|
-
readonly overflowPunctuation?: boolean;
|
|
2878
|
-
readonly scale?: number;
|
|
2879
|
-
readonly autoSpaceEastAsianText?: boolean;
|
|
2880
2890
|
readonly run?: IParagraphRunOptions;
|
|
2881
|
-
readonly suppressAutoHyphens?: boolean;
|
|
2882
|
-
readonly adjustRightInd?: boolean;
|
|
2883
|
-
readonly snapToGrid?: boolean;
|
|
2884
|
-
readonly mirrorIndents?: boolean;
|
|
2885
|
-
readonly kinsoku?: boolean;
|
|
2886
|
-
readonly topLinePunct?: boolean;
|
|
2887
|
-
readonly autoSpaceDE?: boolean;
|
|
2888
|
-
readonly textAlignment?: (typeof TextAlignmentType)[keyof typeof TextAlignmentType];
|
|
2889
|
-
readonly textboxTightWrap?: (typeof TextboxTightWrapType)[keyof typeof TextboxTightWrapType];
|
|
2890
2891
|
} & IParagraphStylePropertiesOptions;
|
|
2891
2892
|
type IParagraphPropertiesChangeOptions = IChangedAttributesProperties & IParagraphPropertiesOptionsBase;
|
|
2892
2893
|
type IParagraphPropertiesOptions = {
|
package/dist/index.d.mts
CHANGED
|
@@ -2843,7 +2843,11 @@ declare const TextboxTightWrapType: {
|
|
|
2843
2843
|
};
|
|
2844
2844
|
interface LevelParagraphStylePropertiesOptions {
|
|
2845
2845
|
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
|
2846
|
+
readonly bidirectional?: boolean;
|
|
2847
|
+
readonly pageBreakBefore?: boolean;
|
|
2848
|
+
readonly tabStops?: readonly TabStopDefinition[];
|
|
2846
2849
|
readonly thematicBreak?: boolean;
|
|
2850
|
+
readonly widowControl?: boolean;
|
|
2847
2851
|
readonly contextualSpacing?: boolean;
|
|
2848
2852
|
readonly rightTabStop?: number;
|
|
2849
2853
|
readonly leftTabStop?: number;
|
|
@@ -2851,6 +2855,22 @@ interface LevelParagraphStylePropertiesOptions {
|
|
|
2851
2855
|
readonly spacing?: ISpacingProperties;
|
|
2852
2856
|
readonly keepNext?: boolean;
|
|
2853
2857
|
readonly keepLines?: boolean;
|
|
2858
|
+
readonly frame?: IFrameOptions;
|
|
2859
|
+
readonly suppressLineNumbers?: boolean;
|
|
2860
|
+
readonly wordWrap?: boolean;
|
|
2861
|
+
readonly overflowPunctuation?: boolean;
|
|
2862
|
+
readonly autoSpaceEastAsianText?: boolean;
|
|
2863
|
+
readonly suppressOverlap?: boolean;
|
|
2864
|
+
readonly suppressAutoHyphens?: boolean;
|
|
2865
|
+
readonly adjustRightInd?: boolean;
|
|
2866
|
+
readonly snapToGrid?: boolean;
|
|
2867
|
+
readonly mirrorIndents?: boolean;
|
|
2868
|
+
readonly kinsoku?: boolean;
|
|
2869
|
+
readonly topLinePunct?: boolean;
|
|
2870
|
+
readonly autoSpaceDE?: boolean;
|
|
2871
|
+
readonly textAlignment?: (typeof TextAlignmentType)[keyof typeof TextAlignmentType];
|
|
2872
|
+
readonly textboxTightWrap?: (typeof TextboxTightWrapType)[keyof typeof TextboxTightWrapType];
|
|
2873
|
+
readonly textDirection?: "lr" | "rl" | "tb" | "tbV" | "rlV" | "lrV";
|
|
2854
2874
|
readonly outlineLevel?: number;
|
|
2855
2875
|
}
|
|
2856
2876
|
type IParagraphStylePropertiesOptions = {
|
|
@@ -2865,30 +2885,11 @@ type IParagraphStylePropertiesOptions = {
|
|
|
2865
2885
|
} & LevelParagraphStylePropertiesOptions;
|
|
2866
2886
|
type IParagraphPropertiesOptionsBase = {
|
|
2867
2887
|
readonly heading?: (typeof HeadingLevel)[keyof typeof HeadingLevel];
|
|
2868
|
-
readonly bidirectional?: boolean;
|
|
2869
|
-
readonly pageBreakBefore?: boolean;
|
|
2870
|
-
readonly tabStops?: readonly TabStopDefinition[];
|
|
2871
2888
|
readonly style?: string;
|
|
2872
2889
|
readonly bullet?: {
|
|
2873
2890
|
readonly level: number;
|
|
2874
2891
|
};
|
|
2875
|
-
readonly widowControl?: boolean;
|
|
2876
|
-
readonly frame?: IFrameOptions;
|
|
2877
|
-
readonly suppressLineNumbers?: boolean;
|
|
2878
|
-
readonly wordWrap?: boolean;
|
|
2879
|
-
readonly overflowPunctuation?: boolean;
|
|
2880
|
-
readonly scale?: number;
|
|
2881
|
-
readonly autoSpaceEastAsianText?: boolean;
|
|
2882
2892
|
readonly run?: IParagraphRunOptions;
|
|
2883
|
-
readonly suppressAutoHyphens?: boolean;
|
|
2884
|
-
readonly adjustRightInd?: boolean;
|
|
2885
|
-
readonly snapToGrid?: boolean;
|
|
2886
|
-
readonly mirrorIndents?: boolean;
|
|
2887
|
-
readonly kinsoku?: boolean;
|
|
2888
|
-
readonly topLinePunct?: boolean;
|
|
2889
|
-
readonly autoSpaceDE?: boolean;
|
|
2890
|
-
readonly textAlignment?: (typeof TextAlignmentType)[keyof typeof TextAlignmentType];
|
|
2891
|
-
readonly textboxTightWrap?: (typeof TextboxTightWrapType)[keyof typeof TextboxTightWrapType];
|
|
2892
2893
|
} & IParagraphStylePropertiesOptions;
|
|
2893
2894
|
type IParagraphPropertiesChangeOptions = IChangedAttributesProperties & IParagraphPropertiesOptionsBase;
|
|
2894
2895
|
type IParagraphPropertiesOptions = {
|
package/dist/index.iife.js
CHANGED
|
@@ -16216,6 +16216,14 @@ var docx = (function(exports, hash_js, nanoid_non_secure, undio, fflate) {
|
|
|
16216
16216
|
} },
|
|
16217
16217
|
name: "w:textboxTightWrap"
|
|
16218
16218
|
}));
|
|
16219
|
+
if (options.textDirection !== void 0) this.push(new BuilderElement({
|
|
16220
|
+
attributes: { val: {
|
|
16221
|
+
key: "w:val",
|
|
16222
|
+
value: options.textDirection
|
|
16223
|
+
} },
|
|
16224
|
+
name: "w:textDirection"
|
|
16225
|
+
}));
|
|
16226
|
+
if (options.suppressOverlap !== void 0) this.push(new OnOffElement("w:suppressOverlap", options.suppressOverlap));
|
|
16219
16227
|
if (options.run) this.push(new ParagraphRunProperties(options.run));
|
|
16220
16228
|
if (options.revision) this.push(new ParagraphPropertiesChange(options.revision));
|
|
16221
16229
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -16217,6 +16217,14 @@ var ParagraphProperties = class extends IgnoreIfEmptyXmlComponent {
|
|
|
16217
16217
|
} },
|
|
16218
16218
|
name: "w:textboxTightWrap"
|
|
16219
16219
|
}));
|
|
16220
|
+
if (options.textDirection !== void 0) this.push(new BuilderElement({
|
|
16221
|
+
attributes: { val: {
|
|
16222
|
+
key: "w:val",
|
|
16223
|
+
value: options.textDirection
|
|
16224
|
+
} },
|
|
16225
|
+
name: "w:textDirection"
|
|
16226
|
+
}));
|
|
16227
|
+
if (options.suppressOverlap !== void 0) this.push(new OnOffElement("w:suppressOverlap", options.suppressOverlap));
|
|
16220
16228
|
if (options.run) this.push(new ParagraphRunProperties(options.run));
|
|
16221
16229
|
if (options.revision) this.push(new ParagraphPropertiesChange(options.revision));
|
|
16222
16230
|
}
|
package/dist/index.umd.js
CHANGED
|
@@ -16224,6 +16224,14 @@
|
|
|
16224
16224
|
} },
|
|
16225
16225
|
name: "w:textboxTightWrap"
|
|
16226
16226
|
}));
|
|
16227
|
+
if (options.textDirection !== void 0) this.push(new BuilderElement({
|
|
16228
|
+
attributes: { val: {
|
|
16229
|
+
key: "w:val",
|
|
16230
|
+
value: options.textDirection
|
|
16231
|
+
} },
|
|
16232
|
+
name: "w:textDirection"
|
|
16233
|
+
}));
|
|
16234
|
+
if (options.suppressOverlap !== void 0) this.push(new OnOffElement("w:suppressOverlap", options.suppressOverlap));
|
|
16227
16235
|
if (options.run) this.push(new ParagraphRunProperties(options.run));
|
|
16228
16236
|
if (options.revision) this.push(new ParagraphPropertiesChange(options.revision));
|
|
16229
16237
|
}
|