@sapui5/sap.webanalytics.core 1.84.0 → 1.84.3

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 (50) hide show
  1. package/package.json +1 -1
  2. package/src/sap/webanalytics/core/.library +1 -1
  3. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/Component.js +1 -1
  4. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_ar.properties +0 -19
  5. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_bg.properties +0 -19
  6. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_ca.properties +0 -19
  7. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_cs.properties +0 -19
  8. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_cy.properties +28 -0
  9. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_da.properties +0 -19
  10. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_de.properties +0 -19
  11. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_el.properties +0 -19
  12. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_en.properties +0 -19
  13. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_en_GB.properties +0 -19
  14. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_es.properties +0 -19
  15. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_es_MX.properties +9 -28
  16. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_et.properties +0 -19
  17. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_fi.properties +1 -20
  18. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_fr.properties +0 -19
  19. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_fr_CA.properties +28 -0
  20. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_hi.properties +0 -19
  21. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_hr.properties +0 -19
  22. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_hu.properties +0 -19
  23. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_id.properties +28 -0
  24. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_it.properties +0 -19
  25. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_iw.properties +0 -19
  26. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_ja.properties +0 -19
  27. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_kk.properties +0 -19
  28. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_ko.properties +0 -19
  29. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_lt.properties +0 -19
  30. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_lv.properties +0 -19
  31. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_ms.properties +0 -19
  32. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_nl.properties +0 -19
  33. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_no.properties +0 -19
  34. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_pl.properties +0 -19
  35. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_pt.properties +0 -19
  36. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_pt_PT.properties +28 -0
  37. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_ro.properties +0 -19
  38. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_ru.properties +0 -19
  39. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_sh.properties +0 -19
  40. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_sk.properties +0 -19
  41. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_sl.properties +0 -19
  42. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_sv.properties +0 -19
  43. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_th.properties +0 -19
  44. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_tr.properties +0 -19
  45. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_uk.properties +0 -19
  46. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_vi.properties +0 -19
  47. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_zh_CN.properties +0 -19
  48. package/src/sap/webanalytics/core/SAPWebAnalyticsFLPPlugin/i18n/i18n_zh_TW.properties +0 -19
  49. package/src/sap/webanalytics/core/library.js +2 -2
  50. package/src/sap/webanalytics/core/tracker/js/track.js +22 -38
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * SAPUI5
3
- * (c) Copyright 2009-2020 SAP SE. All rights reserved.
3
+ * (c) Copyright 2009-2022 SAP SE. All rights reserved.
4
4
  */
5
5
 
