@openui5/sap.ui.documentation 1.97.1 → 1.100.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 (98) hide show
  1. package/.reuse/dep5 +25 -30
  2. package/THIRDPARTY.txt +15 -22
  3. package/package.json +6 -6
  4. package/src/sap/ui/documentation/.library +1 -1
  5. package/src/sap/ui/documentation/TitleLink.js +1 -2
  6. package/src/sap/ui/documentation/library.js +4 -5
  7. package/src/sap/ui/documentation/messagebundle.properties +20 -8
  8. package/src/sap/ui/documentation/messagebundle_ar.properties +16 -5
  9. package/src/sap/ui/documentation/messagebundle_bg.properties +15 -4
  10. package/src/sap/ui/documentation/messagebundle_ca.properties +16 -5
  11. package/src/sap/ui/documentation/messagebundle_cs.properties +16 -5
  12. package/src/sap/ui/documentation/messagebundle_cy.properties +16 -5
  13. package/src/sap/ui/documentation/messagebundle_da.properties +16 -5
  14. package/src/sap/ui/documentation/messagebundle_de.properties +16 -5
  15. package/src/sap/ui/documentation/messagebundle_el.properties +15 -4
  16. package/src/sap/ui/documentation/messagebundle_en.properties +16 -5
  17. package/src/sap/ui/documentation/messagebundle_en_GB.properties +16 -5
  18. package/src/sap/ui/documentation/messagebundle_en_US_sappsd.properties +19 -8
  19. package/src/sap/ui/documentation/messagebundle_en_US_saprigi.properties +2 -2
  20. package/src/sap/ui/documentation/messagebundle_en_US_saptrc.properties +19 -8
  21. package/src/sap/ui/documentation/messagebundle_es.properties +16 -5
  22. package/src/sap/ui/documentation/messagebundle_es_MX.properties +16 -5
  23. package/src/sap/ui/documentation/messagebundle_et.properties +16 -5
  24. package/src/sap/ui/documentation/messagebundle_fi.properties +17 -6
  25. package/src/sap/ui/documentation/messagebundle_fr.properties +16 -5
  26. package/src/sap/ui/documentation/messagebundle_fr_CA.properties +16 -5
  27. package/src/sap/ui/documentation/messagebundle_hi.properties +16 -5
  28. package/src/sap/ui/documentation/messagebundle_hr.properties +16 -5
  29. package/src/sap/ui/documentation/messagebundle_hu.properties +15 -4
  30. package/src/sap/ui/documentation/messagebundle_id.properties +16 -5
  31. package/src/sap/ui/documentation/messagebundle_it.properties +16 -5
  32. package/src/sap/ui/documentation/messagebundle_iw.properties +16 -5
  33. package/src/sap/ui/documentation/messagebundle_ja.properties +16 -5
  34. package/src/sap/ui/documentation/messagebundle_kk.properties +16 -5
  35. package/src/sap/ui/documentation/messagebundle_ko.properties +16 -5
  36. package/src/sap/ui/documentation/messagebundle_lt.properties +16 -5
  37. package/src/sap/ui/documentation/messagebundle_lv.properties +15 -4
  38. package/src/sap/ui/documentation/messagebundle_ms.properties +16 -5
  39. package/src/sap/ui/documentation/messagebundle_nl.properties +16 -5
  40. package/src/sap/ui/documentation/messagebundle_no.properties +17 -6
  41. package/src/sap/ui/documentation/messagebundle_pl.properties +15 -4
  42. package/src/sap/ui/documentation/messagebundle_pt.properties +16 -5
  43. package/src/sap/ui/documentation/messagebundle_pt_PT.properties +16 -5
  44. package/src/sap/ui/documentation/messagebundle_ro.properties +16 -5
  45. package/src/sap/ui/documentation/messagebundle_ru.properties +16 -5
  46. package/src/sap/ui/documentation/messagebundle_sh.properties +17 -6
  47. package/src/sap/ui/documentation/messagebundle_sk.properties +16 -5
  48. package/src/sap/ui/documentation/messagebundle_sl.properties +16 -5
  49. package/src/sap/ui/documentation/messagebundle_sv.properties +16 -5
  50. package/src/sap/ui/documentation/messagebundle_th.properties +16 -5
  51. package/src/sap/ui/documentation/messagebundle_tr.properties +16 -5
  52. package/src/sap/ui/documentation/messagebundle_uk.properties +17 -6
  53. package/src/sap/ui/documentation/messagebundle_vi.properties +16 -5
  54. package/src/sap/ui/documentation/messagebundle_zh_CN.properties +16 -5
  55. package/src/sap/ui/documentation/messagebundle_zh_TW.properties +16 -5
  56. package/src/sap/ui/documentation/sdk/Component.js +1 -5
  57. package/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js +9 -15
  58. package/src/sap/ui/documentation/sdk/controller/ApiDetailIndexDeprecatedExperimental.controller.js +1 -3
  59. package/src/sap/ui/documentation/sdk/controller/ApiMaster.controller.js +0 -2
  60. package/src/sap/ui/documentation/sdk/controller/App.controller.js +1 -3
  61. package/src/sap/ui/documentation/sdk/controller/BaseController.js +1 -1
  62. package/src/sap/ui/documentation/sdk/controller/Code.controller.js +1 -2
  63. package/src/sap/ui/documentation/sdk/controller/ControlsMaster.controller.js +15 -18
  64. package/src/sap/ui/documentation/sdk/controller/Entity.controller.js +1 -2
  65. package/src/sap/ui/documentation/sdk/controller/LiveEditor.controller.js +1 -2
  66. package/src/sap/ui/documentation/sdk/controller/Sample.controller.js +252 -166
  67. package/src/sap/ui/documentation/sdk/controller/SampleBaseController.js +2 -3
  68. package/src/sap/ui/documentation/sdk/controller/SearchPage.controller.js +4 -5
  69. package/src/sap/ui/documentation/sdk/controller/SubApiDetail.controller.js +8 -9
  70. package/src/sap/ui/documentation/sdk/controller/TermsOfUse.controller.js +3 -2
  71. package/src/sap/ui/documentation/sdk/controller/TopicDetail.controller.js +24 -26
  72. package/src/sap/ui/documentation/sdk/controller/TopicDetailInitial.controller.js +2 -2
  73. package/src/sap/ui/documentation/sdk/controller/VersionNotFound.controller.js +2 -0
  74. package/src/sap/ui/documentation/sdk/controller/Welcome.controller.js +3 -3
  75. package/src/sap/ui/documentation/sdk/controller/config/sampleForwardingConfig.js +40 -0
  76. package/src/sap/ui/documentation/sdk/controller/util/ConfigUtil.js +3 -4
  77. package/src/sap/ui/documentation/sdk/controller/util/ControlsInfo.js +7 -6
  78. package/src/sap/ui/documentation/sdk/controller/util/DataTable.js +1 -1
  79. package/src/sap/ui/documentation/sdk/controller/util/DataTableHelper.js +1 -1
  80. package/src/sap/ui/documentation/sdk/controller/util/IndexWorker.js +1 -1
  81. package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterDropDown.js +0 -2
  82. package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterDropDownRenderer.js +7 -1
  83. package/src/sap/ui/documentation/sdk/controller/util/datatable/filters/DataTableFilterRange.js +2 -4
  84. package/src/sap/ui/documentation/sdk/controller/util/overlay/Overlay.js +1 -1
  85. package/src/sap/ui/documentation/sdk/cookieSettingsDialog/controller/CookieSettingsDialog.controller.js +1 -2
  86. package/src/sap/ui/documentation/sdk/css/style.css +11 -2
  87. package/src/sap/ui/documentation/sdk/index.html +133 -25
  88. package/src/sap/ui/documentation/sdk/model/formatter.js +1 -1
  89. package/src/sap/ui/documentation/sdk/model/libraryData.js +9 -4
  90. package/src/sap/ui/documentation/sdk/util/DocumentationRouter.js +11 -5
  91. package/src/sap/ui/documentation/sdk/util/Resources.js +5 -2
  92. package/src/sap/ui/documentation/sdk/view/NewsPopover.fragment.xml +2 -2
  93. package/src/sap/ui/documentation/sdk/view/Sample.view.xml +5 -1
  94. package/src/sap/ui/documentation/sdk/view/Welcome.view.xml +87 -39
  95. package/src/sap/ui/documentation/sdk/view/appSettingsDialog.fragment.xml +1 -0
  96. package/src/sap/ui/documentation/themes/sap_horizon_dark/library.source.less +9 -0
  97. package/src/sap/ui/documentation/themes/sap_horizon_hcb/library.source.less +9 -0
  98. package/src/sap/ui/documentation/themes/sap_horizon_hcw/library.source.less +9 -0
