wickes-css2 2.105.0-develop.4 → 2.105.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 (42) hide show
  1. package/build/css/pages/tradePro-rewards.css +1 -1
  2. package/build/js/basket.min.js +1 -1
  3. package/build/js/bundle.min.js +1 -1
  4. package/build/js/checkout.min.js +1 -1
  5. package/build/js/emulation.min.js +3 -2
  6. package/build/js/merged-checkout.min.js +1 -1
  7. package/build/js/my-account.min.js +1 -1
  8. package/build/js/page/share-project-list.js +57 -0
  9. package/build/js/page/tradePro-rewards.js +69 -39
  10. package/build/js/page/utils/copy-to-clipboard.js +79 -47
  11. package/build/js/project-list.min.js +143 -85
  12. package/build/js/tradePro-rewards.min.js +1 -1
  13. package/package.json +1 -1
  14. package/src/components/.DS_Store +0 -0
  15. package/src/js/emulation/project-list-pdp.js +2 -3
  16. package/src/js/page/share-project-list.js +57 -0
  17. package/src/js/page/tradePro-rewards.js +69 -39
  18. package/src/js/page/utils/copy-to-clipboard.js +79 -47
  19. package/src/page_empty-shared-project-list-bicester-hub.html +1 -0
  20. package/src/page_empty-shopping-list_guest.html +1 -0
  21. package/src/page_my-shopping-list-add-notes.html +1 -0
  22. package/src/page_my-shopping-list-energy.html +1 -0
  23. package/src/page_my-shopping-list-hide-download.html +2 -1
  24. package/src/page_my-shopping-list-pdf.html +2 -0
  25. package/src/page_my-shopping-list-saved-ref.html +1 -0
  26. package/src/page_my-shopping-list-wisdom-oos-registered.html +1 -0
  27. package/src/page_my-shopping-list-wisdom-oos.html +1 -0
  28. package/src/page_my-shopping-list-wisdom-partial-registered.html +1 -0
  29. package/src/page_my-shopping-list-wisdom-registered.html +1 -0
  30. package/src/page_my-shopping-list-wisdom.html +1 -0
  31. package/src/page_my-shopping-list.html +1 -0
  32. package/src/page_my-shopping-list_not-register.html +3 -0
  33. package/src/page_project-list-generate-project-list-ID.html +3 -0
  34. package/src/page_project-list-vat.html +4 -0
  35. package/src/page_project-list-with-new-share-popup-android.html +2 -1
  36. package/src/page_project-list-with-new-share-popup-ios.html +2 -1
  37. package/src/page_project-list-with-new-share-popup.html +1 -1
  38. package/src/page_shared-project-list-bicester-hub.html +2 -1
  39. package/src/scss/pages/tradePro-rewards.scss +1 -1
  40. package/build/js/plp-filters.min.js +0 -9
  41. package/build/js/search-filter.min.js +0 -1
  42. package/src/js/components/share-project-list.js +0 -53
@@ -1,53 +0,0 @@
1
- var Wick = Wick || {};
2
- Wick.ShareProjectList = (function () {
3
-
4
- function init() {
5
- var shoppingListLinkInput = $('#share-list-modal #shopping-list-link'),
6
- shoppingListLinkEl = shoppingListLinkInput[0],
7
- linkContainer = $('#copy-link'),
8
- actualLink = linkContainer.find('a'),
9
- copyClass = 'copy-link_hovered';
10
-
11
- actualLink.click(function (e) {
12
- e.preventDefault();
13
- });
14
-
15
- linkContainer.click(function () {
16
- if (navigator.userAgent.match(/TradeProMobile_iOS|DIYMobile_iOS/i)) {
17
- iosCopyToClipboard(shoppingListLinkInput);
18
- } else if (navigator.userAgent.match(/ipad|ipod|iphone/i)) {
19
- shoppingListLinkEl.select();
20
- shoppingListLinkEl.setSelectionRange(0, 999999);
21
- } else {
22
- shoppingListLinkEl.select();
23
- }
24
-
25
- document.execCommand("copy");
26
- actualLink.addClass(copyClass);
27
- });
28
-
29
- shoppingListLinkInput.click(function () {
30
- linkContainer.click();
31
- actualLink.removeClass(copyClass);
32
- });
33
- }
34
-
35
- function iosCopyToClipboard($input) {
36
- var el = $input.get(0);
37
- var editable = el.contentEditable;
38
- var readOnly = el.readOnly;
39
-
40
- el.contentEditable = true;
41
- el.readOnly = false;
42
- var range = document.createRange();
43
- range.selectNodeContents(el);
44
- var sel = window.getSelection();
45
- sel.removeAllRanges();
46
- sel.addRange(range);
47
- el.setSelectionRange(0, 999999);
48
- el.contentEditable = editable;
49
- el.readOnly = readOnly;
50
- }
51
-
52
- init();
53
- })();