rrule-temporal 1.4.6 → 1.5.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/README.md +38 -0
- package/dist/{chunk-6K5NTVS6.js → chunk-S4JPXM4U.js} +649 -147
- package/dist/index.cjs +654 -149
- package/dist/index.d.cts +39 -2
- package/dist/index.d.ts +39 -2
- package/dist/index.js +9 -3
- package/dist/totext.cjs +657 -162
- package/dist/totext.js +14 -17
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Temporal } from '@js-temporal/polyfill';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
declare const allowedFreq: readonly ["YEARLY", "MONTHLY", "WEEKLY", "DAILY", "HOURLY", "MINUTELY", "SECONDLY"];
|
|
4
|
+
type Freq = (typeof allowedFreq)[number];
|
|
5
|
+
declare const allowedWeekdays: readonly ["MO", "TU", "WE", "TH", "FR", "SA", "SU"];
|
|
6
|
+
type Weekday = (typeof allowedWeekdays)[number];
|
|
7
|
+
declare const weekdayToIsoDay: Record<Weekday, number>;
|
|
4
8
|
/**
|
|
5
9
|
* Shared options for all rule constructors.
|
|
6
10
|
*/
|
|
@@ -75,6 +79,13 @@ declare class RRuleTemporal {
|
|
|
75
79
|
private readonly opts;
|
|
76
80
|
private readonly maxIterations;
|
|
77
81
|
private readonly includeDtstart;
|
|
82
|
+
private readonly parsedByDayTokens?;
|
|
83
|
+
private readonly simpleByDayIsoDays?;
|
|
84
|
+
private readonly allByDayIsoDays?;
|
|
85
|
+
private readonly hasOrdinalByDay;
|
|
86
|
+
private readonly canUseEpochMillisecondsPrecisionFlag;
|
|
87
|
+
private readonly timeSlotOffsetsMs?;
|
|
88
|
+
private readonly numericByMonths?;
|
|
78
89
|
private static readonly rscaleCalendarSupport;
|
|
79
90
|
/**
|
|
80
91
|
* Normalize a ZonedDateTime to the polyfill implementation.
|
|
@@ -82,6 +93,8 @@ declare class RRuleTemporal {
|
|
|
82
93
|
*/
|
|
83
94
|
private static normalizeToPolyfill;
|
|
84
95
|
constructor(params: RRuleOptions);
|
|
96
|
+
private buildParsedByDayTokens;
|
|
97
|
+
private buildByDayIsoDays;
|
|
85
98
|
private sanitizeNumericArray;
|
|
86
99
|
private sanitizeByDay;
|
|
87
100
|
private enforceStrictRfc;
|
|
@@ -119,6 +132,30 @@ declare class RRuleTemporal {
|
|
|
119
132
|
*/
|
|
120
133
|
with(updates: Partial<ManualOpts>): RRuleTemporal;
|
|
121
134
|
private addDtstartIfNeeded;
|
|
135
|
+
private canUseUtcLinearFastPath;
|
|
136
|
+
private canUseUtcWeeklyFastPath;
|
|
137
|
+
private canUseUtcMonthlyFastPath;
|
|
138
|
+
private utcZdtFromEpochNanoseconds;
|
|
139
|
+
private utcZdtFromEpochMilliseconds;
|
|
140
|
+
private canUseUtcEpochMillisecondsPrecision;
|
|
141
|
+
private buildTimeSlotOffsetsMs;
|
|
142
|
+
private findFirstMatchingDailyStep;
|
|
143
|
+
private allUtcFastPath;
|
|
144
|
+
private _allUtcFixedStepSimple;
|
|
145
|
+
private _allUtcDailySimple;
|
|
146
|
+
private _allUtcWeeklySimple;
|
|
147
|
+
private hasSingleExpandedTimeSlot;
|
|
148
|
+
private buildMonthlyOccurrenceOnDay;
|
|
149
|
+
private applyBySetPosToSortedList;
|
|
150
|
+
private generateMonthlyOccurrenceDays;
|
|
151
|
+
private generateMonthlyOccurrencesOptimizedBySetPos;
|
|
152
|
+
private isGregorianLeapYear;
|
|
153
|
+
private daysInGregorianMonth;
|
|
154
|
+
private gregorianIsoDayOfWeek;
|
|
155
|
+
private monthIndexToYearMonth;
|
|
156
|
+
private generateMonthlyOccurrenceDaysUtc;
|
|
157
|
+
private generateMonthlyOccurrenceEpochsUtc;
|
|
158
|
+
private _allUtcMonthlyByDayOrMonthDay;
|
|
122
159
|
private processOccurrences;
|
|
123
160
|
/**
|
|
124
161
|
* Returns all occurrences of the rule.
|
|
@@ -263,4 +300,4 @@ declare class RRuleTemporal {
|
|
|
263
300
|
private _allRscaleNonGregorian;
|
|
264
301
|
}
|
|
265
302
|
|
|
266
|
-
export { type Freq, type RRuleOptions, RRuleTemporal };
|
|
303
|
+
export { type Freq, type RRuleOptions, RRuleTemporal, type Weekday, allowedFreq, allowedWeekdays, weekdayToIsoDay };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Temporal } from '@js-temporal/polyfill';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
declare const allowedFreq: readonly ["YEARLY", "MONTHLY", "WEEKLY", "DAILY", "HOURLY", "MINUTELY", "SECONDLY"];
|
|
4
|
+
type Freq = (typeof allowedFreq)[number];
|
|
5
|
+
declare const allowedWeekdays: readonly ["MO", "TU", "WE", "TH", "FR", "SA", "SU"];
|
|
6
|
+
type Weekday = (typeof allowedWeekdays)[number];
|
|
7
|
+
declare const weekdayToIsoDay: Record<Weekday, number>;
|
|
4
8
|
/**
|
|
5
9
|
* Shared options for all rule constructors.
|
|
6
10
|
*/
|
|
@@ -75,6 +79,13 @@ declare class RRuleTemporal {
|
|
|
75
79
|
private readonly opts;
|
|
76
80
|
private readonly maxIterations;
|
|
77
81
|
private readonly includeDtstart;
|
|
82
|
+
private readonly parsedByDayTokens?;
|
|
83
|
+
private readonly simpleByDayIsoDays?;
|
|
84
|
+
private readonly allByDayIsoDays?;
|
|
85
|
+
private readonly hasOrdinalByDay;
|
|
86
|
+
private readonly canUseEpochMillisecondsPrecisionFlag;
|
|
87
|
+
private readonly timeSlotOffsetsMs?;
|
|
88
|
+
private readonly numericByMonths?;
|
|
78
89
|
private static readonly rscaleCalendarSupport;
|
|
79
90
|
/**
|
|
80
91
|
* Normalize a ZonedDateTime to the polyfill implementation.
|
|
@@ -82,6 +93,8 @@ declare class RRuleTemporal {
|
|
|
82
93
|
*/
|
|
83
94
|
private static normalizeToPolyfill;
|
|
84
95
|
constructor(params: RRuleOptions);
|
|
96
|
+
private buildParsedByDayTokens;
|
|
97
|
+
private buildByDayIsoDays;
|
|
85
98
|
private sanitizeNumericArray;
|
|
86
99
|
private sanitizeByDay;
|
|
87
100
|
private enforceStrictRfc;
|
|
@@ -119,6 +132,30 @@ declare class RRuleTemporal {
|
|
|
119
132
|
*/
|
|
120
133
|
with(updates: Partial<ManualOpts>): RRuleTemporal;
|
|
121
134
|
private addDtstartIfNeeded;
|
|
135
|
+
private canUseUtcLinearFastPath;
|
|
136
|
+
private canUseUtcWeeklyFastPath;
|
|
137
|
+
private canUseUtcMonthlyFastPath;
|
|
138
|
+
private utcZdtFromEpochNanoseconds;
|
|
139
|
+
private utcZdtFromEpochMilliseconds;
|
|
140
|
+
private canUseUtcEpochMillisecondsPrecision;
|
|
141
|
+
private buildTimeSlotOffsetsMs;
|
|
142
|
+
private findFirstMatchingDailyStep;
|
|
143
|
+
private allUtcFastPath;
|
|
144
|
+
private _allUtcFixedStepSimple;
|
|
145
|
+
private _allUtcDailySimple;
|
|
146
|
+
private _allUtcWeeklySimple;
|
|
147
|
+
private hasSingleExpandedTimeSlot;
|
|
148
|
+
private buildMonthlyOccurrenceOnDay;
|
|
149
|
+
private applyBySetPosToSortedList;
|
|
150
|
+
private generateMonthlyOccurrenceDays;
|
|
151
|
+
private generateMonthlyOccurrencesOptimizedBySetPos;
|
|
152
|
+
private isGregorianLeapYear;
|
|
153
|
+
private daysInGregorianMonth;
|
|
154
|
+
private gregorianIsoDayOfWeek;
|
|
155
|
+
private monthIndexToYearMonth;
|
|
156
|
+
private generateMonthlyOccurrenceDaysUtc;
|
|
157
|
+
private generateMonthlyOccurrenceEpochsUtc;
|
|
158
|
+
private _allUtcMonthlyByDayOrMonthDay;
|
|
122
159
|
private processOccurrences;
|
|
123
160
|
/**
|
|
124
161
|
* Returns all occurrences of the rule.
|
|
@@ -263,4 +300,4 @@ declare class RRuleTemporal {
|
|
|
263
300
|
private _allRscaleNonGregorian;
|
|
264
301
|
}
|
|
265
302
|
|
|
266
|
-
export { type Freq, type RRuleOptions, RRuleTemporal };
|
|
303
|
+
export { type Freq, type RRuleOptions, RRuleTemporal, type Weekday, allowedFreq, allowedWeekdays, weekdayToIsoDay };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
RRuleTemporal
|
|
3
|
-
|
|
2
|
+
RRuleTemporal,
|
|
3
|
+
allowedFreq,
|
|
4
|
+
allowedWeekdays,
|
|
5
|
+
weekdayToIsoDay
|
|
6
|
+
} from "./chunk-S4JPXM4U.js";
|
|
4
7
|
export {
|
|
5
|
-
RRuleTemporal
|
|
8
|
+
RRuleTemporal,
|
|
9
|
+
allowedFreq,
|
|
10
|
+
allowedWeekdays,
|
|
11
|
+
weekdayToIsoDay
|
|
6
12
|
};
|