Merge pull request #1748 from dolanmiu/feat/clean-up

Move SpaceType to shared
This commit is contained in:
Dolan
2022-10-29 04:21:57 +01:00
committed by GitHub
13 changed files with 12 additions and 11 deletions

View File

@ -18,4 +18,3 @@ export * from "./track-revision";
export * from "./shared"; export * from "./shared";
export * from "./border"; export * from "./border";
export * from "./vertical-align"; export * from "./vertical-align";
export * from "./space-type";

View File

@ -1,4 +1,4 @@
import { SpaceType } from "@file/space-type"; import { SpaceType } from "@file/shared";
import { XmlComponent } from "@file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { TextAttributes } from "../run/text-attributes"; import { TextAttributes } from "../run/text-attributes";

View File

@ -3,6 +3,7 @@ import { SinonStub, stub } from "sinon";
import * as convenienceFunctions from "@util/convenience-functions"; import * as convenienceFunctions from "@util/convenience-functions";
import { HorizontalPositionAlign, VerticalPositionAlign } from "@file/shared";
import { Formatter } from "@export/formatter"; import { Formatter } from "@export/formatter";
import { BorderStyle } from "@file/border"; import { BorderStyle } from "@file/border";
import { EMPTY_OBJECT } from "@file/xml-components"; import { EMPTY_OBJECT } from "@file/xml-components";
@ -10,7 +11,6 @@ import { EMPTY_OBJECT } from "@file/xml-components";
import { IViewWrapper } from "../document-wrapper"; import { IViewWrapper } from "../document-wrapper";
import { File } from "../file"; import { File } from "../file";
import { ShadingType } from "../shading"; import { ShadingType } from "../shading";
import { HorizontalPositionAlign, VerticalPositionAlign } from "../shared";
import { AlignmentType, HeadingLevel, LeaderType, PageBreak, TabStopPosition, TabStopType } from "./formatting"; import { AlignmentType, HeadingLevel, LeaderType, PageBreak, TabStopPosition, TabStopType } from "./formatting";
import { FrameAnchorType } from "./frame"; import { FrameAnchorType } from "./frame";
import { Bookmark, ExternalHyperlink } from "./links"; import { Bookmark, ExternalHyperlink } from "./links";

View File

@ -1,4 +1,4 @@
import { SpaceType } from "@file/space-type"; import { SpaceType } from "@file/shared";
import { XmlComponent } from "@file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { TextAttributes } from "./text-attributes"; import { TextAttributes } from "./text-attributes";

View File

@ -1,4 +1,4 @@
import { SpaceType } from "@file/space-type"; import { SpaceType } from "@file/shared";
import { XmlComponent } from "@file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { TextAttributes } from "../text-attributes"; import { TextAttributes } from "../text-attributes";

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/WPfieldInstructions.php // http://officeopenxml.com/WPfieldInstructions.php
import { SpaceType } from "@file/space-type"; import { SpaceType } from "@file/shared";
import { XmlComponent } from "@file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { TextAttributes } from "./text-attributes"; import { TextAttributes } from "./text-attributes";

View File

@ -1,4 +1,4 @@
import { SpaceType } from "@file/space-type"; import { SpaceType } from "@file/shared";
import { XmlAttributeComponent } from "@file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class TextAttributes extends XmlAttributeComponent<{ readonly space: SpaceType }> { export class TextAttributes extends XmlAttributeComponent<{ readonly space: SpaceType }> {

View File

@ -1,2 +1,3 @@
export * from "./alignment"; export * from "./alignment";
export * from "./number-format"; export * from "./number-format";
export * from "./space-type";

View File

@ -1,6 +1,6 @@
// http://officeopenxml.com/WPfieldInstructions.php // http://officeopenxml.com/WPfieldInstructions.php
import { TextAttributes } from "@file/paragraph/run/text-attributes"; import { TextAttributes } from "@file/paragraph/run/text-attributes";
import { SpaceType } from "@file/space-type"; import { SpaceType } from "@file/shared";
import { XmlComponent } from "@file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { ITableOfContentsOptions } from "./table-of-contents-properties"; import { ITableOfContentsOptions } from "./table-of-contents-properties";

View File

@ -1,5 +1,5 @@
import { TextAttributes } from "@file/paragraph/run/text-attributes"; import { TextAttributes } from "@file/paragraph/run/text-attributes";
import { SpaceType } from "@file/space-type"; import { SpaceType } from "@file/shared";
import { XmlComponent } from "@file/xml-components"; import { XmlComponent } from "@file/xml-components";
export class DeletedPage extends XmlComponent { export class DeletedPage extends XmlComponent {

View File

@ -1,5 +1,5 @@
import { TextAttributes } from "@file/paragraph/run/text-attributes"; import { TextAttributes } from "@file/paragraph/run/text-attributes";
import { SpaceType } from "@file/space-type"; import { SpaceType } from "@file/shared";
import { XmlComponent } from "@file/xml-components"; import { XmlComponent } from "@file/xml-components";
export class DeletedText extends XmlComponent { export class DeletedText extends XmlComponent {

View File

@ -16,7 +16,8 @@
"paths": { "paths": {
"@util/*": ["./util/*"], "@util/*": ["./util/*"],
"@export/*": ["./export/*"], "@export/*": ["./export/*"],
"@file/*": ["./file/*"] "@file/*": ["./file/*"],
"@shared": ["./shared/index.ts"]
} }
}, },
"include": ["src"] "include": ["src"]