@fileverse-dev/formulajs 4.4.11-mod-19-patch-2 → 4.4.11-mod-19-patch-3
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/lib/browser/formula.js +106 -79
- package/lib/browser/formula.min.js +2 -2
- package/lib/browser/formula.min.js.map +1 -1
- package/lib/cjs/index.cjs +117 -80
- package/lib/esm/crypto-constants.mjs +24 -0
- package/lib/esm/index.mjs +115 -81
- package/package.json +1 -1
- package/types/cjs/index.d.cts +30 -5
- package/types/esm/index.d.mts +30 -5
package/types/cjs/index.d.cts
CHANGED
|
@@ -2234,6 +2234,7 @@ export function IRR(values: any, guess: any): any;
|
|
|
2234
2234
|
* @returns
|
|
2235
2235
|
*/
|
|
2236
2236
|
export function ISBLANK(value: any): boolean;
|
|
2237
|
+
export function ISDATE(value: any): boolean;
|
|
2237
2238
|
/**
|
|
2238
2239
|
* Returns TRUE if the value is any error value except #N/A.
|
|
2239
2240
|
*
|
|
@@ -2804,6 +2805,18 @@ export namespace NETWORKDAYS {
|
|
|
2804
2805
|
* @returns
|
|
2805
2806
|
*/
|
|
2806
2807
|
export function NETWORKDAYSINTL(start_date: any, end_date: any, weekend: any, holidays: any): number | Error;
|
|
2808
|
+
/**
|
|
2809
|
+
* Returns the number of whole workdays between two dates using parameters to indicate which and how many days are weekend days.
|
|
2810
|
+
*
|
|
2811
|
+
* Category: Date and time
|
|
2812
|
+
*
|
|
2813
|
+
* @param {*} start_date The date for from which the difference is to be computed. The start_date can be earlier than, the same as, or later than the end_date.
|
|
2814
|
+
* @param {*} end_date The date for to which the difference is to be computed.
|
|
2815
|
+
* @param {*} weekend Optional. Indicates the days of the week that are weekend days and are not included in the number of whole working days between start_date and end_date. Weekend is a weekend number or string that specifies when weekends occur. Weekend number values indicate the following weekend days:
|
|
2816
|
+
* @param {*} holidays Optional. An optional set of one or more dates that are to be excluded from the working day calendar. holidays shall be a range of values that contain the dates, or an array constant of the serial values that represent those dates. The ordering of dates or serial values in holidays can be arbitrary.
|
|
2817
|
+
* @returns
|
|
2818
|
+
*/
|
|
2819
|
+
export function NETWORKDAYS_INTL(start_date: any, end_date: any, weekend: any, holidays: any): number | Error;
|
|
2807
2820
|
/**
|
|
2808
2821
|
* Returns the annual nominal interest rate.
|
|
2809
2822
|
*
|
|
@@ -4041,7 +4054,7 @@ export function TEXTJOIN(delimiter: any, ignore_empty: any, ...args: any): any;
|
|
|
4041
4054
|
* @param {*} second A number from 0 to 32767 representing the second. Any value greater than 59 will be converted to hours, minutes, and seconds. For example, TIME(0,0,2000) = TIME(0,33,22) = .023148 or 12:33:20 AM
|
|
4042
4055
|
* @returns
|
|
4043
4056
|
*/
|
|
4044
|
-
export function TIME(hour: any, minute: any, second: any):
|
|
4057
|
+
export function TIME(hour: any, minute: any, second: any): string | Error;
|
|
4045
4058
|
/**
|
|
4046
4059
|
* Converts a time in the form of text to a serial number.
|
|
4047
4060
|
*
|
|
@@ -4080,7 +4093,7 @@ export namespace TINV {
|
|
|
4080
4093
|
*
|
|
4081
4094
|
* @returns
|
|
4082
4095
|
*/
|
|
4083
|
-
export function TODAY(): string
|
|
4096
|
+
export function TODAY(): string;
|
|
4084
4097
|
/**
|
|
4085
4098
|
* Returns the transpose of an array.
|
|
4086
4099
|
*
|
|
@@ -4325,7 +4338,7 @@ export function WEIBULLDIST(x: any, alpha: any, beta: any, cumulative: any): num
|
|
|
4325
4338
|
* @param {*} holidays Optional. An optional list of one or more dates to exclude from the working calendar, such as state and federal holidays and floating holidays. The list can be either a range of values that contain the dates or an array constant of the serial numbers that represent the dates.
|
|
4326
4339
|
* @returns
|
|
4327
4340
|
*/
|
|
4328
|
-
export function WORKDAY(start_date: any, days: any, holidays: any):
|
|
4341
|
+
export function WORKDAY(start_date: any, days: any, holidays: any): string | Error;
|
|
4329
4342
|
export namespace WORKDAY {
|
|
4330
4343
|
/**
|
|
4331
4344
|
* Returns the serial number of the date before or after a specified number of workdays using parameters to indicate which and how many days are weekend days.
|
|
@@ -4338,7 +4351,7 @@ export namespace WORKDAY {
|
|
|
4338
4351
|
* @param {*} holidays Optional. An optional set of one or more dates that are to be excluded from the working day calendar. Holidays shall be a range of values that contain the dates, or an array constant of the serial values that represent those dates. The ordering of dates or serial values in holidays can be arbitrary.
|
|
4339
4352
|
* @returns
|
|
4340
4353
|
*/
|
|
4341
|
-
function INTL(start_date: any, days: any, weekend: any, holidays: any):
|
|
4354
|
+
function INTL(start_date: any, days: any, weekend: any, holidays: any): string | Error;
|
|
4342
4355
|
}
|
|
4343
4356
|
/**
|
|
4344
4357
|
* Returns the serial number of the date before or after a specified number of workdays using parameters to indicate which and how many days are weekend days.
|
|
@@ -4351,7 +4364,19 @@ export namespace WORKDAY {
|
|
|
4351
4364
|
* @param {*} holidays Optional. An optional set of one or more dates that are to be excluded from the working day calendar. Holidays shall be a range of values that contain the dates, or an array constant of the serial values that represent those dates. The ordering of dates or serial values in holidays can be arbitrary.
|
|
4352
4365
|
* @returns
|
|
4353
4366
|
*/
|
|
4354
|
-
export function WORKDAYINTL(start_date: any, days: any, weekend: any, holidays: any):
|
|
4367
|
+
export function WORKDAYINTL(start_date: any, days: any, weekend: any, holidays: any): string | Error;
|
|
4368
|
+
/**
|
|
4369
|
+
* Returns the serial number of the date before or after a specified number of workdays using parameters to indicate which and how many days are weekend days.
|
|
4370
|
+
*
|
|
4371
|
+
* Category: Date and time
|
|
4372
|
+
*
|
|
4373
|
+
* @param {*} start_date The start date, truncated to integer.
|
|
4374
|
+
* @param {*} days The number of workdays before or after the start_date. A positive value yields a future date; a negative value yields a past date; a zero value yields the start_date. Day-offset is truncated to an integer.
|
|
4375
|
+
* @param {*} weekend Optional. Indicates the days of the week that are weekend days and are not considered working days. Weekend is a weekend number or string that specifies when weekends occur. Weekend number values indicate the following weekend days:
|
|
4376
|
+
* @param {*} holidays Optional. An optional set of one or more dates that are to be excluded from the working day calendar. Holidays shall be a range of values that contain the dates, or an array constant of the serial values that represent those dates. The ordering of dates or serial values in holidays can be arbitrary.
|
|
4377
|
+
* @returns
|
|
4378
|
+
*/
|
|
4379
|
+
export function WORKDAY_INTL(start_date: any, days: any, weekend: any, holidays: any): string | Error;
|
|
4355
4380
|
/**
|
|
4356
4381
|
* Returns the internal rate of return for a schedule of cash flows that is not necessarily periodic.
|
|
4357
4382
|
*
|
package/types/esm/index.d.mts
CHANGED
|
@@ -2234,6 +2234,7 @@ export function IRR(values: any, guess: any): any;
|
|
|
2234
2234
|
* @returns
|
|
2235
2235
|
*/
|
|
2236
2236
|
export function ISBLANK(value: any): boolean;
|
|
2237
|
+
export function ISDATE(value: any): boolean;
|
|
2237
2238
|
/**
|
|
2238
2239
|
* Returns TRUE if the value is any error value except #N/A.
|
|
2239
2240
|
*
|
|
@@ -2804,6 +2805,18 @@ export namespace NETWORKDAYS {
|
|
|
2804
2805
|
* @returns
|
|
2805
2806
|
*/
|
|
2806
2807
|
export function NETWORKDAYSINTL(start_date: any, end_date: any, weekend: any, holidays: any): number | Error;
|
|
2808
|
+
/**
|
|
2809
|
+
* Returns the number of whole workdays between two dates using parameters to indicate which and how many days are weekend days.
|
|
2810
|
+
*
|
|
2811
|
+
* Category: Date and time
|
|
2812
|
+
*
|
|
2813
|
+
* @param {*} start_date The date for from which the difference is to be computed. The start_date can be earlier than, the same as, or later than the end_date.
|
|
2814
|
+
* @param {*} end_date The date for to which the difference is to be computed.
|
|
2815
|
+
* @param {*} weekend Optional. Indicates the days of the week that are weekend days and are not included in the number of whole working days between start_date and end_date. Weekend is a weekend number or string that specifies when weekends occur. Weekend number values indicate the following weekend days:
|
|
2816
|
+
* @param {*} holidays Optional. An optional set of one or more dates that are to be excluded from the working day calendar. holidays shall be a range of values that contain the dates, or an array constant of the serial values that represent those dates. The ordering of dates or serial values in holidays can be arbitrary.
|
|
2817
|
+
* @returns
|
|
2818
|
+
*/
|
|
2819
|
+
export function NETWORKDAYS_INTL(start_date: any, end_date: any, weekend: any, holidays: any): number | Error;
|
|
2807
2820
|
/**
|
|
2808
2821
|
* Returns the annual nominal interest rate.
|
|
2809
2822
|
*
|
|
@@ -4041,7 +4054,7 @@ export function TEXTJOIN(delimiter: any, ignore_empty: any, ...args: any): any;
|
|
|
4041
4054
|
* @param {*} second A number from 0 to 32767 representing the second. Any value greater than 59 will be converted to hours, minutes, and seconds. For example, TIME(0,0,2000) = TIME(0,33,22) = .023148 or 12:33:20 AM
|
|
4042
4055
|
* @returns
|
|
4043
4056
|
*/
|
|
4044
|
-
export function TIME(hour: any, minute: any, second: any):
|
|
4057
|
+
export function TIME(hour: any, minute: any, second: any): string | Error;
|
|
4045
4058
|
/**
|
|
4046
4059
|
* Converts a time in the form of text to a serial number.
|
|
4047
4060
|
*
|
|
@@ -4080,7 +4093,7 @@ export namespace TINV {
|
|
|
4080
4093
|
*
|
|
4081
4094
|
* @returns
|
|
4082
4095
|
*/
|
|
4083
|
-
export function TODAY(): string
|
|
4096
|
+
export function TODAY(): string;
|
|
4084
4097
|
/**
|
|
4085
4098
|
* Returns the transpose of an array.
|
|
4086
4099
|
*
|
|
@@ -4325,7 +4338,7 @@ export function WEIBULLDIST(x: any, alpha: any, beta: any, cumulative: any): num
|
|
|
4325
4338
|
* @param {*} holidays Optional. An optional list of one or more dates to exclude from the working calendar, such as state and federal holidays and floating holidays. The list can be either a range of values that contain the dates or an array constant of the serial numbers that represent the dates.
|
|
4326
4339
|
* @returns
|
|
4327
4340
|
*/
|
|
4328
|
-
export function WORKDAY(start_date: any, days: any, holidays: any):
|
|
4341
|
+
export function WORKDAY(start_date: any, days: any, holidays: any): string | Error;
|
|
4329
4342
|
export namespace WORKDAY {
|
|
4330
4343
|
/**
|
|
4331
4344
|
* Returns the serial number of the date before or after a specified number of workdays using parameters to indicate which and how many days are weekend days.
|
|
@@ -4338,7 +4351,7 @@ export namespace WORKDAY {
|
|
|
4338
4351
|
* @param {*} holidays Optional. An optional set of one or more dates that are to be excluded from the working day calendar. Holidays shall be a range of values that contain the dates, or an array constant of the serial values that represent those dates. The ordering of dates or serial values in holidays can be arbitrary.
|
|
4339
4352
|
* @returns
|
|
4340
4353
|
*/
|
|
4341
|
-
function INTL(start_date: any, days: any, weekend: any, holidays: any):
|
|
4354
|
+
function INTL(start_date: any, days: any, weekend: any, holidays: any): string | Error;
|
|
4342
4355
|
}
|
|
4343
4356
|
/**
|
|
4344
4357
|
* Returns the serial number of the date before or after a specified number of workdays using parameters to indicate which and how many days are weekend days.
|
|
@@ -4351,7 +4364,19 @@ export namespace WORKDAY {
|
|
|
4351
4364
|
* @param {*} holidays Optional. An optional set of one or more dates that are to be excluded from the working day calendar. Holidays shall be a range of values that contain the dates, or an array constant of the serial values that represent those dates. The ordering of dates or serial values in holidays can be arbitrary.
|
|
4352
4365
|
* @returns
|
|
4353
4366
|
*/
|
|
4354
|
-
export function WORKDAYINTL(start_date: any, days: any, weekend: any, holidays: any):
|
|
4367
|
+
export function WORKDAYINTL(start_date: any, days: any, weekend: any, holidays: any): string | Error;
|
|
4368
|
+
/**
|
|
4369
|
+
* Returns the serial number of the date before or after a specified number of workdays using parameters to indicate which and how many days are weekend days.
|
|
4370
|
+
*
|
|
4371
|
+
* Category: Date and time
|
|
4372
|
+
*
|
|
4373
|
+
* @param {*} start_date The start date, truncated to integer.
|
|
4374
|
+
* @param {*} days The number of workdays before or after the start_date. A positive value yields a future date; a negative value yields a past date; a zero value yields the start_date. Day-offset is truncated to an integer.
|
|
4375
|
+
* @param {*} weekend Optional. Indicates the days of the week that are weekend days and are not considered working days. Weekend is a weekend number or string that specifies when weekends occur. Weekend number values indicate the following weekend days:
|
|
4376
|
+
* @param {*} holidays Optional. An optional set of one or more dates that are to be excluded from the working day calendar. Holidays shall be a range of values that contain the dates, or an array constant of the serial values that represent those dates. The ordering of dates or serial values in holidays can be arbitrary.
|
|
4377
|
+
* @returns
|
|
4378
|
+
*/
|
|
4379
|
+
export function WORKDAY_INTL(start_date: any, days: any, weekend: any, holidays: any): string | Error;
|
|
4355
4380
|
/**
|
|
4356
4381
|
* Returns the internal rate of return for a schedule of cash flows that is not necessarily periodic.
|
|
4357
4382
|
*
|