@annalib/anna-core 2.7.1 → 2.7.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@annalib/anna-core",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "peerDependencies": {
5
5
  "@angular-slider/ngx-slider": "2.0.3",
6
6
  "@angular/common": "^13.2.0",
@@ -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,11 @@
1
+ $dot-width: 0.625rem;
2
+ $dot-height: 0.625rem;
3
+ $dot-radius: 50%;
4
+
5
+ @mixin dot($color) {
6
+ display: inline-block;
7
+ border-radius: $dot-radius;
8
+ height: $dot-height;
9
+ width: $dot-width;
10
+ background-color: $color;
11
+ }
@@ -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
+ }