wickes-css2 2.98.0-develop.6 → 2.98.0-develop.8

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 (73) hide show
  1. package/Readme.md +0 -1
  2. package/build/css/category-main.css +1 -1
  3. package/build/css/components/energy-efficiency.css +1 -1
  4. package/build/css/components/legal-info.css +1 -1
  5. package/build/css/homepage-main.css +1 -1
  6. package/build/css/main.css +1 -1
  7. package/build/css/my-account-main-v2.css +1 -1
  8. package/build/css/my-account-main.css +1 -1
  9. package/build/css/pages/my-account-v2.css +1 -1
  10. package/build/css/pages/page_quiz.css +1 -1
  11. package/build/css/pages/page_track-my-order.css +1 -1
  12. package/build/css/pdp-main-before-combine.css +1 -1
  13. package/build/css/pdp-main-critical.css +1 -1
  14. package/build/css/pdp-main-non-critical.css +1 -1
  15. package/build/css/pdp-main.css +1 -1
  16. package/build/css/plp-main.css +1 -1
  17. package/build/css/store-locator-main.css +1 -1
  18. package/build/js/basket.min.js +1 -1
  19. package/build/js/bundle.min.js +1 -1
  20. package/build/js/checkout.min.js +1 -1
  21. package/build/js/emulation.min.js +32 -106
  22. package/build/js/general.bundle.min.js +1 -1
  23. package/build/js/merged-checkout.min.js +1 -1
  24. package/build/js/page/pdp.js +1 -4
  25. package/build/js/pdp.bundle.min.js +1 -1
  26. package/build/js/plp.bundle.min.js +1 -1
  27. package/build/js/project-list.min.js +1 -1
  28. package/package.json +2 -2
  29. package/src/components/checkout_order-summary-new.hbs +13 -18
  30. package/src/components/header-minicart.hbs +3 -3
  31. package/src/components/legal-info.hbs +25 -22
  32. package/src/components/my-account/saving-totaliser.hbs +52 -0
  33. package/src/components/pdp-price-actions.hbs +1 -1
  34. package/src/components/price-block-v2.hbs +1 -0
  35. package/src/components/track-my-order-info.hbs +3 -1
  36. package/src/data/data_confirmation-summary.json +3 -3
  37. package/src/data/data_latest-offers.json +1 -1
  38. package/src/data/data_mini-basket.json +6 -80
  39. package/src/data/data_page-category.json +1 -2
  40. package/src/data/data_page-merge-basket.json +1 -1
  41. package/src/data/data_store-locator-v2.json +1 -1
  42. package/src/js/emulation/big-wins.js +29 -29
  43. package/src/js/emulation/mock.js +1 -46
  44. package/src/js/emulation/popover-mini-basket.js +2 -2
  45. package/src/js/page/pdp.js +1 -4
  46. package/src/layouts/base.hbs +0 -6
  47. package/src/layouts/my-account-v2.hbs +0 -7
  48. package/src/page_my-account-trade-pro-components.html +27 -0
  49. package/src/page_my-account-trade-pro.html +7 -0
  50. package/src/page_product-details-saved-pl.html +13 -16
  51. package/src/page_product-details-with-global-search-v2.html +0 -1
  52. package/src/scss/common/_scroll-disable.scss +2 -4
  53. package/src/scss/components/legal-info.scss +0 -61
  54. package/src/scss/components/my-account/_saving-totaliser.scss +175 -0
  55. package/src/scss/globals/_global-components.scss +0 -1
  56. package/src/scss/helpers/_mixins.scss +0 -8
  57. package/src/scss/helpers/_variables.scss +0 -1
  58. package/src/scss/homepage-main.scss +0 -1
  59. package/src/scss/main.scss +0 -1
  60. package/src/scss/pages/my-account-v2.scss +1 -0
  61. package/src/scss/pages/page_track-my-order.scss +0 -21
  62. package/src/scss/partials/_header-critical.scss +0 -14
  63. package/src/scss/partials/_header.scss +0 -14
  64. package/src/sitemap.html +1 -0
  65. package/src/components/mini-basket/mini-basket-empty.hbs +0 -17
  66. package/src/components/mini-basket/mini-basket.hbs +0 -39
  67. package/src/components/mini-basket/product-item.hbs +0 -22
  68. package/src/js/components/general/backdrop.js +0 -23
  69. package/src/js/components/general/cart-slider.js +0 -16
  70. package/src/js/components/general/create-popup-slider.js +0 -196
  71. package/src/js/components/general/mini-basket-slider.js +0 -8
  72. package/src/js/emulation/custom-slider-emulation.js +0 -28
  73. package/src/scss/components/_custom-slider.scss +0 -512
@@ -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,35 +3687,6 @@ $(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
-
3719
3690
  var Wick = Wick || {};
3720
3691
  Wick.DateSelection = (function(){
3721
3692
  var $self = $('.date-selection'),
@@ -6176,52 +6147,7 @@ Wick.FEMock = {
6176
6147
  "page": 2,
6177
6148
  "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>'
6178
6149
  }
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
- `
6150
+ ]
6225
6151
  }
6226
6152
 
6227
6153
  function getOrdersHtmlByCurrentPage({currentPage}) {
@@ -6608,8 +6534,8 @@ Wick.MiniBasket = (function() {
6608
6534
  });
6609
6535
  },
6610
6536
  bindEvents: function(){
6611
- // this._bindEvents();
6612
- // this._bindTouchEvents();
6537
+ this._bindEvents();
6538
+ this._bindTouchEvents();
6613
6539
  },
6614
6540
  enable: function(){
6615
6541
  rollover.isDisabled = false;