@hebcal/core 6.0.8 → 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 (182) hide show
  1. package/dist/bundle.js +2282 -1547
  2. package/dist/bundle.js.map +1 -1
  3. package/dist/bundle.min.js +17 -19
  4. package/dist/bundle.min.js.map +1 -1
  5. package/dist/coverage/block-navigation.d.ts +1 -0
  6. package/dist/coverage/block-navigation.js +70 -0
  7. package/dist/coverage/prettify.d.ts +0 -0
  8. package/dist/coverage/prettify.js +477 -0
  9. package/dist/coverage/sorter.d.ts +1 -0
  10. package/dist/coverage/sorter.js +176 -0
  11. package/dist/eslint.config.d.mts +83 -0
  12. package/dist/eslint.config.mjs +28 -0
  13. package/dist/esm/DailyLearning.d.ts +1 -1
  14. package/dist/esm/DailyLearning.js +1 -1
  15. package/dist/esm/DailyLearning.js.map +1 -1
  16. package/dist/esm/HebrewDateEvent.js +5 -5
  17. package/dist/esm/HebrewDateEvent.js.map +1 -1
  18. package/dist/esm/HolidayEvent.d.ts +1 -0
  19. package/dist/esm/HolidayEvent.js +17 -1
  20. package/dist/esm/HolidayEvent.js.map +1 -1
  21. package/dist/esm/MevarchimChodeshEvent.js +2 -1
  22. package/dist/esm/MevarchimChodeshEvent.js.map +1 -1
  23. package/dist/esm/ParshaEvent.js +2 -1
  24. package/dist/esm/ParshaEvent.js.map +1 -1
  25. package/dist/esm/TimedEvent.js +9 -3
  26. package/dist/esm/TimedEvent.js.map +1 -1
  27. package/dist/esm/YomKippurKatanEvent.js +2 -1
  28. package/dist/esm/YomKippurKatanEvent.js.map +1 -1
  29. package/dist/esm/ashkenazi.po.d.ts +14 -2
  30. package/dist/esm/ashkenazi.po.js +2 -2
  31. package/dist/esm/ashkenazi.po.js.map +1 -1
  32. package/dist/esm/calendar.js +6 -8
  33. package/dist/esm/calendar.js.map +1 -1
  34. package/dist/esm/candles.js +11 -3
  35. package/dist/esm/candles.js.map +1 -1
  36. package/dist/esm/event.js +18 -1
  37. package/dist/esm/event.js.map +1 -1
  38. package/dist/esm/getStartAndEnd.js +2 -2
  39. package/dist/esm/getStartAndEnd.js.map +1 -1
  40. package/dist/esm/hallel.js +1 -1
  41. package/dist/esm/he-x-NoNikud.po.d.ts +2 -0
  42. package/dist/esm/he-x-NoNikud.po.js +2 -2
  43. package/dist/esm/he-x-NoNikud.po.js.map +1 -1
  44. package/dist/esm/he.po.d.ts +20 -0
  45. package/dist/esm/he.po.js +2 -2
  46. package/dist/esm/he.po.js.map +1 -1
  47. package/dist/esm/hebcal.js +3 -3
  48. package/dist/esm/hebcal.js.map +1 -1
  49. package/dist/esm/holidays.js +3 -3
  50. package/dist/esm/holidays.js.map +1 -1
  51. package/dist/esm/index.d.ts +2 -0
  52. package/dist/esm/index.js +3 -1
  53. package/dist/esm/index.js.map +1 -1
  54. package/dist/esm/isAssurBemlacha.js +1 -1
  55. package/dist/esm/locale.d.ts +1 -2
  56. package/dist/esm/locale.js +1 -1
  57. package/dist/esm/locale.js.map +1 -1
  58. package/dist/esm/location.js +7 -1
  59. package/dist/esm/location.js.map +1 -1
  60. package/dist/esm/modern.js +1 -1
  61. package/dist/esm/molad.d.ts +71 -1
  62. package/dist/esm/molad.js +113 -12
  63. package/dist/esm/molad.js.map +1 -1
  64. package/dist/esm/moladBase.d.ts +15 -0
  65. package/dist/esm/moladBase.js +83 -0
  66. package/dist/esm/moladBase.js.map +1 -0
  67. package/dist/esm/moladDate.d.ts +12 -0
  68. package/dist/esm/moladDate.js +63 -0
  69. package/dist/esm/moladDate.js.map +1 -0
  70. package/dist/esm/omer.d.ts +0 -1
  71. package/dist/esm/omer.js +7 -4
  72. package/dist/esm/omer.js.map +1 -1
  73. package/dist/esm/parshaName.js +2 -2
  74. package/dist/esm/parshaName.js.map +1 -1
  75. package/dist/esm/parshaYear.js +1 -1
  76. package/dist/esm/pkgVersion.d.ts +1 -1
  77. package/dist/esm/pkgVersion.js +2 -2
  78. package/dist/esm/pkgVersion.js.map +1 -1
  79. package/dist/esm/reformatTimeStr.js +5 -6
  80. package/dist/esm/reformatTimeStr.js.map +1 -1
  81. package/dist/esm/sedra.js +13 -7
  82. package/dist/esm/sedra.js.map +1 -1
  83. package/dist/esm/staticHolidays.js +1 -1
  84. package/dist/esm/tachanun.js +4 -4
  85. package/dist/esm/tachanun.js.map +1 -1
  86. package/dist/esm/zmanim.d.ts +263 -2
  87. package/dist/esm/zmanim.js +431 -12
  88. package/dist/esm/zmanim.js.map +1 -1
  89. package/dist/po2json.js +3 -4
  90. package/dist/src/DailyLearning.d.ts +1 -1
  91. package/dist/src/HebrewDateEvent.js +4 -4
  92. package/dist/src/HolidayEvent.d.ts +1 -0
  93. package/dist/src/HolidayEvent.js +16 -0
  94. package/dist/src/MevarchimChodeshEvent.js +1 -0
  95. package/dist/src/ParshaEvent.js +1 -0
  96. package/dist/src/TimedEvent.js +8 -2
  97. package/dist/src/YomKippurKatanEvent.js +1 -0
  98. package/dist/src/ashkenazi.po.d.ts +14 -2
  99. package/dist/src/ashkenazi.po.js +1 -1
  100. package/dist/src/calendar.js +5 -7
  101. package/dist/src/candles.js +10 -2
  102. package/dist/src/event.js +17 -0
  103. package/dist/src/getStartAndEnd.js +1 -1
  104. package/dist/src/he-x-NoNikud.po.d.ts +2 -0
  105. package/dist/src/he-x-NoNikud.po.js +1 -1
  106. package/dist/src/he.po.d.ts +20 -0
  107. package/dist/src/he.po.js +1 -1
  108. package/dist/src/hebcal.js +2 -2
  109. package/dist/src/holidays.js +2 -2
  110. package/dist/src/index.d.ts +2 -0
  111. package/dist/src/index.js +2 -0
  112. package/dist/src/locale.d.ts +1 -2
  113. package/dist/src/locale.js +1 -1
  114. package/dist/src/location.js +6 -0
  115. package/dist/src/molad.d.ts +71 -1
  116. package/dist/src/molad.js +112 -11
  117. package/dist/src/moladBase.d.ts +15 -0
  118. package/dist/src/moladBase.js +78 -0
  119. package/dist/src/moladDate.d.ts +12 -0
  120. package/dist/src/moladDate.js +58 -0
  121. package/dist/src/omer.d.ts +0 -1
  122. package/dist/src/omer.js +6 -3
  123. package/dist/src/parshaName.js +1 -1
  124. package/dist/src/pkgVersion.d.ts +1 -1
  125. package/dist/src/pkgVersion.js +1 -1
  126. package/dist/src/reformatTimeStr.js +4 -5
  127. package/dist/src/sedra.js +12 -6
  128. package/dist/src/tachanun.js +3 -3
  129. package/dist/src/zmanim.d.ts +263 -2
  130. package/dist/src/zmanim.js +429 -10
  131. package/dist/version.js +1 -2
  132. package/package.json +17 -19
  133. package/dist/CalOptions.d.ts +0 -168
  134. package/dist/DailyLearning.d.ts +0 -32
  135. package/dist/HebrewDateEvent.d.ts +0 -37
  136. package/dist/HolidayEvent.d.ts +0 -83
  137. package/dist/MevarchimChodeshEvent.d.ts +0 -26
  138. package/dist/ParshaEvent.d.ts +0 -19
  139. package/dist/TimedEvent.d.ts +0 -47
  140. package/dist/YomKippurKatanEvent.d.ts +0 -23
  141. package/dist/ashkenazi.po.d.ts +0 -70
  142. package/dist/calendar.d.ts +0 -111
  143. package/dist/candles.d.ts +0 -44
  144. package/dist/event.d.ts +0 -188
  145. package/dist/getStartAndEnd.d.ts +0 -6
  146. package/dist/hallel.d.ts +0 -6
  147. package/dist/he-x-NoNikud.po.d.ts +0 -16
  148. package/dist/he.po.d.ts +0 -195
  149. package/dist/hebcal.d.ts +0 -260
  150. package/dist/holidays.d.ts +0 -22
  151. package/dist/index.d.ts +0 -26
  152. package/dist/isAssurBemlacha.d.ts +0 -9
  153. package/dist/locale.d.ts +0 -2
  154. package/dist/location.d.ts +0 -73
  155. package/dist/modern.d.ts +0 -18
  156. package/dist/molad.d.ts +0 -62
  157. package/dist/omer.d.ts +0 -53
  158. package/dist/parshaName.d.ts +0 -2
  159. package/dist/parshaYear.d.ts +0 -9
  160. package/dist/pkgVersion.d.ts +0 -2
  161. package/dist/reformatTimeStr.d.ts +0 -8
  162. package/dist/sedra.d.ts +0 -95
  163. package/dist/size-demo/dist/getHoliday.d.ts +0 -1944
  164. package/dist/size-demo/dist/getHoliday.js +0 -3712
  165. package/dist/size-demo/dist/parshiyot.js +0 -10662
  166. package/dist/size-demo/dist/sedra.d.ts +0 -1411
  167. package/dist/size-demo/dist/sedra.js +0 -2359
  168. package/dist/size-demo/dist/tachanun.d.ts +0 -1015
  169. package/dist/size-demo/dist/tachanun.js +0 -1755
  170. package/dist/size-demo/getHoliday.d.ts +0 -1
  171. package/dist/size-demo/getHoliday.js +0 -3
  172. package/dist/size-demo/parshiyot.d.ts +0 -1
  173. package/dist/size-demo/parshiyot.js +0 -11
  174. package/dist/size-demo/rollup.config.d.ts +0 -3
  175. package/dist/size-demo/rollup.config.js +0 -47
  176. package/dist/size-demo/sedra.d.ts +0 -1
  177. package/dist/size-demo/sedra.js +0 -3
  178. package/dist/size-demo/tachanun.d.ts +0 -1
  179. package/dist/size-demo/tachanun.js +0 -3
  180. package/dist/staticHolidays.d.ts +0 -176
  181. package/dist/tachanun.d.ts +0 -29
  182. package/dist/zmanim.d.ts +0 -347
