@openui5/sap.ui.documentation 1.125.0 → 1.126.1

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 (43) hide show
  1. package/.reuse/dep5 +4 -4
  2. package/THIRDPARTY.txt +6 -6
  3. package/package.json +7 -7
  4. package/src/sap/ui/documentation/.library +7 -7
  5. package/src/sap/ui/documentation/library.js +2 -2
  6. package/src/sap/ui/documentation/messagebundle_ar.properties +2 -2
  7. package/src/sap/ui/documentation/sdk/Component.js +18 -14
  8. package/src/sap/ui/documentation/sdk/blocks/IndexEntry.js +1 -4
  9. package/src/sap/ui/documentation/sdk/blocks/IndexEntry.view.xml +1 -1
  10. package/src/sap/ui/documentation/sdk/blocks/IndexEntryController.controller.js +15 -0
  11. package/src/sap/ui/documentation/sdk/controller/ApiDetailIndexDeprecatedExperimental.controller.js +7 -6
  12. package/src/sap/ui/documentation/sdk/controller/ApiMaster.controller.js +17 -9
  13. package/src/sap/ui/documentation/sdk/controller/App.controller.js +1 -0
  14. package/src/sap/ui/documentation/sdk/controller/MasterTreeBaseController.js +1 -3
  15. package/src/sap/ui/documentation/sdk/controller/TopicDetail.controller.js +16 -12
  16. package/src/sap/ui/documentation/sdk/controller/config/datatable.js +1 -3
  17. package/src/sap/ui/documentation/sdk/controller/util/XML2JSONUtils.js +1 -1
  18. package/src/sap/ui/documentation/sdk/css/style.css +4 -0
  19. package/src/sap/ui/documentation/sdk/manifest.json +1 -1
  20. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/css/buttons.dataTables.css +559 -0
  21. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/css/buttons.jqueryui.css +414 -0
  22. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/js/buttons.colVis.js +261 -0
  23. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/js/buttons.html5.js +1687 -0
  24. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/js/buttons.jqueryui.js +98 -0
  25. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/js/dataTables.buttons.js +2750 -0
  26. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/css/dataTables.jqueryui.css +1636 -0
  27. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/js/dataTables.jqueryui.js +106 -0
  28. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/js/dataTables.js +13429 -0
  29. package/src/sap/ui/documentation/sdk/thirdparty/highlight.js/highlight.js +3 -3
  30. package/src/sap/ui/documentation/sdk/view/ControlsMaster.view.xml +1 -1
  31. package/src/sap/ui/documentation/sdk/view/Footer.fragment.xml +11 -3
  32. package/src/sap/ui/documentation/themes/base/Documentation.less +36 -4
  33. package/src/sap/ui/documentation/themes/sap_belize/library.source.less +7 -7
  34. package/src/sap/ui/documentation/themes/sap_belize_hcb/library.source.less +7 -7
  35. package/src/sap/ui/documentation/themes/sap_belize_hcw/library.source.less +7 -7
  36. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/css/buttons.jqueryui.css +0 -218
  37. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/js/buttons.colVis.js +0 -206
  38. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/js/buttons.html5.js +0 -1385
  39. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/js/buttons.jqueryui.js +0 -62
  40. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/js/dataTables.buttons.js +0 -1804
  41. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-1.10.15/css/dataTables.jqueryui.css +0 -482
  42. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-1.10.15/js/dataTables.jqueryui.js +0 -164
  43. package/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-1.10.15/js/jquery.dataTables.js +0 -15002
package/.reuse/dep5 CHANGED
@@ -384,13 +384,13 @@ Copyright: 2017 Wei Song and Oliver Nightingale
384
384
  License: MIT
385
385
  Comment: these files belong to: Elasticlunr
386
386
 
