@openui5/sap.ui.documentation 1.107.0 → 1.108.0

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/THIRDPARTY.txt CHANGED
@@ -382,7 +382,7 @@ Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/D
382
382
 
383
383
  Library: sap.ui.integration:
384
384
 
385
- Component: UI5 Web Components, version: 1.0.1
385
+ Component: UI5 Web Components, version: 1.7.0
386
386
  Copyright: SAP
387
387
  License: Apache-2.0
388
388
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.documentation",
3
- "version": "1.107.0",
3
+ "version": "1.108.0",
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.107.0",
18
- "@openui5/sap.ui.core": "1.107.0",
19
- "@openui5/sap.ui.layout": "1.107.0",
20
- "@openui5/themelib_sap_belize": "1.107.0",
21
- "@openui5/themelib_sap_fiori_3": "1.107.0"
17
+ "@openui5/sap.m": "1.108.0",
18
+ "@openui5/sap.ui.core": "1.108.0",
19
+ "@openui5/sap.ui.layout": "1.108.0",
20
+ "@openui5/themelib_sap_belize": "1.108.0",
21
+ "@openui5/themelib_sap_fiori_3": "1.108.0"
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.107.0</version>
9
+ <version>1.108.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library for the Demokit 2.0.</documentation>
12
12
 
@@ -42,27 +42,27 @@
42
42
  </packaging>
43
43
  <!-- Thirdparty references -->
44
44
  <thirdparty xmlns="http://www.sap.com/ui5/buildext/thirdparty" >
45
- <lib name="esprima" displayName="Esprima" version="1.2.2" homepage="http://esprima.org" id="73554900106100003281">
45
+ <lib name="esprima" displayName="Esprima" npmName="esprima" version="1.2.2" hash="86db44deddd075b5e8e718500ffddeb8" homepage="http://esprima.org" id="73554900106100003281">
46
46
  <license url="http://esprima.org/doc/index.html#license" type="BSD-2-Clause" />
47
47
  <copyright>2013 Ariya Hidayat and other contributors</copyright>
48
48
  <pattern>sap/ui/documentation/sdk/thirdparty/esprima.js</pattern>
49
49
  </lib>
50
- <lib name="highlight.js" displayName="highlight.js" version="10.4.1" homepage="https://highlightjs.org/" id="73555000106100051976">
50
+ <lib name="highlight.js" displayName="highlight.js" npmName="highlight.js" hash="b447d2220863c232801f6acfa58b22c0" version="10.4.1" homepage="https://highlightjs.org/" id="73555000106100051976">
51
51
  <license url="https://github.com/highlightjs/highlight.js/blob/10.4.1/LICENSE" type="BSD-3-Clause" />
52
52
  <copyright>2006-2020, Ivan Sagalaev</copyright>
