wickes-css2 2.96.0-develop.6 → 2.96.0-develop.7

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 (39) hide show
  1. package/build/css/components/tile-calculator.css +1 -1
  2. package/build/css/pages/page_ti.css +1 -1
  3. package/build/css/pdp-main-before-combine.css +1 -1
  4. package/build/css/pdp-main-non-critical.css +1 -1
  5. package/build/css/pdp-main.css +1 -1
  6. package/build/js/basket.min.js +1 -1
  7. package/build/js/bundle.min.js +1 -1
  8. package/build/js/checkout.min.js +1 -1
  9. package/build/js/emulation.min.js +4 -1
  10. package/build/js/general.bundle.min.js +1 -1
  11. package/build/js/merged-checkout.min.js +1 -1
  12. package/build/js/pdp.bundle.min.js +1 -1
  13. package/build/js/plp.bundle.min.js +1 -1
  14. package/build/js/project-list.min.js +1 -1
  15. package/package.json +1 -1
  16. package/src/components/pdp-info-v2.hbs +0 -37
  17. package/src/components/shopping-list-pdf.hbs +37 -7
  18. package/src/components/ti-total-area.hbs +0 -32
  19. package/src/components/ti.hbs +0 -791
  20. package/src/components/voucher.hbs +4 -6
  21. package/src/js/components/general/switchVat.js +11 -0
  22. package/src/js/emulation/project-list-print.js +4 -1
  23. package/src/layouts/base.hbs +1 -1
  24. package/src/page_activate-trade-pro-api-flow.html +62 -0
  25. package/src/page_my-shopping-list-pdf-vat.html +7 -0
  26. package/src/partials/header.hbs +1 -1
  27. package/src/scss/components/_ti-total-area.scss +0 -53
  28. package/src/scss/components/tile-calculator.scss +1 -4
  29. package/src/scss/pages/page_ti.scss +3 -719
  30. package/src/sitemap.html +4 -0
  31. package/src/components/ti-header.hbs +0 -34
  32. package/src/components/ti-radio.hbs +0 -57
  33. package/src/components/tile-banner.hbs +0 -13
  34. package/src/components/tile-why-wickes.hbs +0 -32
  35. package/src/data/data_flooring-installation.json +0 -186
  36. package/src/scss/components/_ti-header.scss +0 -43
  37. package/src/scss/components/_ti-radio.scss +0 -142
  38. package/src/scss/components/_tile-banner.scss +0 -141
  39. package/src/scss/components/_tile-why-wickes.scss +0 -57
@@ -34,12 +34,9 @@
34
34
  {{!-- online --}}
35
35
  <span class="voucher__label">{{online.label}}</span>
36
36
  <div class="voucher__content">
