@openui5/sap.ui.documentation 1.121.0 → 1.122.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.
Files changed (106) hide show
  1. package/THIRDPARTY.txt +1 -1
  2. package/package.json +7 -7
  3. package/src/sap/ui/documentation/.library +1 -1
  4. package/src/sap/ui/documentation/DemoKitCardHeader.js +70 -0
  5. package/src/sap/ui/documentation/library.js +3 -3
  6. package/src/sap/ui/documentation/messagebundle.properties +113 -82
  7. package/src/sap/ui/documentation/messagebundle_ar.properties +61 -41
  8. package/src/sap/ui/documentation/messagebundle_bg.properties +62 -42
  9. package/src/sap/ui/documentation/messagebundle_ca.properties +61 -41
  10. package/src/sap/ui/documentation/messagebundle_cnr.properties +63 -43
  11. package/src/sap/ui/documentation/messagebundle_cs.properties +61 -41
  12. package/src/sap/ui/documentation/messagebundle_cy.properties +61 -41
  13. package/src/sap/ui/documentation/messagebundle_da.properties +61 -41
  14. package/src/sap/ui/documentation/messagebundle_de.properties +62 -42
  15. package/src/sap/ui/documentation/messagebundle_el.properties +61 -41
  16. package/src/sap/ui/documentation/messagebundle_en.properties +61 -429
  17. package/src/sap/ui/documentation/messagebundle_en_GB.properties +61 -41
  18. package/src/sap/ui/documentation/messagebundle_es.properties +61 -41
  19. package/src/sap/ui/documentation/messagebundle_es_MX.properties +61 -41
  20. package/src/sap/ui/documentation/messagebundle_et.properties +61 -41
  21. package/src/sap/ui/documentation/messagebundle_fi.properties +61 -41
  22. package/src/sap/ui/documentation/messagebundle_fr.properties +61 -41
  23. package/src/sap/ui/documentation/messagebundle_fr_CA.properties +62 -42
  24. package/src/sap/ui/documentation/messagebundle_hi.properties +61 -41
  25. package/src/sap/ui/documentation/messagebundle_hr.properties +61 -41
  26. package/src/sap/ui/documentation/messagebundle_hu.properties +61 -41
  27. package/src/sap/ui/documentation/messagebundle_id.properties +61 -41
  28. package/src/sap/ui/documentation/messagebundle_it.properties +62 -42
  29. package/src/sap/ui/documentation/messagebundle_iw.properties +61 -41
  30. package/src/sap/ui/documentation/messagebundle_ja.properties +62 -42
  31. package/src/sap/ui/documentation/messagebundle_kk.properties +61 -41
  32. package/src/sap/ui/documentation/messagebundle_ko.properties +61 -41
  33. package/src/sap/ui/documentation/messagebundle_lt.properties +61 -41
  34. package/src/sap/ui/documentation/messagebundle_lv.properties +61 -41
  35. package/src/sap/ui/documentation/messagebundle_mk.properties +65 -45
  36. package/src/sap/ui/documentation/messagebundle_ms.properties +61 -41
  37. package/src/sap/ui/documentation/messagebundle_nl.properties +61 -41
  38. package/src/sap/ui/documentation/messagebundle_no.properties +61 -41
  39. package/src/sap/ui/documentation/messagebundle_pl.properties +61 -41
  40. package/src/sap/ui/documentation/messagebundle_pt.properties +61 -41
  41. package/src/sap/ui/documentation/messagebundle_pt_PT.properties +61 -41
  42. package/src/sap/ui/documentation/messagebundle_ro.properties +62 -42
  43. package/src/sap/ui/documentation/messagebundle_ru.properties +61 -41
  44. package/src/sap/ui/documentation/messagebundle_sh.properties +63 -43
  45. package/src/sap/ui/documentation/messagebundle_sk.properties +61 -41
  46. package/src/sap/ui/documentation/messagebundle_sl.properties +61 -41
  47. package/src/sap/ui/documentation/messagebundle_sr.properties +61 -41
  48. package/src/sap/ui/documentation/messagebundle_sv.properties +61 -41
  49. package/src/sap/ui/documentation/messagebundle_th.properties +61 -41
  50. package/src/sap/ui/documentation/messagebundle_tr.properties +61 -41
  51. package/src/sap/ui/documentation/messagebundle_uk.properties +62 -42
  52. package/src/sap/ui/documentation/messagebundle_vi.properties +63 -43
  53. package/src/sap/ui/documentation/messagebundle_zh_CN.properties +61 -41
  54. package/src/sap/ui/documentation/messagebundle_zh_TW.properties +61 -41
  55. package/src/sap/ui/documentation/sdk/controller/App.controller.js +3 -3
  56. package/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js +15 -9
  57. package/src/sap/ui/documentation/sdk/controller/DemoApps.controller.js +2 -2
  58. package/src/sap/ui/documentation/sdk/controller/ReleaseNotes.controller.js +7 -2
  59. package/src/sap/ui/documentation/sdk/controller/Resources.controller.js +79 -0
  60. package/src/sap/ui/documentation/sdk/controller/Sample.controller.js +5 -3
  61. package/src/sap/ui/documentation/sdk/controller/Sitemap.controller.js +10 -11
  62. package/src/sap/ui/documentation/sdk/controller/SubApiDetail.controller.js +5 -4
  63. package/src/sap/ui/documentation/sdk/controller/util/{ToolsInfo.js → ResourcesInfo.js} +52 -44
  64. package/src/sap/ui/documentation/sdk/controller/util/URLUtil.js +1 -0
  65. package/src/sap/ui/documentation/sdk/css/style.css +0 -73
  66. package/src/sap/ui/documentation/sdk/index.js +16 -4
  67. package/src/sap/ui/documentation/sdk/manifest.json +11 -4
  68. package/src/sap/ui/documentation/sdk/model/LiveEditorData.json +1 -1
  69. package/src/sap/ui/documentation/sdk/model/formatter.js +2 -2
  70. package/src/sap/ui/documentation/sdk/thirdparty/highlight.js/highlight.js +3 -3
  71. package/src/sap/ui/documentation/sdk/util/DocumentationRouter.js +6 -4
  72. package/src/sap/ui/documentation/sdk/util/LiveEditorOutput.js +8 -7
  73. package/src/sap/ui/documentation/sdk/view/App.view.xml +5 -5
  74. package/src/sap/ui/documentation/sdk/view/DemoApps.view.xml +26 -26
  75. package/src/sap/ui/documentation/sdk/view/Resources.view.xml +725 -0
  76. package/src/sap/ui/documentation/sdk/view/Sitemap.view.xml +2 -2
  77. package/src/sap/ui/documentation/themes/base/DemoApps.less +149 -91
  78. package/src/sap/ui/documentation/themes/base/Resources.less +181 -0
  79. package/src/sap/ui/documentation/themes/base/library.source.less +2 -1
  80. package/src/sap/ui/documentation/themes/sap_horizon_hcb/DemoApps.less +15 -4
  81. package/src/sap/ui/documentation/themes/sap_horizon_hcb/Resources.less +24 -0
  82. package/src/sap/ui/documentation/themes/sap_horizon_hcb/library.source.less +2 -1
  83. package/src/sap/ui/documentation/themes/sap_horizon_hcw/DemoApps.less +25 -11
  84. package/src/sap/ui/documentation/themes/sap_horizon_hcw/Resources.less +44 -0
  85. package/src/sap/ui/documentation/themes/sap_horizon_hcw/library.source.less +2 -1
  86. package/src/sap/ui/documentation/DemoAppsCardHeader.js +0 -62
  87. package/src/sap/ui/documentation/sdk/controller/Tools.controller.js +0 -106
  88. package/src/sap/ui/documentation/sdk/images/Tools_M_and_L_cropped.jpg +0 -0
  89. package/src/sap/ui/documentation/sdk/images/Tools_S_cropped.jpg +0 -0
  90. package/src/sap/ui/documentation/sdk/images/demoAppsTeaser.png +0 -0
  91. package/src/sap/ui/documentation/sdk/images/tools/AccessibilityGuide.png +0 -0
  92. package/src/sap/ui/documentation/sdk/images/tools/BusinessApplicationStudio.jpg +0 -0
  93. package/src/sap/ui/documentation/sdk/images/tools/CardExplorer.jpg +0 -0
  94. package/src/sap/ui/documentation/sdk/images/tools/FioriTools.png +0 -0
  95. package/src/sap/ui/documentation/sdk/images/tools/FlexibleProgrammingModelExplorer.jpg +0 -0
  96. package/src/sap/ui/documentation/sdk/images/tools/IconExplorer.jpg +0 -0
  97. package/src/sap/ui/documentation/sdk/images/tools/SupportAssistant.jpg +0 -0
  98. package/src/sap/ui/documentation/sdk/images/tools/ThemeDesigner.jpg +0 -0
  99. package/src/sap/ui/documentation/sdk/images/tools/ThemeParameterToolbox.jpg +0 -0
  100. package/src/sap/ui/documentation/sdk/images/tools/Tools_LiveEditor.jpg +0 -0
  101. package/src/sap/ui/documentation/sdk/images/tools/UI5EvoTooling.jpg +0 -0
  102. package/src/sap/ui/documentation/sdk/images/tools/UI5Inspector.jpg +0 -0
  103. package/src/sap/ui/documentation/sdk/images/tools/UI5TestRecorder.png +0 -0
  104. package/src/sap/ui/documentation/sdk/images/tools/UI5WebComponents.jpg +0 -0
  105. package/src/sap/ui/documentation/sdk/view/Tools.view.xml +0 -475
  106. /package/src/sap/ui/documentation/sdk/images/{DemoApps_intro_card.svg → intro_card_stripe.svg} +0 -0
