Fix App.jsx two-page workflow JSX render and update study app layout
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
import { XmlComponent } from '../xml-components';
|
||||
import { PositiveUniversalMeasure } from '../../util/values';
|
||||
export type ITableGridChangeOptions = {
|
||||
readonly id: number;
|
||||
readonly columnWidths: readonly number[] | readonly PositiveUniversalMeasure[];
|
||||
};
|
||||
export declare const createGridCol: (width?: number | PositiveUniversalMeasure) => XmlComponent;
|
||||
export declare class TableGrid extends XmlComponent {
|
||||
constructor(widths: readonly number[] | readonly PositiveUniversalMeasure[], revision?: ITableGridChangeOptions);
|
||||
}
|
||||
export declare class TableGridChange extends XmlComponent {
|
||||
constructor(options: ITableGridChangeOptions);
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
export * from './table';
|
||||
export * from './table-cell';
|
||||
export * from './table-properties';
|
||||
export * from './table-row';
|
||||
export * from './table-width';
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import { XmlComponent } from '../xml-components';
|
||||
import { Percentage, UniversalMeasure } from '../../util/values';
|
||||
export declare const CellSpacingType: {
|
||||
readonly DXA: "dxa";
|
||||
readonly NIL: "nil";
|
||||
};
|
||||
export type ITableCellSpacingProperties = {
|
||||
readonly value: number | Percentage | UniversalMeasure;
|
||||
readonly type?: (typeof CellSpacingType)[keyof typeof CellSpacingType];
|
||||
};
|
||||
export declare const createTableCellSpacing: ({ type, value }: ITableCellSpacingProperties) => XmlComponent;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
export * from './table-cell';
|
||||
export * from './table-cell-components';
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
import { IBorderOptions } from '../../border';
|
||||
import { IgnoreIfEmptyXmlComponent, XmlComponent } from '../../xml-components';
|
||||
export type ITableCellBorders = {
|
||||
readonly top?: IBorderOptions;
|
||||
readonly start?: IBorderOptions;
|
||||
readonly left?: IBorderOptions;
|
||||
readonly bottom?: IBorderOptions;
|
||||
readonly end?: IBorderOptions;
|
||||
readonly right?: IBorderOptions;
|
||||
};
|
||||
export declare class TableCellBorders extends IgnoreIfEmptyXmlComponent {
|
||||
constructor(options: ITableCellBorders);
|
||||
}
|
||||
export declare class GridSpan extends XmlComponent {
|
||||
constructor(value: number);
|
||||
}
|
||||
export declare const VerticalMergeType: {
|
||||
readonly CONTINUE: "continue";
|
||||
readonly RESTART: "restart";
|
||||
};
|
||||
export declare class VerticalMerge extends XmlComponent {
|
||||
constructor(value: (typeof VerticalMergeType)[keyof typeof VerticalMergeType]);
|
||||
}
|
||||
export declare const TextDirection: {
|
||||
readonly BOTTOM_TO_TOP_LEFT_TO_RIGHT: "btLr";
|
||||
readonly LEFT_TO_RIGHT_TOP_TO_BOTTOM: "lrTb";
|
||||
readonly TOP_TO_BOTTOM_RIGHT_TO_LEFT: "tbRl";
|
||||
};
|
||||
export declare class TDirection extends XmlComponent {
|
||||
constructor(value: (typeof TextDirection)[keyof typeof TextDirection]);
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
import { ICellMergeAttributes } from '../../track-revision';
|
||||
import { IChangedAttributesProperties } from '../../track-revision/track-revision';
|
||||
import { TableVerticalAlign } from '../../vertical-align';
|
||||
import { IgnoreIfEmptyXmlComponent, XmlComponent } from '../../xml-components';
|
||||
import { IShadingAttributesProperties } from '../../shading';
|
||||
import { ITableCellMarginOptions } from '../table-properties/table-cell-margin';
|
||||
import { ITableWidthProperties } from '../table-width';
|
||||
import { ITableCellBorders, TextDirection, VerticalMergeType } from './table-cell-components';
|
||||
export type ITableCellPropertiesOptionsBase = {
|
||||
readonly shading?: IShadingAttributesProperties;
|
||||
readonly margins?: ITableCellMarginOptions;
|
||||
readonly verticalAlign?: TableVerticalAlign;
|
||||
readonly textDirection?: (typeof TextDirection)[keyof typeof TextDirection];
|
||||
readonly verticalMerge?: (typeof VerticalMergeType)[keyof typeof VerticalMergeType];
|
||||
readonly width?: ITableWidthProperties;
|
||||
readonly columnSpan?: number;
|
||||
readonly rowSpan?: number;
|
||||
readonly borders?: ITableCellBorders;
|
||||
readonly insertion?: IChangedAttributesProperties;
|
||||
readonly deletion?: IChangedAttributesProperties;
|
||||
readonly cellMerge?: ICellMergeAttributes;
|
||||
};
|
||||
export type ITableCellPropertiesOptions = {
|
||||
readonly revision?: ITableCellPropertiesChangeOptions;
|
||||
readonly includeIfEmpty?: boolean;
|
||||
} & ITableCellPropertiesOptionsBase;
|
||||
export type ITableCellPropertiesChangeOptions = ITableCellPropertiesOptionsBase & IChangedAttributesProperties;
|
||||
export declare class TableCellProperties extends IgnoreIfEmptyXmlComponent {
|
||||
constructor(options: ITableCellPropertiesOptions);
|
||||
}
|
||||
export declare class TableCellPropertiesChange extends XmlComponent {
|
||||
constructor(options: ITableCellPropertiesChangeOptions);
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import { Paragraph } from '../../paragraph';
|
||||
import { IContext, IXmlableObject, XmlComponent } from '../../xml-components';
|
||||
import { Table } from '../table';
|
||||
import { ITableCellPropertiesOptions } from './table-cell-properties';
|
||||
export type ITableCellOptions = {
|
||||
readonly children: readonly (Paragraph | Table)[];
|
||||
} & ITableCellPropertiesOptions;
|
||||
export declare class TableCell extends XmlComponent {
|
||||
readonly options: ITableCellOptions;
|
||||
constructor(options: ITableCellOptions);
|
||||
prepForXml(context: IContext): IXmlableObject | undefined;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
export * from './table-properties';
|
||||
export * from './table-float-properties';
|
||||
export * from './table-layout';
|
||||
export * from './table-borders';
|
||||
export * from './table-look';
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
import { IBorderOptions } from '../../border';
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
export type ITableBordersOptions = {
|
||||
readonly top?: IBorderOptions;
|
||||
readonly bottom?: IBorderOptions;
|
||||
readonly left?: IBorderOptions;
|
||||
readonly right?: IBorderOptions;
|
||||
readonly insideHorizontal?: IBorderOptions;
|
||||
readonly insideVertical?: IBorderOptions;
|
||||
};
|
||||
export declare class TableBorders extends XmlComponent {
|
||||
static readonly NONE: ITableBordersOptions;
|
||||
constructor(options: ITableBordersOptions);
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import { WidthType } from '..';
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
export type ITableCellMarginOptions = {
|
||||
readonly marginUnitType?: (typeof WidthType)[keyof typeof WidthType];
|
||||
readonly top?: number;
|
||||
readonly bottom?: number;
|
||||
readonly left?: number;
|
||||
readonly right?: number;
|
||||
};
|
||||
export declare const createTableCellMargin: (options: ITableCellMarginOptions) => XmlComponent | undefined;
|
||||
export declare const createCellMargin: (options: ITableCellMarginOptions) => XmlComponent | undefined;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
import { PositiveUniversalMeasure, UniversalMeasure } from '../../../util/values';
|
||||
export declare const TableAnchorType: {
|
||||
readonly MARGIN: "margin";
|
||||
readonly PAGE: "page";
|
||||
readonly TEXT: "text";
|
||||
};
|
||||
export declare const RelativeHorizontalPosition: {
|
||||
readonly CENTER: "center";
|
||||
readonly INSIDE: "inside";
|
||||
readonly LEFT: "left";
|
||||
readonly OUTSIDE: "outside";
|
||||
readonly RIGHT: "right";
|
||||
};
|
||||
export declare const RelativeVerticalPosition: {
|
||||
readonly CENTER: "center";
|
||||
readonly INSIDE: "inside";
|
||||
readonly BOTTOM: "bottom";
|
||||
readonly OUTSIDE: "outside";
|
||||
readonly INLINE: "inline";
|
||||
readonly TOP: "top";
|
||||
};
|
||||
export declare const OverlapType: {
|
||||
readonly NEVER: "never";
|
||||
readonly OVERLAP: "overlap";
|
||||
};
|
||||
export type ITableFloatOptions = {
|
||||
readonly horizontalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
|
||||
readonly absoluteHorizontalPosition?: number | UniversalMeasure;
|
||||
readonly relativeHorizontalPosition?: (typeof RelativeHorizontalPosition)[keyof typeof RelativeHorizontalPosition];
|
||||
readonly verticalAnchor?: (typeof TableAnchorType)[keyof typeof TableAnchorType];
|
||||
readonly absoluteVerticalPosition?: number | UniversalMeasure;
|
||||
readonly relativeVerticalPosition?: (typeof RelativeVerticalPosition)[keyof typeof RelativeVerticalPosition];
|
||||
readonly bottomFromText?: number | PositiveUniversalMeasure;
|
||||
readonly topFromText?: number | PositiveUniversalMeasure;
|
||||
readonly leftFromText?: number | PositiveUniversalMeasure;
|
||||
readonly rightFromText?: number | PositiveUniversalMeasure;
|
||||
readonly overlap?: (typeof OverlapType)[keyof typeof OverlapType];
|
||||
};
|
||||
export declare const createTableFloatProperties: ({ horizontalAnchor, verticalAnchor, absoluteHorizontalPosition, relativeHorizontalPosition, absoluteVerticalPosition, relativeVerticalPosition, bottomFromText, topFromText, leftFromText, rightFromText, overlap, }: ITableFloatOptions) => XmlComponent;
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
export declare const TableLayoutType: {
|
||||
readonly AUTOFIT: "autofit";
|
||||
readonly FIXED: "fixed";
|
||||
};
|
||||
export declare const createTableLayout: (type: (typeof TableLayoutType)[keyof typeof TableLayoutType]) => XmlComponent;
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
export type ITableLookOptions = {
|
||||
readonly firstRow?: boolean;
|
||||
readonly lastRow?: boolean;
|
||||
readonly firstColumn?: boolean;
|
||||
readonly lastColumn?: boolean;
|
||||
readonly noHBand?: boolean;
|
||||
readonly noVBand?: boolean;
|
||||
};
|
||||
export declare const createTableLook: ({ firstRow, lastRow, firstColumn, lastColumn, noHBand, noVBand }: ITableLookOptions) => XmlComponent;
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
import { IChangedAttributesProperties } from '../../track-revision/track-revision';
|
||||
import { IgnoreIfEmptyXmlComponent } from '../../xml-components';
|
||||
import { AlignmentType } from '../../paragraph';
|
||||
import { IShadingAttributesProperties } from '../../shading';
|
||||
import { ITableWidthProperties } from '../table-width';
|
||||
import { ITableBordersOptions } from './table-borders';
|
||||
import { ITableCellMarginOptions } from './table-cell-margin';
|
||||
import { ITableFloatOptions } from './table-float-properties';
|
||||
import { TableLayoutType } from './table-layout';
|
||||
import { ITableCellSpacingProperties } from '../table-cell-spacing';
|
||||
import { ITableLookOptions } from './table-look';
|
||||
export type ITablePropertiesOptionsBase = {
|
||||
readonly width?: ITableWidthProperties;
|
||||
readonly indent?: ITableWidthProperties;
|
||||
readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
||||
readonly borders?: ITableBordersOptions;
|
||||
readonly float?: ITableFloatOptions;
|
||||
readonly shading?: IShadingAttributesProperties;
|
||||
readonly style?: string;
|
||||
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
||||
readonly cellMargin?: ITableCellMarginOptions;
|
||||
readonly visuallyRightToLeft?: boolean;
|
||||
readonly tableLook?: ITableLookOptions;
|
||||
readonly cellSpacing?: ITableCellSpacingProperties;
|
||||
};
|
||||
export type ITablePropertiesChangeOptions = ITablePropertiesOptions & IChangedAttributesProperties;
|
||||
export type ITablePropertiesOptions = {
|
||||
readonly revision?: ITablePropertiesChangeOptions;
|
||||
readonly includeIfEmpty?: boolean;
|
||||
} & ITablePropertiesOptionsBase;
|
||||
export declare class TableProperties extends IgnoreIfEmptyXmlComponent {
|
||||
constructor(options: ITablePropertiesOptions);
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
export * from './table-row';
|
||||
export * from './table-row-properties';
|
||||
export * from './table-row-height';
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
import { PositiveUniversalMeasure } from '../../../util/values';
|
||||
export declare const HeightRule: {
|
||||
readonly AUTO: "auto";
|
||||
readonly ATLEAST: "atLeast";
|
||||
readonly EXACT: "exact";
|
||||
};
|
||||
export declare const createTableRowHeight: (value: number | PositiveUniversalMeasure, rule: (typeof HeightRule)[keyof typeof HeightRule]) => XmlComponent;
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
import { IChangedAttributesProperties } from '../../track-revision/track-revision';
|
||||
import { IgnoreIfEmptyXmlComponent, XmlComponent } from '../../xml-components';
|
||||
import { PositiveUniversalMeasure } from '../../../util/values';
|
||||
import { HeightRule } from './table-row-height';
|
||||
import { ITableCellSpacingProperties } from '../table-cell-spacing';
|
||||
export type ITableRowPropertiesOptionsBase = {
|
||||
readonly cantSplit?: boolean;
|
||||
readonly tableHeader?: boolean;
|
||||
readonly height?: {
|
||||
readonly value: number | PositiveUniversalMeasure;
|
||||
readonly rule: (typeof HeightRule)[keyof typeof HeightRule];
|
||||
};
|
||||
readonly cellSpacing?: ITableCellSpacingProperties;
|
||||
};
|
||||
export type ITableRowPropertiesOptions = ITableRowPropertiesOptionsBase & {
|
||||
readonly insertion?: IChangedAttributesProperties;
|
||||
readonly deletion?: IChangedAttributesProperties;
|
||||
readonly revision?: ITableRowPropertiesChangeOptions;
|
||||
readonly includeIfEmpty?: boolean;
|
||||
};
|
||||
export type ITableRowPropertiesChangeOptions = ITableRowPropertiesOptionsBase & IChangedAttributesProperties;
|
||||
export declare class TableRowProperties extends IgnoreIfEmptyXmlComponent {
|
||||
constructor(options: ITableRowPropertiesOptions);
|
||||
}
|
||||
export declare class TableRowPropertiesChange extends XmlComponent {
|
||||
constructor(options: ITableRowPropertiesChangeOptions);
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { XmlComponent } from '../../xml-components';
|
||||
import { TableCell } from '../table-cell';
|
||||
import { ITableRowPropertiesOptions } from './table-row-properties';
|
||||
export type ITableRowOptions = {
|
||||
readonly children: readonly TableCell[];
|
||||
} & ITableRowPropertiesOptions;
|
||||
export declare class TableRow extends XmlComponent {
|
||||
private readonly options;
|
||||
constructor(options: ITableRowOptions);
|
||||
get CellCount(): number;
|
||||
get cells(): readonly TableCell[];
|
||||
addCellToIndex(cell: TableCell, index: number): void;
|
||||
addCellToColumnIndex(cell: TableCell, columnIndex: number): void;
|
||||
rootIndexToColumnIndex(rootIndex: number): number;
|
||||
columnIndexToRootIndex(columnIndex: number, allowEndNewCell?: boolean): number;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
import { XmlComponent } from '../xml-components';
|
||||
import { Percentage, UniversalMeasure } from '../../util/values';
|
||||
export declare const WidthType: {
|
||||
readonly AUTO: "auto";
|
||||
readonly DXA: "dxa";
|
||||
readonly NIL: "nil";
|
||||
readonly PERCENTAGE: "pct";
|
||||
};
|
||||
export type ITableWidthProperties = {
|
||||
readonly size: number | Percentage | UniversalMeasure;
|
||||
readonly type?: (typeof WidthType)[keyof typeof WidthType];
|
||||
};
|
||||
export declare const createTableWidthElement: (name: string, { type, size }: ITableWidthProperties) => XmlComponent;
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
import { FileChild } from '../file-child';
|
||||
import { AlignmentType } from '../paragraph';
|
||||
import { ITableGridChangeOptions } from './grid';
|
||||
import { ITableCellSpacingProperties } from './table-cell-spacing';
|
||||
import { ITableBordersOptions, ITableFloatOptions, ITablePropertiesChangeOptions } from './table-properties';
|
||||
import { ITableCellMarginOptions } from './table-properties/table-cell-margin';
|
||||
import { TableLayoutType } from './table-properties/table-layout';
|
||||
import { ITableLookOptions } from './table-properties/table-look';
|
||||
import { TableRow } from './table-row';
|
||||
import { ITableWidthProperties } from './table-width';
|
||||
export type ITableOptions = {
|
||||
readonly rows: readonly TableRow[];
|
||||
readonly width?: ITableWidthProperties;
|
||||
readonly columnWidths?: readonly number[];
|
||||
readonly columnWidthsRevision?: ITableGridChangeOptions;
|
||||
readonly margins?: ITableCellMarginOptions;
|
||||
readonly indent?: ITableWidthProperties;
|
||||
readonly float?: ITableFloatOptions;
|
||||
readonly layout?: (typeof TableLayoutType)[keyof typeof TableLayoutType];
|
||||
readonly style?: string;
|
||||
readonly borders?: ITableBordersOptions;
|
||||
readonly alignment?: (typeof AlignmentType)[keyof typeof AlignmentType];
|
||||
readonly visuallyRightToLeft?: boolean;
|
||||
readonly tableLook?: ITableLookOptions;
|
||||
readonly cellSpacing?: ITableCellSpacingProperties;
|
||||
readonly revision?: ITablePropertiesChangeOptions;
|
||||
};
|
||||
export declare class Table extends FileChild {
|
||||
constructor({ rows, width, columnWidths, columnWidthsRevision, margins, indent, float, layout, style, borders, alignment, visuallyRightToLeft, tableLook, cellSpacing, revision, }: ITableOptions);
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
Reference in New Issue
Block a user