@hebcal/core 6.1.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/bundle.js +203 -18
  2. package/dist/bundle.js.map +1 -1
  3. package/dist/bundle.min.js +5 -5
  4. package/dist/bundle.min.js.map +1 -1
  5. package/dist/esm/DailyLearning.js +1 -1
  6. package/dist/esm/HebrewDateEvent.js +1 -1
  7. package/dist/esm/HolidayEvent.js +1 -1
  8. package/dist/esm/MevarchimChodeshEvent.js +1 -1
  9. package/dist/esm/ParshaEvent.js +1 -1
  10. package/dist/esm/TimedEvent.js +1 -1
  11. package/dist/esm/YomKippurKatanEvent.js +1 -1
  12. package/dist/esm/ashkenazi.po.js +1 -1
  13. package/dist/esm/calendar.js +1 -1
  14. package/dist/esm/candles.js +1 -1
  15. package/dist/esm/event.js +1 -1
  16. package/dist/esm/getStartAndEnd.js +1 -1
  17. package/dist/esm/hallel.js +1 -1
  18. package/dist/esm/he-x-NoNikud.po.d.ts +2 -0
  19. package/dist/esm/he-x-NoNikud.po.js +2 -2
  20. package/dist/esm/he-x-NoNikud.po.js.map +1 -1
  21. package/dist/esm/he.po.js +2 -2
  22. package/dist/esm/he.po.js.map +1 -1
  23. package/dist/esm/hebcal.js +1 -1
  24. package/dist/esm/holidays.js +1 -1
  25. package/dist/esm/index.js +1 -1
  26. package/dist/esm/isAssurBemlacha.js +1 -1
  27. package/dist/esm/locale.js +1 -1
  28. package/dist/esm/location.js +1 -1
  29. package/dist/esm/modern.js +1 -1
  30. package/dist/esm/molad.js +1 -1
  31. package/dist/esm/moladBase.js +1 -1
  32. package/dist/esm/moladDate.js +1 -1
  33. package/dist/esm/omer.js +1 -1
  34. package/dist/esm/parshaName.js +1 -1
  35. package/dist/esm/parshaYear.js +1 -1
  36. package/dist/esm/pkgVersion.d.ts +1 -1
  37. package/dist/esm/pkgVersion.js +2 -2
  38. package/dist/esm/pkgVersion.js.map +1 -1
  39. package/dist/esm/reformatTimeStr.js +1 -1
  40. package/dist/esm/sedra.js +1 -1
  41. package/dist/esm/staticHolidays.js +1 -1
  42. package/dist/esm/tachanun.js +1 -1
  43. package/dist/esm/zmanim.d.ts +159 -11
  44. package/dist/esm/zmanim.js +200 -15
  45. package/dist/esm/zmanim.js.map +1 -1
  46. package/dist/src/he-x-NoNikud.po.d.ts +2 -0
  47. package/dist/src/he-x-NoNikud.po.js +1 -1
  48. package/dist/src/he.po.js +1 -1
  49. package/dist/src/pkgVersion.d.ts +1 -1
  50. package/dist/src/pkgVersion.js +1 -1
  51. package/dist/src/zmanim.d.ts +159 -11
  52. package/dist/src/zmanim.js +199 -14
  53. package/package.json +1 -1
  54. package/dist/CalOptions.d.ts +0 -168
  55. package/dist/DailyLearning.d.ts +0 -32
  56. package/dist/HebrewDateEvent.d.ts +0 -37
  57. package/dist/HolidayEvent.d.ts +0 -84
  58. package/dist/MevarchimChodeshEvent.d.ts +0 -26
  59. package/dist/ParshaEvent.d.ts +0 -19
  60. package/dist/TimedEvent.d.ts +0 -47
  61. package/dist/YomKippurKatanEvent.d.ts +0 -23
  62. package/dist/ashkenazi.po.d.ts +0 -82
  63. package/dist/calendar.d.ts +0 -111
  64. package/dist/candles.d.ts +0 -44
  65. package/dist/event.d.ts +0 -188
  66. package/dist/getStartAndEnd.d.ts +0 -6
  67. package/dist/hallel.d.ts +0 -6
  68. package/dist/he-x-NoNikud.po.d.ts +0 -16
  69. package/dist/he.po.d.ts +0 -215
  70. package/dist/hebcal.d.ts +0 -260
  71. package/dist/holidays.d.ts +0 -22
  72. package/dist/index.d.ts +0 -28
  73. package/dist/isAssurBemlacha.d.ts +0 -9
  74. package/dist/locale.d.ts +0 -1
  75. package/dist/location.d.ts +0 -73
  76. package/dist/modern.d.ts +0 -18
  77. package/dist/molad.d.ts +0 -132
  78. package/dist/moladBase.d.ts +0 -15
  79. package/dist/moladDate.d.ts +0 -12
  80. package/dist/omer.d.ts +0 -52
  81. package/dist/parshaName.d.ts +0 -2
  82. package/dist/parshaYear.d.ts +0 -9
  83. package/dist/pkgVersion.d.ts +0 -2
  84. package/dist/reformatTimeStr.d.ts +0 -8
  85. package/dist/sedra.d.ts +0 -95
  86. package/dist/staticHolidays.d.ts +0 -176
  87. package/dist/tachanun.d.ts +0 -29
  88. package/dist/zmanim.d.ts +0 -460