package/dist/event.d.ts DELETED
@@ -1,188 +0,0 @@
1
- import { HDate } from '@hebcal/hdate';
2
- import './locale';
3
- /**
4
- * Holiday flags for Event. These flags are typically
5
- * combined using bitwise arithmetic to form a mask.
6
- * @readonly
7
- * @enum {number}
8
- */
9
- export declare const flags: {
10
- /** Chag, yontiff, yom tov */
11
- readonly CHAG: 1;
12
- /** Light candles 18 minutes before sundown */
13
- readonly LIGHT_CANDLES: 2;
14
- /** End of holiday (end of Yom Tov) */
15
- readonly YOM_TOV_ENDS: 4;
16
- /** Observed only in the Diaspora (chutz l'aretz) */
17
- readonly CHUL_ONLY: 8;
18
- /** Observed only in Israel */
19
- readonly IL_ONLY: 16;
20
- /** Light candles in the evening at Tzeit time (3 small stars) */
21
- readonly LIGHT_CANDLES_TZEIS: 32;
22
- /** Candle-lighting for Chanukah */
23
- readonly CHANUKAH_CANDLES: 64;
24
- /** Rosh Chodesh, beginning of a new Hebrew month */
25
- readonly ROSH_CHODESH: 128;
26
- /** Minor fasts like Tzom Tammuz, Ta'anit Esther, ... */
27
- readonly MINOR_FAST: 256;
28
- /** Shabbat Shekalim, Zachor, ... */
29
- readonly SPECIAL_SHABBAT: 512;
30
- /** Weekly sedrot on Saturdays */
31
- readonly PARSHA_HASHAVUA: 1024;
32
- /** Daily page of Talmud (Bavli) */
33
- readonly DAF_YOMI: 2048;
34
- /** Days of the Omer */
35
- readonly OMER_COUNT: 4096;
36
- /** Yom HaShoah, Yom HaAtzma'ut, ... */
37
- readonly MODERN_HOLIDAY: 8192;
38
- /** Yom Kippur and Tish'a B'Av */
39
- readonly MAJOR_FAST: 16384;
40
- /** On the Saturday before Rosh Chodesh */
41
- readonly SHABBAT_MEVARCHIM: 32768;
42
- /** Molad */
43
- readonly MOLAD: 65536;
44
- /** Yahrzeit or Hebrew Anniversary */
45
- readonly USER_EVENT: 131072;
46
- /** Daily Hebrew date ("11th of Sivan, 5780") */
47
- readonly HEBREW_DATE: 262144;
48
- /** A holiday that's not major, modern, rosh chodesh, or a fast day */
49
- readonly MINOR_HOLIDAY: 524288;
50
- /** Evening before a major or minor holiday */
51
- readonly EREV: 1048576;
52
- /** Chol haMoed, intermediate days of Pesach or Sukkot */
53
- readonly CHOL_HAMOED: 2097152;
54
- /** Mishna Yomi */
55
- readonly MISHNA_YOMI: 4194304;
56
- /** Yom Kippur Katan, minor day of atonement on the day preceeding each Rosh Chodesh */
57
- readonly YOM_KIPPUR_KATAN: 8388608;
58
- /** Daily page of Jerusalem Talmud (Yerushalmi) */
59
- readonly YERUSHALMI_YOMI: 16777216;
60
- /** Nach Yomi */
61
- readonly NACH_YOMI: 33554432;
62
- /** Daily Learning */
63
- readonly DAILY_LEARNING: 67108864;
64
- /** Yizkor */
65
- readonly YIZKOR: 134217728;
66
- };
67
- /**
68
- * Represents an Event with a title, date, and flags.
69
- *
70
- * Events are used to represent holidays, candle-lighting times,
71
- * Torah readings, and more.
72
- *
73
- * To get the title of the event a language other than English
74
- * with Sephardic transliterations, use the `render()` method.
75
- */
76
- export declare class Event {
77
- /** Hebrew date of this event */
78
- readonly date: HDate;
79
- /**
80
- * Untranslated title of this event. Note that these description
81
- * strings are always in English and will remain stable across releases.
82
- * To get the title of the event in another language, use the
83
- * `render()` method.
84
- */
85
- readonly desc: string;
86
- /** Bitmask of optional event flags. See {@link flags} */
87
- readonly mask: number;
88
- /** Optional emoji character such as ✡️, 🕯️, 🕎, 🕍, 🌒 */
89
- emoji?: string;
90
- /** Optional longer description or memo text */
91
- memo?: string;
92
- /** Alarms are used by iCalendar feeds */
93
- alarm?: Date | string | boolean;
94
- /**
95
- * Constructs Event
96
- * @param date Hebrew date event occurs
97
- * @param desc Description (not translated)
98
- * @param [mask=0] optional bitmask of holiday flags (see {@link flags})
99
- * @param [attrs={}] optional additional attributes (e.g. `eventTimeStr`, `cholHaMoedDay`)
100
- */
101
- constructor(date: HDate, desc: string, mask?: number, attrs?: object);
102
- /**
103
- * Hebrew date of this event
104
- */
105
- getDate(): HDate;
106
- /**
107
- * Gregorian date of this event
108
- */
109
- greg(): Date;
110
- /**
111
- * Untranslated title of this event. Note that these description
112
- * strings are always in English and will remain stable across releases.
113
- * To get the title of the event in another language, use the
114
- * `render()` method.
115
- */
116
- getDesc(): string;
117
- /**
118
- * Bitmask of optional event flags. See {@link flags}
119
- */
120
- getFlags(): number;
121
- /**
122
- * Returns (translated) description of this event
123
- * @example
124
- * const ev = new Event(new HDate(6, 'Sivan', 5749), 'Shavuot', flags.CHAG);
125
- * ev.render('en'); // 'Shavuot'
126
- * ev.render('he'); // 'שָׁבוּעוֹת'
127
- * ev.render('ashkenazi'); // 'Shavuos'
128
- * @param [locale] Optional locale name (defaults to empty locale)
129
- */
130
- render(locale?: string): string;
131
- /**
132
- * Returns a brief (translated) description of this event.
133
- * For most events, this is the same as render(). For some events, it procudes
134
- * a shorter text (e.g. without a time or added description).
135
- * @param [locale] Optional locale name (defaults to empty locale)
136
- */
137
- renderBrief(locale?: string): string;
138
- /**
139
- * Optional holiday-specific Emoji or `null`.
140
- */
141
- getEmoji(): string | null;
142
- /**
143
- * Returns a simplified (untranslated) description for this event. For example,
144
- * the `HolidayEvent` class supports
145
- * "Erev Pesach" => "Pesach", and "Sukkot III (CH''M)" => "Sukkot".
146
- * For many holidays the basename and the event description are the same.
147
- */
148
- basename(): string;
149
- /**
150
- * Returns a URL to hebcal.com or sefaria.org for more detail on the event.
151
- * Returns `undefined` for events with no detail page.
152
- */
153
- url(): string | undefined;
154
- /**
155
- * Is this event observed in Israel?
156
- * @example
157
- * const ev1 = new Event(new HDate(7, 'Sivan', 5749), 'Shavuot II', flags.CHAG | flags.CHUL_ONLY);
158
- * ev1.observedInIsrael(); // false
159
- * const ev2 = new Event(new HDate(26, 'Kislev', 5749), 'Chanukah: 3 Candles', 0);
160
- * ev2.observedInIsrael(); // true
161
- */
162
- observedInIsrael(): boolean;
163
- /**
164
- * Is this event observed in the Diaspora?
165
- * @example
166
- * const ev1 = new Event(new HDate(7, 'Sivan', 5749), 'Shavuot II', flags.CHAG | flags.CHUL_ONLY);
167
- * ev1.observedInDiaspora(); // true
168
- * const ev2 = new Event(new HDate(26, 'Kislev', 5749), 'Chanukah: 3 Candles', 0);
169
- * ev2.observedInDiaspora(); // true
170
- */
171
- observedInDiaspora(): boolean;
172
- /**
173
- * Is this event observed in Israel/Diaspora?
174
- * @example
175
- * const ev1 = new Event(new HDate(7, 'Sivan', 5749), 'Shavuot II', flags.CHAG | flags.CHUL_ONLY);
176
- * ev1.observedIn(false); // true
177
- * ev1.observedIn(true); // false
178
- * const ev2 = new Event(new HDate(26, 'Kislev', 5749), 'Chanukah: 3 Candles', 0);
179
- * ev2.observedIn(false); // true
180
- * ev2.observedIn(true); // true
181
- * @param il
182
- */
183
- observedIn(il: boolean): boolean;
184
- /**
185
- * Returns a list of event categories
186
- */
187
- getCategories(): string[];
188
- }
@@ -1,6 +0,0 @@
1
- import { CalOptions } from './CalOptions';
2
- /**
3
- * Parse options object to determine start & end days
4
- * @private
5
- */
6
- export declare function getStartAndEnd(options: CalOptions): number[];
package/dist/hallel.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { HDate } from '@hebcal/hdate';
2
- import { Event } from './event';
3
- /**
4
- * @private
5
- */
6
- export declare function hallel_(events: Event[], hdate: HDate): number;
@@ -1,16 +0,0 @@
1
- declare const _default: {
2
- headers: {
3
- "plural-forms": string;
4
- language: string;
5
- };
6
- contexts: {
7
- "": {
8
- Korach: string[];
9
- Chukat: string[];
10
- "Erev Yom Kippur": string[];
11
- "Yom Kippur": string[];
12
- "Yom Kippur Katan": string[];
13
- };
14
- };
15
- };
16
- export default _default;
package/dist/he.po.d.ts DELETED
@@ -1,195 +0,0 @@
1
- declare const _default: {
2
- headers: {
3
- "plural-forms": string;
4
- language: string;
5
- };
6
- contexts: {
7
- "": {
8
- Shabbat: string[];
9
- Parashat: string[];
10
- "Achrei Mot": string[];
11
- Balak: string[];
12
- Bamidbar: string[];
13
- Bechukotai: string[];
14
- "Beha'alotcha": string[];
15
- Behar: string[];
16
- Bereshit: string[];
17
- Beshalach: string[];
18
- Bo: string[];
19
- "Chayei Sara": string[];
20
- Chukat: string[];
21
- Devarim: string[];
22
- Eikev: string[];
23
- Emor: string[];
24
- "Ha'azinu": string[];
25
- Kedoshim: string[];
26
- "Ki Tavo": string[];
27
- "Ki Teitzei": string[];
28
- "Ki Tisa": string[];
29
- Korach: string[];
30
- "Lech-Lecha": string[];
31
- Masei: string[];
32
- Matot: string[];
33
- Metzora: string[];
34
- Miketz: string[];
35
- Mishpatim: string[];
36
- Nasso: string[];
37
- Nitzavim: string[];
38
- Noach: string[];
39
- Pekudei: string[];
40
- Pinchas: string[];
41
- "Re'eh": string[];
42
- "Sh'lach": string[];
43
- Shemot: string[];
44
- Shmini: string[];
45
- Shoftim: string[];
46
- Tazria: string[];
47
- Terumah: string[];
48
- Tetzaveh: string[];
49
- Toldot: string[];
50
- Tzav: string[];
51
- Vaera: string[];
52
- Vaetchanan: string[];
53
- Vayakhel: string[];
54
- Vayechi: string[];
55
- Vayeilech: string[];
56
- Vayera: string[];
57
- Vayeshev: string[];
58
- Vayetzei: string[];
59
- Vayigash: string[];
60
- Vayikra: string[];
61
- Vayishlach: string[];
62
- "Vezot Haberakhah": string[];
63
- Yitro: string[];
64
- "Asara B'Tevet": string[];
65
- "Candle lighting": string[];
66
- Chanukah: string[];
67
- "Chanukah: 1 Candle": string[];
68
- "Chanukah: 2 Candles": string[];
69
- "Chanukah: 3 Candles": string[];
70
- "Chanukah: 4 Candles": string[];
71
- "Chanukah: 5 Candles": string[];
72
- "Chanukah: 6 Candles": string[];
73
- "Chanukah: 7 Candles": string[];
74
- "Chanukah: 8 Candles": string[];
75
- "Chanukah: 8th Day": string[];
76
- "Days of the Omer": string[];
77
- Omer: string[];
78
- "day of the Omer": string[];
79
- "Erev Pesach": string[];
80
- "Erev Purim": string[];
81
- "Erev Rosh Hashana": string[];
82
- "Erev Shavuot": string[];
83
- "Erev Simchat Torah": string[];
84
- "Erev Sukkot": string[];
85
- "Erev Tish'a B'Av": string[];
86
- "Erev Yom Kippur": string[];
87
- Havdalah: string[];
88
- "Lag BaOmer": string[];
89
- "Leil Selichot": string[];
90
- Pesach: string[];
91
- "Pesach I": string[];
92
- "Pesach II": string[];
93
- "Pesach II (CH''M)": string[];
94
- "Pesach III (CH''M)": string[];
95
- "Pesach IV (CH''M)": string[];
96
- "Pesach Sheni": string[];
97
- "Pesach V (CH''M)": string[];
98
- "Pesach VI (CH''M)": string[];
99
- "Pesach VII": string[];
100
- "Pesach VIII": string[];
101
- "Pesach Shabbat Chol ha-Moed": string[];
102
- Purim: string[];
103
- "Purim Katan": string[];
104
- "Rosh Chodesh %s": string[];
105
- "Rosh Chodesh": string[];
106
- "Rosh Hashana": string[];
107
- "Rosh Hashana I": string[];
108
- "Rosh Hashana II": string[];
109
- "Shabbat Chazon": string[];
110
- "Shabbat HaChodesh": string[];
111
- "Shabbat HaGadol": string[];
112
- "Shabbat Nachamu": string[];
113
- "Shabbat Parah": string[];
114
- "Shabbat Shekalim": string[];
115
- "Shabbat Shuva": string[];
116
- "Shabbat Zachor": string[];
117
- Shavuot: string[];
118
- "Shavuot I": string[];
119
- "Shavuot II": string[];
120
- "Shmini Atzeret": string[];
121
- "Shushan Purim": string[];
122
- Sigd: string[];
123
- "Simchat Torah": string[];
124
- Sukkot: string[];
125
- "Sukkot I": string[];
126
- "Sukkot II": string[];
127
- "Sukkot II (CH''M)": string[];
128
- "Sukkot III (CH''M)": string[];
129
- "Sukkot IV (CH''M)": string[];
130
- "Sukkot V (CH''M)": string[];
131
- "Sukkot VI (CH''M)": string[];
132
- "Sukkot VII (Hoshana Raba)": string[];
133
- "Sukkot Shabbat Chol ha-Moed": string[];
134
- "Ta'anit Bechorot": string[];
135
- "Ta'anit Esther": string[];
136
- "Tish'a B'Av": string[];
137
- "Tu B'Av": string[];
138
- "Tu BiShvat": string[];
139
- "Tu B'Shvat": string[];
140
- "Tzom Gedaliah": string[];
141
- "Tzom Tammuz": string[];
142
- "Yom HaAtzma'ut": string[];
143
- "Yom HaShoah": string[];
144
- "Yom HaZikaron": string[];
145
- "Yom Kippur": string[];
146
- "Yom Yerushalayim": string[];
147
- "Yom HaAliyah": string[];
148
- "Yom HaAliyah School Observance": string[];
149
- "Rosh Chodesh Adar": string[];
150
- "Rosh Chodesh Adar I": string[];
151
- "Rosh Chodesh Adar II": string[];
152
- "Rosh Chodesh Av": string[];
153
- "Rosh Chodesh Cheshvan": string[];
154
- "Rosh Chodesh Elul": string[];
155
- "Rosh Chodesh Iyyar": string[];
156
- "Rosh Chodesh Kislev": string[];
157
- "Rosh Chodesh Nisan": string[];
158
- "Rosh Chodesh Sh'vat": string[];
159
- "Rosh Chodesh Sivan": string[];
160
- "Rosh Chodesh Tamuz": string[];
161
- "Rosh Chodesh Tammuz": string[];
162
- "Rosh Chodesh Tevet": string[];
163
- min: string[];
164
- "Fast begins": string[];
165
- "Fast ends": string[];
166
- "Rosh Hashana LaBehemot": string[];
167
- "Tish'a B'Av (observed)": string[];
168
- "Shabbat Mevarchim Chodesh": string[];
169
- "Shabbat Shirah": string[];
170
- Lovingkindness: string[];
171
- Might: string[];
172
- Beauty: string[];
173
- Eternity: string[];
174
- Splendor: string[];
175
- Foundation: string[];
176
- Majesty: string[];
177
- day: string[];
178
- "Yom Kippur Katan": string[];
179
- Yizkor: string[];
180
- "Family Day": string[];
181
- "Yitzhak Rabin Memorial Day": string[];
182
- "Jabotinsky Day": string[];
183
- "Herzl Day": string[];
184
- "Ben-Gurion Day": string[];
185
- "Hebrew Language Day": string[];
186
- "Birkat Hachamah": string[];
187
- "Shushan Purim Katan": string[];
188
- "Purim Meshulash": string[];
189
- "Chag HaBanot": string[];
190
- Molad: string[];
191
- chalakim: string[];
192
- };
193
- };
194
- };
195
- export default _default;
package/dist/hebcal.d.ts DELETED
@@ -1,260 +0,0 @@
1
- import { HDate } from '@hebcal/hdate';
2
- import './locale';
3
- import { CalOptions } from './CalOptions';
4
- import { Event } from './event';
5
- import { Sedra } from './sedra';
6
- import { HolidayYearMap } from './holidays';
7
- import { HolidayEvent } from './HolidayEvent';
8
- import { TachanunResult } from './tachanun';
9
- /**
10
- * HebrewCalendar is the main interface to the `@hebcal/core` library.
11
- * This namespace is used to calculate holidays, rosh chodesh, candle lighting & havdalah times,
12
- * Parashat HaShavua, Daf Yomi, days of the omer, and the molad.
13
- * Event names can be rendered in several languges using the `locale` option.
14
- */
15
- export declare class HebrewCalendar {
16
- private constructor();
17
- /**
18
- * Calculates holidays and other Hebrew calendar events based on {@link CalOptions}.
19
- *
20
- * Each holiday is represented by an {@link Event} object which includes a date,
21
- * a description, flags and optional attributes.
22
- * If given no options, returns holidays for the Diaspora for the current Gregorian year.
23
- *
24
- * The date range returned by this function can be controlled by:
25
- * * `options.year` - Gregorian (e.g. 1993) or Hebrew year (e.g. 5749)
26
- * * `options.isHebrewYear` - to interpret `year` as Hebrew year
27
- * * `options.numYears` - generate calendar for multiple years (default 1)
28
- * * `options.month` - Gregorian or Hebrew month (to filter results to a single month)
29
- *
30
- * Alternatively, specify start and end days with `Date` or {@link HDate} instances:
31
- * * `options.start` - use specific start date (requires `end` date)
32
- * * `options.end` - use specific end date (requires `start` date)
33
- *
34
- * Unless `options.noHolidays == true`, default holidays include:
35
- * * Major holidays - Rosh Hashana, Yom Kippur, Pesach, Sukkot, etc.
36
- * * Minor holidays - Purim, Chanukah, Tu BiShvat, Lag BaOmer, etc.
37
- * * Minor fasts - Ta'anit Esther, Tzom Gedaliah, etc. (unless `options.noMinorFast`)
38
- * * Special Shabbatot - Shabbat Shekalim, Zachor, etc. (unless `options.noSpecialShabbat`)
39
- * * Modern Holidays - Yom HaShoah, Yom HaAtzma'ut, etc. (unless `options.noModern`)
40
- * * Rosh Chodesh (unless `options.noRoshChodesh`)
41
- *
42
- * Holiday and Torah reading schedules differ between Israel and the Disapora.
43
- * Set `options.il=true` to use the Israeli schedule.
44
- *
45
- * Additional non-default event types can be specified:
46
- * * Parashat HaShavua - weekly Torah Reading on Saturdays (`options.sedrot`)
47
- * * Counting of the Omer (`options.omer`)
48
- * * Shabbat Mevarchim HaChodesh on Saturday before Rosh Chodesh (`options.shabbatMevarchim`)
49
- * * Molad announcement on Saturday before Rosh Chodesh (`options.molad`)
50
- * * Yom Kippur Katan (`options.yomKippurKatan`)
51
- * * Yizkor (`options.yizkor`)
52
- *
53
- * Daily Study of texts are supported by the
54
- * {@link https://github.com/hebcal/hebcal-learning @hebcal/learning} package,
55
- * for example:
56
- * * Babylonian Talmud Daf Yomi (`options.dailyLearning.dafYomi`)
57
- * * Jerusalem Talmud (Yerushalmi) Yomi (`options.dailyLearning.yerushalmi`)
58
- * * Mishna Yomi (`options.dailyLearning.mishnaYomi`)
59
- * * Nach Yomi (`options.dailyLearning.nachYomi`)
60
- *
61
- * Candle-lighting and Havdalah times are approximated using latitude and longitude
62
- * specified by the {@link Location} class. The `Location` class contains a small
63
- * database of cities with their associated geographic information and time-zone information.
64
- * If you ever have any doubts about Hebcal's times, consult your local halachic authority.
65
- * If you enter geographic coordinates above the arctic circle or antarctic circle,
66
- * the times are guaranteed to be wrong.
67
- *
68
- * To add candle-lighting options, set `options.candlelighting=true` and set
69
- * `options.location` to an instance of `Location`. By default, candle lighting
70
- * time is 18 minutes before sundown (40 minutes for Jerusalem,
71
- * 30 minutes for Haifa and Zikhron Ya'akov) and Havdalah is
72
- * calculated according to Tzeit Hakochavim - Nightfall (the point when 3 small stars
73
- * are observable in the night time sky with the naked eye). The default Havdalah
74
- * option (Tzeit Hakochavim) is calculated when the sun is 8.5° below the horizon.
75
- * These defaults can be changed using these options:
76
- * * `options.candleLightingMins` - minutes before sundown to light candles
77
- * * `options.havdalahMins` - minutes after sundown for Havdalah (typical values are 42, 50, or 72).
78
- * Havdalah times are suppressed when `options.havdalahMins=0`.
79
- * * `options.havdalahDeg` - degrees for solar depression for Havdalah.
80
- * Default is 8.5 degrees for 3 small stars. Use 7.083 degrees for 3 medium-sized stars.
81
- * Havdalah times are suppressed when `options.havdalahDeg=0`.
82
- *
83
- * If both `options.candlelighting=true` and `options.location` is specified,
84
- * Chanukah candle-lighting times and minor fast start/end times will also be generated.
85
- * Chanukah candle-lighting is at Bein HaShmashos (13.5 minutes before
86
- * the sun is 7.083° below the horizon in the evening)
87
- * on weekdays, at regular candle-lighting time on Fridays, and at regular Havdalah time on
88
- * Saturday night (see above).
89
- *
90
- * Minor fasts begin at Alot HaShachar (sun is 16.1° below the horizon in the morning) and
91
- * end when 3 medium-sized stars are observable in the night sky (sun is 7.083° below the horizon
92
- * in the evening).
93
- *
94
- * Two options also exist for generating an Event with the Hebrew date:
95
- * * `options.addHebrewDates` - print the Hebrew date for the entire date range
96
- * * `options.addHebrewDatesForEvents` - print the Hebrew date for dates with some events
97
- *
98
- * Lastly, translation and transliteration of event titles is controlled by
99
- * `options.locale` and the {@link Locale} API.
100
- * `@hebcal/core` supports three locales by default:
101
- * * `en` - default, Sephardic transliterations (e.g. "Shabbat")
102
- * * `ashkenazi` - Ashkenazi transliterations (e.g. "Shabbos")
103
- * * `he` - Hebrew (e.g. "שַׁבָּת")
104
- *
105
- * Additional locales (such as `ru` or `fr`) are supported by the
106
- * {@link https://github.com/hebcal/hebcal-locales @hebcal/locales} package
107
- *
108
- * @example
109
- * import {HebrewCalendar, HDate, Location, Event} from '@hebcal/core';
110
- * const options: CalOptions = {
111
- * year: 1981,
112
- * isHebrewYear: false,
113
- * candlelighting: true,
114
- * location: Location.lookup('San Francisco'),
115
- * sedrot: true,
116
- * omer: true,
117
- * };
118
- * const events = HebrewCalendar.calendar(options);
119
- * for (const ev of events) {
120
- * const hd = ev.getDate();
121
- * const date = hd.greg();
122
- * console.log(date.toLocaleDateString(), ev.render('en'), hd.toString());
123
- * }
124
- */
125
- static calendar(options?: CalOptions): Event[];
126
- /**
127
- * Calculates a birthday or anniversary (non-yahrzeit).
128
- * `hyear` must be after original `gdate` of anniversary.
129
- * Returns `undefined` when requested year preceeds or is same as original year.
130
- *
131
- * Hebcal uses the algorithm defined in "Calendrical Calculations"
132
- * by Edward M. Reingold and Nachum Dershowitz.
133
- *
134
- * The birthday of someone born in Adar of an ordinary year or Adar II of
135
- * a leap year is also always in the last month of the year, be that Adar
136
- * or Adar II. The birthday in an ordinary year of someone born during the
137
- * first 29 days of Adar I in a leap year is on the corresponding day of Adar;
138
- * in a leap year, the birthday occurs in Adar I, as expected.
139
- *
140
- * Someone born on the thirtieth day of Marcheshvan, Kislev, or Adar I
141
- * has his birthday postponed until the first of the following month in
142
- * years where that day does not occur. [Calendrical Calculations p. 111]
143
- * @example
144
- * import {HebrewCalendar} from '@hebcal/core';
145
- * const dt = new Date(2014, 2, 2); // '2014-03-02' == '30 Adar I 5774'
146
- * const hd = HebrewCalendar.getBirthdayOrAnniversary(5780, dt); // '1 Nisan 5780'
147
- * console.log(hd.greg().toLocaleDateString('en-US')); // '3/26/2020'
148
- * @param hyear Hebrew year
149
- * @param gdate Gregorian or Hebrew date of event
150
- * @returns anniversary occurring in `hyear`
151
- */
152
- static getBirthdayOrAnniversary(hyear: number, gdate: Date | HDate): HDate | undefined;
153
- /**
154
- * Calculates yahrzeit.
155
- * `hyear` must be after original `gdate` of death.
156
- * Returns `undefined` when requested year preceeds or is same as original year.
157
- *
158
- * Hebcal uses the algorithm defined in "Calendrical Calculations"
159
- * by Edward M. Reingold and Nachum Dershowitz.
160
- *
161
- * The customary anniversary date of a death is more complicated and depends
162
- * also on the character of the year in which the first anniversary occurs.
163
- * There are several cases:
164
- *
165
- * * If the date of death is Marcheshvan 30, the anniversary in general depends
166
- * on the first anniversary; if that first anniversary was not Marcheshvan 30,
167
- * use the day before Kislev 1.
168
- * * If the date of death is Kislev 30, the anniversary in general again depends
169
- * on the first anniversary — if that was not Kislev 30, use the day before
170
- * Tevet 1.
171
- * * If the date of death is Adar II, the anniversary is the same day in the
172
- * last month of the Hebrew year (Adar or Adar II).
173
- * * If the date of death is Adar I 30, the anniversary in a Hebrew year that
174
- * is not a leap year (in which Adar only has 29 days) is the last day in
175
- * Shevat.
176
- * * In all other cases, use the normal (that is, same month number) anniversary
177
- * of the date of death. [Calendrical Calculations p. 113]
178
- * @example
179
- * import {HebrewCalendar} from '@hebcal/core';
180
- * const dt = new Date(2014, 2, 2); // '2014-03-02' == '30 Adar I 5774'
181
- * const hd = HebrewCalendar.getYahrzeit(5780, dt); // '30 Sh\'vat 5780'
182
- * console.log(hd.greg().toLocaleDateString('en-US')); // '2/25/2020'
183
- * @param hyear Hebrew year
184
- * @param gdate Gregorian or Hebrew date of death
185
- * @returns anniversary occurring in hyear
186
- */
187
- static getYahrzeit(hyear: number, gdate: Date | HDate): HDate | undefined;
188
- /**
189
- * Lower-level holidays interface, which returns a `Map` of `Event`s indexed by
190
- * `HDate.toString()`. These events must filtered especially for `flags.IL_ONLY`
191
- * or `flags.CHUL_ONLY` depending on Israel vs. Diaspora holiday scheme.
192
- * @param year Hebrew year
193
- */
194
- static getHolidaysForYear(year: number): HolidayYearMap;
195
- /**
196
- * Returns an array of holidays for the year
197
- * @param year Hebrew year
198
- * @param il use the Israeli schedule for holidays
199
- */
200
- static getHolidaysForYearArray(year: number, il: boolean): HolidayEvent[];
201
- /**
202
- * Returns an array of Events on this date (or `undefined` if no events)
203
- * @param date Hebrew Date, Gregorian date, or absolute R.D. day number
204
- * @param [il] use the Israeli schedule for holidays
205
- */
206
- static getHolidaysOnDate(date: HDate | Date | number, il?: boolean): HolidayEvent[] | undefined;
207
- /**
208
- * Eruv Tavshilin
209
- */
210
- static eruvTavshilin(date: Date | HDate, il: boolean): boolean;
211
- /**
212
- * Helper function to format a 23-hour (00:00-23:59) time in US format ("8:13pm") or
213
- * keep as "20:13" for any other locale/country. Uses {@link CalOptions} to determine
214
- * locale.
215
- * If `options.hour12` is `false`, locale is ignored and always returns 24-hour time.
216
- * If `options.hour12` is `true`, locale is ignored and always returns 12-hour time.
217
- * @param timeStr - original time like "20:30"
218
- * @param suffix - "p" or "pm" or " P.M.". Add leading space if you want it
219
- * @param options
220
- */
221
- static reformatTimeStr(timeStr: string, suffix: string, options: CalOptions): string;
222
- static version(): string;
223
- /**
224
- * Convenience function to create an instance of `Sedra` or reuse a previously
225
- * created and cached instance.
226
- */
227
- static getSedra(hyear: number, il: boolean): Sedra;
228
- /**
229
- * Return a number containing information on what Hallel is said on that day.
230
- *
231
- * Whole Hallel is said on Chanukah, the first Yom Tov of Pesach, Shavuot, Sukkot,
232
- * Yom Ha'atzmaut, and Yom Yerushalayim.
233
- *
234
- * Half Hallel is said on Rosh Chodesh (not Rosh Hashanah), and the last 6 days of Pesach.
235
- *
236
- * The number is one of the following values:
237
- *
238
- * 0 - No Hallel
239
- * 1 - Half Hallel
240
- * 2 - Whole Hallel
241
- */
242
- static hallel(hdate: HDate, il: boolean): number;
243
- /**
244
- * Return details on what Tachanun (or Tzidchatcha on Shabbat) is said on `hdate`.
245
- *
246
- * Tachanun is not said on Rosh Chodesh, the month of Nisan, Lag Baomer,
247
- * Rosh Chodesh Sivan until Isru Chag, Tisha B'av, 15 Av, Erev Rosh Hashanah,
248
- * Rosh Hashanah, Erev Yom Kippur until after Simchat Torah, Chanukah,
249
- * Tu B'shvat, Purim and Shushan Purim, and Purim and Shushan Purim Katan.
250
- *
251
- * In some congregations Tachanun is not said until from Rosh Chodesh Sivan
252
- * until 14th Sivan, Sukkot until after Rosh Chodesh Cheshvan, Pesach Sheini,
253
- * Yom Ha'atzmaut, and Yom Yerushalayim.
254
- *
255
- * Tachanun is not said at Mincha on days before it is not said at Shacharit.
256
- *
257
- * Tachanun is not said at Shacharit on Shabbat, but is at Mincha, usually.
258
- */
259
- static tachanun(hdate: HDate, il: boolean): TachanunResult;
260
- }