@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.
- package/dist/bundle.js +2282 -1547
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +17 -19
- package/dist/bundle.min.js.map +1 -1
- package/dist/coverage/block-navigation.d.ts +1 -0
- package/dist/coverage/block-navigation.js +70 -0
- package/dist/coverage/prettify.d.ts +0 -0
- package/dist/coverage/prettify.js +477 -0
- package/dist/coverage/sorter.d.ts +1 -0
- package/dist/coverage/sorter.js +176 -0
- package/dist/eslint.config.d.mts +83 -0
- package/dist/eslint.config.mjs +28 -0
- package/dist/esm/DailyLearning.d.ts +1 -1
- package/dist/esm/DailyLearning.js +1 -1
- package/dist/esm/DailyLearning.js.map +1 -1
- package/dist/esm/HebrewDateEvent.js +5 -5
- package/dist/esm/HebrewDateEvent.js.map +1 -1
- package/dist/esm/HolidayEvent.d.ts +1 -0
- package/dist/esm/HolidayEvent.js +17 -1
- package/dist/esm/HolidayEvent.js.map +1 -1
- package/dist/esm/MevarchimChodeshEvent.js +2 -1
- package/dist/esm/MevarchimChodeshEvent.js.map +1 -1
- package/dist/esm/ParshaEvent.js +2 -1
- package/dist/esm/ParshaEvent.js.map +1 -1
- package/dist/esm/TimedEvent.js +9 -3
- package/dist/esm/TimedEvent.js.map +1 -1
- package/dist/esm/YomKippurKatanEvent.js +2 -1
- package/dist/esm/YomKippurKatanEvent.js.map +1 -1
- package/dist/esm/ashkenazi.po.d.ts +14 -2
- package/dist/esm/ashkenazi.po.js +2 -2
- package/dist/esm/ashkenazi.po.js.map +1 -1
- package/dist/esm/calendar.js +6 -8
- package/dist/esm/calendar.js.map +1 -1
- package/dist/esm/candles.js +11 -3
- package/dist/esm/candles.js.map +1 -1
- package/dist/esm/event.js +18 -1
- package/dist/esm/event.js.map +1 -1
- package/dist/esm/getStartAndEnd.js +2 -2
- package/dist/esm/getStartAndEnd.js.map +1 -1
- package/dist/esm/hallel.js +1 -1
- package/dist/esm/he-x-NoNikud.po.d.ts +2 -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.d.ts +20 -0
- package/dist/esm/he.po.js +2 -2
- package/dist/esm/he.po.js.map +1 -1
- package/dist/esm/hebcal.js +3 -3
- package/dist/esm/hebcal.js.map +1 -1
- package/dist/esm/holidays.js +3 -3
- package/dist/esm/holidays.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/isAssurBemlacha.js +1 -1
- package/dist/esm/locale.d.ts +1 -2
- package/dist/esm/locale.js +1 -1
- package/dist/esm/locale.js.map +1 -1
- package/dist/esm/location.js +7 -1
- package/dist/esm/location.js.map +1 -1
- package/dist/esm/modern.js +1 -1
- package/dist/esm/molad.d.ts +71 -1
- package/dist/esm/molad.js +113 -12
- package/dist/esm/molad.js.map +1 -1
- package/dist/esm/moladBase.d.ts +15 -0
- package/dist/esm/moladBase.js +83 -0
- package/dist/esm/moladBase.js.map +1 -0
- package/dist/esm/moladDate.d.ts +12 -0
- package/dist/esm/moladDate.js +63 -0
- package/dist/esm/moladDate.js.map +1 -0
- package/dist/esm/omer.d.ts +0 -1
- package/dist/esm/omer.js +7 -4
- package/dist/esm/omer.js.map +1 -1
- package/dist/esm/parshaName.js +2 -2
- package/dist/esm/parshaName.js.map +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 +5 -6
- package/dist/esm/reformatTimeStr.js.map +1 -1
- package/dist/esm/sedra.js +13 -7
- package/dist/esm/sedra.js.map +1 -1
- package/dist/esm/staticHolidays.js +1 -1
- package/dist/esm/tachanun.js +4 -4
- package/dist/esm/tachanun.js.map +1 -1
- package/dist/esm/zmanim.d.ts +263 -2
- package/dist/esm/zmanim.js +431 -12
- package/dist/esm/zmanim.js.map +1 -1
- package/dist/po2json.js +3 -4
- package/dist/src/DailyLearning.d.ts +1 -1
- package/dist/src/HebrewDateEvent.js +4 -4
- package/dist/src/HolidayEvent.d.ts +1 -0
- package/dist/src/HolidayEvent.js +16 -0
- package/dist/src/MevarchimChodeshEvent.js +1 -0
- package/dist/src/ParshaEvent.js +1 -0
- package/dist/src/TimedEvent.js +8 -2
- package/dist/src/YomKippurKatanEvent.js +1 -0
- package/dist/src/ashkenazi.po.d.ts +14 -2
- package/dist/src/ashkenazi.po.js +1 -1
- package/dist/src/calendar.js +5 -7
- package/dist/src/candles.js +10 -2
- package/dist/src/event.js +17 -0
- package/dist/src/getStartAndEnd.js +1 -1
- package/dist/src/he-x-NoNikud.po.d.ts +2 -0
- package/dist/src/he-x-NoNikud.po.js +1 -1
- package/dist/src/he.po.d.ts +20 -0
- package/dist/src/he.po.js +1 -1
- package/dist/src/hebcal.js +2 -2
- package/dist/src/holidays.js +2 -2
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +2 -0
- package/dist/src/locale.d.ts +1 -2
- package/dist/src/locale.js +1 -1
- package/dist/src/location.js +6 -0
- package/dist/src/molad.d.ts +71 -1
- package/dist/src/molad.js +112 -11
- package/dist/src/moladBase.d.ts +15 -0
- package/dist/src/moladBase.js +78 -0
- package/dist/src/moladDate.d.ts +12 -0
- package/dist/src/moladDate.js +58 -0
- package/dist/src/omer.d.ts +0 -1
- package/dist/src/omer.js +6 -3
- package/dist/src/parshaName.js +1 -1
- package/dist/src/pkgVersion.d.ts +1 -1
- package/dist/src/pkgVersion.js +1 -1
- package/dist/src/reformatTimeStr.js +4 -5
- package/dist/src/sedra.js +12 -6
- package/dist/src/tachanun.js +3 -3
- package/dist/src/zmanim.d.ts +263 -2
- package/dist/src/zmanim.js +429 -10
- package/dist/version.js +1 -2
- package/package.json +17 -19
- 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 -83
- 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 -70
- package/dist/calendar.d.ts +0 -111
- package/dist/candles.d.ts +0 -44
- 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 -195
- package/dist/hebcal.d.ts +0 -260
- package/dist/holidays.d.ts +0 -22
- package/dist/index.d.ts +0 -26
- package/dist/isAssurBemlacha.d.ts +0 -9
- package/dist/locale.d.ts +0 -2
- package/dist/location.d.ts +0 -73
- package/dist/modern.d.ts +0 -18
- package/dist/molad.d.ts +0 -62
- package/dist/omer.d.ts +0 -53
- 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/size-demo/dist/getHoliday.d.ts +0 -1944
- package/dist/size-demo/dist/getHoliday.js +0 -3712
- package/dist/size-demo/dist/parshiyot.js +0 -10662
- package/dist/size-demo/dist/sedra.d.ts +0 -1411
- package/dist/size-demo/dist/sedra.js +0 -2359
- package/dist/size-demo/dist/tachanun.d.ts +0 -1015
- package/dist/size-demo/dist/tachanun.js +0 -1755
- package/dist/size-demo/getHoliday.d.ts +0 -1
- package/dist/size-demo/getHoliday.js +0 -3
- package/dist/size-demo/parshiyot.d.ts +0 -1
- package/dist/size-demo/parshiyot.js +0 -11
- package/dist/size-demo/rollup.config.d.ts +0 -3
- package/dist/size-demo/rollup.config.js +0 -47
- package/dist/size-demo/sedra.d.ts +0 -1
- package/dist/size-demo/sedra.js +0 -3
- package/dist/size-demo/tachanun.d.ts +0 -1
- package/dist/size-demo/tachanun.js +0 -3
- package/dist/staticHolidays.d.ts +0 -176
- package/dist/tachanun.d.ts +0 -29
- package/dist/zmanim.d.ts +0 -347
package/dist/holidays.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { HDate } from '@hebcal/hdate';
|
|
2
|
-
import { HolidayEvent } from './HolidayEvent';
|
|
3
|
-
/**
|
|
4
|
-
* Returns an array of Events on this date (or `undefined` if no events)
|
|
5
|
-
* @param date Hebrew Date, Gregorian date, or absolute R.D. day number
|
|
6
|
-
* @param [il] use the Israeli schedule for holidays
|
|
7
|
-
*/
|
|
8
|
-
export declare function getHolidaysOnDate(date: HDate | Date | number, il?: boolean): HolidayEvent[] | undefined;
|
|
9
|
-
export type HolidayYearMap = Map<string, HolidayEvent[]>;
|
|
10
|
-
/**
|
|
11
|
-
* Lower-level holidays interface, which returns a `Map` of `Event`s indexed by
|
|
12
|
-
* `HDate.toString()`. These events must filtered especially for `flags.IL_ONLY`
|
|
13
|
-
* or `flags.CHUL_ONLY` depending on Israel vs. Diaspora holiday scheme.
|
|
14
|
-
* @private
|
|
15
|
-
*/
|
|
16
|
-
export declare function getHolidaysForYear_(year: number): HolidayYearMap;
|
|
17
|
-
/**
|
|
18
|
-
* Returns an array of holidays for the year
|
|
19
|
-
* @param year Hebrew year
|
|
20
|
-
* @param il use the Israeli schedule for holidays
|
|
21
|
-
*/
|
|
22
|
-
export declare function getHolidaysForYearArray(year: number, il: boolean): HolidayEvent[];
|
package/dist/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export { version } from './pkgVersion';
|
|
2
|
-
export { gematriya, gematriyaStrToNum } from '@hebcal/hdate';
|
|
3
|
-
export { greg, months, HDate, Locale, Headers, StringArrayMap, LocaleData, MonthName, } from '@hebcal/hdate';
|
|
4
|
-
import './locale';
|
|
5
|
-
export { CalOptions, DailyLearningValue } from './CalOptions';
|
|
6
|
-
export { HebrewDateEvent } from './HebrewDateEvent';
|
|
7
|
-
export { Event, flags } from './event';
|
|
8
|
-
export { GeoLocation, NOAACalculator } from '@hebcal/noaa';
|
|
9
|
-
export { Location } from './location';
|
|
10
|
-
export { Zmanim } from './zmanim';
|
|
11
|
-
export { isAssurBemlacha } from './isAssurBemlacha';
|
|
12
|
-
export { TimedEvent, CandleLightingEvent, HavdalahEvent } from './TimedEvent';
|
|
13
|
-
export { FastDayEvent, TimedChanukahEvent } from './candles';
|
|
14
|
-
export { Molad, MoladEvent } from './molad';
|
|
15
|
-
export { OmerEvent, OmerLang } from './omer';
|
|
16
|
-
export { TachanunResult } from './tachanun';
|
|
17
|
-
export { Sedra, SedraResult, parshiot, getSedra } from './sedra';
|
|
18
|
-
export { ParshaEvent } from './ParshaEvent';
|
|
19
|
-
export { parshaYear } from './parshaYear';
|
|
20
|
-
export { HolidayEvent, ChanukahEvent, AsaraBTevetEvent, RoshChodeshEvent, RoshHashanaEvent, } from './HolidayEvent';
|
|
21
|
-
export { HolidayYearMap, getHolidaysOnDate } from './holidays';
|
|
22
|
-
export { MevarchimChodeshEvent } from './MevarchimChodeshEvent';
|
|
23
|
-
export { YomKippurKatanEvent } from './YomKippurKatanEvent';
|
|
24
|
-
export { holidayDesc } from './staticHolidays';
|
|
25
|
-
export { DailyLearning } from './DailyLearning';
|
|
26
|
-
export { HebrewCalendar } from './hebcal';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Location } from './location';
|
|
2
|
-
/**
|
|
3
|
-
* Utility method to determine if the date and time has a <em>melacha</em> (work) prohibition.
|
|
4
|
-
* Although there are many opinions on the time of <em>tzais</em>, for simplicity
|
|
5
|
-
* this function uses solar depression of 8.5 degrees.
|
|
6
|
-
*
|
|
7
|
-
* @return `true` if <em>melacha</em> is prohibited or `false` if it is not.
|
|
8
|
-
*/
|
|
9
|
-
export declare function isAssurBemlacha(currentTime: Date, location: Location, useElevation: boolean): boolean;
|
package/dist/locale.d.ts
DELETED
package/dist/location.d.ts
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { GeoLocation } from '@hebcal/noaa';
|
|
2
|
-
/** Class representing Location */
|
|
3
|
-
export declare class Location extends GeoLocation {
|
|
4
|
-
private readonly il;
|
|
5
|
-
private readonly cc?;
|
|
6
|
-
private readonly geoid?;
|
|
7
|
-
/**
|
|
8
|
-
* Initialize a Location instance
|
|
9
|
-
* @param latitude - Latitude as a decimal, valid range -90 thru +90 (e.g. 41.85003)
|
|
10
|
-
* @param longitude - Longitude as a decimal, valid range -180 thru +180 (e.g. -87.65005)
|
|
11
|
-
* @param il - in Israel (true) or Diaspora (false)
|
|
12
|
-
* @param tzid - Olson timezone ID, e.g. "America/Chicago"
|
|
13
|
-
* @param [cityName] - optional descriptive city name
|
|
14
|
-
* @param [countryCode] - ISO 3166 alpha-2 country code (e.g. "FR")
|
|
15
|
-
* @param [geoid] - optional string or numeric geographic ID
|
|
16
|
-
* @param [elevation] - in meters (default `0`)
|
|
17
|
-
*/
|
|
18
|
-
constructor(latitude: number, longitude: number, il: boolean, tzid: string, cityName?: string, countryCode?: string, geoid?: string | number, elevation?: number);
|
|
19
|
-
getIsrael(): boolean;
|
|
20
|
-
getName(): string | null;
|
|
21
|
-
/**
|
|
22
|
-
* Returns the location name, up to the first comma
|
|
23
|
-
*/
|
|
24
|
-
getShortName(): string | null;
|
|
25
|
-
getCountryCode(): string | undefined;
|
|
26
|
-
getTzid(): string;
|
|
27
|
-
/**
|
|
28
|
-
* Gets a 24-hour time formatter (e.g. 07:41 or 20:03) for this location
|
|
29
|
-
*/
|
|
30
|
-
getTimeFormatter(): Intl.DateTimeFormat;
|
|
31
|
-
getGeoId(): string | number | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Creates a location object from one of 60 "classic" Hebcal city names.
|
|
34
|
-
* The following city names are supported:
|
|
35
|
-
* 'Ashdod', 'Atlanta', 'Austin', 'Baghdad', 'Beer Sheva',
|
|
36
|
-
* 'Berlin', 'Baltimore', 'Bogota', 'Boston', 'Budapest',
|
|
37
|
-
* 'Buenos Aires', 'Buffalo', 'Chicago', 'Cincinnati', 'Cleveland',
|
|
38
|
-
* 'Dallas', 'Denver', 'Detroit', 'Eilat', 'Gibraltar', 'Haifa',
|
|
39
|
-
* 'Hawaii', 'Helsinki', 'Houston', 'Jerusalem', 'Johannesburg',
|
|
40
|
-
* 'Kiev', 'La Paz', 'Livingston', 'Las Vegas', 'London', 'Los Angeles',
|
|
41
|
-
* 'Marseilles', 'Miami', 'Minneapolis', 'Melbourne', 'Mexico City',
|
|
42
|
-
* 'Montreal', 'Moscow', 'New York', 'Omaha', 'Ottawa', 'Panama City',
|
|
43
|
-
* 'Paris', 'Pawtucket', 'Petach Tikvah', 'Philadelphia', 'Phoenix',
|
|
44
|
-
* 'Pittsburgh', 'Providence', 'Portland', 'Saint Louis', 'Saint Petersburg',
|
|
45
|
-
* 'San Diego', 'San Francisco', 'Sao Paulo', 'Seattle', 'Sydney',
|
|
46
|
-
* 'Tel Aviv', 'Tiberias', 'Toronto', 'Vancouver', 'White Plains',
|
|
47
|
-
* 'Washington DC', 'Worcester'
|
|
48
|
-
* @param name
|
|
49
|
-
*/
|
|
50
|
-
static lookup(name: string): Location | undefined;
|
|
51
|
-
toString(): string;
|
|
52
|
-
/**
|
|
53
|
-
* Converts legacy Hebcal timezone to a standard Olson tzid.
|
|
54
|
-
* @param tz integer, GMT offset in hours
|
|
55
|
-
* @param dst 'none', 'eu', 'usa', or 'israel'
|
|
56
|
-
*/
|
|
57
|
-
static legacyTzToTzid(tz: number, dst: string): string | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* Converts timezone info from Zip-Codes.com to a standard Olson tzid.
|
|
60
|
-
* @example
|
|
61
|
-
* Location.getUsaTzid('AZ', 7, 'Y') // 'America/Denver'
|
|
62
|
-
* @param state two-letter all-caps US state abbreviation like 'CA'
|
|
63
|
-
* @param tz positive number, 5=America/New_York, 8=America/Los_Angeles
|
|
64
|
-
* @param dst single char 'Y' or 'N'
|
|
65
|
-
*/
|
|
66
|
-
static getUsaTzid(state: string, tz: number, dst: string): string;
|
|
67
|
-
/**
|
|
68
|
-
* Adds a location name for `Location.lookup()` only if the name isn't
|
|
69
|
-
* already being used. Returns `false` if the name is already taken
|
|
70
|
-
* and `true` if successfully added.
|
|
71
|
-
*/
|
|
72
|
-
static addLocation(cityName: string, location: Location): boolean;
|
|
73
|
-
}
|
package/dist/modern.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { HDate } from '@hebcal/hdate';
|
|
2
|
-
/**
|
|
3
|
-
* Yom HaShoah first observed in 1951.
|
|
4
|
-
* When the actual date of Yom Hashoah falls on a Friday, the
|
|
5
|
-
* state of Israel observes Yom Hashoah on the preceding
|
|
6
|
-
* Thursday. When it falls on a Sunday, Yom Hashoah is observed
|
|
7
|
-
* on the following Monday.
|
|
8
|
-
* http://www.ushmm.org/remembrance/dor/calendar/
|
|
9
|
-
* @private
|
|
10
|
-
* @param year
|
|
11
|
-
*/
|
|
12
|
-
export declare function dateYomHaShoah(year: number): HDate | null;
|
|
13
|
-
/**
|
|
14
|
-
* Yom HaAtzma'ut only celebrated after 1948
|
|
15
|
-
* @private
|
|
16
|
-
* @param year
|
|
17
|
-
*/
|
|
18
|
-
export declare function dateYomHaZikaron(year: number): HDate | null;
|
package/dist/molad.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Event } from './event';
|
|
2
|
-
import { CalOptions } from './CalOptions';
|
|
3
|
-
import { HDate } from '@hebcal/hdate';
|
|
4
|
-
import './locale';
|
|
5
|
-
/**
|
|
6
|
-
* Represents a molad, the moment when the new moon is "born"
|
|
7
|
-
*/
|
|
8
|
-
export declare class Molad {
|
|
9
|
-
private readonly m;
|
|
10
|
-
/**
|
|
11
|
-
* Calculates the molad for a Hebrew month
|
|
12
|
-
* @param year
|
|
13
|
-
* @param month
|
|
14
|
-
*/
|
|
15
|
-
constructor(year: number, month: number);
|
|
16
|
-
/**
|
|
17
|
-
*/
|
|
18
|
-
getYear(): number;
|
|
19
|
-
/**
|
|
20
|
-
*/
|
|
21
|
-
getMonth(): number;
|
|
22
|
-
/**
|
|
23
|
-
*/
|
|
24
|
-
getMonthName(): string;
|
|
25
|
-
/**
|
|
26
|
-
* @returns Day of Week (0=Sunday, 6=Saturday)
|
|
27
|
-
*/
|
|
28
|
-
getDow(): number;
|
|
29
|
-
/**
|
|
30
|
-
* @returns hour of day (0-23)
|
|
31
|
-
*/
|
|
32
|
-
getHour(): number;
|
|
33
|
-
/**
|
|
34
|
-
* @returns minutes past hour (0-59)
|
|
35
|
-
*/
|
|
36
|
-
getMinutes(): number;
|
|
37
|
-
/**
|
|
38
|
-
* @returns parts of a minute (0-17)
|
|
39
|
-
*/
|
|
40
|
-
getChalakim(): number;
|
|
41
|
-
/**
|
|
42
|
-
* @param [locale] Optional locale name (defaults to empty locale)
|
|
43
|
-
* @param options
|
|
44
|
-
*/
|
|
45
|
-
render(locale?: string, options?: CalOptions): string;
|
|
46
|
-
}
|
|
47
|
-
/** Represents a Molad announcement on Shabbat Mevarchim */
|
|
48
|
-
export declare class MoladEvent extends Event {
|
|
49
|
-
readonly molad: Molad;
|
|
50
|
-
private readonly options;
|
|
51
|
-
/**
|
|
52
|
-
* @param date Hebrew date event occurs
|
|
53
|
-
* @param hyear molad year
|
|
54
|
-
* @param hmonth molad month
|
|
55
|
-
* @param options
|
|
56
|
-
*/
|
|
57
|
-
constructor(date: HDate, hyear: number, hmonth: number, options: CalOptions);
|
|
58
|
-
/**
|
|
59
|
-
* @param [locale] Optional locale name (defaults to empty locale)
|
|
60
|
-
*/
|
|
61
|
-
render(locale?: string): string;
|
|
62
|
-
}
|
package/dist/omer.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { HDate } from '@hebcal/hdate';
|
|
2
|
-
import { Event } from './event';
|
|
3
|
-
import './locale';
|
|
4
|
-
/**
|
|
5
|
-
* Language for counting the Omer can be English or Hebrew.
|
|
6
|
-
* Lang for the Sefira can be English, Hebrew, or Hebrew in Sephardic transliteration.
|
|
7
|
-
*/
|
|
8
|
-
export type OmerLang = 'en' | 'he' | 'translit';
|
|
9
|
-
/** Represents a day 1-49 of counting the Omer from Pesach to Shavuot */
|
|
10
|
-
export declare class OmerEvent extends Event {
|
|
11
|
-
private readonly weekNumber;
|
|
12
|
-
private readonly daysWithinWeeks;
|
|
13
|
-
readonly omer: number;
|
|
14
|
-
emoji?: string;
|
|
15
|
-
/**
|
|
16
|
-
* @param date
|
|
17
|
-
* @param omerDay
|
|
18
|
-
*/
|
|
19
|
-
constructor(date: HDate, omerDay: number);
|
|
20
|
-
/**
|
|
21
|
-
* Returns the sefira. For example, on day 8:
|
|
22
|
-
* * חֶֽסֶד שֶׁבִּגְבוּרָה
|
|
23
|
-
* * Chesed shebiGevurah
|
|
24
|
-
* * Lovingkindness within Might
|
|
25
|
-
* @param lang `en` (English), `he` (Hebrew with nikud), or `translit` (Hebrew in Sephardic transliteration)
|
|
26
|
-
* @returns a string such as `Lovingkindness within Might` or `חֶֽסֶד שֶׁבִּגְבוּרָה`
|
|
27
|
-
*/
|
|
28
|
-
sefira(lang?: OmerLang): string;
|
|
29
|
-
/**
|
|
30
|
-
* @param [locale] Optional locale name (defaults to empty locale)
|
|
31
|
-
*/
|
|
32
|
-
render(locale?: string): string;
|
|
33
|
-
/**
|
|
34
|
-
* Returns translation of "Omer day 22" without ordinal numbers.
|
|
35
|
-
* @param [locale] Optional locale name (defaults to empty locale)
|
|
36
|
-
*/
|
|
37
|
-
renderBrief(locale?: string): string;
|
|
38
|
-
/**
|
|
39
|
-
* Returns an emoji number symbol with a circle, for example `㊲`
|
|
40
|
-
* from the “Enclosed CJK Letters and Months” block of the Unicode standard
|
|
41
|
-
* @returns a single Unicode character from `①` through `㊾`
|
|
42
|
-
*/
|
|
43
|
-
getEmoji(): string;
|
|
44
|
-
getWeeks(): number;
|
|
45
|
-
getDaysWithinWeeks(): number;
|
|
46
|
-
/**
|
|
47
|
-
* Returns a sentence with that evening's omer count
|
|
48
|
-
* @returns a string such as `Today is 10 days, which is 1 week and 3 days of the Omer`
|
|
49
|
-
* or `הַיוֹם עֲשָׂרָה יָמִים, שְׁהֵם שָׁבוּעַ אֶחָד וְשְׁלוֹשָׁה יָמִים לָעוֹמֶר`
|
|
50
|
-
*/
|
|
51
|
-
getTodayIs(locale: string): string;
|
|
52
|
-
url(): string | undefined;
|
|
53
|
-
}
|
package/dist/parshaName.d.ts
DELETED
package/dist/parshaYear.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ParshaEvent } from './ParshaEvent';
|
|
2
|
-
/**
|
|
3
|
-
* Calculates weekly Torah Reading on Saturdays for entire year
|
|
4
|
-
* @param year Hebrew year
|
|
5
|
-
* @param il Israel (false for Diaspora)
|
|
6
|
-
* @returns an array of `ParshaEvent` occurring on Saturdays that contain a regular
|
|
7
|
-
* (non-holiday) Parashat HaShavua
|
|
8
|
-
*/
|
|
9
|
-
export declare function parshaYear(year: number, il: boolean): ParshaEvent[];
|
package/dist/pkgVersion.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CalOptions } from './CalOptions';
|
|
2
|
-
/**
|
|
3
|
-
* @private
|
|
4
|
-
* @param timeStr - original time like "20:30"
|
|
5
|
-
* @param suffix - "p" or "pm" or " P.M.". Add leading space if you want it
|
|
6
|
-
* @param options
|
|
7
|
-
*/
|
|
8
|
-
export declare function reformatTimeStr(timeStr: string, suffix: string, options?: CalOptions): string;
|
package/dist/sedra.d.ts
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { HDate } from '@hebcal/hdate';
|
|
2
|
-
import './locale';
|
|
3
|
-
/** The result from `Sedra.lookup()` */
|
|
4
|
-
export type SedraResult = {
|
|
5
|
-
/**
|
|
6
|
-
* Name of the parsha (or parshiyot) read on
|
|
7
|
-
* Hebrew date, e.g. `['Noach']` or `['Matot', 'Masei']`
|
|
8
|
-
*/
|
|
9
|
-
parsha: string[];
|
|
10
|
-
/**
|
|
11
|
-
* False if this is a regular parashat HaShavua reading.
|
|
12
|
-
* True if it's a special holiday reading.
|
|
13
|
-
*/
|
|
14
|
-
chag: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* The parsha number (or numbers) using 1-indexing.
|
|
17
|
-
* A `number` for a regular (single) parsha, and a `number[]`
|
|
18
|
-
* for a doubled parsha.
|
|
19
|
-
* For Parashat *Bereshit*, `num` would be equal to `1`, and for
|
|
20
|
-
* *Matot-Masei* it would be `[42, 43]`
|
|
21
|
-
* For a chag (holiday) reading, `num` will be `0`.
|
|
22
|
-
*/
|
|
23
|
-
num: number | number[];
|
|
24
|
-
/** The date of the Shabbat this parsha is read */
|
|
25
|
-
hdate: HDate;
|
|
26
|
-
/** true if Israel, false for Diaspora */
|
|
27
|
-
il: boolean;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Represents Parashah HaShavua for an entire Hebrew year
|
|
31
|
-
*/
|
|
32
|
-
export declare class Sedra {
|
|
33
|
-
private readonly year;
|
|
34
|
-
private readonly il;
|
|
35
|
-
private readonly rh;
|
|
36
|
-
private readonly firstSaturday;
|
|
37
|
-
private readonly theSedraArray;
|
|
38
|
-
private readonly yearKey;
|
|
39
|
-
/**
|
|
40
|
-
* Caculates the Parashah HaShavua for an entire Hebrew year
|
|
41
|
-
* @param hyear - Hebrew year (e.g. 5749)
|
|
42
|
-
* @param il - Use Israel sedra schedule (false for Diaspora)
|
|
43
|
-
*/
|
|
44
|
-
constructor(hyear: number, il: boolean);
|
|
45
|
-
/**
|
|
46
|
-
* Returns the date that a parsha occurs
|
|
47
|
-
* or `null` if the parsha doesn't occur this year
|
|
48
|
-
* @param parsha if a `string`, specified with Sephardic transliterations
|
|
49
|
-
* like `'Noach'` or `'Matot-Masei'`. If an array, must be a 1- or 2-element
|
|
50
|
-
* array such as `['Noach']` or `['Matot', 'Masei']`. If a `number`, should
|
|
51
|
-
* be a 0-based parsha index (`0` for Bereshit, `1` for Noach) or a negative
|
|
52
|
-
* number for a doubled parsha (e.g. `-21` for Vayakhel-Pekudei)
|
|
53
|
-
*/
|
|
54
|
-
find(parsha: number | string | string[]): HDate | null;
|
|
55
|
-
private findInternal;
|
|
56
|
-
/**
|
|
57
|
-
* Returns the date that a parsha (or its doubled or undoubled counterpart)
|
|
58
|
-
* occurs, or `null` if the parsha doesn't occur this year
|
|
59
|
-
*/
|
|
60
|
-
findContaining(parsha: number | string): HDate | null;
|
|
61
|
-
/**
|
|
62
|
-
* Returns the underlying annual sedra schedule.
|
|
63
|
-
* Used by `@hebcal/triennial`
|
|
64
|
-
*/
|
|
65
|
-
getSedraArray(): readonly NumberOrString[];
|
|
66
|
-
/**
|
|
67
|
-
* R.D. date of the first Saturday on or after Rosh Hashana
|
|
68
|
-
*/
|
|
69
|
-
getFirstSaturday(): number;
|
|
70
|
-
getYear(): number;
|
|
71
|
-
/**
|
|
72
|
-
* Returns an object describing the parsha on the first Saturday on or after `hd`
|
|
73
|
-
* @param hd Hebrew date or R.D. days
|
|
74
|
-
*/
|
|
75
|
-
lookup(hd: HDate | number): SedraResult;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* The 54 parshiyot of the Torah as transilterated strings.
|
|
79
|
-
* * parshiot[0] == `Bereshit`
|
|
80
|
-
* * parshiot[1] == `Noach`
|
|
81
|
-
* * parshiot[52] == `Ha'azinu`
|
|
82
|
-
* * parshiot[53] == `Vezot Haberakhah`
|
|
83
|
-
* @readonly
|
|
84
|
-
* @type {string[]}
|
|
85
|
-
*/
|
|
86
|
-
export declare const parshiot: readonly string[];
|
|
87
|
-
type NumberOrString = number | string;
|
|
88
|
-
/**
|
|
89
|
-
* Convenience function to create an instance of `Sedra` or reuse a previously
|
|
90
|
-
* created and cached instance.
|
|
91
|
-
* @param hyear
|
|
92
|
-
* @param il
|
|
93
|
-
*/
|
|
94
|
-
export declare function getSedra(hyear: number, il: boolean): Sedra;
|
|
95
|
-
export {};
|