@annalib/anna-core 2.7.1 → 2.7.4
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/package.json +1 -1
- package/src/lib/anna-assets/images/bg-heads.png +0 -0
- package/src/lib/anna-common-scss/_animate.scss +27 -0
- package/src/lib/anna-common-scss/_dashboard-partials.scss +104 -0
- package/src/lib/anna-common-scss/_font.scss +10 -0
- package/src/lib/anna-common-scss/_legend.scss +11 -0
- package/src/lib/anna-common-scss/_modal.scss +37 -0
- package/src/lib/anna-common-scss/_ng-select.scss +176 -0
- package/src/lib/anna-common-scss/_toggle.scss +84 -0
package/package.json
CHANGED
|
Binary file
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// scss-lint:disable all
|
|
2
|
+
.animated {
|
|
3
|
+
animation-duration: 1s;
|
|
4
|
+
// animation-fill-mode: both;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.animated.infinite {
|
|
8
|
+
animation-iteration-count: infinite;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.animated.hinge {
|
|
12
|
+
animation-duration: 2s;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@keyframes fadeIn {
|
|
16
|
+
from {
|
|
17
|
+
opacity: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
to {
|
|
21
|
+
opacity: 1;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.fadeIn {
|
|
26
|
+
animation-name: fadeIn;
|
|
27
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
.dashboard-heading {
|
|
2
|
+
color: #268bff;
|
|
3
|
+
font-size: 1rem;
|
|
4
|
+
font-weight: 500;
|
|
5
|
+
letter-spacing: 2.5px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@mixin user-card($bgColor) {
|
|
9
|
+
background-color: $bgColor;
|
|
10
|
+
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24), 0 0 2px 0 rgba(0, 0, 0, 0.12);
|
|
11
|
+
cursor: default;
|
|
12
|
+
transition: 150ms;
|
|
13
|
+
position: relative;
|
|
14
|
+
border-radius:0.25rem;
|
|
15
|
+
padding: 1.5rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//orderCard issue 2
|
|
19
|
+
// .user-card:hover {
|
|
20
|
+
// box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.3), 0 2px 2px 0 rgba(0, 0, 0, 0.2);
|
|
21
|
+
// top: -2px;
|
|
22
|
+
// }
|
|
23
|
+
|
|
24
|
+
@mixin view_link {
|
|
25
|
+
float: right;
|
|
26
|
+
color: #268bff;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@mixin info-box {
|
|
31
|
+
background-color: #c7e1ff;
|
|
32
|
+
border-radius: $fs-4;
|
|
33
|
+
padding: 0.1875rem 0.5rem 0 0.5rem;
|
|
34
|
+
@include fonts(Roboto, 0.9375rem, normal, 500, normal, 1.25, 0.088rem);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.noData {
|
|
38
|
+
background-color: lightgrey;
|
|
39
|
+
padding: 0.5em;
|
|
40
|
+
width: 40%;
|
|
41
|
+
text-align: center;
|
|
42
|
+
margin: 12.5em auto;
|
|
43
|
+
border-radius: 0.2em;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@mixin svg-parent-card($cardHeight, $cardBgColor) {
|
|
47
|
+
max-width: 100%;
|
|
48
|
+
height: $cardHeight;
|
|
49
|
+
width: 100%;
|
|
50
|
+
background-color: $cardBgColor;
|
|
51
|
+
border: none;
|
|
52
|
+
outline: none;
|
|
53
|
+
padding-bottom: 0;
|
|
54
|
+
margin-bottom: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@mixin svg-content-placeholder($backgroundGradient, $clipPath) {
|
|
58
|
+
animation: linear 1s placeHolderShimmer infinite;
|
|
59
|
+
background: $backgroundGradient;
|
|
60
|
+
background-size: 800px 104px;
|
|
61
|
+
|
|
62
|
+
width: 100%;
|
|
63
|
+
height: 100%;
|
|
64
|
+
-webkit-clip-path: url($clipPath);
|
|
65
|
+
clip-path: url($clipPath);
|
|
66
|
+
// Safari render fix
|
|
67
|
+
transform: translateZ(0);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@keyframes placeHolderShimmer {
|
|
71
|
+
0% {
|
|
72
|
+
background-position: -468px 0;
|
|
73
|
+
}
|
|
74
|
+
100% {
|
|
75
|
+
background-position: 468px 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:host::ng-deep.btn-secondary {
|
|
80
|
+
box-shadow: none;
|
|
81
|
+
border: 1px solid lightgray;
|
|
82
|
+
}
|
|
83
|
+
:host ::ng-deep .ui-select-match-text {
|
|
84
|
+
padding-top: 0;
|
|
85
|
+
display: inline-block;
|
|
86
|
+
width: 100%;
|
|
87
|
+
white-space: nowrap;
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
text-overflow: ellipsis;
|
|
90
|
+
}
|
|
91
|
+
@mixin material-icons-and-expand-icon {
|
|
92
|
+
color: #268bff;
|
|
93
|
+
position: absolute;
|
|
94
|
+
float: right;
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
pointer-events: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@mixin dropdownContainer {
|
|
100
|
+
position: relative;
|
|
101
|
+
margin:0 0.5625rem 0 0;
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
@mixin fonts($fontFamily, $fontSize, $fontStretch, $fontWeight, $fontStyle, $lineHeight, $letterSpacing) {
|
|
3
|
+
font-family: $fontFamily;
|
|
4
|
+
font-size: $fontSize;
|
|
5
|
+
font-weight: $fontWeight;
|
|
6
|
+
font-stretch: $fontStretch;
|
|
7
|
+
font-style: $fontStyle;
|
|
8
|
+
line-height: $lineHeight;
|
|
9
|
+
letter-spacing: $letterSpacing;
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.modal-header {
|
|
2
|
+
height: 72px;
|
|
3
|
+
background-color: #3f4961;
|
|
4
|
+
background-position: center center;
|
|
5
|
+
background-size: cover;
|
|
6
|
+
font-weight: 300;
|
|
7
|
+
border-top-left-radius: 5px;
|
|
8
|
+
border-top-right-radius: 5px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.modal-title {
|
|
12
|
+
color: #ffffff;
|
|
13
|
+
font-size: 18px;
|
|
14
|
+
font-weight: 400 !important;
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 40px;
|
|
17
|
+
text-align: left;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.modal-dialog {
|
|
21
|
+
font-family: Roboto !important;
|
|
22
|
+
top: 100px !important;
|
|
23
|
+
margin: 1.75rem auto;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.modal-content {
|
|
27
|
+
border-radius: 7px;
|
|
28
|
+
width: fit-content;
|
|
29
|
+
min-width: 100%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.modal-body {
|
|
33
|
+
padding: 24px;
|
|
34
|
+
}
|
|
35
|
+
.fade {
|
|
36
|
+
transition: none !important;
|
|
37
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
/***COMMON NG-SELECT STYLING FOR ALL SIZES **/
|
|
2
|
+
::ng-deep .ng-select {
|
|
3
|
+
& .ng-arrow,
|
|
4
|
+
& .ng-arrow:hover {
|
|
5
|
+
border-color: black transparent transparent !important;
|
|
6
|
+
opacity: 1 !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&.ng-select-opened .ng-arrow,
|
|
10
|
+
&.ng-select-opened .ng-arrow:hover {
|
|
11
|
+
border-color: transparent transparent black !important;
|
|
12
|
+
opacity: 1 !important;
|
|
13
|
+
padding-top: 2px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
& .ng-select-container {
|
|
17
|
+
border: 1px solid #b7b7b7 !important;
|
|
18
|
+
border-radius: 2px;
|
|
19
|
+
&:hover {
|
|
20
|
+
box-shadow: none;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.custom-error-ng-select .ng-select-container {
|
|
25
|
+
border: 1px solid #f86c6b;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.ng-select-disabled > .ng-select-container {
|
|
29
|
+
background-color: #bdbdbd;
|
|
30
|
+
opacity: 0.5;
|
|
31
|
+
cursor: not-allowed;
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
& .ng-dropdown-panel .ng-dropdown-panel-items .ng-option {
|
|
36
|
+
& .ng-option-label {
|
|
37
|
+
font-weight: normal !important;
|
|
38
|
+
}
|
|
39
|
+
&:hover {
|
|
40
|
+
background-color: #ebebeb;
|
|
41
|
+
color: #4a4a4a;
|
|
42
|
+
}
|
|
43
|
+
&:not(:hover){
|
|
44
|
+
background-color: #fff;
|
|
45
|
+
}
|
|
46
|
+
&.ng-option-selected {
|
|
47
|
+
background-color: #268bff;
|
|
48
|
+
color: #fff;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.ng-select-focused:not(.ng-select-opened) > .ng-select-container {
|
|
53
|
+
border-color: lightgray;
|
|
54
|
+
box-shadow: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/*****EXTRA SMALL NG STYLE******/
|
|
60
|
+
::ng-deep .ng-select.custom-xs-ng-select {
|
|
61
|
+
& .ng-select-container {
|
|
62
|
+
min-height: 22px !important;
|
|
63
|
+
font-size: 12px !important;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.ng-select-single .ng-select-container {
|
|
67
|
+
height: 22px !important;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
& .ng-dropdown-panel .scroll-host {
|
|
71
|
+
font-size: 12px !important;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
& .ng-arrow-wrapper {
|
|
75
|
+
padding-top: 2px !important;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&.ng-select-opened,
|
|
79
|
+
&.ng-select-bottom,
|
|
80
|
+
&.ng-select-top {
|
|
81
|
+
& .ng-select-container {
|
|
82
|
+
padding-top: 6px !important;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
&.non-searchable {
|
|
86
|
+
&.ng-select-opened,
|
|
87
|
+
&.ng-select-bottom,
|
|
88
|
+
&.ng-select-top {
|
|
89
|
+
& .ng-select-container {
|
|
90
|
+
padding-top: 4px !important;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
& .ng-dropdown-panel .ng-dropdown-panel-items .ng-option {
|
|
95
|
+
padding: 3px 10px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**SMALL NG SELECT STYLE***/
|
|
100
|
+
::ng-deep .ng-select.custom-sm-ng-select {
|
|
101
|
+
& .ng-select-container {
|
|
102
|
+
min-height: 1.5625rem !important;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&.ng-select-single .ng-select-container {
|
|
106
|
+
height: 1.5625rem !important;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&.ng-select-opened,
|
|
110
|
+
&.ng-select-bottom,
|
|
111
|
+
&.ng-select-top {
|
|
112
|
+
& .ng-select-container {
|
|
113
|
+
padding-top: 8px !important;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
&.non-searchable {
|
|
117
|
+
&.ng-select-opened,
|
|
118
|
+
&.ng-select-bottom,
|
|
119
|
+
&.ng-select-top {
|
|
120
|
+
& .ng-select-container {
|
|
121
|
+
padding-top: 8px !important;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
& .ng-dropdown-panel .ng-dropdown-panel-items .ng-option {
|
|
126
|
+
padding: 4px 10px;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**MEDIUM NG SELECT STYLE***/
|
|
131
|
+
::ng-deep .ng-select.custom-md-ng-select {
|
|
132
|
+
& .ng-select-container {
|
|
133
|
+
min-height: 30px !important;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&.ng-select-single .ng-select-container {
|
|
137
|
+
height: 1.875rem !important;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**MEDIUM NG SELECT STYLE -2 !!! with 32px height !!!***/
|
|
142
|
+
::ng-deep .ng-select.custom-md-32-ng-select {
|
|
143
|
+
& .ng-select-container {
|
|
144
|
+
min-height: 32px !important;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&.ng-select-single .ng-select-container {
|
|
148
|
+
height: 32px !important;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**LARGE NG SELECT STYLE***/
|
|
153
|
+
::ng-deep .ng-select.custom-lg-ng-select {
|
|
154
|
+
& .ng-select-container {
|
|
155
|
+
min-height: 2.8125rem !important;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&.ng-select-single .ng-select-container {
|
|
159
|
+
height: 2.8125rem !important;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
:host::ng-deep .custom-arrow.ng-select.ng-select-opened>.ng-select-container{
|
|
165
|
+
.ng-arrow{
|
|
166
|
+
border-width: 0 4px 4px;
|
|
167
|
+
position: relative;
|
|
168
|
+
bottom: 1px;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
:host::ng-deep .custom-arrow.ng-select .ng-arrow-wrapper .ng-arrow{
|
|
173
|
+
border-width: 4px 4px 2.5px;
|
|
174
|
+
position: relative;
|
|
175
|
+
bottom: 1px;
|
|
176
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
|
|
2
|
+
.switchBtn {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: inline-block;
|
|
5
|
+
width: 50px;
|
|
6
|
+
height: 20px;
|
|
7
|
+
font-size: 12px;
|
|
8
|
+
top: 3px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.switchBtn input {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.slide {
|
|
16
|
+
position: absolute;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
top: 0;
|
|
19
|
+
left: 0;
|
|
20
|
+
right: 0;
|
|
21
|
+
bottom: 0;
|
|
22
|
+
background-color: #ffffff;
|
|
23
|
+
-webkit-transition: .4s;
|
|
24
|
+
transition: .4s;
|
|
25
|
+
padding: 4px 4px 4px 22px;
|
|
26
|
+
line-height: 1;
|
|
27
|
+
border: solid 1px rgba(0, 0, 0, 0.1);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.slide:before {
|
|
31
|
+
position: absolute;
|
|
32
|
+
content: "";
|
|
33
|
+
width: 18px;
|
|
34
|
+
height: 18px;
|
|
35
|
+
background-color: #ffffff;
|
|
36
|
+
box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.05), 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 3px 1px 0 rgba(0, 0, 0, 0.05);
|
|
37
|
+
border: solid 0.5px rgba(0, 0, 0, 0.1);
|
|
38
|
+
left: 0px;
|
|
39
|
+
bottom: 0px;
|
|
40
|
+
background-color: white;
|
|
41
|
+
-webkit-transition: .4s;
|
|
42
|
+
transition: .4s;
|
|
43
|
+
color: #999999;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
input:checked + .slide {
|
|
47
|
+
background-color: #44db5e;
|
|
48
|
+
padding-left: 7px;
|
|
49
|
+
color: #fff;
|
|
50
|
+
line-height: 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
input:focus + .slide {
|
|
54
|
+
box-shadow: 0 0 1px #01aeed;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
input:checked + .slide:before {
|
|
58
|
+
-webkit-transform: translateX(20px);
|
|
59
|
+
-ms-transform: translateX(20px);
|
|
60
|
+
transform: translateX(20px);
|
|
61
|
+
left: 10px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.slide.round {
|
|
65
|
+
border-radius: 15.5px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.slide.round:before {
|
|
69
|
+
border-radius: 50%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.has-error {
|
|
73
|
+
transition: all linear 0.5s;
|
|
74
|
+
color: red !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.data-label {
|
|
78
|
+
font-size: 11px;
|
|
79
|
+
color: #666666;
|
|
80
|
+
letter-spacing: 0.2px;
|
|
81
|
+
text-overflow: ellipsis;
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
white-space: nowrap;
|
|
84
|
+
}
|