@nesto-software/moment-holiday-austria
Version:
The austrian locale for moment-holiday.
158 lines • 8.01 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const moment_holiday_core_1 = require("@nesto-software/moment-holiday-core");
const url = require("url");
const religion_tag_1 = require("../tag/religion-tag");
const holiday_names_1 = require("./holiday-names");
class AustrianCountryLocale extends moment_holiday_core_1.AbstractLocale {
constructor() {
super(...arguments);
this.arbeitsruhegesetzS2 = new moment_holiday_core_1.Legislation("Arbeitsruhegesetz", url.parse("https://www.ris.bka.gv.at/Dokument.wxe?Abfrage=Bundesnormen&Dokumentnummer=NOR40060439"), "§7 (2)");
this.arbeitsruhegesetzS3 = new moment_holiday_core_1.Legislation("Arbeitsruhegesetz", url.parse("https://www.ris.bka.gv.at/Dokument.wxe?Abfrage=Bundesnormen&Dokumentnummer=NOR40060439"), "§7 (3)");
this.kollektivvertrag = new moment_holiday_core_1.Legislation("Kollektivvertag");
}
getHolidayDefinitions() {
return [
{
name: holiday_names_1.HolidayName.NEUJAHR,
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(this.arbeitsruhegesetzS2),
],
},
{
name: holiday_names_1.HolidayName.HEILIGE_DREI_KOENIGE,
date: new moment_holiday_core_1.RecurringDate(6, 0),
tags: [
new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC),
new moment_holiday_core_1.LegislationTag(this.arbeitsruhegesetzS2),
],
},
{
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(this.arbeitsruhegesetzS3),
new religion_tag_1.ReligionTag([
religion_tag_1.Religion.ALTKATHOLISCHE_KIRCHE,
religion_tag_1.Religion.ENVANGELISCH_AB,
religion_tag_1.Religion.ENVANGELISCH_HB,
religion_tag_1.Religion.EVANGELISCH_METHODISTISCH,
]),
],
},
{
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(this.arbeitsruhegesetzS2),
],
},
{
name: holiday_names_1.HolidayName.STAATSFEIERTAG,
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(this.arbeitsruhegesetzS2),
],
},
{
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(this.arbeitsruhegesetzS2),
],
},
{
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(this.arbeitsruhegesetzS2),
],
},
{
name: holiday_names_1.HolidayName.FRONLEICHNAM,
date: new moment_holiday_core_1.EasterDependentDate(+60),
tags: [
new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC),
new moment_holiday_core_1.LegislationTag(this.arbeitsruhegesetzS2),
],
},
{
name: holiday_names_1.HolidayName.MARIA_HIMMELFAHRT,
date: new moment_holiday_core_1.RecurringDate(15, 7),
tags: [
new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC),
new moment_holiday_core_1.LegislationTag(this.arbeitsruhegesetzS2),
],
},
{
name: holiday_names_1.HolidayName.NATIONALFEIERTAG,
date: new moment_holiday_core_1.RecurringDate(26, 9),
tags: [
new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC),
new moment_holiday_core_1.LegislationTag(this.arbeitsruhegesetzS2),
],
},
{
name: holiday_names_1.HolidayName.ALLERHEILIGEN,
date: new moment_holiday_core_1.RecurringDate(1, 10),
tags: [
new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC),
new moment_holiday_core_1.LegislationTag(this.arbeitsruhegesetzS2),
],
},
{
name: holiday_names_1.HolidayName.MARIA_EMPFAENGNIS,
date: new moment_holiday_core_1.RecurringDate(8, 11),
tags: [
new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC),
new moment_holiday_core_1.LegislationTag(this.arbeitsruhegesetzS2),
],
},
{
name: holiday_names_1.HolidayName.HEILIGER_ABEND,
date: new moment_holiday_core_1.RecurringDate(24, 11),
tags: [
new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.OBSERVANCE),
new moment_holiday_core_1.LegislationTag(this.kollektivvertrag),
new moment_holiday_core_1.SpecialSurchargeDayTag(),
new moment_holiday_core_1.LateTag(),
],
},
{
name: holiday_names_1.HolidayName.WEIHNACHTEN,
date: new moment_holiday_core_1.RecurringDate(25, 11),
tags: [
new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC),
new moment_holiday_core_1.LegislationTag(this.arbeitsruhegesetzS2),
],
},
{
name: holiday_names_1.HolidayName.STEPHANSTAG,
date: new moment_holiday_core_1.RecurringDate(26, 11),
tags: [
new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC),
new moment_holiday_core_1.LegislationTag(this.arbeitsruhegesetzS2),
],
},
{
name: holiday_names_1.HolidayName.SILVESTER,
date: new moment_holiday_core_1.RecurringDate(31, 11),
tags: [
new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.OBSERVANCE),
new moment_holiday_core_1.LegislationTag(this.kollektivvertrag),
new moment_holiday_core_1.SpecialSurchargeDayTag(),
new moment_holiday_core_1.LateTag(),
],
},
];
}
}
exports.AustrianCountryLocale = AustrianCountryLocale;
//# sourceMappingURL=country-locale.js.map