387
- Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-1.10.15/*
388
- Copyright: 2008-2017 SpryMedia Ltd
387
+ Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/*
388
+ Copyright: SpryMedia Ltd
389
389
  License: MIT
390
390
  Comment: these files belong to: DataTables
391
391
 
392
- Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/*
393
- Copyright: 2016 SpryMedia Ltd
392
+ Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/*
393
+ Copyright: SpryMedia Ltd
394
394
  License: MIT
395
395
  Comment: these files belong to: Buttons extension for DataTables
396
396
 
package/THIRDPARTY.txt CHANGED
@@ -363,17 +363,17 @@ License: MIT
363
363
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
364
364
  Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/elasticlunr.js
365
365
 
366
- Component: DataTables, version: 1.10.15
367
- Copyright: 2008-2017 SpryMedia Ltd
366
+ Component: DataTables, version: 2.0.1
367
+ Copyright: SpryMedia Ltd
368
368
  License: MIT
369
369
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
370
- Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-1.10.15/*
370
+ Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/*
371
371
 
372
- Component: Buttons extension for DataTables, version: 1.4.0
373
- Copyright: 2016 SpryMedia Ltd
372
+ Component: Buttons extension for DataTables, version: 3.0.0
373
+ Copyright: SpryMedia Ltd
374
374
  License: MIT
375
375
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
376
- Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/*
376
+ Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/*
377
377
 
378
378
 
379
379
  Library: sap.ui.integration:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.documentation",
3
- "version": "1.125.0",
3
+ "version": "1.126.1",
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,11 +14,11 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.125.0",
18
- "@openui5/sap.ui.core": "1.125.0",
19
- "@openui5/sap.ui.layout": "1.125.0",
20
- "@openui5/themelib_sap_belize": "1.125.0",
21
- "@openui5/themelib_sap_fiori_3": "1.125.0",
22
- "@openui5/themelib_sap_horizon": "1.125.0"
17
+ "@openui5/sap.m": "1.126.1",
18
+ "@openui5/sap.ui.core": "1.126.1",
19
+ "@openui5/sap.ui.layout": "1.126.1",
20
+ "@openui5/themelib_sap_belize": "1.126.1",
21
+ "@openui5/themelib_sap_fiori_3": "1.126.1",
22
+ "@openui5/themelib_sap_horizon": "1.126.1"
23
23
  }
24
24
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.125.0</version>
9
+ <version>1.126.1</version>
10
10
 
11
11
  <documentation>SAPUI5 library for the Demokit 2.0.</documentation>
12
12
 
@@ -51,15 +51,15 @@
51
51
  <copyright>2017 Wei Song and Oliver Nightingale</copyright>
52
52
  <pattern>sap/ui/documentation/sdk/thirdparty/elasticlunr.js</pattern>
53
53
  </lib>
54
- <lib name="datatables" displayName="DataTables" npmName="datatables.net-dt" version="1.10.15" hash="702f56c7e7a339c93e63db3d576f032a" homepage="https://datatables.net/" id="73555000106100009470">
54
+ <lib name="datatables" displayName="DataTables" npmName="datatables.net-dt" version="2.0.1" hash="290472b66e1c910ae1505c299a40a319" homepage="https://datatables.net/" id="73554900106100300066">
55
55
  <license url="https://datatables.net/license/" type="MIT" />
56
- <copyright>2008-2017 SpryMedia Ltd</copyright>
57
- <pattern>sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-1.10.15/*</pattern>
56
+ <copyright>SpryMedia Ltd</copyright>
57
+ <pattern>sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/*</pattern>
58
58
  </lib>
59
- <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">
59
+ <lib name="datatables-buttons" displayName="Buttons extension for DataTables" npmName="datatables.net-buttons-dt" version="3.0.0" hash="8266856cadc3cad4f2d80e56cc566af8" homepage="https://datatables.net/extensions/buttons/" id="73554900106100285921">
60
60
  <license url="https://datatables.net/license/" type="MIT" />
61
- <copyright>2016 SpryMedia Ltd</copyright>
62
- <pattern>sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/*</pattern>
61
+ <copyright>SpryMedia Ltd</copyright>
62
+ <pattern>sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/*</pattern>
63
63
  <!-- not in PPMS because it is a sub-module of DataTables -->
64
64
  </lib>
65
65
  </thirdparty>
@@ -25,14 +25,14 @@ sap.ui.define([
25
25
  * @namespace
26
26
  * @alias sap.ui.documentation
27
27
  * @author SAP SE
28
- * @version 1.125.0
28
+ * @version 1.126.1
29
29
  * @since 1.48
30
30
  * @public
31
31
  */
