@hebcal/core 6.1.0 → 6.3.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.
- package/dist/bundle.js +298 -18
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +7 -7
- package/dist/bundle.min.js.map +1 -1
- package/dist/esm/DailyLearning.js +1 -1
- package/dist/esm/HebrewDateEvent.js +1 -1
- package/dist/esm/HolidayEvent.js +1 -1
- package/dist/esm/MevarchimChodeshEvent.js +1 -1
- package/dist/esm/ParshaEvent.js +1 -1
- package/dist/esm/TimedEvent.js +3 -1
- package/dist/esm/TimedEvent.js.map +1 -1
- package/dist/esm/YomKippurKatanEvent.js +1 -1
- package/dist/esm/ashkenazi.po.js +1 -1
- package/dist/esm/calendar.js +21 -2
- package/dist/esm/calendar.js.map +1 -1
- package/dist/esm/candles.js +1 -1
- package/dist/esm/event.js +1 -1
- package/dist/esm/getStartAndEnd.js +1 -1
- package/dist/esm/hallel.js +1 -1
- package/dist/esm/he-x-NoNikud.po.d.ts +12 -0
- package/dist/esm/he-x-NoNikud.po.js +2 -2
- package/dist/esm/he-x-NoNikud.po.js.map +1 -1
- package/dist/esm/he.po.js +2 -2
- package/dist/esm/he.po.js.map +1 -1
- package/dist/esm/hebcal.js +1 -1
- package/dist/esm/holidays.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/isAssurBemlacha.js +1 -1
- package/dist/esm/locale.js +1 -1
- package/dist/esm/location.js +1 -1
- package/dist/esm/modern.js +1 -1
- package/dist/esm/molad.js +1 -1
- package/dist/esm/moladBase.js +1 -1
- package/dist/esm/moladDate.js +1 -1
- package/dist/esm/omer.d.ts +48 -0
- package/dist/esm/omer.js +60 -1
- package/dist/esm/omer.js.map +1 -1
- package/dist/esm/parshaName.js +1 -1
- package/dist/esm/parshaYear.js +1 -1
- package/dist/esm/pkgVersion.d.ts +1 -1
- package/dist/esm/pkgVersion.js +2 -2
- package/dist/esm/pkgVersion.js.map +1 -1
- package/dist/esm/reformatTimeStr.js +1 -1
- package/dist/esm/sedra.js +1 -1
- package/dist/esm/sefira.json.js +5 -0
- package/dist/esm/sefira.json.js.map +1 -0
- package/dist/esm/staticHolidays.js +1 -1
- package/dist/esm/tachanun.js +1 -1
- package/dist/esm/zmanim.d.ts +171 -11
- package/dist/esm/zmanim.js +214 -15
- package/dist/esm/zmanim.js.map +1 -1
- package/dist/src/TimedEvent.js +2 -0
- package/dist/src/calendar.js +20 -1
- package/dist/src/he-x-NoNikud.po.d.ts +12 -0
- package/dist/src/he-x-NoNikud.po.js +1 -1
- package/dist/src/he.po.js +1 -1
- package/dist/src/omer.d.ts +48 -0
- package/dist/src/omer.js +59 -0
- package/dist/src/pkgVersion.d.ts +1 -1
- package/dist/src/pkgVersion.js +1 -1
- package/dist/src/sefira.json +71 -0
- package/dist/src/zmanim.d.ts +171 -11
- package/dist/src/zmanim.js +213 -14
- package/package.json +3 -2
- package/dist/CalOptions.d.ts +0 -168
- package/dist/DailyLearning.d.ts +0 -32
- package/dist/HebrewDateEvent.d.ts +0 -37
- package/dist/HolidayEvent.d.ts +0 -84
- package/dist/MevarchimChodeshEvent.d.ts +0 -26
- package/dist/ParshaEvent.d.ts +0 -19
- package/dist/TimedEvent.d.ts +0 -47
- package/dist/YomKippurKatanEvent.d.ts +0 -23
- package/dist/ashkenazi.po.d.ts +0 -82
- package/dist/calendar.d.ts +0 -111
- package/dist/candles.d.ts +0 -44
- package/dist/coverage/block-navigation.d.ts +0 -1
- package/dist/coverage/block-navigation.js +0 -70
- package/dist/coverage/prettify.d.ts +0 -0
- package/dist/coverage/prettify.js +0 -477
- package/dist/coverage/sorter.d.ts +0 -1
- package/dist/coverage/sorter.js +0 -176
- package/dist/event.d.ts +0 -188
- package/dist/getStartAndEnd.d.ts +0 -6
- package/dist/hallel.d.ts +0 -6
- package/dist/he-x-NoNikud.po.d.ts +0 -16
- package/dist/he.po.d.ts +0 -215
- package/dist/hebcal.d.ts +0 -260
- package/dist/holidays.d.ts +0 -22
- package/dist/index.d.ts +0 -28
- package/dist/isAssurBemlacha.d.ts +0 -9
- package/dist/locale.d.ts +0 -1
- package/dist/location.d.ts +0 -73
- package/dist/modern.d.ts +0 -18
- package/dist/molad.d.ts +0 -132
- package/dist/moladBase.d.ts +0 -15
- package/dist/moladDate.d.ts +0 -12
- package/dist/omer.d.ts +0 -52
- package/dist/parshaName.d.ts +0 -2
- package/dist/parshaYear.d.ts +0 -9
- package/dist/pkgVersion.d.ts +0 -2
- package/dist/reformatTimeStr.d.ts +0 -8
- package/dist/sedra.d.ts +0 -95
- package/dist/staticHolidays.d.ts +0 -176
- package/dist/tachanun.d.ts +0 -29
- package/dist/zmanim.d.ts +0 -460
|
@@ -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
|
-
}
|
package/dist/ParshaEvent.d.ts
DELETED
|
@@ -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
|
-
}
|
package/dist/TimedEvent.d.ts
DELETED
|
@@ -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
|
-
}
|
package/dist/ashkenazi.po.d.ts
DELETED
|
@@ -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;
|
package/dist/calendar.d.ts
DELETED
|
@@ -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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare function jumpToCode(event: any): void;
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
var jumpToCode = (function init() {
|
|
4
|
-
// Classes of code we would like to highlight in the file view
|
|
5
|
-
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
|
|
6
|
-
// Elements to highlight in the file listing view
|
|
7
|
-
var fileListingElements = ['td.pct.low'];
|
|
8
|
-
// We don't want to select elements that are direct descendants of another match
|
|
9
|
-
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
|
|
10
|
-
// Selector that finds elements on the page to which we can jump
|
|
11
|
-
var selector = fileListingElements.join(', ') +
|
|
12
|
-
', ' +
|
|
13
|
-
notSelector +
|
|
14
|
-
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
|
15
|
-
// The NodeList of matching elements
|
|
16
|
-
var missingCoverageElements = document.querySelectorAll(selector);
|
|
17
|
-
var currentIndex;
|
|
18
|
-
function toggleClass(index) {
|
|
19
|
-
missingCoverageElements
|
|
20
|
-
.item(currentIndex)
|
|
21
|
-
.classList.remove('highlighted');
|
|
22
|
-
missingCoverageElements.item(index).classList.add('highlighted');
|
|
23
|
-
}
|
|
24
|
-
function makeCurrent(index) {
|
|
25
|
-
toggleClass(index);
|
|
26
|
-
currentIndex = index;
|
|
27
|
-
missingCoverageElements.item(index).scrollIntoView({
|
|
28
|
-
behavior: 'smooth',
|
|
29
|
-
block: 'center',
|
|
30
|
-
inline: 'center'
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function goToPrevious() {
|
|
34
|
-
var nextIndex = 0;
|
|
35
|
-
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
|
36
|
-
nextIndex = missingCoverageElements.length - 1;
|
|
37
|
-
}
|
|
38
|
-
else if (missingCoverageElements.length > 1) {
|
|
39
|
-
nextIndex = currentIndex - 1;
|
|
40
|
-
}
|
|
41
|
-
makeCurrent(nextIndex);
|
|
42
|
-
}
|
|
43
|
-
function goToNext() {
|
|
44
|
-
var nextIndex = 0;
|
|
45
|
-
if (typeof currentIndex === 'number' &&
|
|
46
|
-
currentIndex < missingCoverageElements.length - 1) {
|
|
47
|
-
nextIndex = currentIndex + 1;
|
|
48
|
-
}
|
|
49
|
-
makeCurrent(nextIndex);
|
|
50
|
-
}
|
|
51
|
-
return function jump(event) {
|
|
52
|
-
if (document.getElementById('fileSearch') === document.activeElement &&
|
|
53
|
-
document.activeElement != null) {
|
|
54
|
-
// if we're currently focused on the search input, we don't want to navigate
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
switch (event.which) {
|
|
58
|
-
case 78: // n
|
|
59
|
-
case 74: // j
|
|
60
|
-
goToNext();
|
|
61
|
-
break;
|
|
62
|
-
case 66: // b
|
|
63
|
-
case 75: // k
|
|
64
|
-
case 80: // p
|
|
65
|
-
goToPrevious();
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
})();
|
|
70
|
-
window.addEventListener('keydown', jumpToCode);
|
|
File without changes
|