New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@phensley/cldr-schema

Package Overview
Dependencies
Maintainers
1
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phensley/cldr-schema - npm Package Compare versions

Comparing version 0.20.4 to 0.21.0

lib-es/instructions.d.ts

25

lib-es/code/calendars.d.ts

@@ -1,17 +0,18 @@

import { KeyIndex, KeyIndexMap } from '../types';
export declare const DateTimePatternFieldIndex: KeyIndex<import("../schema").DateTimePatternFieldType>;
export declare const DayPeriodIndex: KeyIndex<import("../schema").DayPeriodType>;
export declare const EraTypeIndex: KeyIndex<import("../schema").EraWidthType>;
export declare const FieldWidthIndex: KeyIndex<import("../schema").FieldWidthType>;
export declare const FormatWidthIndex: KeyIndex<import("../schema").FormatWidthType>;
export declare const QuartersIndex: KeyIndex<import("../schema").QuarterType>;
export declare const WeekdaysIndex: KeyIndex<import("../schema").WeekdayType>;
import { KeyIndexMap } from '@phensley/cldr-types';
import { KeyIndexImpl } from '../instructions';
export declare const DateTimePatternFieldIndex: KeyIndexImpl<import("../../../cldr-types/lib").DateTimePatternFieldType>;
export declare const DayPeriodIndex: KeyIndexImpl<import("../../../cldr-types/lib").DayPeriodType>;
export declare const EraTypeIndex: KeyIndexImpl<import("../../../cldr-types/lib").EraWidthType>;
export declare const FieldWidthIndex: KeyIndexImpl<import("../../../cldr-types/lib").FieldWidthType>;
export declare const FormatWidthIndex: KeyIndexImpl<import("../../../cldr-types/lib").FormatWidthType>;
export declare const QuartersIndex: KeyIndexImpl<import("../../../cldr-types/lib").QuarterType>;
export declare const WeekdaysIndex: KeyIndexImpl<import("../../../cldr-types/lib").WeekdayType>;
export declare const CALENDAR_INDICES: KeyIndexMap;
export declare const BUDDHIST: import("../types").Scope;
export declare const BUDDHIST: import("../instructions").Scope;
export declare const BUDDHIST_INDICES: KeyIndexMap;
export declare const GREGORIAN: import("../types").Scope;
export declare const GREGORIAN: import("../instructions").Scope;
export declare const GREGORIAN_INDICES: KeyIndexMap;
export declare const JAPANESE: import("../types").Scope;
export declare const JAPANESE: import("../instructions").Scope;
export declare const JAPANESE_INDICES: KeyIndexMap;
export declare const PERSIAN: import("../types").Scope;
export declare const PERSIAN: import("../instructions").Scope;
export declare const PERSIAN_INDICES: KeyIndexMap;

@@ -1,3 +0,2 @@

import { field, scope, vector1, vector2 } from '../types';
import { KeyIndex } from '../types';
import { field, scope, vector1, vector2, KeyIndexImpl } from '../instructions';
import { BuddhistEraIndex, DateTimePatternFieldValues, DayPeriodValues, EraWidthValues, FieldWidthValues, FormatWidthValues, GregorianEraIndex, GregorianMonthsIndex, JapaneseEraIndex, PersianEraIndex, QuarterValues, WeekdayValues, } from '../schema';