37
- <div>
38
- {{#if online.title}}
39
- <h4 class="mb-0">{{online.title}}</h4>
40
- {{/if}}
41
- <p class="mt-1 mb-0">{{online.note}}</p>
42
- </div>
37
+ {{#if online.title}}
38
+ <h4 class="mb-0">{{online.title}}</h4>
39
+ {{/if}}
43
40
  <div class="my-3">
44
41
  <div class="voucher__code-field copy-tradePro-barcode">
45
42
  <input type="text" value="{{online.code}}" disabled>
@@ -48,6 +45,7 @@
48
45
  </span>
49
46
  </div>
50
47
  </div>
48
+ <p class="mb-3">{{online.note}}</p>
51
49
  {{#ifCond online.buttonLink "&&" online.buttonText}}
52
50
  <a href="{{online.buttonLink}}" class="btn btn-primary">
53
51
  <span class="btn__text">{{online.buttonText}}</span>
@@ -125,7 +125,18 @@ Wick.VatToggle = {
125
125
  document.cookie = cookiesString;
126
126
  },
127
127
 
128
+ rerenderCheckbox: function () {
129
+ // rerender checkbox to avoid browser caching IM-1534
130
+ if ($(Wick.VatToggle.el.switchVatInput).length) {
131
+ let inputTemplate = $(Wick.VatToggle.el.switchVatInput).prop('outerHTML');
132
+ inputTemplate = inputTemplate.replace('name="vat"', `name="vat-${Date.now()}"`);
133
+ $(Wick.VatToggle.el.switchVatInput).replaceWith(inputTemplate);
134
+ }
135
+ },
136
+
128
137
  init: function() {
138
+ Wick.VatToggle.rerenderCheckbox();
139
+
129
140
  const isVatShouldBeToggled = Wick.VatToggle.isOn();
130
141
  const isVatToggled = !!Wick.VatToggle.getSwitcherState();
131
142
 
@@ -1,3 +1,5 @@
1
+ var Wick = window.Wick || {};
2
+
1
3
  function initProjectShadowList() {
2
4
  $('.download-pdf').on('click', emulateDownloadAction);
3
5
  }
@@ -7,7 +9,8 @@ function emulateDownloadAction(e) {
7
9
 
8
10
  let currentUrl = window.location.href;
9
11
  let baseUrl = currentUrl.substring(0, currentUrl.lastIndexOf('/') + 1);
10
- let pageShoppingListPDF = baseUrl + 'page_my-shopping-list-pdf.html';
12
+ let pageName = Wick.VatToggle.isToggleVatAvailable() ? 'page_my-shopping-list-pdf-vat.html' : 'page_my-shopping-list-pdf.html';
13
+ let pageShoppingListPDF = baseUrl + pageName;
11
14
 
12
15
  $.ajax({
13
16
  type: 'get',
@@ -16,7 +16,7 @@
16
16
  {{> google-banner}}
17
17
  {{/if}}
18
18
  {{#block "header"}}
19
- {{> header chatBot=chatBot }}
19
+ {{> header chatBot=chatBot switch-vat=switch-vat }}
20
20
  {{/block}}
21
21
  <a id="skip-to-content"></a>
22
22
  {{#if hybrisClass}}
@@ -0,0 +1,62 @@
1
+ {{#extend "base" pageClass="trade-pro-act" title="Activate TradePro account"}}
2
+ {{#content "head" mode="append"}}
3
+ <link type="text/css" rel="stylesheet" href="./css/pages/page_act-trade-pro.css">
4
+ {{/content}}
5
+ {{#content "body"}}
6
+
7
+ <main class="container trade-pro-acc">
8
+ <div class="page-header">
9
+ <h1>Activate your TradePro account</h1>
10
+ </div>
11
+ <div class="tradepro-act-wrapper">
12
+ <form action="#" class="tradepro-act">
13
+ <div class="tradepro-act__content component">
14
+ <div class="tradepro-act__info">
15
+ <p>
16
+ Create a new password to activate your TradePro account
17
+ </p>
18
+ </div>
19
+ {{> form-row type="password" id="new-password" label="Password" required="true"}}
20
+ {{> form-row type="password" id="confirmed-password" label="Confirm password" required="true"}}
21
+ <div>
22
+ <p>
23
+ As a member of TradePro, we send our members the latest deals and offers.
24
+ </p>
25
+ <p>
26
+ Please indicate how you'd like us to send these to you:
27
+ </p>
28
+ <div class="form-row">
29
+ <div class="form-row__field">
30
+ {{> checkbox id="sendEmail" label="Email"}}
31
+ </div>
32
+ </div>
33
+ <div class="form-row">
34
+ <div class="form-row__field">
35
+ {{> checkbox id="sendSms" label="SMS" }}
36
+ </div>
37
+ </div>
38
+ <div class="form-row">
39
+ <div class="form-row__field">
40
+ {{> checkbox id="sendPhone" label="Phone" }}
41
+ </div>
42
+ </div>
43
+ <div class="form-row">
44
+ <div class="form-row__field">
45
+ {{> checkbox id="sendPost" label="Post" }}
46
+ </div>
47
+ </div>
48
+ </div>
49
+ <div class="form-row form-row__action form-row__action_act-btn-wrap">
50
+ <div class="form-row__col-btn">
51
+ <button class="btn btn-primary btn_full">
52
+ <span class="btn__text">Activate TradePro account</span>
53
+ </button>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ </form>
58
+ </div>
59
+ </main>
60
+
61
+ {{/content}}
62
+ {{/extend}}
@@ -0,0 +1,7 @@
1
+ {{#extend "pdf" hybrisClass="hybris-class" pageClass="page_my-shopping-list" title="My Project List" shoppingListPDF=true}}
2
+ {{#content "head" mode="append"}}
3
+ {{/content}}
4
+ {{#content "body"}}
5
+ {{> shopping-list-pdf switch-vat=true}}
6
+ {{/content}}
7
+ {{/extend}}
@@ -97,7 +97,7 @@
97
97
  <span class="header-top-line__link-title">Project list</span>
98
98
  </a>
99
99
  {{else}}
100
- <a href="./page_my-shopping-list.html" class="header-top-line__link">
100
+ <a href="{{#if switch-vat}}./page_project-list-vat.html{{else}}./page_my-shopping-list.html{{/if}}" class="header-top-line__link">
101
101
  <span class="btn__text">
102
102
  <i class="fas fa-clipboard-list fa-lg"></i>
103
103
  </span>
@@ -3,50 +3,11 @@
3
3
  background: $gray-bg;
4
4
  padding: 20px;
5
5
 
6
- & .step1-inactive {
7
- width: 100%;
8
- flex-wrap: wrap;
9
- }
10
-
11
6
  &__title {
12
7
  font-weight: 500;
13
8
  margin-bottom: 13px;
14
9
  }
15
10
 
16
- &__waste {
17
- width: 100%;
18
- text-align: right;
19
- font-size: .875rem;
20
- font-weight: 400;
21
- line-height: 1;
22
- justify-content: flex-end;
23
- margin-bottom: 0;
24
- padding-bottom: 5px;
25
-
26
- .ti__total:not(.ti__total-waste) & {
27
- display: none;
28
- }
29
- }
30
-
31
- &__row {
32
- width: 100%;
33
- display: flex;
34
- justify-content: space-between;
35
- padding-bottom: 5px;
36
-
37
- &-specification {
38
- font-size: .875rem;
39
- font-weight: 700;
40
- line-height: 22px;
41
- }
42
-
43
- &-value {
44
- font-size: .875rem;
45
- font-weight: 400;
46
- line-height: 22px;
47
- }
48
- }
49
-
50
11
  &__accordion-wrap {
51
12
  color: $black;
52
13
  }
@@ -156,12 +117,6 @@
156
117
  font-size: 1rem;
157
118
  font-weight: 500;
158
119
  line-height: 24px;
159
-
160
- .ti__step1-inactive & {
161
- font-size: .875rem;
162
- font-weight: 700;
163
- line-height: 22px;
164
- }
165
120
  }
166
121
 
167
122
  &__form-row {
@@ -200,10 +155,6 @@
200
155
  background: $gray-bg;
201
156
  padding: 5px 20px;
202
157
 
203
- .ti__step1-inactive & {
204
- padding: 0 20px;
205
- }
206
-
207
158
  &::before {
208
159
  content: '';
209
160
  display: block;
@@ -251,10 +202,6 @@
251
202
  display: none;
252
203
  }
253
204
 
254
- .ti__step1-inactive & {
255
- padding: 8px 15px;
256
- }
257
-
258
205
  &-value {
259
206
  font-size: 1.125rem;
260
207
  line-height: 24px;
@@ -1,7 +1,4 @@
1
- @import './tile-banner';
1
+ @import '../helpers/helpers';
2
2
  @import './tile-product';
3
- @import './tile-why-wickes';
4
- @import './ti-header';
5
3
  @import './ti-floor';
6
4
  @import './ti-total-area';
7
- @import './ti-radio';