@openui5/sap.ui.documentation 1.96.11 → 1.96.12

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.96.11",
3
+ "version": "1.96.12",
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.96.11",
18
- "@openui5/sap.ui.core": "1.96.11",
19
- "@openui5/sap.ui.layout": "1.96.11",
20
- "@openui5/themelib_sap_belize": "1.96.11",
21
- "@openui5/themelib_sap_fiori_3": "1.96.11"
17
+ "@openui5/sap.m": "1.96.12",
18
+ "@openui5/sap.ui.core": "1.96.12",
19
+ "@openui5/sap.ui.layout": "1.96.12",
20
+ "@openui5/themelib_sap_belize": "1.96.12",
21
+ "@openui5/themelib_sap_fiori_3": "1.96.12"
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.96.11</version>
9
+ <version>1.96.12</version>
10
10
 
11
11
  <documentation>SAPUI5 library for the Demokit 2.0.</documentation>
12
12
 
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  // delegate further initialization of this library to the Core
24
24
  sap.ui.getCore().initLibrary({
25
25
  name : 'sap.ui.documentation',
26
- version: '1.96.11',
26
+ version: '1.96.12',
27
27
  dependencies : ['sap.ui.core','sap.m'],
28
28
  types: [],
29
29
  interfaces: [],
@@ -49,7 +49,7 @@ sap.ui.define([
49
49
  * @namespace
50
50
  * @name sap.ui.documentation
51
51
  * @author SAP SE
52
- * @version 1.96.11
52
+ * @version 1.96.12
53
53
  * @since 1.48
54
54
  * @public
55
55
  */
@@ -373,8 +373,6 @@ APP_SETTINGS_DIALOG_CANCEL_BTN = Cancel
373
373
 
374
374
  #XHED: The title of the dialog for configuring the cookie settings
375
375
  COOKIE_SETTINGS_DIALOG_TITLE = Your Cookie Settings
376
- #XTXT: Summary note that explains why we use cookies
377
- 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.
378
376
  #XTXT: Title of the section about the required cookies used in the application
379
377
  COOKIE_SETTINGS_DIALOG_REQUIRED_COOKIES_TITLE = Required Cookies
380
378
  #XTXT: Summary note that explains what are the required cookies in the application
@@ -180,7 +180,6 @@ sap.ui.define([
180
180
  bOpenUI5,
181
181
  sVersionSuffix,
182
182
  bIsInternal,
183
- bSupportsSWA,
184
183
  sVersionPrefixPath = ResourcesUtil.getResourcesVersion();
185
184
 
186
185
  this.aAllowedMembers = ["public", "protected"];
@@ -193,9 +192,6 @@ sap.ui.define([
193
192
  sVersionSuffix = oVersion.getSuffix();
194
193
  bSnapshot = /-SNAPSHOT$/i.test(sVersionSuffix);
195
194
  bOpenUI5 = oVersionInfo.gav && /openui5/i.test(oVersionInfo.gav);
196
- bSupportsSWA = oVersionInfo.libraries.some(function (lib) {
197
- return lib.name === "sap.webanalytics.core";
198
- });
199
195
 
200
196
  // We show restricted members for internal versions
201
197
  if (/internal/i.test(oVersionInfo.name)) {
@@ -204,6 +200,7 @@ sap.ui.define([
204
200
  }
205
201
 
206
202
  this.getModel("versionData").setData({
203
+ enableAdvancedCookieSettings: false, // this flag is left for eventual future advanced cookie settings
207
204
  versionGav: oVersionInfo.gav,
208
205
  versionName: oVersionInfo.name,
209
206
  version: [oVersion.getMajor(), oVersion.getMinor(), oVersion.getPatch()].join("."),
@@ -214,7 +211,6 @@ sap.ui.define([
214
211
  isDevVersion: bSnapshot,
215
212
  isBetaVersion: !bOpenUI5 && !bSnapshot && /-beta$/i.test(sVersionSuffix),
216
213
  isInternal: !!bIsInternal,
217
- supportsSWA: bSupportsSWA,
218
214
  libraries: oVersionInfo.libraries,
219
215
  allowedMembers: this.aAllowedMembers
220
216
  });
@@ -17,7 +17,6 @@ sap.ui.define([
17
17
  "COOKIE_NAMES": {
18
18
  "APPROVAL_REQUESTED": "dk_approval_requested",
19
19
  "ALLOW_REQUIRED_COOKIES": "dk_allow_required_cookies",
20
- "ALLOW_USAGE_TRACKING": "dk_allow_usage_tracking",
21
20
  "DEMOKIT_IMPORTANT_MESSAGES_READ": "IMR"
22
21
  },
23
22
 
@@ -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
@@ -80,24 +80,20 @@ sap.ui.define([
80
80
 
81
81
  onAcceptAllCookies: function () {
82
82
  this._saveCookiePreference(this._oCookieNames.ALLOW_REQUIRED_COOKIES, true);
83
- this._saveCookiePreference(this._oCookieNames.ALLOW_USAGE_TRACKING, this._oModel.getProperty("/supportsUsageTracking"));
84
83
 
85
84
  this._oCookieSettingsDialog.close();
86
85
  },
87
86
 
88
87
  onRejectAllCookies: function () {
89
88
  this._saveCookiePreference(this._oCookieNames.ALLOW_REQUIRED_COOKIES, false);
90
- this._saveCookiePreference(this._oCookieNames.ALLOW_USAGE_TRACKING, false);
91
89
 
92
90
  this._oCookieSettingsDialog.close();
93
91
  },
94
92
 
95
93
  onSaveCookies: function() {
96
- var bHasConsentRequiredCookies = Core.byId("requiredCookiesSwitch").getState(),
97
- bHasConsentFunctionalCookies = Core.byId("functionalCookiesSwitch").getState();
94
+ var bHasConsentRequiredCookies = Core.byId("requiredCookiesSwitch").getState();
98
95
 
99
96
  this._saveCookiePreference(this._oCookieNames.ALLOW_REQUIRED_COOKIES, bHasConsentRequiredCookies);
100
- this._saveCookiePreference(this._oCookieNames.ALLOW_USAGE_TRACKING, bHasConsentFunctionalCookies);
101
97
 
102
98
  this._oCookieSettingsDialog.close();
103
99
  },
@@ -131,21 +127,10 @@ sap.ui.define([
131
127
  onCancelEditCookies: function() {
132
128
  this._oCookieSettingsDialog.close();
133
129
  Core.byId("requiredCookiesSwitch").setState(this._oCookiesUtil.getCookieValue(this._oCookieNames.ALLOW_REQUIRED_COOKIES) === "1");
134
- Core.byId("functionalCookiesSwitch").setState(this._oCookiesUtil.getCookieValue(this._oCookieNames.ALLOW_USAGE_TRACKING) === "1");
135
130
  },
136
131
 
137
132
  _saveCookiePreference: function(sCookieName, bEnable) {
138
- var sValue = bEnable ? "1" : "0",
139
- sOldValue;
140
-
141
- if (sCookieName === this._oCookieNames.ALLOW_USAGE_TRACKING) {
142
- sOldValue = this._oCookiesUtil.getCookieValue(sCookieName);
143
-
144
- if (sOldValue !== sValue) {
145
- bEnable && this._oCookiesUtil.enableUsageTracking();
146
- !bEnable && this._oCookiesUtil.disableUsageTracking();
147
- }
148
- }
133
+ var sValue = bEnable ? "1" : "0";
149
134
 
150
135
  this._oCookiesUtil.setCookie(sCookieName, sValue);
151
136
  this._oModel.setProperty("/" + sCookieName, sValue);
@@ -167,10 +152,8 @@ sap.ui.define([
167
152
  // when the user opens the edit dialog for a first time, show the cookies enabled
168
153
  // the user will then edit and save his choice
169
154
  oData[this._oCookieNames.ALLOW_REQUIRED_COOKIES] = "1";
170
- oData[this._oCookieNames.ALLOW_USAGE_TRACKING] = "1";
171
155
  } else {
172
156
  oData[this._oCookieNames.ALLOW_REQUIRED_COOKIES] = this._oCookiesUtil.getCookieValue(this._oCookieNames.ALLOW_REQUIRED_COOKIES);
173
- oData[this._oCookieNames.ALLOW_USAGE_TRACKING] = this._oCookiesUtil.getCookieValue(this._oCookieNames.ALLOW_USAGE_TRACKING);
174
157
  }
175
158
 
176
159
  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"/>
@@ -130,7 +130,7 @@
130
130
  <MenuItem icon="sap-icon://tree" text="{i18n>APP_INFORMATION_BTN_SITEMAP}" key="sitemap" visible="{versionData>/isOpenUI5}"/>
131
131
  <MenuItem icon="sap-icon://hello-world" text="{i18n>APP_SETTINGS_DIALOG_LANGUAGE}" key="settings"/>
132
132
  <MenuItem icon="sap-icon://customize" text="{i18n>APP_SETTINGS_DIALOG_COOKIE_PREFERENCES}" key="cookie_preferences"
133
- visible="{= ${versionData>/supportsSWA}}"/>
133
+ visible="{= ${versionData>/enableAdvancedCookieSettings}}"/>
134
134
  </items>
135
135
  </Menu>
136
136
  </menu>