@phensley/cldr-schema
Advanced tools
Comparing version 0.26.0 to 1.0.0
import { Origin } from '../instructions'; | ||
/** | ||
* @public | ||
*/ | ||
export interface SchemaConfig { | ||
@@ -70,2 +73,5 @@ /** | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare class CodeBuilder { | ||
@@ -72,0 +78,0 @@ private config; |
@@ -31,2 +31,5 @@ import { __assign } from "tslib"; | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
var CodeBuilder = /** @class */ (function () { | ||
@@ -33,0 +36,0 @@ function CodeBuilder(config) { |
import { Scope } from '../instructions'; | ||
export declare const TIMEZONE: Scope; | ||
export declare const TIMEZONE_INDICES: { | ||
'metazone': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").MetaZoneType>; | ||
metazone: import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").MetaZoneType>; | ||
'timezone-type': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").TimeZoneNameType>; | ||
}; |
import { KeyIndex } from '@phensley/cldr-types'; | ||
/** | ||
* Inverse mapping of a key to its index in an array. | ||
* | ||
* @public | ||
*/ | ||
@@ -14,2 +16,5 @@ export declare class KeyIndexImpl<T extends string> implements KeyIndex<T> { | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface Digits { | ||
@@ -21,2 +26,5 @@ readonly type: 'digits'; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface Field { | ||
@@ -26,2 +34,5 @@ readonly type: 'field'; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface Origin { | ||
@@ -36,2 +47,5 @@ readonly type: 'origin'; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare class OriginImpl implements Origin { | ||
@@ -49,2 +63,5 @@ readonly block: Scope[]; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface Scope { | ||
@@ -56,2 +73,5 @@ readonly type: 'scope'; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface ScopeMap { | ||
@@ -63,2 +83,5 @@ readonly type: 'scopemap'; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface Vector1 { | ||
@@ -69,2 +92,5 @@ readonly type: 'vector1'; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface Vector2 { | ||
@@ -76,11 +102,35 @@ readonly type: 'vector2'; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type Instruction = Digits | Field | Origin | Scope | ScopeMap | Vector1 | Vector2; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const digits: (name: string, dim0: string, values: number[]) => Digits; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const field: (name: string) => Field; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const origin: (block: Scope[], indices: { | ||
[x: string]: KeyIndex<any>; | ||
}) => Origin; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const scope: (name: string, identifier: string, block: Instruction[]) => Scope; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const scopemap: (name: string, fields: string, block: Instruction[]) => ScopeMap; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const vector1: (name: string, dim0: string) => Vector1; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const vector2: (name: string, dim0: string, dim1: string) => Vector2; |
/** | ||
* Inverse mapping of a key to its index in an array. | ||
* | ||
* @public | ||
*/ | ||
@@ -25,2 +27,5 @@ var KeyIndexImpl = /** @class */ (function () { | ||
var WARNED = {}; | ||
/** | ||
* @public | ||
*/ | ||
var OriginImpl = /** @class */ (function () { | ||
@@ -51,20 +56,41 @@ function OriginImpl(block, indices) { | ||
export { OriginImpl }; | ||
/** | ||
* @internal | ||
*/ | ||
export var digits = function (name, dim0, values) { | ||
return ({ type: 'digits', name: name, dim0: dim0, values: values }); | ||
}; | ||
/** | ||
* @internal | ||
*/ | ||
export var field = function (name) { | ||
return ({ type: 'field', name: name }); | ||
}; | ||
/** | ||
* @internal | ||
*/ | ||
export var origin = function (block, indices) { | ||
return new OriginImpl(block, indices); | ||
}; | ||
/** | ||
* @internal | ||
*/ | ||
export var scope = function (name, identifier, block) { | ||
return ({ type: 'scope', name: name, identifier: identifier, block: block }); | ||
}; | ||
/** | ||
* @internal | ||
*/ | ||
export var scopemap = function (name, fields, block) { | ||
return ({ type: 'scopemap', name: name, fields: fields, block: block }); | ||
}; | ||
/** | ||
* @internal | ||
*/ | ||
export var vector1 = function (name, dim0) { | ||
return ({ type: 'vector1', name: name, dim0: dim0 }); | ||
}; | ||
/** | ||
* @internal | ||
*/ | ||
export var vector2 = function (name, dim0, dim1) { | ||
@@ -71,0 +97,0 @@ return ({ type: 'vector2', name: name, dim0: dim0, dim1: dim1 }); |
import { DigitsArrow, FieldArrow, KeyIndex, PrimitiveBundle, ScopeArrow, Vector1Arrow, Vector2Arrow } from '@phensley/cldr-types'; | ||
/** | ||
* @public | ||
*/ | ||
export declare class FieldArrowImpl implements FieldArrow { | ||
@@ -7,2 +10,5 @@ readonly offset: number; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare class ScopeArrowImpl<T extends string, R> implements ScopeArrow<T, R> { | ||
@@ -19,2 +25,4 @@ readonly map: { | ||
* Special vector to store a pluralized number pattern and its divisor together. | ||
* | ||
* @public | ||
*/ | ||
@@ -30,2 +38,5 @@ export declare class DigitsArrowImpl<T extends string> implements DigitsArrow<T> { | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare class Vector1ArrowImpl<T extends string> implements Vector1Arrow<T> { | ||
@@ -42,2 +53,5 @@ readonly index: KeyIndex<T>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare class Vector2ArrowImpl<T extends string, S extends string> implements Vector2Arrow<T, S> { | ||
@@ -44,0 +58,0 @@ readonly index1: KeyIndex<T>; |
@@ -0,1 +1,4 @@ | ||
/** | ||
* @public | ||
*/ | ||
var FieldArrowImpl = /** @class */ (function () { | ||
@@ -11,2 +14,5 @@ function FieldArrowImpl(offset) { | ||
export { FieldArrowImpl }; | ||
/** | ||
* @public | ||
*/ | ||
var ScopeArrowImpl = /** @class */ (function () { | ||
@@ -24,2 +30,4 @@ function ScopeArrowImpl(map) { | ||
* Special vector to store a pluralized number pattern and its divisor together. | ||
* | ||
* @public | ||
*/ | ||
@@ -52,2 +60,5 @@ var DigitsArrowImpl = /** @class */ (function () { | ||
export { DigitsArrowImpl }; | ||
/** | ||
* @public | ||
*/ | ||
var Vector1ArrowImpl = /** @class */ (function () { | ||
@@ -92,2 +103,5 @@ function Vector1ArrowImpl(offset, index) { | ||
export { Vector1ArrowImpl }; | ||
/** | ||
* @public | ||
*/ | ||
var Vector2ArrowImpl = /** @class */ (function () { | ||
@@ -94,0 +108,0 @@ function Vector2ArrowImpl(offset, index1, index2) { |
import { ContextTransformFieldType } from '@phensley/cldr-types'; | ||
/** @public */ | ||
export declare const ContextTransformFieldValues: ContextTransformFieldType[]; |
@@ -5,3 +5,4 @@ // | ||
/* tslint:disable:max-line-length */ | ||
/** @public */ | ||
export var ContextTransformFieldValues = ('calendar-field currencyName day-format-except-narrow day-standalone-except-narrow era-abbr era-name keyValue languages month-format-except-narrow month-standalone-except-narrow number-spellout relative script typographicNames').split(' '); | ||
//# sourceMappingURL=autogen.context.js.map |
import { MetaZoneType } from '@phensley/cldr-types'; | ||
/** @public */ | ||
export declare const TimeZoneStableIds: string[]; | ||
/** @public */ | ||
export declare const MetaZoneValues: MetaZoneType[]; |
@@ -5,5 +5,7 @@ // | ||
/* tslint:disable:max-line-length */ | ||
/** @public */ | ||
export var TimeZoneStableIds = ('Africa/Abidjan Africa/Accra Africa/Addis_Ababa Africa/Algiers Africa/Asmera Africa/Bamako Africa/Bangui Africa/Banjul Africa/Bissau Africa/Blantyre Africa/Brazzaville Africa/Bujumbura Africa/Cairo Africa/Casablanca Africa/Ceuta Africa/Conakry Africa/Dakar Africa/Dar_es_Salaam Africa/Djibouti Africa/Douala Africa/El_Aaiun Africa/Freetown Africa/Gaborone Africa/Harare Africa/Johannesburg Africa/Juba Africa/Kampala Africa/Khartoum Africa/Kigali Africa/Kinshasa Africa/Lagos Africa/Libreville Africa/Lome Africa/Luanda Africa/Lubumbashi Africa/Lusaka Africa/Malabo Africa/Maputo Africa/Maseru Africa/Mbabane Africa/Mogadishu Africa/Monrovia Africa/Nairobi Africa/Ndjamena Africa/Niamey Africa/Nouakchott Africa/Ouagadougou Africa/Porto-Novo Africa/Sao_Tome Africa/Tripoli Africa/Tunis Africa/Windhoek America/Adak America/Anchorage America/Anguilla America/Antigua America/Araguaina America/Argentina/La_Rioja America/Argentina/Rio_Gallegos America/Argentina/Salta America/Argentina/San_Juan America/Argentina/San_Luis America/Argentina/Tucuman America/Argentina/Ushuaia America/Aruba America/Asuncion America/Bahia America/Bahia_Banderas America/Barbados America/Belem America/Belize America/Blanc-Sablon America/Boa_Vista America/Bogota America/Boise America/Buenos_Aires America/Cambridge_Bay America/Campo_Grande America/Cancun America/Caracas America/Catamarca America/Cayenne America/Cayman America/Chicago America/Chihuahua America/Coral_Harbour America/Cordoba America/Costa_Rica America/Creston America/Cuiaba America/Curacao America/Danmarkshavn America/Dawson America/Dawson_Creek America/Denver America/Detroit America/Dominica America/Edmonton America/Eirunepe America/El_Salvador America/Fort_Nelson America/Fortaleza America/Glace_Bay America/Godthab America/Goose_Bay America/Grand_Turk America/Grenada America/Guadeloupe America/Guatemala America/Guayaquil America/Guyana America/Halifax America/Havana America/Hermosillo America/Indiana/Knox America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Tell_City America/Indiana/Vevay America/Indiana/Vincennes America/Indiana/Winamac America/Indianapolis America/Inuvik America/Iqaluit America/Jamaica America/Jujuy America/Juneau America/Kentucky/Monticello America/Kralendijk America/La_Paz America/Lima America/Los_Angeles America/Louisville America/Lower_Princes America/Maceio America/Managua America/Manaus America/Marigot America/Martinique America/Matamoros America/Mazatlan America/Mendoza America/Menominee America/Merida America/Metlakatla America/Mexico_City America/Miquelon America/Moncton America/Monterrey America/Montevideo America/Montserrat America/Nassau America/New_York America/Nipigon America/Nome America/Noronha America/North_Dakota/Beulah America/North_Dakota/Center America/North_Dakota/New_Salem America/Ojinaga America/Panama America/Pangnirtung America/Paramaribo America/Phoenix America/Port-au-Prince America/Port_of_Spain America/Porto_Velho America/Puerto_Rico America/Punta_Arenas America/Rainy_River America/Rankin_Inlet America/Recife America/Regina America/Resolute America/Rio_Branco America/Santa_Isabel America/Santarem America/Santiago America/Santo_Domingo America/Sao_Paulo America/Scoresbysund America/Sitka America/St_Barthelemy America/St_Johns America/St_Kitts America/St_Lucia America/St_Thomas America/St_Vincent America/Swift_Current America/Tegucigalpa America/Thule America/Thunder_Bay America/Tijuana America/Toronto America/Tortola America/Vancouver America/Whitehorse America/Winnipeg America/Yakutat America/Yellowknife Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Macquarie Antarctica/Mawson Antarctica/McMurdo Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Arctic/Longyearbyen Asia/Aden Asia/Almaty Asia/Amman Asia/Anadyr Asia/Aqtau Asia/Aqtobe Asia/Ashgabat Asia/Atyrau Asia/Baghdad Asia/Bahrain Asia/Baku Asia/Bangkok Asia/Barnaul Asia/Beirut Asia/Bishkek Asia/Brunei Asia/Calcutta Asia/Chita Asia/Choibalsan Asia/Colombo Asia/Damascus Asia/Dhaka Asia/Dili Asia/Dubai Asia/Dushanbe Asia/Famagusta Asia/Gaza Asia/Hebron Asia/Hong_Kong Asia/Hovd Asia/Irkutsk Asia/Jakarta Asia/Jayapura Asia/Jerusalem Asia/Kabul Asia/Kamchatka Asia/Karachi Asia/Katmandu Asia/Khandyga Asia/Krasnoyarsk Asia/Kuala_Lumpur Asia/Kuching Asia/Kuwait Asia/Macau Asia/Magadan Asia/Makassar Asia/Manila Asia/Muscat Asia/Nicosia Asia/Novokuznetsk Asia/Novosibirsk Asia/Omsk Asia/Oral Asia/Phnom_Penh Asia/Pontianak Asia/Pyongyang Asia/Qatar Asia/Qostanay Asia/Qyzylorda Asia/Rangoon Asia/Riyadh Asia/Saigon Asia/Sakhalin Asia/Samarkand Asia/Seoul Asia/Shanghai Asia/Singapore Asia/Srednekolymsk Asia/Taipei Asia/Tashkent Asia/Tbilisi Asia/Tehran Asia/Thimphu Asia/Tokyo Asia/Tomsk Asia/Ulaanbaatar Asia/Urumqi Asia/Ust-Nera Asia/Vientiane Asia/Vladivostok Asia/Yakutsk Asia/Yekaterinburg Asia/Yerevan Atlantic/Azores Atlantic/Bermuda Atlantic/Canary Atlantic/Cape_Verde Atlantic/Faeroe Atlantic/Madeira Atlantic/Reykjavik Atlantic/South_Georgia Atlantic/St_Helena Atlantic/Stanley Australia/Adelaide Australia/Brisbane Australia/Broken_Hill Australia/Currie Australia/Darwin Australia/Eucla Australia/Hobart Australia/Lindeman Australia/Lord_Howe Australia/Melbourne Australia/Perth Australia/Sydney Etc/UTC Etc/Unknown Europe/Amsterdam Europe/Andorra Europe/Astrakhan Europe/Athens Europe/Belgrade Europe/Berlin Europe/Bratislava Europe/Brussels Europe/Bucharest Europe/Budapest Europe/Busingen Europe/Chisinau Europe/Copenhagen Europe/Dublin Europe/Gibraltar Europe/Guernsey Europe/Helsinki Europe/Isle_of_Man Europe/Istanbul Europe/Jersey Europe/Kaliningrad Europe/Kiev Europe/Kirov Europe/Lisbon Europe/Ljubljana Europe/London Europe/Luxembourg Europe/Madrid Europe/Malta Europe/Mariehamn Europe/Minsk Europe/Monaco Europe/Moscow Europe/Oslo Europe/Paris Europe/Podgorica Europe/Prague Europe/Riga Europe/Rome Europe/Samara Europe/San_Marino Europe/Sarajevo Europe/Saratov Europe/Simferopol Europe/Skopje Europe/Sofia Europe/Stockholm Europe/Tallinn Europe/Tirane Europe/Ulyanovsk Europe/Uzhgorod Europe/Vaduz Europe/Vatican Europe/Vienna Europe/Vilnius Europe/Volgograd Europe/Warsaw Europe/Zagreb Europe/Zaporozhye Europe/Zurich Indian/Antananarivo Indian/Chagos Indian/Christmas Indian/Cocos Indian/Comoro Indian/Kerguelen Indian/Mahe Indian/Maldives Indian/Mauritius Indian/Mayotte Indian/Reunion Pacific/Apia Pacific/Auckland Pacific/Bougainville Pacific/Chatham Pacific/Easter Pacific/Efate Pacific/Enderbury Pacific/Fakaofo Pacific/Fiji Pacific/Funafuti Pacific/Galapagos Pacific/Gambier Pacific/Guadalcanal Pacific/Guam Pacific/Honolulu Pacific/Johnston Pacific/Kiritimati Pacific/Kosrae Pacific/Kwajalein Pacific/Majuro Pacific/Marquesas Pacific/Midway Pacific/Nauru Pacific/Niue Pacific/Norfolk Pacific/Noumea Pacific/Pago_Pago Pacific/Palau Pacific/Pitcairn Pacific/Ponape Pacific/Port_Moresby Pacific/Rarotonga Pacific/Saipan Pacific/Tahiti Pacific/Tarawa Pacific/Tongatapu Pacific/Truk Pacific/Wake Pacific/Wallis').split(' '); | ||
/* tslint:disable:max-line-length */ | ||
/** @public */ | ||
export var MetaZoneValues = ('Acre Afghanistan Africa_Central Africa_Eastern Africa_Southern Africa_Western Alaska Almaty Amazon America_Central America_Eastern America_Mountain America_Pacific Anadyr Apia Aqtau Aqtobe Arabian Argentina Argentina_Western Armenia Atlantic Australia_Central Australia_CentralWestern Australia_Eastern Australia_Western Azerbaijan Azores Bangladesh Bhutan Bolivia Brasilia Brunei Cape_Verde Casey Chamorro Chatham Chile China Choibalsan Christmas Cocos Colombia Cook Cuba Davis DumontDUrville East_Timor Easter Ecuador Europe_Central Europe_Eastern Europe_Further_Eastern Europe_Western Falkland Fiji French_Guiana French_Southern GMT Galapagos Gambier Georgia Gilbert_Islands Greenland_Eastern Greenland_Western Guam Gulf Guyana Hawaii_Aleutian Hong_Kong Hovd India Indian_Ocean Indochina Indonesia_Central Indonesia_Eastern Indonesia_Western Iran Irkutsk Israel Japan Kamchatka Kazakhstan_Eastern Kazakhstan_Western Korea Kosrae Krasnoyarsk Kyrgystan Lanka Line_Islands Lord_Howe Macau Macquarie Magadan Malaysia Maldives Marquesas Marshall_Islands Mauritius Mawson Mexico_Northwest Mexico_Pacific Mongolia Moscow Myanmar Nauru Nepal New_Caledonia New_Zealand Newfoundland Niue Norfolk Noronha North_Mariana Novosibirsk Omsk Pakistan Palau Papua_New_Guinea Paraguay Peru Philippines Phoenix_Islands Pierre_Miquelon Pitcairn Ponape Pyongyang Qyzylorda Reunion Rothera Sakhalin Samara Samoa Seychelles Singapore Solomon South_Georgia Suriname Syowa Tahiti Taipei Tajikistan Tokelau Tonga Truk Turkmenistan Tuvalu Uruguay Uzbekistan Vanuatu Venezuela Vladivostok Volgograd Vostok Wake Wallis Yakutsk Yekaterinburg').split(' '); | ||
//# sourceMappingURL=autogen.timezones.js.map |
import { DateTimePatternFieldType, DayPeriodType, EraWidthType, FieldWidthType, FormatWidthType, KeyIndex, QuarterType, WeekdayType } from '@phensley/cldr-types'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const BuddhistEraIndex: KeyIndex<string>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const GregorianEraIndex: KeyIndex<string>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const JapaneseEraIndex: KeyIndex<string>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const PersianEraIndex: KeyIndex<string>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const GregorianMonthsIndex: KeyIndex<string>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const DateTimePatternFieldValues: DateTimePatternFieldType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const DayPeriodValues: DayPeriodType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const EraWidthValues: EraWidthType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const FieldWidthValues: FieldWidthType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const FormatWidthValues: FormatWidthType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const QuarterValues: QuarterType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const WeekdayValues: WeekdayType[]; |
@@ -13,10 +13,31 @@ import { KeyIndexImpl } from '../instructions'; | ||
}; | ||
/** | ||
* @public | ||
*/ | ||
export var BuddhistEraIndex = rangeindex(0, 0); | ||
/** | ||
* @public | ||
*/ | ||
export var GregorianEraIndex = rangeindex(0, 1); | ||
/** | ||
* @public | ||
*/ | ||
export var JapaneseEraIndex = rangeindex(0, 236); | ||
/** | ||
* @public | ||
*/ | ||
export var PersianEraIndex = BuddhistEraIndex; | ||
/** | ||
* @public | ||
*/ | ||
export var GregorianMonthsIndex = rangeindex(1, 12); | ||
/** | ||
* @public | ||
*/ | ||
export var DateTimePatternFieldValues = [ | ||
'y', 'M', 'd', 'a', 'H', 'm', 's' | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
export var DayPeriodValues = [ | ||
@@ -26,14 +47,29 @@ 'noon', 'midnight', 'am', 'pm', 'morning1', 'morning2', | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
export var EraWidthValues = [ | ||
'names', 'abbr', 'narrow' | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
export var FieldWidthValues = [ | ||
'abbreviated', 'narrow', 'short', 'wide' | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
export var FormatWidthValues = [ | ||
'short', 'medium', 'long', 'full' | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
export var QuarterValues = [ | ||
'1', '2', '3', '4' | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
export var WeekdayValues = [ | ||
@@ -40,0 +76,0 @@ '1', '2', '3', '4', '5', '6', '7' |
import { KeyIndexImpl } from '../instructions'; | ||
import { DateFieldType, DateFieldWidthType, RelativeTimeFieldType } from '@phensley/cldr-types'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const DateFieldValues: DateFieldType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const DateFieldWidthValues: DateFieldWidthType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const RelativeTimeFieldValues: RelativeTimeFieldType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const DateFieldIndex: KeyIndexImpl<DateFieldType>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const DateFieldWidthIndex: KeyIndexImpl<DateFieldWidthType>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const RelativeTimeFieldIndex: KeyIndexImpl<RelativeTimeFieldType>; |
import { KeyIndexImpl } from '../instructions'; | ||
/** | ||
* @public | ||
*/ | ||
export var DateFieldValues = [ | ||
@@ -7,5 +10,11 @@ 'era', 'year', 'quarter', 'month', 'week', | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
export var DateFieldWidthValues = [ | ||
'short', 'narrow', 'wide' | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
export var RelativeTimeFieldValues = [ | ||
@@ -15,5 +24,14 @@ 'year', 'quarter', 'month', 'week', 'day', | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
export var DateFieldIndex = new KeyIndexImpl(DateFieldValues); | ||
/** | ||
* @public | ||
*/ | ||
export var DateFieldWidthIndex = new KeyIndexImpl(DateFieldWidthValues); | ||
/** | ||
* @public | ||
*/ | ||
export var RelativeTimeFieldIndex = new KeyIndexImpl(RelativeTimeFieldValues); | ||
//# sourceMappingURL=datefields.js.map |
import { PluralType } from '@phensley/cldr-types'; | ||
import { KeyIndexImpl } from '../instructions'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const PluralIndex: KeyIndexImpl<PluralType>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const AltIndex: KeyIndexImpl<import("../../../cldr-types/lib").AltType>; |
import { KeyIndexImpl } from '../instructions'; | ||
/** | ||
* @public | ||
*/ | ||
export var PluralIndex = new KeyIndexImpl(['other', 'zero', 'one', 'two', 'few', 'many']); | ||
/** | ||
* @public | ||
*/ | ||
export var AltIndex = new KeyIndexImpl(['none', 'short', 'narrow', 'variant', 'stand-alone', 'long', 'menu']); | ||
//# sourceMappingURL=enums.js.map |
import { ContextTransformFieldType, ListPatternPositionType } from '@phensley/cldr-types'; | ||
import { KeyIndexImpl } from '../instructions'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const ListPatternPositionIndex: KeyIndexImpl<ListPatternPositionType>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const ContextTransformFieldIndex: KeyIndexImpl<ContextTransformFieldType>; |
import { KeyIndexImpl } from '../instructions'; | ||
import { ContextTransformFieldValues } from './autogen.context'; | ||
/** | ||
* @public | ||
*/ | ||
export var ListPatternPositionIndex = new KeyIndexImpl(['start', 'middle', 'end', 'two']); | ||
/** | ||
* @public | ||
*/ | ||
export var ContextTransformFieldIndex = new KeyIndexImpl(ContextTransformFieldValues); | ||
//# sourceMappingURL=general.js.map |
import { CurrencySpacingPattern, CurrencySpacingPos, NumberMiscPatternType, NumberSymbolType, NumberSystemCategory } from '@phensley/cldr-types'; | ||
import { KeyIndexImpl } from '../instructions'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const PluralDigitValues: number[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const CurrencySpacingPosIndex: KeyIndexImpl<CurrencySpacingPos>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const CurrencySpacingPatternIndex: KeyIndexImpl<CurrencySpacingPattern>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const NumberSymbolValues: NumberSymbolType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const NumberSystemCategoryValues: NumberSystemCategory[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const NumberMiscPatternValues: NumberMiscPatternType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const NumberMiscPatternIndex: KeyIndexImpl<NumberMiscPatternType>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const NumberSystemsIndex: KeyIndexImpl<NumberSystemCategory>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const NumberSymbolIndex: KeyIndexImpl<NumberSymbolType>; |
import { KeyIndexImpl } from '../instructions'; | ||
/** | ||
* @public | ||
*/ | ||
export var PluralDigitValues = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; | ||
/** | ||
* @public | ||
*/ | ||
export var CurrencySpacingPosIndex = new KeyIndexImpl(['before', 'after']); | ||
/** | ||
* @public | ||
*/ | ||
export var CurrencySpacingPatternIndex = new KeyIndexImpl(['currencyMatch', 'surroundingMatch', 'insertBetween']); | ||
/** | ||
* @public | ||
*/ | ||
export var NumberSymbolValues = [ | ||
@@ -21,11 +33,26 @@ 'currencyDecimal', | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
export var NumberSystemCategoryValues = [ | ||
'default', 'native', 'finance', 'traditional' | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
export var NumberMiscPatternValues = [ | ||
'at-least', 'at-most', 'approx', 'range' | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
export var NumberMiscPatternIndex = new KeyIndexImpl(NumberMiscPatternValues); | ||
/** | ||
* @public | ||
*/ | ||
export var NumberSystemsIndex = new KeyIndexImpl(NumberSystemCategoryValues); | ||
/** | ||
* @public | ||
*/ | ||
export var NumberSymbolIndex = new KeyIndexImpl(NumberSymbolValues); | ||
//# sourceMappingURL=numbers.js.map |
import { KeyIndexImpl } from '../instructions'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const MetaZoneIndex: KeyIndexImpl<import("../../../cldr-types/lib").MetaZoneType>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const TimeZoneTypeIndex: KeyIndexImpl<import("../../../cldr-types/lib").TimeZoneNameType>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const TimeZoneStableIdIndex: KeyIndexImpl<string>; |
import { MetaZoneValues, TimeZoneStableIds } from './autogen.timezones'; | ||
import { KeyIndexImpl } from '../instructions'; | ||
/** | ||
* @public | ||
*/ | ||
export var MetaZoneIndex = new KeyIndexImpl(MetaZoneValues); | ||
/** | ||
* @public | ||
*/ | ||
export var TimeZoneTypeIndex = new KeyIndexImpl(['daylight', 'generic', 'standard']); | ||
/** | ||
* @public | ||
*/ | ||
export var TimeZoneStableIdIndex = new KeyIndexImpl(TimeZoneStableIds); | ||
//# sourceMappingURL=timezones.js.map |
import { Origin } from '../instructions'; | ||
/** | ||
* @public | ||
*/ | ||
export interface SchemaConfig { | ||
@@ -70,2 +73,5 @@ /** | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare class CodeBuilder { | ||
@@ -72,0 +78,0 @@ private config; |
@@ -33,2 +33,5 @@ "use strict"; | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
var CodeBuilder = /** @class */ (function () { | ||
@@ -35,0 +38,0 @@ function CodeBuilder(config) { |
import { Scope } from '../instructions'; | ||
export declare const TIMEZONE: Scope; | ||
export declare const TIMEZONE_INDICES: { | ||
'metazone': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").MetaZoneType>; | ||
metazone: import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").MetaZoneType>; | ||
'timezone-type': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").TimeZoneNameType>; | ||
}; |
import { KeyIndex } from '@phensley/cldr-types'; | ||
/** | ||
* Inverse mapping of a key to its index in an array. | ||
* | ||
* @public | ||
*/ | ||
@@ -14,2 +16,5 @@ export declare class KeyIndexImpl<T extends string> implements KeyIndex<T> { | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface Digits { | ||
@@ -21,2 +26,5 @@ readonly type: 'digits'; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface Field { | ||
@@ -26,2 +34,5 @@ readonly type: 'field'; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface Origin { | ||
@@ -36,2 +47,5 @@ readonly type: 'origin'; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare class OriginImpl implements Origin { | ||
@@ -49,2 +63,5 @@ readonly block: Scope[]; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface Scope { | ||
@@ -56,2 +73,5 @@ readonly type: 'scope'; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface ScopeMap { | ||
@@ -63,2 +83,5 @@ readonly type: 'scopemap'; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface Vector1 { | ||
@@ -69,2 +92,5 @@ readonly type: 'vector1'; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export interface Vector2 { | ||
@@ -76,11 +102,35 @@ readonly type: 'vector2'; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type Instruction = Digits | Field | Origin | Scope | ScopeMap | Vector1 | Vector2; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const digits: (name: string, dim0: string, values: number[]) => Digits; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const field: (name: string) => Field; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const origin: (block: Scope[], indices: { | ||
[x: string]: KeyIndex<any>; | ||
}) => Origin; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const scope: (name: string, identifier: string, block: Instruction[]) => Scope; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const scopemap: (name: string, fields: string, block: Instruction[]) => ScopeMap; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const vector1: (name: string, dim0: string) => Vector1; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const vector2: (name: string, dim0: string, dim1: string) => Vector2; |
@@ -5,2 +5,4 @@ "use strict"; | ||
* Inverse mapping of a key to its index in an array. | ||
* | ||
* @public | ||
*/ | ||
@@ -28,2 +30,5 @@ var KeyIndexImpl = /** @class */ (function () { | ||
var WARNED = {}; | ||
/** | ||
* @public | ||
*/ | ||
var OriginImpl = /** @class */ (function () { | ||
@@ -54,20 +59,41 @@ function OriginImpl(block, indices) { | ||
exports.OriginImpl = OriginImpl; | ||
/** | ||
* @internal | ||
*/ | ||
exports.digits = function (name, dim0, values) { | ||
return ({ type: 'digits', name: name, dim0: dim0, values: values }); | ||
}; | ||
/** | ||
* @internal | ||
*/ | ||
exports.field = function (name) { | ||
return ({ type: 'field', name: name }); | ||
}; | ||
/** | ||
* @internal | ||
*/ | ||
exports.origin = function (block, indices) { | ||
return new OriginImpl(block, indices); | ||
}; | ||
/** | ||
* @internal | ||
*/ | ||
exports.scope = function (name, identifier, block) { | ||
return ({ type: 'scope', name: name, identifier: identifier, block: block }); | ||
}; | ||
/** | ||
* @internal | ||
*/ | ||
exports.scopemap = function (name, fields, block) { | ||
return ({ type: 'scopemap', name: name, fields: fields, block: block }); | ||
}; | ||
/** | ||
* @internal | ||
*/ | ||
exports.vector1 = function (name, dim0) { | ||
return ({ type: 'vector1', name: name, dim0: dim0 }); | ||
}; | ||
/** | ||
* @internal | ||
*/ | ||
exports.vector2 = function (name, dim0, dim1) { | ||
@@ -74,0 +100,0 @@ return ({ type: 'vector2', name: name, dim0: dim0, dim1: dim1 }); |
import { DigitsArrow, FieldArrow, KeyIndex, PrimitiveBundle, ScopeArrow, Vector1Arrow, Vector2Arrow } from '@phensley/cldr-types'; | ||
/** | ||
* @public | ||
*/ | ||
export declare class FieldArrowImpl implements FieldArrow { | ||
@@ -7,2 +10,5 @@ readonly offset: number; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare class ScopeArrowImpl<T extends string, R> implements ScopeArrow<T, R> { | ||
@@ -19,2 +25,4 @@ readonly map: { | ||
* Special vector to store a pluralized number pattern and its divisor together. | ||
* | ||
* @public | ||
*/ | ||
@@ -30,2 +38,5 @@ export declare class DigitsArrowImpl<T extends string> implements DigitsArrow<T> { | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare class Vector1ArrowImpl<T extends string> implements Vector1Arrow<T> { | ||
@@ -42,2 +53,5 @@ readonly index: KeyIndex<T>; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare class Vector2ArrowImpl<T extends string, S extends string> implements Vector2Arrow<T, S> { | ||
@@ -44,0 +58,0 @@ readonly index1: KeyIndex<T>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* @public | ||
*/ | ||
var FieldArrowImpl = /** @class */ (function () { | ||
@@ -13,2 +16,5 @@ function FieldArrowImpl(offset) { | ||
exports.FieldArrowImpl = FieldArrowImpl; | ||
/** | ||
* @public | ||
*/ | ||
var ScopeArrowImpl = /** @class */ (function () { | ||
@@ -26,2 +32,4 @@ function ScopeArrowImpl(map) { | ||
* Special vector to store a pluralized number pattern and its divisor together. | ||
* | ||
* @public | ||
*/ | ||
@@ -54,2 +62,5 @@ var DigitsArrowImpl = /** @class */ (function () { | ||
exports.DigitsArrowImpl = DigitsArrowImpl; | ||
/** | ||
* @public | ||
*/ | ||
var Vector1ArrowImpl = /** @class */ (function () { | ||
@@ -94,2 +105,5 @@ function Vector1ArrowImpl(offset, index) { | ||
exports.Vector1ArrowImpl = Vector1ArrowImpl; | ||
/** | ||
* @public | ||
*/ | ||
var Vector2ArrowImpl = /** @class */ (function () { | ||
@@ -96,0 +110,0 @@ function Vector2ArrowImpl(offset, index1, index2) { |
import { ContextTransformFieldType } from '@phensley/cldr-types'; | ||
/** @public */ | ||
export declare const ContextTransformFieldValues: ContextTransformFieldType[]; |
@@ -7,3 +7,4 @@ "use strict"; | ||
/* tslint:disable:max-line-length */ | ||
/** @public */ | ||
exports.ContextTransformFieldValues = ('calendar-field currencyName day-format-except-narrow day-standalone-except-narrow era-abbr era-name keyValue languages month-format-except-narrow month-standalone-except-narrow number-spellout relative script typographicNames').split(' '); | ||
//# sourceMappingURL=autogen.context.js.map |
import { MetaZoneType } from '@phensley/cldr-types'; | ||
/** @public */ | ||
export declare const TimeZoneStableIds: string[]; | ||
/** @public */ | ||
export declare const MetaZoneValues: MetaZoneType[]; |
@@ -7,5 +7,7 @@ "use strict"; | ||
/* tslint:disable:max-line-length */ | ||
/** @public */ | ||
exports.TimeZoneStableIds = ('Africa/Abidjan Africa/Accra Africa/Addis_Ababa Africa/Algiers Africa/Asmera Africa/Bamako Africa/Bangui Africa/Banjul Africa/Bissau Africa/Blantyre Africa/Brazzaville Africa/Bujumbura Africa/Cairo Africa/Casablanca Africa/Ceuta Africa/Conakry Africa/Dakar Africa/Dar_es_Salaam Africa/Djibouti Africa/Douala Africa/El_Aaiun Africa/Freetown Africa/Gaborone Africa/Harare Africa/Johannesburg Africa/Juba Africa/Kampala Africa/Khartoum Africa/Kigali Africa/Kinshasa Africa/Lagos Africa/Libreville Africa/Lome Africa/Luanda Africa/Lubumbashi Africa/Lusaka Africa/Malabo Africa/Maputo Africa/Maseru Africa/Mbabane Africa/Mogadishu Africa/Monrovia Africa/Nairobi Africa/Ndjamena Africa/Niamey Africa/Nouakchott Africa/Ouagadougou Africa/Porto-Novo Africa/Sao_Tome Africa/Tripoli Africa/Tunis Africa/Windhoek America/Adak America/Anchorage America/Anguilla America/Antigua America/Araguaina America/Argentina/La_Rioja America/Argentina/Rio_Gallegos America/Argentina/Salta America/Argentina/San_Juan America/Argentina/San_Luis America/Argentina/Tucuman America/Argentina/Ushuaia America/Aruba America/Asuncion America/Bahia America/Bahia_Banderas America/Barbados America/Belem America/Belize America/Blanc-Sablon America/Boa_Vista America/Bogota America/Boise America/Buenos_Aires America/Cambridge_Bay America/Campo_Grande America/Cancun America/Caracas America/Catamarca America/Cayenne America/Cayman America/Chicago America/Chihuahua America/Coral_Harbour America/Cordoba America/Costa_Rica America/Creston America/Cuiaba America/Curacao America/Danmarkshavn America/Dawson America/Dawson_Creek America/Denver America/Detroit America/Dominica America/Edmonton America/Eirunepe America/El_Salvador America/Fort_Nelson America/Fortaleza America/Glace_Bay America/Godthab America/Goose_Bay America/Grand_Turk America/Grenada America/Guadeloupe America/Guatemala America/Guayaquil America/Guyana America/Halifax America/Havana America/Hermosillo America/Indiana/Knox America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Tell_City America/Indiana/Vevay America/Indiana/Vincennes America/Indiana/Winamac America/Indianapolis America/Inuvik America/Iqaluit America/Jamaica America/Jujuy America/Juneau America/Kentucky/Monticello America/Kralendijk America/La_Paz America/Lima America/Los_Angeles America/Louisville America/Lower_Princes America/Maceio America/Managua America/Manaus America/Marigot America/Martinique America/Matamoros America/Mazatlan America/Mendoza America/Menominee America/Merida America/Metlakatla America/Mexico_City America/Miquelon America/Moncton America/Monterrey America/Montevideo America/Montserrat America/Nassau America/New_York America/Nipigon America/Nome America/Noronha America/North_Dakota/Beulah America/North_Dakota/Center America/North_Dakota/New_Salem America/Ojinaga America/Panama America/Pangnirtung America/Paramaribo America/Phoenix America/Port-au-Prince America/Port_of_Spain America/Porto_Velho America/Puerto_Rico America/Punta_Arenas America/Rainy_River America/Rankin_Inlet America/Recife America/Regina America/Resolute America/Rio_Branco America/Santa_Isabel America/Santarem America/Santiago America/Santo_Domingo America/Sao_Paulo America/Scoresbysund America/Sitka America/St_Barthelemy America/St_Johns America/St_Kitts America/St_Lucia America/St_Thomas America/St_Vincent America/Swift_Current America/Tegucigalpa America/Thule America/Thunder_Bay America/Tijuana America/Toronto America/Tortola America/Vancouver America/Whitehorse America/Winnipeg America/Yakutat America/Yellowknife Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Macquarie Antarctica/Mawson Antarctica/McMurdo Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Arctic/Longyearbyen Asia/Aden Asia/Almaty Asia/Amman Asia/Anadyr Asia/Aqtau Asia/Aqtobe Asia/Ashgabat Asia/Atyrau Asia/Baghdad Asia/Bahrain Asia/Baku Asia/Bangkok Asia/Barnaul Asia/Beirut Asia/Bishkek Asia/Brunei Asia/Calcutta Asia/Chita Asia/Choibalsan Asia/Colombo Asia/Damascus Asia/Dhaka Asia/Dili Asia/Dubai Asia/Dushanbe Asia/Famagusta Asia/Gaza Asia/Hebron Asia/Hong_Kong Asia/Hovd Asia/Irkutsk Asia/Jakarta Asia/Jayapura Asia/Jerusalem Asia/Kabul Asia/Kamchatka Asia/Karachi Asia/Katmandu Asia/Khandyga Asia/Krasnoyarsk Asia/Kuala_Lumpur Asia/Kuching Asia/Kuwait Asia/Macau Asia/Magadan Asia/Makassar Asia/Manila Asia/Muscat Asia/Nicosia Asia/Novokuznetsk Asia/Novosibirsk Asia/Omsk Asia/Oral Asia/Phnom_Penh Asia/Pontianak Asia/Pyongyang Asia/Qatar Asia/Qostanay Asia/Qyzylorda Asia/Rangoon Asia/Riyadh Asia/Saigon Asia/Sakhalin Asia/Samarkand Asia/Seoul Asia/Shanghai Asia/Singapore Asia/Srednekolymsk Asia/Taipei Asia/Tashkent Asia/Tbilisi Asia/Tehran Asia/Thimphu Asia/Tokyo Asia/Tomsk Asia/Ulaanbaatar Asia/Urumqi Asia/Ust-Nera Asia/Vientiane Asia/Vladivostok Asia/Yakutsk Asia/Yekaterinburg Asia/Yerevan Atlantic/Azores Atlantic/Bermuda Atlantic/Canary Atlantic/Cape_Verde Atlantic/Faeroe Atlantic/Madeira Atlantic/Reykjavik Atlantic/South_Georgia Atlantic/St_Helena Atlantic/Stanley Australia/Adelaide Australia/Brisbane Australia/Broken_Hill Australia/Currie Australia/Darwin Australia/Eucla Australia/Hobart Australia/Lindeman Australia/Lord_Howe Australia/Melbourne Australia/Perth Australia/Sydney Etc/UTC Etc/Unknown Europe/Amsterdam Europe/Andorra Europe/Astrakhan Europe/Athens Europe/Belgrade Europe/Berlin Europe/Bratislava Europe/Brussels Europe/Bucharest Europe/Budapest Europe/Busingen Europe/Chisinau Europe/Copenhagen Europe/Dublin Europe/Gibraltar Europe/Guernsey Europe/Helsinki Europe/Isle_of_Man Europe/Istanbul Europe/Jersey Europe/Kaliningrad Europe/Kiev Europe/Kirov Europe/Lisbon Europe/Ljubljana Europe/London Europe/Luxembourg Europe/Madrid Europe/Malta Europe/Mariehamn Europe/Minsk Europe/Monaco Europe/Moscow Europe/Oslo Europe/Paris Europe/Podgorica Europe/Prague Europe/Riga Europe/Rome Europe/Samara Europe/San_Marino Europe/Sarajevo Europe/Saratov Europe/Simferopol Europe/Skopje Europe/Sofia Europe/Stockholm Europe/Tallinn Europe/Tirane Europe/Ulyanovsk Europe/Uzhgorod Europe/Vaduz Europe/Vatican Europe/Vienna Europe/Vilnius Europe/Volgograd Europe/Warsaw Europe/Zagreb Europe/Zaporozhye Europe/Zurich Indian/Antananarivo Indian/Chagos Indian/Christmas Indian/Cocos Indian/Comoro Indian/Kerguelen Indian/Mahe Indian/Maldives Indian/Mauritius Indian/Mayotte Indian/Reunion Pacific/Apia Pacific/Auckland Pacific/Bougainville Pacific/Chatham Pacific/Easter Pacific/Efate Pacific/Enderbury Pacific/Fakaofo Pacific/Fiji Pacific/Funafuti Pacific/Galapagos Pacific/Gambier Pacific/Guadalcanal Pacific/Guam Pacific/Honolulu Pacific/Johnston Pacific/Kiritimati Pacific/Kosrae Pacific/Kwajalein Pacific/Majuro Pacific/Marquesas Pacific/Midway Pacific/Nauru Pacific/Niue Pacific/Norfolk Pacific/Noumea Pacific/Pago_Pago Pacific/Palau Pacific/Pitcairn Pacific/Ponape Pacific/Port_Moresby Pacific/Rarotonga Pacific/Saipan Pacific/Tahiti Pacific/Tarawa Pacific/Tongatapu Pacific/Truk Pacific/Wake Pacific/Wallis').split(' '); | ||
/* tslint:disable:max-line-length */ | ||
/** @public */ | ||
exports.MetaZoneValues = ('Acre Afghanistan Africa_Central Africa_Eastern Africa_Southern Africa_Western Alaska Almaty Amazon America_Central America_Eastern America_Mountain America_Pacific Anadyr Apia Aqtau Aqtobe Arabian Argentina Argentina_Western Armenia Atlantic Australia_Central Australia_CentralWestern Australia_Eastern Australia_Western Azerbaijan Azores Bangladesh Bhutan Bolivia Brasilia Brunei Cape_Verde Casey Chamorro Chatham Chile China Choibalsan Christmas Cocos Colombia Cook Cuba Davis DumontDUrville East_Timor Easter Ecuador Europe_Central Europe_Eastern Europe_Further_Eastern Europe_Western Falkland Fiji French_Guiana French_Southern GMT Galapagos Gambier Georgia Gilbert_Islands Greenland_Eastern Greenland_Western Guam Gulf Guyana Hawaii_Aleutian Hong_Kong Hovd India Indian_Ocean Indochina Indonesia_Central Indonesia_Eastern Indonesia_Western Iran Irkutsk Israel Japan Kamchatka Kazakhstan_Eastern Kazakhstan_Western Korea Kosrae Krasnoyarsk Kyrgystan Lanka Line_Islands Lord_Howe Macau Macquarie Magadan Malaysia Maldives Marquesas Marshall_Islands Mauritius Mawson Mexico_Northwest Mexico_Pacific Mongolia Moscow Myanmar Nauru Nepal New_Caledonia New_Zealand Newfoundland Niue Norfolk Noronha North_Mariana Novosibirsk Omsk Pakistan Palau Papua_New_Guinea Paraguay Peru Philippines Phoenix_Islands Pierre_Miquelon Pitcairn Ponape Pyongyang Qyzylorda Reunion Rothera Sakhalin Samara Samoa Seychelles Singapore Solomon South_Georgia Suriname Syowa Tahiti Taipei Tajikistan Tokelau Tonga Truk Turkmenistan Tuvalu Uruguay Uzbekistan Vanuatu Venezuela Vladivostok Volgograd Vostok Wake Wallis Yakutsk Yekaterinburg').split(' '); | ||
//# sourceMappingURL=autogen.timezones.js.map |
import { DateTimePatternFieldType, DayPeriodType, EraWidthType, FieldWidthType, FormatWidthType, KeyIndex, QuarterType, WeekdayType } from '@phensley/cldr-types'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const BuddhistEraIndex: KeyIndex<string>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const GregorianEraIndex: KeyIndex<string>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const JapaneseEraIndex: KeyIndex<string>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const PersianEraIndex: KeyIndex<string>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const GregorianMonthsIndex: KeyIndex<string>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const DateTimePatternFieldValues: DateTimePatternFieldType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const DayPeriodValues: DayPeriodType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const EraWidthValues: EraWidthType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const FieldWidthValues: FieldWidthType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const FormatWidthValues: FormatWidthType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const QuarterValues: QuarterType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const WeekdayValues: WeekdayType[]; |
@@ -15,10 +15,31 @@ "use strict"; | ||
}; | ||
/** | ||
* @public | ||
*/ | ||
exports.BuddhistEraIndex = rangeindex(0, 0); | ||
/** | ||
* @public | ||
*/ | ||
exports.GregorianEraIndex = rangeindex(0, 1); | ||
/** | ||
* @public | ||
*/ | ||
exports.JapaneseEraIndex = rangeindex(0, 236); | ||
/** | ||
* @public | ||
*/ | ||
exports.PersianEraIndex = exports.BuddhistEraIndex; | ||
/** | ||
* @public | ||
*/ | ||
exports.GregorianMonthsIndex = rangeindex(1, 12); | ||
/** | ||
* @public | ||
*/ | ||
exports.DateTimePatternFieldValues = [ | ||
'y', 'M', 'd', 'a', 'H', 'm', 's' | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
exports.DayPeriodValues = [ | ||
@@ -28,14 +49,29 @@ 'noon', 'midnight', 'am', 'pm', 'morning1', 'morning2', | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
exports.EraWidthValues = [ | ||
'names', 'abbr', 'narrow' | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
exports.FieldWidthValues = [ | ||
'abbreviated', 'narrow', 'short', 'wide' | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
exports.FormatWidthValues = [ | ||
'short', 'medium', 'long', 'full' | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
exports.QuarterValues = [ | ||
'1', '2', '3', '4' | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
exports.WeekdayValues = [ | ||
@@ -42,0 +78,0 @@ '1', '2', '3', '4', '5', '6', '7' |
import { KeyIndexImpl } from '../instructions'; | ||
import { DateFieldType, DateFieldWidthType, RelativeTimeFieldType } from '@phensley/cldr-types'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const DateFieldValues: DateFieldType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const DateFieldWidthValues: DateFieldWidthType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const RelativeTimeFieldValues: RelativeTimeFieldType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const DateFieldIndex: KeyIndexImpl<DateFieldType>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const DateFieldWidthIndex: KeyIndexImpl<DateFieldWidthType>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const RelativeTimeFieldIndex: KeyIndexImpl<RelativeTimeFieldType>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var instructions_1 = require("../instructions"); | ||
/** | ||
* @public | ||
*/ | ||
exports.DateFieldValues = [ | ||
@@ -9,5 +12,11 @@ 'era', 'year', 'quarter', 'month', 'week', | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
exports.DateFieldWidthValues = [ | ||
'short', 'narrow', 'wide' | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
exports.RelativeTimeFieldValues = [ | ||
@@ -17,5 +26,14 @@ 'year', 'quarter', 'month', 'week', 'day', | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
exports.DateFieldIndex = new instructions_1.KeyIndexImpl(exports.DateFieldValues); | ||
/** | ||
* @public | ||
*/ | ||
exports.DateFieldWidthIndex = new instructions_1.KeyIndexImpl(exports.DateFieldWidthValues); | ||
/** | ||
* @public | ||
*/ | ||
exports.RelativeTimeFieldIndex = new instructions_1.KeyIndexImpl(exports.RelativeTimeFieldValues); | ||
//# sourceMappingURL=datefields.js.map |
import { PluralType } from '@phensley/cldr-types'; | ||
import { KeyIndexImpl } from '../instructions'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const PluralIndex: KeyIndexImpl<PluralType>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const AltIndex: KeyIndexImpl<import("../../../cldr-types/lib").AltType>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var instructions_1 = require("../instructions"); | ||
/** | ||
* @public | ||
*/ | ||
exports.PluralIndex = new instructions_1.KeyIndexImpl(['other', 'zero', 'one', 'two', 'few', 'many']); | ||
/** | ||
* @public | ||
*/ | ||
exports.AltIndex = new instructions_1.KeyIndexImpl(['none', 'short', 'narrow', 'variant', 'stand-alone', 'long', 'menu']); | ||
//# sourceMappingURL=enums.js.map |
import { ContextTransformFieldType, ListPatternPositionType } from '@phensley/cldr-types'; | ||
import { KeyIndexImpl } from '../instructions'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const ListPatternPositionIndex: KeyIndexImpl<ListPatternPositionType>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const ContextTransformFieldIndex: KeyIndexImpl<ContextTransformFieldType>; |
@@ -5,4 +5,10 @@ "use strict"; | ||
var autogen_context_1 = require("./autogen.context"); | ||
/** | ||
* @public | ||
*/ | ||
exports.ListPatternPositionIndex = new instructions_1.KeyIndexImpl(['start', 'middle', 'end', 'two']); | ||
/** | ||
* @public | ||
*/ | ||
exports.ContextTransformFieldIndex = new instructions_1.KeyIndexImpl(autogen_context_1.ContextTransformFieldValues); | ||
//# sourceMappingURL=general.js.map |
import { CurrencySpacingPattern, CurrencySpacingPos, NumberMiscPatternType, NumberSymbolType, NumberSystemCategory } from '@phensley/cldr-types'; | ||
import { KeyIndexImpl } from '../instructions'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const PluralDigitValues: number[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const CurrencySpacingPosIndex: KeyIndexImpl<CurrencySpacingPos>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const CurrencySpacingPatternIndex: KeyIndexImpl<CurrencySpacingPattern>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const NumberSymbolValues: NumberSymbolType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const NumberSystemCategoryValues: NumberSystemCategory[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const NumberMiscPatternValues: NumberMiscPatternType[]; | ||
/** | ||
* @public | ||
*/ | ||
export declare const NumberMiscPatternIndex: KeyIndexImpl<NumberMiscPatternType>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const NumberSystemsIndex: KeyIndexImpl<NumberSystemCategory>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const NumberSymbolIndex: KeyIndexImpl<NumberSymbolType>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var instructions_1 = require("../instructions"); | ||
/** | ||
* @public | ||
*/ | ||
exports.PluralDigitValues = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; | ||
/** | ||
* @public | ||
*/ | ||
exports.CurrencySpacingPosIndex = new instructions_1.KeyIndexImpl(['before', 'after']); | ||
/** | ||
* @public | ||
*/ | ||
exports.CurrencySpacingPatternIndex = new instructions_1.KeyIndexImpl(['currencyMatch', 'surroundingMatch', 'insertBetween']); | ||
/** | ||
* @public | ||
*/ | ||
exports.NumberSymbolValues = [ | ||
@@ -23,11 +35,26 @@ 'currencyDecimal', | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
exports.NumberSystemCategoryValues = [ | ||
'default', 'native', 'finance', 'traditional' | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
exports.NumberMiscPatternValues = [ | ||
'at-least', 'at-most', 'approx', 'range' | ||
]; | ||
/** | ||
* @public | ||
*/ | ||
exports.NumberMiscPatternIndex = new instructions_1.KeyIndexImpl(exports.NumberMiscPatternValues); | ||
/** | ||
* @public | ||
*/ | ||
exports.NumberSystemsIndex = new instructions_1.KeyIndexImpl(exports.NumberSystemCategoryValues); | ||
/** | ||
* @public | ||
*/ | ||
exports.NumberSymbolIndex = new instructions_1.KeyIndexImpl(exports.NumberSymbolValues); | ||
//# sourceMappingURL=numbers.js.map |
import { KeyIndexImpl } from '../instructions'; | ||
/** | ||
* @public | ||
*/ | ||
export declare const MetaZoneIndex: KeyIndexImpl<import("../../../cldr-types/lib").MetaZoneType>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const TimeZoneTypeIndex: KeyIndexImpl<import("../../../cldr-types/lib").TimeZoneNameType>; | ||
/** | ||
* @public | ||
*/ | ||
export declare const TimeZoneStableIdIndex: KeyIndexImpl<string>; |
@@ -5,5 +5,14 @@ "use strict"; | ||
var instructions_1 = require("../instructions"); | ||
/** | ||
* @public | ||
*/ | ||
exports.MetaZoneIndex = new instructions_1.KeyIndexImpl(autogen_timezones_1.MetaZoneValues); | ||
/** | ||
* @public | ||
*/ | ||
exports.TimeZoneTypeIndex = new instructions_1.KeyIndexImpl(['daylight', 'generic', 'standard']); | ||
/** | ||
* @public | ||
*/ | ||
exports.TimeZoneStableIdIndex = new instructions_1.KeyIndexImpl(autogen_timezones_1.TimeZoneStableIds); | ||
//# sourceMappingURL=timezones.js.map |
{ | ||
"name": "@phensley/cldr-schema", | ||
"version": "0.26.0", | ||
"version": "1.0.0", | ||
"description": "Schema for @phensley/cldr", | ||
@@ -19,2 +19,4 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"api": "api-extractor run -c ./etc/api-extractor.json --verbose", | ||
"api:local": "yarn api -l", | ||
"build": "yarn build:cj && yarn build:es", | ||
@@ -37,7 +39,8 @@ "build:cj": "tsc -p ./tsconfig.json", | ||
"dependencies": { | ||
"@phensley/cldr-types": "0.26.0", | ||
"tslib": "1.10.x" | ||
"@phensley/cldr-types": "1.0.0", | ||
"tslib": "1.11.1" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "24.0.22", | ||
"@microsoft/api-extractor": "^7.7.8", | ||
"@types/jest": "25.1.3", | ||
"@types/node": "^10.14.10", | ||
@@ -47,8 +50,8 @@ "beautify-benchmark": "^0.2.4", | ||
"chalk": "^2.3.2", | ||
"jest": "24.9.0", | ||
"jest": "25.1.0", | ||
"rimraf": "^3.0.0", | ||
"ts-jest": "^24.0.2", | ||
"ts-jest": "25.2.1", | ||
"tslint": "^5.18.0", | ||
"tslint-no-circular-imports": "^0.7.0", | ||
"typescript": "3.7.x" | ||
"typescript": "3.8.x" | ||
}, | ||
@@ -68,3 +71,3 @@ "jest": { | ||
}, | ||
"gitHead": "94045abc4df86296281f3eefc7d5e4bd48636cbe" | ||
"gitHead": "84adc62f4b277203b9252f5c7aef98130d2baa3a" | ||
} |
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 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 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 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 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 not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
163421
2666
0
12
+ Added@phensley/cldr-types@1.0.0(transitive)
+ Addedtslib@1.11.1(transitive)
- Removed@phensley/cldr-types@0.26.0(transitive)
- Removedtslib@1.10.0(transitive)
Updated@phensley/cldr-types@1.0.0
Updatedtslib@1.11.1