coer-elements 2.0.75 → 2.0.79

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,6 +1,6 @@
1
1
  {
2
2
  "name": "coer-elements",
3
- "version": "2.0.75",
3
+ "version": "2.0.79",
4
4
  "author": "Christian Omar Escamilla Rodríguez",
5
5
  "keywords": [
6
6
  "Components",
@@ -40,7 +40,6 @@
40
40
  "rxjs": "~7.8.0",
41
41
  "bootstrap": "^5.3.3",
42
42
  "bootstrap-icons": "^1.11.3",
43
- "moment": "^2.30.1",
44
43
  "sweetalert2": "^11.14.5",
45
44
  "file-saver": "^2.0.5",
46
45
  "xlsx": "^0.18.5"
@@ -67,14 +66,14 @@
67
66
  "types": "./directives/index.d.ts",
68
67
  "default": "./fesm2022/coer-elements-directives.mjs"
69
68
  },
70
- "./extensions": {
71
- "types": "./extensions/index.d.ts",
72
- "default": "./fesm2022/coer-elements-extensions.mjs"
73
- },
74
69
  "./guards": {
75
70
  "types": "./guards/index.d.ts",
76
71
  "default": "./fesm2022/coer-elements-guards.mjs"
77
72
  },
73
+ "./extensions": {
74
+ "types": "./extensions/index.d.ts",
75
+ "default": "./fesm2022/coer-elements-extensions.mjs"
76
+ },
78
77
  "./interceptors": {
79
78
  "types": "./interceptors/index.d.ts",
80
79
  "default": "./fesm2022/coer-elements-interceptors.mjs"
@@ -1,24 +1,54 @@
1
- import moment from "moment";
2
1
  /** Provides several methods for dates manipulation */
3
2
  export declare class Dates {
3
+ private static readonly MONTHS;
4
4
  /** Get UTC Offset */
5
5
  static GetOffset(): number;
6
+ /** */
7
+ static IsValidDate(date: string | Date): boolean;
6
8
  /** YYYY-MM-DD HH:mm:ss */
7
9
  static GetCurrentDateTime(): string;
8
- /** YYYY-MM-DD HH:mm:ss */
9
- static GetFormatDB(date: string | Date | moment.Moment): string;
10
+ /** */
11
+ private static _CleanDate;
10
12
  /** Convert UTC Date to Local Zone. YYYY-MM-DD HH:mm:ss */
11
- static ToLocalZone(date: string | Date | moment.Moment): string;
13
+ static ToLocalZone(utcDate: string | Date): string;
12
14
  /** Convert Local Zone Date to UTC. YYYY-MM-DD HH:mm:ss */
13
- static ToUTC(date: string | Date | moment.Moment): string;
14
- /** MMM, DD YYYY */
15
- static GetDateFormat(date: string | Date | moment.Moment): string;
16
- /** MMM, DD YYYY at hh:mm a */
17
- static GetDateTimeFormat(date: string | Date | moment.Moment): string;
18
- /** */
19
- static IsValidDate(date: string | Date | moment.Moment): boolean;
15
+ static ToUTC(date: string | Date): string;
20
16
  /** YYYY-MM-DD HH:mm:ss */
21
- static SetFirstHour(date: string | Date | moment.Moment): string;
22
- /** YYYY-MM-DD HH:mm:ss */
23
- static SetLastHour(date: string | Date | moment.Moment): string;
17
+ static GetFormatDB(date: string | Date): string;
18
+ /** MMM, DD YYYY - US */
19
+ private static _GetFormatDateMDY;
20
+ /** DD MMM YYYY - MX ES */
21
+ private static _GetFormatDateDMY;
22
+ /** YYYY MMM DD - International */
23
+ private static _GetFormatDateYMD;
24
+ /** */
25
+ static GetFormatDate(date: string | Date, format?: 'MDY' | 'DMY' | 'YMD'): string;
26
+ /** */
27
+ static GetFormatDateTime(date: string | Date, ampm?: boolean): string;
28
+ /** Add milliseconds */
29
+ 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;
36
+ /** 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;
40
+ /** Add months */
41
+ static AddMonth(date: string | Date, months: number): Date;
42
+ /** 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;
24
54
  }