@phensley/cldr-schema
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -30,5 +30,5 @@ "use strict"; | ||
instructions_1.scopemap('intervalFormats', schema_1.IntervalFormatValues, [ | ||
instructions_1.scopefield('field', schema_1.DateTimeFieldValues) | ||
instructions_1.scopefield('field', schema_1.DateTimePatternFieldValues) | ||
]) | ||
]); | ||
//# sourceMappingURL=gregorian.js.map |
@@ -9,2 +9,3 @@ "use strict"; | ||
var currencies_1 = require("./currencies"); | ||
var datefields_1 = require("./datefields"); | ||
var gregorian_1 = require("./gregorian"); | ||
@@ -17,2 +18,3 @@ var numbers_1 = require("./numbers"); | ||
numbers_1.NUMBERS, | ||
datefields_1.DATEFIELDS, | ||
gregorian_1.GREGORIAN, | ||
@@ -19,0 +21,0 @@ currencies_1.CURRENCIES, |
@@ -1,11 +0,11 @@ | ||
export declare const DateTimeField: { | ||
export declare const DateTimePatternField: { | ||
YEAR: "a" | "y" | "M" | "d" | "H" | "m" | "s"; | ||
MONTH: "a" | "y" | "M" | "d" | "H" | "m" | "s"; | ||
DAY: "a" | "y" | "M" | "d" | "H" | "m" | "s"; | ||
AM_PM: "a" | "y" | "M" | "d" | "H" | "m" | "s"; | ||
HOUR: "a" | "y" | "M" | "d" | "H" | "m" | "s"; | ||
MINUTE: "a" | "y" | "M" | "d" | "H" | "m" | "s"; | ||
SECOND: "a" | "y" | "M" | "d" | "H" | "m" | "s"; | ||
}, DateTimeFieldValues: ("a" | "y" | "M" | "d" | "H" | "m" | "s")[]; | ||
export declare type DateTimeFieldType = 'y' | 'M' | 'd' | 'a' | 'H' | 'm' | 's'; | ||
AM_PM: "a" | "y" | "M" | "d" | "H" | "m" | "s"; | ||
}, DateTimePatternFieldValues: ("a" | "y" | "M" | "d" | "H" | "m" | "s")[]; | ||
export declare type DateTimePatternFieldType = 'y' | 'M' | 'd' | 'a' | 'H' | 'm' | 's'; | ||
export declare const DayPeriod: { | ||
@@ -12,0 +12,0 @@ NOON: "noon" | "midnight" | "am" | "pm" | "morning1" | "morning2" | "afternoon1" | "afternoon2" | "evening1" | "evening2" | "night1" | "night2"; |
@@ -6,3 +6,3 @@ "use strict"; | ||
// Values 'h' and 'H' for hours have been unified to 'H' for uniqueness. | ||
exports.DateTimeField = (_a = types_1.makeKeyedEnum([ | ||
exports.DateTimePatternField = (_a = types_1.makeKeyedEnum([ | ||
['YEAR', 'y'], | ||
@@ -15,3 +15,3 @@ ['MONTH', 'M'], | ||
['SECOND', 's'] | ||
]), _a[0]), exports.DateTimeFieldValues = _a[1]; | ||
]), _a[0]), exports.DateTimePatternFieldValues = _a[1]; | ||
exports.DayPeriod = (_b = types_1.makeKeyedEnum([ | ||
@@ -18,0 +18,0 @@ ['NOON', 'noon'], |
import { FieldArrow, FieldMapArrow, FieldMapIndexedArrow, ScopeArrow } from '../arrows'; | ||
import { Alt } from '../enums'; | ||
import { AvailableFormatType, EraType, IntervalFormatType, MonthType } from './enums'; | ||
import { DateTimeFieldType, DayPeriodsFormats, FormatWidthType, QuartersFormats, WeekdaysFormats } from '../calendar'; | ||
import { DateTimePatternFieldType, DayPeriodsFormats, FormatWidthType, QuartersFormats, WeekdaysFormats } from '../calendar'; | ||
export interface ErasFormat { | ||
@@ -11,3 +11,3 @@ readonly names: FieldMapArrow<EraType>; | ||
export interface IntervalFormats { | ||
readonly field: FieldMapArrow<DateTimeFieldType>; | ||
readonly field: FieldMapArrow<DateTimePatternFieldType>; | ||
} | ||
@@ -14,0 +14,0 @@ export interface MonthsFormat { |
export * from './arrows'; | ||
export * from './enums'; | ||
export * from './datefields'; | ||
export * from './calendar'; | ||
@@ -10,4 +11,5 @@ export * from './gregorian'; | ||
export * from './units'; | ||
import { Currencies, Gregorian, Numbers, Territories, TimeZoneNames, Units } from '.'; | ||
import { Currencies, DateFields, Gregorian, Numbers, Territories, TimeZoneNames, Units } from '.'; | ||
export interface Schema { | ||
readonly DateFields: DateFields; | ||
readonly Gregorian: Gregorian; | ||
@@ -14,0 +16,0 @@ readonly Numbers: Numbers; |
@@ -8,2 +8,3 @@ "use strict"; | ||
__export(require("./enums")); | ||
__export(require("./datefields")); | ||
__export(require("./calendar")); | ||
@@ -10,0 +11,0 @@ __export(require("./gregorian")); |
{ | ||
"name": "@phensley/cldr-schema", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "Schema for @phensley/cldr", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
4179703
122
17161