32
32
  var thisLibrary = Lib.init({
33
33
  apiVersion: 2,
34
34
  name : 'sap.ui.documentation',
35
- version: '1.125.0',
35
+ version: '1.126.1',
36
36
  dependencies : ['sap.ui.core','sap.m'],
37
37
  types: [],
38
38
  interfaces: [],
@@ -388,7 +388,7 @@ API_DETAIL_AS_OF_VERSION=\u0628\u062F\u0621\u064B\u0627 \u0645\u0646 {0}
388
388
  API_DETAIL_NA_VERSION=\u0625\u0635\u062F\u0627\u0631 \u063A\u064A\u0631 \u0642\u0627\u0628\u0644 \u0644\u0644\u062A\u0637\u0628\u064A\u0642
389
389
 
390
390
  RESOURCES_INTRO_CARD_TITLE=\u0627\u0644\u0645\u0648\u0627\u0631\u062F
391
- RESOURCES_INTRO_CARD_SUBTITLE=\u0647\u0630\u0627 \u0647\u0648 \u0627\u0644\u0645\u0648\u0632\u0639 \u0644\u062F\u064A\u0643 \u0644\u0645\u0648\u0627\u0631\u062F UI5 \u0627\u0644\u0645\u062D\u062F\u062F\u0629 \u0644\u0645\u0633\u0627\u0639\u062F\u062A\u0643 \u0641\u064A \u0631\u062D\u0644\u0629 \u062A\u0637\u0648\u064A\u0631\u0643. \u0627\u0646\u0637\u0644\u0642 \u0641\u064A \u0631\u062D\u0644\u062A\u0643 \u0648\u0627\u0633\u062A\u0643\u0634\u0641 \u0627\u0644\u0645\u0645\u064A\u0632\u0627\u062A \u0648\u062A\u0639\u0644\u0645 \u0645\u0646\u0647\u0627 \u0648\u062D\u0642\u0642 \u0623\u0642\u0635\u0649 \u0627\u0633\u062A\u0641\u0627\u062F\u0629 \u0645\u0646 \u0645\u0634\u0627\u0631\u064A\u0639 UI5\!
391
+ RESOURCES_INTRO_CARD_SUBTITLE=\u0647\u0630\u0627 \u0647\u0648 \u0627\u0644\u0645\u0648\u0632\u0639 \u0644\u062F\u064A\u0643 \u0644\u0645\u0648\u0627\u0631\u062F UI5 \u0627\u0644\u0645\u062D\u062F\u062F\u0629 \u0644\u0645\u0633\u0627\u0639\u062F\u062A\u0643 \u0641\u064A \u0631\u062D\u0644\u0629 \u062A\u0637\u0648\u064A\u0631\u0643. \u0627\u0646\u0637\u0644\u0642 \u0641\u064A \u0631\u062D\u0644\u062A\u0643 \u0648\u0627\u0633\u062A\u0643\u0634\u0641 \u0627\u0644\u0645\u0645\u064A\u0632\u0627\u062A \u0648\u062A\u0639\u0644\u0645 \u0645\u0646\u0647\u0627 \u0648\u062D\u0642\u0642 \u0623\u0642\u0635\u0649 \u0627\u0633\u062A\u0641\u0627\u062F\u0629 \u0645\u0646 \u0645\u0634\u0631\u0648\u0639\u0627\u062A UI5\!
392
392
 
393
393
  RESOURCES_ASIDE_CARD_TITLE=\u0646\u0638\u0631\u0629 \u0639\u0627\u0645\u0629 \u0634\u0627\u0645\u0644\u0629
394
394
 
@@ -410,7 +410,7 @@ RESOURCES_CARD_DESC_LINTER=UI5 linter \u0647\u064A \u0623\u062F\u0627\u0629 \u06
410
410
  RESOURCES_CARD_TITLE_FPM_EXPLORER=\u0645\u0633\u062A\u0643\u0634\u0641 \u0646\u0645\u0627\u0630\u062C \u0627\u0644\u0628\u0631\u0645\u062C\u0629 \u0627\u0644\u0645\u0631\u0646\u0629
411
411
  RESOURCES_CARD_DESC_FPM_EXPLORER=\u064A\u064F\u0633\u0647\u0644 \u0644\u0643 \u0646\u0645\u0648\u0630\u062C \u0627\u0644\u0628\u0631\u0645\u062C\u0629 \u0627\u0644\u0645\u0631\u0646 \u062A\u0635\u0645\u064A\u0645 \u0627\u0644\u062A\u0637\u0628\u064A\u0642\u0627\u062A \u0648\u0641\u0642\u064B\u0627 \u0644\u0627\u062D\u062A\u064A\u0627\u062C\u0627\u062A\u0643 \u0627\u0644\u062E\u0627\u0635\u0629 \u0639\u0646\u062F \u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0639\u0646\u0627\u0635\u0631 SAP Fiori \u0644\u0644\u0625\u0635\u062F\u0627\u0631 \u0627\u0644\u0631\u0627\u0628\u0639 \u0645\u0646 \u0628\u0631\u0648\u062A\u0648\u0643\u0648\u0644 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0645\u0641\u062A\u0648\u062D\u0629 (OData).
412
412
  RESOURCES_CARD_TITLE_BUSINESS_APP_STUDIO=SAP Business Application Studio
413
- RESOURCES_CARD_DESC_BUSINESS_APP_STUDIO=SAP Business Application Studio\u200F (BAS) \u0647\u0648 \u0628\u064A\u0626\u0629 \u062A\u0637\u0648\u064A\u0631 \u062D\u062F\u064A\u062B\u0629 \u0645\u0633\u062A\u0646\u062F\u0629 \u0625\u0644\u0649 \u0627\u0644\u0633\u062D\u0627\u0628\u0629\u060C \u0648\u0635\u064F\u0645\u0645 \u062E\u0635\u064A\u0635\u064B\u0627 \u0644\u062A\u0637\u0648\u064A\u0631 \u0648\u062A\u0648\u0633\u0639\u0629 \u062A\u0637\u0628\u064A\u0642\u0627\u062A \u0627\u0644\u0623\u0639\u0645\u0627\u0644 \u0644\u0644\u0645\u0624\u0633\u0633\u0627\u062A \u0627\u0644\u0630\u0643\u064A\u0629 \u0628\u0634\u0643\u0644 \u0641\u0639\u0627\u0644.
413
+ RESOURCES_CARD_DESC_BUSINESS_APP_STUDIO=SAP Business Application Studio\u200F (BAS) \u0647\u0648 \u0628\u064A\u0626\u0629 \u062A\u0637\u0648\u064A\u0631 \u062D\u062F\u064A\u062B\u0629 \u0645\u0633\u062A\u0646\u062F\u0629 \u0625\u0644\u0649 \u0627\u0644\u0633\u062D\u0627\u0628\u0629\u060C \u0648\u0635\u064F\u0645\u0645\u062A \u062E\u0635\u064A\u0635\u064B\u0627 \u0644\u062A\u0637\u0648\u064A\u0631 \u0648\u062A\u0648\u0633\u0639\u0629 \u062A\u0637\u0628\u064A\u0642\u0627\u062A \u0627\u0644\u0623\u0639\u0645\u0627\u0644 \u0644\u0644\u0645\u0624\u0633\u0633\u0627\u062A \u0627\u0644\u0630\u0643\u064A\u0629 \u0628\u0634\u0643\u0644 \u0641\u0639\u0627\u0644.
414
414
 
415
415
  RESOURCES_CATEGORY_TITLE_CUSTOMISING=\u062A\u062E\u0635\u064A\u0635
416
416
  RESOURCES_CARD_TITLE_THEME_DESIGNER=\u0645\u0635\u0645\u0645 \u0646\u064F\u0633\u0642 \u0648\u0627\u062C\u0647\u0629 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645
@@ -68,7 +68,7 @@ sap.ui.define([
68
68
  UIComponent.prototype.init.apply(this, arguments);
69
69
 
70
70
  // Load VersionInfo model promise
71
- this.loadVersionInfo().then(this._bindVersionModel.bind(this));
71
+ this.loadVersionInfo();
72
72
 
73
73
  // create the views based on the url/hash
74
74
  this.getRouter().initialize();
@@ -131,19 +131,23 @@ sap.ui.define([
131
131
 
132
132
  // MODELS
133
133
  loadVersionInfo: function () {
134
- return new Promise(function (resolve, reject) {
135
- jQuery.ajax({
136
- async: true,
137
- url : ResourcesUtil.getResourceOriginPath("resources/sap-ui-version.json"),
138
- dataType : 'json',
139
- success : function(oResponse) {
140
- resolve(oResponse);
141
- },
142
- error : function (err) {
143
- reject(err);
144
- }
145
- });
146
- });
134
+ if (!this._oVersionInfoPromise) {
135
+ this._oVersionInfoPromise = new Promise(function (resolve, reject) {
136
+ jQuery.ajax({
137
+ async: true,
138
+ url : ResourcesUtil.getResourceOriginPath("resources/sap-ui-version.json"),
139
+ dataType : 'json',
140
+ success : function(oResponse) {
141
+ this._bindVersionModel(oResponse);
142
+ resolve(oResponse);
143
+ }.bind(this),
144
+ error : function (err) {
145
+ reject(err);
146
+ }
147
+ });
148
+ }.bind(this));
149
+ }
150
+ return this._oVersionInfoPromise;
147
151
  },
148
152
 
149
153
  _bindVersionModel : function (oVersionInfo) {
@@ -3,7 +3,7 @@
3
3
  * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
- sap.ui.define(['sap/uxap/BlockBase', "sap/ui/documentation/sdk/model/formatter"],
6
+ sap.ui.define(['sap/uxap/BlockBase'],
7
7
  function (BlockBase, formatter) {
8
8
  "use strict";
9
9
 
@@ -19,9 +19,6 @@ sap.ui.define(['sap/uxap/BlockBase', "sap/ui/documentation/sdk/model/formatter"]
19
19
  type: "XML"
20
20
  }
21
21
  }
22
- },
23
- formatText: function() {
24
- return formatter.formatIndexByVersionEntry.apply(formatter, arguments);
25
22
  }
26
23
  });
27
24
 
@@ -1,5 +1,5 @@
1
1
  <mvc:View
2
- controllerName="sap.ui.documentation.sdk.blocks.IndexEntry"
2
+ controllerName="sap.ui.documentation.sdk.blocks.IndexEntryController"
3
3
  xmlns:mvc="sap.ui.core.mvc"
4
4
  xmlns="sap.uxap"
5
5
  xmlns:m="sap.m"
@@ -0,0 +1,15 @@
1
+ /*!
2
+ * OpenUI5
3
+ * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
4
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
+ */
6
+
7
+ sap.ui.define(["sap/ui/core/mvc/Controller", "sap/ui/documentation/sdk/model/formatter"], function (Controller, formatter) {
8
+ "use strict";
9
+
10
+ return Controller.extend("sap.ui.documentation.sdk.blocks.IndexEntry", {
11
+ formatText: function() {
12
+ return formatter.formatIndexByVersionEntry.apply(formatter, arguments);
13
+ }
14
+ });
15
+ });
@@ -47,13 +47,14 @@ sap.ui.define([
47
47
  }
48
48
  this._hasMatched = true;
49
49
 
50
- // Cache allowed members for the filtering
51
- this._aAllowedMembers = this.getModel("versionData").getProperty("/allowedMembers");
52
-
53
- fnDataGetterRef().then(function (oData) {
54
- oData = this._filterVisibleElements(oData);
55
- this._oModel.setData(oData);
50
+ this.getOwnerComponent().loadVersionInfo().then(function () {
51
+ // Cache allowed members for the filtering
52
+ this._aAllowedMembers = this.getModel("versionData").getProperty("/allowedMembers");
56
53
 
54
+ fnDataGetterRef().then(function (oData) {
55
+ oData = this._filterVisibleElements(oData);
56
+ this._oModel.setData(oData);
57
+ }.bind(this));
57
58
  }.bind(this));
58
59
  },
59
60
 
@@ -215,39 +215,47 @@ sap.ui.define([
215
215
  */
216
216
  buildAndApplyFilters: function () {
217
217
  var aFilters = [];
218
+ var noWhitespaceFilter = this._sFilter ? this._sFilter.replace(/\s/g, '') : '';
219
+ var dotToSlashFilter = noWhitespaceFilter.replace(/\./g, '/');
220
+ var slashesToDotFilter = noWhitespaceFilter.replace(/\//g, '.');
218
221
 
219
222
  if (!this._bIncludeDeprecated) {
220
- aFilters.push(new Filter({
223
+ var deprecatedFilter = new Filter({
221
224
  filters: [
222
225
  new Filter({ path: "preserveInTreeList", operator: FilterOperator.EQ, value1: true }),
223
226
  new Filter({ path: "bAllContentDeprecated", operator: FilterOperator.EQ, value1: false })
224
227
  ],
225
228
  and: false
226
- }));
229
+ });
230
+ aFilters.push(deprecatedFilter);
227
231
  }
228
232
 
229
233
  if (!this._bIncludeExperimental) {
230
- aFilters.push(new Filter({
234
+ var experimentalFilter = new Filter({
231
235
  filters: [
232
236
  new Filter({ path: "preserveInTreeList", operator: FilterOperator.EQ, value1: true }),
233
- new Filter({path: "experimental", operator: FilterOperator.EQ, value1: false })
237
+ new Filter({ path: "experimental", operator: FilterOperator.EQ, value1: false })
234
238
  ],
235
239
  and: false
236
- }));
240
+ });
241
+ aFilters.push(experimentalFilter);
237
242
  }
238
243
 
239
244
  if (this._sFilter) {
240
- aFilters.push(new Filter({
245
+ var stringFilter = new Filter({
241
246
  filters: [
242
247
  new Filter({ path: "name", operator: FilterOperator.Contains, value1: this._sFilter }),
243
- new Filter({ path: "name", operator: FilterOperator.Contains, value1: this._sFilter.replace(/\s/g, '') })
248
+ new Filter({ path: "name", operator: FilterOperator.Contains, value1: noWhitespaceFilter }),
249
+ new Filter({ path: "name", operator: FilterOperator.Contains, value1: dotToSlashFilter }),
250
+ new Filter({ path: "name", operator: FilterOperator.Contains, value1: slashesToDotFilter })
244
251
  ],
245
252
  and: false
246
- }));
253
+ });
254
+ aFilters.push(stringFilter);
247
255
  }
248
256
 
249
257
  this._oTree.getBinding("items").filter(new Filter({ and: true, filters: aFilters }));
250
- // Should the tree items be expanded or collapsed - in this case we take into account only the filter string
258
+
251
259
  return !!this._sFilter;
252
260
  },
253
261
 
@@ -129,6 +129,7 @@ sap.ui.define([
129
129
  BaseController.prototype.onInit.call(this);
130
130
 
131
131
  var oViewModel = new JSONModel({
132
+ bCNICPShow: window.location.href.includes("sapui5.platform.sapcloud.cn"),
132
133
  busy: false,
133
134
  delay: 0,
134
135
  device: Device,
@@ -101,9 +101,7 @@ sap.ui.define([
101
101
  * @param {sap.ui.base.Event} oEvent - The event object.
102
102
  */
103
103
  onTreeFilter: function (oEvent) {
104
- // Update filter value
105
- var newValue = oEvent.getParameter("newValue").trim();
106
- this._sFilter = newValue.replace(/\//g, '.');
104
+ this._sFilter = oEvent.getParameter("newValue").trim();
107
105
 
108
106
  if (this._filterTimeout) {
109
107
  clearTimeout(this._filterTimeout);
@@ -83,25 +83,26 @@ sap.ui.define([
83
83
  includeScript({ url: "resources/sap/ui/documentation/sdk/thirdparty/highlight.js/highlight.js" });
84
84
  }
85
85
 
86
- includeStylesheet("resources/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-1.10.15/css/dataTables.jqueryui.css");
87
- includeStylesheet("resources/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/css/buttons.jqueryui.css");
86
+ includeStylesheet("resources/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/css/dataTables.jqueryui.css");
87
+ includeStylesheet("resources/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/css/dataTables.jqueryui.css");
88
+ includeStylesheet("resources/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/css/buttons.jqueryui.css");
89
+ includeStylesheet("resources/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/css/buttons.dataTables.css");
88
90
 
89
91
  // order is important
90
- includeScript({ url: "resources/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-1.10.15/js/jquery.dataTables.js" })
92
+ includeScript({ url: "resources/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/js/dataTables.js" })
91
93
  .then(function () {
92
- return includeScript({ url: "resources/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-1.10.15/js/dataTables.jqueryui.js" });
94
+ return includeScript({ url: "resources/sap/ui/documentation/sdk/thirdparty/DataTables/DataTables-2.0.1/js/dataTables.jqueryui.js" });
95
+ }).then(function () {
96
+ return includeScript({ url: "resources/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/js/dataTables.buttons.js" });
93
97
  })
94
98
  .then(function () {
95
- return includeScript({ url: "resources/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/js/dataTables.buttons.js" });
99
+ return includeScript({ url: "resources/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/js/buttons.jqueryui.js" });
96
100
  })
97
101
  .then(function () {
98
- return includeScript({ url: "resources/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/js/buttons.jqueryui.js" });
102
+ return includeScript({ url: "resources/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/js/buttons.html5.js" });
99
103
  })
100
104
  .then(function () {
101
- return includeScript({ url: "resources/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/js/buttons.html5.js" });
102
- })
103
- .then(function () {
104
- return includeScript({ url: "resources/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-1.4.0/js/buttons.colVis.js" });
105
+ return includeScript({ url: "resources/sap/ui/documentation/sdk/thirdparty/DataTables/Buttons-3.0.0/js/buttons.colVis.js" });
105
106
  })
106
107
  .then(function () {
107
108
  dataTablesConfigURL = ResourcesUtil.getResourceOriginPath(oConfig.docuPath + 'dataTablesConfig.json');
@@ -380,11 +381,14 @@ sap.ui.define([
380
381
 
381
382
  _enableDataTable: function (oTable) {
382
383
  var sTableId = oTable.id,
383
- oConfig = this._getDataTableConfig(sTableId),
384
+ oConfig = Object.assign(this._getDataTableConfig(sTableId), { responsive: true, layout: {
385
+ topStart: {
386
+ buttons: ['colvis', 'pageLength']
387
+ }}}),
384
388
  oDataTable;
385
389
 
386
390
  if (oConfig) {
387
- oDataTable = new DataTable().init(sTableId, oTable, oConfig);
391
+ oDataTable = jQuery('#' + sTableId).DataTable(oConfig);
388
392
  this._getDataTableHelper().addDatatable(oDataTable);
389
393
  }
390
394
 
@@ -10,9 +10,7 @@ sap.ui.define([], function () {
10
10
  return {
11
11
  getPreset: function () {
12
12
  return {
13
- "dom": '<"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix ui-corner-tl ui-corner-tr"<"searchWrapper"f>l<"pagingWrapper"p>t>' +
14
- 't' +
15
- '<"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix ui-corner-bl ui-corner-br"ip>',
13
+ "dom": '',
16
14
  "buttons": [ { extend: 'colvis' } ],
17
15
  "lengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
18
16
  "sapTableId": "",
@@ -139,7 +139,7 @@ sap.ui.define(["sap/ui/thirdparty/jquery"],
139
139
  }
140
140
 
141
141
  return txt.replace(/<\/?([^>]+)>/g, function (match, tag) {
142
- if (preservedTags.indexOf(tag) === -1) {
142
+ if (preservedTags.indexOf(tag.split(" ")[0]) === -1) {
143
143
  return '';
144
144
  }
145
145
  return match;
@@ -74,6 +74,10 @@ pre.sapUiDocumentationAPICode,
74
74
  padding: .5rem 1rem 0.25rem 1rem;
75
75
  }
76
76
 
77
+ .sapUiDocumentationFooterLink {
78
+ line-height: 1rem;
79
+ }
80
+
77
81
  .sap-phone .sapMTB.sapUiDocumentationFooter {
78
82
  padding: 1rem;
79
83
  padding-top: 1.25rem;
@@ -82,7 +82,7 @@
82
82
  "preservedContent": [
83
83
  {
84
84
  "className": "shortdesc",
85
- "preservedTags": ["code"]
85
+ "preservedTags": ["code", "span"]
86
86
  }
87
87
  ]
88
88
  },