coer-elements 2.0.74 → 2.0.78

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.
@@ -40,6 +40,7 @@ $icons: (
40
40
  'image',
41
41
  'images',
42
42
  'javascript',
43
+ 'modal',
43
44
  'paint-roller',
44
45
  'pen',
45
46
  'pin-geo',
@@ -0,0 +1,4 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
2
+ <!-- COER System -->
3
+ <path d="M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM96 96l320 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 160c-17.7 0-32-14.3-32-32s14.3-32 32-32z"/>
4
+ </svg>
@@ -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): 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
  }