@@ -175,10 +175,14 @@ sap.ui.define([
175
175
  * @private
176
176
  */
177
177
  _destroySampleComponent: function () {
178
- var oComponent = this._getOwnerComponent()._oCurrentOpenedSample;
179
- if (oComponent) {
180
- oComponent.destroy();
181
- oComponent = null;
178
+ var oSample = this._getOwnerComponent()._oCurrentOpenedSample;
179
+ if (oSample) {
180
+ oSample.getDomRef().contentWindow.postMessage({
181
+ type: "EXIT",
182
+ data: {
183
+ "msg": "Destroy the container"
184
+ }
185
+ }, this._getOwnerComponent()._sSampleIframeOrigin);
182
186
  }
183
187
  }
184
188
 
@@ -255,7 +259,9 @@ sap.ui.define([
255
259
  bParsed = /^blob:/.test(sTarget)
256
260
  || /^https?:\/\//.test(sTarget)
257
261
  || /^test-resources\//.test(sTarget)
258
- || /^resources\//.test(sTarget);
262
+ || /^resources\//.test(sTarget)
263
+ || /^tel:/.test(sTarget)
264
+ || /^mailto:/.test(sTarget);
259
265
 
260
266
  // If we have no target by here we give up
261
267
  if (sTarget && !bParsed) {
@@ -30,7 +30,7 @@
30
30
  if (oUri && oUri.is("absolute")) {
31
31
  return sPath;
32
32
  }
33
- sOrigin = this.getConfig() || '.';
33
+ sOrigin = this.getConfig();
34
34
 
35
35
  return sOrigin + sVersionPrefixPath + this._formatPath(sPath);
36
36
  },
@@ -42,7 +42,10 @@
42
42
  return this.getHasProxy() && window.sessionStorage.getItem("versionPrefixPath") || "";
43
43
  },
44
44
  getConfig: function() {
45
- return self['sap-ui-documentation-config'] && self['sap-ui-documentation-config'].demoKitResourceOrigin;
45
+ return self['sap-ui-documentation-config'] && self['sap-ui-documentation-config'].demoKitResourceOrigin || ".";
46
+ },
47
+ getResourceOrigin: function() {
48
+ return this.getConfig().replace("/sapui5", "").replace("/openui5", "");
46
49
  },
47
50
  _formatPath: function(sPath) {
48
51
  sPath = sPath.replace(/^\.\//, '/');
@@ -2,7 +2,7 @@
2
2
  xmlns="sap.m"
3
3
  xmlns:core="sap.ui.core">
4
4
  <ResponsivePopover
5
- id="myPopover"
5
+ id="newsPopover"
6
6
  placement="Bottom"
7
7
  title="{i18n>APP_NEWS_BTN_TOOLTIP}">
8
8
  <beginButton>
@@ -24,7 +24,7 @@
24
24
  items="{path: 'news>/items', templateShareable: false}"
25
25
  >
26
26
  <layoutData>
27
- <FlexItemData maxHeight="450px" />
27
+ <FlexItemData maxHeight="450px" maxWidth="600px" />
28
28
  </layoutData>
29
29
 
30
30
  <NotificationListItem
@@ -61,7 +61,7 @@
61
61
  class="sapUiHideOnPhone"
62
62
  tooltip="{i18n>SAMPLE_ADAPT_BTN_TOOLTIP}"
63
63
  press="onToggleAdaptationMode"
64
- visible="{= !${/iframe} &amp;&amp; ${/rtaLoaded}}" />
64
+ visible="{= ${/rtaLoaded} &amp;&amp; !${/iframe} }" />
65
65
  <Button
66
66
  id="code"
67
67
  icon="sap-icon://syntax"
@@ -72,6 +72,10 @@
72
72
  tooltip="{i18n>SAMPLE_NEW_TAB_BTN_TOOLTIP}"
73
73
  icon="sap-icon://inspect"
74
74
  press="onNewTab" />
75
+ <Button id="sampleSettings"
76
+ visible="{= ${/showSettings} &amp;&amp; !${/iframe} }"
77
+ icon="sap-icon://action-settings"
78
+ press="handleSettings" />
75
79
  <Button
76
80
  class="sapUiHideOnPhone"
77
81
  text="{i18n>SAMPLE_DOWNLOAD_BTN_TOOLTIP}"
@@ -111,7 +111,7 @@
111
111
  width="100%">
112
112
  <custom:TitleLink
113
113
  text="{i18n>WELCOME_BLOCK_3_TITLE}"
114
- href="topic/ec699e0817fb46a0817b0fa276a249f8"
114
+ href="topic/23cfd955f58142389fa7c9097e11559c"
115
115
  class="sapUiSmallMarginBottom"
116
116
  titleStyle="H2"/>
117
117
  <Text
@@ -149,6 +149,22 @@
149
149
  class="sapUiTinyMarginBegin sapUiSmallMarginEnd"/>
150
150
  <Text text="{i18n>WELCOME_BLOCK_3_TEXT_5}"/>
151
151
  </HBox>
152
+ <HBox>
153
+ <core:Icon
154
+ src="sap-icon://accept"
155
+ size="0.875rem"
156
+ color="Default"
157
+ class="sapUiTinyMarginBegin sapUiSmallMarginEnd"/>
158
+ <Text text="{i18n>WELCOME_BLOCK_3_TEXT_6}"/>
159
+ </HBox>
160
+ <HBox>
161
+ <core:Icon
162
+ src="sap-icon://accept"
163
+ size="0.875rem"
164
+ color="Default"
165
+ class="sapUiTinyMarginBegin sapUiSmallMarginEnd"/>
166
+ <Text text="{i18n>WELCOME_BLOCK_3_TEXT_7}"/>
167
+ </HBox>
152
168
  </l:VerticalLayout>
153
169
  </l:BlockLayoutCell>
154
170
  </l:BlockLayoutRow>
@@ -160,7 +176,7 @@
160
176
  <l:VerticalLayout
161
177
  width="100%">
162
178
  <custom:TitleLink
163
- href="topic/23cfd955f58142389fa7c9097e11559c"
179
+ href="topic/bf2d55eaa33b44a78ef95e7946d658e8"
164
180
  text="{i18n>WELCOME_BLOCK_4_TITLE}"
165
181
  class="sapUiSmallMarginBottom"
166
182
  titleStyle="H2"/>
@@ -191,6 +207,38 @@
191
207
  class="sapUiTinyMarginBegin sapUiSmallMarginEnd"/>
192
208
  <Text text="{i18n>WELCOME_BLOCK_4_TEXT_4}"/>
193
209
  </HBox>
210
+ <HBox>
211
+ <core:Icon
212
+ src="sap-icon://accept"
213
+ size="0.875rem"
214
+ color="Default"
215
+ class="sapUiTinyMarginBegin sapUiSmallMarginEnd"/>
216
+ <Text text="{i18n>WELCOME_BLOCK_4_TEXT_5}"/>
217
+ </HBox>
218
+ <HBox>
219
+ <core:Icon
220
+ src="sap-icon://accept"
221
+ size="0.875rem"
222
+ color="Default"
223
+ class="sapUiTinyMarginBegin sapUiSmallMarginEnd"/>
224
+ <Text text="{i18n>WELCOME_BLOCK_4_TEXT_6}"/>
225
+ </HBox>
226
+ <HBox>
227
+ <core:Icon
228
+ src="sap-icon://accept"
229
+ size="0.875rem"
230
+ color="Default"
231
+ class="sapUiTinyMarginBegin sapUiSmallMarginEnd"/>
232
+ <Text text="{i18n>WELCOME_BLOCK_4_TEXT_7}"/>
233
+ </HBox>
234
+ <HBox>
235
+ <core:Icon
236
+ src="sap-icon://accept"
237
+ size="0.875rem"
238
+ color="Default"
239
+ class="sapUiTinyMarginBegin sapUiSmallMarginEnd"/>
240
+ <Text text="{i18n>WELCOME_BLOCK_4_TEXT_8}"/>
241
+ </HBox>
194
242
  </l:VerticalLayout>
195
243
  </l:BlockLayoutCell>
196
244
 
@@ -230,43 +278,43 @@
230
278
  </l:Grid>
231
279
  </l:BlockLayoutCell>
232
280
  </l:BlockLayoutRow>
233
-
234
- <l:BlockLayoutRow>
235
- <l:BlockLayoutCell
236
- backgroundColorSet="ColorSet11"
237
- backgroundColorShade="ShadeA">
238
- <HBox alignItems="Center" justifyContent="Center" width="100%" height="100%">
239
- <core:HTML sanitizeContent="true" content='
240
- &lt;div class="videoWrapper"&gt;
241
- &lt;iframe src="https://www.youtube.com/embed/6_CQYtmRJNg" title="YouTube video player" frameborder="0"
242
- allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="true" /&gt;
243
- &lt;/div&gt;'>
244
- <core:layoutData>
245
- <FlexItemData maxWidth="35rem" growFactor="1" />
246
- </core:layoutData>
247
- </core:HTML>
248
- </HBox>
249
- </l:BlockLayoutCell>
250
- <l:BlockLayoutCell
251
- backgroundColorSet="ColorSet11"
252
- backgroundColorShade="ShadeD">
253
- <l:VerticalLayout
254
- width="100%">
255
- <custom:TitleLink
256
- text="{i18n>WELCOME_VIDEO_BLOCK_TITLE}"
257
- class="sapUiSmallMarginBottom"
258
- href="https://www.youtube.com/watch?v=6_CQYtmRJNg"
259
- target="_blank"
260
- titleStyle="H2"/>
261
- <Text
262
- text="{i18n>WELCOME_VIDEO_BLOCK_TEXT_1}"
263
- class="sapUiSmallMarginBottom"/>
264
- <FormattedText
265
- htmlText="{i18n>WELCOME_VIDEO_BLOCK_TEXT_2}"
266
- class="sapUiSmallMarginBottom"/>
267
- </l:VerticalLayout>
268
- </l:BlockLayoutCell>
269
- </l:BlockLayoutRow>
281
+ <!-- This block layout row will be commented until BGSOFUIPIRIN-5473 is completely finished-->
282
+ <!-- <l:BlockLayoutRow>-->
283
+ <!-- <l:BlockLayoutCell-->
284
+ <!-- backgroundColorSet="ColorSet11"-->
285
+ <!-- backgroundColorShade="ShadeA">-->
286
+ <!-- <HBox alignItems="Center" justifyContent="Center" width="100%" height="100%">-->
287
+ <!-- <core:HTML sanitizeContent="true" content='-->
288
+ <!-- &lt;div class="videoWrapper"&gt;-->
289
+ <!-- &lt;iframe src="https://www.youtube.com/embed/6_CQYtmRJNg" title="YouTube video player" frameborder="0"-->
290
+ <!-- allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="true" /&gt;-->
291
+ <!-- &lt;/div&gt;'>-->
292
+ <!-- <core:layoutData>-->
293
+ <!-- <FlexItemData maxWidth="35rem" growFactor="1" />-->
294
+ <!-- </core:layoutData>-->
295
+ <!-- </core:HTML>-->
296
+ <!-- </HBox>-->
297
+ <!-- </l:BlockLayoutCell>-->
298
+ <!-- <l:BlockLayoutCell-->
299
+ <!-- backgroundColorSet="ColorSet11"-->
300
+ <!-- backgroundColorShade="ShadeD">-->
301
+ <!-- <l:VerticalLayout-->
302
+ <!-- width="100%">-->
303
+ <!-- <custom:TitleLink-->
304
+ <!-- text="{i18n>WELCOME_VIDEO_BLOCK_TITLE}"-->
305
+ <!-- class="sapUiSmallMarginBottom"-->
306
+ <!-- href="https://www.youtube.com/watch?v=6_CQYtmRJNg"-->
307
+ <!-- target="_blank"-->
308
+ <!-- titleStyle="H2"/>-->
309
+ <!-- <Text-->
310
+ <!-- text="{i18n>WELCOME_VIDEO_BLOCK_TEXT_1}"-->
311
+ <!-- class="sapUiSmallMarginBottom"/>-->
312
+ <!-- <FormattedText-->
313
+ <!-- htmlText="{i18n>WELCOME_VIDEO_BLOCK_TEXT_2}"-->
314
+ <!-- class="sapUiSmallMarginBottom"/>-->
315
+ <!-- </l:VerticalLayout>-->
316
+ <!-- </l:BlockLayoutCell>-->
317
+ <!-- </l:BlockLayoutRow>-->
270
318
  </l:BlockLayout>
271
319
  </Panel>
272
320
 
@@ -11,6 +11,7 @@
11
11
  <VBox class="sapUiTinyMarginTop">
12
12
  <Label text="{i18n>APP_SETTINGS_DIALOG_THEME}" design="Standard" labelFor="ThemeSelect" />
13
13
  <Select id="ThemeSelect" width="100%" class="sapUiSmallMarginBottom">
14
+ <core:Item key="sap_horizon" text="Horizon"/>
14
15
  <core:Item key="sap_fiori_3" text="Quartz Light"/>
15
16
  <core:Item key="sap_fiori_3_dark" text="Quartz Dark"/>
16
17
  <core:Item key="sap_belize" text="Belize"/>
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * OpenUI5
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
+ */
6
+
7
+ @import "../base/library.source.less";
8
+ @import "../../../../../sap/ui/core/themes/sap_horizon_dark/base.less";
9
+ @import "../../../../../sap/ui/core/themes/sap_horizon_dark/global.less";
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * OpenUI5
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
+ */
6
+
7
+ @import "../base/library.source.less";
8
+ @import "../../../../../sap/ui/core/themes/sap_horizon_hcb/base.less";
9
+ @import "../../../../../sap/ui/core/themes/sap_horizon_hcb/global.less";
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * OpenUI5
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
+ */
6
+
7
+ @import "../base/library.source.less";
8
+ @import "../../../../../sap/ui/core/themes/sap_horizon_hcw/base.less";
9
+ @import "../../../../../sap/ui/core/themes/sap_horizon_hcw/global.less";