wickes-css2 2.97.0-IM-1593-code-width.1 → 2.97.0-develop.2

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 (102) hide show
  1. package/build/css/category-main.css +1 -1
  2. package/build/css/components/tile-calculator.css +1 -1
  3. package/build/css/main.css +1 -1
  4. package/build/css/my-account-main-v2.css +1 -1
  5. package/build/css/my-account-main.css +1 -1
  6. package/build/css/pages/page_address-book.css +1 -0
  7. package/build/css/pages/page_change-password.css +1 -0
  8. package/build/css/pages/page_ti.css +1 -1
  9. package/build/css/pages/tradePro-rewards.css +1 -1
  10. package/build/css/pdp-main-before-combine.css +1 -1
  11. package/build/css/pdp-main-critical.css +1 -1
  12. package/build/css/pdp-main-non-critical.css +1 -1
  13. package/build/css/pdp-main.css +1 -1
  14. package/build/js/account-members.min.js +1 -1
  15. package/build/js/add-project-list-id.min.js +1 -1
  16. package/build/js/address-book.min.js +1 -0
  17. package/build/js/basket.min.js +2 -2
  18. package/build/js/bundle.min.js +1 -1
  19. package/build/js/change-password.min.js +1 -0
  20. package/build/js/checkout.min.js +2 -2
  21. package/build/js/emulation.min.js +7 -10
  22. package/build/js/energy-efficiency.min.js +1 -1
  23. package/build/js/general.bundle.min.js +1 -1
  24. package/build/js/global-search.min.js +1 -1
  25. package/build/js/merged-checkout.min.js +2 -2
  26. package/build/js/page/address-book.js +193 -0
  27. package/build/js/page/change-password.js +118 -0
  28. package/build/js/page/utils/errorMesages.js +14 -0
  29. package/build/js/page/utils/helpers.js +18 -0
  30. package/build/js/page/utils/validation.js +5 -1
  31. package/build/js/pdp.bundle.min.js +1 -1
  32. package/build/js/personal-details.min.js +1 -1
  33. package/build/js/plp.bundle.min.js +1 -1
  34. package/build/js/project-list.min.js +6 -2
  35. package/build/js/pstrength.min.js +161 -0
  36. package/build/js/quiz.min.js +1 -1
  37. package/build/js/track-my-order.min.js +1 -1
  38. package/package.json +10 -2
  39. package/src/components/address-card.hbs +40 -0
  40. package/src/components/base/link.hbs +13 -0
  41. package/src/components/leave-modal.hbs +13 -0
  42. package/src/components/my-account/delete-address-modal.hbs +23 -0
  43. package/src/components/my-account/leave-modal.hbs +1 -1
  44. package/src/components/pdp-info-v2.hbs +37 -0
  45. package/src/components/price-block-order.hbs +0 -1
  46. package/src/components/shopping-list-pdf.hbs +7 -37
  47. package/src/components/ti-header.hbs +34 -0
  48. package/src/components/ti-radio.hbs +57 -0
  49. package/src/components/ti-total-area.hbs +32 -0
  50. package/src/components/ti.hbs +791 -0
  51. package/src/components/tile-banner.hbs +13 -0
  52. package/src/components/tile-why-wickes.hbs +32 -0
  53. package/src/components/voucher.hbs +7 -6
  54. package/src/data/data_flooring-installation.json +186 -0
  55. package/src/data/data_voucher_tradePro.json +1 -1
  56. package/src/data/my-account/data_address-book.json +225 -0
  57. package/src/data/my-account/data_change-password.json +85 -0
  58. package/src/elements/form-row.hbs +11 -2
  59. package/src/js/components/general/switchVat.js +0 -11
  60. package/src/js/components/leave-event.js +2 -0
  61. package/src/js/components/pwdstrength.js +21 -0
  62. package/src/js/components/toggle-password-visibility.js +58 -0
  63. package/src/js/emulation/checkout_your-details.js +5 -5
  64. package/src/js/emulation/forms.js +1 -1
  65. package/src/js/emulation/project-list-print.js +1 -4
  66. package/src/js/libs/jquery.pstrength.custom-1.2.0.js +161 -0
  67. package/src/js/page/address-book.js +193 -0
  68. package/src/js/page/change-password.js +118 -0
  69. package/src/js/page/utils/errorMesages.js +14 -0
  70. package/src/js/page/utils/helpers.js +18 -0
  71. package/src/js/page/utils/validation.js +5 -1
  72. package/src/layouts/base.hbs +1 -1
  73. package/src/page_my-account_address-book-form.html +94 -0
  74. package/src/page_my-account_address-book.html +47 -24
  75. package/src/page_my-account_address-book_tradePro.html +45 -18
  76. package/src/page_my-account_change-password.html +62 -29
  77. package/src/page_personal-details-installer.html +6 -4
  78. package/src/page_personal-details.html +2 -0
  79. package/src/partials/header.hbs +1 -1
  80. package/src/scss/common/_common.scss +8 -0
  81. package/src/scss/components/_cards-slider.scss +0 -26
  82. package/src/scss/components/_leave-modal.scss +75 -0
  83. package/src/scss/components/_price-block-critical.scss +3 -3
  84. package/src/scss/components/_price-block.scss +8 -3
  85. package/src/scss/components/_rewards.scss +0 -20
  86. package/src/scss/components/_ti-header.scss +43 -0
  87. package/src/scss/components/_ti-radio.scss +142 -0
  88. package/src/scss/components/_ti-total-area.scss +53 -0
  89. package/src/scss/components/_tile-banner.scss +141 -0
  90. package/src/scss/components/_tile-why-wickes.scss +57 -0
  91. package/src/scss/components/tile-calculator.scss +4 -1
  92. package/src/scss/helpers/_mixins.scss +8 -0
  93. package/src/scss/libs/_pstrength.scss +34 -0
  94. package/src/scss/pages/_my-account_change-password.scss +0 -2
  95. package/src/scss/pages/page_address-book.scss +356 -0
  96. package/src/scss/pages/page_change-password.scss +147 -0
  97. package/src/scss/pages/page_ti.scss +719 -3
  98. package/src/scss/pages/tradePro-rewards.scss +1 -0
  99. package/src/sitemap.html +3 -4
  100. package/src/page_activate-trade-pro-api-flow.html +0 -62
  101. package/src/page_my-shopping-list-pdf-vat.html +0 -7
  102. /package/src/components/{button.hbs → base/button.hbs} +0 -0
