@liturgical-calendar/components-js
Version:
Liturgical calendar components for javascript: an html select populated with liturgical calendars supported by the Liturgical Calendar API; form controls for parameters that are supported by the Liturgical Calendar API; a webcalendar; and liturgy of the d
81 lines (80 loc) • 2.29 kB
JavaScript
/**
* @enum {{BY_MONTH: 'BY_MONTH', BY_LITURGICAL_SEASON: 'BY_LITURGICAL_SEASON'}}
*/
const Grouping = Object.freeze({
BY_MONTH: 'BY_MONTH',
BY_LITURGICAL_SEASON: 'BY_LITURGICAL_SEASON'
});
/**
* @enum {{GRADE_FIRST: 'GRADE_FIRST', EVENT_DETAILS_FIRST: 'EVENT_DETAILS_FIRST'}}
*/
const ColumnOrder = Object.freeze({
GRADE_FIRST: 'GRADE_FIRST',
EVENT_DETAILS_FIRST: 'EVENT_DETAILS_FIRST'
});
/**
* @enum {{LITURGICAL_SEASON: 1, MONTH: 2, DATE: 4, EVENT_DETAILS: 8, GRADE: 16, PSALTER_WEEK: 32, ALL: 63, NONE: 0}}
*/
const Column = Object.freeze({
LITURGICAL_SEASON: 1 << 0, // 1
MONTH: 1 << 1, // 2
DATE: 1 << 2, // 4
EVENT_DETAILS: 1 << 3, // 8
GRADE: 1 << 4, // 16
PSALTER_WEEK: 1 << 5, // 32
ALL: (1 | 2 | 4 | 8 | 16 | 32), // 63
NONE: 0
});
/**
* @enum {{BACKGROUND: 'BACKGROUND', CSS_CLASS: 'CSS_CLASS', INDICATOR: 'INDICATOR', NONE: 'NONE'}}
*/
const ColorAs = Object.freeze({
BACKGROUND: "BACKGROUND",
CSS_CLASS: "CSS_CLASS",
INDICATOR: "INDICATOR",
NONE: "NONE"
});
/**
* @enum {{FULL: 'full', LONG: 'long', MEDIUM: 'medium', SHORT: 'short', DAY_ONLY: 'day-only'}}
*/
const DateFormat = Object.freeze({
FULL: 'full',
LONG: 'long',
MEDIUM: 'medium',
SHORT: 'short',
DAY_ONLY: 'day-only'
});
/**
* @enum {{FULL: 'full', ABBREVIATED: 'abbreviated'}}
*/
const GradeDisplay = Object.freeze({
FULL: 'full',
ABBREVIATED: 'abbreviated'
});
/**
* @enum {{GENERAL_ROMAN: 'basePath', ALL_CALENDARS: 'allPaths', BASE_PATH: 'basePath', ALL_PATHS: 'allPaths', NONE: null}}
*/
const ApiOptionsFilter = Object.freeze({
GENERAL_ROMAN: 'basePath',
ALL_CALENDARS: 'allPaths',
PATH_BUILDER: 'pathBuilder',
BASE_PATH: 'basePath',
ALL_PATHS: 'allPaths',
NONE: null
});
/**
* @enum {{NATIONAL_CALENDARS: 'nations', DIOCESAN_CALENDARS: 'dioceses', NONE: 'none'}}
*/
const CalendarSelectFilter = Object.freeze({
NATIONAL_CALENDARS: 'nations',
DIOCESAN_CALENDARS: 'dioceses',
NONE: 'none'
});
/**
* @enum {{LITURGICAL: 'LITURGICAL', CIVIL: 'CIVIL'}}
*/
const YearType = Object.freeze({
LITURGICAL: 'LITURGICAL',
CIVIL: 'CIVIL'
});
export { Grouping, ColumnOrder, Column, ColorAs, DateFormat, GradeDisplay, ApiOptionsFilter, CalendarSelectFilter, YearType };