@hebcal/core 5.3.13 → 5.4.1
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.
- package/README.md +253 -175
- package/dist/CalOptions.d.ts +157 -0
- package/dist/DailyLearning.d.ts +2 -1
- package/dist/HebrewDateEvent.d.ts +27 -2
- package/dist/HolidayEvent.d.ts +45 -0
- package/dist/MevarchimChodeshEvent.d.ts +27 -0
- package/dist/ParshaEvent.d.ts +18 -8
- package/dist/TimedEvent.d.ts +53 -0
- package/dist/YomKippurKatanEvent.d.ts +27 -0
- package/dist/bundle.js +11183 -11935
- package/dist/bundle.min.js +2 -2
- package/dist/candles.d.ts +14 -61
- package/dist/event.d.ts +73 -42
- package/dist/getStartAndEnd.d.ts +6 -0
- package/dist/hallel.d.ts +3 -1
- package/dist/hebcal.d.ts +11 -166
- package/dist/holidays.d.ts +3 -36
- package/dist/index.cjs +3522 -4561
- package/dist/index.d.ts +15 -15
- package/dist/index.mjs +3525 -4564
- package/dist/location.d.ts +4 -4
- package/dist/modern.d.ts +3 -3
- package/dist/molad.d.ts +14 -13
- package/dist/omer.d.ts +23 -5
- package/dist/pkgVersion.d.ts +1 -1
- package/dist/reformatTimeStr.d.ts +2 -1
- package/dist/sedra.d.ts +2 -105
- package/dist/staticHolidays.d.ts +165 -201
- package/dist/tachanun.d.ts +10 -8
- package/dist/zmanim.d.ts +40 -39
- package/package.json +12 -22
- package/dist/ashkenazi.po.d.ts +0 -68
- package/dist/dateFormat.d.ts +0 -33
- package/dist/hdate.d.ts +0 -395
- package/dist/he.po.d.ts +0 -306
- package/dist/locale-ashkenazi.d.ts +0 -1
- package/dist/locale-he.d.ts +0 -1
- package/dist/locale.d.ts +0 -80
- package/dist/staticHols.d.ts +0 -175
- package/dist/throwTypeError.d.ts +0 -5
- package/po/ashkenazi.po +0 -195
- package/po/he.min.po +0 -50
- package/po/he.po +0 -931
package/dist/location.d.ts
CHANGED
|
@@ -52,14 +52,14 @@ export class Location extends GeoLocation {
|
|
|
52
52
|
* @param {number} longitude - Longitude as a decimal, valid range -180 thru +180 (e.g. -87.65005)
|
|
53
53
|
* @param {boolean} il - in Israel (true) or Diaspora (false)
|
|
54
54
|
* @param {string} tzid - Olson timezone ID, e.g. "America/Chicago"
|
|
55
|
-
* @param {string} cityName - optional descriptive city name
|
|
56
|
-
* @param {string} countryCode - ISO 3166 alpha-2 country code (e.g. "FR")
|
|
55
|
+
* @param {string} [cityName] - optional descriptive city name
|
|
56
|
+
* @param {string} [countryCode] - ISO 3166 alpha-2 country code (e.g. "FR")
|
|
57
57
|
* @param {string} [geoid] - optional string or numeric geographic ID
|
|
58
58
|
* @param {number} [elevation] - in meters (default `0`)
|
|
59
59
|
*/
|
|
60
|
-
constructor(latitude: number, longitude: number, il: boolean, tzid: string, cityName
|
|
60
|
+
constructor(latitude: number, longitude: number, il: boolean, tzid: string, cityName?: string | undefined, countryCode?: string | undefined, geoid?: string | undefined, elevation?: number | undefined);
|
|
61
61
|
il: boolean;
|
|
62
|
-
cc: string;
|
|
62
|
+
cc: string | undefined;
|
|
63
63
|
geoid: string | undefined;
|
|
64
64
|
/** @return {boolean} */
|
|
65
65
|
getIsrael(): boolean;
|
package/dist/modern.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HDate } from '@hebcal/hdate';
|
|
1
2
|
/**
|
|
2
3
|
* Yom HaShoah first observed in 1951.
|
|
3
4
|
* When the actual date of Yom Hashoah falls on a Friday, the
|
|
@@ -9,12 +10,11 @@
|
|
|
9
10
|
* @param {number} year
|
|
10
11
|
* @return {HDate|null}
|
|
11
12
|
*/
|
|
12
|
-
export function dateYomHaShoah(year: number): HDate | null;
|
|
13
|
+
export declare function dateYomHaShoah(year: number): HDate | null;
|
|
13
14
|
/**
|
|
14
15
|
* Yom HaAtzma'ut only celebrated after 1948
|
|
15
16
|
* @private
|
|
16
17
|
* @param {number} year
|
|
17
18
|
* @return {HDate|null}
|
|
18
19
|
*/
|
|
19
|
-
export function dateYomHaZikaron(year: number): HDate | null;
|
|
20
|
-
import { HDate } from './hdate.js';
|
|
20
|
+
export declare function dateYomHaZikaron(year: number): HDate | null;
|
package/dist/molad.d.ts
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
|
+
import { Event } from './event';
|
|
2
|
+
import { CalOptions } from './CalOptions';
|
|
3
|
+
import { HDate } from '@hebcal/hdate';
|
|
1
4
|
/**
|
|
2
5
|
* Represents a molad, the moment when the new moon is "born"
|
|
3
6
|
*/
|
|
4
|
-
export class Molad {
|
|
7
|
+
export declare class Molad {
|
|
8
|
+
private readonly m;
|
|
5
9
|
/**
|
|
6
10
|
* Calculates the molad for a Hebrew month
|
|
7
11
|
* @param {number} year
|
|
8
12
|
* @param {number} month
|
|
9
13
|
*/
|
|
10
14
|
constructor(year: number, month: number);
|
|
11
|
-
year: number;
|
|
12
|
-
month: number;
|
|
13
|
-
dow: number;
|
|
14
|
-
hour: number;
|
|
15
|
-
minutes: number;
|
|
16
|
-
chalakim: number;
|
|
17
15
|
/**
|
|
18
16
|
* @return {number}
|
|
19
17
|
*/
|
|
@@ -47,10 +45,12 @@ export class Molad {
|
|
|
47
45
|
* @param {CalOptions} options
|
|
48
46
|
* @return {string}
|
|
49
47
|
*/
|
|
50
|
-
render(locale?: string
|
|
48
|
+
render(locale?: string, options?: CalOptions): string;
|
|
51
49
|
}
|
|
52
50
|
/** Represents a Molad announcement on Shabbat Mevarchim */
|
|
53
|
-
export class MoladEvent extends Event {
|
|
51
|
+
export declare class MoladEvent extends Event {
|
|
52
|
+
readonly molad: Molad;
|
|
53
|
+
private readonly options;
|
|
54
54
|
/**
|
|
55
55
|
* @param {HDate} date Hebrew date event occurs
|
|
56
56
|
* @param {number} hyear molad year
|
|
@@ -58,8 +58,9 @@ export class MoladEvent extends Event {
|
|
|
58
58
|
* @param {CalOptions} options
|
|
59
59
|
*/
|
|
60
60
|
constructor(date: HDate, hyear: number, hmonth: number, options: CalOptions);
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
/**
|
|
62
|
+
* @param {string} [locale] Optional locale name (defaults to active locale).
|
|
63
|
+
* @return {string}
|
|
64
|
+
*/
|
|
65
|
+
render(locale?: string): string;
|
|
63
66
|
}
|
|
64
|
-
import { Event } from './event.js';
|
|
65
|
-
import { HDate } from './hdate.js';
|
package/dist/omer.d.ts
CHANGED
|
@@ -1,18 +1,35 @@
|
|
|
1
|
+
import { HDate } from '@hebcal/hdate';
|
|
2
|
+
import { Event } from './event';
|
|
1
3
|
/** Represents a day 1-49 of counting the Omer from Pesach to Shavuot */
|
|
2
|
-
export class OmerEvent extends Event {
|
|
4
|
+
export declare class OmerEvent extends Event {
|
|
5
|
+
private readonly weekNumber;
|
|
6
|
+
private readonly daysWithinWeeks;
|
|
7
|
+
readonly omer: number;
|
|
8
|
+
emoji?: string;
|
|
3
9
|
/**
|
|
4
10
|
* @param {HDate} date
|
|
5
11
|
* @param {number} omerDay
|
|
6
12
|
*/
|
|
7
13
|
constructor(date: HDate, omerDay: number);
|
|
8
|
-
weekNumber: number;
|
|
9
|
-
daysWithinWeeks: number;
|
|
10
|
-
omer: number;
|
|
11
14
|
/**
|
|
12
15
|
* @param {string} lang
|
|
13
16
|
* @return {string}
|
|
14
17
|
*/
|
|
15
18
|
sefira(lang?: string): string;
|
|
19
|
+
/**
|
|
20
|
+
* @todo use gettext()
|
|
21
|
+
* @param {string} [locale] Optional locale name (defaults to active locale).
|
|
22
|
+
* @return {string}
|
|
23
|
+
*/
|
|
24
|
+
render(locale?: string): string;
|
|
25
|
+
/**
|
|
26
|
+
* Returns translation of "Omer day 22" without ordinal numbers.
|
|
27
|
+
* @param {string} [locale] Optional locale name (defaults to active locale).
|
|
28
|
+
* @return {string}
|
|
29
|
+
*/
|
|
30
|
+
renderBrief(locale?: string): string;
|
|
31
|
+
/** @return {string} */
|
|
32
|
+
getEmoji(): string;
|
|
16
33
|
/** @return {number} */
|
|
17
34
|
getWeeks(): number;
|
|
18
35
|
/** @return {number} */
|
|
@@ -22,5 +39,6 @@ export class OmerEvent extends Event {
|
|
|
22
39
|
* @return {string}
|
|
23
40
|
*/
|
|
24
41
|
getTodayIs(locale: string): string;
|
|
42
|
+
/** @return {string} */
|
|
43
|
+
url(): string;
|
|
25
44
|
}
|
|
26
|
-
import { Event } from './event.js';
|
package/dist/pkgVersion.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version: "5.
|
|
1
|
+
export const version: "5.4.1";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CalOptions } from './CalOptions';
|
|
1
2
|
/**
|
|
2
3
|
* @private
|
|
3
4
|
* @param {string} timeStr - original time like "20:30"
|
|
@@ -5,4 +6,4 @@
|
|
|
5
6
|
* @param {CalOptions} options
|
|
6
7
|
* @return {string}
|
|
7
8
|
*/
|
|
8
|
-
export function reformatTimeStr(timeStr: string, suffix: string, options
|
|
9
|
+
export declare function reformatTimeStr(timeStr: string, suffix: string, options?: CalOptions): string;
|
package/dist/sedra.d.ts
CHANGED
|
@@ -1,111 +1,8 @@
|
|
|
1
|
+
import { Sedra } from '@hebcal/hdate';
|
|
1
2
|
/**
|
|
2
3
|
* @private
|
|
3
4
|
* @param {number} hyear
|
|
4
5
|
* @param {boolean} il
|
|
5
6
|
* @return {Sedra}
|
|
6
7
|
*/
|
|
7
|
-
export function getSedra_(hyear: number, il: boolean): Sedra;
|
|
8
|
-
/**
|
|
9
|
-
* Result of Sedra.lookup
|
|
10
|
-
* @typedef {Object} SedraResult
|
|
11
|
-
* @property {string[]} parsha Name of the parsha (or parshiyot) read on
|
|
12
|
-
* Hebrew date, e.g. `['Noach']` or `['Matot', 'Masei']`
|
|
13
|
-
* @property {boolean} chag True if this is a regular parasha HaShavua
|
|
14
|
-
* Torah reading, false if it's a special holiday reading
|
|
15
|
-
* @property {number|number[]} num the parsha number (or numbers) using 1-indexing.
|
|
16
|
-
* A `number` for a regular (single) parsha, and a `number[]` for a doubled parsha.
|
|
17
|
-
* For Parashat *Bereshit*, `num` would be equal to `1`, and for
|
|
18
|
-
* *Matot-Masei* it would be `[42, 43]`
|
|
19
|
-
*/
|
|
20
|
-
/**
|
|
21
|
-
* Represents Parashah HaShavua for an entire Hebrew year
|
|
22
|
-
*/
|
|
23
|
-
export class Sedra {
|
|
24
|
-
/**
|
|
25
|
-
* Caculates the Parashah HaShavua for an entire Hebrew year
|
|
26
|
-
* @param {number} hebYr - Hebrew year (e.g. 5749)
|
|
27
|
-
* @param {boolean} il - Use Israel sedra schedule (false for Diaspora)
|
|
28
|
-
*/
|
|
29
|
-
constructor(hebYr: number, il: boolean);
|
|
30
|
-
type: number;
|
|
31
|
-
year: number;
|
|
32
|
-
roshHashanaDay: number;
|
|
33
|
-
firstSaturday: number;
|
|
34
|
-
leap: number;
|
|
35
|
-
il: boolean;
|
|
36
|
-
key: string;
|
|
37
|
-
theSedraArray: Object[];
|
|
38
|
-
/**
|
|
39
|
-
* Returns the parsha (or parshiyot) read on Hebrew date
|
|
40
|
-
* @param {HDate|number} hDate Hebrew date or R.D. days
|
|
41
|
-
* @return {string[]}
|
|
42
|
-
*/
|
|
43
|
-
get(hDate: HDate | number): string[];
|
|
44
|
-
/**
|
|
45
|
-
* Looks up parsha for the date, then returns a translated or transliterated string
|
|
46
|
-
* @param {HDate|number} hDate Hebrew date or R.D. days
|
|
47
|
-
* @param {string} [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale
|
|
48
|
-
* @return {string}
|
|
49
|
-
*/
|
|
50
|
-
getString(hDate: HDate | number, locale?: string | undefined): string;
|
|
51
|
-
/**
|
|
52
|
-
* Checks to see if this day would be a regular parasha HaShavua
|
|
53
|
-
* Torah reading or special holiday reading
|
|
54
|
-
* @param {HDate|number} hDate Hebrew date or R.D. days
|
|
55
|
-
* @return {boolean}
|
|
56
|
-
*/
|
|
57
|
-
isParsha(hDate: HDate | number): boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Returns the date that a parsha occurs
|
|
60
|
-
* @param {number|string|string[]} parsha
|
|
61
|
-
* @return {HDate}
|
|
62
|
-
*/
|
|
63
|
-
find(parsha: number | string | string[]): HDate;
|
|
64
|
-
/**
|
|
65
|
-
* @return {Object[]}
|
|
66
|
-
*/
|
|
67
|
-
getSedraArray(): Object[];
|
|
68
|
-
/**
|
|
69
|
-
* R.D. date of the first Saturday on or after Rosh Hashana
|
|
70
|
-
* @return {number}
|
|
71
|
-
*/
|
|
72
|
-
getFirstSaturday(): number;
|
|
73
|
-
/** @return {number} */
|
|
74
|
-
getYear(): number;
|
|
75
|
-
/**
|
|
76
|
-
* Returns an object describing the parsha on the first Saturday on or after absdate
|
|
77
|
-
* @param {HDate|number} hDate Hebrew date or R.D. days
|
|
78
|
-
* @return {SedraResult}
|
|
79
|
-
*/
|
|
80
|
-
lookup(hDate: HDate | number): SedraResult;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* The 54 parshiyot of the Torah as transilterated strings
|
|
84
|
-
* parshiot[0] == 'Bereshit', parshiot[1] == 'Noach', parshiot[53] == "Ha'azinu".
|
|
85
|
-
* @readonly
|
|
86
|
-
* @type {string[]}
|
|
87
|
-
*/
|
|
88
|
-
export const parshiot: string[];
|
|
89
|
-
/**
|
|
90
|
-
* Result of Sedra.lookup
|
|
91
|
-
*/
|
|
92
|
-
export type SedraResult = {
|
|
93
|
-
/**
|
|
94
|
-
* Name of the parsha (or parshiyot) read on
|
|
95
|
-
* Hebrew date, e.g. `['Noach']` or `['Matot', 'Masei']`
|
|
96
|
-
*/
|
|
97
|
-
parsha: string[];
|
|
98
|
-
/**
|
|
99
|
-
* True if this is a regular parasha HaShavua
|
|
100
|
-
* Torah reading, false if it's a special holiday reading
|
|
101
|
-
*/
|
|
102
|
-
chag: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* the parsha number (or numbers) using 1-indexing.
|
|
105
|
-
* A `number` for a regular (single) parsha, and a `number[]` for a doubled parsha.
|
|
106
|
-
* For Parashat *Bereshit*, `num` would be equal to `1`, and for
|
|
107
|
-
* *Matot-Masei* it would be `[42, 43]`
|
|
108
|
-
*/
|
|
109
|
-
num: number | number[];
|
|
110
|
-
};
|
|
111
|
-
import { HDate } from './hdate.js';
|
|
8
|
+
export declare function getSedra_(hyear: number, il: boolean): Sedra;
|
package/dist/staticHolidays.d.ts
CHANGED
|
@@ -1,212 +1,176 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Transliterated names of holidays, used by `Event.getDesc()`
|
|
3
|
+
* @readonly
|
|
4
|
+
* @enum {string}
|
|
3
5
|
*/
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
6
|
+
export declare const holidayDesc: {
|
|
7
|
+
/** Asara B'Tevet */
|
|
8
|
+
ASARA_BTEVET: string;
|
|
9
|
+
/** Birkat Hachamah */
|
|
10
|
+
BIRKAT_HACHAMAH: string;
|
|
11
|
+
/** Chag HaBanot */
|
|
12
|
+
CHAG_HABANOT: string;
|
|
13
|
+
/** Chanukah: 8th Day */
|
|
14
|
+
CHANUKAH_8TH_DAY: string;
|
|
15
|
+
/** Erev Tish'a B'Av */
|
|
16
|
+
EREV_TISHA_BAV: string;
|
|
17
|
+
/** Leil Selichot */
|
|
18
|
+
LEIL_SELICHOT: string;
|
|
19
|
+
/** Purim Katan */
|
|
20
|
+
PURIM_KATAN: string;
|
|
21
|
+
/** Purim Meshulash */
|
|
22
|
+
PURIM_MESHULASH: string;
|
|
23
|
+
/** Shabbat Chazon */
|
|
24
|
+
SHABBAT_CHAZON: string;
|
|
25
|
+
/** Shabbat HaChodesh */
|
|
26
|
+
SHABBAT_HACHODESH: string;
|
|
27
|
+
/** Shabbat HaGadol */
|
|
28
|
+
SHABBAT_HAGADOL: string;
|
|
29
|
+
/** Shabbat Nachamu */
|
|
30
|
+
SHABBAT_NACHAMU: string;
|
|
31
|
+
/** Shabbat Parah */
|
|
32
|
+
SHABBAT_PARAH: string;
|
|
33
|
+
/** Shabbat Shekalim */
|
|
34
|
+
SHABBAT_SHEKALIM: string;
|
|
35
|
+
/** Shabbat Shirah */
|
|
36
|
+
SHABBAT_SHIRAH: string;
|
|
37
|
+
/** Shabbat Shuva */
|
|
38
|
+
SHABBAT_SHUVA: string;
|
|
39
|
+
/** Shabbat Zachor */
|
|
40
|
+
SHABBAT_ZACHOR: string;
|
|
41
|
+
/** Shushan Purim Katan */
|
|
42
|
+
SHUSHAN_PURIM_KATAN: string;
|
|
43
|
+
/** Ta'anit Bechorot */
|
|
44
|
+
TAANIT_BECHOROT: string;
|
|
45
|
+
/** Ta'anit Esther */
|
|
46
|
+
TAANIT_ESTHER: string;
|
|
47
|
+
/** Tish'a B'Av */
|
|
48
|
+
TISHA_BAV: string;
|
|
49
|
+
/** Tzom Gedaliah */
|
|
50
|
+
TZOM_GEDALIAH: string;
|
|
51
|
+
/** Tzom Tammuz */
|
|
52
|
+
TZOM_TAMMUZ: string;
|
|
53
|
+
/** Yom HaAtzma'ut */
|
|
54
|
+
YOM_HAATZMA_UT: string;
|
|
55
|
+
/** Yom HaShoah */
|
|
56
|
+
YOM_HASHOAH: string;
|
|
57
|
+
/** Yom HaZikaron */
|
|
58
|
+
YOM_HAZIKARON: string;
|
|
59
|
+
/** Ben-Gurion Day */
|
|
60
|
+
BEN_GURION_DAY: string;
|
|
61
|
+
/** Chanukah: 1 Candle */
|
|
62
|
+
CHANUKAH_1_CANDLE: string;
|
|
63
|
+
/** Erev Pesach */
|
|
64
|
+
EREV_PESACH: string;
|
|
65
|
+
/** Erev Purim */
|
|
66
|
+
EREV_PURIM: string;
|
|
67
|
+
/** Erev Rosh Hashana */
|
|
68
|
+
EREV_ROSH_HASHANA: string;
|
|
69
|
+
/** Erev Shavuot */
|
|
70
|
+
EREV_SHAVUOT: string;
|
|
71
|
+
/** Erev Sukkot */
|
|
72
|
+
EREV_SUKKOT: string;
|
|
73
|
+
/** Erev Yom Kippur */
|
|
74
|
+
EREV_YOM_KIPPUR: string;
|
|
75
|
+
/** Family Day */
|
|
76
|
+
FAMILY_DAY: string;
|
|
77
|
+
/** Hebrew Language Day */
|
|
78
|
+
HEBREW_LANGUAGE_DAY: string;
|
|
79
|
+
/** Herzl Day */
|
|
80
|
+
HERZL_DAY: string;
|
|
81
|
+
/** Jabotinsky Day */
|
|
82
|
+
JABOTINSKY_DAY: string;
|
|
83
|
+
/** Lag BaOmer */
|
|
84
|
+
LAG_BAOMER: string;
|
|
85
|
+
/** Pesach I */
|
|
86
|
+
PESACH_I: string;
|
|
87
|
+
/** Pesach II */
|
|
88
|
+
PESACH_II: string;
|
|
89
|
+
/** Pesach III (CH''M) */
|
|
90
|
+
PESACH_III_CHM: string;
|
|
91
|
+
/** Pesach II (CH''M) */
|
|
92
|
+
PESACH_II_CHM: string;
|
|
93
|
+
/** Pesach IV (CH''M) */
|
|
94
|
+
PESACH_IV_CHM: string;
|
|
95
|
+
/** Pesach Sheni */
|
|
96
|
+
PESACH_SHENI: string;
|
|
97
|
+
/** Pesach VII */
|
|
98
|
+
PESACH_VII: string;
|
|
99
|
+
/** Pesach VIII */
|
|
100
|
+
PESACH_VIII: string;
|
|
101
|
+
/** Pesach VI (CH''M) */
|
|
102
|
+
PESACH_VI_CHM: string;
|
|
103
|
+
/** Pesach V (CH''M) */
|
|
104
|
+
PESACH_V_CHM: string;
|
|
105
|
+
/** Purim */
|
|
106
|
+
PURIM: string;
|
|
107
|
+
/** Rosh Hashana II */
|
|
108
|
+
ROSH_HASHANA_II: string;
|
|
109
|
+
/** Rosh Hashana LaBehemot */
|
|
110
|
+
ROSH_HASHANA_LABEHEMOT: string;
|
|
111
|
+
/** Shavuot */
|
|
112
|
+
SHAVUOT: string;
|
|
113
|
+
/** Shavuot I */
|
|
114
|
+
SHAVUOT_I: string;
|
|
115
|
+
/** Shavuot II */
|
|
116
|
+
SHAVUOT_II: string;
|
|
117
|
+
/** Shmini Atzeret */
|
|
118
|
+
SHMINI_ATZERET: string;
|
|
119
|
+
/** Shushan Purim */
|
|
120
|
+
SHUSHAN_PURIM: string;
|
|
121
|
+
/** Sigd */
|
|
122
|
+
SIGD: string;
|
|
123
|
+
/** Simchat Torah */
|
|
124
|
+
SIMCHAT_TORAH: string;
|
|
125
|
+
/** Sukkot I */
|
|
126
|
+
SUKKOT_I: string;
|
|
127
|
+
/** Sukkot II */
|
|
128
|
+
SUKKOT_II: string;
|
|
129
|
+
/** Sukkot III (CH''M) */
|
|
130
|
+
SUKKOT_III_CHM: string;
|
|
131
|
+
/** Sukkot II (CH''M) */
|
|
132
|
+
SUKKOT_II_CHM: string;
|
|
133
|
+
/** Sukkot IV (CH''M) */
|
|
134
|
+
SUKKOT_IV_CHM: string;
|
|
135
|
+
/** Sukkot VII (Hoshana Raba) */
|
|
136
|
+
SUKKOT_VII_HOSHANA_RABA: string;
|
|
137
|
+
/** Sukkot VI (CH''M) */
|
|
138
|
+
SUKKOT_VI_CHM: string;
|
|
139
|
+
/** Sukkot V (CH''M) */
|
|
140
|
+
SUKKOT_V_CHM: string;
|
|
141
|
+
/** Tu B\'Av */
|
|
142
|
+
TU_BAV: string;
|
|
143
|
+
/** Tu BiShvat */
|
|
144
|
+
TU_BISHVAT: string;
|
|
145
|
+
/** Yitzhak Rabin Memorial Day */
|
|
146
|
+
YITZHAK_RABIN_MEMORIAL_DAY: string;
|
|
147
|
+
/** Yom HaAliyah */
|
|
148
|
+
YOM_HAALIYAH: string;
|
|
149
|
+
/** Yom HaAliyah School Observance */
|
|
150
|
+
YOM_HAALIYAH_SCHOOL_OBSERVANCE: string;
|
|
151
|
+
/** Yom Kippur */
|
|
152
|
+
YOM_KIPPUR: string;
|
|
153
|
+
/** Yom Yerushalayim */
|
|
154
|
+
YOM_YERUSHALAYIM: string;
|
|
155
|
+
};
|
|
156
|
+
export interface Holiday {
|
|
96
157
|
mm: number;
|
|
97
158
|
dd: number;
|
|
98
159
|
desc: string;
|
|
99
160
|
flags: number;
|
|
100
|
-
chmDay
|
|
101
|
-
emoji
|
|
102
|
-
}
|
|
103
|
-
export const
|
|
104
|
-
|
|
105
|
-
mm: number;
|
|
106
|
-
dd: number;
|
|
107
|
-
desc: string;
|
|
108
|
-
chul: boolean;
|
|
109
|
-
satPostponeToSun?: undefined;
|
|
110
|
-
friPostponeToSun?: undefined;
|
|
111
|
-
friSatMovetoThu?: undefined;
|
|
112
|
-
suppressEmoji?: undefined;
|
|
113
|
-
} | {
|
|
114
|
-
firstYear: number;
|
|
115
|
-
mm: number;
|
|
116
|
-
dd: number;
|
|
117
|
-
desc: string;
|
|
118
|
-
satPostponeToSun: boolean;
|
|
119
|
-
friPostponeToSun: boolean;
|
|
120
|
-
chul?: undefined;
|
|
121
|
-
friSatMovetoThu?: undefined;
|
|
122
|
-
suppressEmoji?: undefined;
|
|
123
|
-
} | {
|
|
124
|
-
firstYear: number;
|
|
125
|
-
mm: number;
|
|
126
|
-
dd: number;
|
|
127
|
-
desc: string;
|
|
128
|
-
chul?: undefined;
|
|
129
|
-
satPostponeToSun?: undefined;
|
|
130
|
-
friPostponeToSun?: undefined;
|
|
131
|
-
friSatMovetoThu?: undefined;
|
|
132
|
-
suppressEmoji?: undefined;
|
|
133
|
-
} | {
|
|
134
|
-
firstYear: number;
|
|
135
|
-
mm: number;
|
|
136
|
-
dd: number;
|
|
137
|
-
desc: string;
|
|
138
|
-
friSatMovetoThu: boolean;
|
|
139
|
-
chul?: undefined;
|
|
140
|
-
satPostponeToSun?: undefined;
|
|
141
|
-
friPostponeToSun?: undefined;
|
|
142
|
-
suppressEmoji?: undefined;
|
|
143
|
-
} | {
|
|
144
|
-
firstYear: number;
|
|
145
|
-
mm: number;
|
|
146
|
-
dd: number;
|
|
147
|
-
desc: string;
|
|
148
|
-
satPostponeToSun: boolean;
|
|
149
|
-
chul?: undefined;
|
|
150
|
-
friPostponeToSun?: undefined;
|
|
151
|
-
friSatMovetoThu?: undefined;
|
|
152
|
-
suppressEmoji?: undefined;
|
|
153
|
-
} | {
|
|
161
|
+
chmDay?: number;
|
|
162
|
+
emoji?: string;
|
|
163
|
+
}
|
|
164
|
+
export declare const staticHolidays: Holiday[];
|
|
165
|
+
export interface ModernHoliday {
|
|
154
166
|
firstYear: number;
|
|
155
167
|
mm: number;
|
|
156
168
|
dd: number;
|
|
157
169
|
desc: string;
|
|
158
|
-
chul
|
|
159
|
-
suppressEmoji
|
|
160
|
-
satPostponeToSun?:
|
|
161
|
-
friPostponeToSun?:
|
|
162
|
-
friSatMovetoThu?:
|
|
163
|
-
}
|
|
164
|
-
declare const
|
|
165
|
-
declare const CHANUKAH_1_CANDLE: "Chanukah: 1 Candle";
|
|
166
|
-
declare const EREV_PESACH: "Erev Pesach";
|
|
167
|
-
declare const EREV_PURIM: "Erev Purim";
|
|
168
|
-
declare const EREV_ROSH_HASHANA: "Erev Rosh Hashana";
|
|
169
|
-
declare const EREV_SHAVUOT: "Erev Shavuot";
|
|
170
|
-
declare const EREV_SUKKOT: "Erev Sukkot";
|
|
171
|
-
declare const EREV_YOM_KIPPUR: "Erev Yom Kippur";
|
|
172
|
-
declare const FAMILY_DAY: "Family Day";
|
|
173
|
-
declare const HEBREW_LANGUAGE_DAY: "Hebrew Language Day";
|
|
174
|
-
declare const HERZL_DAY: "Herzl Day";
|
|
175
|
-
declare const JABOTINSKY_DAY: "Jabotinsky Day";
|
|
176
|
-
declare const LAG_BAOMER: "Lag BaOmer";
|
|
177
|
-
declare const PESACH_I: "Pesach I";
|
|
178
|
-
declare const PESACH_II: "Pesach II";
|
|
179
|
-
declare const PESACH_III_CHM: "Pesach III (CH''M)";
|
|
180
|
-
declare const PESACH_II_CHM: "Pesach II (CH''M)";
|
|
181
|
-
declare const PESACH_IV_CHM: "Pesach IV (CH''M)";
|
|
182
|
-
declare const PESACH_SHENI: "Pesach Sheni";
|
|
183
|
-
declare const PESACH_VII: "Pesach VII";
|
|
184
|
-
declare const PESACH_VIII: "Pesach VIII";
|
|
185
|
-
declare const PESACH_VI_CHM: "Pesach VI (CH''M)";
|
|
186
|
-
declare const PESACH_V_CHM: "Pesach V (CH''M)";
|
|
187
|
-
declare const PURIM: "Purim";
|
|
188
|
-
declare const ROSH_HASHANA_II: "Rosh Hashana II";
|
|
189
|
-
declare const ROSH_HASHANA_LABEHEMOT: "Rosh Hashana LaBehemot";
|
|
190
|
-
declare const SHAVUOT: "Shavuot";
|
|
191
|
-
declare const SHAVUOT_I: "Shavuot I";
|
|
192
|
-
declare const SHAVUOT_II: "Shavuot II";
|
|
193
|
-
declare const SHMINI_ATZERET: "Shmini Atzeret";
|
|
194
|
-
declare const SHUSHAN_PURIM: "Shushan Purim";
|
|
195
|
-
declare const SIGD: "Sigd";
|
|
196
|
-
declare const SIMCHAT_TORAH: "Simchat Torah";
|
|
197
|
-
declare const SUKKOT_I: "Sukkot I";
|
|
198
|
-
declare const SUKKOT_II: "Sukkot II";
|
|
199
|
-
declare const SUKKOT_III_CHM: "Sukkot III (CH''M)";
|
|
200
|
-
declare const SUKKOT_II_CHM: "Sukkot II (CH''M)";
|
|
201
|
-
declare const SUKKOT_IV_CHM: "Sukkot IV (CH''M)";
|
|
202
|
-
declare const SUKKOT_VII_HOSHANA_RABA: "Sukkot VII (Hoshana Raba)";
|
|
203
|
-
declare const SUKKOT_VI_CHM: "Sukkot VI (CH''M)";
|
|
204
|
-
declare const SUKKOT_V_CHM: "Sukkot V (CH''M)";
|
|
205
|
-
declare const TU_BAV: "Tu B'Av";
|
|
206
|
-
declare const TU_BISHVAT: "Tu BiShvat";
|
|
207
|
-
declare const YITZHAK_RABIN_MEMORIAL_DAY: "Yitzhak Rabin Memorial Day";
|
|
208
|
-
declare const YOM_HAALIYAH: "Yom HaAliyah";
|
|
209
|
-
declare const YOM_HAALIYAH_SCHOOL_OBSERVANCE: "Yom HaAliyah School Observance";
|
|
210
|
-
declare const YOM_KIPPUR: "Yom Kippur";
|
|
211
|
-
declare const YOM_YERUSHALAYIM: "Yom Yerushalayim";
|
|
212
|
-
export {};
|
|
170
|
+
chul?: boolean;
|
|
171
|
+
suppressEmoji?: boolean;
|
|
172
|
+
satPostponeToSun?: boolean;
|
|
173
|
+
friPostponeToSun?: boolean;
|
|
174
|
+
friSatMovetoThu?: boolean;
|
|
175
|
+
}
|
|
176
|
+
export declare const staticModernHolidays: ModernHoliday[];
|
package/dist/tachanun.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { HDate } from '@hebcal/hdate';
|
|
2
|
+
export type TachanunResult = {
|
|
3
|
+
/** Tachanun is said at Shacharit */
|
|
4
|
+
shacharit: boolean;
|
|
5
|
+
/** Tachanun is said at Mincha */
|
|
6
|
+
mincha: boolean;
|
|
7
|
+
/** All congregations say Tachanun on the day */
|
|
8
|
+
allCongs: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare function tachanun_(hdate: HDate, il: boolean): TachanunResult;
|