coer-elements 2.0.16 → 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/components/lib/coer-accordion/coer-accordion.component.d.ts +3 -1
- package/components/lib/coer-dropdown/coer-dropdown.component.d.ts +1 -1
- package/components/lib/coer-sidenav/coer-toolbar/coer-toolbar.component.d.ts +0 -1
- package/directives/lib/directives.module.d.ts +3 -2
- package/directives/lib/element-data.directive.d.ts +10 -0
- package/directives/lib/life-cycle.directive.d.ts +4 -5
- package/directives/public-api.d.ts +1 -0
- package/extensions/lib/string.extension.d.ts +12 -8
- package/fesm2022/coer-elements-components.mjs +47 -45
- package/fesm2022/coer-elements-components.mjs.map +1 -1
- package/fesm2022/coer-elements-directives.mjs +34 -7
- package/fesm2022/coer-elements-directives.mjs.map +1 -1
- package/fesm2022/coer-elements-extensions.mjs +17 -23
- 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-interfaces.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-services.mjs +14 -2
- package/fesm2022/coer-elements-services.mjs.map +1 -1
- package/fesm2022/coer-elements-tools.mjs +92 -45
- package/fesm2022/coer-elements-tools.mjs.map +1 -1
- package/fesm2022/coer-elements.mjs +2 -1
- package/fesm2022/coer-elements.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/interfaces/lib/colors/action-colors.interface.d.ts +9 -0
- package/interfaces/lib/colors/app-colors.interface.d.ts +10 -0
- package/interfaces/lib/colors/colors.interface.d.ts +8 -0
- package/interfaces/lib/colors/fixed-colors.interface.d.ts +12 -0
- package/interfaces/lib/option.interface.d.ts +1 -0
- package/interfaces/public-api.d.ts +5 -2
- package/package.json +7 -7
- package/services/lib/jwt.service.d.ts +3 -0
- package/styles/coer-elements.css +4367 -1830
- package/styles/containers.scss +12 -3
- package/styles/font.scss +11 -0
- package/styles/index.scss +5 -3
- package/styles/layout-flex.scss +157 -0
- package/styles/layout-grid.scss +14 -0
- package/styles/position.scss +16 -5
- package/styles/space.scss +70 -0
- package/tools/lib/string.tools.d.ts +16 -0
- package/tools/lib/tools.d.ts +4 -8
- package/tools/public-api.d.ts +14 -13
- package/interfaces/lib/colors.interface.d.ts +0 -36
- package/styles/layout.scss +0 -49
- /package/interfaces/lib/coer-grid/{grid-input-textbox.interface.d.ts → grid-input.interface.d.ts} +0 -0
- /package/styles/{angular-material.scss → components.scss} +0 -0
- /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/containers.scss
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
@keyframes fadeIn {
|
2
2
|
from { opacity: 0; }
|
3
|
-
to
|
3
|
+
to { opacity: 1; }
|
4
4
|
}
|
5
5
|
|
6
6
|
@mixin Container() {
|
@@ -17,7 +17,7 @@
|
|
17
17
|
|
18
18
|
.coer-container {
|
19
19
|
@include Container();
|
20
|
-
}
|
20
|
+
}
|
21
21
|
|
22
22
|
.coer-container-accordion {
|
23
23
|
@include Container();
|
@@ -41,4 +41,13 @@
|
|
41
41
|
.coer-container-list {
|
42
42
|
@include Container();
|
43
43
|
padding: 0px;
|
44
|
-
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.coer-container-code {
|
47
|
+
font-family: 'consolas', 'console', monospace !important;
|
48
|
+
background-color: var(--black) !important;
|
49
|
+
color: var(--smoke) !important;
|
50
|
+
border-radius: 10px !important;
|
51
|
+
padding: 10px !important;
|
52
|
+
font-size: 14px;
|
53
|
+
}
|
package/styles/font.scss
ADDED
package/styles/index.scss
CHANGED
@@ -1,13 +1,15 @@
|
|
1
|
-
@use
|
2
|
-
@use "./angular-material.scss";
|
1
|
+
@use "./components.scss";
|
3
2
|
@use "./bootstrap.scss";
|
4
3
|
@use "./colors.scss";
|
5
4
|
@use "./containers.scss";
|
6
5
|
@use "./cursores.scss";
|
7
6
|
@use "./scroll-bar.scss";
|
8
|
-
@use "./layout.scss";
|
7
|
+
@use "./layout-flex.scss";
|
8
|
+
@use "./layout-grid.scss";
|
9
9
|
@use "./animations.scss";
|
10
10
|
@use "./position.scss";
|
11
|
+
@use "./font.scss";
|
12
|
+
@use "./space.scss";
|
11
13
|
|
12
14
|
* {
|
13
15
|
font-family: sans-serif;
|
@@ -0,0 +1,157 @@
|
|
1
|
+
@each $key, $value in (
|
2
|
+
'top': flex-start,
|
3
|
+
'middle': center,
|
4
|
+
'bottom': flex-end
|
5
|
+
) {
|
6
|
+
|
7
|
+
.flex-#{$key}-left {
|
8
|
+
display: flex;
|
9
|
+
align-items: $value;
|
10
|
+
justify-content: flex-start;
|
11
|
+
}
|
12
|
+
|
13
|
+
.flex-wrap-#{$key}-left {
|
14
|
+
display: flex;
|
15
|
+
align-items: $value;
|
16
|
+
justify-content: flex-start;
|
17
|
+
flex-wrap: wrap;
|
18
|
+
gap: 10px;
|
19
|
+
}
|
20
|
+
|
21
|
+
.flex-#{$key}-center {
|
22
|
+
display: flex;
|
23
|
+
align-items: $value;
|
24
|
+
justify-content: center;
|
25
|
+
}
|
26
|
+
|
27
|
+
.flex-wrap-#{$key}-center {
|
28
|
+
display: flex;
|
29
|
+
align-items: $value;
|
30
|
+
justify-content: center;
|
31
|
+
flex-wrap: wrap;
|
32
|
+
gap: 10px;
|
33
|
+
}
|
34
|
+
|
35
|
+
.flex-#{$key}-right {
|
36
|
+
display: flex;
|
37
|
+
align-items: $value;
|
38
|
+
justify-content: flex-end;
|
39
|
+
}
|
40
|
+
|
41
|
+
.flex-wrap-#{$key}-right {
|
42
|
+
display: flex;
|
43
|
+
align-items: $value;
|
44
|
+
justify-content: flex-end;
|
45
|
+
flex-wrap: wrap;
|
46
|
+
gap: 10px;
|
47
|
+
}
|
48
|
+
|
49
|
+
.flex-#{$key}-between {
|
50
|
+
display: flex;
|
51
|
+
align-items: $value;
|
52
|
+
justify-content: space-between;
|
53
|
+
}
|
54
|
+
|
55
|
+
.flex-wrap-#{$key}-between {
|
56
|
+
display: flex;
|
57
|
+
align-items: $value;
|
58
|
+
justify-content: space-between;
|
59
|
+
flex-wrap: wrap;
|
60
|
+
gap: 10px;
|
61
|
+
}
|
62
|
+
|
63
|
+
.flex-#{$key}-around {
|
64
|
+
display: flex;
|
65
|
+
align-items: $value;
|
66
|
+
justify-content: space-around;
|
67
|
+
}
|
68
|
+
|
69
|
+
.flex-wrap-#{$key}-around {
|
70
|
+
display: flex;
|
71
|
+
align-items: $value;
|
72
|
+
justify-content: space-around;
|
73
|
+
flex-wrap: wrap;
|
74
|
+
gap: 10px;
|
75
|
+
}
|
76
|
+
|
77
|
+
.flex-#{$key}-evenly {
|
78
|
+
display: flex;
|
79
|
+
align-items: $value;
|
80
|
+
justify-content: space-evenly;
|
81
|
+
}
|
82
|
+
|
83
|
+
.flex-wrap-#{$key}-evenly {
|
84
|
+
display: flex;
|
85
|
+
align-items: $value;
|
86
|
+
justify-content: space-evenly;
|
87
|
+
flex-wrap: wrap;
|
88
|
+
gap: 10px;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
|
93
|
+
@for $i from 1 through 10 {
|
94
|
+
@if($i == 1) {
|
95
|
+
.flex-item-50px {
|
96
|
+
flex-basis: 50px;
|
97
|
+
}
|
98
|
+
|
99
|
+
.flex-item-grow-50px {
|
100
|
+
flex-grow: 1;
|
101
|
+
flex-basis: 50px;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
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 {
|
119
|
+
flex-grow: 1;
|
120
|
+
flex-basis: $i * 100px;
|
121
|
+
}
|
122
|
+
|
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 {
|
129
|
+
flex-grow: 1;
|
130
|
+
flex-basis: $i * 100px + 50px;
|
131
|
+
}
|
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
|
+
}
|
145
|
+
|
146
|
+
|
147
|
+
@each $key, $value in (
|
148
|
+
'row': row,
|
149
|
+
'row-reverse': row-reverse,
|
150
|
+
'column': column,
|
151
|
+
'column-reverse': column-reverse
|
152
|
+
) {
|
153
|
+
.flex-#{$key} {
|
154
|
+
display: flex;
|
155
|
+
flex-direction: $value;
|
156
|
+
}
|
157
|
+
}
|
package/styles/position.scss
CHANGED
@@ -1,7 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
$counter: 10;
|
2
|
+
@for $i from 0 through $counter {
|
3
|
+
.position-#{$i + 1} {
|
4
|
+
z-index: $counter - $i !important;
|
4
5
|
}
|
5
|
-
}
|
6
|
+
}
|
6
7
|
|
7
|
-
|
8
|
+
@each $key, $value in (
|
9
|
+
'static' : static,
|
10
|
+
'relative': relative,
|
11
|
+
'absolute': absolute,
|
12
|
+
'fixed' : fixed,
|
13
|
+
'sticky' : sticky
|
14
|
+
) {
|
15
|
+
.position-#{$key} {
|
16
|
+
position: $value !important;
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
@for $i from 0 through 30 {
|
2
|
+
//padding
|
3
|
+
.padding-#{$i}px {
|
4
|
+
padding: $i * 1px;
|
5
|
+
}
|
6
|
+
|
7
|
+
.padding-top-#{$i}px {
|
8
|
+
padding-top: $i * 1px;
|
9
|
+
}
|
10
|
+
|
11
|
+
.padding-right-#{$i}px {
|
12
|
+
padding-right: $i * 1px;
|
13
|
+
}
|
14
|
+
|
15
|
+
.padding-bottom-#{$i}px {
|
16
|
+
padding-bottom: $i * 1px;
|
17
|
+
}
|
18
|
+
|
19
|
+
.padding-left-#{$i}px {
|
20
|
+
padding-left: $i * 1px;
|
21
|
+
}
|
22
|
+
|
23
|
+
//margin
|
24
|
+
.margin-#{$i}px {
|
25
|
+
margin: $i * 1px;
|
26
|
+
}
|
27
|
+
|
28
|
+
.margin-top-#{$i}px {
|
29
|
+
margin-top: $i * 1px;
|
30
|
+
}
|
31
|
+
|
32
|
+
.margin-right-#{$i}px {
|
33
|
+
margin-right: $i * 1px;
|
34
|
+
}
|
35
|
+
|
36
|
+
.margin-bottom-#{$i}px {
|
37
|
+
margin-bottom: $i * 1px;
|
38
|
+
}
|
39
|
+
|
40
|
+
.margin-left-#{$i}px {
|
41
|
+
margin-left: $i * 1px;
|
42
|
+
}
|
43
|
+
|
44
|
+
//position
|
45
|
+
.top-#{$i}px {
|
46
|
+
top: $i * 1px;
|
47
|
+
}
|
48
|
+
|
49
|
+
.right-#{$i}px {
|
50
|
+
right: $i * 1px;
|
51
|
+
}
|
52
|
+
|
53
|
+
.bottom-#{$i}px {
|
54
|
+
bottom: $i * 1px;
|
55
|
+
}
|
56
|
+
|
57
|
+
.left-#{$i}px {
|
58
|
+
left: $i * 1px;
|
59
|
+
}
|
60
|
+
|
61
|
+
//gap
|
62
|
+
.gap-#{$i}px {
|
63
|
+
gap: $i * 1px;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
|
68
|
+
.fill-space {
|
69
|
+
flex: 1 1 auto;
|
70
|
+
}
|
@@ -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 */
|
@@ -39,4 +31,8 @@ export declare const Tools: {
|
|
39
31
|
Distinct: <T>(array: T[], ...args: T[][]) => T[];
|
40
32
|
/** */
|
41
33
|
Except: <T>(array: T[], filter: any[], ...properties: string[]) => T[];
|
34
|
+
/** */
|
35
|
+
IsNumber: (value: any) => boolean;
|
36
|
+
/** */
|
37
|
+
Clipboard: (text: string, message?: string, title?: string) => void;
|
42
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';
|
@@ -1,36 +0,0 @@
|
|
1
|
-
export interface IColors {
|
2
|
-
fixedColors: IFixedColors;
|
3
|
-
actionColors: IActionColors;
|
4
|
-
appColors: IAppColors;
|
5
|
-
}
|
6
|
-
export interface IFixedColors {
|
7
|
-
blue: string;
|
8
|
-
gray: string;
|
9
|
-
green: string;
|
10
|
-
yellow: string;
|
11
|
-
red: string;
|
12
|
-
smoke: string;
|
13
|
-
black: string;
|
14
|
-
orange: string;
|
15
|
-
white: string;
|
16
|
-
purple: string;
|
17
|
-
}
|
18
|
-
export interface IActionColors {
|
19
|
-
primary: string;
|
20
|
-
secondary: string;
|
21
|
-
success: string;
|
22
|
-
warning: string;
|
23
|
-
danger: string;
|
24
|
-
navigation: string;
|
25
|
-
information: string;
|
26
|
-
}
|
27
|
-
export interface IAppColors {
|
28
|
-
breadcrumbs: string;
|
29
|
-
background: string;
|
30
|
-
containers: string;
|
31
|
-
sidenav: string;
|
32
|
-
sidenavText: string;
|
33
|
-
sidenavActive: string;
|
34
|
-
toolbar: string;
|
35
|
-
toolbarText: string;
|
36
|
-
}
|
package/styles/layout.scss
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
.flex-center {
|
2
|
-
display: flex !important;
|
3
|
-
align-items: center !important;
|
4
|
-
justify-content: center !important;
|
5
|
-
}
|
6
|
-
|
7
|
-
.flex-center-left {
|
8
|
-
display: flex !important;
|
9
|
-
align-items: center !important;
|
10
|
-
justify-content: flex-start !important;
|
11
|
-
}
|
12
|
-
|
13
|
-
.flex-center-right {
|
14
|
-
display: flex !important;
|
15
|
-
align-items: center !important;
|
16
|
-
justify-content: flex-end !important;
|
17
|
-
}
|
18
|
-
|
19
|
-
.fill-space {
|
20
|
-
flex: 1 1 auto;
|
21
|
-
}
|
22
|
-
|
23
|
-
|
24
|
-
@mixin FlexWrap() {
|
25
|
-
display: flex !important;
|
26
|
-
flex-wrap: wrap !important;
|
27
|
-
gap: 10px !important;
|
28
|
-
}
|
29
|
-
|
30
|
-
.flex-wrap-left {
|
31
|
-
@include FlexWrap();
|
32
|
-
align-items: flex-start !important;
|
33
|
-
}
|
34
|
-
|
35
|
-
.flex-wrap,
|
36
|
-
.flex-wrap-center {
|
37
|
-
@include FlexWrap();
|
38
|
-
align-items: center !important;
|
39
|
-
}
|
40
|
-
|
41
|
-
.flex-wrap-end {
|
42
|
-
@include FlexWrap();
|
43
|
-
align-items: flex-end !important;
|
44
|
-
}
|
45
|
-
|
46
|
-
.flex-wrap-item {
|
47
|
-
flex-grow: 1 !important;
|
48
|
-
flex-basis: 200 !important;
|
49
|
-
}
|
/package/interfaces/lib/coer-grid/{grid-input-textbox.interface.d.ts → grid-input.interface.d.ts}
RENAMED
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
|
File without changes
|
File without changes
|