@openui5/sap.ui.documentation 1.93.3 → 1.96.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.
Files changed (88) hide show
  1. package/.reuse/dep5 +6 -11
  2. package/THIRDPARTY.txt +10 -16
  3. package/package.json +6 -6
  4. package/src/sap/ui/documentation/.library +1 -6
  5. package/src/sap/ui/documentation/library.js +7 -5
  6. package/src/sap/ui/documentation/messagebundle.properties +11 -2
  7. package/src/sap/ui/documentation/messagebundle_ar.properties +7 -2
  8. package/src/sap/ui/documentation/messagebundle_bg.properties +7 -2
  9. package/src/sap/ui/documentation/messagebundle_ca.properties +7 -2
  10. package/src/sap/ui/documentation/messagebundle_cs.properties +7 -2
  11. package/src/sap/ui/documentation/messagebundle_cy.properties +7 -2
  12. package/src/sap/ui/documentation/messagebundle_da.properties +7 -2
  13. package/src/sap/ui/documentation/messagebundle_de.properties +7 -2
  14. package/src/sap/ui/documentation/messagebundle_el.properties +7 -2
  15. package/src/sap/ui/documentation/messagebundle_en.properties +7 -2
  16. package/src/sap/ui/documentation/messagebundle_en_GB.properties +7 -2
  17. package/src/sap/ui/documentation/messagebundle_en_US_sappsd.properties +7 -2
  18. package/src/sap/ui/documentation/messagebundle_en_US_saprigi.properties +7 -2
  19. package/src/sap/ui/documentation/messagebundle_en_US_saptrc.properties +7 -2
  20. package/src/sap/ui/documentation/messagebundle_es.properties +7 -2
  21. package/src/sap/ui/documentation/messagebundle_es_MX.properties +9 -4
  22. package/src/sap/ui/documentation/messagebundle_et.properties +7 -2
  23. package/src/sap/ui/documentation/messagebundle_fi.properties +7 -2
  24. package/src/sap/ui/documentation/messagebundle_fr.properties +7 -2
  25. package/src/sap/ui/documentation/messagebundle_fr_CA.properties +8 -3
  26. package/src/sap/ui/documentation/messagebundle_hi.properties +7 -2
  27. package/src/sap/ui/documentation/messagebundle_hr.properties +7 -2
  28. package/src/sap/ui/documentation/messagebundle_hu.properties +7 -2
  29. package/src/sap/ui/documentation/messagebundle_id.properties +7 -2
  30. package/src/sap/ui/documentation/messagebundle_it.properties +7 -2
  31. package/src/sap/ui/documentation/messagebundle_iw.properties +7 -2
  32. package/src/sap/ui/documentation/messagebundle_ja.properties +7 -2
  33. package/src/sap/ui/documentation/messagebundle_kk.properties +7 -2
  34. package/src/sap/ui/documentation/messagebundle_ko.properties +7 -2
  35. package/src/sap/ui/documentation/messagebundle_lt.properties +7 -2
  36. package/src/sap/ui/documentation/messagebundle_lv.properties +7 -2
  37. package/src/sap/ui/documentation/messagebundle_ms.properties +7 -2
  38. package/src/sap/ui/documentation/messagebundle_nl.properties +7 -2
  39. package/src/sap/ui/documentation/messagebundle_no.properties +7 -2
  40. package/src/sap/ui/documentation/messagebundle_pl.properties +7 -2
  41. package/src/sap/ui/documentation/messagebundle_pt.properties +7 -2
  42. package/src/sap/ui/documentation/messagebundle_pt_PT.properties +7 -2
  43. package/src/sap/ui/documentation/messagebundle_ro.properties +7 -2
  44. package/src/sap/ui/documentation/messagebundle_ru.properties +7 -2
  45. package/src/sap/ui/documentation/messagebundle_sh.properties +7 -2
  46. package/src/sap/ui/documentation/messagebundle_sk.properties +7 -2
  47. package/src/sap/ui/documentation/messagebundle_sl.properties +7 -2
  48. package/src/sap/ui/documentation/messagebundle_sv.properties +7 -2
  49. package/src/sap/ui/documentation/messagebundle_th.properties +7 -2
  50. package/src/sap/ui/documentation/messagebundle_tr.properties +7 -2
  51. package/src/sap/ui/documentation/messagebundle_uk.properties +10 -5
  52. package/src/sap/ui/documentation/messagebundle_vi.properties +7 -2
  53. package/src/sap/ui/documentation/messagebundle_zh_CN.properties +7 -2
  54. package/src/sap/ui/documentation/messagebundle_zh_TW.properties +7 -2
  55. package/src/sap/ui/documentation/sdk/Component.js +3 -2
  56. package/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js +9 -4
  57. package/src/sap/ui/documentation/sdk/controller/ApiDetailIndexDeprecatedExperimental.controller.js +1 -38
  58. package/src/sap/ui/documentation/sdk/controller/App.controller.js +24 -9
  59. package/src/sap/ui/documentation/sdk/controller/Code.controller.js +1 -2
  60. package/src/sap/ui/documentation/sdk/controller/Entity.controller.js +1 -1
  61. package/src/sap/ui/documentation/sdk/controller/Sample.controller.js +59 -24
  62. package/src/sap/ui/documentation/sdk/controller/SampleBaseController.js +6 -4
  63. package/src/sap/ui/documentation/sdk/controller/SampleNotFound.controller.js +14 -0
  64. package/src/sap/ui/documentation/sdk/controller/SubApiDetail.controller.js +5 -38
  65. package/src/sap/ui/documentation/sdk/controller/TopicDetail.controller.js +1 -1
  66. package/src/sap/ui/documentation/sdk/controller/util/ToolsInfo.js +1 -1
  67. package/src/sap/ui/documentation/sdk/css/style.css +5 -5
  68. package/src/sap/ui/documentation/sdk/index.html +55 -0
  69. package/src/sap/ui/documentation/sdk/manifest.json +11 -0
  70. package/src/sap/ui/documentation/sdk/model/formatter.js +1 -1
  71. package/src/sap/ui/documentation/sdk/util/DocumentationRouter.js +33 -24
  72. package/src/sap/ui/documentation/sdk/util/Resources.js +14 -4
  73. package/src/sap/ui/documentation/sdk/view/App.view.xml +9 -1
  74. package/src/sap/ui/documentation/sdk/view/ChangeVersionDialog.fragment.xml +16 -6
  75. package/src/sap/ui/documentation/sdk/view/ReleaseDialog.fragment.xml +1 -1
  76. package/src/sap/ui/documentation/sdk/view/SampleNotFound.view.xml +17 -0
  77. package/src/sap/ui/documentation/sdk/view/SubApiDetail.view.xml +3 -18
  78. package/src/sap/ui/documentation/sdk/view/Tools.view.xml +2 -2
  79. package/src/sap/ui/documentation/themes/base/Documentation.less +7 -6
  80. package/ui5.yaml +5 -2
  81. package/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/lang-css.js +0 -160
  82. package/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/lang-feature.js +0 -33
  83. package/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/lang-properties.js +0 -22
  84. package/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/lang-text.js +0 -11
  85. package/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/prettify.css +0 -232
  86. package/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/prettify.js +0 -1740
  87. package/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/run-prettify.js +0 -27
  88. package/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/run_prettify.js +0 -34
