coer-elements 2.0.80 → 2.0.82
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/components/lib/coer-datebox/coer-datebox.component.d.ts +1 -1
- package/components/lib/coer-grid/coer-grid.extension.d.ts +6 -4
- package/components/lib/coer-modal/coer-modal.component.d.ts +1 -1
- package/components/lib/coer-numberbox/coer-numberbox.component.d.ts +1 -1
- package/components/lib/coer-secretbox/coer-secretbox.component.d.ts +1 -1
- package/components/lib/coer-textarea/coer-textarea.component.d.ts +1 -1
- package/components/lib/coer-textbox/coer-textbox.component.d.ts +1 -1
- package/extensions/lib/array.extension.d.ts +2 -2
- package/extensions/lib/date.extension.d.ts +61 -0
- package/extensions/lib/string.extension.d.ts +2 -0
- package/extensions/public-api.d.ts +1 -0
- package/fesm2022/coer-elements-components.mjs +26 -24
- package/fesm2022/coer-elements-components.mjs.map +1 -1
- package/fesm2022/coer-elements-extensions.mjs +91 -3
- package/fesm2022/coer-elements-extensions.mjs.map +1 -1
- package/fesm2022/coer-elements-pages.mjs +9 -8
- package/fesm2022/coer-elements-pages.mjs.map +1 -1
- package/fesm2022/coer-elements-services.mjs +1 -1
- package/fesm2022/coer-elements-services.mjs.map +1 -1
- package/fesm2022/coer-elements-tools.mjs +106 -60
- package/fesm2022/coer-elements-tools.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/coer-elements.css +1 -1
- package/styles/index.scss +4 -4
- package/styles/layout-grid.scss +5 -1
- package/tools/lib/date-time.tools.d.ts +46 -32
- package/tools/lib/numbers.tools.d.ts +2 -0
- package/tools/lib/strings.tools.d.ts +2 -0
- /package/styles/{orders.scss → order.scss} +0 -0
package/styles/index.scss
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
@use "./layout-flex.scss" as _layout-flex;
|
13
13
|
@use "./layout-grid.scss" as _layout-grid;
|
14
14
|
@use "./margins.scss" as _margins;
|
15
|
-
@use "./
|
15
|
+
@use "./order.scss" as _order;
|
16
16
|
@use "./overflow.scss" as _overflow;
|
17
17
|
@use "./paddings.scss" as _padding;
|
18
18
|
@use "./paragraphs" as _paragraphs;
|
@@ -43,7 +43,7 @@
|
|
43
43
|
@include _layout-flex.mixin($breakpoint);
|
44
44
|
@include _layout-grid.mixin($breakpoint);
|
45
45
|
@include _margins.mixin($breakpoint);
|
46
|
-
@include
|
46
|
+
@include _order.mixin($breakpoint);
|
47
47
|
@include _overflow.mixin($breakpoint);
|
48
48
|
@include _padding.mixin($breakpoint);
|
49
49
|
@include _paragraphs.mixin($breakpoint);
|
@@ -64,7 +64,7 @@
|
|
64
64
|
@include _layout-flex.mixin($breakpoint);
|
65
65
|
@include _layout-grid.mixin($breakpoint);
|
66
66
|
@include _margins.mixin($breakpoint);
|
67
|
-
@include
|
67
|
+
@include _order.mixin($breakpoint);
|
68
68
|
@include _overflow.mixin($breakpoint);
|
69
69
|
@include _padding.mixin($breakpoint);
|
70
70
|
@include _paragraphs.mixin($breakpoint);
|
@@ -86,7 +86,7 @@
|
|
86
86
|
@include _layout-flex.mixin($breakpoint);
|
87
87
|
@include _layout-grid.mixin($breakpoint);
|
88
88
|
@include _margins.mixin($breakpoint);
|
89
|
-
@include
|
89
|
+
@include _order.mixin($breakpoint);
|
90
90
|
@include _overflow.mixin($breakpoint);
|
91
91
|
@include _padding.mixin($breakpoint);
|
92
92
|
@include _paragraphs.mixin($breakpoint);
|
package/styles/layout-grid.scss
CHANGED
@@ -12,9 +12,13 @@
|
|
12
12
|
}
|
13
13
|
|
14
14
|
@for $span from 1 through ($colums - ($colum - 1)) {
|
15
|
-
.#{$breakpoint}grid-
|
15
|
+
.#{$breakpoint}grid-column-#{$colum}-#{$span} {
|
16
16
|
grid-column: $colum / span $span !important;
|
17
17
|
}
|
18
|
+
|
19
|
+
.#{$breakpoint}grid-row-#{$colum}-#{$span} {
|
20
|
+
grid-row: $colum / span $span !important;
|
21
|
+
}
|
18
22
|
}
|
19
23
|
}
|
20
24
|
}
|
@@ -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
|
-
/**
|
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
|
-
/**
|
9
|
-
static
|
10
|
+
/** */
|
11
|
+
static GetCurrentDate(): Date;
|
10
12
|
/** */
|
11
13
|
private static _CleanDate;
|
12
|
-
/**
|
13
|
-
static ToLocalZone(utcDate: string | Date):
|
14
|
-
/**
|
15
|
-
static ToUTC(date: string | Date):
|
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
|
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
|
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
|
-
/**
|
31
|
-
static AddSeconds(date: string | Date, seconds
|
32
|
-
/**
|
33
|
-
static AddMinutes(date: string | Date, minutes
|
34
|
-
/**
|
35
|
-
static
|
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
|
38
|
-
/** Add
|
39
|
-
static
|
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
|
43
|
+
static AddMonths(date: string | Date, months?: number): Date;
|
42
44
|
/** Add years */
|
43
|
-
static
|
44
|
-
/**
|
45
|
-
static
|
46
|
-
/**
|
47
|
-
static
|
48
|
-
/**
|
49
|
-
static
|
50
|
-
/**
|
51
|
-
static
|
52
|
-
/** Set
|
53
|
-
static
|
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 */
|
File without changes
|