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.
Files changed (62) hide show
  1. package/build/css/category-main.css +1 -1
  2. package/build/css/components/energy-efficiency.css +1 -1
  3. package/build/css/components/legal-info.css +1 -1
  4. package/build/css/homepage-main.css +1 -1
  5. package/build/css/main.css +1 -1
  6. package/build/css/my-account-main-v2.css +1 -1
  7. package/build/css/my-account-main.css +1 -1
  8. package/build/css/pages/page_quiz.css +1 -1
  9. package/build/css/pdp-main-before-combine.css +1 -1
  10. package/build/css/pdp-main-critical.css +1 -1
  11. package/build/css/pdp-main-non-critical.css +1 -1
  12. package/build/css/pdp-main.css +1 -1
  13. package/build/css/plp-main.css +1 -1
  14. package/build/css/store-locator-main.css +1 -1
  15. package/build/js/basket.min.js +1 -1
  16. package/build/js/bundle.min.js +1 -1
  17. package/build/js/checkout.min.js +1 -1
  18. package/build/js/emulation.min.js +106 -32
  19. package/build/js/general.bundle.min.js +1 -1
  20. package/build/js/merged-checkout.min.js +1 -1
  21. package/build/js/page/pdp.js +4 -1
  22. package/build/js/pdp.bundle.min.js +1 -1
  23. package/build/js/plp.bundle.min.js +1 -1
  24. package/build/js/project-list.min.js +1 -1
  25. package/package.json +1 -1
  26. package/src/components/checkout_order-summary-new.hbs +18 -13
  27. package/src/components/header-minicart.hbs +3 -3
  28. package/src/components/legal-info.hbs +22 -25
  29. package/src/components/mini-basket/mini-basket-empty.hbs +17 -0
  30. package/src/components/mini-basket/mini-basket.hbs +39 -0
  31. package/src/components/mini-basket/product-item.hbs +22 -0
  32. package/src/components/pdp-price-actions.hbs +1 -1
  33. package/src/components/price-block-v2.hbs +0 -1
  34. package/src/data/data_confirmation-summary.json +3 -3
  35. package/src/data/data_latest-offers.json +1 -1
  36. package/src/data/data_mini-basket.json +80 -6
  37. package/src/data/data_page-category.json +2 -1
  38. package/src/data/data_page-merge-basket.json +1 -1
  39. package/src/data/data_store-locator-v2.json +1 -1
  40. package/src/js/components/general/backdrop.js +23 -0
  41. package/src/js/components/general/cart-slider.js +16 -0
  42. package/src/js/components/general/create-popup-slider.js +196 -0
  43. package/src/js/components/general/mini-basket-slider.js +8 -0
  44. package/src/js/emulation/big-wins.js +29 -29
  45. package/src/js/emulation/custom-slider-emulation.js +28 -0
  46. package/src/js/emulation/mock.js +46 -1
  47. package/src/js/emulation/popover-mini-basket.js +2 -2
  48. package/src/js/page/pdp.js +4 -1
  49. package/src/layouts/base.hbs +6 -0
  50. package/src/layouts/my-account-v2.hbs +7 -0
  51. package/src/page_product-details-saved-pl.html +16 -13
  52. package/src/page_product-details-with-global-search-v2.html +1 -0
  53. package/src/scss/common/_scroll-disable.scss +4 -2
  54. package/src/scss/components/_custom-slider.scss +512 -0
  55. package/src/scss/components/legal-info.scss +61 -0
  56. package/src/scss/globals/_global-components.scss +1 -0
  57. package/src/scss/helpers/_mixins.scss +8 -0
  58. package/src/scss/helpers/_variables.scss +1 -0
  59. package/src/scss/homepage-main.scss +1 -0
  60. package/src/scss/main.scss +1 -0
  61. package/src/scss/partials/_header-critical.scss +14 -0
  62. package/src/scss/partials/_header.scss +14 -0
@@ -3067,35 +3067,35 @@ Wick.BigWinsProto = function () {
3067
3067
  $temp.remove();
3068
3068
  });
3069
3069
 
3070
- bwVar.$addForDelivery.on('click', function () {
3071
- Wick.SnackBar.show(
3072
- {
3073
- text: 'Notification success message for Delivery with Close Btn',
3074
- type: Wick.SnackBar.types.SUCCESS
3075
- }
3076
- );
3077
- Wick.SnackBar.show(
3078
- {
3079
- text: 'Notification warning message for Delivery with Close Btn',
3080
- type: Wick.SnackBar.types.WARNING
3081
- }
3082
- );
3083
- Wick.SnackBar.show(
3084
- {
3085
- text: 'Notification error message for Delivery with Close Btn',
3086
- type: Wick.SnackBar.types.ERROR
3087
- }
3088
- );
3089
- Wick.SnackBar.show(
3090
- {
3091
- text: 'Notification success message for Delivery with Autoclose',
3092
- type: Wick.SnackBar.types.SUCCESS,
3093
- withCloseButton: false,
3094
- autoClose: true,
3095
- delayBeforeClose: 3000
3096
- }
3097
- );
3098
- });
3070
+ // bwVar.$addForDelivery.on('click', function () {
3071
+ // Wick.SnackBar.show(
3072
+ // {
3073
+ // text: 'Notification success message for Delivery with Close Btn',
3074
+ // type: Wick.SnackBar.types.SUCCESS
3075
+ // }
3076
+ // );
3077
+ // Wick.SnackBar.show(
3078
+ // {
3079
+ // text: 'Notification warning message for Delivery with Close Btn',
3080
+ // type: Wick.SnackBar.types.WARNING
3081
+ // }
3082
+ // );
3083
+ // Wick.SnackBar.show(
3084
+ // {
3085
+ // text: 'Notification error message for Delivery with Close Btn',
3086
+ // type: Wick.SnackBar.types.ERROR
3087
+ // }
3088
+ // );
3089
+ // Wick.SnackBar.show(
3090
+ // {
3091
+ // text: 'Notification success message for Delivery with Autoclose',
3092
+ // type: Wick.SnackBar.types.SUCCESS,
3093
+ // withCloseButton: false,
3094
+ // autoClose: true,
3095
+ // delayBeforeClose: 3000
3096
+ // }
3097
+ // );
3098
+ // });
3099
3099
 
