@openui5/sap.ui.documentation 1.105.0 → 1.105.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.documentation",
3
- "version": "1.105.0",
3
+ "version": "1.105.2",
4
4
  "description": "OpenUI5 UI Library sap.ui.documentation",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,10 +14,10 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.105.0",
18
- "@openui5/sap.ui.core": "1.105.0",
19
- "@openui5/sap.ui.layout": "1.105.0",
20
- "@openui5/themelib_sap_belize": "1.105.0",
21
- "@openui5/themelib_sap_fiori_3": "1.105.0"
17
+ "@openui5/sap.m": "1.105.2",
18
+ "@openui5/sap.ui.core": "1.105.2",
19
+ "@openui5/sap.ui.layout": "1.105.2",
20
+ "@openui5/themelib_sap_belize": "1.105.2",
21
+ "@openui5/themelib_sap_fiori_3": "1.105.2"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.105.0</version>
9
+ <version>1.105.2</version>
10
10
 
11
11
  <documentation>SAPUI5 library for the Demokit 2.0.</documentation>
12
12
 
@@ -25,13 +25,13 @@ sap.ui.define([
25
25
  * @namespace
26
26
  * @alias sap.ui.documentation
27
27
  * @author SAP SE
28
- * @version 1.105.0
28
+ * @version 1.105.2
29
29
  * @since 1.48
30
30
  * @public
31
31
  */
32
32
  var thisLibrary = sap.ui.getCore().initLibrary({
33
33
  name : 'sap.ui.documentation',
34
- version: '1.105.0',
34
+ version: '1.105.2',
35
35
  dependencies : ['sap.ui.core','sap.m'],
36
36
  types: [],
37
37
  interfaces: [],
@@ -411,8 +411,6 @@ APP_SETTINGS_DIALOG_CANCEL_BTN = Cancel
411
411
 
412
412
  #XHED: The title of the dialog for configuring the cookie settings
413
413
  COOKIE_SETTINGS_DIALOG_TITLE = Your Cookie Settings
414
- #XTXT: Summary note that explains why we use cookies
415
- COOKIE_SETTINGS_DIALOG_SUMMARY = We use cookies and SAP Web Analytics to improve your experience on our site. By continuing to use this site, you consent to use our cookies.
416
414
  #XTXT: Title of the section about the required cookies used in the application
417
415
  COOKIE_SETTINGS_DIALOG_REQUIRED_COOKIES_TITLE = Required Cookies
418
416
  #XTXT: Summary note that explains what are the required cookies in the application
@@ -174,7 +174,6 @@ sap.ui.define([
174
174
  bOpenUI5,
175
175
  sVersionSuffix,
176
176
  bIsInternal,
177
- bSupportsSWA,
178
177
  sVersionPrefixPath = ResourcesUtil.getResourcesVersion();
179
178
 
180
179
  this.aAllowedMembers = ["public", "protected"];
@@ -187,9 +186,6 @@ sap.ui.define([
187
186
  sVersionSuffix = oVersion.getSuffix();
188
187
  bSnapshot = /-SNAPSHOT$/i.test(sVersionSuffix);
189
188
  bOpenUI5 = oVersionInfo.gav && /openui5/i.test(oVersionInfo.gav);
190
- bSupportsSWA = oVersionInfo.libraries.some(function (lib) {
191
- return lib.name === "sap.webanalytics.core";
192
- });
193
189
 
194
190
  // We show restricted members for internal versions
195
191
  if (ResourcesUtil.isInternal(oVersionInfo)) {
@@ -198,6 +194,7 @@ sap.ui.define([
198
194
  }
199
195
 
200
196
  this.getModel("versionData").setData({
197
+ enableAdvancedCookieSettings: false, // this flag is left for eventual future advanced cookie settings
201
198
  versionGav: oVersionInfo.gav,
202
199
  versionName: oVersionInfo.name,
203
200
  version: [oVersion.getMajor(), oVersion.getMinor(), oVersion.getPatch()].join("."),
@@ -208,7 +205,6 @@ sap.ui.define([
208
205
  isDevVersion: bSnapshot,
209
206
  isBetaVersion: !bOpenUI5 && !bSnapshot && /-beta$/i.test(sVersionSuffix),
210
207
  isInternal: !!bIsInternal,
211
- supportsSWA: bSupportsSWA,
212
208
  libraries: oVersionInfo.libraries,
213
209
  allowedMembers: this.aAllowedMembers
214
210
  });
@@ -16,7 +16,6 @@ sap.ui.define([
16
16
  "COOKIE_NAMES": {
17
17
  "APPROVAL_REQUESTED": "dk_approval_requested",
18
18
  "ALLOW_REQUIRED_COOKIES": "dk_allow_required_cookies",
19
- "ALLOW_USAGE_TRACKING": "dk_allow_usage_tracking",
20
19
  "DEMOKIT_IMPORTANT_MESSAGES_READ": "IMR"
21
20
  },
22
21
 
@@ -17,18 +17,9 @@ sap.ui.define([
17
17
 
18
18
  "COOKIE_NAMES": {
19
19
  "APPROVAL_REQUESTED": "dk_approval_requested",
20
- "ALLOW_REQUIRED_COOKIES": "dk_allow_required_cookies",
21
- "ALLOW_USAGE_TRACKING": "dk_allow_usage_tracking"
20
+ "ALLOW_REQUIRED_COOKIES": "dk_allow_required_cookies"
22
21
  },
23
22
 
24
- SWA_CONFIG: {
25
- pubToken: 'd5a5359b-0b55-415c-acc8-314511b613ca',
26
- baseUrl: 'https://webanalytics2.cfapps.eu10.hana.ondemand.com/tracker/',
27
- owner: null
28
- },
29
-
30
- SWA_TRACKER_URL: "sap/webanalytics/core/tracker/js/track.js",
31
-
32
23
  metadata : {
33
24
  manifest: "json"
34
25
  },
@@ -44,24 +35,14 @@ sap.ui.define([
44
35
 
45
36
  if (this.sCookieSettingsParameterValue === "true" || this.sCookieSettingsParameterValue === "" || !bCookieSettingsParameter) {
46
37
 
47
- VersionInfo.load().then(function (oVersionInfo) {
48
- var bSupportsSWA = oVersionInfo.libraries.some(function (lib) {
49
- return lib.name === "sap.webanalytics.core";
50
- }),
51
- bApprovalRequested = this.getCookieValue(this.COOKIE_NAMES.APPROVAL_REQUESTED) === "1",
52
- bHasConsentUseSWA = this.getCookieValue(this.COOKIE_NAMES.ALLOW_USAGE_TRACKING) === "1";
53
-
54
- if (!bApprovalRequested) {
55
- this.cookieSettingsDialogOpen({
56
- showCookieDetails: false,
57
- supportsUsageTracking: bSupportsSWA
58
- }, oRootView);
59
- }
60
-
61
- if (bSupportsSWA && bHasConsentUseSWA) {
62
- this.enableUsageTracking();
63
- }
64
- }.bind(this));
38
+ var bApprovalRequested = this.getCookieValue(this.COOKIE_NAMES.APPROVAL_REQUESTED) === "1";
39
+
40
+ if (!bApprovalRequested) {
41
+ this.cookieSettingsDialogOpen({
42
+ showCookieDetails: false,
43
+ enableAdvancedSettings: false // this flag is left for eventual future advanced cookie settings
44
+ }, oRootView);
45
+ }
65
46
  }
66
47
  },
67
48
 
@@ -92,44 +73,6 @@ sap.ui.define([
92
73
  return "";
93
74
  },
94
75
 
95
- enableUsageTracking: function() {
96
- this._loadSWA().then(function(swa) {
97
- if (swa && typeof swa.enable === "function") {
98
- swa.enable();
99
- }
100
- });
101
- },
102
-
103
- disableUsageTracking: function() {
104
- var swa = window['swa'];
105
- if (swa && typeof swa.disable === "function") {
106
- swa.disable();
107
- }
108
- },
109
-
110
- _loadSWA: function() {
111
- if (!this._oPromiseLoadSWA) {
112
- this._oPromiseLoadSWA = new Promise(function(resolve, reject) {
113
- var oSWAConfig = merge({}, this.SWA_CONFIG),
114
- oDoc = document,
115
- oNewScriptEl = oDoc.createElement('script'),
116
- oFirstScriptEl = oDoc.getElementsByTagName('script')[0];
117
-
118
- oNewScriptEl.type = 'text/javascript';
119
- oNewScriptEl.defer = true;
120
- oNewScriptEl.async = true;
121
- oNewScriptEl.src = sap.ui.require.toUrl(this.SWA_TRACKER_URL);
122
- window.addEventListener("swaLoadSuccess", function(){
123
- resolve(window["swa"]);
124
- });
125
-
126
- oFirstScriptEl.parentNode.insertBefore(oNewScriptEl, oFirstScriptEl);
127
- window["swa"] = oSWAConfig;
128
- }.bind(this));
129
- }
130
- return this._oPromiseLoadSWA;
131
- },
132
-
133
76
  /**
134
77
  * Opens the cookie settings dialog
135
78
  * @public
@@ -79,24 +79,20 @@ sap.ui.define([
79
79
 
80
80
  onAcceptAllCookies: function () {
81
81
  this._saveCookiePreference(this._oCookieNames.ALLOW_REQUIRED_COOKIES, true);
82
- this._saveCookiePreference(this._oCookieNames.ALLOW_USAGE_TRACKING, this._oModel.getProperty("/supportsUsageTracking"));
83
82
 
84
83
  this._oCookieSettingsDialog.close();
85
84
  },
86
85
 
87
86
  onRejectAllCookies: function () {
88
87
  this._saveCookiePreference(this._oCookieNames.ALLOW_REQUIRED_COOKIES, false);
89
- this._saveCookiePreference(this._oCookieNames.ALLOW_USAGE_TRACKING, false);
90
88
 
91
89
  this._oCookieSettingsDialog.close();
92
90
  },
93
91
 
94
92
  onSaveCookies: function() {
95
- var bHasConsentRequiredCookies = Core.byId("requiredCookiesSwitch").getState(),
96
- bHasConsentFunctionalCookies = Core.byId("functionalCookiesSwitch").getState();
93
+ var bHasConsentRequiredCookies = Core.byId("requiredCookiesSwitch").getState();
97
94
 
98
95
  this._saveCookiePreference(this._oCookieNames.ALLOW_REQUIRED_COOKIES, bHasConsentRequiredCookies);
99
- this._saveCookiePreference(this._oCookieNames.ALLOW_USAGE_TRACKING, bHasConsentFunctionalCookies);
100
96
 
101
97
  this._oCookieSettingsDialog.close();
102
98
  },
@@ -130,21 +126,10 @@ sap.ui.define([
130
126
  onCancelEditCookies: function() {
131
127
  this._oCookieSettingsDialog.close();
132
128
  Core.byId("requiredCookiesSwitch").setState(this._oCookiesUtil.getCookieValue(this._oCookieNames.ALLOW_REQUIRED_COOKIES) === "1");
133
- Core.byId("functionalCookiesSwitch").setState(this._oCookiesUtil.getCookieValue(this._oCookieNames.ALLOW_USAGE_TRACKING) === "1");
134
129
  },
135
130
 
136
131
  _saveCookiePreference: function(sCookieName, bEnable) {
137
- var sValue = bEnable ? "1" : "0",
138
- sOldValue;
139
-
140
- if (sCookieName === this._oCookieNames.ALLOW_USAGE_TRACKING) {
141
- sOldValue = this._oCookiesUtil.getCookieValue(sCookieName);
142
-
143
- if (sOldValue !== sValue) {
144
- bEnable && this._oCookiesUtil.enableUsageTracking();
145
- !bEnable && this._oCookiesUtil.disableUsageTracking();
146
- }
147
- }
132
+ var sValue = bEnable ? "1" : "0";
148
133
 
149
134
  this._oCookiesUtil.setCookie(sCookieName, sValue);
150
135
  this._oModel.setProperty("/" + sCookieName, sValue);
@@ -166,10 +151,8 @@ sap.ui.define([
166
151
  // when the user opens the edit dialog for a first time, show the cookies enabled
167
152
  // the user will then edit and save his choice
168
153
  oData[this._oCookieNames.ALLOW_REQUIRED_COOKIES] = "1";
169
- oData[this._oCookieNames.ALLOW_USAGE_TRACKING] = "1";
170
154
  } else {
171
155
  oData[this._oCookieNames.ALLOW_REQUIRED_COOKIES] = this._oCookiesUtil.getCookieValue(this._oCookieNames.ALLOW_REQUIRED_COOKIES);
172
- oData[this._oCookieNames.ALLOW_USAGE_TRACKING] = this._oCookiesUtil.getCookieValue(this._oCookieNames.ALLOW_USAGE_TRACKING);
173
156
  }
174
157
 
175
158
  this._oModel.setData(oData, true /* merge */);
@@ -3,20 +3,12 @@
3
3
 
4
4
  #XHED: The title of the dialog for configuring the cookie settings
5
5
  COOKIE_SETTINGS_DIALOG_TITLE = Your Cookie Settings
6
- #XTXT: Summary note that explains why we use cookies
7
- COOKIE_SETTINGS_DIALOG_SUMMARY = We use cookies and SAP Web Analytics to improve your experience on our site. By continuing to use this site, you consent to use our cookies.
8
6
  #XTXT: Title of the section about the required cookies used in the application
9
7
  COOKIE_SETTINGS_DIALOG_REQUIRED_COOKIES_TITLE = Required Cookies
10
8
  #XTXT: Summary note that explains what are the required cookies in the application
11
9
  COOKIE_SETTINGS_DIALOG_REQUIRED_COOKIES_SUMMARY = These cookies are required to enable core site functionality.
12
10
  #XTXT: Detailed note that explains why we use the required cookies in the application
13
11
  COOKIE_SETTINGS_DIALOG_REQUIRED_COOKIES_TEXT = We use cookies to improve your experience on our site. By continuing to use this site, you consent to use our cookies.
14
- #XTXT: Title of the section about the extra functional cookies used in the application
15
- COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_TITLE = Functional Cookies
16
- #XTXT: Summary note that explains what are the functional cookies in the application
17
- COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_SUMMARY = These cookies are used to analyse site usage for the purpose of measuring and improving site performance.
18
- #XTXT: Detailed note that explains why we use the functional cookies in the application
19
- COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_TEXT = This site uses SAP Web Analytics to analyze how users use this site. The information generated (including a part of your IP address and a browser ID) will be transmitted to and stored by SAP on its servers. Cookies are used to identify your repeat visit and your visit origin page. We will use this information only for the purpose of evaluating website usage and compiling reports on website activity for website operators - and finally, to improve the site. If you would like to opt-in for SAP Web Analytics tracking, please specify your preference using the "On"/"Off" switch above. By opt-in, you consent to the processing of analytics data about you in the manner and for the purposes set out above.
20
12
  #XTXT: Title of the panel that contains more detailed information
21
13
  COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_MORE_INFO = More Info
22
14
  #XTXT: Title of the button to accept all cookies
@@ -7,10 +7,8 @@
7
7
  <Dialog title="{i18n>COOKIE_SETTINGS_DIALOG_TITLE}" contentWidth="45rem">
8
8
  <content>
9
9
  <html:div class="sapUiSmallMargin">
10
- <Text text="{i18n>COOKIE_SETTINGS_DIALOG_SUMMARY}"
11
- visible="{= !${cookieData>/showCookieDetails} &amp;&amp; ${cookieData>/supportsUsageTracking} }"/>
12
10
  <Text text="{i18n>COOKIE_SETTINGS_DIALOG_REQUIRED_COOKIES_TEXT}"
13
- visible="{= !${cookieData>/showCookieDetails} &amp;&amp; !${cookieData>/supportsUsageTracking} }"/>
11
+ visible="{= !${cookieData>/showCookieDetails} }"/>
14
12
  <f:GridList visible="{cookieData>/showCookieDetails}">
15
13
  <f:customLayout>
16
14
  <grid:GridBasicLayout gridTemplateColumns="1fr" gridGap="1rem"/>
@@ -28,20 +26,6 @@
28
26
  <Text text="{i18n>COOKIE_SETTINGS_DIALOG_REQUIRED_COOKIES_TEXT}"/>
29
27
  </Panel>
30
28
  </f:GridListItem>
31
-
32
- <f:GridListItem>
33
- <HBox justifyContent="SpaceBetween" class="sapUiSmallMarginBeginEnd sapUiSmallMarginTop">
34
- <VBox>
35
- <Title text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_TITLE}"/>
36
- <Text text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_SUMMARY}"/>
37
- </VBox>
38
- <Switch id="functionalCookiesSwitch" class="sapUiSmallMarginBegin"
39
- state="{path: 'cookieData>/dk_allow_usage_tracking', type: 'sap.ui.model.type.Boolean', formatter: '.formatCookieValue'}"/>
40
- </HBox>
41
- <Panel headerText="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_MORE_INFO}" expandable="true" class="sapUiTinyMarginTop">
42
- <Text text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_TEXT}"/>
43
- </Panel>
44
- </f:GridListItem>
45
29
  </f:GridList>
46
30
  </html:div>
47
31
  </content>
@@ -51,7 +35,7 @@
51
35
  <OverflowToolbarLayoutData priority="NeverOverflow"/>
52
36
  </layoutData>
53
37
  </Button>
54
- <Button text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_SET_PREFERENCES}" id="btnSetPreferences" type="Ghost" press="showCookieDetails" visible="{= !${cookieData>/showCookieDetails} &amp;&amp; ${cookieData>/supportsUsageTracking} }"></Button>
38
+ <Button text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_SET_PREFERENCES}" id="btnSetPreferences" type="Ghost" press="showCookieDetails" visible="{= !${cookieData>/showCookieDetails} &amp;&amp; ${cookieData>/enableAdvancedSettings} }"></Button>
55
39
  <Button text="{i18n>COOKIE_SETTINGS_DIALOG_FUNCTIONAL_COOKIES_REJECT_ALL}" press="onRejectAllCookies" visible="{=! ${cookieData>/showCookieDetails} }">
56
40
  <layoutData>
57
41
  <OverflowToolbarLayoutData priority="NeverOverflow"/>
@@ -148,7 +148,7 @@
148
148
  <MenuItem icon="sap-icon://tree" text="{i18n>APP_INFORMATION_BTN_SITEMAP}" key="sitemap" visible="{versionData>/isOpenUI5}"/>
149
149
  <MenuItem icon="sap-icon://hello-world" text="{i18n>APP_SETTINGS_DIALOG_LANGUAGE}" key="settings"/>
150
150
  <MenuItem icon="sap-icon://customize" text="{i18n>APP_SETTINGS_DIALOG_COOKIE_PREFERENCES}" key="cookie_preferences"
151
- visible="{= ${versionData>/supportsSWA}}"/>
151
+ visible="{= ${versionData>/enableAdvancedCookieSettings}}"/>
152
152
  </items>
153
153
  </Menu>
154
154
  </menu>