@@ -0,0 +1,13 @@
1
+ <div class="tile-estimation__banner">
2
+ <img src="./img/wickes-logo.svg" alt="logo" class="tile-estimation__banner-logo">
3
+ <div class="tile-estimation__banner-info">
4
+ <h3 class="tile-estimation__banner-header">
5
+ Calculate the cost of your complete tiling project
6
+ with our no-obligation tile estimation tool.
7
+ </h3>
8
+ <p class="tile-estimation__banner-text">
9
+ From your chosen tiles to installation guaranteed by us,
10
+ we offer a complete tiling service.
11
+ </p>
12
+ </div>
13
+ </div>
@@ -0,0 +1,32 @@
1
+ <div class="why-wickes">
2
+ <h4 class="why-wickes__header">
3
+ Why Wickes?
4
+ </h4>
5
+ <ul class="why-wickes__list">
6
+ <li class="why-wickes__item">
7
+ <i class="fas fa-check-circle why-wickes__bullet"></i>
8
+ <p class="why-wickes__info">
9
+ Our approved installer will complete a technical survey prior to installation
10
+ </p>
11
+ </li>
12
+ <li class="why-wickes__item">
13
+ <i class="fas fa-check-circle why-wickes__bullet"></i>
14
+ <p class="why-wickes__info">
15
+ We provide a 2-year guarantee on workmanship
16
+ </p>
17
+ </li>
18
+ <li class="why-wickes__item">
19
+ <i class="fas fa-check-circle why-wickes__bullet"></i>
20
+ <p class="why-wickes__info">
21
+ We dispose of your old tiles in an environmentally-friendly way
22
+ </p>
23
+ </li>
24
+ <li class="why-wickes__item">
25
+ <i class="fas fa-check-circle why-wickes__bullet"></i>
26
+ <p class="why-wickes__info">
27
+ Your installation estimate includes adhesive, plastic trim and standard
28
+ grout colours to finish your tiling job
29
+ </p>
30
+ </li>
31
+ </ul>
32
+ </div>
@@ -34,19 +34,20 @@
34
34
  {{!-- online --}}