@@ -22,9 +21,9 @@ var formats = function (name, rename, month) { return scope(name, rename, [

]); };
export var DateTimePatternFieldIndex = new KeyIndex(DateTimePatternFieldValues);
export var DayPeriodIndex = new KeyIndex(DayPeriodValues);
export var EraTypeIndex = new KeyIndex(EraWidthValues);
export var FieldWidthIndex = new KeyIndex(FieldWidthValues);
export var FormatWidthIndex = new KeyIndex(FormatWidthValues);
export var QuartersIndex = new KeyIndex(QuarterValues);
export var WeekdaysIndex = new KeyIndex(WeekdayValues);
export var DateTimePatternFieldIndex = new KeyIndexImpl(DateTimePatternFieldValues);
export var DayPeriodIndex = new KeyIndexImpl(DayPeriodValues);
export var EraTypeIndex = new KeyIndexImpl(EraWidthValues);
export var FieldWidthIndex = new KeyIndexImpl(FieldWidthValues);
export var FormatWidthIndex = new KeyIndexImpl(FormatWidthValues);
export var QuartersIndex = new KeyIndexImpl(QuarterValues);
export var WeekdaysIndex = new KeyIndexImpl(WeekdayValues);
export var CALENDAR_INDICES = {

@@ -31,0 +30,0 @@ 'date-time-pattern-field': DateTimePatternFieldIndex,

@@ -1,2 +0,2 @@

import { Scope } from '../types';
import { Scope } from '../instructions';
export declare const CURRENCIES: Scope;

@@ -1,2 +0,2 @@

import { scope, vector1, vector2 } from '../types';
import { scope, vector1, vector2 } from '../instructions';
export var CURRENCIES = scope('Currencies', 'Currencies', [

@@ -3,0 +3,0 @@ vector1('displayName', 'currency-id'),

@@ -1,7 +0,7 @@

import { Scope } from '../types';
import { Scope } from '../instructions';
export declare const DATEFIELDS: Scope;
export declare const DATEFIELDS_INDICES: {
'date-field': import("../types").KeyIndex<import("../schema").DateFieldType>;
'date-field-width': import("../types").KeyIndex<import("../schema").DateFieldWidthType>;
'relative-time-field': import("../types").KeyIndex<import("../schema").RelativeTimeFieldType>;
'date-field': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").DateFieldType>;
'date-field-width': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").DateFieldWidthType>;
'relative-time-field': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").RelativeTimeFieldType>;
};

@@ -1,2 +0,2 @@

import { scope, vector1, vector2 } from '../types';
import { scope, vector1, vector2 } from '../instructions';
import { DateFieldIndex, DateFieldWidthIndex, RelativeTimeFieldIndex } from '../schema';

@@ -3,0 +3,0 @@ var prevNext = ['previous2', 'previous', 'current', 'next', 'next2']

@@ -1,8 +0,8 @@

import { Scope } from '../types';
import { Scope } from '../instructions';
export declare const LAYOUT: Scope;
export declare const LIST_PATTERNS: Scope;
export declare const GENERAL_INDICES: {
'context-transform-field': import("../types").KeyIndex<"script" | "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" | "typographicNames">;
'list-pattern-position': import("../types").KeyIndex<import("../schema/general").ListPatternPositionType>;
'context-transform-field': import("../instructions").KeyIndexImpl<"script" | "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" | "typographicNames">;
'list-pattern-position': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").ListPatternPositionType>;
};
export declare const CONTEXT_TRANSFORM: Scope;

@@ -1,2 +0,2 @@

import { field, scope, vector1 } from '../types';
import { field, scope, vector1 } from '../instructions';
import { ContextTransformFieldIndex, ListPatternPositionIndex } from '../schema/general';

@@ -3,0 +3,0 @@ export var LAYOUT = scope('Layout', 'Layout', [

@@ -1,2 +0,2 @@

import { Origin } from '../types';
import { Origin } from '../instructions';
export interface SchemaConfig {

@@ -3,0 +3,0 @@ /**

import { __assign } from "tslib";
import { origin, KeyIndex } from '../types';
import { origin, KeyIndexImpl } from '../instructions';
import { BUDDHIST, BUDDHIST_INDICES, CALENDAR_INDICES, GREGORIAN, GREGORIAN_INDICES, JAPANESE, JAPANESE_INDICES, PERSIAN, PERSIAN_INDICES, } from './calendars';

@@ -12,3 +12,3 @@ import { CURRENCIES } from './currencies';

import { AltIndex, PluralIndex } from '../schema';
var EMPTY_INDEX = new KeyIndex([]);
var EMPTY_INDEX = new KeyIndexImpl([]);
var emptyCalendarIndex = function (name) {

@@ -98,6 +98,6 @@ var _a;

CodeBuilder.prototype.make = function (name, keys) {
this.indices[name] = new KeyIndex(keys);
this.indices[name] = new KeyIndexImpl(keys);
};
CodeBuilder.prototype.copy = function (name) {
this.indices[name] = new KeyIndex(this.config[name] || []);
this.indices[name] = new KeyIndexImpl(this.config[name] || []);
};

@@ -104,0 +104,0 @@ CodeBuilder.prototype.add = function (indices) {

@@ -1,2 +0,2 @@

import { Scope } from '../types';
import { Scope } from '../instructions';
export declare const NAMES: Scope;

@@ -1,2 +0,2 @@

import { scope, vector1, vector2 } from '../types';
import { scope, vector1, vector2 } from '../instructions';
export var NAMES = scope('Names', 'Names', [

@@ -3,0 +3,0 @@ scope('languages', 'languages', [

@@ -1,9 +0,9 @@

import { Scope } from '../types';
import { Scope } from '../instructions';
export declare const NUMBERS: Scope;
export declare const NUMBERS_INDICES: {
'currency-spacing-pattern': import("../types").KeyIndex<import("../schema/numbers").CurrencySpacingPattern>;
'currency-spacing-pos': import("../types").KeyIndex<import("../schema/numbers").CurrencySpacingPos>;
'number-misc-pattern': import("../types").KeyIndex<import("../schema/numbers").NumberMiscPatternType>;
'number-symbol': import("../types").KeyIndex<import("../schema/numbers").NumberSymbolType>;
'number-system': import("../types").KeyIndex<import("../schema/numbers").NumberSystemCategory>;
'currency-spacing-pattern': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").CurrencySpacingPattern>;
'currency-spacing-pos': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").CurrencySpacingPos>;
'number-misc-pattern': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").NumberMiscPatternType>;
'number-symbol': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").NumberSymbolType>;
'number-system': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").NumberSystemCategory>;
};

@@ -1,2 +0,2 @@

import { digits, field, scope, scopemap, vector1, vector2 } from '../types';
import { digits, field, scope, scopemap, vector1, vector2 } from '../instructions';
import { CurrencySpacingPatternIndex, CurrencySpacingPosIndex, NumberMiscPatternIndex, NumberSymbolIndex, NumberSystemsIndex, PluralDigitValues, } from '../schema/numbers';

@@ -3,0 +3,0 @@ export var NUMBERS = scope('Numbers', 'Numbers', [

@@ -1,6 +0,6 @@

import { Scope } from '../types';
import { Scope } from '../instructions';
export declare const TIMEZONE: Scope;
export declare const TIMEZONE_INDICES: {
'metazone': import("../types").KeyIndex<import("../schema/timezones").MetaZoneType>;
'timezone-type': import("../types").KeyIndex<"standard" | "daylight" | "generic">;
'metazone': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").MetaZoneType>;
'timezone-type': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").TimeZoneNameType>;
};

@@ -1,2 +0,2 @@

import { field, scope, vector1, vector2 } from '../types';
import { field, scope, vector1, vector2 } from '../instructions';
import { MetaZoneIndex, TimeZoneTypeIndex, } from '../schema/timezones';

@@ -3,0 +3,0 @@ export var TIMEZONE = scope('TimeZoneNames', 'TimeZones', [

@@ -1,2 +0,2 @@

import { Scope } from '../types';
import { Scope } from '../instructions';
export declare const UNITS: Scope;

@@ -1,2 +0,2 @@

import { field, scope, vector1, vector2 } from '../types';
import { field, scope, vector1, vector2 } from '../instructions';
var unitInfo = function (width) { return scope(width, width, [

@@ -3,0 +3,0 @@ vector2('unitPattern', 'plural-key', 'unit-id'),

export * from './code';
export * from './schema';
export * from './types';
export * from './instructions';
export * from './code';
export * from './schema';
export * from './types';
export * from './instructions';
//# sourceMappingURL=index.js.map

@@ -1,13 +0,3 @@

import { KeyIndex } from '../types';
/**
* Very low-level access to strings in a bundle. Includes properties
* needed to resolve locales within a pack.
*/
export interface PrimitiveBundle {
id(): string;
language(): string;
region(): string;
get(offset: number): string;
}
export declare class FieldArrow {
import { DigitsArrow, FieldArrow, KeyIndex, PrimitiveBundle, ScopeArrow, Vector1Arrow, Vector2Arrow } from '@phensley/cldr-types';
export declare class FieldArrowImpl implements FieldArrow {
readonly offset: number;

@@ -17,3 +7,3 @@ constructor(offset: number);

}
export declare class ScopeArrow<T extends string, R> {
export declare class ScopeArrowImpl<T extends string, R> implements ScopeArrow<T, R> {
readonly map: {

@@ -30,3 +20,3 @@ [P in T]: R;

*/
export declare class DigitsArrow<T extends string> {
export declare class DigitsArrowImpl<T extends string> implements DigitsArrow<T> {
readonly offset: number;

@@ -40,3 +30,3 @@ readonly index: KeyIndex<T>;

}
export declare class Vector1Arrow<T extends string> {
export declare class Vector1ArrowImpl<T extends string> implements Vector1Arrow<T> {
readonly index: KeyIndex<T>;

@@ -52,3 +42,3 @@ readonly len: number;

}
export declare class Vector2Arrow<T extends string, S extends string> {
export declare class Vector2ArrowImpl<T extends string, S extends string> implements Vector2Arrow<T, S> {
readonly index1: KeyIndex<T>;

@@ -55,0 +45,0 @@ readonly index2: KeyIndex<S>;

@@ -1,26 +0,26 @@

var FieldArrow = /** @class */ (function () {
function FieldArrow(offset) {
var FieldArrowImpl = /** @class */ (function () {
function FieldArrowImpl(offset) {
this.offset = offset;
}
FieldArrow.prototype.get = function (bundle) {
FieldArrowImpl.prototype.get = function (bundle) {
return bundle.get(this.offset);
};
return FieldArrow;
return FieldArrowImpl;
}());
export { FieldArrow };
var ScopeArrow = /** @class */ (function () {
function ScopeArrow(map) {
export { FieldArrowImpl };
var ScopeArrowImpl = /** @class */ (function () {
function ScopeArrowImpl(map) {
this.map = map;
}
ScopeArrow.prototype.get = function (key) {
ScopeArrowImpl.prototype.get = function (key) {
return this.map[key];
};
return ScopeArrow;
return ScopeArrowImpl;
}());
export { ScopeArrow };
export { ScopeArrowImpl };
/**
* Special vector to store a pluralized number pattern and its divisor together.
*/
var DigitsArrow = /** @class */ (function () {
function DigitsArrow(offset, index, values) {
var DigitsArrowImpl = /** @class */ (function () {
function DigitsArrowImpl(offset, index, values) {
this.offset = offset;

@@ -31,3 +31,3 @@ this.index = index;

}
DigitsArrow.prototype.get = function (bundle, key, digits) {
DigitsArrowImpl.prototype.get = function (bundle, key, digits) {
if (digits > this.values.length) {

@@ -45,10 +45,10 @@ digits = this.values.length;

}
return DigitsArrow.EMPTY;
return DigitsArrowImpl.EMPTY;
};
DigitsArrow.EMPTY = ['', 0];
return DigitsArrow;
DigitsArrowImpl.EMPTY = ['', 0];
return DigitsArrowImpl;
}());
export { DigitsArrow };
var Vector1Arrow = /** @class */ (function () {
function Vector1Arrow(offset, index) {
export { DigitsArrowImpl };
var Vector1ArrowImpl = /** @class */ (function () {
function Vector1ArrowImpl(offset, index) {
this.index = index;

@@ -58,6 +58,6 @@ this.len = index.keys.length;

}
Vector1Arrow.prototype.exists = function (bundle) {
Vector1ArrowImpl.prototype.exists = function (bundle) {
return bundle.get(this.offset - 1) === 'E';
};
Vector1Arrow.prototype.get = function (bundle, key) {
Vector1ArrowImpl.prototype.get = function (bundle, key) {
var exists = bundle.get(this.offset - 1) === 'E';

@@ -70,3 +70,3 @@ if (exists) {

};
Vector1Arrow.prototype.mapping = function (bundle) {
Vector1ArrowImpl.prototype.mapping = function (bundle) {
var len = this.len;

@@ -90,7 +90,7 @@ var offset = this.offset;

};
return Vector1Arrow;
return Vector1ArrowImpl;
}());
export { Vector1Arrow };
var Vector2Arrow = /** @class */ (function () {
function Vector2Arrow(offset, index1, index2) {
export { Vector1ArrowImpl };
var Vector2ArrowImpl = /** @class */ (function () {
function Vector2ArrowImpl(offset, index1, index2) {
this.index1 = index1;

@@ -102,6 +102,6 @@ this.index2 = index2;

}
Vector2Arrow.prototype.exists = function (bundle) {
Vector2ArrowImpl.prototype.exists = function (bundle) {
return bundle.get(this.offset - 1) === 'E';
};
Vector2Arrow.prototype.get = function (bundle, key1, key2) {
Vector2ArrowImpl.prototype.get = function (bundle, key1, key2) {
var exists = bundle.get(this.offset - 1) === 'E';

@@ -120,3 +120,3 @@ if (exists) {

};
Vector2Arrow.prototype.mapping = function (bundle) {
Vector2ArrowImpl.prototype.mapping = function (bundle) {
var offset = this.offset;

@@ -152,5 +152,5 @@ /* tslint:disable-next-line */

};
return Vector2Arrow;
return Vector2ArrowImpl;
}());
export { Vector2Arrow };
export { Vector2ArrowImpl };
//# sourceMappingURL=arrows.js.map

@@ -1,5 +0,4 @@

import { KeyIndex } from '../types/instructions';
export declare type PluralType = 'other' | 'zero' | 'one' | 'two' | 'few' | 'many';
export declare const PluralIndex: KeyIndex<PluralType>;
export declare type AltType = 'none' | 'short' | 'narrow' | 'variant' | 'stand-alone';
export declare const AltIndex: KeyIndex<"none" | "short" | "narrow" | "variant" | "stand-alone">;
import { PluralType } from '@phensley/cldr-types';
import { KeyIndexImpl } from '../instructions';
export declare const PluralIndex: KeyIndexImpl<PluralType>;
export declare const AltIndex: KeyIndexImpl<import("../../../cldr-types/lib").AltType>;

@@ -1,4 +0,4 @@

import { KeyIndex } from '../types/instructions';
export var PluralIndex = new KeyIndex(['other', 'zero', 'one', 'two', 'few', 'many']);
export var AltIndex = new KeyIndex(['none', 'short', 'narrow', 'variant', 'stand-alone']);
import { KeyIndexImpl } from '../instructions';
export var PluralIndex = new KeyIndexImpl(['other', 'zero', 'one', 'two', 'few', 'many']);
export var AltIndex = new KeyIndexImpl(['none', 'short', 'narrow', 'variant', 'stand-alone']);
//# sourceMappingURL=enums.js.map
export * from './arrows';
export * from './enums';
export * from './autogen.context';
export * from './autogen.timezones';
export * from './datefields';
export * from './calendar';
export * from './general';
export * from './currencies';
export * from './names';
export * from './numbers';
export * from './timezones';
export * from './units';
import { BuddhistSchema, GregorianSchema, JapaneseSchema, PersianSchema } from './calendar';
import { CurrenciesSchema } from './currencies';
import { DateFieldsSchema } from './datefields';
import { ContextTransformsSchema, LayoutSchema, ListPatternsSchema } from './general';
import { NamesSchema } from './names';
import { NumbersSchema } from './numbers';
import { TimeZoneSchema } from './timezones';
import { UnitsSchema } from './units';
export interface Schema {
readonly Names: NamesSchema;
readonly Numbers: NumbersSchema;
readonly DateFields: DateFieldsSchema;
readonly Layout: LayoutSchema;
readonly ListPatterns: ListPatternsSchema;
readonly Buddhist: BuddhistSchema;
readonly Gregorian: GregorianSchema;
readonly Japanese: JapaneseSchema;
readonly Persian: PersianSchema;
readonly TimeZones: TimeZoneSchema;
readonly Currencies: CurrenciesSchema;
readonly Units: UnitsSchema;
readonly ContextTransforms: ContextTransformsSchema;
}
export * from './arrows';
export * from './enums';
export * from './autogen.context';
export * from './autogen.timezones';
export * from './datefields';

@@ -4,0 +6,0 @@ export * from './calendar';

@@ -1,17 +0,18 @@

import { KeyIndex, KeyIndexMap } from '../types';
export declare const DateTimePatternFieldIndex: KeyIndex<import("../schema").DateTimePatternFieldType>;
export declare const DayPeriodIndex: KeyIndex<import("../schema").DayPeriodType>;
export declare const EraTypeIndex: KeyIndex<import("../schema").EraWidthType>;
export declare const FieldWidthIndex: KeyIndex<import("../schema").FieldWidthType>;
export declare const FormatWidthIndex: KeyIndex<import("../schema").FormatWidthType>;
export declare const QuartersIndex: KeyIndex<import("../schema").QuarterType>;
export declare const WeekdaysIndex: KeyIndex<import("../schema").WeekdayType>;
import { KeyIndexMap } from '@phensley/cldr-types';
import { KeyIndexImpl } from '../instructions';
export declare const DateTimePatternFieldIndex: KeyIndexImpl<import("../../../cldr-types/lib").DateTimePatternFieldType>;
export declare const DayPeriodIndex: KeyIndexImpl<import("../../../cldr-types/lib").DayPeriodType>;
export declare const EraTypeIndex: KeyIndexImpl<import("../../../cldr-types/lib").EraWidthType>;
export declare const FieldWidthIndex: KeyIndexImpl<import("../../../cldr-types/lib").FieldWidthType>;
export declare const FormatWidthIndex: KeyIndexImpl<import("../../../cldr-types/lib").FormatWidthType>;
export declare const QuartersIndex: KeyIndexImpl<import("../../../cldr-types/lib").QuarterType>;
export declare const WeekdaysIndex: KeyIndexImpl<import("../../../cldr-types/lib").WeekdayType>;
export declare const CALENDAR_INDICES: KeyIndexMap;
export declare const BUDDHIST: import("../types").Scope;
export declare const BUDDHIST: import("../instructions").Scope;
export declare const BUDDHIST_INDICES: KeyIndexMap;
export declare const GREGORIAN: import("../types").Scope;
export declare const GREGORIAN: import("../instructions").Scope;
export declare const GREGORIAN_INDICES: KeyIndexMap;
export declare const JAPANESE: import("../types").Scope;
export declare const JAPANESE: import("../instructions").Scope;
export declare const JAPANESE_INDICES: KeyIndexMap;
export declare const PERSIAN: import("../types").Scope;
export declare const PERSIAN: import("../instructions").Scope;
export declare const PERSIAN_INDICES: KeyIndexMap;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var types_1 = require("../types");
var types_2 = require("../types");
var instructions_1 = require("../instructions");
var schema_1 = require("../schema");
var formats = function (name, rename, month) { return types_1.scope(name, rename, [
types_1.vector2('weekdays', 'field-width', 'weekday'),
types_1.vector2('months', 'field-width', month + "-month"),
types_1.vector2('quarters', 'field-width', 'quarter'),
types_1.vector2('dayPeriods', 'field-width', 'day-period'),
var formats = function (name, rename, month) { return instructions_1.scope(name, rename, [
instructions_1.vector2('weekdays', 'field-width', 'weekday'),
instructions_1.vector2('months', 'field-width', month + "-month"),
instructions_1.vector2('quarters', 'field-width', 'quarter'),
instructions_1.vector2('dayPeriods', 'field-width', 'day-period'),
]); };
var calendarScope = function (name, scopeName) { return types_1.scope(scopeName, scopeName, [
types_1.vector2('eras', 'era-type', name + "-era"),
var calendarScope = function (name, scopeName) { return instructions_1.scope(scopeName, scopeName, [
instructions_1.vector2('eras', 'era-type', name + "-era"),
formats('format', 'format', name),
formats('standAlone', 'standAlone', name),
types_1.vector1('availableFormats', name + "-available-format"),
types_1.vector2('pluralFormats', 'plural-key', name + "-plural-format"),
types_1.vector2('intervalFormats', 'date-time-pattern-field', name + "-interval-format"),
types_1.vector1('dateFormats', 'format-width'),
types_1.vector1('timeFormats', 'format-width'),
types_1.vector1('dateTimeFormats', 'format-width'),
types_1.field('intervalFormatFallback')
instructions_1.vector1('availableFormats', name + "-available-format"),
instructions_1.vector2('pluralFormats', 'plural-key', name + "-plural-format"),
instructions_1.vector2('intervalFormats', 'date-time-pattern-field', name + "-interval-format"),
instructions_1.vector1('dateFormats', 'format-width'),
instructions_1.vector1('timeFormats', 'format-width'),
instructions_1.vector1('dateTimeFormats', 'format-width'),
instructions_1.field('intervalFormatFallback')
]); };
exports.DateTimePatternFieldIndex = new types_2.KeyIndex(schema_1.DateTimePatternFieldValues);
exports.DayPeriodIndex = new types_2.KeyIndex(schema_1.DayPeriodValues);
exports.EraTypeIndex = new types_2.KeyIndex(schema_1.EraWidthValues);
exports.FieldWidthIndex = new types_2.KeyIndex(schema_1.FieldWidthValues);
exports.FormatWidthIndex = new types_2.KeyIndex(schema_1.FormatWidthValues);
exports.QuartersIndex = new types_2.KeyIndex(schema_1.QuarterValues);
exports.WeekdaysIndex = new types_2.KeyIndex(schema_1.WeekdayValues);
exports.DateTimePatternFieldIndex = new instructions_1.KeyIndexImpl(schema_1.DateTimePatternFieldValues);
exports.DayPeriodIndex = new instructions_1.KeyIndexImpl(schema_1.DayPeriodValues);
exports.EraTypeIndex = new instructions_1.KeyIndexImpl(schema_1.EraWidthValues);
exports.FieldWidthIndex = new instructions_1.KeyIndexImpl(schema_1.FieldWidthValues);
exports.FormatWidthIndex = new instructions_1.KeyIndexImpl(schema_1.FormatWidthValues);
exports.QuartersIndex = new instructions_1.KeyIndexImpl(schema_1.QuarterValues);
exports.WeekdaysIndex = new instructions_1.KeyIndexImpl(schema_1.WeekdayValues);
exports.CALENDAR_INDICES = {

@@ -32,0 +31,0 @@ 'date-time-pattern-field': exports.DateTimePatternFieldIndex,

@@ -1,2 +0,2 @@

import { Scope } from '../types';
import { Scope } from '../instructions';
export declare const CURRENCIES: Scope;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var types_1 = require("../types");
exports.CURRENCIES = types_1.scope('Currencies', 'Currencies', [
types_1.vector1('displayName', 'currency-id'),
types_1.vector1('decimal', 'currency-id'),
types_1.vector2('pluralName', 'plural-key', 'currency-id'),
types_1.vector2('symbol', 'alt-key', 'currency-id')
var instructions_1 = require("../instructions");
exports.CURRENCIES = instructions_1.scope('Currencies', 'Currencies', [
instructions_1.vector1('displayName', 'currency-id'),
instructions_1.vector1('decimal', 'currency-id'),
instructions_1.vector2('pluralName', 'plural-key', 'currency-id'),
instructions_1.vector2('symbol', 'alt-key', 'currency-id')
]);
//# sourceMappingURL=currencies.js.map

@@ -1,7 +0,7 @@

import { Scope } from '../types';
import { Scope } from '../instructions';
export declare const DATEFIELDS: Scope;
export declare const DATEFIELDS_INDICES: {
'date-field': import("../types").KeyIndex<import("../schema").DateFieldType>;
'date-field-width': import("../types").KeyIndex<import("../schema").DateFieldWidthType>;
'relative-time-field': import("../types").KeyIndex<import("../schema").RelativeTimeFieldType>;
'date-field': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").DateFieldType>;
'date-field-width': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").DateFieldWidthType>;
'relative-time-field': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").RelativeTimeFieldType>;
};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var types_1 = require("../types");
var instructions_1 = require("../instructions");
var schema_1 = require("../schema");
var prevNext = ['previous2', 'previous', 'current', 'next', 'next2']
.map(function (k) { return types_1.vector1(k, 'relative-time-field'); });
.map(function (k) { return instructions_1.vector1(k, 'relative-time-field'); });
var futurePast = ['future', 'past']
.map(function (k) { return types_1.vector2(k, 'plural-key', 'relative-time-field'); });
.map(function (k) { return instructions_1.vector2(k, 'plural-key', 'relative-time-field'); });
var relativeTimeBody = prevNext.concat(futurePast);
var relativeTimes = function (width) { return types_1.scope(width, width, relativeTimeBody); };
exports.DATEFIELDS = types_1.scope('DateFields', 'DateFields', [
types_1.scope('relativeTimes', 'relativeTimes', [
var relativeTimes = function (width) { return instructions_1.scope(width, width, relativeTimeBody); };
exports.DATEFIELDS = instructions_1.scope('DateFields', 'DateFields', [
instructions_1.scope('relativeTimes', 'relativeTimes', [
relativeTimes('wide'),

@@ -17,3 +17,3 @@ relativeTimes('short'),

]),
types_1.vector2('displayName', 'date-field', 'date-field-width')
instructions_1.vector2('displayName', 'date-field', 'date-field-width')
]);

@@ -20,0 +20,0 @@ exports.DATEFIELDS_INDICES = {

@@ -1,8 +0,8 @@

import { Scope } from '../types';
import { Scope } from '../instructions';
export declare const LAYOUT: Scope;
export declare const LIST_PATTERNS: Scope;
export declare const GENERAL_INDICES: {
'context-transform-field': import("../types").KeyIndex<"script" | "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" | "typographicNames">;
'list-pattern-position': import("../types").KeyIndex<import("../schema/general").ListPatternPositionType>;
'context-transform-field': import("../instructions").KeyIndexImpl<"script" | "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" | "typographicNames">;
'list-pattern-position': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").ListPatternPositionType>;
};
export declare const CONTEXT_TRANSFORM: Scope;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var types_1 = require("../types");
var instructions_1 = require("../instructions");
var general_1 = require("../schema/general");
exports.LAYOUT = types_1.scope('Layout', 'Layout', [
types_1.field('characterOrder'),
types_1.field('lineOrder')
exports.LAYOUT = instructions_1.scope('Layout', 'Layout', [
instructions_1.field('characterOrder'),
instructions_1.field('lineOrder')
]);
var listPattern = function (name) { return types_1.vector1(name, 'list-pattern-position'); };
exports.LIST_PATTERNS = types_1.scope('ListPatterns', 'ListPatterns', [
var listPattern = function (name) { return instructions_1.vector1(name, 'list-pattern-position'); };
exports.LIST_PATTERNS = instructions_1.scope('ListPatterns', 'ListPatterns', [
listPattern('and'),

@@ -22,5 +22,5 @@ listPattern('andShort'),

};
exports.CONTEXT_TRANSFORM = types_1.scope('ContextTransforms', 'ContextTransforms', [
types_1.vector1('contextTransforms', 'context-transform-field')
exports.CONTEXT_TRANSFORM = instructions_1.scope('ContextTransforms', 'ContextTransforms', [
instructions_1.vector1('contextTransforms', 'context-transform-field')
]);
//# sourceMappingURL=general.js.map

@@ -1,2 +0,2 @@

import { Origin } from '../types';
import { Origin } from '../instructions';
export interface SchemaConfig {

@@ -3,0 +3,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var types_1 = require("../types");
var instructions_1 = require("../instructions");
var calendars_1 = require("./calendars");

@@ -14,3 +14,3 @@ var currencies_1 = require("./currencies");

var schema_1 = require("../schema");
var EMPTY_INDEX = new types_1.KeyIndex([]);
var EMPTY_INDEX = new instructions_1.KeyIndexImpl([]);
var emptyCalendarIndex = function (name) {

@@ -94,3 +94,3 @@ var _a;

this.copy('gregorian-interval-format');
return types_1.origin(code, this.indices);
return instructions_1.origin(code, this.indices);
};

@@ -101,6 +101,6 @@ /**

CodeBuilder.prototype.make = function (name, keys) {
this.indices[name] = new types_1.KeyIndex(keys);
this.indices[name] = new instructions_1.KeyIndexImpl(keys);
};
CodeBuilder.prototype.copy = function (name) {
this.indices[name] = new types_1.KeyIndex(this.config[name] || []);
this.indices[name] = new instructions_1.KeyIndexImpl(this.config[name] || []);
};

@@ -107,0 +107,0 @@ CodeBuilder.prototype.add = function (indices) {

@@ -1,2 +0,2 @@

import { Scope } from '../types';
import { Scope } from '../instructions';
export declare const NAMES: Scope;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var types_1 = require("../types");
exports.NAMES = types_1.scope('Names', 'Names', [
types_1.scope('languages', 'languages', [
types_1.vector1('displayName', 'language-id')
var instructions_1 = require("../instructions");
exports.NAMES = instructions_1.scope('Names', 'Names', [
instructions_1.scope('languages', 'languages', [
instructions_1.vector1('displayName', 'language-id')
]),
types_1.scope('scripts', 'scripts', [
types_1.vector1('displayName', 'script-id')
instructions_1.scope('scripts', 'scripts', [
instructions_1.vector1('displayName', 'script-id')
]),
types_1.scope('regions', 'regions', [
types_1.vector2('displayName', 'alt-key', 'region-id')
instructions_1.scope('regions', 'regions', [
instructions_1.vector2('displayName', 'alt-key', 'region-id')
])
]);
//# sourceMappingURL=names.js.map

@@ -1,9 +0,9 @@

import { Scope } from '../types';
import { Scope } from '../instructions';
export declare const NUMBERS: Scope;
export declare const NUMBERS_INDICES: {
'currency-spacing-pattern': import("../types").KeyIndex<import("../schema/numbers").CurrencySpacingPattern>;
'currency-spacing-pos': import("../types").KeyIndex<import("../schema/numbers").CurrencySpacingPos>;
'number-misc-pattern': import("../types").KeyIndex<import("../schema/numbers").NumberMiscPatternType>;
'number-symbol': import("../types").KeyIndex<import("../schema/numbers").NumberSymbolType>;
'number-system': import("../types").KeyIndex<import("../schema/numbers").NumberSystemCategory>;
'currency-spacing-pattern': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").CurrencySpacingPattern>;
'currency-spacing-pos': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").CurrencySpacingPos>;
'number-misc-pattern': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").NumberMiscPatternType>;
'number-symbol': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").NumberSymbolType>;
'number-system': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").NumberSystemCategory>;
};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var types_1 = require("../types");
var instructions_1 = require("../instructions");
var numbers_1 = require("../schema/numbers");
exports.NUMBERS = types_1.scope('Numbers', 'Numbers', [
types_1.field('minimumGroupingDigits'),
types_1.vector1('numberSystems', 'number-system'),
types_1.scopemap('numberSystem', 'number-system-name', [
types_1.vector1('symbols', 'number-symbol'),
types_1.scope('currencyFormats', 'currencyFormats', [
types_1.field('standard'),
types_1.field('accounting'),
types_1.digits('short', 'plural-key', numbers_1.PluralDigitValues),
types_1.vector2('spacing', 'currency-spacing-pos', 'currency-spacing-pattern'),
types_1.vector1('unitPattern', 'plural-key')
exports.NUMBERS = instructions_1.scope('Numbers', 'Numbers', [
instructions_1.field('minimumGroupingDigits'),
instructions_1.vector1('numberSystems', 'number-system'),
instructions_1.scopemap('numberSystem', 'number-system-name', [
instructions_1.vector1('symbols', 'number-symbol'),
instructions_1.scope('currencyFormats', 'currencyFormats', [
instructions_1.field('standard'),
instructions_1.field('accounting'),
instructions_1.digits('short', 'plural-key', numbers_1.PluralDigitValues),
instructions_1.vector2('spacing', 'currency-spacing-pos', 'currency-spacing-pattern'),
instructions_1.vector1('unitPattern', 'plural-key')
]),
types_1.scope('decimalFormats', 'decimalFormats', [
types_1.field('standard'),
types_1.digits('short', 'plural-key', numbers_1.PluralDigitValues),
types_1.digits('long', 'plural-key', numbers_1.PluralDigitValues),
instructions_1.scope('decimalFormats', 'decimalFormats', [
instructions_1.field('standard'),
instructions_1.digits('short', 'plural-key', numbers_1.PluralDigitValues),
instructions_1.digits('long', 'plural-key', numbers_1.PluralDigitValues),
]),
types_1.field('percentFormat'),
types_1.field('scientificFormat'),
types_1.vector1('miscPatterns', 'number-misc-pattern')
instructions_1.field('percentFormat'),
instructions_1.field('scientificFormat'),
instructions_1.vector1('miscPatterns', 'number-misc-pattern')
])

@@ -26,0 +26,0 @@ ]);

@@ -1,6 +0,6 @@

import { Scope } from '../types';
import { Scope } from '../instructions';
export declare const TIMEZONE: Scope;
export declare const TIMEZONE_INDICES: {
'metazone': import("../types").KeyIndex<import("../schema/timezones").MetaZoneType>;
'timezone-type': import("../types").KeyIndex<"standard" | "daylight" | "generic">;
'metazone': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").MetaZoneType>;
'timezone-type': import("../instructions").KeyIndexImpl<import("../../../cldr-types/lib").TimeZoneNameType>;
};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var types_1 = require("../types");
var instructions_1 = require("../instructions");
var timezones_1 = require("../schema/timezones");
exports.TIMEZONE = types_1.scope('TimeZoneNames', 'TimeZones', [
types_1.scope('metaZones', 'metaZones', [
types_1.vector2('short', 'timezone-type', 'metazone'),
types_1.vector2('long', 'timezone-type', 'metazone')
exports.TIMEZONE = instructions_1.scope('TimeZoneNames', 'TimeZones', [
instructions_1.scope('metaZones', 'metaZones', [
instructions_1.vector2('short', 'timezone-type', 'metazone'),
instructions_1.vector2('long', 'timezone-type', 'metazone')
]),
types_1.vector1('exemplarCity', 'timezone-id'),
types_1.field('gmtFormat'),
types_1.field('hourFormat'),
types_1.field('gmtZeroFormat'),
types_1.field('regionFormat')
instructions_1.vector1('exemplarCity', 'timezone-id'),
instructions_1.field('gmtFormat'),
instructions_1.field('hourFormat'),
instructions_1.field('gmtZeroFormat'),
instructions_1.field('regionFormat')
]);

@@ -16,0 +16,0 @@ exports.TIMEZONE_INDICES = {

@@ -1,2 +0,2 @@

import { Scope } from '../types';
import { Scope } from '../instructions';
export declare const UNITS: Scope;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var types_1 = require("../types");
var unitInfo = function (width) { return types_1.scope(width, width, [
types_1.vector2('unitPattern', 'plural-key', 'unit-id'),
types_1.vector1('displayName', 'unit-id'),
types_1.vector1('perUnitPattern', 'unit-id'),
types_1.field('perPattern'),
types_1.field('timesPattern')
var instructions_1 = require("../instructions");
var unitInfo = function (width) { return instructions_1.scope(width, width, [
instructions_1.vector2('unitPattern', 'plural-key', 'unit-id'),
instructions_1.vector1('displayName', 'unit-id'),
instructions_1.vector1('perUnitPattern', 'unit-id'),
instructions_1.field('perPattern'),
instructions_1.field('timesPattern')
]); };
exports.UNITS = types_1.scope('Units', 'Units', [
exports.UNITS = instructions_1.scope('Units', 'Units', [
unitInfo('long'),

@@ -13,0 +13,0 @@ unitInfo('narrow'),

export * from './code';
export * from './schema';
export * from './types';
export * from './instructions';

@@ -6,3 +6,3 @@ "use strict";

tslib_1.__exportStar(require("./schema"), exports);
tslib_1.__exportStar(require("./types"), exports);
tslib_1.__exportStar(require("./instructions"), exports);
//# sourceMappingURL=index.js.map

@@ -1,13 +0,3 @@

import { KeyIndex } from '../types';
/**
* Very low-level access to strings in a bundle. Includes properties
* needed to resolve locales within a pack.
*/
export interface PrimitiveBundle {
id(): string;
language(): string;
region(): string;
get(offset: number): string;
}
export declare class FieldArrow {
import { DigitsArrow, FieldArrow, KeyIndex, PrimitiveBundle, ScopeArrow, Vector1Arrow, Vector2Arrow } from '@phensley/cldr-types';
export declare class FieldArrowImpl implements FieldArrow {
readonly offset: number;

@@ -17,3 +7,3 @@ constructor(offset: number);

}
export declare class ScopeArrow<T extends string, R> {
export declare class ScopeArrowImpl<T extends string, R> implements ScopeArrow<T, R> {
readonly map: {

@@ -30,3 +20,3 @@ [P in T]: R;

*/
export declare class DigitsArrow<T extends string> {
export declare class DigitsArrowImpl<T extends string> implements DigitsArrow<T> {
readonly offset: number;

@@ -40,3 +30,3 @@ readonly index: KeyIndex<T>;

}
export declare class Vector1Arrow<T extends string> {
export declare class Vector1ArrowImpl<T extends string> implements Vector1Arrow<T> {
readonly index: KeyIndex<T>;

@@ -52,3 +42,3 @@ readonly len: number;

}
export declare class Vector2Arrow<T extends string, S extends string> {
export declare class Vector2ArrowImpl<T extends string, S extends string> implements Vector2Arrow<T, S> {
readonly index1: KeyIndex<T>;

@@ -55,0 +45,0 @@ readonly index2: KeyIndex<S>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var FieldArrow = /** @class */ (function () {
function FieldArrow(offset) {
var FieldArrowImpl = /** @class */ (function () {
function FieldArrowImpl(offset) {
this.offset = offset;
}
FieldArrow.prototype.get = function (bundle) {
FieldArrowImpl.prototype.get = function (bundle) {
return bundle.get(this.offset);
};
return FieldArrow;
return FieldArrowImpl;
}());
exports.FieldArrow = FieldArrow;
var ScopeArrow = /** @class */ (function () {
function ScopeArrow(map) {
exports.FieldArrowImpl = FieldArrowImpl;
var ScopeArrowImpl = /** @class */ (function () {
function ScopeArrowImpl(map) {
this.map = map;
}
ScopeArrow.prototype.get = function (key) {
ScopeArrowImpl.prototype.get = function (key) {
return this.map[key];
};
return ScopeArrow;
return ScopeArrowImpl;
}());
exports.ScopeArrow = ScopeArrow;
exports.ScopeArrowImpl = ScopeArrowImpl;
/**
* Special vector to store a pluralized number pattern and its divisor together.
*/
var DigitsArrow = /** @class */ (function () {
function DigitsArrow(offset, index, values) {
var DigitsArrowImpl = /** @class */ (function () {
function DigitsArrowImpl(offset, index, values) {
this.offset = offset;

@@ -33,3 +33,3 @@ this.index = index;

}
DigitsArrow.prototype.get = function (bundle, key, digits) {
DigitsArrowImpl.prototype.get = function (bundle, key, digits) {
if (digits > this.values.length) {

@@ -47,10 +47,10 @@ digits = this.values.length;

}
return DigitsArrow.EMPTY;
return DigitsArrowImpl.EMPTY;
};
DigitsArrow.EMPTY = ['', 0];
return DigitsArrow;
DigitsArrowImpl.EMPTY = ['', 0];
return DigitsArrowImpl;
}());
exports.DigitsArrow = DigitsArrow;
var Vector1Arrow = /** @class */ (function () {
function Vector1Arrow(offset, index) {
exports.DigitsArrowImpl = DigitsArrowImpl;
var Vector1ArrowImpl = /** @class */ (function () {
function Vector1ArrowImpl(offset, index) {
this.index = index;

@@ -60,6 +60,6 @@ this.len = index.keys.length;

}
Vector1Arrow.prototype.exists = function (bundle) {
Vector1ArrowImpl.prototype.exists = function (bundle) {
return bundle.get(this.offset - 1) === 'E';
};
Vector1Arrow.prototype.get = function (bundle, key) {
Vector1ArrowImpl.prototype.get = function (bundle, key) {
var exists = bundle.get(this.offset - 1) === 'E';

@@ -72,3 +72,3 @@ if (exists) {

};
Vector1Arrow.prototype.mapping = function (bundle) {
Vector1ArrowImpl.prototype.mapping = function (bundle) {
var len = this.len;

@@ -92,7 +92,7 @@ var offset = this.offset;

};
return Vector1Arrow;
return Vector1ArrowImpl;
}());
exports.Vector1Arrow = Vector1Arrow;
var Vector2Arrow = /** @class */ (function () {
function Vector2Arrow(offset, index1, index2) {
exports.Vector1ArrowImpl = Vector1ArrowImpl;
var Vector2ArrowImpl = /** @class */ (function () {
function Vector2ArrowImpl(offset, index1, index2) {
this.index1 = index1;

@@ -104,6 +104,6 @@ this.index2 = index2;

}
Vector2Arrow.prototype.exists = function (bundle) {
Vector2ArrowImpl.prototype.exists = function (bundle) {
return bundle.get(this.offset - 1) === 'E';
};
Vector2Arrow.prototype.get = function (bundle, key1, key2) {
Vector2ArrowImpl.prototype.get = function (bundle, key1, key2) {
var exists = bundle.get(this.offset - 1) === 'E';

@@ -122,3 +122,3 @@ if (exists) {

};
Vector2Arrow.prototype.mapping = function (bundle) {
Vector2ArrowImpl.prototype.mapping = function (bundle) {
var offset = this.offset;

@@ -154,5 +154,5 @@ /* tslint:disable-next-line */

};
return Vector2Arrow;
return Vector2ArrowImpl;
}());
exports.Vector2Arrow = Vector2Arrow;
exports.Vector2ArrowImpl = Vector2ArrowImpl;
//# sourceMappingURL=arrows.js.map

@@ -1,5 +0,4 @@

import { KeyIndex } from '../types/instructions';
export declare type PluralType = 'other' | 'zero' | 'one' | 'two' | 'few' | 'many';
export declare const PluralIndex: KeyIndex<PluralType>;
export declare type AltType = 'none' | 'short' | 'narrow' | 'variant' | 'stand-alone';
export declare const AltIndex: KeyIndex<"none" | "short" | "narrow" | "variant" | "stand-alone">;
import { PluralType } from '@phensley/cldr-types';
import { KeyIndexImpl } from '../instructions';
export declare const PluralIndex: KeyIndexImpl<PluralType>;
export declare const AltIndex: KeyIndexImpl<import("../../../cldr-types/lib").AltType>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var instructions_1 = require("../types/instructions");
exports.PluralIndex = new instructions_1.KeyIndex(['other', 'zero', 'one', 'two', 'few', 'many']);
exports.AltIndex = new instructions_1.KeyIndex(['none', 'short', 'narrow', 'variant', 'stand-alone']);
var instructions_1 = require("../instructions");
exports.PluralIndex = new instructions_1.KeyIndexImpl(['other', 'zero', 'one', 'two', 'few', 'many']);
exports.AltIndex = new instructions_1.KeyIndexImpl(['none', 'short', 'narrow', 'variant', 'stand-alone']);
//# sourceMappingURL=enums.js.map
export * from './arrows';
export * from './enums';
export * from './autogen.context';
export * from './autogen.timezones';
export * from './datefields';
export * from './calendar';
export * from './general';
export * from './currencies';
export * from './names';
export * from './numbers';
export * from './timezones';
export * from './units';
import { BuddhistSchema, GregorianSchema, JapaneseSchema, PersianSchema } from './calendar';
import { CurrenciesSchema } from './currencies';
import { DateFieldsSchema } from './datefields';
import { ContextTransformsSchema, LayoutSchema, ListPatternsSchema } from './general';
import { NamesSchema } from './names';
import { NumbersSchema } from './numbers';
import { TimeZoneSchema } from './timezones';
import { UnitsSchema } from './units';
export interface Schema {
readonly Names: NamesSchema;
readonly Numbers: NumbersSchema;
readonly DateFields: DateFieldsSchema;
readonly Layout: LayoutSchema;
readonly ListPatterns: ListPatternsSchema;
readonly Buddhist: BuddhistSchema;
readonly Gregorian: GregorianSchema;
readonly Japanese: JapaneseSchema;
readonly Persian: PersianSchema;
readonly TimeZones: TimeZoneSchema;
readonly Currencies: CurrenciesSchema;
readonly Units: UnitsSchema;
readonly ContextTransforms: ContextTransformsSchema;
}

@@ -6,2 +6,4 @@ "use strict";

tslib_1.__exportStar(require("./enums"), exports);
tslib_1.__exportStar(require("./autogen.context"), exports);
tslib_1.__exportStar(require("./autogen.timezones"), exports);
tslib_1.__exportStar(require("./datefields"), exports);

@@ -8,0 +10,0 @@ tslib_1.__exportStar(require("./calendar"), exports);

{
"name": "@phensley/cldr-schema",
"version": "0.20.4",
"version": "0.21.0",
"description": "Schema for @phensley/cldr",

@@ -36,2 +36,3 @@ "main": "lib/index.js",

"dependencies": {
"@phensley/cldr-types": "0.21.0",
"tslib": "1.10.x"

@@ -65,3 +66,3 @@ },

},
"gitHead": "561d23c9b3fcb73b0fe4f89beb2d5661cbac53de"
"gitHead": "922b98484b58cb869528dac3904d30124fa5967b"
}

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc