zek 16.1.19 → 16.1.21
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/esm2022/lib/models/key-pair.model.mjs +1 -1
- package/esm2022/lib/utils/array-helper.mjs +4 -1
- package/esm2022/lib/utils/date-helper.mjs +11 -1
- package/fesm2022/zek.mjs +13 -0
- package/fesm2022/zek.mjs.map +1 -1
- package/lib/models/key-pair.model.d.ts +2 -2
- package/lib/utils/array-helper.d.ts +1 -0
- package/lib/utils/date-helper.d.ts +2 -1
- package/package.json +1 -1
|
@@ -7,8 +7,8 @@ export declare class KeyPairEx<TKey = any, TValue = any> extends KeyPair<TKey, T
|
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
}
|
|
9
9
|
export declare class KeyPairChecked<TKey = any, TValue = any> extends KeyPair<TKey, TValue> {
|
|
10
|
-
checked?: boolean;
|
|
10
|
+
checked?: boolean | null;
|
|
11
11
|
}
|
|
12
12
|
export declare class KeyPairRequired<TKey = any, TValue = any> extends KeyPair<TKey, TValue> {
|
|
13
|
-
required?: boolean;
|
|
13
|
+
required?: boolean | null;
|
|
14
14
|
}
|
|
@@ -2,6 +2,7 @@ import { KeyPair, KeyPairEx, Tree } from "../models";
|
|
|
2
2
|
export declare class ArrayHelper {
|
|
3
3
|
static insert(value: any[], index: number, v: any): void;
|
|
4
4
|
static contains(value: any[], v: any): boolean;
|
|
5
|
+
static isArray(arg: any): boolean;
|
|
5
6
|
static distinct(source: any[]): any[];
|
|
6
7
|
static filterByKey(filterValue: any, key: string, array: any[]): any[];
|
|
7
8
|
static flattenArray(value: any[]): any[];
|
|
@@ -17,7 +17,8 @@ export declare class DateHelper {
|
|
|
17
17
|
static isWeekend(v: Date): boolean;
|
|
18
18
|
static isSameDate(a: Date, b: Date): boolean;
|
|
19
19
|
static getAge(value?: Date | string | null, now?: Date | null): number | null;
|
|
20
|
-
static
|
|
20
|
+
static subtractMonths(starDate: Date, endDate: Date): number;
|
|
21
|
+
static subtractDays(value: Date, date: Date): number | null;
|
|
21
22
|
static subtractHours(value: Date, date?: Date | null): number | null;
|
|
22
23
|
static subtractMinutes(value: Date, date?: Date | null): number | null;
|
|
23
24
|
static ISO8601_DATE_REGEX: RegExp;
|