wickes-css2 2.106.0-develop.1 → 2.106.0-develop.10
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/Readme.md +2 -3
- package/build/css/category-main.css +1 -1
- package/build/css/components/checkout-payment-details-v2.css +1 -1
- package/build/css/components/global-search.css +1 -1
- package/build/css/homepage-main.css +1 -1
- package/build/css/kitchen-plp-main.css +1 -1
- package/build/css/main.css +1 -1
- package/build/css/my-account-main-v2.css +1 -1
- package/build/css/my-account-main.css +1 -1
- package/build/css/pages/page_checkout_delivery-new.css +1 -1
- package/build/css/pages/page_products-list-combined.css +1 -1
- package/build/css/pdp-main-before-combine.css +1 -1
- package/build/css/pdp-main-critical.css +1 -1
- package/build/css/pdp-main-non-critical.css +1 -1
- package/build/css/pdp-main.css +1 -1
- package/build/css/plp-main.css +1 -1
- package/build/css/store-locator-main.css +1 -1
- package/build/img/billie-pay-later.svg +13 -0
- package/build/img/giftcard.svg +28 -0
- package/build/js/account-members.min.js +1 -1
- package/build/js/add-project-list-id.min.js +1 -1
- package/build/js/address-book.min.js +1 -1
- package/build/js/basket.min.js +2 -2
- package/build/js/bundle.min.js +1 -1
- package/build/js/change-password.min.js +1 -1
- package/build/js/checkout.min.js +2 -2
- package/build/js/emulation.min.js +2175 -1857
- package/build/js/general.bundle.min.js +1 -1
- package/build/js/gift-cards.min.js +1 -0
- package/build/js/merged-checkout.min.js +2 -2
- package/build/js/mini-basket-slider.min.js +1 -1
- package/build/js/page/basket/basket-update-cart-action.js +4 -1
- package/build/js/page/basket/klarna.js +13 -3
- package/build/js/page/basket-v2.js +11 -7
- package/build/js/page/components/billie-modal.js +20 -20
- package/build/js/page/components/gift-cards.js +927 -0
- package/build/js/page/components/order-summary.js +57 -28
- package/build/js/page/components/toggle-password-visibility.js +22 -0
- package/build/js/page/components/voucher.js +52 -47
- package/build/js/page/count-stepper/pdp-count-stepper.js +29 -0
- package/build/js/page/filters/plp-filters-mobile.js +4 -7
- package/build/js/page/filters/plp-filters-utils.js +9 -0
- package/build/js/page/filters/plp-filters.js +13 -5
- package/build/js/page/kitchen/colour-swatches.js +152 -152
- package/build/js/page/quick-filter.js +106 -103
- package/build/js/page/share-project-list.js +151 -33
- package/build/js/page/utils/create-count-stepper.js +141 -0
- package/build/js/page/utils/gift-cards-utils.js +242 -0
- package/build/js/page/utils/input-handling.js +104 -0
- package/build/js/page/utils/show-hide-input.js +31 -0
- package/build/js/page/utils/validation.js +146 -96
- package/build/js/pdp-count-stepper.min.js +1 -0
- package/build/js/pdp.bundle.min.js +1 -1
- package/build/js/personal-details.min.js +1 -1
- package/build/js/plp-filters.min.js +2 -2
- package/build/js/plp.bundle.min.js +1 -1
- package/build/js/project-list.min.js +57 -14
- package/build/js/quiz.min.js +1 -1
- package/build/js/share-project-list.min.js +1 -1
- package/build/js/track-my-order.min.js +1 -1
- package/package.json +3 -3
- package/src/components/card_product_v2.hbs +6 -1
- package/src/components/checkout-payment-details-v2.hbs +4 -3
- package/src/components/gift-cards-hint.hbs +9 -0
- package/src/components/gift-cards.hbs +90 -0
- package/src/components/giftcard-chip.hbs +23 -0
- package/src/components/giftcard-summary.hbs +6 -0
- package/src/components/home-movers/form.hbs +1 -1
- package/src/components/price-block-v2.hbs +17 -16
- package/src/data/data_search-results_v2.json +2 -1
- package/src/elements/count-button.hbs +10 -0
- package/src/elements/form-row.hbs +1 -1
- package/src/elements/input.hbs +31 -2
- package/src/img/billie-pay-later.svg +13 -0
- package/src/img/giftcard.svg +28 -0
- package/src/js/components/general/notification.js +60 -40
- package/src/js/components/general/switchVat.js +151 -154
- package/src/js/components/pdp-billie-modal-scroll-reset.js +46 -42
- package/src/js/emulation/basket-data.js +2126 -2038
- package/src/js/emulation/billie-modal.js +6 -6
- package/src/js/emulation/checkLocalEnv.js +6 -5
- package/src/js/emulation/checkout-data.js +33 -0
- package/src/js/emulation/checkout-payment-details.js +23 -21
- package/src/js/emulation/forms.js +9 -2
- package/src/js/emulation/gift-cards.js +216 -0
- package/src/js/emulation/mock.js +98 -21
- package/src/js/emulation/plp-load-more.js +19 -13
- package/src/js/emulation/validity-emulation.js +33 -0
- package/src/js/page/basket/basket-update-cart-action.js +4 -1
- package/src/js/page/basket/klarna.js +13 -3
- package/src/js/page/basket-v2.js +11 -7
- package/src/js/page/components/billie-modal.js +20 -20
- package/src/js/page/components/gift-cards.js +927 -0
- package/src/js/page/components/order-summary.js +57 -28
- package/src/js/page/components/toggle-password-visibility.js +22 -0
- package/src/js/page/components/voucher.js +52 -47
- package/src/js/page/count-stepper/pdp-count-stepper.js +29 -0
- package/src/js/page/filters/plp-filters-mobile.js +4 -7
- package/src/js/page/filters/plp-filters-utils.js +9 -0
- package/src/js/page/filters/plp-filters.js +13 -5
- package/src/js/page/kitchen/colour-swatches.js +152 -152
- package/src/js/page/quick-filter.js +106 -103
- package/src/js/page/share-project-list.js +151 -33
- package/src/js/page/utils/create-count-stepper.js +141 -0
- package/src/js/page/utils/gift-cards-utils.js +242 -0
- package/src/js/page/utils/input-handling.js +104 -0
- package/src/js/page/utils/show-hide-input.js +31 -0
- package/src/js/page/utils/validation.js +146 -96
- package/src/layouts/checkout.hbs +1 -5
- package/src/page_my-account_change-password.html +1 -0
- package/src/page_payment-details-with-gift-card.html +8 -5
- package/src/page_plp-with-paint.html +1 -1
- package/src/page_plp_v2-energy-efficiency.html +1 -1
- package/src/page_plp_v2-favourite-products.html +1 -1
- package/src/page_plp_v2-vat.html +31 -26
- package/src/page_plp_v2.html +1 -1
- package/src/page_product-details-cnc-success-notification-vat.html +3 -2
- package/src/page_product_search-vat.html +1 -1
- package/src/page_product_search.html +1 -1
- package/src/page_search-results.html +1 -1
- package/src/partials/scripts.hbs +4 -0
- package/src/scss/components/_custom-slider.scss +7 -6
- package/src/scss/components/_gift-cards.scss +359 -0
- package/src/scss/components/_input-counter.scss +65 -0
- package/src/scss/components/_quick-filter.scss +32 -10
- package/src/scss/components/checkout-payment-details-v2.scss +6 -2
- package/src/scss/components/kitchen/_price-tooltip.scss +3 -2
- package/src/scss/components/kitchen/_price.scss +2 -2
- package/src/scss/helpers/_variables.scss +7 -16
- package/src/scss/pages/page_checkout_delivery-new.scss +30 -6
- package/src/scss/pages/page_products-list-combined.scss +34 -2
- package/src/scss/pdp-main.scss +1 -0
- package/build/js/page/plp-img-v2.js +0 -25
- package/src/components/.DS_Store +0 -0
- package/src/img/.DS_Store +0 -0
- package/src/img/placeholders/.DS_Store +0 -0
- package/src/js/.DS_Store +0 -0
- package/src/js/components/share-project-list.js +0 -56
- package/src/js/components/toggle-password-visibility.js +0 -58
- package/src/js/page/.DS_Store +0 -0
- package/src/js/page/plp-img-v2.js +0 -25
- package/src/scss/.DS_Store +0 -0
- package/src/scss/pages/.DS_Store +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
$blue-dark: #0a3055; // Base brand color for background
|
|
5
5
|
$blue: #0277bd; // CTAs
|
|
6
6
|
$green: #67a509; // Tick icons; Buttons in the checkout
|
|
7
|
-
$
|
|
7
|
+
$polished-pine: #67a589;
|
|
8
8
|
$green-dark: #487306; // Active state of button-action
|
|
9
9
|
|
|
10
10
|
// Additional colors
|
|
@@ -33,7 +33,6 @@ $error-bg: #fcf2f3; // Error notification background colour
|
|
|
33
33
|
$positive: #8dc63f; // Positive colour
|
|
34
34
|
$negative: #ed1c24; // Negative colour
|
|
35
35
|
$blue-badge: #019ee3;
|
|
36
|
-
$pacific-depths: #004587;
|
|
37
36
|
$usp-icon-color: #1a77bc; // Usp icon color
|
|
38
37
|
$pacific-depths: #004587;
|
|
39
38
|
$line-through: #242424;
|
|
@@ -47,10 +46,6 @@ $footer-gray: #f5f5f5;
|
|
|
47
46
|
$footer-bullet: #c8c8c8;
|
|
48
47
|
$footer-copyright: #626262;
|
|
49
48
|
|
|
50
|
-
$footer-gray: #f5f5f5;
|
|
51
|
-
$footer-bullet: #c8c8c8;
|
|
52
|
-
$footer-copyright: #626262;
|
|
53
|
-
|
|
54
49
|
$white: #fff;
|
|
55
50
|
$black: #000;
|
|
56
51
|
$black-lite: #111;
|
|
@@ -67,7 +62,6 @@ $blue-ocean: #003058;
|
|
|
67
62
|
$blue-ocean-dark: #0a3054;
|
|
68
63
|
$gray-middle: #aaa;
|
|
69
64
|
$light-blue: #e6f1f8;
|
|
70
|
-
|
|
71
65
|
// Colour block colours
|
|
72
66
|
$moon-shadow: #658089;
|
|
73
67
|
$fawn: #f0ddce;
|
|
@@ -111,7 +105,7 @@ $black-transparent75: rgba(0, 0, 0, 0.75);
|
|
|
111
105
|
$black-transparent80: rgba(0, 0, 0, 0.8);
|
|
112
106
|
$blue-transparent20: rgba(2, 119, 189, 0.2);
|
|
113
107
|
$blue-transparent10: rgba(2, 119, 189, 0.1);
|
|
114
|
-
$blue-transparent3:
|
|
108
|
+
$blue-transparent3: rgba(2, 119, 189, 0.32);
|
|
115
109
|
$blue-transparent5: rgba(2, 119, 189, 0.05);
|
|
116
110
|
$blue-transparent5-rgb: rgb(242, 248, 251);
|
|
117
111
|
$dark-blue-transparent10: rgba(10, 48, 85, 0.1);
|
|
@@ -305,7 +299,7 @@ $btn-line-height-sm: $input-btn-line-height-sm !default;
|
|
|
305
299
|
|
|
306
300
|
$btn-padding-y-lg: $input-btn-padding-y-lg !default;
|
|
307
301
|
$btn-padding-x-lg: $input-btn-padding-x-lg !default;
|
|
308
|
-
$btn-line-height-lg: $input-
|
|
302
|
+
$btn-line-height-lg: $input-btn-line-height-lg !default;
|
|
309
303
|
|
|
310
304
|
$btn-border-radius: $border-radius !default;
|
|
311
305
|
$btn-border-radius-lg: $border-radius-lg !default;
|
|
@@ -385,8 +379,7 @@ $zindex-share: 1 !default;
|
|
|
385
379
|
|
|
386
380
|
// This variable affects the `.h-*` and `.w-*` classes.
|
|
387
381
|
$sizes: () !default;
|
|
388
|
-
|
|
389
|
-
/* sass-lint:disable indentation */
|
|
382
|
+
// sass-lint:disable indentation
|
|
390
383
|
$sizes: map-merge(
|
|
391
384
|
(
|
|
392
385
|
25: 25%,
|
|
@@ -396,8 +389,7 @@ $sizes: map-merge(
|
|
|
396
389
|
),
|
|
397
390
|
$sizes
|
|
398
391
|
);
|
|
399
|
-
|
|
400
|
-
|
|
392
|
+
// sass-lint:enable indentation
|
|
401
393
|
// Spacing
|
|
402
394
|
//
|
|
403
395
|
// Control the default styling of most Bootstrap elements by modifying these
|
|
@@ -407,8 +399,7 @@ $sizes: map-merge(
|
|
|
407
399
|
// stylelint-disable
|
|
408
400
|
$spacer: 1rem !default;
|
|
409
401
|
$spacers: () !default;
|
|
410
|
-
|
|
411
|
-
/* sass-lint:disable indentation */
|
|
402
|
+
// sass-lint:disable indentation
|
|
412
403
|
$spacers: map-merge(
|
|
413
404
|
(
|
|
414
405
|
0: 0,
|
|
@@ -428,7 +419,7 @@ $spacers: map-merge(
|
|
|
428
419
|
),
|
|
429
420
|
$spacers
|
|
430
421
|
);
|
|
431
|
-
|
|
422
|
+
// sass-lint:enable indentation
|
|
432
423
|
|
|
433
424
|
// Bootstrap Printing checked
|
|
434
425
|
$print-page-size: a3 !default;
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
.checkout-widget {
|
|
28
28
|
&__details {
|
|
29
29
|
font-size: 1rem;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
30
32
|
|
|
31
33
|
.checkout-widget {
|
|
32
34
|
&__item {
|
|
@@ -44,15 +46,27 @@
|
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
&-vat {
|
|
47
|
-
font-size: .75rem;
|
|
49
|
+
font-size: 0.75rem;
|
|
48
50
|
margin-top: -15px;
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
53
|
|
|
52
|
-
|
|
53
54
|
&__details-discount {
|
|
54
55
|
order: 1;
|
|
55
56
|
}
|
|
57
|
+
|
|
58
|
+
&__gift-card {
|
|
59
|
+
order: 2;
|
|
60
|
+
margin-bottom: 0;
|
|
61
|
+
margin-top: 20px;
|
|
62
|
+
font-weight: 700;
|
|
63
|
+
|
|
64
|
+
.checkout-widget__item-value {
|
|
65
|
+
::first-letter {
|
|
66
|
+
font-size: 1rem;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
56
70
|
}
|
|
57
71
|
}
|
|
58
72
|
|
|
@@ -194,6 +208,10 @@
|
|
|
194
208
|
margin: 40px 0;
|
|
195
209
|
}
|
|
196
210
|
|
|
211
|
+
.loader-wrapper.page-loader {
|
|
212
|
+
position: fixed;
|
|
213
|
+
}
|
|
214
|
+
|
|
197
215
|
.oos-block {
|
|
198
216
|
@include make-col(12);
|
|
199
217
|
|
|
@@ -272,7 +290,6 @@
|
|
|
272
290
|
line-height: 1.125rem;
|
|
273
291
|
font-weight: 400;
|
|
274
292
|
|
|
275
|
-
|
|
276
293
|
&__heading {
|
|
277
294
|
color: $blue-ocean;
|
|
278
295
|
font-weight: 400;
|
|
@@ -387,7 +404,7 @@
|
|
|
387
404
|
|
|
388
405
|
.date-selection {
|
|
389
406
|
&__wrapper {
|
|
390
|
-
font-size: .875rem;
|
|
407
|
+
font-size: 0.875rem;
|
|
391
408
|
line-height: 1.125rem;
|
|
392
409
|
font-weight: 400;
|
|
393
410
|
margin-bottom: 23px;
|
|
@@ -399,6 +416,13 @@
|
|
|
399
416
|
margin-bottom: 13px;
|
|
400
417
|
}
|
|
401
418
|
}
|
|
419
|
+
|
|
420
|
+
.notification {
|
|
421
|
+
&:only-child,
|
|
422
|
+
&:last-child {
|
|
423
|
+
margin-bottom: 30px;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
402
426
|
}
|
|
403
427
|
|
|
404
428
|
#modalDeliveryEdit,
|
|
@@ -409,7 +433,7 @@
|
|
|
409
433
|
}
|
|
410
434
|
|
|
411
435
|
.modal-box__header .close {
|
|
412
|
-
right: .6875rem;
|
|
436
|
+
right: 0.6875rem;
|
|
413
437
|
top: 1.625rem;
|
|
414
438
|
}
|
|
415
439
|
|
|
@@ -686,7 +710,7 @@
|
|
|
686
710
|
padding: 17px 13px;
|
|
687
711
|
|
|
688
712
|
&-info {
|
|
689
|
-
font-size: .875rem;
|
|
713
|
+
font-size: 0.875rem;
|
|
690
714
|
margin-left: 30px;
|
|
691
715
|
}
|
|
692
716
|
}
|
|
@@ -303,6 +303,7 @@ $color-bar-radius: 3px;
|
|
|
303
303
|
margin-right: -4px;
|
|
304
304
|
padding-left: 5px;
|
|
305
305
|
padding-right: 5px;
|
|
306
|
+
width: 50%;
|
|
306
307
|
}
|
|
307
308
|
|
|
308
309
|
&:nth-of-type(1)::before,
|
|
@@ -338,6 +339,27 @@ $color-bar-radius: 3px;
|
|
|
338
339
|
align-items: center;
|
|
339
340
|
justify-content: center;
|
|
340
341
|
border-bottom: 1px solid $gray;
|
|
342
|
+
width: 100%;
|
|
343
|
+
|
|
344
|
+
@supports (aspect-ratio: 1 / 1) {
|
|
345
|
+
aspect-ratio: 1 / 1;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
@supports not (aspect-ratio: 1 / 1) {
|
|
349
|
+
&:before {
|
|
350
|
+
content: '';
|
|
351
|
+
display: block;
|
|
352
|
+
padding-top: 100%;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.card__img-v2 {
|
|
357
|
+
position: absolute;
|
|
358
|
+
inset: 0;
|
|
359
|
+
width: 100%;
|
|
360
|
+
height: 100%;
|
|
361
|
+
object-fit: contain;
|
|
362
|
+
}
|
|
341
363
|
|
|
342
364
|
@include media-breakpoint-down(sm) {
|
|
343
365
|
border: 1px solid $gray;
|
|
@@ -367,6 +389,16 @@ $color-bar-radius: 3px;
|
|
|
367
389
|
}
|
|
368
390
|
}
|
|
369
391
|
|
|
392
|
+
.card-sponsor-product {
|
|
393
|
+
@include media-breakpoint-down(sm) {
|
|
394
|
+
width: 50%;
|
|
395
|
+
|
|
396
|
+
.card {
|
|
397
|
+
width: 100%;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
370
402
|
.product-card {
|
|
371
403
|
& .card__inner-v2:hover {
|
|
372
404
|
border: 1px solid $gray-dark;
|
|
@@ -586,8 +618,8 @@ $color-bar-radius: 3px;
|
|
|
586
618
|
.sort-products-list {
|
|
587
619
|
&__section {
|
|
588
620
|
@include make-col(6);
|
|
589
|
-
color: black;
|
|
590
|
-
border:
|
|
621
|
+
color: $black;
|
|
622
|
+
border: 0;
|
|
591
623
|
|
|
592
624
|
> .form-row {
|
|
593
625
|
margin-bottom: 0;
|
package/src/scss/pdp-main.scss
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
$(document).ready(function () {
|
|
2
|
-
|
|
3
|
-
let imgWrap = $('.products-list-v2 .card__img-wrap');
|
|
4
|
-
let img = $('.products-list-v2 .card__img-v2');
|
|
5
|
-
|
|
6
|
-
square();
|
|
7
|
-
|
|
8
|
-
img.height(function () {
|
|
9
|
-
if (Math.round($(this).height()) > Math.round($(this).width())) {
|
|
10
|
-
$(this).height('99.9%'); //fix for ie
|
|
11
|
-
} else if ((Math.round($(this).height()) < Math.round($(this).width()))){
|
|
12
|
-
$(this).width('99.9%'); // fix for ie
|
|
13
|
-
} else {
|
|
14
|
-
$(this).width('99.9%'); // fix for ie
|
|
15
|
-
$(this).height('99.9%'); // fix for ie
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
function square() {
|
|
20
|
-
let width = imgWrap.width();
|
|
21
|
-
imgWrap.height(width);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
$(window).on('resize', square);
|
|
25
|
-
});
|
package/src/components/.DS_Store
DELETED
|
Binary file
|
package/src/img/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
package/src/js/.DS_Store
DELETED
|
Binary file
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// this file should be delete after <script defer="defer" src="./js/share-project-list.min.js"></script>
|
|
2
|
-
// implementation on backend (IC-1182 comment https://wickesit.atlassian.net/browse/IC-1182?focusedCommentId=312018)
|
|
3
|
-
|
|
4
|
-
var Wick = Wick || {};
|
|
5
|
-
|
|
6
|
-
Wick.ShareProjectList = (function () {
|
|
7
|
-
function init() {
|
|
8
|
-
var shoppingListLinkInput = $('#share-list-modal #shopping-list-link'),
|
|
9
|
-
shoppingListLinkEl = shoppingListLinkInput[0],
|
|
10
|
-
linkContainer = $('#copy-link'),
|
|
11
|
-
actualLink = linkContainer.find('a'),
|
|
12
|
-
copyClass = 'copy-link_hovered';
|
|
13
|
-
|
|
14
|
-
actualLink.click(function (e) {
|
|
15
|
-
e.preventDefault();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
linkContainer.click(function () {
|
|
19
|
-
if (navigator.userAgent.match(/TradeProMobile_iOS|DIYMobile_iOS/i)) {
|
|
20
|
-
iosCopyToClipboard(shoppingListLinkInput);
|
|
21
|
-
} else if (navigator.userAgent.match(/ipad|ipod|iphone/i)) {
|
|
22
|
-
shoppingListLinkEl.select();
|
|
23
|
-
shoppingListLinkEl.setSelectionRange(0, 999999);
|
|
24
|
-
} else {
|
|
25
|
-
shoppingListLinkEl.select();
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
document.execCommand('copy');
|
|
29
|
-
actualLink.addClass(copyClass);
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
shoppingListLinkInput.click(function () {
|
|
33
|
-
linkContainer.click();
|
|
34
|
-
actualLink.removeClass(copyClass);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function iosCopyToClipboard($input) {
|
|
39
|
-
var el = $input.get(0);
|
|
40
|
-
var editable = el.contentEditable;
|
|
41
|
-
var readOnly = el.readOnly;
|
|
42
|
-
|
|
43
|
-
el.contentEditable = true;
|
|
44
|
-
el.readOnly = false;
|
|
45
|
-
var range = document.createRange();
|
|
46
|
-
range.selectNodeContents(el);
|
|
47
|
-
var sel = window.getSelection();
|
|
48
|
-
sel.removeAllRanges();
|
|
49
|
-
sel.addRange(range);
|
|
50
|
-
el.setSelectionRange(0, 999999);
|
|
51
|
-
el.contentEditable = editable;
|
|
52
|
-
el.readOnly = readOnly;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
init();
|
|
56
|
-
})();
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
var Wick = window.Wick || {};
|
|
2
|
-
|
|
3
|
-
Wick.TogglePasswordVisibility = {
|
|
4
|
-
el: {
|
|
5
|
-
$toggleShow: $('[data-show-content] .toggle-show'),
|
|
6
|
-
inputWrap: $('.form-row[data-show-content] .input-wrap'),
|
|
7
|
-
toggleIcon: '.toggle-show',
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
updateIconVisibility(inputField, toggleIcon) {
|
|
11
|
-
const valueLength = inputField.val().length;
|
|
12
|
-
if (valueLength > 0) {
|
|
13
|
-
toggleIcon.show();
|
|
14
|
-
} else {
|
|
15
|
-
toggleIcon.hide();
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
attachInputListener(inputField, toggleIcon) {
|
|
20
|
-
inputField.on('input', function () {
|
|
21
|
-
Wick.TogglePasswordVisibility.updateIconVisibility($(this), toggleIcon);
|
|
22
|
-
});
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
attachToggleClickListener(inputField, toggleIcon) {
|
|
26
|
-
toggleIcon.on('click', function () {
|
|
27
|
-
const isPasswordType = inputField.attr('type') === 'password';
|
|
28
|
-
const iconSvg = $(this).find('svg');
|
|
29
|
-
|
|
30
|
-
if (isPasswordType) {
|
|
31
|
-
inputField.attr('type', 'text');
|
|
32
|
-
iconSvg.removeClass('fa-eye-slash').addClass('fa-eye');
|
|
33
|
-
} else {
|
|
34
|
-
inputField.attr('type', 'password');
|
|
35
|
-
iconSvg.removeClass('fa-eye').addClass('fa-eye-slash');
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
init() {
|
|
41
|
-
Wick.TogglePasswordVisibility.el.inputWrap.each(function () {
|
|
42
|
-
const inputField = $(this).find('input');
|
|
43
|
-
const toggleIcon = $(this).find(Wick.TogglePasswordVisibility.el.toggleIcon);
|
|
44
|
-
|
|
45
|
-
Wick.TogglePasswordVisibility.attachInputListener(inputField, toggleIcon);
|
|
46
|
-
Wick.TogglePasswordVisibility.updateIconVisibility(inputField, toggleIcon);
|
|
47
|
-
Wick.TogglePasswordVisibility.attachToggleClickListener(inputField, toggleIcon);
|
|
48
|
-
});
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
$(document).ready(function () {
|
|
53
|
-
if (!Wick.TogglePasswordVisibility.el.$toggleShow.length) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
Wick.TogglePasswordVisibility.init();
|
|
58
|
-
});
|
package/src/js/page/.DS_Store
DELETED
|
Binary file
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
$(document).ready(function () {
|
|
2
|
-
|
|
3
|
-
let imgWrap = $('.products-list-v2 .card__img-wrap');
|
|
4
|
-
let img = $('.products-list-v2 .card__img-v2');
|
|
5
|
-
|
|
6
|
-
square();
|
|
7
|
-
|
|
8
|
-
img.height(function () {
|
|
9
|
-
if (Math.round($(this).height()) > Math.round($(this).width())) {
|
|
10
|
-
$(this).height('99.9%'); //fix for ie
|
|
11
|
-
} else if ((Math.round($(this).height()) < Math.round($(this).width()))){
|
|
12
|
-
$(this).width('99.9%'); // fix for ie
|
|
13
|
-
} else {
|
|
14
|
-
$(this).width('99.9%'); // fix for ie
|
|
15
|
-
$(this).height('99.9%'); // fix for ie
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
function square() {
|
|
20
|
-
let width = imgWrap.width();
|
|
21
|
-
imgWrap.height(width);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
$(window).on('resize', square);
|
|
25
|
-
});
|
package/src/scss/.DS_Store
DELETED
|
Binary file
|
package/src/scss/pages/.DS_Store
DELETED
|
Binary file
|