diff --git a/src/file/numbering/level.ts b/src/file/numbering/level.ts index 0bf575ada1..e053c6c79b 100644 --- a/src/file/numbering/level.ts +++ b/src/file/numbering/level.ts @@ -1,4 +1,5 @@ // http://officeopenxml.com/WPnumbering-numFmt.php +// http://www.datypic.com/sc/ooxml/a-w_val-57.html import { Attributes, NumberValueElement, XmlAttributeComponent, XmlComponent } from "@file/xml-components"; import { decimalNumber } from "@util/values"; @@ -6,21 +7,138 @@ import { AlignmentType } from "../paragraph/formatting"; import { ILevelParagraphStylePropertiesOptions, ParagraphProperties } from "../paragraph/properties"; import { IRunStylePropertiesOptions, RunProperties } from "../paragraph/run/properties"; +// TODO: Breaking change - consolidate with number-format +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// +// export enum LevelFormat { - BULLET = "bullet", - CARDINAL_TEXT = "cardinalText", - CHICAGO = "chicago", DECIMAL = "decimal", + UPPER_ROMAN = "upperRoman", + LOWER_ROMAN = "lowerRoman", + UPPER_LETTER = "upperLetter", + LOWER_LETTER = "lowerLetter", + ORDINAL = "ordinal", + CARDINAL_TEXT = "cardinalText", + ORDINAL_TEXT = "ordinalText", + HEX = "hex", + CHICAGO = "chicago", + IDEOGRAPH__DIGITAL = "ideographDigital", + JAPANESE_COUNTING = "japaneseCounting", + AIUEO = "aiueo", + IROHA = "iroha", + DECIMAL_FULL_WIDTH = "decimalFullWidth", + DECIMAL_HALF_WIDTH = "decimalHalfWidth", + JAPANESE_LEGAL = "japaneseLegal", + JAPANESE_DIGITAL_TEN_THOUSAND = "japaneseDigitalTenThousand", DECIMAL_ENCLOSED_CIRCLE = "decimalEnclosedCircle", + DECIMAL_FULL_WIDTH2 = "decimalFullWidth2", + AIUEO_FULL_WIDTH = "aiueoFullWidth", + IROHA_FULL_WIDTH = "irohaFullWidth", + DECIMAL_ZERO = "decimalZero", + BULLET = "bullet", + GANADA = "ganada", + CHOSUNG = "chosung", DECIMAL_ENCLOSED_FULLSTOP = "decimalEnclosedFullstop", DECIMAL_ENCLOSED_PARENTHESES = "decimalEnclosedParen", - DECIMAL_ZERO = "decimalZero", - LOWER_LETTER = "lowerLetter", - LOWER_ROMAN = "lowerRoman", + DECIMAL_ENCLOSED_CIRCLE_CHINESE = "decimalEnclosedCircleChinese", + IDEOGRAPH_ENCLOSED_CIRCLE = "ideographEnclosedCircle", + IDEOGRAPH_TRADITIONAL = "ideographTraditional", + IDEOGRAPH_ZODIAC = "ideographZodiac", + IDEOGRAPH_ZODIAC_TRADITIONAL = "ideographZodiacTraditional", + TAIWANESE_COUNTING = "taiwaneseCounting", + IDEOGRAPH_LEGAL_TRADITIONAL = "ideographLegalTraditional", + TAIWANESE_COUNTING_THOUSAND = "taiwaneseCountingThousand", + TAIWANESE_DIGITAL = "taiwaneseDigital", + CHINESE_COUNTING = "chineseCounting", + CHINESE_LEGAL_SIMPLIFIED = "chineseLegalSimplified", + CHINESE_COUNTING_THOUSAND = "chineseCountingThousand", + KOREAN_DIGITAL = "koreanDigital", + KOREAN_COUNTING = "koreanCounting", + KOREAN_LEGAL = "koreanLegal", + KOREAN_DIGITAL2 = "koreanDigital2", + VIETNAMESE_COUNTING = "vietnameseCounting", + RUSSIAN_LOWER = "russianLower", + RUSSIAN_UPPER = "russianUpper", NONE = "none", - ORDINAL_TEXT = "ordinalText", - UPPER_LETTER = "upperLetter", - UPPER_ROMAN = "upperRoman", + NUMBER_IN_DASH = "numberInDash", + HEBREW1 = "hebrew1", + HEBREW2 = "hebrew2", + ARABIC_ALPHA = "arabicAlpha", + ARABIC_ABJAD = "arabicAbjad", + HINDI_VOWELS = "hindiVowels", + HINDI_CONSONANTS = "hindiConsonants", + HINDI_NUMBERS = "hindiNumbers", + HINDI_COUNTING = "hindiCounting", + THAI_LETTERS = "thaiLetters", + THAI_NUMBERS = "thaiNumbers", + THAI_COUNTING = "thaiCounting", + BAHT_TEXT = "bahtText", + DOLLAR_TEXT = "dollarText", + CUSTOM = "custom", } class LevelAttributes extends XmlAttributeComponent<{