UNPKG

@nesto-software/moment-holiday-austria

Version:

The austrian locale for moment-holiday.

174 lines 8.84 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); } return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var moment_holiday_core_1 = require("@nesto-software/moment-holiday-core"); var url = require("url"); var religion_tag_1 = require("../tag/religion-tag"); var holiday_names_1 = require("./holiday-names"); var AustrianCountryLocale = /** @class */ (function (_super) { __extends(AustrianCountryLocale, _super); function AustrianCountryLocale() { var _this = _super !== null && _super.apply(this, arguments) || this; _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"); return _this; } AustrianCountryLocale.prototype.getHolidayDefinitions = function () { 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(), ], }, ]; }; return AustrianCountryLocale; }(moment_holiday_core_1.AbstractLocale)); exports.AustrianCountryLocale = AustrianCountryLocale; //# sourceMappingURL=country-locale.js.map