wickes-css2 2.98.0-develop.3 → 2.98.0-develop.5
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/build/css/category-main.css +1 -1
- package/build/css/components/energy-efficiency.css +1 -1
- package/build/css/components/legal-info.css +1 -1
- package/build/css/homepage-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_quiz.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/js/basket.min.js +1 -1
- package/build/js/bundle.min.js +1 -1
- package/build/js/checkout.min.js +1 -1
- package/build/js/emulation.min.js +106 -32
- package/build/js/general.bundle.min.js +1 -1
- package/build/js/merged-checkout.min.js +1 -1
- package/build/js/page/pdp.js +4 -1
- package/build/js/pdp.bundle.min.js +1 -1
- package/build/js/plp.bundle.min.js +1 -1
- package/build/js/project-list.min.js +1 -1
- package/package.json +1 -1
- package/src/components/checkout_order-summary-new.hbs +18 -13
- package/src/components/header-minicart.hbs +3 -3
- package/src/components/legal-info.hbs +22 -25
- package/src/components/mini-basket/mini-basket-empty.hbs +17 -0
- package/src/components/mini-basket/mini-basket.hbs +39 -0
- package/src/components/mini-basket/product-item.hbs +22 -0
- package/src/components/pdp-price-actions.hbs +1 -1
- package/src/components/price-block-v2.hbs +0 -1
- package/src/data/data_confirmation-summary.json +3 -3
- package/src/data/data_latest-offers.json +1 -1
- package/src/data/data_mini-basket.json +80 -6
- package/src/data/data_page-category.json +2 -1
- package/src/data/data_page-merge-basket.json +1 -1
- package/src/data/data_store-locator-v2.json +1 -1
- package/src/js/components/general/backdrop.js +23 -0
- package/src/js/components/general/cart-slider.js +16 -0
- package/src/js/components/general/create-popup-slider.js +196 -0
- package/src/js/components/general/mini-basket-slider.js +8 -0
- package/src/js/emulation/big-wins.js +29 -29
- package/src/js/emulation/custom-slider-emulation.js +28 -0
- package/src/js/emulation/mock.js +46 -1
- package/src/js/emulation/popover-mini-basket.js +2 -2
- package/src/js/page/pdp.js +4 -1
- package/src/layouts/base.hbs +6 -0
- package/src/layouts/my-account-v2.hbs +7 -0
- package/src/page_product-details-saved-pl.html +16 -13
- package/src/page_product-details-with-global-search-v2.html +1 -0
- package/src/scss/common/_scroll-disable.scss +4 -2
- package/src/scss/components/_custom-slider.scss +512 -0
- package/src/scss/components/legal-info.scss +61 -0
- package/src/scss/globals/_global-components.scss +1 -0
- package/src/scss/helpers/_mixins.scss +8 -0
- package/src/scss/helpers/_variables.scss +1 -0
- package/src/scss/homepage-main.scss +1 -0
- package/src/scss/main.scss +1 -0
- package/src/scss/partials/_header-critical.scss +14 -0
- package/src/scss/partials/_header.scss +14 -0
|
@@ -612,35 +612,35 @@ Wick.BigWinsProto = function () {
|
|
|
612
612
|
$temp.remove();
|
|
613
613
|
});
|
|
614
614
|
|
|
615
|
-
bwVar.$addForDelivery.on('click', function () {
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
});
|
|
615
|
+
// bwVar.$addForDelivery.on('click', function () {
|
|
616
|
+
// Wick.SnackBar.show(
|
|
617
|
+
// {
|
|
618
|
+
// text: 'Notification success message for Delivery with Close Btn',
|
|
619
|
+
// type: Wick.SnackBar.types.SUCCESS
|
|
620
|
+
// }
|
|
621
|
+
// );
|
|
622
|
+
// Wick.SnackBar.show(
|
|
623
|
+
// {
|
|
624
|
+
// text: 'Notification warning message for Delivery with Close Btn',
|
|
625
|
+
// type: Wick.SnackBar.types.WARNING
|
|
626
|
+
// }
|
|
627
|
+
// );
|
|
628
|
+
// Wick.SnackBar.show(
|
|
629
|
+
// {
|
|
630
|
+
// text: 'Notification error message for Delivery with Close Btn',
|
|
631
|
+
// type: Wick.SnackBar.types.ERROR
|
|
632
|
+
// }
|
|
633
|
+
// );
|
|
634
|
+
// Wick.SnackBar.show(
|
|
635
|
+
// {
|
|
636
|
+
// text: 'Notification success message for Delivery with Autoclose',
|
|
637
|
+
// type: Wick.SnackBar.types.SUCCESS,
|
|
638
|
+
// withCloseButton: false,
|
|
639
|
+
// autoClose: true,
|
|
640
|
+
// delayBeforeClose: 3000
|
|
641
|
+
// }
|
|
642
|
+
// );
|
|
643
|
+
// });
|
|
644
644
|
|
|
645
645
|
bwVar.$addClickAndCollect.on('click', function (e) {
|
|
646
646
|
e.stopPropagation();
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
function simulateHybrisSendingHtml() {
|
|
3
|
+
const htmlFromHybris = Wick.FEMock.cartPDP;
|
|
4
|
+
const event = new CustomEvent('productAddedToCart', {
|
|
5
|
+
detail: { html: htmlFromHybris }
|
|
6
|
+
});
|
|
7
|
+
document.dispatchEvent(event);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function initCloseJustAddedDiff() {
|
|
11
|
+
$(window).on('CLOSE_JUST_ADDED CLOSE_MINI_BASKET', function ({ detail: { resolve }}) {
|
|
12
|
+
setTimeout(() => {
|
|
13
|
+
return resolve();
|
|
14
|
+
}, 200);
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
function simulateShowMiniBasket() {
|
|
19
|
+
const event = new CustomEvent('showMiniBasket', {});
|
|
20
|
+
document.dispatchEvent(event);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
$(document).ready(function () {
|
|
24
|
+
$('.btn-add-to-basket').on('click', simulateHybrisSendingHtml);
|
|
25
|
+
$('.header-minicart__btn').on('click', simulateShowMiniBasket);
|
|
26
|
+
|
|
27
|
+
initCloseJustAddedDiff();
|
|
28
|
+
});
|
package/src/js/emulation/mock.js
CHANGED
|
@@ -20,5 +20,50 @@ Wick.FEMock = {
|
|
|
20
20
|
"page": 2,
|
|
21
21
|
"html": '<article class="active-orders__item"><header class="order-header"><h3 class="order-header__title">Order 940564001</h3><div class="order-status completed"><svg class="svg-inline--fa fa-check-circle fa-w-16 icon" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="check-circle" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" data-fa-i2svg=""><path fill="currentColor" d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"></path></svg><span>Complete</span></div></header><section class="order-details"><div class="order-details__summary"><span class="order-details__price">£92.75</span> <span class="order-details__count">7 item(s)</span></div><time class="order-details__date" datetime="21st November 2024 4:32 PM">21st November 2024 4:32 PM</time></section><div class="view-more"><a class="link" href="/"><span>View More</span> <svg class="svg-inline--fa fa-arrow-right fa-w-14 icon" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="arrow-right" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" data-fa-i2svg=""><path fill="currentColor" d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"></path></svg></a></div></article><article class="active-orders__item"><header class="order-header"><h3 class="order-header__title">Order 940520002</h3><div class="order-status cancelled"><svg class="svg-inline--fa fa-times fa-w-10 icon" aria-hidden="true" focusable="false" data-prefix="far" data-icon="times" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" data-fa-i2svg=""><path fill="currentColor" d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"></path></svg><span>Cancelled</span></div></header><section class="order-details"><div class="order-details__summary"><span class="order-details__price">£32.00</span> <span class="order-details__count">1 item(s)</span></div><time class="order-details__date" datetime="28th October 2024 7:29 AM">28th October 2024 7:29 AM</time></section><div class="view-more"><a class="link" href="/"><span>View More</span> <svg class="svg-inline--fa fa-arrow-right fa-w-14 icon" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="arrow-right" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" data-fa-i2svg=""><path fill="currentColor" d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"></path></svg></a></div></article>'
|
|
22
22
|
}
|
|
23
|
-
]
|
|
23
|
+
],
|
|
24
|
+
cartPDP: `
|
|
25
|
+
<div class="custom-slider__wrap custom-slider__wrap--scroll">
|
|
26
|
+
<div class="custom-slider__header">
|
|
27
|
+
<a href="#" type="button" class="link close-popup">
|
|
28
|
+
<span class="icon-wrap">
|
|
29
|
+
<svg class="svg-inline--fa fa-angle-left fa-w-6" aria-hidden="true" focusable="false" data-prefix="far" data-icon="angle-left" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512" data-fa-i2svg=""><path fill="currentColor" d="M4.2 247.5L151 99.5c4.7-4.7 12.3-4.7 17 0l19.8 19.8c4.7 4.7 4.7 12.3 0 17L69.3 256l118.5 119.7c4.7 4.7 4.7 12.3 0 17L168 412.5c-4.7 4.7-12.3 4.7-17 0L4.2 264.5c-4.7-4.7-4.7-12.3 0-17z"></path></svg>
|
|
30
|
+
</span>
|
|
31
|
+
Continue shopping
|
|
32
|
+
</a>
|
|
33
|
+
<a href="#" type="button" class="icon-wrap close-popup">
|
|
34
|
+
<svg class="svg-inline--fa fa-times fa-w-10 icon" aria-hidden="true" focusable="false" data-prefix="far" data-icon="times" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" data-fa-i2svg=""><path fill="currentColor" d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"></path></svg>
|
|
35
|
+
</a>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="custom-slider__message">
|
|
38
|
+
<span class="icon-wrap success">
|
|
39
|
+
<svg class="svg-inline--fa fa-check-circle fa-w-16" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="check-circle" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" data-fa-i2svg=""><path fill="currentColor" d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"></path></svg>
|
|
40
|
+
</span>
|
|
41
|
+
<div class="messages">
|
|
42
|
+
<p class="messages__text">You’ve just added</p>
|
|
43
|
+
<span class="messages__notice">Excluding items already in the basket</span>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
<ul class="products">
|
|
47
|
+
<li class="products__item">
|
|
48
|
+
<a class="products__image" href="page_product-details-with-global-search-v2.html">
|
|
49
|
+
<img class="product-img" src="img/placeholders/tap.jpg" alt="">
|
|
50
|
+
</a>
|
|
51
|
+
<div class="products__details">
|
|
52
|
+
<a href="#" class="title">Rangemaster Classic Deluxe 90 Ceramic Range Cooker - Black with Chrome Trim</a>
|
|
53
|
+
<p class="item">Click & Collect: <span class="value">East Grinstead</span></p>
|
|
54
|
+
<p class="item">Qty: <span class="value">1</span></p>
|
|
55
|
+
<p class="price including-vat-inherit">£30.00 <span class="inc">Inc.VAT</span></p>
|
|
56
|
+
<p class="price excluding-vat-inherit">£10.00 <span class="inc">Exc.VAT</span></p>
|
|
57
|
+
</div>
|
|
58
|
+
</li>
|
|
59
|
+
</ul>
|
|
60
|
+
<div class="custom-slider__content">
|
|
61
|
+
<p>Product description Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo commodo. Proin sodales pulvinar sic tempor. Sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam fermentum, nulla luctus pharetra vulputate, felis tellus mollis orci, sed rhoncus pronin sapien nunc accuan eget. Product description Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo commodo. Proin sodales pulvinar sic tempor. Sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam fermentum, nulla luctus pharetra vulputate, felis tellus mollis orci, sed rhoncus pronin sapien nunc accuan eget.</p>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="custom-slider__footer footer-fixed">
|
|
65
|
+
<button class="btn btn_full btn-secondary close-popup">Continue Shopping</button>
|
|
66
|
+
<button class="btn btn-action btn_full">View Basket</button>
|
|
67
|
+
</div>
|
|
68
|
+
`
|
|
24
69
|
}
|
|
@@ -129,8 +129,8 @@ Wick.MiniBasket = (function() {
|
|
|
129
129
|
});
|
|
130
130
|
},
|
|
131
131
|
bindEvents: function(){
|
|
132
|
-
this._bindEvents();
|
|
133
|
-
this._bindTouchEvents();
|
|
132
|
+
// this._bindEvents();
|
|
133
|
+
// this._bindTouchEvents();
|
|
134
134
|
},
|
|
135
135
|
enable: function(){
|
|
136
136
|
rollover.isDisabled = false;
|
package/src/js/page/pdp.js
CHANGED
|
@@ -24,7 +24,10 @@ Wick.PDP = (function () {
|
|
|
24
24
|
$page
|
|
25
25
|
.find('.btn-add-to-basket, .card-store-collect__btn')
|
|
26
26
|
.on('click', function(){
|
|
27
|
-
|
|
27
|
+
// TODO: This code is currently not in use because the backend (BE) has its own build for PDP.
|
|
28
|
+
// Consider removing this fragment if it's confirmed to be obsolete, or document why it might still be needed.
|
|
29
|
+
|
|
30
|
+
// Wick.MiniBasket && Wick.MiniBasket.showJustAdded();
|
|
28
31
|
});
|
|
29
32
|
}
|
|
30
33
|
|
package/src/layouts/base.hbs
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
{{#extend "base"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
{{#extend "base"
|
|
2
|
+
pageClass="page-product-details"
|
|
3
|
+
title="Product details page new"
|
|
4
|
+
isDiscount=true
|
|
5
|
+
isSQM=true
|
|
6
|
+
isDescription=true
|
|
7
|
+
isCashback=false
|
|
8
|
+
isSize=true
|
|
9
|
+
isGuide=true
|
|
10
|
+
hourly-delivery=true
|
|
11
|
+
badge-text='15% off'
|
|
12
|
+
badge-color='yellow'
|
|
13
|
+
badge-text-color='gray'
|
|
14
|
+
currentlyInStock=true
|
|
15
|
+
pagePdp=true
|
|
16
|
+
miniBasketEmpty=true
|
|
14
17
|
}}
|
|
15
18
|
{{#content "head" mode="append" pagePdp=true}}{{/content}}
|
|
16
19
|
{{#content "body"}}
|