Move sub components of Paragraph into own folder
This commit is contained in:
@ -1,10 +0,0 @@
|
|||||||
export { Alignment } from "./alignment";
|
|
||||||
export { ThematicBreak } from "./border";
|
|
||||||
export { Indent } from "./indent";
|
|
||||||
export { KeepLines, KeepNext } from "./keep";
|
|
||||||
export { PageBreak } from "./page-break";
|
|
||||||
export { ParagraphProperties } from "./properties";
|
|
||||||
export { ISpacingProperties, Spacing } from "./spacing";
|
|
||||||
export { Style } from "./style";
|
|
||||||
export { LeftTabStop, MaxRightTabStop } from "./tab-stop";
|
|
||||||
export { NumberProperties } from "./unordered-list";
|
|
@ -1,5 +1,5 @@
|
|||||||
// http://officeopenxml.com/WPalignment.php
|
// http://officeopenxml.com/WPalignment.php
|
||||||
import { XmlAttributeComponent, XmlComponent } from "../xml-components";
|
import { XmlAttributeComponent, XmlComponent } from "../../xml-components";
|
||||||
|
|
||||||
export type AlignmentOptions = "left" | "center" | "right" | "both";
|
export type AlignmentOptions = "left" | "center" | "right" | "both";
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
import { assert } from "chai";
|
import { assert } from "chai";
|
||||||
|
|
||||||
import { Utility } from "../../tests/utility";
|
import { Utility } from "../../../tests/utility";
|
||||||
import { ThematicBreak } from "./border";
|
import { ThematicBreak } from "./border";
|
||||||
|
|
||||||
describe("Border", () => {
|
describe("Border", () => {
|
@ -1,5 +1,5 @@
|
|||||||
// http://officeopenxml.com/WPborders.php
|
// http://officeopenxml.com/WPborders.php
|
||||||
import { Attributes, XmlComponent } from "../xml-components";
|
import { Attributes, XmlComponent } from "../../xml-components";
|
||||||
|
|
||||||
class Border extends XmlComponent {
|
class Border extends XmlComponent {
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
// http://officeopenxml.com/WPindentation.php
|
// http://officeopenxml.com/WPindentation.php
|
||||||
import { XmlAttributeComponent, XmlComponent } from "../xml-components";
|
import { XmlAttributeComponent, XmlComponent } from "../../xml-components";
|
||||||
|
|
||||||
interface IIndentAttributesProperties {
|
interface IIndentAttributesProperties {
|
||||||
left?: number;
|
left?: number;
|
9
ts/docx/paragraph/formatting/index.ts
Normal file
9
ts/docx/paragraph/formatting/index.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export * from "./alignment";
|
||||||
|
export * from "./border";
|
||||||
|
export * from "./indent";
|
||||||
|
export * from "./keep";
|
||||||
|
export * from "./page-break";
|
||||||
|
export * from "./spacing";
|
||||||
|
export * from "./style";
|
||||||
|
export * from "./tab-stop";
|
||||||
|
export * from "./unordered-list";
|
@ -1,4 +1,4 @@
|
|||||||
import { XmlComponent } from "../xml-components";
|
import { XmlComponent } from "../../xml-components";
|
||||||
|
|
||||||
export class KeepLines extends XmlComponent {
|
export class KeepLines extends XmlComponent {
|
||||||
constructor() {
|
constructor() {
|
@ -1,6 +1,6 @@
|
|||||||
import { assert } from "chai";
|
import { assert } from "chai";
|
||||||
|
|
||||||
import { Utility } from "../../tests/utility";
|
import { Utility } from "../../../tests/utility";
|
||||||
import { PageBreak } from "./page-break";
|
import { PageBreak } from "./page-break";
|
||||||
|
|
||||||
describe("PageBreak", () => {
|
describe("PageBreak", () => {
|
@ -1,6 +1,6 @@
|
|||||||
// http://officeopenxml.com/WPtextSpecialContent-break.php
|
// http://officeopenxml.com/WPtextSpecialContent-break.php
|
||||||
import { Run } from "../run";
|
import { Run } from "../../run";
|
||||||
import { Attributes, XmlComponent } from "../xml-components";
|
import { Attributes, XmlComponent } from "../../xml-components";
|
||||||
|
|
||||||
class Break extends XmlComponent {
|
class Break extends XmlComponent {
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
import { expect } from "chai";
|
import { expect } from "chai";
|
||||||
|
|
||||||
import { Formatter } from "../../export/formatter";
|
import { Formatter } from "../../../export/formatter";
|
||||||
import { Spacing } from "./spacing";
|
import { Spacing } from "./spacing";
|
||||||
|
|
||||||
describe("Spacing", () => {
|
describe("Spacing", () => {
|
@ -1,5 +1,5 @@
|
|||||||
// http://officeopenxml.com/WPspacing.php
|
// http://officeopenxml.com/WPspacing.php
|
||||||
import { XmlAttributeComponent, XmlComponent } from "../xml-components";
|
import { XmlAttributeComponent, XmlComponent } from "../../xml-components";
|
||||||
|
|
||||||
export interface ISpacingProperties {
|
export interface ISpacingProperties {
|
||||||
after?: number;
|
after?: number;
|
@ -1,6 +1,6 @@
|
|||||||
import { assert } from "chai";
|
import { assert } from "chai";
|
||||||
|
|
||||||
import { Utility } from "../../tests/utility";
|
import { Utility } from "../../../tests/utility";
|
||||||
import { Style } from "./style";
|
import { Style } from "./style";
|
||||||
|
|
||||||
describe("ParagraphStyle", () => {
|
describe("ParagraphStyle", () => {
|
@ -1,4 +1,4 @@
|
|||||||
import { Attributes, XmlComponent } from "../xml-components";
|
import { Attributes, XmlComponent } from "../../xml-components";
|
||||||
|
|
||||||
export class Style extends XmlComponent {
|
export class Style extends XmlComponent {
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
import { assert } from "chai";
|
import { assert } from "chai";
|
||||||
|
|
||||||
import { Utility } from "../../tests/utility";
|
import { Utility } from "../../../tests/utility";
|
||||||
import { LeftTabStop, MaxRightTabStop } from "./tab-stop";
|
import { LeftTabStop, MaxRightTabStop } from "./tab-stop";
|
||||||
|
|
||||||
describe("LeftTabStop", () => {
|
describe("LeftTabStop", () => {
|
@ -1,5 +1,5 @@
|
|||||||
// http://officeopenxml.com/WPtab.php
|
// http://officeopenxml.com/WPtab.php
|
||||||
import { XmlAttributeComponent, XmlComponent } from "../xml-components";
|
import { XmlAttributeComponent, XmlComponent } from "../../xml-components";
|
||||||
|
|
||||||
export class TabStop extends XmlComponent {
|
export class TabStop extends XmlComponent {
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
import { assert } from "chai";
|
import { assert } from "chai";
|
||||||
|
|
||||||
import { Utility } from "../../tests/utility";
|
import { Utility } from "../../../tests/utility";
|
||||||
import { NumberProperties } from "./unordered-list";
|
import { NumberProperties } from "./unordered-list";
|
||||||
|
|
||||||
describe("NumberProperties", () => {
|
describe("NumberProperties", () => {
|
@ -1,4 +1,4 @@
|
|||||||
import { Attributes, XmlComponent } from "../xml-components";
|
import { Attributes, XmlComponent } from "../../xml-components";
|
||||||
|
|
||||||
export class NumberProperties extends XmlComponent {
|
export class NumberProperties extends XmlComponent {
|
||||||
|
|
@ -1,2 +1,3 @@
|
|||||||
export * from "./formatting";
|
export * from "./formatting";
|
||||||
export * from "./paragraph";
|
export * from "./paragraph";
|
||||||
|
export * from "./properties";
|
||||||
|
@ -6,16 +6,16 @@ import { PictureRun } from "../run/picture-run";
|
|||||||
import { TextRun } from "../run/text-run";
|
import { TextRun } from "../run/text-run";
|
||||||
import { XmlComponent } from "../xml-components";
|
import { XmlComponent } from "../xml-components";
|
||||||
|
|
||||||
import { Alignment } from "./alignment";
|
import { Alignment } from "./formatting/alignment";
|
||||||
import { ThematicBreak } from "./border";
|
import { ThematicBreak } from "./formatting/border";
|
||||||
import { Indent } from "./indent";
|
import { Indent } from "./formatting/indent";
|
||||||
import { KeepLines, KeepNext } from "./keep";
|
import { KeepLines, KeepNext } from "./formatting/keep";
|
||||||
import { PageBreak } from "./page-break";
|
import { PageBreak } from "./formatting/page-break";
|
||||||
|
import { ISpacingProperties, Spacing } from "./formatting/spacing";
|
||||||
|
import { Style } from "./formatting/style";
|
||||||
|
import { CenterTabStop, LeftTabStop, MaxRightTabStop, RightTabStop } from "./formatting/tab-stop";
|
||||||
|
import { NumberProperties } from "./formatting/unordered-list";
|
||||||
import { ParagraphProperties } from "./properties";
|
import { ParagraphProperties } from "./properties";
|
||||||
import { ISpacingProperties, Spacing } from "./spacing";
|
|
||||||
import { Style } from "./style";
|
|
||||||
import { CenterTabStop, LeftTabStop, MaxRightTabStop, RightTabStop } from "./tab-stop";
|
|
||||||
import { NumberProperties } from "./unordered-list";
|
|
||||||
|
|
||||||
export class Paragraph extends XmlComponent {
|
export class Paragraph extends XmlComponent {
|
||||||
private properties: ParagraphProperties;
|
private properties: ParagraphProperties;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { DocumentAttributes } from "../docx/document/document-attributes";
|
import { DocumentAttributes } from "../docx/document/document-attributes";
|
||||||
import { Indent } from "../docx/paragraph/indent";
|
import { Indent } from "../docx/paragraph/formatting";
|
||||||
import { RunFonts } from "../docx/run/run-fonts";
|
import { RunFonts } from "../docx/run/run-fonts";
|
||||||
import { XmlComponent } from "../docx/xml-components";
|
import { XmlComponent } from "../docx/xml-components";
|
||||||
import { AbstractNumbering } from "./abstract-numbering";
|
import { AbstractNumbering } from "./abstract-numbering";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import * as paragraph from "../../docx/paragraph/formatting";
|
import * as paragraph from "../../docx/paragraph";
|
||||||
import * as formatting from "../../docx/run/formatting";
|
import * as formatting from "../../docx/run/formatting";
|
||||||
import { RunProperties } from "../../docx/run/properties";
|
import { RunProperties } from "../../docx/run/properties";
|
||||||
import { XmlAttributeComponent, XmlComponent } from "../../docx/xml-components";
|
import { XmlAttributeComponent, XmlComponent } from "../../docx/xml-components";
|
||||||
|
Reference in New Issue
Block a user