coer-elements 2.0.7 → 2.0.8
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-button/coer-button.component.d.ts +1 -1
- package/components/lib/coer-modal/coer-modal.component.d.ts +1 -1
- package/fesm2022/coer-elements-components.mjs +30 -30
- package/fesm2022/coer-elements-components.mjs.map +1 -1
- package/fesm2022/coer-elements-tools.mjs +38 -32
- package/fesm2022/coer-elements-tools.mjs.map +1 -1
- package/interfaces/lib/colors.interface.d.ts +3 -4
- package/package.json +5 -5
- package/styles/angular-material.scss +1 -0
- package/styles/coer-elements.css +162 -54
- package/styles/colors.scss +1 -1
- package/tools/lib/colors.class.d.ts +4 -30
@@ -3,7 +3,7 @@ export interface IColors {
|
|
3
3
|
actionColors: IActionColors;
|
4
4
|
appColors: IAppColors;
|
5
5
|
}
|
6
|
-
interface IFixedColors {
|
6
|
+
export interface IFixedColors {
|
7
7
|
blue: string;
|
8
8
|
gray: string;
|
9
9
|
green: string;
|
@@ -15,7 +15,7 @@ interface IFixedColors {
|
|
15
15
|
white: string;
|
16
16
|
purple: string;
|
17
17
|
}
|
18
|
-
interface IActionColors {
|
18
|
+
export interface IActionColors {
|
19
19
|
primary: string;
|
20
20
|
secondary: string;
|
21
21
|
success: string;
|
@@ -24,7 +24,7 @@ interface IActionColors {
|
|
24
24
|
navigation: string;
|
25
25
|
information: string;
|
26
26
|
}
|
27
|
-
interface IAppColors {
|
27
|
+
export interface IAppColors {
|
28
28
|
breadcrumbs: string;
|
29
29
|
background: string;
|
30
30
|
containers: string;
|
@@ -33,4 +33,3 @@ interface IAppColors {
|
|
33
33
|
toolbar: string;
|
34
34
|
toolbarText: string;
|
35
35
|
}
|
36
|
-
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "coer-elements",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.8",
|
4
4
|
"author": "Christian Omar Escamilla Rodríguez",
|
5
5
|
"keywords": [
|
6
6
|
"Components",
|
@@ -61,14 +61,14 @@
|
|
61
61
|
"types": "./components/index.d.ts",
|
62
62
|
"default": "./fesm2022/coer-elements-components.mjs"
|
63
63
|
},
|
64
|
-
"./extensions": {
|
65
|
-
"types": "./extensions/index.d.ts",
|
66
|
-
"default": "./fesm2022/coer-elements-extensions.mjs"
|
67
|
-
},
|
68
64
|
"./directives": {
|
69
65
|
"types": "./directives/index.d.ts",
|
70
66
|
"default": "./fesm2022/coer-elements-directives.mjs"
|
71
67
|
},
|
68
|
+
"./extensions": {
|
69
|
+
"types": "./extensions/index.d.ts",
|
70
|
+
"default": "./fesm2022/coer-elements-extensions.mjs"
|
71
|
+
},
|
72
72
|
"./guards": {
|
73
73
|
"types": "./guards/index.d.ts",
|
74
74
|
"default": "./fesm2022/coer-elements-guards.mjs"
|
@@ -13,6 +13,7 @@
|
|
13
13
|
@use "../components/lib/coer-sidenav/coer-sidenav.component.scss";
|
14
14
|
@use "../components/lib/coer-sidenav/coer-menu-option/coer-menu-option.component.scss";
|
15
15
|
@use "../components/lib/coer-sidenav/coer-tree-accordion/coer-tree-accordion.component.scss";
|
16
|
+
@use "../components/lib/coer-sidenav/coer-toolbar/coer-toolbar.component.scss";
|
16
17
|
@use "../components/lib/coer-switch/coer-switch.component.scss";
|
17
18
|
@use "../components/lib/coer-tab/coer-tab.component.scss";
|
18
19
|
@use "../components/lib/coer-textarea/coer-textarea.component.scss";
|
package/styles/coer-elements.css
CHANGED
@@ -31,7 +31,7 @@ mat-expansion-panel.coer-accordion div.mat-expansion-panel-body {
|
|
31
31
|
--orange:#fd6031;
|
32
32
|
--white: #ffffff;
|
33
33
|
--purple:#a615bc;
|
34
|
-
--primary-inner: var(--primary, var(--
|
34
|
+
--primary-inner: var(--primary, var(--orange));
|
35
35
|
--secondary-inner: var(--secondary, var(--gray));
|
36
36
|
--success-inner: var(--success, var(--green));
|
37
37
|
--warning-inner: var(--warning, var(--yellow));
|
@@ -1030,67 +1030,108 @@ div.coer-button .slot {
|
|
1030
1030
|
}
|
1031
1031
|
div.coer-button button.primary-filled {
|
1032
1032
|
background-color: var(--primary-inner) !important;
|
1033
|
-
color: var(--
|
1034
|
-
}
|
1035
|
-
div.coer-button button.secondary-filled {
|
1036
|
-
background-color: var(--secondary-inner) !important;
|
1037
|
-
color: var(--smoke) !important;
|
1038
|
-
}
|
1039
|
-
div.coer-button button.success-filled {
|
1040
|
-
background-color: var(--success-inner) !important;
|
1041
|
-
color: var(--smoke) !important;
|
1042
|
-
}
|
1043
|
-
div.coer-button button.warning-filled {
|
1044
|
-
background-color: var(--warning-inner) !important;
|
1045
|
-
color: var(--black) !important;
|
1046
|
-
}
|
1047
|
-
div.coer-button button.danger-filled {
|
1048
|
-
background-color: var(--danger-inner) !important;
|
1049
|
-
color: var(--smoke) !important;
|
1050
|
-
}
|
1051
|
-
div.coer-button button.navigation-filled {
|
1052
|
-
background-color: var(--navigation-inner) !important;
|
1053
|
-
color: var(--smoke) !important;
|
1054
|
-
}
|
1055
|
-
div.coer-button button.dark-filled {
|
1056
|
-
background-color: var(--black) !important;
|
1057
|
-
color: var(--smoke) !important;
|
1033
|
+
color: var(--white) !important;
|
1058
1034
|
}
|
1059
1035
|
div.coer-button button.primary-outline {
|
1060
1036
|
background-color: var(--white) !important;
|
1061
1037
|
border: 1px solid var(--primary-inner) !important;
|
1062
1038
|
color: var(--primary-inner) !important;
|
1063
1039
|
}
|
1040
|
+
div.coer-button button.primary-filled:not(.readonly):focus,
|
1041
|
+
div.coer-button button.primary-outline:not(.readonly):focus {
|
1042
|
+
box-shadow: 0px 0px 20px var(--primary-inner) !important;
|
1043
|
+
}
|
1044
|
+
div.coer-button button.secondary-filled {
|
1045
|
+
background-color: var(--secondary-inner) !important;
|
1046
|
+
color: var(--white) !important;
|
1047
|
+
}
|
1064
1048
|
div.coer-button button.secondary-outline {
|
1065
1049
|
background-color: var(--white) !important;
|
1066
1050
|
border: 1px solid var(--secondary-inner) !important;
|
1067
1051
|
color: var(--secondary-inner) !important;
|
1068
1052
|
}
|
1053
|
+
div.coer-button button.secondary-filled:not(.readonly):focus,
|
1054
|
+
div.coer-button button.secondary-outline:not(.readonly):focus {
|
1055
|
+
box-shadow: 0px 0px 20px var(--secondary-inner) !important;
|
1056
|
+
}
|
1057
|
+
div.coer-button button.success-filled {
|
1058
|
+
background-color: var(--success-inner) !important;
|
1059
|
+
color: var(--white) !important;
|
1060
|
+
}
|
1069
1061
|
div.coer-button button.success-outline {
|
1070
1062
|
background-color: var(--white) !important;
|
1071
1063
|
border: 1px solid var(--success-inner) !important;
|
1072
1064
|
color: var(--success-inner) !important;
|
1073
1065
|
}
|
1066
|
+
div.coer-button button.success-filled:not(.readonly):focus,
|
1067
|
+
div.coer-button button.success-outline:not(.readonly):focus {
|
1068
|
+
box-shadow: 0px 0px 20px var(--success-inner) !important;
|
1069
|
+
}
|
1070
|
+
div.coer-button button.warning-filled {
|
1071
|
+
background-color: var(--warning-inner) !important;
|
1072
|
+
color: var(--black) !important;
|
1073
|
+
}
|
1074
1074
|
div.coer-button button.warning-outline {
|
1075
1075
|
background-color: var(--white) !important;
|
1076
1076
|
border: 1px solid var(--warning-inner) !important;
|
1077
1077
|
color: var(--warning-inner) !important;
|
1078
1078
|
}
|
1079
|
+
div.coer-button button.warning-filled:not(.readonly):focus,
|
1080
|
+
div.coer-button button.warning-outline:not(.readonly):focus {
|
1081
|
+
box-shadow: 0px 0px 20px var(--warning-inner) !important;
|
1082
|
+
}
|
1083
|
+
div.coer-button button.danger-filled {
|
1084
|
+
background-color: var(--danger-inner) !important;
|
1085
|
+
color: var(--white) !important;
|
1086
|
+
}
|
1079
1087
|
div.coer-button button.danger-outline {
|
1080
1088
|
background-color: var(--white) !important;
|
1081
1089
|
border: 1px solid var(--danger-inner) !important;
|
1082
1090
|
color: var(--danger-inner) !important;
|
1083
1091
|
}
|
1092
|
+
div.coer-button button.danger-filled:not(.readonly):focus,
|
1093
|
+
div.coer-button button.danger-outline:not(.readonly):focus {
|
1094
|
+
box-shadow: 0px 0px 20px var(--danger-inner) !important;
|
1095
|
+
}
|
1096
|
+
div.coer-button button.navigation-filled {
|
1097
|
+
background-color: var(--navigation-inner) !important;
|
1098
|
+
color: var(--white) !important;
|
1099
|
+
}
|
1084
1100
|
div.coer-button button.navigation-outline {
|
1085
1101
|
background-color: var(--white) !important;
|
1086
1102
|
border: 1px solid var(--navigation-inner) !important;
|
1087
1103
|
color: var(--navigation-inner) !important;
|
1088
1104
|
}
|
1105
|
+
div.coer-button button.navigation-filled:not(.readonly):focus,
|
1106
|
+
div.coer-button button.navigation-outline:not(.readonly):focus {
|
1107
|
+
box-shadow: 0px 0px 20px var(--navigation-inner) !important;
|
1108
|
+
}
|
1109
|
+
div.coer-button button.information-filled {
|
1110
|
+
background-color: var(--information-inner) !important;
|
1111
|
+
color: var(--white) !important;
|
1112
|
+
}
|
1113
|
+
div.coer-button button.information-outline {
|
1114
|
+
background-color: var(--white) !important;
|
1115
|
+
border: 1px solid var(--information-inner) !important;
|
1116
|
+
color: var(--information-inner) !important;
|
1117
|
+
}
|
1118
|
+
div.coer-button button.information-filled:not(.readonly):focus,
|
1119
|
+
div.coer-button button.information-outline:not(.readonly):focus {
|
1120
|
+
box-shadow: 0px 0px 20px var(--information-inner) !important;
|
1121
|
+
}
|
1122
|
+
div.coer-button button.dark-filled {
|
1123
|
+
background-color: var(--black) !important;
|
1124
|
+
color: var(--white) !important;
|
1125
|
+
}
|
1089
1126
|
div.coer-button button.dark-outline {
|
1090
1127
|
background-color: var(--white) !important;
|
1091
1128
|
border: 1px solid var(--black) !important;
|
1092
1129
|
color: var(--black) !important;
|
1093
1130
|
}
|
1131
|
+
div.coer-button button.dark-filled:not(.readonly):focus,
|
1132
|
+
div.coer-button button.dark-outline:not(.readonly):focus {
|
1133
|
+
box-shadow: 0px 0px 20px var(--black) !important;
|
1134
|
+
}
|
1094
1135
|
div.coer-button button.primary-filled:not(.readonly):hover, div.coer-button button.primary-filled:not(.readonly):focus,
|
1095
1136
|
div.coer-button button.primary-outline:not(.readonly):hover, div.coer-button button.primary-outline:not(.readonly):focus,
|
1096
1137
|
div.coer-button button.secondary-filled:not(.readonly):hover, div.coer-button button.secondary-filled:not(.readonly):focus,
|
@@ -1107,34 +1148,6 @@ div.coer-button button.dark-filled:not(.readonly):hover, div.coer-button button.
|
|
1107
1148
|
div.coer-button button.dark-outline:not(.readonly):hover, div.coer-button button.dark-outline:not(.readonly):focus {
|
1108
1149
|
filter: brightness(1.1) !important;
|
1109
1150
|
}
|
1110
|
-
div.coer-button button.primary-filled:not(.readonly):focus,
|
1111
|
-
div.coer-button button.primary-outline:not(.readonly):focus {
|
1112
|
-
box-shadow: 0px 0px 20px var(--primary-inner) !important;
|
1113
|
-
}
|
1114
|
-
div.coer-button button.secondary-filled:not(.readonly):focus,
|
1115
|
-
div.coer-button button.secondary-outline:not(.readonly):focus {
|
1116
|
-
box-shadow: 0px 0px 20px var(--secondary-inner) !important;
|
1117
|
-
}
|
1118
|
-
div.coer-button button.success-filled:not(.readonly):focus,
|
1119
|
-
div.coer-button button.success-outline:not(.readonly):focus {
|
1120
|
-
box-shadow: 0px 0px 20px var(--success-inner) !important;
|
1121
|
-
}
|
1122
|
-
div.coer-button button.warning-filled:not(.readonly):focus,
|
1123
|
-
div.coer-button button.warning-outline:not(.readonly):focus {
|
1124
|
-
box-shadow: 0px 0px 20px var(--warning-inner) !important;
|
1125
|
-
}
|
1126
|
-
div.coer-button button.danger-filled:not(.readonly):focus,
|
1127
|
-
div.coer-button button.danger-outline:not(.readonly):focus {
|
1128
|
-
box-shadow: 0px 0px 20px var(--danger-inner) !important;
|
1129
|
-
}
|
1130
|
-
div.coer-button button.navigation-filled:not(.readonly):focus,
|
1131
|
-
div.coer-button button.navigation-outline:not(.readonly):focus {
|
1132
|
-
box-shadow: 0px 0px 20px var(--navigation-inner) !important;
|
1133
|
-
}
|
1134
|
-
div.coer-button button.dark-filled:not(.readonly):focus,
|
1135
|
-
div.coer-button button.dark-outline:not(.readonly):focus {
|
1136
|
-
box-shadow: 0px 0px 20px var(--black) !important;
|
1137
|
-
}
|
1138
1151
|
div.coer-button button.mdc-icon-button.mat-mdc-icon-button {
|
1139
1152
|
width: 40px !important;
|
1140
1153
|
height: 40px !important;
|
@@ -2204,6 +2217,101 @@ mat-accordion.coer-tree-accordion mat-expansion-panel mat-expansion-panel-header
|
|
2204
2217
|
background-color: color-mix(in srgb, var(--app-sidenav), white 20%) !important;
|
2205
2218
|
}
|
2206
2219
|
|
2220
|
+
div#coer-tool-bar {
|
2221
|
+
z-index: 1;
|
2222
|
+
}
|
2223
|
+
div#coer-tool-bar mat-toolbar {
|
2224
|
+
height: 45px !important;
|
2225
|
+
position: relative !important;
|
2226
|
+
z-index: 10 !important;
|
2227
|
+
padding: 0px !important;
|
2228
|
+
background-color: var(--toolbar-inner) !important;
|
2229
|
+
color: var(--toolbar-text-inner) !important;
|
2230
|
+
}
|
2231
|
+
div#coer-tool-bar mat-toolbar span.app-name {
|
2232
|
+
height: 40px !important;
|
2233
|
+
display: contents !important;
|
2234
|
+
max-width: 45%;
|
2235
|
+
}
|
2236
|
+
div#coer-tool-bar mat-toolbar div.logo-image-container {
|
2237
|
+
height: 45px !important;
|
2238
|
+
min-width: 100px;
|
2239
|
+
}
|
2240
|
+
div#coer-tool-bar mat-toolbar div.logo-image-container div.logo-image {
|
2241
|
+
background-size: contain !important;
|
2242
|
+
background-repeat: no-repeat !important;
|
2243
|
+
background-position-y: bottom;
|
2244
|
+
width: 100% !important;
|
2245
|
+
height: 100% !important;
|
2246
|
+
cursor: pointer !important;
|
2247
|
+
}
|
2248
|
+
div#coer-tool-bar mat-toolbar div.button-container {
|
2249
|
+
display: flex;
|
2250
|
+
align-items: center;
|
2251
|
+
justify-content: center;
|
2252
|
+
width: 40px;
|
2253
|
+
}
|
2254
|
+
div#coer-tool-bar mat-toolbar div.user-container {
|
2255
|
+
max-width: 45%;
|
2256
|
+
display: flex;
|
2257
|
+
align-items: center;
|
2258
|
+
font-size: small !important;
|
2259
|
+
font-weight: bold;
|
2260
|
+
height: 0px !important;
|
2261
|
+
max-height: 0px !important;
|
2262
|
+
padding-left: 2px !important;
|
2263
|
+
margin-right: 10px !important;
|
2264
|
+
border-radius: 8px !important;
|
2265
|
+
cursor: pointer !important;
|
2266
|
+
}
|
2267
|
+
div#coer-tool-bar mat-toolbar div.user-container div.user-image {
|
2268
|
+
min-width: 35px !important;
|
2269
|
+
max-width: 35px !important;
|
2270
|
+
min-height: 35px !important;
|
2271
|
+
max-height: 35px !important;
|
2272
|
+
border-radius: 25px;
|
2273
|
+
background: transparent;
|
2274
|
+
background-size: cover;
|
2275
|
+
background-repeat: no-repeat;
|
2276
|
+
background-position: top;
|
2277
|
+
}
|
2278
|
+
div#coer-tool-bar mat-toolbar div.user-container div.user-identity {
|
2279
|
+
height: 40px !important;
|
2280
|
+
max-height: 40px !important;
|
2281
|
+
min-width: 70px !important;
|
2282
|
+
overflow: hidden !important;
|
2283
|
+
display: flex !important;
|
2284
|
+
flex-flow: column !important;
|
2285
|
+
justify-content: center !important;
|
2286
|
+
}
|
2287
|
+
div#coer-tool-bar mat-toolbar div.user-container div.user-identity p {
|
2288
|
+
line-height: normal !important;
|
2289
|
+
overflow: hidden;
|
2290
|
+
text-overflow: ellipsis;
|
2291
|
+
}
|
2292
|
+
div#coer-tool-bar mat-toolbar div.user-container div.user-identity p::selection {
|
2293
|
+
background-color: transparent !important;
|
2294
|
+
}
|
2295
|
+
div#coer-tool-bar mat-toolbar div.user-container coer-dropdown {
|
2296
|
+
position: absolute;
|
2297
|
+
transform: translate(-3px, 0px);
|
2298
|
+
}
|
2299
|
+
div#coer-tool-bar mat-toolbar div.user-container coer-dropdown ul {
|
2300
|
+
right: 0px !important;
|
2301
|
+
}
|
2302
|
+
div#coer-tool-bar mat-toolbar div.user-container:hover {
|
2303
|
+
transform: scale(1.03);
|
2304
|
+
box-shadow: 0px 0px 15px -5px black !important;
|
2305
|
+
}
|
2306
|
+
div#coer-tool-bar div.shadow {
|
2307
|
+
box-shadow: 1px -10px 20px black !important;
|
2308
|
+
width: 100vw;
|
2309
|
+
height: 45px;
|
2310
|
+
position: absolute;
|
2311
|
+
top: 0;
|
2312
|
+
z-index: 8;
|
2313
|
+
}
|
2314
|
+
|
2207
2315
|
div.coer-switch {
|
2208
2316
|
height: 40px;
|
2209
2317
|
display: flex !important;
|
package/styles/colors.scss
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
--purple:#a615bc;
|
13
13
|
|
14
14
|
//Action Colors
|
15
|
-
--primary-inner: var(--primary, var(--
|
15
|
+
--primary-inner: var(--primary, var(--orange));
|
16
16
|
--secondary-inner: var(--secondary, var(--gray));
|
17
17
|
--success-inner: var(--success, var(--green));
|
18
18
|
--warning-inner: var(--warning, var(--yellow));
|
@@ -1,34 +1,8 @@
|
|
1
|
+
import { IActionColors, IAppColors, IFixedColors } from "coer-elements/interfaces";
|
1
2
|
export declare class Colors {
|
2
|
-
static
|
3
|
-
|
4
|
-
|
5
|
-
green: string;
|
6
|
-
yellow: string;
|
7
|
-
red: string;
|
8
|
-
smoke: string;
|
9
|
-
black: string;
|
10
|
-
orange: string;
|
11
|
-
white: string;
|
12
|
-
purple: string;
|
13
|
-
};
|
14
|
-
static readonly actionColors: {
|
15
|
-
primary: string;
|
16
|
-
secondary: string;
|
17
|
-
success: string;
|
18
|
-
warning: string;
|
19
|
-
danger: string;
|
20
|
-
navigation: string;
|
21
|
-
information: string;
|
22
|
-
};
|
23
|
-
static readonly appColors: {
|
24
|
-
appBreadcrumbs: string;
|
25
|
-
appBackground: string;
|
26
|
-
appContainers: string;
|
27
|
-
appSidenav: string;
|
28
|
-
appSidenavText: string;
|
29
|
-
appToolbar: string;
|
30
|
-
appToolbarText: string;
|
31
|
-
};
|
3
|
+
static get fixedColors(): IFixedColors;
|
4
|
+
static get actionColors(): IActionColors;
|
5
|
+
static get appColors(): IAppColors;
|
32
6
|
static ToHexadecimal(r: number, g: number, b: number, a?: number): string;
|
33
7
|
/** Returns a random color in hexadecimal
|
34
8
|
public static GetRandomColorHex = (): string => "#xxxxxx".replace(/x/g, () => (Math.random() * 16 | 0).toString(16)); */
|