@@ -9,8 +9,9 @@ sap.ui.define([
9
9
  'sap/m/routing/Router',
10
10
  'sap/ui/core/routing/History',
11
11
  'sap/ui/thirdparty/hasher',
12
- "sap/ui/documentation/sdk/controller/util/ControlsInfo"
13
- ], function(Router, History, Hasher, ControlsInfo) {
12
+ "sap/ui/documentation/sdk/controller/util/ControlsInfo",
13
+ "sap/ui/thirdparty/URI"
14
+ ], function(Router, History, Hasher, ControlsInfo, URI) {
14
15
  "use strict";
15
16
 
16
17
  // We need to set the global hasher instance to not encode URL's. This is specific for the SDK
@@ -24,6 +25,7 @@ sap.ui.define([
24
25
 
25
26
  // Configure URL separator
26
27
  this._URLSeparator = window['sap-ui-documentation-static'] ? "%23" : "#";
28
+ this._fnPopstateHandlerRef = this.popstateHandler.bind(this);
27
29
 
28
30
  this.getRoute("entitySamplesLegacyRoute").attachPatternMatched(this._onOldEntityRouteMatched, this);
29
31
  this.getRoute("entityAboutLegacyRoute").attachPatternMatched(this._onOldEntityRouteMatched, this);
@@ -231,24 +233,13 @@ sap.ui.define([
231
233
  return;
232
234
  }
233
235
 
234
- if (
235
- oElement.classList.contains("scrollToMethod") ||
236
- oElement.classList.contains("scrollToEvent") ||
237
- oElement.classList.contains("scrollToAnnotation")
238
- ) {
239
- if (oEvent.preventDefault) {
240
- oEvent.preventDefault();
241
- }
242
- return; // This is handled in the SubApiDetail controller
243
- }
244
-
245
236
  if (bCtrlHold) {
246
237
  // if ctrl or command is pressed we want
247
238
  // the default browser behavior (open in new tab)
248
239
  return;
249
240
  }
250
241
 
251
- oAnchorElement = getClosestParentLink(oElement);
242
+ oAnchorElement = getClosestParentLink(oElement, true);
252
243
 
253
244
  if (!oAnchorElement) {
254
245
  return;
@@ -303,7 +294,9 @@ sap.ui.define([
303
294
  oTarget = oEvent.target,
304
295
  oAnchorElement = getClosestParentLink(oTarget),
305
296
  bCtrlHold = oEvent.ctrlKey || oEvent.metaKey,
306
- sTargetHref;
297
+ sTargetHref,
298
+ bNewWindow,
299
+ oUri;
307
300
 
308
301
  if (oAnchorElement) {
309
302
  // The links from the static documentation are already preprocessed at build-time
@@ -312,17 +305,18 @@ sap.ui.define([
312
305
  return;
313
306
  }
314
307
  sTargetHref = getHref(oAnchorElement);
308
+ bNewWindow = bCtrlHold || !getSameWindow(oAnchorElement);
315
309
  }
316
310
 
317
311
  // Do not change href if it's already changed or if it's a stand-alone HTML page
318
- if (!sTargetHref || /^https?:\/\//.test(sTargetHref) || sTargetHref.endsWith(".html")) {
312
+ if (!sTargetHref || (oUri = URI(sTargetHref)).is("absolute") || oUri.suffix() === "html") {
319
313
  return;
320
314
  }
321
315
 
322
316
  // When context menu of the Browser is opened or when the aux button is clicked,
323
317
  // or if the ctrl is hold and left mouse button is clicked
324
318
  // we change the href of the anchor element
325
- if (iPressedButton === 2 || iPressedButton === 4 || (bCtrlHold && iPressedButton === 1)) {
319
+ if (iPressedButton === 2 || iPressedButton === 4 || (bNewWindow && iPressedButton === 1)) {
326
320
  sTargetHref = this.convertToStaticFormat(sTargetHref);
327
321
  oAnchorElement.setAttribute("href", sTargetHref);
328
322
  }
@@ -348,11 +342,18 @@ sap.ui.define([
348
342
 
349
343
  DocumentationRouter.prototype.attachPopstateHandler = function () {
350
344
  if (!this._bPopstateHandlerAttached) {
351
- window.addEventListener('popstate', this.popstateHandler.bind(this));
345
+ window.addEventListener('popstate', this._fnPopstateHandlerRef);
352
346
  this._bPopstateHandlerAttached = true;
353
347
  }
354
348
  };
355
349
 
350
+ DocumentationRouter.prototype.detachPopstateHandler = function () {
351
+ if (this._bPopstateHandlerAttached) {
352
+ window.removeEventListener('popstate', this._fnPopstateHandlerRef);
353
+ this._bPopstateHandlerAttached = false;
354
+ }
355
+ };
356
+
356
357
  /**
357
358
  * API Reference special route decoder method
358
359
  *
@@ -615,8 +616,10 @@ sap.ui.define([
615
616
  sPath = decodeURIComponent(sPath);
616
617
  sPath = sPath.replace("#", this._URLSeparator);
617
618
 
619
+ // suspend the monitoring of hash changes
618
620
  this.stop();
619
621
  hasher.stop();
622
+ this.detachPopstateHandler();
620
623
 
621
624
  if (bHistory) {
622
625
  hasher.setHash(sPath);
@@ -624,8 +627,10 @@ sap.ui.define([
624
627
  hasher.replaceHash(sPath);
625
628
  }
626
629
 
630
+ // resume the monitoring of hash changes
627
631
  hasher.init();
628
632
  this.initialize(true);
633
+ this.attachPopstateHandler();
629
634
  };
630
635
 
631
636
  }
@@ -648,21 +653,21 @@ sap.ui.define([
648
653
  };
649
654
 
650
655
  // util
651
- function getClosestParentLink(oAnchorElement, iMaxDrillUp) {
652
- var bIsAnchor = isAnchorElement(oAnchorElement), iDrillUp = 0;
656
+ function getClosestParentLink(oAnchorElement, bSameWindow, iMaxDrillUp) {
657
+ var bIsAnchor = isAnchorElement(oAnchorElement, bSameWindow), iDrillUp = 0;
653
658
  iMaxDrillUp || (iMaxDrillUp = 3);
654
659
 
655
660
  while (!bIsAnchor && iDrillUp++ < iMaxDrillUp) {
656
661
  oAnchorElement = oAnchorElement && oAnchorElement.parentElement;
657
- bIsAnchor = isAnchorElement(oAnchorElement);
662
+ bIsAnchor = isAnchorElement(oAnchorElement, bSameWindow);
658
663
  }
659
664
 
660
665
  return oAnchorElement;
661
666
  }
662
667
 
663
- function isAnchorElement(oAnchorElement) {
664
- if (oAnchorElement && oAnchorElement.nodeName === "A" && oAnchorElement.getAttribute("target") !== "_blank") {
665
- return true;
668
+ function isAnchorElement(oAnchorElement, bSameWindow) {
669
+ if (oAnchorElement && oAnchorElement.nodeName === "A") {
670
+ return bSameWindow ? getSameWindow(oAnchorElement) : true;
666
671
  }
667
672
 
668
673
  return false;
@@ -672,6 +677,10 @@ sap.ui.define([
672
677
  return oAnchorElement.getAttribute("href");
673
678
  }
674
679
 
680
+ function getSameWindow(oAnchorElement) {
681
+ return oAnchorElement.getAttribute("target") !== "_blank";
682
+ }
683
+
675
684
  return DocumentationRouter;
676
685
 
677
686
  });
@@ -22,18 +22,28 @@
22
22
  *
23
23
  * @param {string} sPath Relative path to resources
24
24
  */
25
+
25
26
  getResourceOriginPath: function (sPath) {
26
- var oConfig, sOrigin,
27
+ var sOrigin,
27
28
  oUri = URI(sPath),
28
- sVersionPrefixPath = window.sessionStorage.getItem("versionPrefixPath") || "";
29
+ sVersionPrefixPath = this.getResourcesVersion();
29
30
  if (oUri && oUri.is("absolute")) {
30
31
  return sPath;
31
32
  }
32
- oConfig = self['sap-ui-documentation-config'];
33
- sOrigin = (oConfig && oConfig.demoKitResourceOrigin) || '.';
33
+ sOrigin = this.getConfig() || '.';
34
34
 
35
35
  return sOrigin + sVersionPrefixPath + this._formatPath(sPath);
36
36
  },
37
+ getHasProxy: function () {
38
+ return new window.URLSearchParams(window.location.search).get('sap-ui-xx-unifiedResources') != null ||
39
+ window["sap-ui-unified-resources"];
40
+ },
41
+ getResourcesVersion: function() {
42
+ return this.getHasProxy() && window.sessionStorage.getItem("versionPrefixPath") || "";
43
+ },
44
+ getConfig: function() {
45
+ return self['sap-ui-documentation-config'] && self['sap-ui-documentation-config'].demoKitResourceOrigin;
46
+ },
37
47
  _formatPath: function(sPath) {
38
48
  sPath = sPath.replace(/^\.\//, '/');
39
49
 
@@ -72,7 +72,15 @@
72
72
  </items>
73
73
  </IconTabHeader>
74
74
 
75
- <ObjectStatus text="{= ${versionData>/isBetaVersion} ? ${i18n>APP_VERSION_BETA_VERSION} : ${i18n>APP_VERSION_VERSION}} {versionData>/version} {= ${versionData>/isBetaVersion} ? ${i18n>APP_VERSION_NOT_PRODUCTIVE} : ${versionData>/isDevVersion} ? ${i18n>APP_VERSION_IN_PROGRESS} : ''}" state="{= ${versionData>/isBetaVersion} ? 'Error' : ${versionData>/isDevVersion} ? 'Warning' : 'None'}" visible="{=!${appView>/bPhoneSize}}" />
75
+ <ObjectStatus text="{= ${versionData>/isBetaVersion} ? ${i18n>APP_VERSION_BETA_VERSION} :
76
+ ${i18n>APP_VERSION_VERSION}}
77
+ {versionData>/version}
78
+ {= ${versionData>/isBetaVersion} ? ${i18n>APP_VERSION_NOT_PRODUCTIVE} :
79
+ ${versionData>/isDevVersion} ? ${i18n>APP_VERSION_IN_PROGRESS} :
80
+ ${versionData>/latestVersion} === ${versionData>/version} ? '(Latest)' :
81
+ ''}" state="{= ${versionData>/isBetaVersion} ? 'Error' :
82
+ ${versionData>/isDevVersion} ? 'Warning' :
83
+ 'None'}" visible="{=!${appView>/bPhoneSize}}" />
76
84
 
77
85
  <Button id="changeVersionButton" press="onChangeVersionButtonPress" type="Transparent" text="{i18n>APP_CHANGE_VERSION_BTN}" visible="{appView>/bShowVersionSwitchInHeader}">
78
86
  <layoutData>
@@ -5,12 +5,22 @@
5
5
  title="{i18n>CHANGE_VERSION_DIALOG_TITLE}"
6
6
  contentHeight="400px"
7
7
  stretch="{appView>/bPhoneSize}">
8
- <endButton>
8
+ <buttons>
9
9
  <Button
10
- text="{i18n>CHANGE_VERSION_DIALOG_CLOSE_BTN}"
11
- press="onCloseVersionDialog">
10
+ text="{i18n>CHANGE_VERSION_DIALOG_APPLY_BTN}"
11
+ type="Emphasized"
12
+ press="onVersionItemPress">
12
13
  </Button>
13
- </endButton>
14
+ <Button
15
+ text="{i18n>CHANGE_VERSION_DIALOG_LATEST_BTN}"
16
+ type="Ghost"
17
+ press="onLatestVersionItemPress">
18
+ </Button>
19
+ <Button
20
+ text="{i18n>CHANGE_VERSION_DIALOG_CLOSE_BTN}"
21
+ press="onCloseVersionDialog">
22
+ </Button>
23
+ </buttons>
14
24
  <subHeader>
15
25
  <Bar>
16
26
  <contentMiddle>
@@ -23,7 +33,7 @@
23
33
  </subHeader>
24
34
  <Tree
25
35
  id="versionList"
26
- itemPress="onVersionItemPress"
36
+ mode="SingleSelectMaster"
27
37
  items="{
28
38
  path: '/',
29
39
  sorter: [{
@@ -37,7 +47,7 @@
37
47
  }]
38
48
  }">
39
49
  <StandardTreeItem
40
- title="{path: 'version'}"
50
+ title="{path: 'version'}{= ${path: 'version'} === ${versionData>/latestVersion} ? ' (Latest)' : ''}"
41
51
  type="{= ${path: 'path'} ? 'Active' : 'Inactive'}">
42
52
  <customData>
43
53
  <core:CustomData key="path" value="{path: 'path'}" />
@@ -16,7 +16,7 @@
16
16
  contentWidth="40%"
17
17
  contentHeight="40%"
18
18
  stretch="{appView>/bPhoneSize}">
19
- <Text text="{i18n>RELEASE_DIALOG_NO_DATA_TEXT}" class="sapUiSmallMargin" visible="{/noDataMessage}"/>
19
+ <Text text="{i18n>RELEASE_DIALOG_NO_DATA_TEXT}" class="sapUiSmallMargin" visible="{=!!${/noData}}"/>
20
20
  <beginButton>
21
21
  <Button text="{i18n>RELEASE_DIALOG_CLOSE_BTN}" press="onReleaseDialogClose"/>
22
22
  </beginButton>
@@ -0,0 +1,17 @@
1
+ <mvc:View
2
+ controllerName="sap.ui.documentation.sdk.controller.SampleNotFound"
3
+ xmlns:mvc="sap.ui.core.mvc"
4
+ xmlns="sap.m">
5
+
6
+ <MessagePage
7
+ id="page"
8
+ title="{i18n>NOT_FOUND_SAMPLE_TITLE}"
9
+ text="{i18n>NOT_FOUND_SAMPLE_TEXT}"
10
+ description="&lt;a target='_self' href='controls' &gt;Samples page&lt;/a&gt;"
11
+ icon="sap-icon://document"
12
+ enableFormattedText="true"
13
+ showNavButton="{device>/system/phone}"
14
+ navButtonPress="onNavBack">
15
+ </MessagePage>
16
+
17
+ </mvc:View>
@@ -445,12 +445,7 @@
445
445
  <custom:Row>
446
446
  <custom:ParamText text="{event>name}"
447
447
  href="api/{data>/name}#events/{event>name}"
448
- deprecated="{= ${event>deprecated} !== undefined }"
449
- class="scrollToEvent jsdoclink">
450
- <custom:customData>
451
- <core:CustomData writeToDom="true" key="target" value="{event>name}" />
452
- </custom:customData>
453
- </custom:ParamText>
448
+ deprecated="{= ${event>deprecated} !== undefined }"/>
454
449
  <custom:JSDocText sanitizeContent="false" text="{path: 'event>description', formatter: 'sap.ui.base.ManagedObject.escapeSettingsValue'}"/>
455
450
  </custom:Row>
456
451
  </template:repeat>
@@ -550,12 +545,7 @@
550
545
  <custom:ParamText text="{method>name}"
551
546
  href="{method>href}"
552
547
  deprecated="{= ${method>deprecated} !== undefined }"
553
- experimental="{= ${method>experimental} !== undefined }"
554
- class="scrollToMethod jsdoclink">
555
- <custom:customData>
556
- <core:CustomData writeToDom="true" key="target" value="{method>name}" />
557
- </custom:customData>
558
- </custom:ParamText>
548
+ experimental="{= ${method>experimental} !== undefined }"/>
559
549
  <custom:JSDocText sanitizeContent="false" text="{path: 'method>description', formatter: 'sap.ui.base.ManagedObject.escapeSettingsValue'}"/>
560
550
  </custom:Row>
561
551
  </template:repeat>
@@ -730,12 +720,7 @@
730
720
  <template:repeat list="{data>/ui5-metadata/annotations}" var="annotation">
731
721
  <custom:Row>
732
722
  <m:Link text="{= ${annotation>annotation} !== 'undefined' ? ${annotation>annotation} : '(' + ${annotation>namespaceText} + ')' }"
733
- class="scrollToAnnotation jsdoclink"
734
- wrapping="false">
735
- <m:customData>
736
- <core:CustomData writeToDom="true" key="target" value="{= ${annotation>annotation} !== 'undefined' ? ${annotation>annotation} : ${annotation>namespaceText} }" />
737
- </m:customData>
738
- </m:Link>
723
+ wrapping="false"/>
739
724
  <custom:JSDocText sanitizeContent="false" text="{path: 'annotation>description', formatter: 'sap.ui.base.ManagedObject.escapeSettingsValue'}"/>
740
725
  </custom:Row>
741
726
  </template:repeat>
@@ -423,9 +423,9 @@
423
423
  href="{/liveEditor/href}"
424
424
  target="_blank"/>
425
425
  </html:div>
426
- <Text class="sapUiSmallMarginBottom" text="{i18n>TOOLS_CARD_10_TEXT}" />
426
+ <Text class="sapUiSmallMarginBottom" text="{i18n>TOOLS_CARD_13_TEXT}" />
427
427
  </VBox>
428
- <Image src="./resources/sap/ui/documentation/sdk/images/tools/Tools_LiveEditor.jpg" class="toolsPageImage" alt="{i18n>TOOLS_CARD_10_IMG_ALT}"/>
428
+ <Image src="./resources/sap/ui/documentation/sdk/images/tools/Tools_LiveEditor.jpg" class="toolsPageImage" alt="{i18n>TOOLS_CARD_13_IMG_ALT}"/>
429
429
  </VBox>
430
430
  </f:content>
431
431
  </f:Card>
@@ -104,7 +104,7 @@ html.sap-tablet:not(.sap-desktop) {
104
104
  }
105
105
 
106
106
  .collapsible.expanded {
107
- > .collapsible-icon::before {
107
+ > .collapsible-icon:before {
108
108
  content: '\E1EF';
109
109
  }
110
110
  }
@@ -114,7 +114,7 @@ html.sap-tablet:not(.sap-desktop) {
114
114
  display: none;
115
115
  }
116
116
 
117
- > .collapsible-icon::before {
117
+ > .collapsible-icon:before {
118
118
  content: '\e0e3';
119
119
  }
120
120
  }
@@ -127,6 +127,7 @@ html.sap-tablet:not(.sap-desktop) {
127
127
  margin-right: 1rem;
128
128
  font-family: sap-icons;
129
129
  font-size: 1rem;
130
+ float: left;
130
131
  }
131
132
 
132
133
  &:hover {
@@ -135,7 +136,8 @@ html.sap-tablet:not(.sap-desktop) {
135
136
 
136
137
  h2, h3, .title, strong {
137
138
  cursor: pointer;
138
- display: inline-block;
139
+ display: block;
140
+ float: none;
139
141
  margin: 0.25rem 0.25rem 0.25rem;
140
142
  pointer-events: none;
141
143
  }
@@ -298,7 +300,6 @@ html.sap-tablet:not(.sap-desktop) {
298
300
  pre.codeblock,
299
301
  blockquote,
300
302
  div.syntax {
301
- border: unset; // remove prettyprint border,
302
303
  border-left: 0.6rem solid @sapAccentColor6;
303
304
  background-color: darken(@sapUiBaseBG, 5);
304
305
  padding: .6em .75em .6em .75em;
@@ -379,6 +380,7 @@ html.sap-tablet:not(.sap-desktop) {
379
380
  .restriction .title:before,
380
381
  .caution .title:before {
381
382
  margin-right: .5em;
383
+ float: left;
382
384
  }
383
385
 
384
386
  .note .title:before {
@@ -569,8 +571,7 @@ html.sap-tablet:not(.sap-desktop) {
569
571
  }
570
572
 
571
573
  .tableWrapper {
572
- overflow-x: scroll;
573
- display: inline;
574
+ overflow-x: auto;
574
575
  }
575
576
 
576
577
  table {
package/ui5.yaml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- specVersion: "1.1"
2
+ specVersion: "2.0"
3
3
  type: library
4
4
  metadata:
5
5
  name: sap.ui.documentation
@@ -7,7 +7,10 @@ metadata:
7
7
  OpenUI5
8
8
  * (c) Copyright 2009-${currentYear} SAP SE or an SAP affiliate company.
9
9
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
10
+ resources:
11
+ configuration:
12
+ propertiesFileSourceEncoding: ISO-8859-1
10
13
  builder:
11
14
  jsdoc:
12
15
  excludes:
13
- - "sap/ui/documentation/sdk/thirdparty/**"
16
+ - "sap/ui/documentation/sdk/thirdparty/**"
@@ -1,160 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright (C) 2009 Google Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
-
18
- /**
19
- * @fileoverview
20
- * Registers a language handler for CSS.
21
- *
22
- *
23
- * To use, include prettify.js and this file in your HTML page.
24
- * Then put your code in an HTML tag like
25
- * <pre class="prettyprint lang-css"></pre>
26
- *
27
- *
28
- * http://www.w3.org/TR/CSS21/grammar.html Section G2 defines the lexical
29
- * grammar. This scheme does not recognize keywords containing escapes.
30
- *
31
- * @author mikesamuel@gmail.com
32
- */
33
-
34
- // This file is a call to a function defined in prettify.js which defines a
35
- // lexical scanner for CSS and maps tokens to styles.
36
-
37
- // The call to PR['registerLangHandler'] is quoted so that Closure Compiler
38
- // will not rename the call so that this language extensions can be
39
- // compiled/minified separately from one another. Other symbols defined in
40
- // prettify.js are similarly quoted.
41
-
42
- // The call is structured thus:
43
- // PR['registerLangHandler'](
44
- // PR['createSimpleLexer'](
45
- // shortcutPatterns,
46
- // fallThroughPatterns),
47
- // [languageId0, ..., languageIdN])
48
-
49
- // Langugage IDs
50
- // =============
51
- // The language IDs are typically the file extensions of source files for
52
- // that language so that users can syntax highlight arbitrary files based
53
- // on just the extension. This is heuristic, but works pretty well in
54
- // practice.
55
-
56
- // Patterns
57
- // ========
58
- // Lexers are typically implemented as a set of regular expressions.
59
- // The SimpleLexer function takes regular expressions, styles, and some
60
- // pragma-info and produces a lexer. A token description looks like
61
- // [STYLE_NAME, /regular-expression/, pragmas]
62
-
63
- // Initially, simple lexer's inner loop looked like:
64
-
65
- // while sourceCode is not empty:
66
- // try each regular expression in order until one matches
67
- // remove the matched portion from sourceCode
68
-
69
- // This was really slow for large files because some JS interpreters
70
- // do a buffer copy on the matched portion which is O(n*n)
71
-
72
- // The current loop now looks like
73
-
74
- // 1. use js-modules/combinePrefixPatterns.js to
75
- // combine all regular expressions into one
76
- // 2. use a single global regular expresion match to extract all tokens
77
- // 3. for each token try regular expressions in order until one matches it
78
- // and classify it using the associated style
79
-
80
- // This is a lot more efficient but it does mean that lookahead and lookbehind
81
- // can't be used across boundaries to classify tokens.
82
-
83
- // Sometimes we need lookahead and lookbehind and sometimes we want to handle
84
- // embedded language -- JavaScript or CSS embedded in HTML, or inline assembly
85
- // in C.
86
-
87
- // If a particular pattern has a numbered group, and its style pattern starts
88
- // with "lang-" as in
89
- // ['lang-js', /<script>(.*?)<\/script>/]
90
- // then the token classification step breaks the token into pieces.
91
- // Group 1 is re-parsed using the language handler for "lang-js", and the
92
- // surrounding portions are reclassified using the current language handler.
93
- // This mechanism gives us both lookahead, lookbehind, and language embedding.
94
-
95
- // Shortcut Patterns
96
- // =================
97
- // A shortcut pattern is one that is tried before other patterns if the first
98
- // character in the token is in the string of characters.
99
- // This very effectively lets us make quick correct decisions for common token
100
- // types.
101
-
102
- // All other patterns are fall-through patterns.
103
-
104
-
105
-
106
- // The comments inline below refer to productions in the CSS specification's
107
- // lexical grammar. See link above.
108
- PR['registerLangHandler'](
109
- PR['createSimpleLexer'](
110
- // Shortcut patterns.
111
- [
112
- // The space production <s>
113
- [PR['PR_PLAIN'], /^[ \t\r\n\f]+/, null, ' \t\r\n\f']
114
- ],
115
- // Fall-through patterns.
116
- [
117
- // Quoted strings. <string1> and <string2>
118
- [PR['PR_STRING'],
119
- /^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/, null],
120
- [PR['PR_STRING'],
121
- /^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/, null],
122
- ['lang-css-str', /^url\(([^\)\"\']+)\)/i],
123
- [PR['PR_KEYWORD'],
124
- /^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,
125
- null],
126
- // A property name -- an identifier followed by a colon.
127
- ['lang-css-kw', /^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],
128
- // A C style block comment. The <comment> production.
129
- [PR['PR_COMMENT'], /^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],
130
- // Escaping text spans
131
- [PR['PR_COMMENT'], /^(?:<!--|-->)/],
132
- // A number possibly containing a suffix.
133
- [PR['PR_LITERAL'], /^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],
134
- // A hex color
135
- [PR['PR_LITERAL'], /^#(?:[0-9a-f]{3}){1,2}\b/i],
136
- // An identifier
137
- [PR['PR_PLAIN'],
138
- /^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],
139
- // A run of punctuation
140
- [PR['PR_PUNCTUATION'], /^[^\s\w\'\"]+/]
141
- ]),
142
- ['css']);
143
- // Above we use embedded languages to highlight property names (identifiers
144
- // followed by a colon) differently from identifiers in values.
145
- PR['registerLangHandler'](
146
- PR['createSimpleLexer']([],
147
- [
148
- [PR['PR_KEYWORD'],
149
- /^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]
150
- ]),
151
- ['css-kw']);
152
- // The content of an unquoted URL literal like url(http://foo/img.png) should
153
- // be colored as string content. This language handler is used above in the
154
- // URL production to do so.
155
- PR['registerLangHandler'](
156
- PR['createSimpleLexer']([],
157
- [
158
- [PR['PR_STRING'], /^[^\)\"\']+/]
159
- ]),
160
- ['css-str']);
@@ -1,33 +0,0 @@
1
- /*!
2
- * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
4
- * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
- */
6
-
7
- // prettify extension for *.feature files (english version)
8
- // To properly parse the line-based structure of feature files, the first patterns all handle full lines starting with one of the
9
- // keywords of the feature file format. The formatting of the real line content is delegated to helper languages.
10
- PR.registerLangHandler(
11
- PR.createSimpleLexer([], [
12
- [PR.PR_COMMENT, /[ \t]*#[^\r\n]*/],
13
- ['lang-feature.plain', /Feature:([^\r\n]*)(?:\r\n|\r|\n)/], // $1: feature description
14
- ['lang-feature.plain', /[ \t]+Scenario:([^\r\n]*)(?:\r\n|\r|\n)/], // $1: scenario description
15
- ['lang-feature.plain', /[ \t][ \t]+(?:Given|When|Then|And|But)([^\r\n]*)(?:\r\n|\r|\n)/], // $1: preconditions/test actions/expectation
16
- ['lang-feature.table', /[ \t][ \t]+(\|(?:[^|]*\|)+)[^\r\n]*(?:\r\n|\r|\n)/], // $1: row of a table with data
17
- [PR.PR_COMMENT, /[ \t][ \t]+[^\r\n]*(?:\r\n|\r|\n)/], // any other indented line (should be a comment)
18
- [PR.PR_KEYWORD, /Feature:|Scenario:|Given|When|Then|And|But/],
19
- [PR.PR_TAG, /@\w+/], // tags
20
- // final pattern for any remaining text: plain text (after one of the keywords)
21
- [PR.PR_PLAIN, /[^\r\n]*(?:\r\n|\r|\n)/]
22
- ]), ['feature']);
23
- //helper language to pretty print text after a keyword
24
- PR.registerLangHandler(
25
- PR.createSimpleLexer([], [
26
- [PR.PR_PLAIN, /[\s\S]*/]
27
- ]), ['feature.plain']);
28
- //helper language to pretty print data table lines
29
- PR.registerLangHandler(
30
- PR.createSimpleLexer([], [
31
- [PR.PR_PUNCTUATION, /\|/, null, '|'],
32
- [PR.PR_LITERAL, /[^|]*/]
33
- ]), ['feature.table']);
@@ -1,22 +0,0 @@
1
- /*!
2
- * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
4
- * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
- */
6
-
7
- // prettify extension for *.properties files
8
- // the pattern for style 'lang-properties.value' is used to detect a complete 'logical' line
9
- // the key/value separator and the value are then handled by the helper language 'properties.value'
10
- PR.registerLangHandler(
11
- PR.createSimpleLexer([], [
12
- [PR.PR_COMMENT, /^[ \t\u000c]*[#!][^\r\n]*/],
13
- ['lang-properties.value', /[ \t\u000c]*(?:[^ \t\u000c\r\n=:\\]|\\u[0-9a-f]{4,4}|\\(?:\r\n|\r|\n)[ \t\u000c]*|\\[\s\S])+[ \t\u000c]*([ \t\u000c=:](?:[^\r\n\\]|\\u[0-9a-f]{4,4}|\\\r\n|\\[\s\S])*)/i],
14
- [PR.PR_KEYWORD, /(?:[^ \t\u000c\r\n=:\\]|\\u[0-9a-f]{4,4}|\\(?:\r\n|\r|\n)[ \t\u000c]*|\\[\s\S])+/i],
15
- [PR.PR_PLAIN, /[ \t\u000c\r\n]/]
16
- ]), ['properties']);
17
- // helper language to pretty print separator and value
18
- PR.registerLangHandler(
19
- PR.createSimpleLexer([], [
20
- [PR.PR_PUNCTUATION, /^[ \t\u000c=:][ \t\u000c]*/],
21
- [PR.PR_STRING, /[^ \t\u000c][\s\S]*/]
22
- ]), ['properties.value']);
@@ -1,11 +0,0 @@
1
- /*!
2
- * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
4
- * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
- */
6
-
7
- // dummy prettify extension for plain text
8
- PR['registerLangHandler'](
9
- PR['createSimpleLexer']([], [
10
- [PR['PR_PLAIN'], /[\s\S]*/],
11
- ]), ['plain', 'text']);