53
53
  <pattern>sap/ui/documentation/sdk/thirdparty/highlight.js/*</pattern>
54
54
  </lib>
55
- <lib name="elasticlunr" displayName="Elasticlunr" version="0.9.5" homepage="http://elasticlunr.com/" id="73554900106100021592">
55
+ <lib name="elasticlunr" displayName="Elasticlunr" npmName="elasticlunr" version="0.9.5" hash="bdc2dbed628a3bb7a62d58b999dd7123" homepage="http://elasticlunr.com/" id="73554900106100021592">
56
56
  <license url="https://github.com/weixsong/elasticlunr.js/blob/v0.9.5/LICENSE" type="MIT" />
57
57
  <copyright>2017 Wei Song and Oliver Nightingale</copyright>
58
58
  <pattern>sap/ui/documentation/sdk/thirdparty/elasticlunr.js</pattern>
59
59
  </lib>
60
- <lib name="datatables" displayName="DataTables" version="1.10.15" homepage="https://datatables.net/" id="73555000106100009470">
60
+ <lib name="datatables" displayName="DataTables" npmName="datatables.net-dt" version="1.10.15" hash="702f56c7e7a339c93e63db3d576f032a" homepage="https://datatables.net/" id="73555000106100009470">
61
61
  <license url="https://datatables.net/license/" type="MIT" />
62
62
  <copyright>2008-2017 SpryMedia Ltd</copyright>
63
63
  <pattern>sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-1.10.15/*</pattern>
64
64
  </lib>
65
- <lib name="datatables-buttons" displayName="Buttons extension for DataTables" version="1.4.0" homepage="https://datatables.net/extensions/buttons/" id="73555000106100007649">
65
+ <lib name="datatables-buttons" displayName="Buttons extension for DataTables" npmName="datatables.net-buttons-dt" version="1.4.0" hash="c3c07a5f8257b9d47102459789b372eb" homepage="https://datatables.net/extensions/buttons/" id="73555000106100007649">
66
66
  <license url="https://datatables.net/license/" type="MIT" />
67
67
  <copyright>2016 SpryMedia Ltd</copyright>
68
68
  <pattern>sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/*</pattern>
@@ -25,13 +25,13 @@ sap.ui.define([
25
25
  * @namespace
26
26
  * @alias sap.ui.documentation
27
27
  * @author SAP SE
28
- * @version 1.107.0
28
+ * @version 1.108.0
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.107.0',
34
+ version: '1.108.0',
35
35
  dependencies : ['sap.ui.core','sap.m'],
36
36
  types: [],
37
37
  interfaces: [],
@@ -81,7 +81,8 @@ sap.ui.define([
81
81
  files: [],
82
82
  iframe: oConfig.sample.iframe,
83
83
  fileName: sFileName,
84
- includeInDownload: oConfig.sample.additionalDownloadFiles
84
+ includeInDownload: oConfig.sample.additionalDownloadFiles,
85
+ customIndexHTML: oConfig.sample.customIndexHTML
85
86
  };
86
87
 
87
88
  // retrieve files
@@ -244,6 +245,8 @@ sap.ui.define([
244
245
  switch (sFileExtension) {
245
246
  case "js":
246
247
  return "javascript";
248
+ case "ts":
249
+ return "typescript";
247
250
  case "feature":
248
251
  return "text";
249
252
  default:
@@ -180,6 +180,7 @@ sap.ui.define([
180
180
 
181
181
  oModelData.stretch = oSampleConfig.stretch;
182
182
  oModelData.includeInDownload = oSampleConfig.additionalDownloadFiles;
183
+ oModelData.customIndexHTML = oSampleConfig.customIndexHTML;
183
184
 
184
185
  // retrieve files
185
186
  if (oSampleConfig.files) {
@@ -46,6 +46,13 @@ sap.ui.define([
46
46
  aExtraFiles = oData.includeInDownload || [],
47
47
  oManifestFile,
48
48
  bHasManifest,
49
+ bCustomIndexHTML = oData.customIndexHTML, // samples with custom index.html (e.g. for including a custom UI5 bootstrap src)
50
+ sCustomPkgJson = oData.files.find(function (oFile) { // samples with custom package.json (e.g. using TS, Babel)
51
+ return oFile.name.includes("package.json");
52
+ }),
53
+ sCustomUI5Yaml = oData.files.find(function (oFile) { // samples with custom ui5.yaml (e.g. declaring a different webapp root)
54
+ return oFile.name.includes("ui5.yaml");
55
+ }),
49
56
  aPromises = [],
50
57
  fnAddMockFileToZip = function(sRawFile) {
51
58
  var aMockFilePromises = [];
@@ -82,7 +89,7 @@ sap.ui.define([
82
89
  aPromises.push(this._addFileToZip({
83
90
  name: oFile.name.replace(new RegExp(/(\.\.\/)+/g), "./"),
84
91
  url: sUrl,
85
- formatter: bChangeBootstrap ? this._changeIframeBootstrapToCloud : undefined
92
+ formatter: (bChangeBootstrap && !bCustomIndexHTML) ? this._changeIframeBootstrapToCloud : undefined
86
93
  }, oZipFile));
87
94
 
88
95
  aPromises.push(this.fetchSourceFile(sUrl).then(fnAddMockFileToZip.bind(this)));
@@ -101,13 +108,15 @@ sap.ui.define([
101
108
  }, oZipFile));
102
109
 
103
110
 
104
- aPromises.push(this._addFileToZip({
105
- name: "index.html",
106
- url: TMPL_REF + "/" + (bHasManifest ? "indexevo.html.tmpl" : "index.html.tmpl"),
107
- formatter: function(sIndexFile) {
108
- return this._changeIframeBootstrapToCloud(this._formatIndexHtmlFile(sIndexFile, oData));
109
- }.bind(this)
110
- }, oZipFile, true));
111
+ if (!bCustomIndexHTML) {
112
+ aPromises.push(this._addFileToZip({
113
+ name: "index.html",
114
+ url: TMPL_REF + "/" + (bHasManifest ? "indexevo.html.tmpl" : "index.html.tmpl"),
115
+ formatter: function(sIndexFile) {
116
+ return this._changeIframeBootstrapToCloud(this._formatIndexHtmlFile(sIndexFile, oData));
117
+ }.bind(this)
118
+ }, oZipFile, true));
119
+ }
111
120
 
112
121
 
113
122
  if (!bHasManifest) {
@@ -139,7 +148,7 @@ sap.ui.define([
139
148
 
140
149
  aPromises.push(this._addFileToZip({
141
150
  name: "ui5.yaml",
142
- url: TMPL_REF + "/ui5.yaml.tmpl",
151
+ url: sCustomUI5Yaml ? sRef + "/" + sCustomUI5Yaml : TMPL_REF + "/ui5.yaml.tmpl",
143
152
  formatter: function(sYamlFile) {
144
153
  return this._formatYamlFile(sYamlFile, oData);
145
154
  }.bind(this)
@@ -147,7 +156,7 @@ sap.ui.define([
147
156
 
148
157
  aPromises.push(this._addFileToZip({
149
158
  name: "package.json",
150
- url: TMPL_REF + "/package.json.tmpl",
159
+ url: sCustomPkgJson ? sRef + "/" + sCustomPkgJson : TMPL_REF + "/package.json.tmpl",
151
160
  formatter: function(sPackageFile) {
152
161
  return this._formatPackageJson(sPackageFile, oManifestFile, oData);
153
162
  }.bind(this)
@@ -171,7 +180,7 @@ sap.ui.define([
171
180
  },
172
181
 
173
182
  _addFileToZip: function (oFileInfo, oZipFile, bTreatAsText) {
174
- var sFileName = oFileInfo.name,
183
+ var sFileName = oFileInfo.name.replace(new RegExp(/(\.+\/)+/g), ""), // remove "../" etc. so one-level-up dirs are zipped properly
175
184
  sUrl = oFileInfo.url,
176
185
  fnFileFormatter = oFileInfo.formatter;
177
186
 
@@ -473,6 +473,10 @@ sap.ui.define([
473
473
  text: oControlData.isClass ? "View subclasses" : "View implementations",
474
474
  press: this._openSubclassesImplementationsPopover.bind(this)
475
475
  });
476
+ oSubClassesLink.onclick = function(oEvent) {
477
+ oEvent.allowPreventDefault = true;
478
+ Link.prototype._handlePress.call(this, oEvent);
479
+ };
476
480
  }
477
481
 
478
482
  return _getHBox({
@@ -45,6 +45,7 @@ sap.ui.define(["sap/ui/thirdparty/jquery", 'sap/ui/documentation/library', "sap/
45
45
  "Popup",
46
46
  "Tile",
47
47
  "User Input",
48
+ "Showcase",
48
49
  "Testing",
49
50
  "Theming",
50
51
  "Tutorial",
@@ -57,7 +57,7 @@ sap.ui.define([], function() {
57
57
  },
58
58
 
59
59
  _getExpectedResponseType: function(sResourceUrl, bTreatAsText) {
60
- if (sResourceUrl.match(/.+(.js|.json|.less|.xml|.html|.properties|.css|.svg|.md|.txt|.feature|.yaml|.yml)$/i) || bTreatAsText) { // supported text types
60
+ if (sResourceUrl.match(/.+(.js|.ts|.json|.less|.xml|.html|.properties|.css|.svg|.md|.txt|.feature|.yaml|.yml)$/i) || bTreatAsText) { // supported text types
61
61
  return "text";
62
62
  }
63
63
 
@@ -1830,8 +1830,7 @@ html[dir="rtl"] .sapUiDemoKitTreeItemIcon {
1830
1830
  border-radius: 0.125rem;
1831
1831
  }
1832
1832
 
1833
- .sapUiTheme-sap_fiori_3.sapUiMedia-Std-Phone .sapTntToolHeader .sapMSlt.sapUiDocumentationSelect,
1834
- .sap-phone .sapTntToolHeader .sapMSlt.sapUiDocumentationSelect {
1833
+ .sapUiTheme-sap_fiori_3.sapUiMedia-Std-Phone .sapTntToolHeader .sapMSlt.sapUiDocumentationSelect {
1835
1834
  height: 2.75rem;
1836
1835
  }
1837
1836
 
@@ -1853,19 +1852,6 @@ html[dir="rtl"] .sapUiDemoKitTreeItemIcon {
1853
1852
  font-size: 1.625rem;
1854
1853
  }
1855
1854
 
1856
- html.sap-desktop .sapMFocus > .sapMSFF::before {
1857
- border: 0.125rem solid #0070f2 !important;
1858
- position: absolute;
1859
- content: " ";
1860
- top: 0;
1861
- right: 0;
1862
- left: 0;
1863
- bottom: 0;
1864
- border-radius: inherit;
1865
- z-index: 2;
1866
- pointer-events: none;
1867
- }
1868
-
1869
1855
  .surveyPopoverTitle {
1870
1856
  padding: 1rem 1.5rem 0 1.5rem;
1871
1857
  font-size: 1.125rem;
@@ -257,7 +257,7 @@
257
257
  titleStyle="H2"
258
258
  target="_blank"/>
259
259
  <Image
260
- src="./resources/sap/ui/documentation/sdk/images/sap.png"
260
+ src="./resources/sap/ui/documentation/sdk/images/link-sap.png"
261
261
  tooltip="{i18n>LEGAL_DISCLAIMER_EXTERNAL_TOOLTIP}"
262
262
  width="1.25rem"
263
263
  press="onDisclaimerLinkPress"/>