@kms-ngx-ui/presentational 14.1.4 → 14.2.0
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/esm2020/lib/ui/image-slider/image-slider.component.mjs +3 -3
- package/fesm2015/kms-ngx-ui-presentational.mjs +2 -2
- package/fesm2015/kms-ngx-ui-presentational.mjs.map +1 -1
- package/fesm2020/kms-ngx-ui-presentational.mjs +2 -2
- package/fesm2020/kms-ngx-ui-presentational.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/ui/image-slider/image-slider.component.scss +209 -202
package/package.json
CHANGED
|
@@ -1,220 +1,227 @@
|
|
|
1
1
|
@mixin image-slider-theme() {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
// TODO
|
|
3
|
+
$responsive-breakpoint1: 996px;
|
|
4
|
+
$responsive-breakpoint-1024: 1024px;
|
|
5
|
+
$responsive-breakpoint2: 1200px;
|
|
6
|
+
$responsive-breakpoint3: 1400px;
|
|
7
|
+
$color-secondary: var(--primaryColor);
|
|
8
|
+
$color-disabled: var(--gray04);
|
|
9
|
+
$color-image-background: white;
|
|
10
|
+
$img-size: 796px;
|
|
11
|
+
|
|
12
|
+
.all-wrapper {
|
|
13
|
+
position: relative;
|
|
14
|
+
|
|
15
|
+
.default-image {
|
|
16
|
+
visibility: hidden;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
14
19
|
|
|
15
|
-
|
|
20
|
+
.swiper-bigImage {
|
|
21
|
+
@include backgroundContains();
|
|
22
|
+
background-color: $color-image-background;
|
|
16
23
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
24
|
+
width: $img-size;
|
|
25
|
+
height: auto;
|
|
26
|
+
padding-top: 75%; /* 4:3 Aspect Ratio */
|
|
27
|
+
position: relative;
|
|
20
28
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
29
|
+
@media (max-width: $responsive-breakpoint3) {
|
|
30
|
+
width: 100%;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
24
33
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
@media (max-width: $responsive-breakpoint3) {
|
|
31
|
-
width: 100%;
|
|
32
|
-
}
|
|
34
|
+
.swiper-holder {
|
|
35
|
+
margin: 18px 0;
|
|
36
|
+
width: 796px;
|
|
37
|
+
@media (max-width: $responsive-breakpoint3) {
|
|
38
|
+
width: 100%;
|
|
33
39
|
}
|
|
34
40
|
|
|
35
|
-
.swiper-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
.swiper-button {
|
|
42
|
+
&-next,
|
|
43
|
+
&-prev,
|
|
44
|
+
&-next2,
|
|
45
|
+
&-prev2 {
|
|
46
|
+
position: absolute;
|
|
47
|
+
width: 10px;
|
|
48
|
+
height: 20px;
|
|
49
|
+
top: calc((100% - 140px) / 2);
|
|
50
|
+
transform: translate(0, 50%);
|
|
51
|
+
color: $color-secondary;
|
|
52
|
+
&.swiper-button-disabled {
|
|
53
|
+
display: none;
|
|
40
54
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
&-next{
|
|
75
|
-
right: 20px;
|
|
76
|
-
}
|
|
77
|
-
&-prev{
|
|
78
|
-
left: 20px;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
@media (max-width: $responsive-breakpoint-1024) {
|
|
82
|
-
|
|
83
|
-
&-next{
|
|
84
|
-
right: 0;
|
|
85
|
-
}
|
|
86
|
-
&-prev{
|
|
87
|
-
left: 0;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
@media (max-width: $responsive-breakpoint1) {
|
|
91
|
-
&-next{
|
|
92
|
-
right: 10vw;
|
|
93
|
-
}
|
|
94
|
-
&-prev{
|
|
95
|
-
left: 10vw;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
55
|
+
&:after {
|
|
56
|
+
font-size: 20px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&-next,
|
|
61
|
+
&-prev {
|
|
62
|
+
color: $color-secondary !important;
|
|
63
|
+
background: transparent;
|
|
64
|
+
border: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&-next,
|
|
68
|
+
&-next2 {
|
|
69
|
+
right: 20px;
|
|
70
|
+
}
|
|
71
|
+
&-prev,
|
|
72
|
+
&-prev2 {
|
|
73
|
+
left: 20px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&-next,
|
|
77
|
+
&-prev {
|
|
78
|
+
top: auto;
|
|
79
|
+
bottom: calc((140px) / 2);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (max-width: $responsive-breakpoint2) {
|
|
83
|
+
&-next {
|
|
84
|
+
right: 20px;
|
|
85
|
+
}
|
|
86
|
+
&-prev {
|
|
87
|
+
left: 20px;
|
|
98
88
|
}
|
|
89
|
+
}
|
|
90
|
+
@media (max-width: $responsive-breakpoint-1024) {
|
|
91
|
+
&-next {
|
|
92
|
+
right: 0;
|
|
93
|
+
}
|
|
94
|
+
&-prev {
|
|
95
|
+
left: 0;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
@media (max-width: $responsive-breakpoint1) {
|
|
99
|
+
&-next {
|
|
100
|
+
right: 10vw;
|
|
101
|
+
}
|
|
102
|
+
&-prev {
|
|
103
|
+
left: 10vw;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
swiper {
|
|
110
|
+
width: 560px;
|
|
111
|
+
margin: 0 auto;
|
|
112
|
+
position: relative;
|
|
113
|
+
@media (max-width: $responsive-breakpoint-1024) {
|
|
114
|
+
width: 400px;
|
|
115
|
+
}
|
|
116
|
+
@media (max-width: $responsive-breakpoint1) {
|
|
117
|
+
width: 60vw;
|
|
99
118
|
}
|
|
100
119
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
margin: 0 auto;
|
|
104
|
-
position: relative;
|
|
105
|
-
@media (max-width: $responsive-breakpoint-1024) {
|
|
106
|
-
width: 400px;
|
|
107
|
-
}
|
|
108
|
-
@media (max-width: $responsive-breakpoint1) {
|
|
109
|
-
width: 60vw;
|
|
110
|
-
}
|
|
120
|
+
.swiper-wrapper {
|
|
121
|
+
display: flex;
|
|
111
122
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
.swiper-slide {
|
|
116
|
-
flex-basis: 0;
|
|
117
|
-
position: relative;
|
|
118
|
-
|
|
119
|
-
.img {
|
|
120
|
-
background-repeat: no-repeat;
|
|
121
|
-
background-size: contain;
|
|
122
|
-
background-position: center center;
|
|
123
|
-
|
|
124
|
-
width: 158px;
|
|
125
|
-
height: auto;
|
|
126
|
-
padding-top: 75%; /* 4:3 Aspect Ratio */
|
|
127
|
-
|
|
128
|
-
cursor: pointer;
|
|
129
|
-
border: 1px solid #dbdbda;
|
|
130
|
-
border-radius: var(--defaultBorderRadius);
|
|
131
|
-
@media (max-width: $responsive-breakpoint-1024) {
|
|
132
|
-
width: 100px;
|
|
133
|
-
}
|
|
134
|
-
@media (max-width: $responsive-breakpoint1) {
|
|
135
|
-
width: 20vw;
|
|
136
|
-
}
|
|
137
|
-
&.active{
|
|
138
|
-
border: 1px solid var(--grey08);
|
|
139
|
-
background-color: var(--gray06);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
button {
|
|
144
|
-
position: absolute;
|
|
145
|
-
width: 15px;
|
|
146
|
-
height: 15px;
|
|
147
|
-
right: 5px;
|
|
148
|
-
top: 5px;
|
|
149
|
-
background: none;
|
|
150
|
-
|
|
151
|
-
.icon{
|
|
152
|
-
width: 15px !important;
|
|
153
|
-
height: 15px !important;
|
|
154
|
-
|
|
155
|
-
svg {
|
|
156
|
-
width: 15px !important;
|
|
157
|
-
height: 15px !important;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
.cdk-drag-preview {
|
|
163
|
-
box-sizing: border-box;
|
|
164
|
-
border-radius: var(--defaultBorderRadius);
|
|
165
|
-
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
|
|
166
|
-
0 8px 10px 1px rgba(0, 0, 0, 0.14),
|
|
167
|
-
0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.cdk-drag-placeholder {
|
|
171
|
-
opacity: 0.3;
|
|
172
|
-
border: 1px solid var(--grey07);
|
|
173
|
-
background-color: var(--gray05);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.cdk-drag-animating {
|
|
177
|
-
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.swiper-slide:first-child:not(.cdk-drag-disabled)
|
|
181
|
-
{
|
|
182
|
-
.img {
|
|
183
|
-
border: solid var(--primaryColor);
|
|
184
|
-
border-radius: 8px;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.default-image {
|
|
188
|
-
visibility: visible !important;
|
|
189
|
-
text-align: center;
|
|
190
|
-
font: normal normal normal 14px/25px var(--fontName-text03);
|
|
191
|
-
letter-spacing: 0.22px;
|
|
192
|
-
color: var(--gray04);;
|
|
193
|
-
opacity: 1;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.swiper-wrapper.cdk-drop-list-dragging .swiper-slide:not(.cdk-drag-placeholder) {
|
|
198
|
-
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
123
|
+
.swiper-slide {
|
|
124
|
+
flex-basis: 0;
|
|
125
|
+
position: relative;
|
|
201
126
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
127
|
+
.img {
|
|
128
|
+
background-repeat: no-repeat;
|
|
129
|
+
background-size: contain;
|
|
130
|
+
background-position: center center;
|
|
131
|
+
|
|
132
|
+
width: 158px;
|
|
133
|
+
height: auto;
|
|
134
|
+
padding-top: 75%; /* 4:3 Aspect Ratio */
|
|
135
|
+
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
border: 1px solid #dbdbda;
|
|
138
|
+
border-radius: var(--defaultBorderRadius);
|
|
139
|
+
@media (max-width: $responsive-breakpoint-1024) {
|
|
140
|
+
width: 100px;
|
|
141
|
+
}
|
|
142
|
+
@media (max-width: $responsive-breakpoint1) {
|
|
143
|
+
width: 20vw;
|
|
144
|
+
}
|
|
145
|
+
&.active {
|
|
146
|
+
border: 1px solid var(--grey08);
|
|
147
|
+
background-color: var(--gray06);
|
|
148
|
+
}
|
|
207
149
|
}
|
|
208
150
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
151
|
+
button {
|
|
152
|
+
position: absolute;
|
|
153
|
+
width: 15px;
|
|
154
|
+
height: 15px;
|
|
155
|
+
right: 5px;
|
|
156
|
+
top: 5px;
|
|
157
|
+
background: none;
|
|
158
|
+
|
|
159
|
+
.icon {
|
|
160
|
+
width: 15px !important;
|
|
161
|
+
height: 15px !important;
|
|
162
|
+
|
|
163
|
+
svg {
|
|
164
|
+
width: 15px !important;
|
|
165
|
+
height: 15px !important;
|
|
217
166
|
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
.cdk-drag-preview {
|
|
171
|
+
box-sizing: border-box;
|
|
172
|
+
border-radius: var(--defaultBorderRadius);
|
|
173
|
+
box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
|
|
174
|
+
0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.cdk-drag-placeholder {
|
|
178
|
+
opacity: 0.3;
|
|
179
|
+
border: 1px solid var(--grey07);
|
|
180
|
+
background-color: var(--gray05);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.cdk-drag-animating {
|
|
184
|
+
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.swiper-slide:first-child:not(.cdk-drag-disabled) {
|
|
188
|
+
.img {
|
|
189
|
+
border: solid var(--primaryColor);
|
|
190
|
+
border-radius: 8px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.default-image {
|
|
194
|
+
visibility: visible !important;
|
|
195
|
+
text-align: center;
|
|
196
|
+
font: normal normal normal 14px/25px var(--fontName-text03);
|
|
197
|
+
letter-spacing: 0.22px;
|
|
198
|
+
color: var(--gray04);
|
|
199
|
+
opacity: 1;
|
|
218
200
|
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.swiper-wrapper.cdk-drop-list-dragging
|
|
204
|
+
.swiper-slide:not(.cdk-drag-placeholder) {
|
|
205
|
+
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.swiper-container {
|
|
210
|
+
width: 100%;
|
|
211
|
+
overflow-y: hidden;
|
|
212
|
+
overflow-x: hidden;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.cdk-drag-preview,
|
|
217
|
+
.cdk-drag-dragging {
|
|
218
|
+
&.swiper-slide {
|
|
219
|
+
.default-image {
|
|
220
|
+
visibility: hidden;
|
|
221
|
+
}
|
|
222
|
+
button {
|
|
223
|
+
visibility: hidden;
|
|
224
|
+
}
|
|
219
225
|
}
|
|
220
|
-
}
|
|
226
|
+
}
|
|
227
|
+
}
|