@openui5/sap.ui.documentation 1.102.7 → 1.102.9

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.102.7",
3
+ "version": "1.102.9",
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.102.7",
18
- "@openui5/sap.ui.core": "1.102.7",
19
- "@openui5/sap.ui.layout": "1.102.7",
20
- "@openui5/themelib_sap_belize": "1.102.7",
21
- "@openui5/themelib_sap_fiori_3": "1.102.7"
17
+ "@openui5/sap.m": "1.102.9",
18
+ "@openui5/sap.ui.core": "1.102.9",
19
+ "@openui5/sap.ui.layout": "1.102.9",
20
+ "@openui5/themelib_sap_belize": "1.102.9",
21
+ "@openui5/themelib_sap_fiori_3": "1.102.9"
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.102.7</version>
9
+ <version>1.102.9</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.102.7
28
+ * @version 1.102.9
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.102.7',
34
+ version: '1.102.9',
35
35
  dependencies : ['sap.ui.core','sap.m'],
36
36
  types: [],
37
37
  interfaces: [],
@@ -409,8 +409,6 @@ APP_SETTINGS_DIALOG_CANCEL_BTN = Cancel
409
409
 
410
410
  #XHED: The title of the dialog for configuring the cookie settings
411
411
  COOKIE_SETTINGS_DIALOG_TITLE = Your Cookie Settings
412
- #XTXT: Summary note that explains why we use cookies
413
- 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.
414
412
  #XTXT: Title of the section about the required cookies used in the application
415
413
  COOKIE_SETTINGS_DIALOG_REQUIRED_COOKIES_TITLE = Required Cookies
416
414
  #XTXT: Summary note that explains what are the required cookies in the application
@@ -176,7 +176,6 @@ sap.ui.define([
176
176
  bOpenUI5,
177
177
  sVersionSuffix,
178
178
  bIsInternal,
179
- bSupportsSWA,
180
179
  sVersionPrefixPath = ResourcesUtil.getResourcesVersion();
181
180
 
182
181
  this.aAllowedMembers = ["public", "protected"];
@@ -189,9 +188,6 @@ sap.ui.define([
189
188
  sVersionSuffix = oVersion.getSuffix();
190
189
  bSnapshot = /-SNAPSHOT$/i.test(sVersionSuffix);
191
190
  bOpenUI5 = oVersionInfo.gav && /openui5/i.test(oVersionInfo.gav);
192
- bSupportsSWA = oVersionInfo.libraries.some(function (lib) {
193
- return lib.name === "sap.webanalytics.core";
194
- });
195
191
 
196
192
  // We show restricted members for internal versions
197
193
  if (/internal/i.test(oVersionInfo.name)) {
@@ -200,6 +196,7 @@ sap.ui.define([
200
196
  }
201
197
 
202
198
  this.getModel("versionData").setData({
199
+ enableAdvancedCookieSettings: false, // this flag is left for eventual future advanced cookie settings
203
200
  versionGav: oVersionInfo.gav,
204
201
  versionName: oVersionInfo.name,
205
202
  version: [oVersion.getMajor(), oVersion.getMinor(), oVersion.getPatch()].join("."),
@@ -210,7 +207,6 @@ sap.ui.define([
210
207
  isDevVersion: bSnapshot,
211
208
  isBetaVersion: !bOpenUI5 && !bSnapshot && /-beta$/i.test(sVersionSuffix),
212
209
  isInternal: !!bIsInternal,
213
- supportsSWA: bSupportsSWA,
214
210
  libraries: oVersionInfo.libraries,
215
211
  allowedMembers: this.aAllowedMembers
216
212
  });
@@ -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
@@ -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>