Fix App.jsx two-page workflow JSX render and update study app layout
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
import { XmlAttributeComponent } from '../xml-components';
|
||||
export declare class AppPropertiesAttributes extends XmlAttributeComponent<{
|
||||
readonly xmlns: string;
|
||||
readonly vt: string;
|
||||
}> {
|
||||
protected readonly xmlKeys: {
|
||||
xmlns: string;
|
||||
vt: string;
|
||||
};
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from '../xml-components';
|
||||
export declare class AppProperties extends XmlComponent {
|
||||
constructor();
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
import { XmlComponent } from '../xml-components';
|
||||
export type IBorderOptions = {
|
||||
readonly style: (typeof BorderStyle)[keyof typeof BorderStyle];
|
||||
readonly color?: string;
|
||||
readonly size?: number;
|
||||
readonly space?: number;
|
||||
};
|
||||
export declare const createBorderElement: (elementName: string, { color, size, space, style }: IBorderOptions) => XmlComponent;
|
||||
export declare const BorderStyle: {
|
||||
readonly SINGLE: "single";
|
||||
readonly DASH_DOT_STROKED: "dashDotStroked";
|
||||
readonly DASHED: "dashed";
|
||||
readonly DASH_SMALL_GAP: "dashSmallGap";
|
||||
readonly DOT_DASH: "dotDash";
|
||||
readonly DOT_DOT_DASH: "dotDotDash";
|
||||
readonly DOTTED: "dotted";
|
||||
readonly DOUBLE: "double";
|
||||
readonly DOUBLE_WAVE: "doubleWave";
|
||||
readonly INSET: "inset";
|
||||
readonly NIL: "nil";
|
||||
readonly NONE: "none";
|
||||
readonly OUTSET: "outset";
|
||||
readonly THICK: "thick";
|
||||
readonly THICK_THIN_LARGE_GAP: "thickThinLargeGap";
|
||||
readonly THICK_THIN_MEDIUM_GAP: "thickThinMediumGap";
|
||||
readonly THICK_THIN_SMALL_GAP: "thickThinSmallGap";
|
||||
readonly THIN_THICK_LARGE_GAP: "thinThickLargeGap";
|
||||
readonly THIN_THICK_MEDIUM_GAP: "thinThickMediumGap";
|
||||
readonly THIN_THICK_SMALL_GAP: "thinThickSmallGap";
|
||||
readonly THIN_THICK_THIN_LARGE_GAP: "thinThickThinLargeGap";
|
||||
readonly THIN_THICK_THIN_MEDIUM_GAP: "thinThickThinMediumGap";
|
||||
readonly THIN_THICK_THIN_SMALL_GAP: "thinThickThinSmallGap";
|
||||
readonly THREE_D_EMBOSS: "threeDEmboss";
|
||||
readonly THREE_D_ENGRAVE: "threeDEngrave";
|
||||
readonly TRIPLE: "triple";
|
||||
readonly WAVE: "wave";
|
||||
};
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from './border';
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from '../xml-components';
|
||||
export declare class CheckBoxSymbolElement extends XmlComponent {
|
||||
constructor(name: string, val: string, font?: string);
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
import { XmlComponent } from '../xml-components';
|
||||
export type ICheckboxSymbolProperties = {
|
||||
readonly value?: string;
|
||||
readonly font?: string;
|
||||
};
|
||||
export type ICheckboxSymbolOptions = {
|
||||
readonly alias?: string;
|
||||
readonly checked?: boolean;
|
||||
readonly checkedState?: ICheckboxSymbolProperties;
|
||||
readonly uncheckedState?: ICheckboxSymbolProperties;
|
||||
};
|
||||
export declare class CheckBoxUtil extends XmlComponent {
|
||||
private readonly DEFAULT_UNCHECKED_SYMBOL;
|
||||
private readonly DEFAULT_CHECKED_SYMBOL;
|
||||
private readonly DEFAULT_FONT;
|
||||
constructor(options?: ICheckboxSymbolOptions);
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import { XmlComponent } from '../xml-components';
|
||||
import { ICheckboxSymbolOptions } from './checkbox-util';
|
||||
export declare class CheckBox extends XmlComponent {
|
||||
private readonly DEFAULT_UNCHECKED_SYMBOL;
|
||||
private readonly DEFAULT_CHECKED_SYMBOL;
|
||||
private readonly DEFAULT_FONT;
|
||||
constructor(options?: ICheckboxSymbolOptions);
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
export * from './checkbox-util';
|
||||
export * from './checkbox-symbol';
|
||||
export * from './checkbox';
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import { XmlAttributeComponent } from '../xml-components';
|
||||
export declare class ContentTypeAttributes extends XmlAttributeComponent<{
|
||||
readonly xmlns?: string;
|
||||
}> {
|
||||
protected readonly xmlKeys: {
|
||||
xmlns: string;
|
||||
};
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import { XmlComponent } from '../xml-components';
|
||||
export declare class ContentTypes extends XmlComponent {
|
||||
constructor();
|
||||
addCommentsExtended(): void;
|
||||
addFooter(index: number): void;
|
||||
addHeader(index: number): void;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
export declare const createDefault: (contentType: string, extension?: string) => XmlComponent;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
export declare const createOverride: (contentType: string, partName?: string) => XmlComponent;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from './properties';
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
import { FontOptions } from '../fonts/font-table';
|
||||
import { ICommentsOptions } from '../paragraph/run/comment-run';
|
||||
import { IHyphenationOptions } from '../settings';
|
||||
import { ICompatibilityOptions } from '../settings/compatibility';
|
||||
import { XmlComponent } from '../xml-components';
|
||||
import { ICustomPropertyOptions } from '../custom-properties';
|
||||
import { IDocumentBackgroundOptions } from '../document';
|
||||
import { ISectionOptions } from '../file';
|
||||
import { INumberingOptions } from '../numbering';
|
||||
import { Paragraph } from '../paragraph';
|
||||
import { IStylesOptions } from '../styles';
|
||||
export type IPropertiesOptions = {
|
||||
readonly sections: readonly ISectionOptions[];
|
||||
readonly title?: string;
|
||||
readonly subject?: string;
|
||||
readonly creator?: string;
|
||||
readonly keywords?: string;
|
||||
readonly description?: string;
|
||||
readonly lastModifiedBy?: string;
|
||||
readonly revision?: number;
|
||||
readonly externalStyles?: string;
|
||||
readonly styles?: IStylesOptions;
|
||||
readonly numbering?: INumberingOptions;
|
||||
readonly comments?: ICommentsOptions;
|
||||
readonly footnotes?: Readonly<Record<string, {
|
||||
readonly children: readonly Paragraph[];
|
||||
}>>;
|
||||
readonly endnotes?: Readonly<Record<string, {
|
||||
readonly children: readonly Paragraph[];
|
||||
}>>;
|
||||
readonly background?: IDocumentBackgroundOptions;
|
||||
readonly features?: {
|
||||
readonly trackRevisions?: boolean;
|
||||
readonly updateFields?: boolean;
|
||||
};
|
||||
readonly compatabilityModeVersion?: number;
|
||||
readonly compatibility?: ICompatibilityOptions;
|
||||
readonly customProperties?: readonly ICustomPropertyOptions[];
|
||||
readonly evenAndOddHeaderAndFooters?: boolean;
|
||||
readonly defaultTabStop?: number;
|
||||
readonly fonts?: readonly FontOptions[];
|
||||
readonly hyphenation?: IHyphenationOptions;
|
||||
};
|
||||
export declare class CoreProperties extends XmlComponent {
|
||||
constructor(options: Omit<IPropertiesOptions, "sections">);
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import { XmlAttributeComponent } from '../xml-components';
|
||||
export declare class CustomPropertiesAttributes extends XmlAttributeComponent<{
|
||||
readonly xmlns: string;
|
||||
readonly vt: string;
|
||||
}> {
|
||||
protected readonly xmlKeys: {
|
||||
xmlns: string;
|
||||
vt: string;
|
||||
};
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import { IContext, IXmlableObject, XmlComponent } from '../xml-components';
|
||||
import { ICustomPropertyOptions } from './custom-property';
|
||||
export declare class CustomProperties extends XmlComponent {
|
||||
private nextId;
|
||||
private readonly properties;
|
||||
constructor(properties: readonly ICustomPropertyOptions[]);
|
||||
prepForXml(context: IContext): IXmlableObject | undefined;
|
||||
addCustomProperty(property: ICustomPropertyOptions): void;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import { XmlAttributeComponent } from '../xml-components';
|
||||
export declare class CustomPropertyAttributes extends XmlAttributeComponent<{
|
||||
readonly formatId: string;
|
||||
readonly pid: string;
|
||||
readonly name: string;
|
||||
}> {
|
||||
protected readonly xmlKeys: {
|
||||
formatId: string;
|
||||
pid: string;
|
||||
name: string;
|
||||
};
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import { XmlComponent } from '../xml-components';
|
||||
export type ICustomPropertyOptions = {
|
||||
readonly name: string;
|
||||
readonly value: string;
|
||||
};
|
||||
export declare class CustomProperty extends XmlComponent {
|
||||
constructor(id: number, properties: ICustomPropertyOptions);
|
||||
}
|
||||
export declare class CustomPropertyValue extends XmlComponent {
|
||||
constructor(value: string);
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export * from './custom-properties';
|
||||
export * from './custom-property';
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
import { Document, IDocumentOptions } from './document';
|
||||
import { Endnotes } from './endnotes';
|
||||
import { Footer } from './footer/footer';
|
||||
import { FootNotes } from './footnotes';
|
||||
import { Header } from './header/header';
|
||||
import { Relationships } from './relationships';
|
||||
import { XmlComponent } from './xml-components';
|
||||
export type IViewWrapper = {
|
||||
readonly View: Document | Footer | Header | FootNotes | Endnotes | XmlComponent;
|
||||
readonly Relationships: Relationships;
|
||||
};
|
||||
export declare class DocumentWrapper implements IViewWrapper {
|
||||
private readonly document;
|
||||
private readonly relationships;
|
||||
constructor(options: IDocumentOptions);
|
||||
get View(): Document;
|
||||
get Relationships(): Relationships;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import { IContext, IXmlableObject, XmlComponent } from '../../xml-components';
|
||||
import { ISectionPropertiesOptions } from './section-properties/section-properties';
|
||||
export declare class Body extends XmlComponent {
|
||||
private readonly sections;
|
||||
constructor();
|
||||
addSection(options: ISectionPropertiesOptions): void;
|
||||
prepForXml(context: IContext): IXmlableObject | undefined;
|
||||
push(component: XmlComponent): void;
|
||||
private createSectionParagraph;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export * from './body';
|
||||
export * from './section-properties';
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export * from './section-properties';
|
||||
export * from './properties';
|
||||
Generated
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
import { XmlComponent } from '../../../../xml-components';
|
||||
import { PositiveUniversalMeasure } from '../../../../../util/values';
|
||||
export type IColumnAttributes = {
|
||||
readonly width: number | PositiveUniversalMeasure;
|
||||
readonly space?: number | PositiveUniversalMeasure;
|
||||
};
|
||||
export declare class Column extends XmlComponent {
|
||||
constructor(options: IColumnAttributes);
|
||||
}
|
||||
Generated
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
import { XmlComponent } from '../../../../xml-components';
|
||||
import { PositiveUniversalMeasure } from '../../../../../util/values';
|
||||
import { Column } from './column';
|
||||
export type IColumnsAttributes = {
|
||||
readonly space?: number | PositiveUniversalMeasure;
|
||||
readonly count?: number;
|
||||
readonly separate?: boolean;
|
||||
readonly equalWidth?: boolean;
|
||||
readonly children?: readonly Column[];
|
||||
};
|
||||
export declare const createColumns: ({ space, count, separate, equalWidth, children }: IColumnsAttributes) => XmlComponent;
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
Generated
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
import { XmlComponent } from '../../../../xml-components';
|
||||
export declare const DocumentGridType: {
|
||||
readonly DEFAULT: "default";
|
||||
readonly LINES: "lines";
|
||||
readonly LINES_AND_CHARS: "linesAndChars";
|
||||
readonly SNAP_TO_CHARS: "snapToChars";
|
||||
};
|
||||
export type IDocGridAttributesProperties = {
|
||||
readonly type?: (typeof DocumentGridType)[keyof typeof DocumentGridType];
|
||||
readonly linePitch: number;
|
||||
readonly charSpace?: number;
|
||||
};
|
||||
export declare const createDocumentGrid: ({ type, linePitch, charSpace }: IDocGridAttributesProperties) => XmlComponent;
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
node_modules/docx/dist/file/document/body/section-properties/properties/header-footer-reference.d.ts
Generated
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
import { XmlComponent } from '../../../../xml-components';
|
||||
export declare const HeaderFooterReferenceType: {
|
||||
readonly DEFAULT: "default";
|
||||
readonly FIRST: "first";
|
||||
readonly EVEN: "even";
|
||||
};
|
||||
export type IHeaderFooterOptions = {
|
||||
readonly type?: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType];
|
||||
readonly id?: number;
|
||||
};
|
||||
export declare const HeaderFooterType: {
|
||||
readonly HEADER: "w:headerReference";
|
||||
readonly FOOTER: "w:footerReference";
|
||||
};
|
||||
export declare const createHeaderFooterReference: (type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options: IHeaderFooterOptions) => XmlComponent;
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
Generated
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
export * from './column';
|
||||
export * from './columns';
|
||||
export * from './doc-grid';
|
||||
export * from './page-size';
|
||||
export * from './page-number';
|
||||
export * from './page-borders';
|
||||
export * from './page-margin';
|
||||
export * from './page-borders';
|
||||
export * from './page-text-direction';
|
||||
export * from './line-number';
|
||||
export * from './section-type';
|
||||
export * from './header-footer-reference';
|
||||
Generated
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
import { XmlComponent } from '../../../../xml-components';
|
||||
import { PositiveUniversalMeasure } from '../../../../../util/values';
|
||||
export declare const LineNumberRestartFormat: {
|
||||
readonly NEW_PAGE: "newPage";
|
||||
readonly NEW_SECTION: "newSection";
|
||||
readonly CONTINUOUS: "continuous";
|
||||
};
|
||||
export type ILineNumberAttributes = {
|
||||
readonly countBy?: number;
|
||||
readonly start?: number;
|
||||
readonly restart?: (typeof LineNumberRestartFormat)[keyof typeof LineNumberRestartFormat];
|
||||
readonly distance?: number | PositiveUniversalMeasure;
|
||||
};
|
||||
export declare const createLineNumberType: ({ countBy, start, restart, distance }: ILineNumberAttributes) => XmlComponent;
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
Generated
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
import { IBorderOptions } from '../../../../border';
|
||||
import { IgnoreIfEmptyXmlComponent } from '../../../../xml-components';
|
||||
export declare const PageBorderDisplay: {
|
||||
readonly ALL_PAGES: "allPages";
|
||||
readonly FIRST_PAGE: "firstPage";
|
||||
readonly NOT_FIRST_PAGE: "notFirstPage";
|
||||
};
|
||||
export declare const PageBorderOffsetFrom: {
|
||||
readonly PAGE: "page";
|
||||
readonly TEXT: "text";
|
||||
};
|
||||
export declare const PageBorderZOrder: {
|
||||
readonly BACK: "back";
|
||||
readonly FRONT: "front";
|
||||
};
|
||||
export type IPageBorderAttributes = {
|
||||
readonly display?: (typeof PageBorderDisplay)[keyof typeof PageBorderDisplay];
|
||||
readonly offsetFrom?: (typeof PageBorderOffsetFrom)[keyof typeof PageBorderOffsetFrom];
|
||||
readonly zOrder?: (typeof PageBorderZOrder)[keyof typeof PageBorderZOrder];
|
||||
};
|
||||
export type IPageBordersOptions = {
|
||||
readonly pageBorders?: IPageBorderAttributes;
|
||||
readonly pageBorderTop?: IBorderOptions;
|
||||
readonly pageBorderRight?: IBorderOptions;
|
||||
readonly pageBorderBottom?: IBorderOptions;
|
||||
readonly pageBorderLeft?: IBorderOptions;
|
||||
};
|
||||
export declare class PageBorders extends IgnoreIfEmptyXmlComponent {
|
||||
constructor(options?: IPageBordersOptions);
|
||||
}
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
Generated
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
import { XmlComponent } from '../../../../xml-components';
|
||||
import { PositiveUniversalMeasure, UniversalMeasure } from '../../../../../util/values';
|
||||
export type IPageMarginAttributes = {
|
||||
readonly top?: number | UniversalMeasure;
|
||||
readonly right?: number | PositiveUniversalMeasure;
|
||||
readonly bottom?: number | UniversalMeasure;
|
||||
readonly left?: number | PositiveUniversalMeasure;
|
||||
readonly header?: number | PositiveUniversalMeasure;
|
||||
readonly footer?: number | PositiveUniversalMeasure;
|
||||
readonly gutter?: number | PositiveUniversalMeasure;
|
||||
};
|
||||
export declare const createPageMargin: (top: number | UniversalMeasure, right: number | PositiveUniversalMeasure, bottom: number | UniversalMeasure, left: number | PositiveUniversalMeasure, header: number | PositiveUniversalMeasure, footer: number | PositiveUniversalMeasure, gutter: number | PositiveUniversalMeasure) => XmlComponent;
|
||||
Generated
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
import { NumberFormat } from '../../../../shared/number-format';
|
||||
import { XmlComponent } from '../../../../xml-components';
|
||||
export declare const PageNumberSeparator: {
|
||||
readonly HYPHEN: "hyphen";
|
||||
readonly PERIOD: "period";
|
||||
readonly COLON: "colon";
|
||||
readonly EM_DASH: "emDash";
|
||||
readonly EN_DASH: "endash";
|
||||
};
|
||||
export type IPageNumberTypeAttributes = {
|
||||
readonly start?: number;
|
||||
readonly formatType?: (typeof NumberFormat)[keyof typeof NumberFormat];
|
||||
readonly separator?: (typeof PageNumberSeparator)[keyof typeof PageNumberSeparator];
|
||||
};
|
||||
export declare const createPageNumberType: ({ start, formatType, separator }: IPageNumberTypeAttributes) => XmlComponent;
|
||||
Generated
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
import { XmlComponent } from '../../../../xml-components';
|
||||
import { PositiveUniversalMeasure } from '../../../../../util/values';
|
||||
export declare const PageOrientation: {
|
||||
readonly PORTRAIT: "portrait";
|
||||
readonly LANDSCAPE: "landscape";
|
||||
};
|
||||
export type IPageSizeAttributes = {
|
||||
readonly width: number | PositiveUniversalMeasure;
|
||||
readonly height: number | PositiveUniversalMeasure;
|
||||
readonly orientation?: (typeof PageOrientation)[keyof typeof PageOrientation];
|
||||
readonly code?: number;
|
||||
};
|
||||
export declare const createPageSize: ({ width, height, orientation, code }: IPageSizeAttributes) => XmlComponent;
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
Generated
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
import { XmlComponent } from '../../../../xml-components';
|
||||
export declare const PageTextDirectionType: {
|
||||
readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
|
||||
readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
|
||||
};
|
||||
export declare class PageTextDirection extends XmlComponent {
|
||||
constructor(value: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType]);
|
||||
}
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
Generated
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
import { XmlComponent } from '../../../../xml-components';
|
||||
export declare const SectionType: {
|
||||
readonly NEXT_PAGE: "nextPage";
|
||||
readonly NEXT_COLUMN: "nextColumn";
|
||||
readonly CONTINUOUS: "continuous";
|
||||
readonly EVEN_PAGE: "evenPage";
|
||||
readonly ODD_PAGE: "oddPage";
|
||||
};
|
||||
export declare const createSectionType: (value: (typeof SectionType)[keyof typeof SectionType]) => XmlComponent;
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
Generated
Vendored
+61
@@ -0,0 +1,61 @@
|
||||
import { FooterWrapper } from '../../../footer-wrapper';
|
||||
import { HeaderWrapper } from '../../../header-wrapper';
|
||||
import { IChangedAttributesProperties } from '../../../track-revision/track-revision';
|
||||
import { SectionVerticalAlign } from '../../../vertical-align';
|
||||
import { XmlComponent } from '../../../xml-components';
|
||||
import { IColumnsAttributes } from './properties/columns';
|
||||
import { IDocGridAttributesProperties } from './properties/doc-grid';
|
||||
import { ILineNumberAttributes } from './properties/line-number';
|
||||
import { IPageBordersOptions } from './properties/page-borders';
|
||||
import { IPageMarginAttributes } from './properties/page-margin';
|
||||
import { IPageNumberTypeAttributes } from './properties/page-number';
|
||||
import { IPageSizeAttributes } from './properties/page-size';
|
||||
import { PageTextDirectionType } from './properties/page-text-direction';
|
||||
import { SectionType } from './properties/section-type';
|
||||
export type IHeaderFooterGroup<T> = {
|
||||
readonly default?: T;
|
||||
readonly first?: T;
|
||||
readonly even?: T;
|
||||
};
|
||||
export type ISectionPropertiesOptionsBase = {
|
||||
readonly page?: {
|
||||
readonly size?: Partial<IPageSizeAttributes>;
|
||||
readonly margin?: IPageMarginAttributes;
|
||||
readonly pageNumbers?: IPageNumberTypeAttributes;
|
||||
readonly borders?: IPageBordersOptions;
|
||||
readonly textDirection?: (typeof PageTextDirectionType)[keyof typeof PageTextDirectionType];
|
||||
};
|
||||
readonly grid?: Partial<IDocGridAttributesProperties>;
|
||||
readonly headerWrapperGroup?: IHeaderFooterGroup<HeaderWrapper>;
|
||||
readonly footerWrapperGroup?: IHeaderFooterGroup<FooterWrapper>;
|
||||
readonly lineNumbers?: ILineNumberAttributes;
|
||||
readonly titlePage?: boolean;
|
||||
readonly verticalAlign?: SectionVerticalAlign;
|
||||
readonly column?: IColumnsAttributes;
|
||||
readonly type?: (typeof SectionType)[keyof typeof SectionType];
|
||||
};
|
||||
export type ISectionPropertiesChangeOptions = IChangedAttributesProperties & ISectionPropertiesOptionsBase;
|
||||
export type ISectionPropertiesOptions = {
|
||||
readonly revision?: ISectionPropertiesChangeOptions;
|
||||
} & ISectionPropertiesOptionsBase;
|
||||
export declare const sectionMarginDefaults: {
|
||||
TOP: number;
|
||||
RIGHT: number;
|
||||
BOTTOM: number;
|
||||
LEFT: number;
|
||||
HEADER: number;
|
||||
FOOTER: number;
|
||||
GUTTER: number;
|
||||
};
|
||||
export declare const sectionPageSizeDefaults: {
|
||||
WIDTH: number;
|
||||
HEIGHT: number;
|
||||
ORIENTATION: "portrait";
|
||||
};
|
||||
export declare class SectionProperties extends XmlComponent {
|
||||
constructor({ page: { size: { width, height, orientation, code, }, margin: { top, right, bottom, left, header, footer, gutter, }, pageNumbers, borders, textDirection, }, grid: { linePitch, charSpace, type: gridType }, headerWrapperGroup, footerWrapperGroup, lineNumbers, titlePage, verticalAlign, column, type, revision, }?: ISectionPropertiesOptions);
|
||||
private addHeaderFooterGroup;
|
||||
}
|
||||
export declare class SectionPropertiesChange extends XmlComponent {
|
||||
constructor(options: ISectionPropertiesChangeOptions);
|
||||
}
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
import { AttributeMap, XmlAttributeComponent } from '../xml-components';
|
||||
export declare const DocumentAttributeNamespaces: {
|
||||
wpc: string;
|
||||
mc: string;
|
||||
o: string;
|
||||
r: string;
|
||||
m: string;
|
||||
v: string;
|
||||
wp14: string;
|
||||
wp: string;
|
||||
w10: string;
|
||||
w: string;
|
||||
w14: string;
|
||||
w15: string;
|
||||
wpg: string;
|
||||
wpi: string;
|
||||
wne: string;
|
||||
wps: string;
|
||||
cp: string;
|
||||
dc: string;
|
||||
dcterms: string;
|
||||
dcmitype: string;
|
||||
xsi: string;
|
||||
cx: string;
|
||||
cx1: string;
|
||||
cx2: string;
|
||||
cx3: string;
|
||||
cx4: string;
|
||||
cx5: string;
|
||||
cx6: string;
|
||||
cx7: string;
|
||||
cx8: string;
|
||||
aink: string;
|
||||
am3d: string;
|
||||
w16cex: string;
|
||||
w16cid: string;
|
||||
w16: string;
|
||||
w16sdtdh: string;
|
||||
w16se: string;
|
||||
};
|
||||
export type DocumentAttributeNamespace = keyof typeof DocumentAttributeNamespaces;
|
||||
export type IDocumentAttributesProperties = Partial<Record<DocumentAttributeNamespace, string>> & {
|
||||
readonly Ignorable?: string;
|
||||
};
|
||||
export declare class DocumentAttributes extends XmlAttributeComponent<IDocumentAttributesProperties> {
|
||||
protected readonly xmlKeys: AttributeMap<IDocumentAttributesProperties>;
|
||||
constructor(ns: readonly DocumentAttributeNamespace[], Ignorable?: string);
|
||||
}
|
||||
Generated
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
import { XmlAttributeComponent, XmlComponent } from '../../xml-components';
|
||||
export declare class DocumentBackgroundAttributes extends XmlAttributeComponent<{
|
||||
readonly color?: string;
|
||||
readonly themeColor?: string;
|
||||
readonly themeShade?: string;
|
||||
readonly themeTint?: string;
|
||||
}> {
|
||||
protected readonly xmlKeys: {
|
||||
color: string;
|
||||
themeColor: string;
|
||||
themeShade: string;
|
||||
themeTint: string;
|
||||
};
|
||||
}
|
||||
export type IDocumentBackgroundOptions = {
|
||||
readonly color?: string;
|
||||
readonly themeColor?: string;
|
||||
readonly themeShade?: string;
|
||||
readonly themeTint?: string;
|
||||
};
|
||||
export declare class DocumentBackground extends XmlComponent {
|
||||
constructor(options: IDocumentBackgroundOptions);
|
||||
}
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from './document-background';
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
import { XmlComponent } from '../xml-components';
|
||||
import { ConcreteHyperlink, Paragraph } from '../paragraph';
|
||||
import { Table } from '../table';
|
||||
import { TableOfContents } from '../table-of-contents';
|
||||
import { Body } from './body';
|
||||
import { IDocumentBackgroundOptions } from './document-background';
|
||||
export type IDocumentOptions = {
|
||||
readonly background?: IDocumentBackgroundOptions;
|
||||
};
|
||||
export declare class Document extends XmlComponent {
|
||||
private readonly body;
|
||||
constructor(options: IDocumentOptions);
|
||||
add(item: Paragraph | Table | TableOfContents | ConcreteHyperlink): Document;
|
||||
get Body(): Body;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
export * from './document';
|
||||
export * from './document-attributes';
|
||||
export * from './body';
|
||||
export * from './document-background';
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
import { XmlAttributeComponent } from '../../xml-components';
|
||||
import { IDistance } from '../drawing';
|
||||
export type IAnchorAttributes = {
|
||||
readonly allowOverlap?: "0" | "1";
|
||||
readonly behindDoc?: "0" | "1";
|
||||
readonly layoutInCell?: "0" | "1";
|
||||
readonly locked?: "0" | "1";
|
||||
readonly relativeHeight?: number;
|
||||
readonly simplePos?: "0" | "1";
|
||||
} & IDistance;
|
||||
export declare class AnchorAttributes extends XmlAttributeComponent<IAnchorAttributes> {
|
||||
protected readonly xmlKeys: {
|
||||
distT: string;
|
||||
distB: string;
|
||||
distL: string;
|
||||
distR: string;
|
||||
allowOverlap: string;
|
||||
behindDoc: string;
|
||||
layoutInCell: string;
|
||||
locked: string;
|
||||
relativeHeight: string;
|
||||
simplePos: string;
|
||||
};
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import { IExtendedMediaData, IMediaDataTransformation } from '../../media';
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
import { IDrawingOptions } from '../drawing';
|
||||
export declare class Anchor extends XmlComponent {
|
||||
constructor({ mediaData, transform, drawingOptions, }: {
|
||||
readonly mediaData: IExtendedMediaData;
|
||||
readonly transform: IMediaDataTransformation;
|
||||
readonly drawingOptions: IDrawingOptions;
|
||||
});
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export * from './anchor';
|
||||
export * from './anchor-attributes';
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
export declare const createHyperlinkClick: (linkId: string, hasXmlNs: boolean) => XmlComponent;
|
||||
export declare const createHyperlinkHover: (linkId: string, hasXmlNs: boolean) => XmlComponent;
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import { IContext, IXmlableObject, XmlComponent } from '../../xml-components';
|
||||
export type DocPropertiesOptions = {
|
||||
readonly name: string;
|
||||
readonly description?: string;
|
||||
readonly title?: string;
|
||||
readonly id?: string;
|
||||
};
|
||||
export declare class DocProperties extends XmlComponent {
|
||||
private readonly docPropertiesUniqueNumericId;
|
||||
constructor({ name, description, title, id }?: DocPropertiesOptions);
|
||||
prepForXml(context: IContext): IXmlableObject | undefined;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { IExtendedMediaData } from '../media';
|
||||
import { XmlComponent } from '../xml-components';
|
||||
import { DocPropertiesOptions } from './doc-properties/doc-properties';
|
||||
import { IFloating } from './floating';
|
||||
import { OutlineOptions } from './inline/graphic/graphic-data/pic/shape-properties/outline/outline';
|
||||
import { SolidFillOptions } from './inline/graphic/graphic-data/pic/shape-properties/outline/solid-fill';
|
||||
export type IDistance = {
|
||||
readonly distT?: number;
|
||||
readonly distB?: number;
|
||||
readonly distL?: number;
|
||||
readonly distR?: number;
|
||||
};
|
||||
export type IDrawingOptions = {
|
||||
readonly floating?: IFloating;
|
||||
readonly docProperties?: DocPropertiesOptions;
|
||||
readonly outline?: OutlineOptions;
|
||||
readonly solidFill?: SolidFillOptions;
|
||||
};
|
||||
export declare class Drawing extends XmlComponent {
|
||||
constructor(imageData: IExtendedMediaData, drawingOptions?: IDrawingOptions);
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
export type EffectExtentAttributes = {
|
||||
readonly top: number;
|
||||
readonly right: number;
|
||||
readonly bottom: number;
|
||||
readonly left: number;
|
||||
};
|
||||
export declare const createEffectExtent: ({ top, right, bottom, left }: EffectExtentAttributes) => XmlComponent;
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
type ExtentAttributes = {
|
||||
readonly x?: number;
|
||||
readonly y?: number;
|
||||
};
|
||||
export declare const createExtent: ({ x, y }: ExtentAttributes) => XmlComponent;
|
||||
export {};
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
import { HorizontalPositionAlign, VerticalPositionAlign } from '../../shared/alignment';
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
export declare const createAlign: (value: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign] | (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign]) => XmlComponent;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
import { HorizontalPositionAlign, VerticalPositionAlign } from '../../shared/alignment';
|
||||
import { ITextWrapping } from '../text-wrap';
|
||||
export declare const HorizontalPositionRelativeFrom: {
|
||||
readonly CHARACTER: "character";
|
||||
readonly COLUMN: "column";
|
||||
readonly INSIDE_MARGIN: "insideMargin";
|
||||
readonly LEFT_MARGIN: "leftMargin";
|
||||
readonly MARGIN: "margin";
|
||||
readonly OUTSIDE_MARGIN: "outsideMargin";
|
||||
readonly PAGE: "page";
|
||||
readonly RIGHT_MARGIN: "rightMargin";
|
||||
};
|
||||
export declare const VerticalPositionRelativeFrom: {
|
||||
readonly BOTTOM_MARGIN: "bottomMargin";
|
||||
readonly INSIDE_MARGIN: "insideMargin";
|
||||
readonly LINE: "line";
|
||||
readonly MARGIN: "margin";
|
||||
readonly OUTSIDE_MARGIN: "outsideMargin";
|
||||
readonly PAGE: "page";
|
||||
readonly PARAGRAPH: "paragraph";
|
||||
readonly TOP_MARGIN: "topMargin";
|
||||
};
|
||||
export type IHorizontalPositionOptions = {
|
||||
readonly relative?: (typeof HorizontalPositionRelativeFrom)[keyof typeof HorizontalPositionRelativeFrom];
|
||||
readonly align?: (typeof HorizontalPositionAlign)[keyof typeof HorizontalPositionAlign];
|
||||
readonly offset?: number;
|
||||
};
|
||||
export type IVerticalPositionOptions = {
|
||||
readonly relative?: (typeof VerticalPositionRelativeFrom)[keyof typeof VerticalPositionRelativeFrom];
|
||||
readonly align?: (typeof VerticalPositionAlign)[keyof typeof VerticalPositionAlign];
|
||||
readonly offset?: number;
|
||||
};
|
||||
export type IMargins = {
|
||||
readonly left?: number;
|
||||
readonly bottom?: number;
|
||||
readonly top?: number;
|
||||
readonly right?: number;
|
||||
};
|
||||
export type IFloating = {
|
||||
readonly horizontalPosition: IHorizontalPositionOptions;
|
||||
readonly verticalPosition: IVerticalPositionOptions;
|
||||
readonly allowOverlap?: boolean;
|
||||
readonly lockAnchor?: boolean;
|
||||
readonly behindDocument?: boolean;
|
||||
readonly layoutInCell?: boolean;
|
||||
readonly margins?: IMargins;
|
||||
readonly wrap?: ITextWrapping;
|
||||
readonly zIndex?: number;
|
||||
};
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
import { IHorizontalPositionOptions } from './floating-position';
|
||||
export declare const createHorizontalPosition: ({ relative, align, offset }: IHorizontalPositionOptions) => XmlComponent;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
export * from './floating-position';
|
||||
export * from './simple-pos';
|
||||
export * from './horizontal-position';
|
||||
export * from './vertical-position';
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
export declare const createPositionOffset: (offsetValue: number) => XmlComponent;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
export declare const createSimplePos: () => XmlComponent;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
import { IVerticalPositionOptions } from './floating-position';
|
||||
export declare const createVerticalPosition: ({ relative, align, offset }: IVerticalPositionOptions) => XmlComponent;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
Generated
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
import { XmlAttributeComponent } from '../../../xml-components';
|
||||
export declare class GraphicFrameLockAttributes extends XmlAttributeComponent<{
|
||||
readonly xmlns?: string;
|
||||
readonly noChangeAspect?: number;
|
||||
}> {
|
||||
protected readonly xmlKeys: {
|
||||
xmlns: string;
|
||||
noChangeAspect: string;
|
||||
};
|
||||
}
|
||||
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from '../../../xml-components';
|
||||
export declare class GraphicFrameLocks extends XmlComponent {
|
||||
constructor();
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
export declare const createGraphicFrameProperties: () => XmlComponent;
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
export * from './drawing';
|
||||
export * from './text-wrap';
|
||||
export * from './floating';
|
||||
Generated
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
import { XmlAttributeComponent } from '../../../../xml-components';
|
||||
export declare class GraphicDataAttributes extends XmlAttributeComponent<{
|
||||
readonly uri?: string;
|
||||
}> {
|
||||
protected readonly xmlKeys: {
|
||||
uri: string;
|
||||
};
|
||||
}
|
||||
Generated
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
import { IExtendedMediaData, IMediaDataTransformation } from '../../../../media';
|
||||
import { XmlComponent } from '../../../../xml-components';
|
||||
import { OutlineOptions } from './pic/shape-properties/outline/outline';
|
||||
import { SolidFillOptions } from './pic/shape-properties/outline/solid-fill';
|
||||
export declare class GraphicData extends XmlComponent {
|
||||
constructor({ mediaData, transform, outline, solidFill, }: {
|
||||
readonly mediaData: IExtendedMediaData;
|
||||
readonly transform: IMediaDataTransformation;
|
||||
readonly outline?: OutlineOptions;
|
||||
readonly solidFill?: SolidFillOptions;
|
||||
});
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from './graphic-data';
|
||||
Generated
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
import { IMediaData } from '../../../../../../media';
|
||||
import { XmlComponent } from '../../../../../../xml-components';
|
||||
export declare const createExtentionList: (mediaData: IMediaData) => XmlComponent;
|
||||
Generated
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
import { IMediaData } from '../../../../../../media';
|
||||
import { XmlComponent } from '../../../../../../xml-components';
|
||||
export declare class BlipFill extends XmlComponent {
|
||||
constructor(mediaData: IMediaData);
|
||||
}
|
||||
Generated
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
import { IMediaData } from '../../../../../../media';
|
||||
import { XmlComponent } from '../../../../../../xml-components';
|
||||
export declare const createBlip: (mediaData: IMediaData) => XmlComponent;
|
||||
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from '../../../../../../xml-components';
|
||||
export declare class SourceRectangle extends XmlComponent {
|
||||
constructor();
|
||||
}
|
||||
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from '../../../../../../xml-components';
|
||||
export declare class Stretch extends XmlComponent {
|
||||
constructor();
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from './pic';
|
||||
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from '../../../../../../../xml-components';
|
||||
export declare class ChildNonVisualProperties extends XmlComponent {
|
||||
constructor();
|
||||
}
|
||||
Generated
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
import { XmlAttributeComponent } from '../../../../../../../../xml-components';
|
||||
export declare class PicLocksAttributes extends XmlAttributeComponent<{
|
||||
readonly noChangeAspect?: number;
|
||||
readonly noChangeArrowheads?: number;
|
||||
}> {
|
||||
protected readonly xmlKeys: {
|
||||
noChangeAspect: string;
|
||||
noChangeArrowheads: string;
|
||||
};
|
||||
}
|
||||
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
import { XmlComponent } from '../../../../../../../../xml-components';
|
||||
export declare class PicLocks extends XmlComponent {
|
||||
constructor();
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user