coer-elements 2.0.17 → 2.0.18
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/extensions/lib/string.extension.d.ts +12 -10
- package/fesm2022/coer-elements-components.mjs +9 -9
- package/fesm2022/coer-elements-components.mjs.map +1 -1
- package/fesm2022/coer-elements-extensions.mjs +16 -21
- package/fesm2022/coer-elements-extensions.mjs.map +1 -1
- package/fesm2022/coer-elements-guards.mjs +7 -7
- package/fesm2022/coer-elements-guards.mjs.map +1 -1
- package/fesm2022/coer-elements-pages.mjs +2 -2
- package/fesm2022/coer-elements-pages.mjs.map +1 -1
- package/fesm2022/coer-elements-tools.mjs +75 -50
- package/fesm2022/coer-elements-tools.mjs.map +1 -1
- package/interfaces/lib/option.interface.d.ts +1 -0
- package/package.json +5 -5
- package/styles/coer-elements.css +790 -485
- package/styles/index.scss +2 -1
- package/styles/{layout.scss → layout-flex.scss} +39 -7
- package/styles/layout-grid.scss +14 -0
- package/styles/space.scss +15 -15
- package/tools/lib/string.tools.d.ts +16 -0
- package/tools/lib/tools.d.ts +0 -10
- package/tools/public-api.d.ts +14 -13
- /package/tools/lib/{breadcrumbs.class.d.ts → breadcrumbs.tools.d.ts} +0 -0
- /package/tools/lib/{colors.class.d.ts → colors.tools.d.ts} +0 -0
- /package/tools/lib/{control-value.class.d.ts → control-value.tools.d.ts} +0 -0
- /package/tools/lib/{date-time.class.d.ts → date-time.tools.d.ts} +0 -0
- /package/tools/lib/{elements-html.class.d.ts → elements-html.tools.d.ts} +0 -0
- /package/tools/lib/{files.class.d.ts → files.tools.d.ts} +0 -0
- /package/tools/lib/{filters.class.d.ts → filters.tools.d.ts} +0 -0
- /package/tools/lib/{menu.class.d.ts → menu.tools.d.ts} +0 -0
- /package/tools/lib/{page.class.d.ts → page.tools.d.ts} +0 -0
- /package/tools/lib/{screen.class.d.ts → screen.tools.d.ts} +0 -0
- /package/tools/lib/{section.class.d.ts → section.tools.d.ts} +0 -0
- /package/tools/lib/{service.class.d.ts → service.tools.d.ts} +0 -0
- /package/tools/lib/{source.class.d.ts → source.tools.d.ts} +0 -0
package/styles/index.scss
CHANGED
@@ -92,24 +92,56 @@
|
|
92
92
|
|
93
93
|
@for $i from 1 through 10 {
|
94
94
|
@if($i == 1) {
|
95
|
-
.flex-
|
95
|
+
.flex-item-50px {
|
96
|
+
flex-basis: 50px;
|
97
|
+
}
|
98
|
+
|
99
|
+
.flex-item-grow-50px {
|
96
100
|
flex-grow: 1;
|
97
|
-
flex-basis: 50px
|
101
|
+
flex-basis: 50px;
|
98
102
|
}
|
99
103
|
}
|
100
104
|
|
101
|
-
.flex-
|
105
|
+
.flex-item-#{$i * 10} {
|
106
|
+
flex-basis: $i * 10%;
|
107
|
+
}
|
108
|
+
|
109
|
+
.flex-item-#{$i * 100}px {
|
110
|
+
flex-basis: $i * 100px;
|
111
|
+
}
|
112
|
+
|
113
|
+
.flex-item-grow-#{$i * 10} {
|
114
|
+
flex-grow: 1;
|
115
|
+
flex-basis: $i * 10%;
|
116
|
+
}
|
117
|
+
|
118
|
+
.flex-item-grow-#{$i * 100}px {
|
102
119
|
flex-grow: 1;
|
103
120
|
flex-basis: $i * 100px;
|
104
121
|
}
|
105
122
|
|
106
|
-
@if($i *
|
107
|
-
.flex-
|
123
|
+
@if($i * 100 + 50 < 1000) {
|
124
|
+
.flex-item-#{$i * 100 + 50}px {
|
125
|
+
flex-basis: $i * 100px + 50px;
|
126
|
+
}
|
127
|
+
|
128
|
+
.flex-item-grow-#{$i * 100 + 50}px {
|
108
129
|
flex-grow: 1;
|
109
130
|
flex-basis: $i * 100px + 50px;
|
110
131
|
}
|
111
|
-
}
|
112
|
-
|
132
|
+
}
|
133
|
+
|
134
|
+
@if($i * 10 + 5 < 100) {
|
135
|
+
.flex-item-#{$i * 10 + 5} {
|
136
|
+
flex-basis: $i * 10%;
|
137
|
+
}
|
138
|
+
|
139
|
+
.flex-item-grow-#{$i * 10 + 5} {
|
140
|
+
flex-grow: 1;
|
141
|
+
flex-basis: $i * 10% + 5%;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
113
145
|
|
114
146
|
|
115
147
|
@each $key, $value in (
|
package/styles/space.scss
CHANGED
@@ -1,65 +1,65 @@
|
|
1
1
|
@for $i from 0 through 30 {
|
2
2
|
//padding
|
3
|
-
.padding-#{$i} {
|
3
|
+
.padding-#{$i}px {
|
4
4
|
padding: $i * 1px;
|
5
5
|
}
|
6
6
|
|
7
|
-
.padding-top-#{$i} {
|
7
|
+
.padding-top-#{$i}px {
|
8
8
|
padding-top: $i * 1px;
|
9
9
|
}
|
10
10
|
|
11
|
-
.padding-right-#{$i} {
|
11
|
+
.padding-right-#{$i}px {
|
12
12
|
padding-right: $i * 1px;
|
13
13
|
}
|
14
14
|
|
15
|
-
.padding-bottom-#{$i} {
|
15
|
+
.padding-bottom-#{$i}px {
|
16
16
|
padding-bottom: $i * 1px;
|
17
17
|
}
|
18
18
|
|
19
|
-
.padding-left-#{$i} {
|
19
|
+
.padding-left-#{$i}px {
|
20
20
|
padding-left: $i * 1px;
|
21
21
|
}
|
22
22
|
|
23
23
|
//margin
|
24
|
-
.margin-#{$i} {
|
24
|
+
.margin-#{$i}px {
|
25
25
|
margin: $i * 1px;
|
26
26
|
}
|
27
27
|
|
28
|
-
.margin-top-#{$i} {
|
28
|
+
.margin-top-#{$i}px {
|
29
29
|
margin-top: $i * 1px;
|
30
30
|
}
|
31
31
|
|
32
|
-
.margin-right-#{$i} {
|
32
|
+
.margin-right-#{$i}px {
|
33
33
|
margin-right: $i * 1px;
|
34
34
|
}
|
35
35
|
|
36
|
-
.margin-bottom-#{$i} {
|
36
|
+
.margin-bottom-#{$i}px {
|
37
37
|
margin-bottom: $i * 1px;
|
38
38
|
}
|
39
39
|
|
40
|
-
.margin-left-#{$i} {
|
40
|
+
.margin-left-#{$i}px {
|
41
41
|
margin-left: $i * 1px;
|
42
42
|
}
|
43
43
|
|
44
44
|
//position
|
45
|
-
.top-#{$i} {
|
45
|
+
.top-#{$i}px {
|
46
46
|
top: $i * 1px;
|
47
47
|
}
|
48
48
|
|
49
|
-
.right-#{$i} {
|
49
|
+
.right-#{$i}px {
|
50
50
|
right: $i * 1px;
|
51
51
|
}
|
52
52
|
|
53
|
-
.bottom-#{$i} {
|
53
|
+
.bottom-#{$i}px {
|
54
54
|
bottom: $i * 1px;
|
55
55
|
}
|
56
56
|
|
57
|
-
.left-#{$i} {
|
57
|
+
.left-#{$i}px {
|
58
58
|
left: $i * 1px;
|
59
59
|
}
|
60
60
|
|
61
61
|
//gap
|
62
|
-
.gap-#{$i} {
|
62
|
+
.gap-#{$i}px {
|
63
63
|
gap: $i * 1px;
|
64
64
|
}
|
65
65
|
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export declare class StringTools {
|
2
|
+
/** Sets the first character to lowercase */
|
3
|
+
static FirstCharToLower(value: string | number | null | undefined): string;
|
4
|
+
/** Sets the first character to uppercase */
|
5
|
+
static FirstCharToUpper(value: string | number | null | undefined): string;
|
6
|
+
/** Clean extra whitespaces */
|
7
|
+
static CleanUpBlanks(value: string | number | null | undefined): string;
|
8
|
+
/** Apply title formatting */
|
9
|
+
static ToTitle(value: string | number | null | undefined): string;
|
10
|
+
/** Removes the last character */
|
11
|
+
static RemoveLastChar(value: string | number | null | undefined): string;
|
12
|
+
/** Removes accents and special characters */
|
13
|
+
static RemoveAccents(value: string | number | null | undefined, onlyAlphaNumeric?: boolean): string;
|
14
|
+
/** Validates if both strings are equal */
|
15
|
+
static Equals(value: string | number | null | undefined, value2: string | number | null | undefined, sensitive?: boolean): boolean;
|
16
|
+
}
|
package/tools/lib/tools.d.ts
CHANGED
@@ -11,22 +11,14 @@ export declare const Tools: {
|
|
11
11
|
IsNotOnlyWhiteSpace: (value: any) => boolean;
|
12
12
|
/** Avoid Null value */
|
13
13
|
AvoidNull: <T>(value: T | null | undefined, type?: "string" | "number" | "boolean" | null) => T;
|
14
|
-
/** */
|
15
|
-
RemoveAccents: (value: string | null | undefined) => string;
|
16
14
|
/** Break reference of a object or array */
|
17
15
|
BreakReference: <T>(object: T) => T;
|
18
|
-
/** Clean extra whitespaces */
|
19
|
-
CleanUpBlanks: (text: string | number) => string;
|
20
16
|
/** Get properties of an object */
|
21
17
|
GetPropertyList: <T>(object: T | null | undefined) => string[];
|
22
18
|
/**
|
23
19
|
* Set an index and merge more arrays of the same type
|
24
20
|
* */
|
25
21
|
SetIndex: <T>(array: T[], ...args: T[][]) => T[];
|
26
|
-
/** Set First Char To Lower */
|
27
|
-
FirstCharToLower: (text: string | null | undefined) => string;
|
28
|
-
/** Set First Char To Upper */
|
29
|
-
FirstCharToUpper: (text: string | null | undefined) => string;
|
30
22
|
/** Sort an array in ascending order by property */
|
31
23
|
SortBy: <T>(array: T[], property: string, propertyType?: "string" | "number") => T[];
|
32
24
|
/** Sort an array in descending order by property */
|
@@ -43,6 +35,4 @@ export declare const Tools: {
|
|
43
35
|
IsNumber: (value: any) => boolean;
|
44
36
|
/** */
|
45
37
|
Clipboard: (text: string, message?: string, title?: string) => void;
|
46
|
-
/** */
|
47
|
-
RemoveLastChar: (text: string) => string;
|
48
38
|
};
|
package/tools/public-api.d.ts
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
export * from './lib/coer-alert/coer-alert.component';
|
2
|
-
export * from './lib/breadcrumbs.
|
2
|
+
export * from './lib/breadcrumbs.tools';
|
3
3
|
export * from './lib/coer-grid.templates';
|
4
|
-
export * from './lib/colors.
|
5
|
-
export * from './lib/control-value.
|
6
|
-
export * from './lib/date-time.
|
7
|
-
export * from './lib/elements-html.
|
8
|
-
export * from './lib/files.
|
4
|
+
export * from './lib/colors.tools';
|
5
|
+
export * from './lib/control-value.tools';
|
6
|
+
export * from './lib/date-time.tools';
|
7
|
+
export * from './lib/elements-html.tools';
|
8
|
+
export * from './lib/files.tools';
|
9
9
|
export * from './lib/user.class';
|
10
|
-
export * from './lib/filters.
|
11
|
-
export * from './lib/menu.
|
12
|
-
export * from './lib/page.
|
13
|
-
export * from './lib/screen.
|
14
|
-
export * from './lib/section.
|
15
|
-
export * from './lib/service.
|
16
|
-
export * from './lib/source.
|
10
|
+
export * from './lib/filters.tools';
|
11
|
+
export * from './lib/menu.tools';
|
12
|
+
export * from './lib/page.tools';
|
13
|
+
export * from './lib/screen.tools';
|
14
|
+
export * from './lib/section.tools';
|
15
|
+
export * from './lib/service.tools';
|
16
|
+
export * from './lib/source.tools';
|
17
|
+
export * from './lib/string.tools';
|
17
18
|
export * from './lib/tools';
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|