UNPKG

@nesto-software/moment-holiday-germany

Version:

The german locale for moment-holiday.

89 lines 4.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var moment_holiday_core_1 = require("@nesto-software/moment-holiday-core"); var holiday_names_1 = require("./holiday-names"); /** * Returns holiday definitions which are usually common for all german states. * However, they are defined per state. That is why each state locale returns them. * @param legislation the legislation of the state which defines this common holiday definitions itself */ exports.COMMON_STATE_HOLIDAY_DEFINITIONS = function (legislation) { return [{ name: holiday_names_1.HolidayName.NEUJAHRSTAG, date: new moment_holiday_core_1.RecurringDate(1, 0), tags: [ new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC), new moment_holiday_core_1.LegislationTag(legislation), ], }, { name: holiday_names_1.HolidayName.KARFREITAG, date: new moment_holiday_core_1.EasterDependentDate(-2), tags: [ new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC), new moment_holiday_core_1.LegislationTag(legislation), ], }, { name: holiday_names_1.HolidayName.OSTERMONTAG, date: new moment_holiday_core_1.EasterDependentDate(+1), tags: [ new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC), new moment_holiday_core_1.LegislationTag(legislation), ], }, { name: holiday_names_1.HolidayName.MAIFEIERTAG, date: new moment_holiday_core_1.RecurringDate(1, 4), tags: [ new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC), new moment_holiday_core_1.LegislationTag(legislation), new moment_holiday_core_1.SpecialSurchargeDayTag(), ], }, { name: holiday_names_1.HolidayName.CHRISTI_HIMMELFAHRT, date: new moment_holiday_core_1.EasterDependentDate(+39), tags: [ new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC), new moment_holiday_core_1.LegislationTag(legislation), ], }, { name: holiday_names_1.HolidayName.PFINGSTMONTAG, date: new moment_holiday_core_1.EasterDependentDate(+50), tags: [ new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC), new moment_holiday_core_1.LegislationTag(legislation), ], }, { name: holiday_names_1.HolidayName.WEIHNACHTEN, date: new moment_holiday_core_1.RecurringDate(24, 11), tags: [ new moment_holiday_core_1.SpecialSurchargeDayTag(), new moment_holiday_core_1.LateTag(), new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.OBSERVANCE), ], }, { name: holiday_names_1.HolidayName.ERSTER_WEIHNACHTSFEIERTAG, date: new moment_holiday_core_1.RecurringDate(25, 11), tags: [ new moment_holiday_core_1.SpecialSurchargeDayTag(), new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC), new moment_holiday_core_1.LegislationTag(legislation), ], }, { name: holiday_names_1.HolidayName.ZWEITER_WEIHNACHTSFEIERTAG, date: new moment_holiday_core_1.RecurringDate(26, 11), tags: [ new moment_holiday_core_1.SpecialSurchargeDayTag(), new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC), new moment_holiday_core_1.LegislationTag(legislation), ], }, ]; }; //# sourceMappingURL=common-state-holiday-definitions.js.map