35
35
  <span class="voucher__label">{{online.label}}</span>
36
36
  <div class="voucher__content">
37
- {{#if online.title}}
38
- <h4 class="mb-0">{{online.title}}</h4>
39
- {{/if}}
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>
40
43
  <div class="my-3">
41
44
  <div class="voucher__code-field copy-tradePro-barcode">
42
- <span>{{online.code}}</span>
43
- <input type="hidden" value="{{online.code}}" disabled>
45
+ <input type="text" value="{{online.code}}" disabled>
44
46
  <span class="icon">
45
47
  <i class="fas fa-copy"></i>
46
48
  </span>
47
49
  </div>
48
50
  </div>
49
- <p class="mb-3">{{online.note}}</p>
50
51
  {{#ifCond online.buttonLink "&&" online.buttonText}}
51
52
  <a href="{{online.buttonLink}}" class="btn btn-primary">
52
53
  <span class="btn__text">{{online.buttonText}}</span>
@@ -0,0 +1,186 @@
1
+ {
2
+ "flooring-installation": {
3
+ "step2": {
4
+ "removalExist": [
5
+ {
6
+ "label": "Existing laminate or wooden floor",
7
+ "id": "removal-exist-yes-lam"
8
+ },
9
+ {
10
+ "label": "Existing glued or tiled floor",
11
+ "id": "removal-exist-yes-tile"
12
+ },
13
+ {
14
+ "label": "Not needed",
15
+ "id": "removal-exist-no"
16
+ }
17
+ ],
18
+ "removalWaste": [
19
+ {
20
+ "label": "Yes",
21
+ "id": "removal-waste-yes"
22
+ },
23
+ {
24
+ "label": "No",
25
+ "id": "removal-waste-no"
26
+ }
27
+ ],
28
+ "leveling": [
29
+ {
30
+ "label": "Yes",
31
+ "id": "leveling-yes"
32
+ },
33
+ {
34
+ "label": "No",
35
+ "id": "leveling-no"
36
+ },
37
+ {
38
+ "label": "Unsure",
39
+ "id": "leveling-unsure"
40
+ }
41
+ ],
42
+ "additionLeveling": [
43
+ {
44
+ "label": "Wooden floating floor",
45
+ "id": "wooden"
46
+ },
47
+ {
48
+ "label": "Concrete",
49
+ "id": "concrete"
50
+ }
51
+ ],
52
+ "threshold": {
53
+ "radio": [
54
+ {
55
+ "label": "Yes",
56
+ "id": "threshold-yes"
57
+ },
58
+ {
59
+ "label": "No",
60
+ "id": "threshold-no"
61
+ }
62
+ ],
63
+ "cards": [
64
+ {
65
+ "title": "Shimba/Alberto/Salerno Variable Height Threshold Bar - 900mm Shimba / Alberto / Salerno Variable Height Threshold Bar",
66
+ "src": "https://media.wickes.co.uk/is/image/wickes/W6149_201521_00?id=WFNRV0&fmt=jpg&fit=constrain,1&wid=348&hei=275",
67
+ "price": 10,
68
+ "quantity": 1,
69
+ "badge": "2 for £40",
70
+ "description": [
71
+ "Length: 900 mm",
72
+ "Material: Plastic",
73
+ "Self Adhesive Base - No Drilling or Nailing required",
74
+ "Ideal for single door"
75
+ ]
76
+ },
77
+ {
78
+ "title": "Wickes Carpet To Laminate Joint Trim Silver",
79
+ "src": "https://media.wickes.co.uk/is/image/wickes/W6149_201521_00?id=WFNRV0&fmt=jpg&fit=constrain,1&wid=348&hei=275",
80
+ "price": 4.50,
81
+ "quantity": 1,
82
+ "description": [
83
+ "Length: 900 mm",
84
+ "Material: Metal",
85
+ "Ideal for single door"
86
+ ]
87
+ }
88
+ ]
89
+ },
90
+ "trimming": {
91
+ "radio": [
92
+ {
93
+ "label": "Yes",
94
+ "id": "trimming-yes"
95
+ },
96
+ {
97
+ "label": "No",
98
+ "id": "trimming-no"
99
+ },
100
+ {
101
+ "label": "Unsure",
102
+ "id": "trimming-unsure"
103
+ }
104
+ ]
105
+ },
106
+ "scotia": {
107
+ "radio": [
108
+ {
109
+ "label": "Yes",
110
+ "id": "scotia-yes"
111
+ },
112
+ {
113
+ "label": "No",
114
+ "id": "scotia-no"
115
+ }
116
+ ],
117
+ "cards": [
118
+ {
119
+ "title": "Vitrex White Flooring Trim - 2m",
120
+ "src": "https://media.wickes.co.uk/is/image/wickes/C1875_121198_00?$normal$",
121
+ "price": 5,
122
+ "quantity": 1,
123
+ "quantity-sqm": 25,
124
+ "description": [
125
+ "Length: 2m",
126
+ "Material: MDF",
127
+ "Simple to fit"
128
+ ]
129
+ },
130
+ {
131
+ "title": "Shimba/Alberto/Salerno Oak Laminate Flooring Trim - 2m",
132
+ "src": "https://media.wickes.co.uk/is/image/wickes/C1875_121198_00?$normal$",
133
+ "price": 6,
134
+ "quantity": 1,
135
+ "quantity-sqm": 25,
136
+ "description": [
137
+ "Length: 2m",
138
+ "Material: MDF",
139
+ "For use with Laminate, Engineered & Solid Wood",
140
+ "Simple to fit"
141
+ ]
142
+ }
143
+ ]
144
+ },
145
+ "underlay": {
146
+ "radio": [
147
+ {
148
+ "label": "Yes",
149
+ "id": "underlay-yes"
150
+ },
151
+ {
152
+ "label": "No",
153
+ "id": "underlay-no"
154
+ }
155
+ ],
156
+ "cards": [
157
+ {
158
+ "title": "Arbiton PE Foam Flooring Underlay - 15m Pack",
159
+ "src": "https://media.wickes.co.uk/is/image/wickes/W6149_620801_00?$normal$",
160
+ "price": 15,
161
+ "quantity": 2,
162
+ "quantity-sqm": 25,
163
+ "badge": "2 for £40",
164
+ "description": [
165
+ "Material: Foam",
166
+ "Suitable for both timber and concrete substrates",
167
+ "Strong thermal resistance - 0.4 Tog, ideal for cold rooms or flats"
168
+ ]
169
+ },
170
+ {
171
+ "title": "Wickes Carpet To Laminate Joint Trim Silver",
172
+ "src": "https://media.wickes.co.uk/is/image/wickes/W6149_620801_00?$normal$",
173
+ "price": 26,
174
+ "quantity": 2,
175
+ "quantity-sqm": 25,
176
+ "description": [
177
+ "Material: XPS",
178
+ "Suitable for both timber and concrete substrates",
179
+ "High compressive strength up to 90 kpa which is ideal for click systems"
180
+ ]
181
+ }
182
+ ]
183
+ }
184
+ }
185
+ }
186
+ }
@@ -41,7 +41,7 @@
41
41
  "label": "Online-only",
42
42
  "title": "TradePro custom title",
43
43
  "note": "Don't forget to use this code on checkout",
44
- "code": "TPRNUR19-E9X9-XK2B",
44
+ "code": "WPRAJU119",
45
45
  "buttonText": "Shop now",
46
46
  "buttonLink": "#"
47
47
  },
@@ -0,0 +1,225 @@
1
+ {
2
+ "address_book": {
3
+ "leave-popup": {
4
+ "title": "Your address won’t be saved",
5
+ "headerIcon": "fas fa-exclamation-circle",
6
+ "description": "Are you sure you want to continue?",
7
+ "actions": {
8
+ "mod": "actions",
9
+ "buttons": [
10
+ {
11
+ "title": "Cancel",
12
+ "data-action": "cancel-reset",
13
+ "isPrimary": true,
14
+ "close-modal": true
15
+ },
16
+ {
17
+ "mod": "btn-continue",
18
+ "data-action": "reset-details",
19
+ "title": "Yes, continue",
20
+ "isSecondary": true,
21
+ "url": "/page_my-account_address-book.html"
22
+ }
23
+ ]
24
+ }
25
+ },
26
+ "breadcrumbs": [
27
+ {
28
+ "url": "/",
29
+ "text": "Home"
30
+ },
31
+ {
32
+ "url": "/page_my-account.html",
33
+ "text": "My Account"
34
+ },
35
+ {
36
+ "url": "/page_my-account_address-book.html",
37
+ "text": "Address Book"
38
+ }
39
+ ],
40
+ "addresses": [
41
+ {
42
+ "id": "0",
43
+ "default": true,
44
+ "type": {
45
+ "name": "Delivery",
46
+ "icon": "fas fa-house-user"
47
+ },
48
+ "details": {
49
+ "fullName": "Mr John Smith",
50
+ "firstAddress": "G R G Storage Ltd",
51
+ "secondAddress": "G R G House",
52
+ "street": "Cobden Street",
53
+ "city": "Salford",
54
+ "postcode": "M6 6NA",
55
+ "country": "United Kingdom",
56
+ "mobPhone": "07700900000",
57
+ "homePhone": "07700979124"
58
+ },
59
+ "customAttrForDelete": "data-link='remove-address/0'"
60
+ },
61
+ {
62
+ "id": "1",
63
+ "default": false,
64
+ "type": {
65
+ "name": "Delivery",
66
+ "icon": "fas fa-house-user"
67
+ },
68
+ "details": {
69
+ "fullName": "Mr John Smith",
70
+ "firstAddress": "G R G Storage Ltd",
71
+ "secondAddress": "G R G House",
72
+ "street": "Cobden Street",
73
+ "city": "Salford",
74
+ "postcode": "M6 6NA",
75
+ "country": "United Kingdom",
76
+ "mobPhone": "07700900000",
77
+ "homePhone": "07700979124"
78
+ },
79
+ "customAttrForDelete": "data-link='remove-address/1'"
80
+ },
81
+ {
82
+ "id": "2",
83
+ "default": false,
84
+ "type": {
85
+ "name": "Delivery",
86
+ "icon": "fas fa-house-user"
87
+ },
88
+ "details": {
89
+ "fullName": "Mr John Smith",
90
+ "firstAddress": "G R G Storage Ltd",
91
+ "secondAddress": "G R G House",
92
+ "street": "Cobden Street",
93
+ "city": "Salford",
94
+ "postcode": "M6 6NA",
95
+ "country": "United Kingdom",
96
+ "mobPhone": "07700900000",
97
+ "homePhone": "07700979124"
98
+ },
99
+ "customAttrForDelete": "data-link='remove-address/2'"
100
+ }
101
+ ],
102
+ "tradeProAddress": {
103
+ "isBusinessAddress": true,
104
+ "type": {
105
+ "name": "Business",
106
+ "icon": "fas fa-hard-hat"
107
+ },
108
+ "details": {
109
+ "fullName": "Mr John Smith",
110
+ "firstAddress": "G R G Storage Ltd",
111
+ "secondAddress": "G R G House",
112
+ "street": "Cobden Street",
113
+ "city": "Salford",
114
+ "postcode": "M6 6NA",
115
+ "country": "United Kingdom",
116
+ "mobPhone": "07700900000",
117
+ "homePhone": "07700979124"
118
+ }
119
+ },
120
+ "deleteAddressModal": {
121
+ "headerIcon": "fas fa-trash",
122
+ "title": "Would you like to delete this delivery address?",
123
+ "infoIcon": "fas fa-exclamation-circle",
124
+ "infoDescription": "You will not be able to undo this action.",
125
+ "actions": {
126
+ "mod": "actions",
127
+ "buttons": [
128
+ {
129
+ "title": "Cancel",
130
+ "data-action": "cancel-delete",
131
+ "isPrimary": true,
132
+ "close-modal": true
133
+ },
134
+ {
135
+ "mod": "btn-continue",
136
+ "data-action": "delete-address",
137
+ "title": "Yes, delete",
138
+ "isSecondary": true
139
+ }
140
+ ]
141
+ }
142
+ },
143
+ "addressFields": [
144
+ {
145
+ "type": "dropdown",
146
+ "dropdown": true,
147
+ "id": "titleCode",
148
+ "label": "Title",
149
+ "rowMod": "row-title",
150
+ "required": true,
151
+ "options": [
152
+ { "value": "mr", "label": "Mr" },
153
+ { "value": "mrs", "label": "Mrs" },
154
+ { "value": "dr", "label": "Dr" }
155
+ ],
156
+ "selectedIndex": "0"
157
+ },
158
+ {
159
+ "type": "text",
160
+ "id": "firstName",
161
+ "label": "First name",
162
+ "value": "",
163
+ "required": true
164
+ },
165
+ {
166
+ "type": "text",
167
+ "id": "lastName",
168
+ "label": "Surname",
169
+ "value": "",
170
+ "required": true
171
+ },
172
+ {
173
+ "type": "text",
174
+ "id": "address-lookup-query",
175
+ "label": "Type first line of the address",
176
+ "value": "",
177
+ "required": true
178
+ },
179
+ {
180
+ "type": "text",
181
+ "id": "mobile-telephone",
182
+ "label": "Mobile telephone",
183
+ "value": "",
184
+ "required": true
185
+ },
186
+ {
187
+ "type": "text",
188
+ "id": "home-telephone",
189
+ "label": "Home telephone",
190
+ "value": "",
191
+ "required": false
192
+ }
193
+ ],
194
+ "hideFields": [
195
+ {
196
+ "type": "text",
197
+ "id": "address-line-1",
198
+ "label": "Address line 1",
199
+ "value": "",
200
+ "required": true
201
+ },
202
+ {
203
+ "type": "text",
204
+ "id": "address-line-2",
205
+ "label": "Address line 2",
206
+ "value": "",
207
+ "required": false
208
+ },
209
+ {
210
+ "type": "text",
211
+ "id": "town-city",
212
+ "label": "Town / City",
213
+ "value": "",
214
+ "required": true
215
+ },
216
+ {
217
+ "type": "text",
218
+ "id": "postcode_additional",
219
+ "label": "Postcode",
220
+ "value": "",
221
+ "required": true
222
+ }
223
+ ]
224
+ }
225
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "change_password": {
3
+ "leave-popup": {
4
+ "title": "Your password won’t be saved",
5
+ "headerIcon": "fas fa-exclamation-circle",
6
+ "description": "Are you sure you want to continue?",
7
+ "actions": {
8
+ "mod": "actions",
9
+ "buttons": [
10
+ {
11
+ "title": "Cancel",
12
+ "data-action": "cancel-reset",
13
+ "isPrimary": true,
14
+ "close-modal": true
15
+ },
16
+ {
17
+ "mod": "btn-continue",
18
+ "data-action": "reset-details",
19
+ "title": "Yes, continue",
20
+ "isSecondary": true,
21
+ "link": "./page_my-account_change-password.html"
22
+ }
23
+ ]
24
+ }
25
+ },
26
+ "breadcrumbs": [
27
+ {
28
+ "url": "/",
29
+ "text": "Home"
30
+ },
31
+ {
32
+ "url": "/page_my-account.html",
33
+ "text": "My Account"
34
+ },
35
+ {
36
+ "url": "/page_personal-details.html",
37
+ "text": "Personal Details"
38
+ },
39
+ {
40
+ "url": "/page_my-account_change-password.html",
41
+ "text": "Change Password"
42
+ }
43
+ ],
44
+ "fields": [
45
+ {
46
+ "type": "password",
47
+ "id": "currentPassword",
48
+ "label": "Current password",
49
+ "value": "",
50
+ "required": true,
51
+ "showPassword": {
52
+ "idToggleIcon": "toggleIcon",
53
+ "classCustomIcon": "fas fa-eye fa-eye-slash",
54
+ "idCustomIcon": "eyeIcon"
55
+ }
56
+ },
57
+ {
58
+ "type": "password",
59
+ "id": "newPassword",
60
+ "label": "New password",
61
+ "value": "",
62
+ "required": true,
63
+ "info": "Minimum length is 6 characters",
64
+ "modificator": "strength",
65
+ "showPassword": {
66
+ "idToggleIcon": "toggleIcon",
67
+ "classCustomIcon": "fas fa-eye fa-eye-slash",
68
+ "idCustomIcon": "eyeIcon"
69
+ }
70
+ },
71
+ {
72
+ "type": "password",
73
+ "id": "confirmPassword",
74
+ "label": "Confirm new password",
75
+ "value": "",
76
+ "required": true,
77
+ "showPassword": {
78
+ "idToggleIcon": "toggleIcon",
79
+ "classCustomIcon": "fas fa-eye fa-eye-slash",
80
+ "idCustomIcon": "eyeIcon"
81
+ }
82
+ }
83
+ ]
84
+ }
85
+ }
@@ -1,4 +1,4 @@
1
- <div class="form-row {{#if clearInput}}form-row--clear-input{{/if}} {{#if error}}form-row_validation-error{{/if}} {{#if locked}}form-row--locked{{/if}} {{row-mod}}" {{#if required}}data-row-required{{/if}} {{#if clearInput}}data-clearable{{/if}} data-form-field>
1
+ <div class="form-row {{#if clearInput}}form-row--clear-input{{/if}} {{#if error}}form-row_validation-error{{/if}} {{#if locked}}form-row--locked{{/if}} {{row-mod}}" {{#if required}}data-row-required{{/if}} {{#if clearInput}}data-clearable{{/if}} {{#if showContent}}data-show-content{{/if}} data-form-field>
2
2
  <label class="form-row__label {{#if required}}form-row__label_required{{/if}} {{#if label-hidden}}sr-only{{/if}}" for="{{id}}">
3
3
  {{label}}
4
4
  {{#if tooltip}}
@@ -14,7 +14,16 @@
14
14
  {{/if}}
15
15
  <div class="form-row__field">
16
16
  {{#unless dropdown}}
17
- {{> input placeholder=placeholder}}
17
+ {{#if showContent}}
18
+ <div class="input-wrap">
19
+ <span class="toggle-show" id="{{showContent.idToggleIcon}}">
20
+ <i class="{{showContent.classCustomIcon}}" id="{{showContent.idCustomIcon}}"></i>
21
+ </span>
22
+ {{> input placeholder=placeholder}}
23
+ </div>
24
+ {{else}}
25
+ {{> input placeholder=placeholder}}
26
+ {{/if}}
18
27
  {{#if clearInput}}
19
28
  <button class="btn btn-secondary btn--clear" type="button">
20
29
  <i class="icon far fa-times fa-lg"></i>
@@ -125,18 +125,7 @@ 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
-
137
128
  init: function() {
138
- Wick.VatToggle.rerenderCheckbox();
139
-
140
129
  const isVatShouldBeToggled = Wick.VatToggle.isOn();
141
130
  const isVatToggled = !!Wick.VatToggle.getSwitcherState();
142
131
 
@@ -47,6 +47,8 @@ Wick.LeaveEvent = {
47
47
  return arrForm;
48
48
  },
49
49
  processSerializedArr(arrForm, form) {
50
+ arrForm = arrForm.filter(item => item.name !== "g-recaptcha-response");
51
+
50
52
  arrForm = arrForm.map((item) => {
51
53
  let element = $(form).find(`[name="${item.name}"]`);
52
54
 
@@ -0,0 +1,21 @@
1
+ var Wick = window.Wick || {};
2
+
3
+ Wick.Pwdstrength = {
4
+ el: {
5
+ $crossIcon: $("#crossIcon")
6
+ },
7
+ bindPStrength : function () {
8
+ $('.strength').pstrength({ verdicts: [
9
+ 'Very weak',
10
+ 'Weak',
11
+ 'Medium',
12
+ 'Strong',
13
+ 'Very strong'
14
+ ],
15
+ tooShort: 'Too short',
16
+ minCharText: 'Minimum length is %d characters' });
17
+ },
18
+ init() {
19
+ Wick.Pwdstrength.bindPStrength();
20
+ },
21
+ };