@@ -1,168 +0,0 @@
1
- import { HDate } from '@hebcal/hdate';
2
- import type { Location } from './location';
3
- export type DailyLearningValue = boolean | number | string;
4
- /**
5
- * Options to configure which events are returned
6
- */
7
- export type CalOptions = {
8
- /**
9
- * latitude/longitude/tzid used for candle-lighting
10
- */
11
- location?: Location;
12
- /**
13
- * Gregorian or Hebrew year
14
- */
15
- year?: number;
16
- /**
17
- * to interpret year as Hebrew year
18
- */
19
- isHebrewYear?: boolean;
20
- /**
21
- * Gregorian or Hebrew month (to filter results to a single month)
22
- */
23
- month?: number | string;
24
- /**
25
- * generate calendar for multiple years (default 1)
26
- */
27
- numYears?: number;
28
- /**
29
- * use specific start date (requires end date)
30
- */
31
- start?: number | HDate | Date;
32
- /**
33
- * use specific end date (requires start date)
34
- */
35
- end?: number | HDate | Date;
36
- /**
37
- * calculate candle-lighting and havdalah times
38
- */
39
- candlelighting?: boolean;
40
- /**
41
- * minutes before sundown to light candles (default 18)
42
- */
43
- candleLightingMins?: number;
44
- /**
45
- * minutes after sundown for Havdalah (typical values are 42, 50, or 72).
46
- * If `undefined` (the default), calculate Havdalah according to Tzeit Hakochavim -
47
- * Nightfall (the point when 3 small stars are observable in the night time sky with
48
- * the naked eye). If `0`, Havdalah times are suppressed.
49
- */
50
- havdalahMins?: number;
51
- /**
52
- * degrees for solar depression for Havdalah.
53
- * Default is 8.5 degrees for 3 small stars. use 7.083 degrees for 3 medium-sized stars
54
- * (observed by Dr. Baruch (Berthold) Cohn in his luach published in France in 1899).
55
- * If `0`, Havdalah times are suppressed.
56
- */
57
- havdalahDeg?: number;
58
- /**
59
- * degrees for solar depression for end of fast days.
60
- * Default is 7.083 degrees for 3 medium-sized stars. Other commonly-used values include
61
- * 6.45 degrees, as calculated by Rabbi Yechiel Michel Tucazinsky.
62
- */
63
- fastEndDeg?: number;
64
- /**
65
- * use elevation for calculations (default `false`).
66
- * If `true`, use elevation to affect the calculation of all sunrise/sunset based zmanim.
67
- * Note: there are some zmanim such as degree-based zmanim that are driven by the amount
68
- * of light in the sky and are not impacted by elevation.
69
- * These zmanim intentionally do not support elevation adjustment.
70
- */
71
- useElevation?: boolean;
72
- /**
73
- * calculate parashah hashavua on Saturdays
74
- */
75
- sedrot?: boolean;
76
- /**
77
- * Israeli holiday and sedra schedule
78
- */
79
- il?: boolean;
80
- /**
81
- * suppress minor fasts
82
- */
83
- noMinorFast?: boolean;
84
- /**
85
- * suppress modern holidays
86
- */
87
- noModern?: boolean;
88
- /**
89
- * suppress Rosh Chodesh
90
- */
91
- noRoshChodesh?: boolean;
92
- /**
93
- * add Shabbat Mevarchim
94
- */
95
- shabbatMevarchim?: boolean;
96
- /**
97
- * suppress Special Shabbat
98
- */
99
- noSpecialShabbat?: boolean;
100
- /**
101
- * suppress regular holidays
102
- */
103
- noHolidays?: boolean;
104
- /**
105
- * include Days of the Omer
106
- */
107
- omer?: boolean;
108
- /**
109
- * include event announcing the molad
110
- */
111
- molad?: boolean;
112
- /**
113
- * use Ashkenazi transliterations for event titles (default Sephardi transliterations)
114
- * @deprecated use `event.render('ashkenazi')` instead
115
- */
116
- ashkenazi?: boolean;
117
- /**
118
- * translate event titles according to a locale
119
- * Default value is `en`, also built-in are `he` and `ashkenazi`.
120
- * Additional locales (such as `ru` or `fr`) are provided by the
121
- * {@link https://github.com/hebcal/hebcal-locales @hebcal/locales} package
122
- */
123
- locale?: string;
124
- /**
125
- * print the Hebrew date for the entire date range
126
- */
127
- addHebrewDates?: boolean;
128
- /**
129
- * print the Hebrew date for dates with some events
130
- */
131
- addHebrewDatesForEvents?: boolean;
132
- /**
133
- * use bitmask from `flags` to filter events
134
- */
135
- mask?: number;
136
- /**
137
- * include Yom Kippur Katan (default `false`).
138
- * יוֹם כִּפּוּר קָטָן is a minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh.
139
- * Yom Kippur Katan is omitted in Elul (on the day before Rosh Hashanah),
140
- * Tishrei (Yom Kippur has just passed), Kislev (due to Chanukah)
141
- * and Nisan (fasting not permitted during Nisan).
142
- * When Rosh Chodesh occurs on Shabbat or Sunday, Yom Kippur Katan is observed on the preceding Thursday.
143
- * See {@link https://en.wikipedia.org/wiki/Yom_Kippur_Katan#Practices Wikipedia Yom Kippur Katan practices}
144
- */
145
- yomKippurKatan?: boolean;
146
- /**
147
- * Whether to use 12-hour time (as opposed to 24-hour time).
148
- * Possible values are `true` and `false`; the default is locale dependent.
149
- */
150
- hour12?: boolean;
151
- /**
152
- * map of options to enable daily study calendars
153
- * such as `dafYomi`, `mishnaYomi`, `nachYomi` with value `true`. For `yerushalmi`
154
- * the value should be a `number` for edition (`1` for Vilna, `2` for Schottenstein).
155
- */
156
- dailyLearning?: Record<string, DailyLearningValue>;
157
- /**
158
- * Yizkor (Hebrew: יִזְכּוֹר) is an Ashkenazi Jewish memorial prayer service
159
- * for the dead. Yizkor is recited in synagogue as part of the service
160
- * during four holidays each year:
161
- * 1. Yom Kippur
162
- * 2. Shmini Atzeret
163
- * 3. The final day of Passover (8th day Pesach in Diaspora, 7th day
164
- * Pesach in Israel)
165
- * 4. Shavuot (2nd day Shavuot in Diaspora)
166
- */
167
- yizkor?: boolean;
168
- };
@@ -1,32 +0,0 @@
1
- import { HDate } from '@hebcal/hdate';
2
- import { Event } from './event';
3
- /**
4
- * Plug-ins for daily learning calendars such as Daf Yomi, Mishna Yomi, Nach Yomi, etc.
5
- *
6
- * Learning schedules are provided by the `@hebcal/learning` package.
7
- */
8
- export declare class DailyLearning {
9
- /**
10
- * Register a new learning calendar.
11
- * @param name case insensitive
12
- * @param calendar a function that returns an `Event` or `null`
13
- * @param startDate the first date for which this calendar is valid
14
- */
15
- static addCalendar(name: string, calendar: (hd: HDate, il: boolean) => Event | null, startDate?: HDate): void;
16
- /**
17
- * Returns an event from daily calendar for a given date. Returns `null` if there
18
- * is no learning from this calendar on this date.
19
- * @param name case insensitive
20
- * @param hd Hebrew Date
21
- * @param il true for Israel, false for Diaspora
22
- */
23
- static lookup(name: string, hd: HDate, il: boolean): Event | null;
24
- static getStartDate(name: string): HDate | undefined;
25
- /**
26
- * Tests to see if learning calendar has been registered
27
- * @param name case insensitive
28
- */
29
- static has(name: string): boolean;
30
- /** Returns the names of all calendars registered */
31
- static getCalendars(): string[];
32
- }
@@ -1,37 +0,0 @@
1
- import { HDate } from '@hebcal/hdate';
2
- import { Event } from './event';
3
- import './locale';
4
- /** Daily Hebrew date ("11th of Sivan, 5780") */
5
- export declare class HebrewDateEvent extends Event {
6
- /**
7
- * @param date
8
- */
9
- constructor(date: HDate);
10
- /**
11
- * @param [locale] Optional locale name (defaults to empty locale)
12
- * @example
13
- * import {HDate, HebrewDateEvent, months} from '@hebcal/core';
14
- *
15
- * const hd = new HDate(15, months.CHESHVAN, 5769);
16
- * const ev = new HebrewDateEvent(hd);
17
- * console.log(ev.render('en')); // '15th of Cheshvan, 5769'
18
- * console.log(ev.render('he')); // 'ט״ו חֶשְׁוָן תשס״ט'
19
- */
20
- render(locale?: string): string;
21
- /**
22
- * @private
23
- * @param locale
24
- */
25
- private renderBriefHebrew;
26
- /**
27
- * @param [locale] Optional locale name (defaults to empty locale)
28
- * @example
29
- * import {HDate, HebrewDateEvent, months} from '@hebcal/core';
30
- *
31
- * const hd = new HDate(15, months.CHESHVAN, 5769);
32
- * const ev = new HebrewDateEvent(hd);
33
- * console.log(ev.renderBrief()); // '15th of Cheshvan'
34
- * console.log(ev.renderBrief('he')); // 'ט״ו חֶשְׁוָן'
35
- */
36
- renderBrief(locale?: string): string;
37
- }
@@ -1,84 +0,0 @@
1
- import { HDate } from '@hebcal/hdate';
2
- import { Event } from './event';
3
- import './locale';
4
- /** Represents a built-in holiday like Pesach, Purim or Tu BiShvat */
5
- export declare class HolidayEvent extends Event {
6
- /** During Sukkot or Pesach */
7
- cholHaMoedDay?: number;
8
- /**
9
- * `true` if the fast day was postponed a day to avoid Shabbat.
10
- * - Tish'a B'Av postponed from the 9th to the 10th
11
- * - Tzom Tammuz postponed from the 17th to the 18th
12
- */
13
- observed?: boolean;
14
- constructor(date: HDate, desc: string, mask?: number, attrs?: object);
15
- basename(): string;
16
- url(): string | undefined;
17
- urlDateSuffix(): string;
18
- getEmoji(): string;
19
- getCategories(): string[];
20
- /**
21
- * Returns (translated) description of this event
22
- * @param [locale] Optional locale name (defaults to empty locale)
23
- */
24
- render(locale?: string): string;
25
- /**
26
- * Returns a brief (translated) description of this event.
27
- * For most events, this is the same as render(). For some events, it procudes
28
- * a shorter text (e.g. without a time or added description).
29
- * @param [locale] Optional locale name (defaults to empty locale)
30
- */
31
- renderBrief(locale?: string): string;
32
- }
33
- /**
34
- * Because Asara B'Tevet often occurs twice in the same Gregorian year,
35
- * we subclass HolidayEvent to generate the correct URL.
36
- */
37
- export declare class AsaraBTevetEvent extends HolidayEvent {
38
- urlDateSuffix(): string;
39
- }
40
- /**
41
- * Because Chanukah sometimes starts in December and ends in January,
42
- * we subclass HolidayEvent to generate the correct URL.
43
- */
44
- export declare class ChanukahEvent extends HolidayEvent {
45
- readonly chanukahDay?: number;
46
- /**
47
- * @param chanukahDay should be undefined for 1st night of Chanukah
48
- */
49
- constructor(date: HDate, desc: string, mask: number, chanukahDay?: number);
50
- urlDateSuffix(): string;
51
- }
52
- /** Represents Rosh Hashana, the Jewish New Year */
53
- export declare class RoshHashanaEvent extends HolidayEvent {
54
- private readonly hyear;
55
- /**
56
- * @private
57
- * @param date Hebrew date event occurs
58
- * @param hyear Hebrew year
59
- * @param mask optional holiday flags
60
- */
61
- constructor(date: HDate, hyear: number, mask: number);
62
- /**
63
- * Returns (translated) description of this event
64
- * @param [locale] Optional locale name (defaults to empty locale)
65
- */
66
- render(locale?: string): string;
67
- getEmoji(): string;
68
- }
69
- /** Represents Rosh Chodesh, the beginning of a new month */
70
- export declare class RoshChodeshEvent extends HolidayEvent {
71
- /**
72
- * Constructs Rosh Chodesh event
73
- * @param date Hebrew date event occurs
74
- * @param monthName Hebrew month name (not translated)
75
- */
76
- constructor(date: HDate, monthName: string);
77
- /**
78
- * Returns (translated) description of this event
79
- * @param [locale] Optional locale name (defaults to empty locale)
80
- */
81
- render(locale?: string): string;
82
- basename(): string;
83
- getEmoji(): string;
84
- }
@@ -1,26 +0,0 @@
1
- import { HDate } from '@hebcal/hdate';
2
- import { Event } from './event';
3
- import './locale';
4
- /** Represents Mevarchim haChodesh, the announcement of the new month */
5
- export declare class MevarchimChodeshEvent extends Event {
6
- readonly monthName: string;
7
- /**
8
- * Constructs Mevarchim haChodesh event
9
- * @param date Hebrew date event occurs
10
- * @param monthName Hebrew month name (not translated)
11
- * @param [memo]
12
- * @param locale Optional locale name
13
- */
14
- constructor(date: HDate, monthName: string, memo: string, locale?: string);
15
- basename(): string;
16
- /**
17
- * Returns (translated) description of this event
18
- * @param [locale] Optional locale name (defaults to empty locale)
19
- */
20
- render(locale?: string): string;
21
- /**
22
- * Returns (translated) description of this event
23
- * @param [locale] Optional locale name (defaults to empty locale)
24
- */
25
- renderBrief(locale?: string): string;
26
- }
@@ -1,19 +0,0 @@
1
- import { Event } from './event';
2
- import { SedraResult } from './sedra';
3
- import './locale';
4
- /**
5
- * Represents one of 54 weekly Torah portions, always on a Saturday
6
- */
7
- export declare class ParshaEvent extends Event {
8
- readonly p: SedraResult;
9
- constructor(parsha: SedraResult);
10
- /**
11
- * @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to empty locale.
12
- */
13
- render(locale?: string): string;
14
- basename(): string;
15
- url(): string | undefined;
16
- urlDateSuffix(): string;
17
- /** convenience function for compatibility with previous implementation */
18
- get parsha(): string[];
19
- }
@@ -1,47 +0,0 @@
1
- import { HDate } from '@hebcal/hdate';
2
- import { CalOptions } from './CalOptions';
3
- import { Location } from './location';
4
- import { Event } from './event';
5
- import './locale';
6
- /** An event that has an `eventTime` and `eventTimeStr` */
7
- export declare class TimedEvent extends Event {
8
- readonly eventTime: Date;
9
- readonly location: Location;
10
- readonly eventTimeStr: string;
11
- readonly fmtTime: string;
12
- readonly linkedEvent?: Event;
13
- /**
14
- * @param desc Description (not translated)
15
- */
16
- constructor(date: HDate, desc: string, mask: number, eventTime: Date, location: Location, linkedEvent?: Event, options?: CalOptions);
17
- /**
18
- * @param [locale] Optional locale name (defaults to empty locale)
19
- */
20
- render(locale?: string): string;
21
- /**
22
- * Returns translation of "Candle lighting" without the time.
23
- * @param [locale] Optional locale name (defaults to empty locale)
24
- */
25
- renderBrief(locale?: string): string;
26
- getCategories(): string[];
27
- }
28
- /** Candle lighting before Shabbat or holiday */
29
- export declare class CandleLightingEvent extends TimedEvent {
30
- constructor(date: HDate, mask: number, eventTime: Date, location: Location, linkedEvent?: Event, options?: CalOptions);
31
- getEmoji(): string;
32
- }
33
- /** Havdalah after Shabbat or holiday */
34
- export declare class HavdalahEvent extends TimedEvent {
35
- private readonly havdalahMins?;
36
- constructor(date: HDate, mask: number, eventTime: Date, location: Location, havdalahMins?: number, linkedEvent?: Event, options?: CalOptions);
37
- /**
38
- * @param [locale] Optional locale name (defaults to empty locale)
39
- */
40
- render(locale?: string): string;
41
- /**
42
- * Returns translation of "Havdalah" without the time.
43
- * @param [locale] Optional locale name (defaults to empty locale)
44
- */
45
- renderBrief(locale?: string): string;
46
- getEmoji(): string;
47
- }
@@ -1,23 +0,0 @@
1
- import { HDate } from '@hebcal/hdate';
2
- import { HolidayEvent } from './HolidayEvent';
3
- import './locale';
4
- /** YKK is minor day of atonement on the day preceeding each Rosh Chodesh */
5
- export declare class YomKippurKatanEvent extends HolidayEvent {
6
- private readonly nextMonthName;
7
- /**
8
- * @private
9
- * @param date Hebrew date event occurs
10
- * @param nextMonthName name of the upcoming month
11
- */
12
- constructor(date: HDate, nextMonthName: string);
13
- basename(): string;
14
- /**
15
- * @param [locale] Optional locale name (defaults to empty locale)
16
- */
17
- render(locale?: string): string;
18
- /**
19
- * @param [locale] Optional locale name (defaults to empty locale)
20
- */
21
- renderBrief(locale?: string): string;
22
- url(): string | undefined;
23
- }
@@ -1,82 +0,0 @@
1
- declare const _default: {
2
- headers: {
3
- "plural-forms": string;
4
- language: string;
5
- };
6
- contexts: {
7
- "": {
8
- Shabbat: string[];
9
- "Achrei Mot": string[];
10
- Bechukotai: string[];
11
- "Beha'alotcha": string[];
12
- Bereshit: string[];
13
- Chukat: string[];
14
- "Erev Shavuot": string[];
15
- "Erev Sukkot": string[];
16
- "Ki Tavo": string[];
17
- "Ki Teitzei": string[];
18
- "Ki Tisa": string[];
19
- Matot: string[];
20
- "Pesach Shabbat Chol ha-Moed": string[];
21
- "Purim Katan": string[];
22
- "Shabbat Chazon": string[];
23
- "Shabbat HaChodesh": string[];
24
- "Shabbat HaGadol": string[];
25
- "Shabbat Nachamu": string[];
26
- "Shabbat Parah": string[];
27
- "Shabbat Shekalim": string[];
28
- "Shabbat Shuva": string[];
29
- "Shabbat Zachor": string[];
30
- Shavuot: string[];
31
- "Shavuot I": string[];
32
- "Shavuot II": string[];
33
- Shemot: string[];
34
- "Shmini Atzeret": string[];
35
- "Simchat Torah": string[];
36
- Sukkot: string[];
37
- "Sukkot I": string[];
38
- "Sukkot II": string[];
39
- "Sukkot II (CH''M)": string[];
40
- "Sukkot III (CH''M)": string[];
41
- "Sukkot IV (CH''M)": string[];
42
- "Sukkot V (CH''M)": string[];
43
- "Sukkot VI (CH''M)": string[];
44
- "Sukkot VII (Hoshana Raba)": string[];
45
- "Sukkot Shabbat Chol ha-Moed": string[];
46
- "Ta'anit Bechorot": string[];
47
- "Ta'anit Esther": string[];
48
- Toldot: string[];
49
- Vaetchanan: string[];
50
- Yitro: string[];
51
- "Vezot Haberakhah": string[];
52
- Parashat: string[];
53
- "Leil Selichot": string[];
54
- "Shabbat Mevarchim Chodesh": string[];
55
- "Shabbat Shirah": string[];
56
- "Asara B'Tevet": string[];
57
- "Birkat Hachamah": string[];
58
- "Birkat HaChamah": string[];
59
- "Shushan Purim Katan": string[];
60
- "Alot HaShachar": string[];
61
- Misheyakir: string[];
62
- "Misheyakir Machmir": string[];
63
- Sunrise: string[];
64
- "Kriat Shema, sof zeman": string[];
65
- "Tefilah, sof zeman": string[];
66
- "Kriat Shema, sof zeman (MGA)": string[];
67
- "Kriat Shema, sof zeman (GRA)": string[];
68
- "Tefilah, sof zeman (MGA)": string[];
69
- "Tefilah, sof zeman (GRA)": string[];
70
- "Chatzot HaLailah": string[];
71
- "Chatzot HaYom": string[];
72
- "Chatzot hayom": string[];
73
- "Mincha Gedolah": string[];
74
- "Mincha Ketanah": string[];
75
- "Plag HaMincha": string[];
76
- Sunset: string[];
77
- "Bein HaShemashot": string[];
78
- "Tzeit HaKochavim": string[];
79
- };
80
- };
81
- };
82
- export default _default;
@@ -1,111 +0,0 @@
1
- import { CalOptions } from './CalOptions';
2
- import { Event } from './event';
3
- /**
4
- * Calculates holidays and other Hebrew calendar events based on {@link CalOptions}.
5
- *
6
- * Each holiday is represented by an {@link Event} object which includes a date,
7
- * a description, flags and optional attributes.
8
- * If given no options, returns holidays for the Diaspora for the current Gregorian year.
9
- *
10
- * The date range returned by this function can be controlled by:
11
- * * `options.year` - Gregorian (e.g. 1993) or Hebrew year (e.g. 5749)
12
- * * `options.isHebrewYear` - to interpret `year` as Hebrew year
13
- * * `options.numYears` - generate calendar for multiple years (default 1)
14
- * * `options.month` - Gregorian or Hebrew month (to filter results to a single month)
15
- *
16
- * Alternatively, specify start and end days with `Date` or {@link HDate} instances:
17
- * * `options.start` - use specific start date (requires `end` date)
18
- * * `options.end` - use specific end date (requires `start` date)
19
- *
20
- * Unless `options.noHolidays == true`, default holidays include:
21
- * * Major holidays - Rosh Hashana, Yom Kippur, Pesach, Sukkot, etc.
22
- * * Minor holidays - Purim, Chanukah, Tu BiShvat, Lag BaOmer, etc.
23
- * * Minor fasts - Ta'anit Esther, Tzom Gedaliah, etc. (unless `options.noMinorFast`)
24
- * * Special Shabbatot - Shabbat Shekalim, Zachor, etc. (unless `options.noSpecialShabbat`)
25
- * * Modern Holidays - Yom HaShoah, Yom HaAtzma'ut, etc. (unless `options.noModern`)
26
- * * Rosh Chodesh (unless `options.noRoshChodesh`)
27
- *
28
- * Holiday and Torah reading schedules differ between Israel and the Disapora.
29
- * Set `options.il=true` to use the Israeli schedule.
30
- *
31
- * Additional non-default event types can be specified:
32
- * * Parashat HaShavua - weekly Torah Reading on Saturdays (`options.sedrot`)
33
- * * Counting of the Omer (`options.omer`)
34
- * * Shabbat Mevarchim HaChodesh on Saturday before Rosh Chodesh (`options.shabbatMevarchim`)
35
- * * Molad announcement on Saturday before Rosh Chodesh (`options.molad`)
36
- * * Yom Kippur Katan (`options.yomKippurKatan`)
37
- * * Yizkor (`options.yizkor`)
38
- *
39
- * Daily Study of texts are supported by the
40
- * {@link https://github.com/hebcal/hebcal-learning @hebcal/learning} package,
41
- * for example:
42
- * * Babylonian Talmud Daf Yomi (`options.dailyLearning.dafYomi`)
43
- * * Jerusalem Talmud (Yerushalmi) Yomi (`options.dailyLearning.yerushalmi`)
44
- * * Mishna Yomi (`options.dailyLearning.mishnaYomi`)
45
- * * Nach Yomi (`options.dailyLearning.nachYomi`)
46
- *
47
- * Candle-lighting and Havdalah times are approximated using latitude and longitude
48
- * specified by the {@link Location} class. The `Location` class contains a small
49
- * database of cities with their associated geographic information and time-zone information.
50
- * If you ever have any doubts about Hebcal's times, consult your local halachic authority.
51
- * If you enter geographic coordinates above the arctic circle or antarctic circle,
52
- * the times are guaranteed to be wrong.
53
- *
54
- * To add candle-lighting options, set `options.candlelighting=true` and set
55
- * `options.location` to an instance of `Location`. By default, candle lighting
56
- * time is 18 minutes before sundown (40 minutes for Jerusalem,
57
- * 30 minutes for Haifa and Zikhron Ya'akov) and Havdalah is
58
- * calculated according to Tzeit Hakochavim - Nightfall (the point when 3 small stars
59
- * are observable in the night time sky with the naked eye). The default Havdalah
60
- * option (Tzeit Hakochavim) is calculated when the sun is 8.5° below the horizon.
61
- * These defaults can be changed using these options:
62
- * * `options.candleLightingMins` - minutes before sundown to light candles
63
- * * `options.havdalahMins` - minutes after sundown for Havdalah (typical values are 42, 50, or 72).
64
- * Havdalah times are suppressed when `options.havdalahMins=0`.
65
- * * `options.havdalahDeg` - degrees for solar depression for Havdalah.
66
- * Default is 8.5 degrees for 3 small stars. Use 7.083 degrees for 3 medium-sized stars.
67
- * Havdalah times are suppressed when `options.havdalahDeg=0`.
68
- *
69
- * If both `options.candlelighting=true` and `options.location` is specified,
70
- * Chanukah candle-lighting times and minor fast start/end times will also be generated.
71
- * Chanukah candle-lighting is at Bein HaShmashos (13.5 minutes before
72
- * the sun is 7.083° below the horizon in the evening)
73
- * on weekdays, at regular candle-lighting time on Fridays, and at regular Havdalah time on
74
- * Saturday night (see above).
75
- *
76
- * Minor fasts begin at Alot HaShachar (sun is 16.1° below the horizon in the morning) and
77
- * end when 3 medium-sized stars are observable in the night sky (sun is 7.083° below the horizon
78
- * in the evening).
79
- *
80
- * Two options also exist for generating an Event with the Hebrew date:
81
- * * `options.addHebrewDates` - print the Hebrew date for the entire date range
82
- * * `options.addHebrewDatesForEvents` - print the Hebrew date for dates with some events
83
- *
84
- * Lastly, translation and transliteration of event titles is controlled by
85
- * `options.locale` and the {@link Locale} API.
86
- * `@hebcal/core` supports three locales by default:
87
- * * `en` - default, Sephardic transliterations (e.g. "Shabbat")
88
- * * `ashkenazi` - Ashkenazi transliterations (e.g. "Shabbos")
89
- * * `he` - Hebrew (e.g. "שַׁבָּת")
90
- *
91
- * Additional locales (such as `ru` or `fr`) are supported by the
92
- * {@link https://github.com/hebcal/hebcal-locales @hebcal/locales} package
93
- *
94
- * @example
95
- * import {HebrewCalendar, HDate, Location, Event} from '@hebcal/core';
96
- * const options: CalOptions = {
97
- * year: 1981,
98
- * isHebrewYear: false,
99
- * candlelighting: true,
100
- * location: Location.lookup('San Francisco'),
101
- * sedrot: true,
102
- * omer: true,
103
- * };
104
- * const events = HebrewCalendar.calendar(options);
105
- * for (const ev of events) {
106
- * const hd = ev.getDate();
107
- * const date = hd.greg();
108
- * console.log(date.toLocaleDateString(), ev.render('en'), hd.toString());
109
- * }
110
- */
111
- export declare function calendar(options?: CalOptions): Event[];
package/dist/candles.d.ts DELETED
@@ -1,44 +0,0 @@
1
- import { HDate } from '@hebcal/hdate';
2
- import { CalOptions } from './CalOptions';
3
- import { Location } from './location';
4
- import { Event } from './event';
5
- import { ChanukahEvent, HolidayEvent } from './HolidayEvent';
6
- import { TimedEvent } from './TimedEvent';
7
- /**
8
- * @private
9
- */
10
- export declare function makeCandleEvent(ev: Event | undefined, hd: HDate, options: CalOptions, isFriday: boolean, isSaturday: boolean): TimedEvent | undefined;
11
- /** A fast day also contains a start and end time */
12
- export declare class FastDayEvent extends HolidayEvent {
13
- /** original event */
14
- readonly linkedEvent: HolidayEvent;
15
- /** this will be a "Fast begins" event */
16
- readonly startEvent?: TimedEvent;
17
- /** this will be a "Fast ends" event */
18
- readonly endEvent?: TimedEvent;
19
- constructor(linkedEvent: HolidayEvent, startEvent?: TimedEvent, endEvent?: TimedEvent);
20
- render(locale?: string): string;
21
- renderBrief(locale?: string): string;
22
- urlDateSuffix(): string;
23
- url(): string | undefined;
24
- getEmoji(): string;
25
- getCategories(): string[];
26
- }
27
- /**
28
- * Makes a pair of events representing fast start and end times
29
- * @private
30
- */
31
- export declare function makeFastStartEnd(ev: HolidayEvent, options: CalOptions): FastDayEvent;
32
- export declare class TimedChanukahEvent extends ChanukahEvent {
33
- eventTime: Date;
34
- eventTimeStr: string;
35
- readonly location: Location;
36
- constructor(ev: ChanukahEvent, eventTime: Date, location: Location);
37
- }
38
- /**
39
- * Makes a candle-lighting event for Chankah (not on Friday/Saturday).
40
- * At one point this used civil dusk (6 degrees below horizon).
41
- * Another source suggests 4.6667 degrees below horizon.
42
- * @private
43
- */
44
- export declare function makeWeekdayChanukahCandleLighting(ev: ChanukahEvent, options: CalOptions): TimedChanukahEvent | null;