6
6
  /**
@@ -30,7 +30,7 @@ sap.ui.define(['jquery.sap.global', 'sap/ui/core/library'],
30
30
  controls: [],
31
31
  elements: [],
32
32
  noLibraryCSS: true,
33
- version: "1.84.0"
33
+ version: "1.84.3"
34
34
  });
35
35
 
36
36
  return sap.webanalytics.core;
@@ -211,8 +211,6 @@
211
211
  return;
212
212
  }
213
213
 
214
- //Fetch the text
215
- getDefaultTextForConsent();
216
214
  //Get the swa.consentStyle and swa.consentOnLoad, if consentStyle popup, show pop up on load is true, show banner and pop up if tracking status is off
217
215
  if (swa.loggingEnabled == "N" || swa.loggingEnabled == "A") {
218
216
  if (swa.consentStyle == "popup" && swa.consentOnLoad) {
@@ -426,7 +424,7 @@
426
424
  swa.privacyLinkText = i18nValues[6];
427
425
  swa.anonymousConsentText = i18nValues[7];
428
426
  swa.anonymousConsentOptOutText=i18nValues[8];
429
- swa.anonymizeButtonText = defaultConsentValues[9];
427
+ swa.anonymizeButtonText = i18nValues[9];
430
428
  swa.customConsentOptionText = i18nValues[10];
431
429
  swa.trackOnStatus = i18nValues[11];
432
430
  swa.trackOffStatus = i18nValues[12];
@@ -2464,8 +2462,8 @@ banner_save(event);
2464
2462
  var isUI5 = false;
2465
2463
  var i18nurl = "";
2466
2464
  if (
2467
- (typeof swa.consentOptInText !== "undefined" ||
2468
- typeof swa.consentOptOutText !== "undefined") &&
2465
+ (swa.consentOptInText !== undefined ||
2466
+ swa.consentOptOutText !== undefined ||swa.anonymousConsentText!== undefined || swa.anonymousConsentOptOutText !== undefined) &&
2469
2467
  count < 1
2470
2468
  ) {
2471
2469
  consentTextPresent = true;
@@ -2550,22 +2548,22 @@ banner_save(event);
2550
2548
  : oBundle.TRACKING_STATUS_TEXT;
2551
2549
  }
2552
2550
 
2553
- if (typeof swa.consentOptInText === "undefined")
2551
+ if ( swa.consentOptInText === undefined)
2554
2552
  swa.consentOptInText = isUI5
2555
2553
  ? oBundle.getText("CONSENT_OPT_IN_TEXT")
2556
2554
  : oBundle.CONSENT_OPT_IN_TEXT;
2557
2555
 
2558
- if (typeof swa.consentOptOutText === "undefined")
2556
+ if ( swa.consentOptOutText === undefined)
2559
2557
  swa.consentOptOutText = isUI5
2560
2558
  ? oBundle.getText("CONSENT_OPT_OUT_TEXT")
2561
2559
  : oBundle.CONSENT_OPT_OUT_TEXT;
2562
2560
 
2563
- if (typeof swa.anonymousConsentText === "undefined")
2561
+ if (swa.anonymousConsentText === undefined)
2564
2562
  swa.anonymousConsentText = isUI5
2565
2563
  ? oBundle.getText('ANONYMOUS_CONSENT_OPT_IN_TEXT')
2566
2564
  : oBundle.ANONYMOUS_CONSENT_OPT_IN_TEXT;
2567
2565
 
2568
- if (typeof swa.anonymousConsentOptOutText === "undefined")
2566
+ if (swa.anonymousConsentOptOutText === undefined)
2569
2567
  swa.anonymousConsentOptOutText = isUI5
2570
2568
  ? oBundle.getText('ANONYMOUS_CONSENT_OPT_OUT_TEXT')
2571
2569
  : oBundle.ANONYMOUS_CONSENT_OPT_OUT_TEXT;
@@ -2643,35 +2641,21 @@ banner_save(event);
2643
2641
  }
2644
2642
 
2645
2643
  function getDefaultTextForConsent() {
2646
- if (typeof swa.consentOptInText === "undefined" || swa.consentOptOutText === "undefined" || swa.anonymousConsentOptOutText === "undefined" || swa.anonymousConsentText === "undefined") {
2647
- swa.consentOptInText = defaultConsentValues[0];
2648
- swa.consentOptOutText = defaultConsentValues[1];
2649
- swa.consentAllowButton = defaultConsentValues[2];
2650
- swa.consentDenyButton = defaultConsentValues[3];
2651
- swa.consentStopButton = defaultConsentValues[4];
2652
- swa.consentCloseButton = defaultConsentValues[5];
2653
- swa.privacyLinkText = defaultConsentValues[6];
2654
- swa.anonymousConsentText = defaultConsentValues[7];
2655
- swa.anonymousConsentOptOutText = defaultConsentValues[8];
2656
- swa.anonymizeButtonText = defaultConsentValues[9];
2657
- swa.customConsentOptionText = defaultConsentValues[10];
2658
- swa.trackOnStatus = defaultConsentValues[11];
2659
- swa.trackOffStatus = defaultConsentValues[12];
2660
- swa.trackAnonymousStatus = defaultConsentValues[13];
2661
- swa.trackingStatusText = defaultConsentValues[14];
2662
- }
2663
-
2664
- if (
2665
- swa.consentAllowButton === undefined ||
2666
- swa.consentDenyButton === undefined ||
2667
- swa.consentStopButton === undefined ||swa.anonymizeButtonText === undefined
2668
- ) {
2669
- swa.consentAllowButton = defaultConsentValues[2];
2670
- swa.consentDenyButton = defaultConsentValues[3];
2671
- swa.consentStopButton = defaultConsentValues[4];
2672
- swa.consentCloseButton = defaultConsentValues[5];
2673
- swa.anonymizeButtonText = defaultConsentValues[9];
2674
- }
2644
+ swa.consentOptInText = (swa.consentOptInText === undefined)?(i18nValues[0] == undefined ?defaultConsentValues[0]:i18nValues[0]):swa.consentOptInText;
2645
+ swa.consentOptOutText = (swa.consentOptOutText === undefined)?(i18nValues[1] == undefined ?defaultConsentValues[1]:i18nValues[1]):swa.consentOptOutText;
2646
+ swa.anonymousConsentText = (swa.anonymousConsentText === undefined)?(i18nValues[7] == undefined ?defaultConsentValues[7]:i18nValues[7]):swa.anonymousConsentText;
2647
+ swa.anonymousConsentOptOutText = (swa.anonymousConsentOptOutText === undefined)?(i18nValues[8] == undefined ?defaultConsentValues[8]:i18nValues[8]):swa.anonymousConsentOptOutText;
2648
+ swa.consentAllowButton =(swa.consentAllowButton === undefined)? (i18nValues[2] == undefined ?defaultConsentValues[2]:i18nValues[2]):swa.consentAllowButton;
2649
+ swa.consentDenyButton = (swa.consentDenyButton === undefined)? (i18nValues[3] == undefined ?defaultConsentValues[3]:i18nValues[3]):swa.consentDenyButton;
2650
+ swa.consentStopButton = (swa.consentStopButton === undefined)? (i18nValues[4] == undefined ?defaultConsentValues[4]:i18nValues[4]):swa.consentStopButton;
2651
+ swa.consentCloseButton = (swa.consentCloseButton === undefined)? (i18nValues[5] == undefined ?defaultConsentValues[5]:i18nValues[5]):swa.consentCloseButton;
2652
+ swa.privacyLinkText = (swa.privacyLinkText === undefined)? (i18nValues[6] == undefined ?defaultConsentValues[6]:i18nValues[6]):swa.privacyLinkText;
2653
+ swa.anonymizeButtonText = (swa.anonymizeButtonText === undefined)? (i18nValues[9] == undefined ?defaultConsentValues[9]:i18nValues[9]):swa.anonymizeButtonText;
2654
+ swa.customConsentOptionText = (swa.customConsentOptionText === undefined)? (i18nValues[10] == undefined ?defaultConsentValues[10]:i18nValues[10]):swa.customConsentOptionText;
2655
+ swa.trackOnStatus = (swa.trackOnStatus === undefined)? (i18nValues[11] == undefined ?defaultConsentValues[11]:i18nValues[11]):swa.trackOnStatus;
2656
+ swa.trackOffStatus = (swa.trackOffStatus === undefined)? (i18nValues[12] == undefined ?defaultConsentValues[12]:i18nValues[12]):swa.trackOffStatus;
2657
+ swa.trackAnonymousStatus = (swa.trackAnonymousStatus === undefined)? (i18nValues[13] == undefined ?defaultConsentValues[13]:i18nValues[13]):swa.trackAnonymousStatus;
2658
+ swa.trackingStatusText = (swa.trackingStatusText === undefined)? (i18nValues[14] == undefined ?defaultConsentValues[14]:i18nValues[14]): swa.trackingStatusText;
2675
2659
 
2676
2660
  //Add the privacy link to the "consentOptInText", if any. Handling cases where optIn banner has a link but when opting out, link is added again
2677
2661
  if(swa.privacyLink !== null && swa.consentOptInText !== undefined && swa.consentOptOutText !== undefined && swa.anonymousConsentText !== undefined && swa.anonymousConsentOptOutText !== undefined && swa.consentOptInText.indexOf("href") === -1 && swa.consentOptOutText.indexOf("href") === -1 && swa.anonymousConsentText.indexOf("href") === -1 && swa.anonymousConsentOptOutText.indexOf("href") === -1){