coer-elements 2.0.81 → 2.0.83

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/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "coer-elements",
3
- "version": "2.0.81",
3
+ "version": "2.0.83",
4
4
  "author": "Christian Omar Escamilla Rodríguez",
5
5
  "keywords": [
6
6
  "Components",
7
7
  "Directives",
8
8
  "Extensions",
9
+ "fonts",
9
10
  "Guards",
10
11
  "Images",
11
12
  "Interceptors",
@@ -15,9 +16,8 @@
15
16
  "Services",
16
17
  "Signals",
17
18
  "Styles",
18
- "Tools",
19
19
  "icons",
20
- "fonts"
20
+ "Tools"
21
21
  ],
22
22
  "description": "Library for Angular projects",
23
23
  "license": "MIT",
@@ -1,20 +1,22 @@
1
1
  /** Provides several methods for dates manipulation */
2
2
  export declare class Dates {
3
3
  private static readonly MONTHS;
4
- /** Get UTC Offset */
4
+ /** */
5
5
  static GetOffset(): number;
6
6
  /** */
7
+ static GetLastDay(date: string | Date): number;
8
+ /** */
7
9
  static IsValidDate(date: string | Date): boolean;
8
- /** YYYY-MM-DD HH:mm:ss */
9
- static GetCurrentDateTime(): string;
10
+ /** */
11
+ static GetCurrentDate(): Date;
10
12
  /** */
11
13
  private static _CleanDate;
12
- /** Convert UTC Date to Local Zone. YYYY-MM-DD HH:mm:ss */
13
- static ToLocalZone(utcDate: string | Date): string;
14
- /** Convert Local Zone Date to UTC. YYYY-MM-DD HH:mm:ss */
15
- static ToUTC(date: string | Date): string;
14
+ /** */
15
+ static ToLocalZone(utcDate: string | Date): Date;
16
+ /** */
17
+ static ToUTC(date: string | Date): Date;
16
18
  /** YYYY-MM-DD HH:mm:ss */
17
- static GetFormatDB(date: string | Date): string;
19
+ static ToFormatDB(date: string | Date): string;
18
20
  /** MMM, DD YYYY - US */
19
21
  private static _GetFormatDateMDY;
20
22
  /** DD MMM YYYY - MX ES */
@@ -22,33 +24,45 @@ export declare class Dates {
22
24
  /** YYYY MMM DD - International */
23
25
  private static _GetFormatDateYMD;
24
26
  /** */
25
- static GetFormatDate(date: string | Date, format?: 'MDY' | 'DMY' | 'YMD'): string;
27
+ static ToFormatDate(date: string | Date, format?: 'MDY' | 'DMY' | 'YMD'): string;
28
+ /** */
29
+ static ToFormatDateTime(date: string | Date, ampm?: boolean, format?: 'MDY' | 'DMY' | 'YMD'): string;
26
30
  /** */
27
- static GetFormatDateTime(date: string | Date, ampm?: boolean): string;
28
- /** Add milliseconds */
29
31
  static AddMilliseconds(date: string | Date, milliseconds: number): Date;
30
- /** Add seconds */
31
- static AddSeconds(date: string | Date, seconds: number): Date;
32
- /** Add minutes */
33
- static AddMinutes(date: string | Date, minutes: number): Date;
34
- /** Add hours */
35
- static AddHour(date: string | Date, hours: number): Date;
32
+ /** */
33
+ static AddSeconds(date: string | Date, seconds?: number): Date;
34
+ /** */
35
+ static AddMinutes(date: string | Date, minutes?: number): Date;
36
+ /** */
37
+ static AddHours(date: string | Date, hours?: number): Date;
36
38
  /** Add days */
37
- static AddDay(date: string | Date, days: number): Date;
38
- /** Add N weeks to a given date */
39
- static AddWeek(date: string | Date, weeks: number): Date;
39
+ static AddDays(date: string | Date, days?: number): Date;
40
+ /** Add weeks */
41
+ static AddWeeks(date: string | Date, weeks?: number): Date;
40
42
  /** Add months */
41
- static AddMonth(date: string | Date, months: number): Date;
43
+ static AddMonths(date: string | Date, months?: number): Date;
42
44
  /** Add years */
43
- static AddYear(date: string | Date, years: number): Date;
44
- /** Set Hour. YYYY-MM-DD HH:mm:ss */
45
- static SetHour(date: string | Date, hour: number): string;
46
- /** Set minute. YYYY-MM-DD HH:mm:ss */
47
- static SetMinute(date: string | Date, minute: number): string;
48
- /** Set second. YYYY-MM-DD HH:mm:ss */
49
- static SetSecond(date: string | Date, second: number): string;
50
- /** Set 00:00:00. YYYY-MM-DD HH:mm:ss */
51
- static SetFirstHour(date: string | Date): string;
52
- /** Set 23:59:59. YYYY-MM-DD HH:mm:ss */
53
- static SetLastHour(date: string | Date): string;
45
+ static AddYears(date: string | Date, years?: number): Date;
46
+ /** */
47
+ static SetMillisecond(date: string | Date, millisecond?: number): Date;
48
+ /** */
49
+ static SetSecond(date: string | Date, second?: number): Date;
50
+ /** */
51
+ static SetMinute(date: string | Date, minute?: number): Date;
52
+ /** */
53
+ static SetHour(date: string | Date, hour?: number): Date;
54
+ /** Set 00:00:00 */
55
+ static SetFirstHour(date: string | Date): Date;
56
+ /** Set 23:59:59 */
57
+ static SetLastHour(date: string | Date): Date;
58
+ /** */
59
+ static SetDay(date: string | Date, day?: number): Date;
60
+ /** */
61
+ static SetFirstDay(date: string | Date): Date;
62
+ /** */
63
+ static SetLastDay(date: string | Date): Date;
64
+ /** */
65
+ static GetDiffNow(date: string | Date, unit?: 'milliseconds' | 'seconds' | 'minutes' | 'hours' | 'days'): number;
66
+ /** */
67
+ static GetDiff(fromDate: string | Date, toDate: string | Date, unit?: 'milliseconds' | 'seconds' | 'minutes' | 'hours' | 'days'): number;
54
68
  }
@@ -4,6 +4,8 @@ export declare class Numbers {
4
4
  static IsNumber(value: any): boolean;
5
5
  /** Validates if the value isn't a numeric type */
6
6
  static IsNotNumber(value: any): boolean;
7
+ /** */
8
+ static SetDecimals(value: string | number | null | undefined, decimals?: number): string;
7
9
  /** Return a string with numeric format */
8
10
  static GetNumericFormat(value: string | number | null | undefined, decimals?: number): string;
9
11
  /** Return a string with currency format */
@@ -8,6 +8,8 @@ export declare class Strings {
8
8
  static CleanUpBlanks(value: string | number | null | undefined): string;
9
9
  /** Apply title formatting */
10
10
  static ToTitle(value: string | number | null | undefined): string;
11
+ /** Remove whitespaces */
12
+ static RemoveWhiteSpaces(value: string | number | null | undefined): string;
11
13
  /** Removes the last character */
12
14
  static RemoveLastChar(value: string | number | null | undefined): string;
13
15
  /** Removes accents */