@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kms-ngx-ui/presentational",
3
- "version": "14.1.4",
3
+ "version": "14.2.0",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "14.2.7",
6
6
  "@angular/common": "14.3.0",
@@ -1,220 +1,227 @@
1
1
  @mixin image-slider-theme() {
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;
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
- .default-image {
20
+ .swiper-bigImage {
21
+ @include backgroundContains();
22
+ background-color: $color-image-background;
16
23
 
17
- visibility: hidden;
18
- }
19
- }
24
+ width: $img-size;
25
+ height: auto;
26
+ padding-top: 75%; /* 4:3 Aspect Ratio */
27
+ position: relative;
20
28
 
21
- .swiper-bigImage{
22
- @include backgroundContains();
23
- background-color: $color-image-background;
29
+ @media (max-width: $responsive-breakpoint3) {
30
+ width: 100%;
31
+ }
32
+ }
24
33
 
25
- width: $img-size;
26
- height: auto;
27
- padding-top: 75%; /* 4:3 Aspect Ratio */
28
- position: relative;
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-holder{
36
- margin: 18px 0;
37
- width: 796px;
38
- @media (max-width: $responsive-breakpoint3) {
39
- width: 100%;
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
- .swiper-button{
43
- &-next, &-prev,
44
- &-next2, &-prev2{
45
- position: absolute;
46
- width: 10px;
47
- height: 20px;
48
- top: calc((100% - 140px) / 2);
49
- transform: translate(0, 50%);
50
- color: $color-secondary;
51
- &.swiper-button-disabled{
52
- display: none;
53
- }
54
- &:after{
55
- font-size: 20px;
56
- }
57
- }
58
-
59
- &-next,
60
- &-next2{
61
- right: 20px;
62
- }
63
- &-prev,
64
- &-prev2{
65
- left: 20px;
66
- }
67
-
68
- &-next, &-prev{
69
- top: auto;
70
- bottom: calc((140px)/ 2);
71
- }
72
-
73
- @media (max-width: $responsive-breakpoint2) {
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
- swiper{
102
- width: 560px;
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
- .swiper-wrapper {
113
- display: flex;
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
- .swiper-container {
203
- width: 100%;
204
- overflow-y: hidden;
205
- overflow-x: hidden;
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
- .cdk-drag-preview,
210
- .cdk-drag-dragging {
211
- &.swiper-slide {
212
- .default-image{
213
- visibility: hidden;
214
- }
215
- button {
216
- visibility: hidden;
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
+ }