Move sub components of Paragraph into own folder

This commit is contained in:
Dolan
2017-09-30 01:52:37 +01:00
parent 7dad717952
commit 32b56e7071
21 changed files with 37 additions and 37 deletions

View File

@ -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";

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/WPalignment.php
import { XmlAttributeComponent, XmlComponent } from "../xml-components";
import { XmlAttributeComponent, XmlComponent } from "../../xml-components";
export type AlignmentOptions = "left" | "center" | "right" | "both";

View File

@ -1,6 +1,6 @@
import { assert } from "chai";
import { Utility } from "../../tests/utility";
import { Utility } from "../../../tests/utility";
import { ThematicBreak } from "./border";
describe("Border", () => {

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/WPborders.php
import { Attributes, XmlComponent } from "../xml-components";
import { Attributes, XmlComponent } from "../../xml-components";
class Border extends XmlComponent {

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/WPindentation.php
import { XmlAttributeComponent, XmlComponent } from "../xml-components";
import { XmlAttributeComponent, XmlComponent } from "../../xml-components";
interface IIndentAttributesProperties {
left?: number;

View 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";

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "../xml-components";
import { XmlComponent } from "../../xml-components";
export class KeepLines extends XmlComponent {
constructor() {

View File

@ -1,6 +1,6 @@
import { assert } from "chai";
import { Utility } from "../../tests/utility";
import { Utility } from "../../../tests/utility";
import { PageBreak } from "./page-break";
describe("PageBreak", () => {

View File

@ -1,6 +1,6 @@
// http://officeopenxml.com/WPtextSpecialContent-break.php
import { Run } from "../run";
import { Attributes, XmlComponent } from "../xml-components";
import { Run } from "../../run";
import { Attributes, XmlComponent } from "../../xml-components";
class Break extends XmlComponent {

View File

@ -1,6 +1,6 @@
import { expect } from "chai";
import { Formatter } from "../../export/formatter";
import { Formatter } from "../../../export/formatter";
import { Spacing } from "./spacing";
describe("Spacing", () => {

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/WPspacing.php
import { XmlAttributeComponent, XmlComponent } from "../xml-components";
import { XmlAttributeComponent, XmlComponent } from "../../xml-components";
export interface ISpacingProperties {
after?: number;

View File

@ -1,6 +1,6 @@
import { assert } from "chai";
import { Utility } from "../../tests/utility";
import { Utility } from "../../../tests/utility";
import { Style } from "./style";
describe("ParagraphStyle", () => {

View File

@ -1,4 +1,4 @@
import { Attributes, XmlComponent } from "../xml-components";
import { Attributes, XmlComponent } from "../../xml-components";
export class Style extends XmlComponent {

View File

@ -1,6 +1,6 @@
import { assert } from "chai";
import { Utility } from "../../tests/utility";
import { Utility } from "../../../tests/utility";
import { LeftTabStop, MaxRightTabStop } from "./tab-stop";
describe("LeftTabStop", () => {

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/WPtab.php
import { XmlAttributeComponent, XmlComponent } from "../xml-components";
import { XmlAttributeComponent, XmlComponent } from "../../xml-components";
export class TabStop extends XmlComponent {

View File

@ -1,6 +1,6 @@
import { assert } from "chai";
import { Utility } from "../../tests/utility";
import { Utility } from "../../../tests/utility";
import { NumberProperties } from "./unordered-list";
describe("NumberProperties", () => {

View File

@ -1,4 +1,4 @@
import { Attributes, XmlComponent } from "../xml-components";
import { Attributes, XmlComponent } from "../../xml-components";
export class NumberProperties extends XmlComponent {

View File

@ -1,2 +1,3 @@
export * from "./formatting";
export * from "./paragraph";
export * from "./properties";

View File

@ -6,16 +6,16 @@ import { PictureRun } from "../run/picture-run";
import { TextRun } from "../run/text-run";
import { XmlComponent } from "../xml-components";
import { Alignment } from "./alignment";
import { ThematicBreak } from "./border";
import { Indent } from "./indent";
import { KeepLines, KeepNext } from "./keep";
import { PageBreak } from "./page-break";
import { Alignment } from "./formatting/alignment";
import { ThematicBreak } from "./formatting/border";
import { Indent } from "./formatting/indent";
import { KeepLines, KeepNext } from "./formatting/keep";
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 { 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 {
private properties: ParagraphProperties;

View File

@ -1,5 +1,5 @@
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 { XmlComponent } from "../docx/xml-components";
import { AbstractNumbering } from "./abstract-numbering";

View File

@ -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 { RunProperties } from "../../docx/run/properties";
import { XmlAttributeComponent, XmlComponent } from "../../docx/xml-components";