3100
3100
  bwVar.$addClickAndCollect.on('click', function (e) {
3101
3101
  e.stopPropagation();
@@ -3687,6 +3687,35 @@ $(document).ready(function () {
3687
3687
  showNotification();
3688
3688
  });
3689
3689
 
3690
+
3691
+ function simulateHybrisSendingHtml() {
3692
+ const htmlFromHybris = Wick.FEMock.cartPDP;
3693
+ const event = new CustomEvent('productAddedToCart', {
3694
+ detail: { html: htmlFromHybris }
3695
+ });
3696
+ document.dispatchEvent(event);
3697
+ }
3698
+
3699
+ function initCloseJustAddedDiff() {
3700
+ $(window).on('CLOSE_JUST_ADDED CLOSE_MINI_BASKET', function ({ detail: { resolve }}) {
3701
+ setTimeout(() => {
3702
+ return resolve();
3703
+ }, 200);
3704
+ });
3705
+ };
3706
+
3707
+ function simulateShowMiniBasket() {
3708
+ const event = new CustomEvent('showMiniBasket', {});
3709
+ document.dispatchEvent(event);
3710
+ }
3711
+
3712
+ $(document).ready(function () {
3713
+ $('.btn-add-to-basket').on('click', simulateHybrisSendingHtml);
3714
+ $('.header-minicart__btn').on('click', simulateShowMiniBasket);
3715
+
3716
+ initCloseJustAddedDiff();
3717
+ });
3718
+
3690
3719
  var Wick = Wick || {};
3691
3720
  Wick.DateSelection = (function(){
3692
3721
  var $self = $('.date-selection'),
@@ -6147,7 +6176,52 @@ Wick.FEMock = {
6147
6176
  "page": 2,
6148
6177
  "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>'
6149
6178
  }
6150
- ]
6179
+ ],
6180
+ cartPDP: `
6181
+ <div class="custom-slider__wrap custom-slider__wrap--scroll">
6182
+ <div class="custom-slider__header">
6183
+ <a href="#" type="button" class="link close-popup">
6184
+ <span class="icon-wrap">
6185
+ <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>
6186
+ </span>
6187
+ Continue shopping
6188
+ </a>
6189
+ <a href="#" type="button" class="icon-wrap close-popup">
6190
+ <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>
6191
+ </a>
6192
+ </div>
6193
+ <div class="custom-slider__message">
6194
+ <span class="icon-wrap success">
6195
+ <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>
6196
+ </span>
6197
+ <div class="messages">
6198
+ <p class="messages__text">You’ve just added</p>
6199
+ <span class="messages__notice">Excluding items already in the basket</span>
6200
+ </div>
6201
+ </div>
6202
+ <ul class="products">
6203
+ <li class="products__item">
6204
+ <a class="products__image" href="page_product-details-with-global-search-v2.html">
6205
+ <img class="product-img" src="img/placeholders/tap.jpg" alt="">
6206
+ </a>
6207
+ <div class="products__details">
6208
+ <a href="#" class="title">Rangemaster Classic Deluxe 90 Ceramic Range Cooker - Black with Chrome Trim</a>
6209
+ <p class="item">Click &amp; Collect: <span class="value">East Grinstead</span></p>
6210
+ <p class="item">Qty: <span class="value">1</span></p>
6211
+ <p class="price including-vat-inherit">£30.00 <span class="inc">Inc.VAT</span></p>
6212
+ <p class="price excluding-vat-inherit">£10.00 <span class="inc">Exc.VAT</span></p>
6213
+ </div>
6214
+ </li>
6215
+ </ul>
6216
+ <div class="custom-slider__content">
6217
+ <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>
6218
+ </div>
6219
+ </div>
6220
+ <div class="custom-slider__footer footer-fixed">
6221
+ <button class="btn btn_full btn-secondary close-popup">Continue Shopping</button>
6222
+ <button class="btn btn-action btn_full">View Basket</button>
6223
+ </div>
6224
+ `
6151
6225
  }
6152
6226
 
6153
6227
  function getOrdersHtmlByCurrentPage({currentPage}) {
@@ -6534,8 +6608,8 @@ Wick.MiniBasket = (function() {
6534
6608
  });
6535
6609
  },
6536
6610
  bindEvents: function(){
6537
- this._bindEvents();
6538
- this._bindTouchEvents();
6611
+ // this._bindEvents();
6612
+ // this._bindTouchEvents();
6539
6613
  },
6540
6614
  enable: function(){
6541
6615
  rollover.isDisabled = false;