Re-order package
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { assert } from "chai";
|
||||
import * as fs from "fs";
|
||||
|
||||
import { Utility } from "../../../../tests/utility";
|
||||
import { Utility } from "../../tests/utility";
|
||||
import { Drawing } from "./";
|
||||
|
||||
describe("Drawing", () => {
|
@ -1,5 +1,5 @@
|
||||
import { IData } from "../../../../media/data";
|
||||
import { XmlComponent } from "../../../xml-components";
|
||||
import { XmlComponent } from "../../docx/xml-components";
|
||||
import { IData } from "../../media/data";
|
||||
import { Inline } from "./inline";
|
||||
|
||||
export class Drawing extends XmlComponent {
|
@ -1,4 +1,4 @@
|
||||
import { XmlComponent } from "../../../../../../xml-components";
|
||||
import { XmlComponent } from "../../../../xml-components";
|
||||
import { Pic } from "./pic";
|
||||
|
||||
export class GraphicData extends XmlComponent {
|
@ -1,4 +1,4 @@
|
||||
import { XmlComponent } from "../../../../../../../../xml-components";
|
||||
import { XmlComponent } from "../../../../../../xml-components";
|
||||
import { Blip } from "./blip";
|
||||
import { SourceRectangle } from "./source-rectangle";
|
||||
import { Stretch } from "./stretch";
|
@ -1,4 +1,4 @@
|
||||
import { XmlAttributeComponent, XmlComponent } from "../../../../../../../../xml-components";
|
||||
import { XmlAttributeComponent, XmlComponent } from "../../../../../../xml-components";
|
||||
|
||||
interface IBlipProperties {
|
||||
embed: string;
|
@ -1,4 +1,4 @@
|
||||
import { XmlComponent } from "../../../../../../../../xml-components";
|
||||
import { XmlComponent } from "../../../../../../xml-components";
|
||||
|
||||
export class SourceRectangle extends XmlComponent {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { XmlComponent } from "../../../../../../../../xml-components";
|
||||
import { XmlComponent } from "../../../../../../xml-components";
|
||||
|
||||
class FillRectangle extends XmlComponent {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { XmlComponent } from "../../../../../../../xml-components";
|
||||
import { XmlComponent } from "../../../../../xml-components";
|
||||
import { BlipFill } from "./blip/blip-fill";
|
||||
|
||||
export class Pic extends XmlComponent {
|
@ -1,4 +1,4 @@
|
||||
import { XmlAttributeComponent, XmlComponent } from "../../../../../xml-components";
|
||||
import { XmlAttributeComponent, XmlComponent } from "../../../../docx/xml-components";
|
||||
import { GraphicData } from "./graphic-data";
|
||||
|
||||
interface IGraphicProperties {
|
@ -1,4 +1,4 @@
|
||||
import { XmlComponent } from "../../../../xml-components";
|
||||
import { XmlComponent } from "../../../docx/xml-components";
|
||||
import { Graphic } from "./graphic";
|
||||
|
||||
export class Inline extends XmlComponent {
|
@ -1,5 +1,4 @@
|
||||
export * from "./document";
|
||||
export * from "./paragraph";
|
||||
export * from "./run";
|
||||
export { Table } from "./table";
|
||||
export { File } from "./file";
|
||||
export * from "./table";
|
||||
export * from "./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";
|
||||
|
||||
class Break extends XmlComponent {
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
export * from "./formatting";
|
||||
export * from "./paragraph";
|
||||
export * from "./properties";
|
||||
export * from "./run";
|
||||
|
||||
|
@ -1,10 +1,8 @@
|
||||
// http://officeopenxml.com/WPparagraph.php
|
||||
import { IData } from "../../media/data";
|
||||
import { Num } from "../../numbering/num";
|
||||
import { Run } from "../run";
|
||||
import { PictureRun } from "../run/picture-run";
|
||||
import { TextRun } from "../run/text-run";
|
||||
import { XmlComponent } from "../xml-components";
|
||||
import { PictureRun, Run, TextRun } from "./run";
|
||||
|
||||
import { Alignment } from "./formatting/alignment";
|
||||
import { ThematicBreak } from "./formatting/border";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { assert } from "chai";
|
||||
|
||||
import { Utility } from "../../tests/utility";
|
||||
import { Utility } from "../../../tests/utility";
|
||||
import { Break } from "./break";
|
||||
|
||||
describe("Break", () => {
|
@ -1,5 +1,5 @@
|
||||
// http://officeopenxml.com/WPtextSpecialContent-break.php
|
||||
import { XmlComponent } from "../xml-components";
|
||||
import { XmlComponent } from "../../xml-components";
|
||||
|
||||
export class Break extends XmlComponent {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { XmlComponent } from "../xml-components";
|
||||
import { XmlComponent } from "../../xml-components";
|
||||
|
||||
export class SmallCaps extends XmlComponent {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Attributes, XmlComponent } from "../xml-components";
|
||||
import { Attributes, XmlComponent } from "../../xml-components";
|
||||
export { Underline } from "./underline";
|
||||
export { SubScript, SuperScript } from "./script";
|
||||
export { RunFonts } from "./run-fonts";
|
@ -1,6 +1,6 @@
|
||||
import { IData } from "../../media/data";
|
||||
import { IData } from "../../../media/data";
|
||||
import { Drawing } from "../../drawing";
|
||||
import { Run } from "../run";
|
||||
import { Drawing } from "./run-components/drawing";
|
||||
|
||||
export class PictureRun extends Run {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { XmlComponent } from "../xml-components";
|
||||
import { XmlComponent } from "../../xml-components";
|
||||
|
||||
export class RunProperties extends XmlComponent {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { expect } from "chai";
|
||||
|
||||
import { Formatter } from "../../../export/formatter";
|
||||
import { Formatter } from "../../../../export/formatter";
|
||||
import { Text } from "./text";
|
||||
|
||||
describe("Text", () => {
|
@ -1,4 +1,4 @@
|
||||
import { XmlAttributeComponent, XmlComponent } from "../../xml-components";
|
||||
import { XmlAttributeComponent, XmlComponent } from "../../../xml-components";
|
||||
|
||||
class TextAttributes extends XmlAttributeComponent<{space: "default" | "preserve"}> {
|
||||
protected xmlKeys = {space: "xml:space"};
|
@ -1,6 +1,6 @@
|
||||
import { expect } from "chai";
|
||||
|
||||
import { Formatter } from "../../export/formatter";
|
||||
import { Formatter } from "../../../export/formatter";
|
||||
import { RunFonts } from "./run-fonts";
|
||||
|
||||
describe("RunFonts", () => {
|
@ -1,4 +1,4 @@
|
||||
import { XmlAttributeComponent, XmlComponent } from "../xml-components";
|
||||
import { XmlAttributeComponent, XmlComponent } from "../../xml-components";
|
||||
|
||||
interface IRunFontAttributesProperties {
|
||||
ascii: string;
|
@ -1,7 +1,7 @@
|
||||
import { assert, expect } from "chai";
|
||||
|
||||
import { Formatter } from "../../export/formatter";
|
||||
import { Utility } from "../../tests/utility";
|
||||
import { Formatter } from "../../../export/formatter";
|
||||
import { Utility } from "../../../tests/utility";
|
||||
import { Run } from "./";
|
||||
|
||||
describe("Run", () => {
|
@ -9,7 +9,7 @@ import { Style } from "./style";
|
||||
import { Tab } from "./tab";
|
||||
import { Underline } from "./underline";
|
||||
|
||||
import { XmlComponent } from "../xml-components";
|
||||
import { XmlComponent } from "../../xml-components";
|
||||
|
||||
export class Run extends XmlComponent {
|
||||
private properties: RunProperties;
|
@ -1,6 +1,6 @@
|
||||
import { assert } from "chai";
|
||||
|
||||
import { Utility } from "../../tests/utility";
|
||||
import { Utility } from "../../../tests/utility";
|
||||
import { SubScript, SuperScript } from "./script";
|
||||
|
||||
describe("SubScript", () => {
|
@ -1,4 +1,4 @@
|
||||
import { Attributes, XmlComponent } from "../xml-components";
|
||||
import { Attributes, XmlComponent } from "../../xml-components";
|
||||
|
||||
export abstract class VerticalAlign extends XmlComponent {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { assert } from "chai";
|
||||
|
||||
import { Utility } from "../../tests/utility";
|
||||
import { Utility } from "../../../tests/utility";
|
||||
import { DoubleStrike, Strike } from "./formatting";
|
||||
|
||||
describe("Strike", () => {
|
@ -1,4 +1,4 @@
|
||||
import { XmlAttributeComponent, XmlComponent } from "../xml-components";
|
||||
import { XmlAttributeComponent, XmlComponent } from "../../xml-components";
|
||||
|
||||
class StyleAttributes extends XmlAttributeComponent<{val: string}> {
|
||||
protected xmlKeys = {val: "w:val"};
|
@ -1,6 +1,6 @@
|
||||
import { assert } from "chai";
|
||||
|
||||
import { Utility } from "../../tests/utility";
|
||||
import { Utility } from "../../../tests/utility";
|
||||
import { Tab } from "./tab";
|
||||
|
||||
describe("Tab", () => {
|
@ -1,4 +1,4 @@
|
||||
import { XmlComponent } from "../xml-components";
|
||||
import { XmlComponent } from "../../xml-components";
|
||||
|
||||
export class Tab extends XmlComponent {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { expect } from "chai";
|
||||
|
||||
import { Formatter } from "../../export/formatter";
|
||||
import { Formatter } from "../../../export/formatter";
|
||||
import { TextRun } from "./text-run";
|
||||
|
||||
describe("TextRun", () => {
|
@ -1,7 +1,7 @@
|
||||
import { assert, expect } from "chai";
|
||||
|
||||
import { Formatter } from "../../export/formatter";
|
||||
import { Utility } from "../../tests/utility";
|
||||
import { Formatter } from "../../../export/formatter";
|
||||
import { Utility } from "../../../tests/utility";
|
||||
import * as u from "./underline";
|
||||
|
||||
describe("Underline", () => {
|
@ -1,4 +1,4 @@
|
||||
import { Attributes, XmlComponent } from "../xml-components";
|
||||
import { Attributes, XmlComponent } from "../../xml-components";
|
||||
|
||||
export abstract class BaseUnderline extends XmlComponent {
|
||||
|
@ -5,7 +5,7 @@ import { File } from "../../docx";
|
||||
import { Paragraph } from "../../docx/paragraph";
|
||||
import { LocalPacker } from "../../export/packer/local";
|
||||
|
||||
describe.only("LocalPacker", () => {
|
||||
describe("LocalPacker", () => {
|
||||
let packer: LocalPacker;
|
||||
|
||||
beforeEach(() => {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import * as paragraph from "../docx/paragraph/formatting";
|
||||
import { ParagraphProperties } from "../docx/paragraph/properties";
|
||||
import * as formatting from "../docx/run/formatting";
|
||||
import { RunProperties } from "../docx/run/properties";
|
||||
import * as formatting from "../docx/paragraph/run/formatting";
|
||||
import { RunProperties } from "../docx/paragraph/run/properties";
|
||||
import { Attributes, XmlAttributeComponent, XmlComponent } from "../docx/xml-components";
|
||||
|
||||
interface ILevelAttributesProperties {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { DocumentAttributes } from "../docx/document/document-attributes";
|
||||
import { Indent } from "../docx/paragraph/formatting";
|
||||
import { RunFonts } from "../docx/run/run-fonts";
|
||||
import { RunFonts } from "../docx/paragraph/run/run-fonts";
|
||||
import { XmlComponent } from "../docx/xml-components";
|
||||
import { AbstractNumbering } from "./abstract-numbering";
|
||||
import { Num } from "./num";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Size } from "../../docx/run/formatting";
|
||||
import { RunProperties } from "../../docx/run/properties";
|
||||
import { RunFonts } from "../../docx/run/run-fonts";
|
||||
import { Size } from "../../docx/paragraph/run/formatting";
|
||||
import { RunProperties } from "../../docx/paragraph/run/properties";
|
||||
import { RunFonts } from "../../docx/paragraph/run/run-fonts";
|
||||
import { XmlComponent } from "../../docx/xml-components";
|
||||
|
||||
export class RunPropertiesDefaults extends XmlComponent {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Color, Italics, Size } from "../docx/run/formatting";
|
||||
import { Color, Italics, Size } from "../docx/paragraph/run/formatting";
|
||||
|
||||
import { Styles } from "./";
|
||||
// import { DocumentDefaults } from "./defaults";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import * as paragraph from "../../docx/paragraph";
|
||||
import * as formatting from "../../docx/run/formatting";
|
||||
import { RunProperties } from "../../docx/run/properties";
|
||||
import * as formatting from "../../docx/paragraph/run/formatting";
|
||||
import { RunProperties } from "../../docx/paragraph/run/properties";
|
||||
import { XmlAttributeComponent, XmlComponent } from "../../docx/xml-components";
|
||||
|
||||
import { BasedOn, Name, Next, QuickFormat } from "./components";
|
||||
|
Reference in New Issue
Block a user