@@ -998,10 +998,10 @@ var hljs = (function () {
998
998
  * @param {string} message
999
999
  */
1000
1000
  const deprecated = (version, message) => {
1001
- if (seenDeprecations[`1.121.0/${message}`]) return;
1001
+ if (seenDeprecations[`1.122.0/${message}`]) return;
1002
1002
 
1003
- console.log(`Deprecated as of 1.121.0. ${message}`);
1004
- seenDeprecations[`1.121.0/${message}`] = true;
1003
+ console.log(`Deprecated as of 1.122.0. ${message}`);
1004
+ seenDeprecations[`1.122.0/${message}`] = true;
1005
1005
  };
1006
1006
 
1007
1007
  /* eslint-disable no-throw-literal */
@@ -285,8 +285,10 @@ sap.ui.define([
285
285
  }
286
286
 
287
287
  };
288
+
288
289
  /**
289
290
  * @restricted
291
+ * @param {string} sPath - The path to be parsed.
290
292
  */
291
293
  DocumentationRouter.prototype.parsePath = function (sPath) {
292
294
  if (sPath === "#") {
@@ -302,11 +304,11 @@ sap.ui.define([
302
304
  this.parse(sPath);
303
305
 
304
306
  // Add new URL history and update URL
305
- if (window['sap-ui-documentation-static']) {
306
- window.history.pushState({},undefined,"#/" + sPath);
307
- } else {
308
- window.history.pushState({},undefined, sPath);
307
+ if (sPath && window['sap-ui-documentation-static'] && !sPath.startsWith("#/")) {
308
+ sPath = "#/" + sPath;
309
309
  }
310
+
311
+ window.history.pushState({}, undefined, sPath);
310
312
  };
311
313
 
312
314
  DocumentationRouter.prototype.mouseDownClickHandler = function (oEvent) {
@@ -21,7 +21,7 @@
21
21
  }
22
22
 
23
23
  var oData = event.data,
24
- oCore, sIFrameTheme, sDemoKitTheme;
24
+ sIFrameTheme, sDemoKitTheme;
25
25
 
26
26
  if (!oData || !oData.src || !oData.moduleNameToRequire) {
27
27
  return;
@@ -30,13 +30,14 @@
30
30
  addErrorHandlers();
31
31
  preloadModules(oData);
32
32
 
33
- oCore = sap.ui.getCore();
34
- sIFrameTheme = oCore.getConfiguration().getTheme();
35
- sDemoKitTheme = oData.activeTheme;
33
+ sap.ui.require(["sap/ui/core/Theming"], function(Theming) {
34
+ sIFrameTheme = Theming.getTheme();
35
+ sDemoKitTheme = oData.activeTheme;
36
36
 
37
- if (sIFrameTheme !== sDemoKitTheme) {
38
- oCore.applyTheme(sDemoKitTheme);
39
- }
37
+ if (sIFrameTheme !== sDemoKitTheme) {
38
+ Theming.setTheme(sDemoKitTheme);
39
+ }
40
+ });
40
41
  });
41
42
 
42
43
  /**
@@ -242,10 +242,10 @@
242
242
  text="{i18n>APP_TABHEADER_ITEM_DEMO_APPS}">
243
243
  </IconTabFilter>
244
244
  <IconTabFilter
245
- id="toolsTab"
246
- key="tools"
245
+ id="resourcesTab"
246
+ key="resources"
247
247
  icon="sap-icon://wrench"
248
- text="{i18n>APP_TABHEADER_ITEM_TOOLS}">
248
+ text="{i18n>APP_TABHEADER_ITEM_RESOURCES}">
249
249
  </IconTabFilter>
250
250
  </items>
251
251
  </IconTabHeader>
@@ -281,9 +281,9 @@
281
281
  icon="sap-icon://grid"
282
282
  text="{i18n>APP_TABHEADER_ITEM_DEMO_APPS}" />
283
283
  <tnt:NavigationListItem
284
- key="tools"
284
+ key="resources"
285
285
  icon="sap-icon://wrench"
286
- text="{i18n>APP_TABHEADER_ITEM_TOOLS}">
286
+ text="{i18n>APP_TABHEADER_ITEM_RESOURCES}">
287
287
  </tnt:NavigationListItem>
288
288
  </tnt:NavigationList>
289
289
  </tnt:SideNavigation>
@@ -3,9 +3,9 @@
3
3
  xmlns="sap.m"
4
4
  xmlns:f="sap.f"
5
5
  xmlns:card="sap.f.cards"
6
+ xmlns:core="sap.ui.core"
6
7
  xmlns:mvc="sap.ui.core.mvc"
7
8
  xmlns:grid="sap.ui.layout.cssgrid"
8
- xmlns:core="sap.ui.core"
9
9
  xmlns:custom="sap.ui.documentation"
10
10
  displayBlock="true"
11
11
  height="100%">
@@ -13,17 +13,19 @@
13
13
  <ScrollContainer
14
14
  class="sapUiDemoKitDemoAppsPage"
15
15
  id="sapUiDemoKitDemoAppsPage"
16
- width="100%"
17
- height="100%"
18
16
  vertical="true"
19
- horizontal="false">
17
+ horizontal="false"
18
+ width="100%"
19
+ height="100%">
20
20
 
21
21
  <VBox class="sapUiMediumMargin sapUiLargeMarginBottom">
22
- <f:Card class="sapUiDemoKitDemoAppsMainHeaderCard">
22
+ <f:Card class="sapUiDemoKitDemoAppsIntroCard">
23
23
  <f:header>
24
24
  <card:Header
25
25
  title="{i18n>DEMO_APPS_TITLE}"
26
- subtitle="{= ${versionData>/isOpenUI5} ? ${i18n>DEMO_APPS_SUBTITLE_OPENUI5} : ${i18n>DEMO_APPS_SUBTITLE_SAPUI5} }"
26
+ subtitle="{= ${versionData>/isOpenUI5}
27
+ ? ${i18n>DEMO_APPS_SUBTITLE_OPENUI5}
28
+ : ${i18n>DEMO_APPS_SUBTITLE_SAPUI5} }"
27
29
  subtitleMaxLines="5" />
28
30
  </f:header>
29
31
  <f:content>
@@ -32,7 +34,7 @@
32
34
  </f:Card>
33
35
  </VBox>
34
36
 
35
- <grid:CSSGrid class="sapUiDemoKitDemoAppsLayoutPaddingBeginEnd sapUiDemoKitDemoAppsLayoutPaddingBottom">
37
+ <grid:CSSGrid class="sapUiDemoKitDemoAppsPaddingBeginEnd sapUiDemoKitDemoAppsPaddingBottom">
36
38
  <!-- Page Content Ratio Config -->
37
39
  <grid:customLayout>
38
40
  <grid:GridResponsiveLayout>
@@ -49,8 +51,8 @@
49
51
  </grid:customLayout>
50
52
 
51
53
  <grid:items>
52
- <!-- #1 Page Main Content -->
53
- <grid:CSSGrid id="sapUiDemoKitDemoAppsMainContent" class="sapUiDemoKitDemoAppsMainContent"
54
+ <!-- Main -->
55
+ <grid:CSSGrid id="sapUiDemoKitDemoAppsMain" class="sapUiDemoKitDemoAppsMain"
54
56
  items="{/demoAppsByCategory}">
55
57
  <grid:customLayout>
56
58
  <grid:GridBasicLayout gridRowGap="3rem" />
@@ -63,9 +65,10 @@
63
65
 
64
66
  <grid:customData>
65
67
  <core:CustomData
66
- key="demo-apps-category"
67
- value="{ path: 'categoryId', formatter: '.formatter.getDemoAppsCategoryClass' }"
68
- writeToDom="true" />
68
+ key="demoAppsCategoryClass"
69
+ value="{
70
+ path: 'categoryId',
71
+ formatter: '.formatter.getDemoAppsCategoryClass' }" />
69
72
  </grid:customData>
70
73
 
71
74
  <Title
@@ -99,12 +102,13 @@
99
102
  </grid:GridResponsiveLayout>
100
103
  </grid:customLayout>
101
104
 
102
- <f:Card class="sapUiDemoKitDemoAppsCommonCard">
105
+ <f:Card class="sapUiDemoKitDemoAppsRegularCard">
103
106
  <f:header>
104
- <custom:DemoAppsCardHeader href="{ref}" hrefText="{name}" iconSrc="{= 'sap-icon://' + ${icon} }" />
107
+ <custom:DemoKitCardHeader title="{name}" href="{ref}"
108
+ iconSrc="{= 'sap-icon://' + ${icon} }" />
105
109
  </f:header>
106
110
  <f:content>
107
- <VBox class="sapUiDemoKitDemoAppsCardContentPadding" wrap="Wrap">
111
+ <VBox class="sapUiDemoKitDemoAppsContentPadding" wrap="Wrap">
108
112
  <Text class="sapUiSmallMarginBottom" text="{desc}" >
109
113
  <layoutData>
110
114
  <FlexItemData growFactor="1" />
@@ -140,18 +144,17 @@
140
144
  </grid:CSSGrid>
141
145
  </grid:CSSGrid>
142
146
 
143
- </grid:CSSGrid>
144
- <!-- #1 Page Main Content End -->
147
+ </grid:CSSGrid> <!-- Main Container End-->
145
148
 
146
- <!-- #2 Page Aside Content -->
147
- <grid:CSSGrid id="sapUiDemoKitDemoAppsAsideContent" class="sapUiDemoKitDemoAppsAsideContent">
148
- <VBox class="sapUiDemoKitDemoAppsAsideContentDesktop">
149
+ <!-- Aside -->
150
+ <grid:CSSGrid id="sapUiDemoKitDemoAppsAside" class="sapUiDemoKitDemoAppsAside">
151
+ <VBox class="sapUiDemoKitDemoAppsAsideDesktop" wrap="Wrap">
149
152
  <f:Card class="sapUiDemoKitDemoAppsAsideCard">
150
153
  <f:header>
151
154
  <card:Header title="{i18n>DEMO_APPS_DOWNLOAD_OVERVIEW}" />
152
155
  </f:header>
153
156
  <f:content>
154
- <List class="sapUiDemoKitDemoAppsDownloadListContentPadding" items="{/demoApps}" showSeparators="None">
157
+ <List items="{/demoApps}" showSeparators="None">
155
158
  <InputListItem visible="{= !!${config} }" label="{name}">
156
159
  <customData>
157
160
  <core:CustomData key="config" value="{config}" />
@@ -164,7 +167,7 @@
164
167
  </f:Card>
165
168
  </VBox>
166
169
 
167
- <VBox class="sapUiDemoKitDemoAppsAsideContentMobile" wrap="Wrap">
170
+ <VBox class="sapUiDemoKitDemoAppsAsideMobile" wrap="Wrap">
168
171
  <Panel class="sapUiDemoKitDemoAppsAsidePanel" expandable="true" headerText="{i18n>DEMO_APPS_DOWNLOAD_OVERVIEW}">
169
172
  <List items="{/demoApps}" showSeparators="None">
170
173
  <InputListItem visible="{= !!${config} }" label="{name}">
@@ -177,14 +180,11 @@
177
180
  </List>
178
181
  </Panel>
179
182
  </VBox>
180
- </grid:CSSGrid>
181
- <!-- #2 Page Aside Content End -->
183
+ </grid:CSSGrid> <!-- Aside Container End-->
182
184
 
183
185
  </grid:items>
184
-
185
186
  </grid:CSSGrid>
186
187
 
187
188
  <core:Fragment fragmentName="sap.ui.documentation.sdk.view.Footer" type="XML" />
188
189
  </ScrollContainer>
189
-
190
190
  </mvc:View>