@openui5/sap.ui.documentation 1.105.0 → 1.106.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 (79) hide show
  1. package/.reuse/dep5 +20 -17
  2. package/THIRDPARTY.txt +31 -21
  3. package/package.json +6 -6
  4. package/src/sap/ui/documentation/.library +1 -1
  5. package/src/sap/ui/documentation/library.js +2 -2
  6. package/src/sap/ui/documentation/messagebundle.properties +23 -0
  7. package/src/sap/ui/documentation/messagebundle_ar.properties +12 -0
  8. package/src/sap/ui/documentation/messagebundle_bg.properties +12 -0
  9. package/src/sap/ui/documentation/messagebundle_ca.properties +12 -0
  10. package/src/sap/ui/documentation/messagebundle_cs.properties +12 -0
  11. package/src/sap/ui/documentation/messagebundle_cy.properties +12 -0
  12. package/src/sap/ui/documentation/messagebundle_da.properties +12 -0
  13. package/src/sap/ui/documentation/messagebundle_de.properties +12 -0
  14. package/src/sap/ui/documentation/messagebundle_el.properties +12 -0
  15. package/src/sap/ui/documentation/messagebundle_en.properties +12 -0
  16. package/src/sap/ui/documentation/messagebundle_en_GB.properties +12 -0
  17. package/src/sap/ui/documentation/messagebundle_en_US_sappsd.properties +12 -0
  18. package/src/sap/ui/documentation/messagebundle_en_US_saprigi.properties +12 -0
  19. package/src/sap/ui/documentation/messagebundle_en_US_saptrc.properties +12 -0
  20. package/src/sap/ui/documentation/messagebundle_es.properties +12 -0
  21. package/src/sap/ui/documentation/messagebundle_es_MX.properties +12 -0
  22. package/src/sap/ui/documentation/messagebundle_et.properties +12 -0
  23. package/src/sap/ui/documentation/messagebundle_fi.properties +12 -0
  24. package/src/sap/ui/documentation/messagebundle_fr.properties +12 -0
  25. package/src/sap/ui/documentation/messagebundle_fr_CA.properties +14 -2
  26. package/src/sap/ui/documentation/messagebundle_hi.properties +12 -0
  27. package/src/sap/ui/documentation/messagebundle_hr.properties +12 -0
  28. package/src/sap/ui/documentation/messagebundle_hu.properties +12 -0
  29. package/src/sap/ui/documentation/messagebundle_id.properties +12 -0
  30. package/src/sap/ui/documentation/messagebundle_it.properties +12 -0
  31. package/src/sap/ui/documentation/messagebundle_iw.properties +12 -0
  32. package/src/sap/ui/documentation/messagebundle_ja.properties +12 -0
  33. package/src/sap/ui/documentation/messagebundle_kk.properties +12 -0
  34. package/src/sap/ui/documentation/messagebundle_ko.properties +12 -0
  35. package/src/sap/ui/documentation/messagebundle_lt.properties +12 -0
  36. package/src/sap/ui/documentation/messagebundle_lv.properties +12 -0
  37. package/src/sap/ui/documentation/messagebundle_ms.properties +12 -0
  38. package/src/sap/ui/documentation/messagebundle_nl.properties +12 -0
  39. package/src/sap/ui/documentation/messagebundle_no.properties +12 -0
  40. package/src/sap/ui/documentation/messagebundle_pl.properties +12 -0
  41. package/src/sap/ui/documentation/messagebundle_pt.properties +12 -0
  42. package/src/sap/ui/documentation/messagebundle_pt_PT.properties +12 -0
  43. package/src/sap/ui/documentation/messagebundle_ro.properties +12 -0
  44. package/src/sap/ui/documentation/messagebundle_ru.properties +12 -0
  45. package/src/sap/ui/documentation/messagebundle_sh.properties +12 -0
  46. package/src/sap/ui/documentation/messagebundle_sk.properties +12 -0
  47. package/src/sap/ui/documentation/messagebundle_sl.properties +12 -0
  48. package/src/sap/ui/documentation/messagebundle_sv.properties +12 -0
  49. package/src/sap/ui/documentation/messagebundle_th.properties +12 -0
  50. package/src/sap/ui/documentation/messagebundle_tr.properties +12 -0
  51. package/src/sap/ui/documentation/messagebundle_uk.properties +12 -0
  52. package/src/sap/ui/documentation/messagebundle_vi.properties +12 -0
  53. package/src/sap/ui/documentation/messagebundle_zh_CN.properties +12 -0
  54. package/src/sap/ui/documentation/messagebundle_zh_TW.properties +12 -0
  55. package/src/sap/ui/documentation/sdk/Component.js +4 -0
  56. package/src/sap/ui/documentation/sdk/controller/App.controller.js +125 -6
  57. package/src/sap/ui/documentation/sdk/controller/BPSupport.controller.js +75 -0
  58. package/src/sap/ui/documentation/sdk/controller/LiveEditor.controller.js +14 -3
  59. package/src/sap/ui/documentation/sdk/controller/Sample.controller.js +78 -54
  60. package/src/sap/ui/documentation/sdk/controller/SampleBaseController.js +1 -1
  61. package/src/sap/ui/documentation/sdk/controller/util/ConfigUtil.js +22 -2
  62. package/src/sap/ui/documentation/sdk/controller/util/ControlsInfo.js +1 -0
  63. package/src/sap/ui/documentation/sdk/controller/util/NewsInfo.js +1 -17
  64. package/src/sap/ui/documentation/sdk/css/style.css +37 -3
  65. package/src/sap/ui/documentation/sdk/index.html +1 -264
  66. package/src/sap/ui/documentation/sdk/index.js +245 -0
  67. package/src/sap/ui/documentation/sdk/manifest.json +13 -0
  68. package/src/sap/ui/documentation/sdk/model/LiveEditorData.json +1 -1
  69. package/src/sap/ui/documentation/sdk/tmpl/index.html.tmpl +1 -1
  70. package/src/sap/ui/documentation/sdk/tmpl/indexevo.html.tmpl +1 -1
  71. package/src/sap/ui/documentation/sdk/util/LiveEditorOutput.js +10 -1
  72. package/src/sap/ui/documentation/sdk/util/liveEditorOutput.html +1 -1
  73. package/src/sap/ui/documentation/sdk/view/App.view.xml +12 -1
  74. package/src/sap/ui/documentation/sdk/view/BPSupport.view.xml +7 -0
  75. package/src/sap/ui/documentation/sdk/view/SurveyPopover.fragment.xml +56 -0
  76. package/src/sap/ui/documentation/sdk/view/Tools.view.xml +4 -16
  77. package/src/sap/ui/documentation/sdk/view/TopicDetail.view.xml +1 -1
  78. package/src/sap/ui/documentation/sdk/view/Welcome.view.xml +5 -5
  79. package/src/sap/ui/documentation/themes/base/Documentation.less +5 -0
@@ -58,6 +58,18 @@ FEEDBACK_DIALOG_TEXT_SUCCESS=Geribildiriminiz g\u00F6nderildi.
58
58
  FEEDBACK_DIALOG_TITLE_ERROR=\u00DCzg\u00FCn\u00FCz\!
59
59
  FEEDBACK_DIALOG_TEXT_ERROR=Geribildiriminiz g\u00F6nderilirken hata olu\u015Ftu\:\n
60
60
 
61
+ SURVEY_POPOVER_TITLE=Bize akl\u0131n\u0131zda ne oldu\u011Funu s\u00F6yleyin.
62
+ SURVEY_POPOVER_LONG_SURVEY_TITLE=Kullan\u0131c\u0131 deneyimi anketi
63
+ SURVEY_POPOVER_LONG_SURVEY_BADGE=YEN\u0130
64
+ SURVEY_POPOVER_LONG_SURVEY_AVAILABILITY=Kullan\u0131labilirlik biti\u015Fi
65
+ SURVEY_POPOVER_LONG_SURVEY_DESC=Be\u015F dakikal\u0131k anketi tamamlay\u0131n ve \u00FCr\u00FCn deneyiminizi geli\u015Ftirmemize yard\u0131mc\u0131 olun\! Anket yeni sekmede a\u00E7\u0131lacak.
66
+ SURVEY_POPOVER_LONG_SURVEY_BTN=Ankete kat\u0131l
67
+ SURVEY_POPOVER_LONG_SURVEY_BTN_TOOLTIP=Qualtrics kullan\u0131c\u0131 deneyimi anketine harici ba\u011Flant\u0131
68
+ SURVEY_POPOVER_DEFAULT_SURVEY_TITLE=Geribildiriminizi payla\u015F\u0131n
69
+ SURVEY_POPOVER_DEFAULT_SURVEY_DESC=Fikrinizi \u00F6nemsiyoruz. D\u00FC\u015F\u00FCncelerinizi her zaman bizmle payla\u015Fabilirsiniz\!
70
+ SURVEY_POPOVER_DEFAULT_SURVEY_BTN=Geribildirim g\u00F6nder
71
+ SURVEY_POPOVER_CLOSE_BTN=Kapat
72
+
61
73
  WELCOME_BLOCK_1_TEXT_1=Yeni kurumsal derece ufuklar\u0131n\u0131 ke\u015Ffet
62
74
  WELCOME_BLOCK_1_START_BTN=UI5 ile ba\u015Fla
63
75
  WELCOME_BLOCK_1_DOWNLOAD_BTN=\u0130ndir
@@ -58,6 +58,18 @@ FEEDBACK_DIALOG_TEXT_SUCCESS=\u0412\u0430\u0448 \u0432\u0456\u0434\u0433\u0443\u
58
58
  FEEDBACK_DIALOG_TITLE_ERROR=\u0412\u0438\u0431\u0430\u0447\u0442\u0435\!
59
59
  FEEDBACK_DIALOG_TEXT_ERROR=\u041F\u0456\u0434 \u0447\u0430\u0441 \u043D\u0430\u0434\u0441\u0438\u043B\u0430\u043D\u043D\u044F \u0432\u0430\u0448\u043E\u0433\u043E \u0432\u0456\u0434\u0433\u0443\u043A\u0443 \u0441\u0442\u0430\u043B\u0430\u0441\u044F \u043F\u043E\u043C\u0438\u043B\u043A\u0430\:\n
60
60
 
61
+ SURVEY_POPOVER_TITLE=\u0420\u043E\u0437\u043A\u0430\u0436\u0456\u0442\u044C, \u043F\u0440\u043E \u0449\u043E \u0432\u0438 \u0434\u0443\u043C\u0430\u0454\u0442\u0435.
62
+ SURVEY_POPOVER_LONG_SURVEY_TITLE=\u041E\u043F\u0438\u0442\u0443\u0432\u0430\u043D\u043D\u044F \u0449\u043E\u0434\u043E \u0434\u043E\u0441\u0432\u0456\u0434\u0443 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430
63
+ SURVEY_POPOVER_LONG_SURVEY_BADGE=\u041D\u041E\u0412\u0415
64
+ SURVEY_POPOVER_LONG_SURVEY_AVAILABILITY=\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u0434\u043E
65
+ SURVEY_POPOVER_LONG_SURVEY_DESC=\u0417\u0430\u043F\u043E\u0432\u043D\u0456\u0442\u044C \u043F\u2019\u044F\u0442\u0438\u0445\u0432\u0438\u043B\u0438\u043D\u043D\u0435 \u043E\u043F\u0438\u0442\u0443\u0432\u0430\u043D\u043D\u044F \u0442\u0430 \u0434\u043E\u043F\u043E\u043C\u043E\u0436\u0456\u0442\u044C \u043D\u0430\u043C \u043F\u043E\u043A\u0440\u0430\u0449\u0438\u0442\u0438 \u0432\u0430\u0448 \u043F\u0440\u043E\u0434\u0443\u043A\u0442\! \u041E\u043F\u0438\u0442\u0443\u0432\u0430\u043D\u043D\u044F \u0432\u0456\u0434\u043A\u0440\u0438\u0454\u0442\u044C\u0441\u044F \u0432 \u043D\u043E\u0432\u0456\u0439 \u0432\u043A\u043B\u0430\u0434\u0446\u0456.
66
+ SURVEY_POPOVER_LONG_SURVEY_BTN=\u041F\u0440\u043E\u0439\u0442\u0438 \u043E\u043F\u0438\u0442\u0443\u0432\u0430\u043D\u043D\u044F
67
+ SURVEY_POPOVER_LONG_SURVEY_BTN_TOOLTIP=\u0417\u043E\u0432\u043D\u0456\u0448\u043D\u0454 \u043F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F \u043D\u0430 \u043E\u043F\u0438\u0442\u0443\u0432\u0430\u043D\u043D\u044F \u0449\u043E\u0434\u043E \u0434\u043E\u0441\u0432\u0456\u0434\u0443 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430 Qualtrics
68
+ SURVEY_POPOVER_DEFAULT_SURVEY_TITLE=\u0417\u0430\u043B\u0438\u0448\u0442\u0435 \u0441\u0432\u0456\u0439 \u0432\u0456\u0434\u0433\u0443\u043A
69
+ SURVEY_POPOVER_DEFAULT_SURVEY_DESC=\u0412\u0430\u0448\u0430 \u0434\u0443\u043C\u043A\u0430 \u043C\u0430\u0454 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F. \u041F\u043E\u0434\u0456\u043B\u0456\u0442\u044C\u0441\u044F \u0441\u0432\u043E\u0457\u043C\u0438 \u0434\u0443\u043C\u043A\u0430\u043C\u0438 \u0437 \u043D\u0430\u043C\u0438 \u0432 \u0431\u0443\u0434\u044C-\u044F\u043A\u0438\u0439 \u0447\u0430\u0441\!
70
+ SURVEY_POPOVER_DEFAULT_SURVEY_BTN=\u041D\u0430\u0434\u0430\u0442\u0438 \u0432\u0456\u0434\u0433\u0443\u043A
71
+ SURVEY_POPOVER_CLOSE_BTN=\u0417\u0430\u043A\u0440\u0438\u0442\u0438
72
+
61
73
  WELCOME_BLOCK_1_TEXT_1=\u0412\u0456\u0434\u043A\u0440\u0438\u0439\u0442\u0435 \u043D\u043E\u0432\u0456 \u0433\u043E\u0440\u0438\u0437\u043E\u043D\u0442\u0438 \u043F\u0456\u0434\u043F\u0440\u0438\u0454\u043C\u043D\u0438\u0446\u0442\u0432\u0430
62
74
  WELCOME_BLOCK_1_START_BTN=\u041F\u043E\u0447\u0430\u0442\u0438 \u0440\u043E\u0431\u043E\u0442\u0443 \u0437 UI5
63
75
  WELCOME_BLOCK_1_DOWNLOAD_BTN=\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438
@@ -58,6 +58,18 @@ FEEDBACK_DIALOG_TEXT_SUCCESS=Th\u00F4ng tin pha\u0309n h\u00F4\u0300i cu\u0309a
58
58
  FEEDBACK_DIALOG_TITLE_ERROR=R\u00E2\u0301t ti\u00EA\u0301c\!
59
59
  FEEDBACK_DIALOG_TEXT_ERROR=\u0110a\u0303 xa\u0309y ra l\u00F4\u0303i trong lu\u0301c g\u01B0\u0309i th\u00F4ng tin pha\u0309n h\u00F4\u0300i cu\u0309a ba\u0323n\:\n
60
60
 
61
+ SURVEY_POPOVER_TITLE=H\u00E3y cho ch\u00FAng t\u00F4i bi\u1EBFt suy ngh\u0129 c\u1EE7a b\u1EA1n.
62
+ SURVEY_POPOVER_LONG_SURVEY_TITLE=Kh\u1EA3o s\u00E1t tr\u1EA3i nghi\u1EC7m ng\u01B0\u1EDDi d\u00F9ng
63
+ SURVEY_POPOVER_LONG_SURVEY_BADGE=M\u01A0\u0301I
64
+ SURVEY_POPOVER_LONG_SURVEY_AVAILABILITY=Kha\u0309 du\u0323ng cho \u0111\u1EBFn khi
65
+ SURVEY_POPOVER_LONG_SURVEY_DESC=Ha\u0303y ho\u00E0n t\u00E2\u0301t cu\u00F4\u0323c kh\u1EA3o s\u00E1t d\u00E0i n\u0103m ph\u00FAt v\u00E0 gi\u00FAp ch\u00FAng t\u00F4i c\u1EA3i thi\u1EC7n tr\u1EA3i nghi\u1EC7m s\u1EA3n ph\u1EA9m c\u1EE7a b\u1EA1n\! Cu\u1ED9c kh\u1EA3o s\u00E1t s\u1EBD m\u1EDF trong m\u1ED9t tab m\u1EDBi.
66
+ SURVEY_POPOVER_LONG_SURVEY_BTN=Th\u01B0\u0323c hi\u00EA\u0323n kha\u0309o sa\u0301t
67
+ SURVEY_POPOVER_LONG_SURVEY_BTN_TOOLTIP=Li\u00EAn k\u1EBFt b\u00EAn ngo\u00E0i \u0111\u1EBFn Kh\u1EA3o s\u00E1t tr\u1EA3i nghi\u1EC7m ng\u01B0\u1EDDi d\u00F9ng Qualtrics
68
+ SURVEY_POPOVER_DEFAULT_SURVEY_TITLE=Chia se\u0309 pha\u0309n h\u00F4\u0300i cu\u0309a ba\u0323n
69
+ SURVEY_POPOVER_DEFAULT_SURVEY_DESC=Chu\u0301ng t\u00F4i t\u00F4n tro\u0323ng y\u0301 ki\u1EBFn c\u1EE7a b\u1EA1n. Ha\u0303y chia s\u1EBB suy ngh\u0129 c\u1EE7a b\u1EA1n v\u1EDBi ch\u00FAng t\u00F4i va\u0300o b\u1EA5t ky\u0300 l\u00FAc n\u00E0o\!
70
+ SURVEY_POPOVER_DEFAULT_SURVEY_BTN=Cho bi\u1EBFt ph\u1EA3n h\u1ED3i
71
+ SURVEY_POPOVER_CLOSE_BTN=\u0110o\u0301ng
72
+
61
73
  WELCOME_BLOCK_1_TEXT_1=Kha\u0301m pha\u0301 T\u00E2\u0300m nhi\u0300n loa\u0323i doanh nghi\u00EA\u0323p m\u01A1\u0301i
62
74
  WELCOME_BLOCK_1_START_BTN=B\u0103\u0301t \u0111\u00E2\u0300u v\u01A1\u0301i UI5
63
75
  WELCOME_BLOCK_1_DOWNLOAD_BTN=Ta\u0309i xu\u00F4\u0301ng
@@ -58,6 +58,18 @@ FEEDBACK_DIALOG_TEXT_SUCCESS=\u60A8\u7684\u53CD\u9988\u5DF2\u53D1\u9001\u3002
58
58
  FEEDBACK_DIALOG_TITLE_ERROR=\u62B1\u6B49\uFF01
59
59
  FEEDBACK_DIALOG_TEXT_ERROR=\u53D1\u9001\u60A8\u7684\u53CD\u9988\u65F6\u51FA\u9519\uFF1A\n
60
60
 
61
+ SURVEY_POPOVER_TITLE=\u8BF4\u51FA\u60A8\u7684\u5FC3\u91CC\u8BDD\u3002
62
+ SURVEY_POPOVER_LONG_SURVEY_TITLE=\u7528\u6237\u4F53\u9A8C\u8C03\u67E5
63
+ SURVEY_POPOVER_LONG_SURVEY_BADGE=\u65B0
64
+ SURVEY_POPOVER_LONG_SURVEY_AVAILABILITY=\u53EF\u7528\u81F3
65
+ SURVEY_POPOVER_LONG_SURVEY_DESC=\u5B8C\u6210\u4E94\u5206\u949F\u7684\u8C03\u67E5\uFF0C\u5E2E\u52A9\u6211\u4EEC\u6539\u5584\u60A8\u7684\u4EA7\u54C1\u4F53\u9A8C\uFF01\u8C03\u67E5\u5C06\u5728\u65B0\u6807\u7B7E\u4E2D\u6253\u5F00\u3002
66
+ SURVEY_POPOVER_LONG_SURVEY_BTN=\u53C2\u4E0E\u8C03\u67E5
67
+ SURVEY_POPOVER_LONG_SURVEY_BTN_TOOLTIP=Qualtrics \u7528\u6237\u4F53\u9A8C\u8C03\u67E5\u7684\u5916\u90E8\u94FE\u63A5
68
+ SURVEY_POPOVER_DEFAULT_SURVEY_TITLE=\u5206\u4EAB\u60A8\u7684\u53CD\u9988
69
+ SURVEY_POPOVER_DEFAULT_SURVEY_DESC=\u60A8\u7684\u610F\u89C1\u5F88\u91CD\u8981\u3002\u968F\u65F6\u4E0E\u6211\u4EEC\u5206\u4EAB\u60A8\u7684\u60F3\u6CD5\u3002
70
+ SURVEY_POPOVER_DEFAULT_SURVEY_BTN=\u63D0\u4F9B\u53CD\u9988
71
+ SURVEY_POPOVER_CLOSE_BTN=\u5173\u95ED
72
+
61
73
  WELCOME_BLOCK_1_TEXT_1=\u53D1\u73B0\u4F01\u4E1A\u7EA7\u7684\u65B0\u5883\u754C
62
74
  WELCOME_BLOCK_1_START_BTN=\u5F00\u59CB\u4F7F\u7528 UI5
63
75
  WELCOME_BLOCK_1_DOWNLOAD_BTN=\u4E0B\u8F7D
@@ -58,6 +58,18 @@ FEEDBACK_DIALOG_TEXT_SUCCESS=\u5DF2\u50B3\u9001\u60A8\u7684\u53CD\u994B\u3002
58
58
  FEEDBACK_DIALOG_TITLE_ERROR=\u62B1\u6B49\uFF01
59
59
  FEEDBACK_DIALOG_TEXT_ERROR=\u50B3\u9001\u60A8\u7684\u53CD\u994B\u6642\u767C\u751F\u932F\u8AA4\uFF1A\n
60
60
 
61
+ SURVEY_POPOVER_TITLE=\u8ACB\u63D0\u51FA\u60A8\u7684\u60F3\u6CD5\u3002
62
+ SURVEY_POPOVER_LONG_SURVEY_TITLE=\u4F7F\u7528\u8005\u9AD4\u9A57\u8ABF\u67E5
63
+ SURVEY_POPOVER_LONG_SURVEY_BADGE=\u65B0
64
+ SURVEY_POPOVER_LONG_SURVEY_AVAILABILITY=\u4F7F\u7528\u671F\u9650
65
+ SURVEY_POPOVER_LONG_SURVEY_DESC=\u8ACB\u5B8C\u6210\u4E94\u5206\u9418\u7684\u8ABF\u67E5\u4E26\u5354\u52A9\u6211\u5011\u6539\u5584\u60A8\u7684\u7522\u54C1\u9AD4\u9A57\uFF01\u9019\u6703\u5728\u65B0\u6A19\u7C64\u4E2D\u958B\u555F\u6B64\u8ABF\u67E5\u3002
66
+ SURVEY_POPOVER_LONG_SURVEY_BTN=\u9032\u884C\u8ABF\u67E5
67
+ SURVEY_POPOVER_LONG_SURVEY_BTN_TOOLTIP=\u5916\u90E8\u9023\u7D50\u81F3 Qualtrics \u4F7F\u7528\u8005\u9AD4\u9A57\u8ABF\u67E5
68
+ SURVEY_POPOVER_DEFAULT_SURVEY_TITLE=\u5171\u4EAB\u60A8\u7684\u53CD\u994B
69
+ SURVEY_POPOVER_DEFAULT_SURVEY_DESC=\u6211\u5011\u91CD\u8996\u60A8\u7684\u610F\u898B\uFF0C\u8ACB\u96A8\u6642\u8207\u6211\u5011\u5206\u4EAB\u60F3\u6CD5\uFF01
70
+ SURVEY_POPOVER_DEFAULT_SURVEY_BTN=\u63D0\u4F9B\u53CD\u994B
71
+ SURVEY_POPOVER_CLOSE_BTN=\u95DC\u9589
72
+
61
73
  WELCOME_BLOCK_1_TEXT_1=\u63A2\u7D22\u65B0 Enterprise Grade Horizon
62
74
  WELCOME_BLOCK_1_START_BTN=\u958B\u59CB\u4F7F\u7528 UI5
63
75
  WELCOME_BLOCK_1_DOWNLOAD_BTN=\u4E0B\u8F09
@@ -12,6 +12,7 @@ sap.ui.define([
12
12
  "sap/ui/documentation/sdk/controller/ErrorHandler",
13
13
  "sap/ui/model/json/JSONModel",
14
14
  "sap/ui/documentation/sdk/controller/util/ConfigUtil",
15
+ "sap/ui/documentation/sdk/controller/util/URLUtil",
15
16
  "sap/base/util/Version",
16
17
  "sap/ui/documentation/sdk/util/Resources",
17
18
  // used via manifest.json
@@ -26,6 +27,7 @@ sap.ui.define([
26
27
  ErrorHandler,
27
28
  JSONModel,
28
29
  ConfigUtil,
30
+ DemokitURLUtil,
29
31
  Version,
30
32
  ResourcesUtil /*, DocumentationRouter, ColumnListItem*/
31
33
  ) {
@@ -207,7 +209,9 @@ sap.ui.define([
207
209
  isSnapshotVersion: bSnapshot,
208
210
  isDevVersion: bSnapshot,
209
211
  isBetaVersion: !bOpenUI5 && !bSnapshot && /-beta$/i.test(sVersionSuffix),
212
+ isURLVersioned: !!DemokitURLUtil.parseVersion(document.location.href),
210
213
  isInternal: !!bIsInternal,
214
+ isDevEnv: /testsuite/.test(oVersionInfo.name),
211
215
  supportsSWA: bSupportsSWA,
212
216
  libraries: oVersionInfo.libraries,
213
217
  allowedMembers: this.aAllowedMembers
@@ -66,6 +66,9 @@ sap.ui.define([
66
66
  // shortcut for sap.m.SplitAppMode
67
67
  var SplitAppMode = mobileLibrary.SplitAppMode;
68
68
 
69
+ // Shortcut for sap.m.URLHelper
70
+ var URLHelper = mobileLibrary.URLHelper;
71
+
69
72
  var MAIN_WEB_PAGE_TITLE = "Demo Kit - \uFFFD SDK",
70
73
  WEB_PAGE_TITLE = {
71
74
  topic: "Documentation - " + MAIN_WEB_PAGE_TITLE,
@@ -152,15 +155,16 @@ sap.ui.define([
152
155
  bHideTopicSection: !!window['sap-ui-documentation-hideTopicSection'],
153
156
  bHideApiSection: !!window['sap-ui-documentation-hideApiSection'],
154
157
  sAboutInfoSAPUI5: "Looking for the Demo Kit for a specific SAPUI5 version? " +
155
- "Check at <a href = 'https://sapui5.hana.ondemand.com/versionoverview.html'>https://sapui5.hana.ondemand.com/versionoverview.html</a> " +
158
+ "Check at <a href = 'https://ui5.sap.com/versionoverview.html'>https://ui5.sap.com/versionoverview.html</a> " +
156
159
  "which versions are available. " +
157
160
  "You can view the version-specific Demo Kit by adding the version number to the URL, e.g. " +
158
- "<a href='https://sapui5.hana.ondemand.com/1.52.4/'>https://sapui5.hana.ondemand.com/1.52.4/</a>",
161
+ "<a href='https://ui5.sap.com/1.71.46/'>https://ui5.sap.com/1.71.46/</a>",
159
162
  sAboutInfoOpenUI5: "Looking for the Demo Kit for a specific OpenUI5 version? " +
160
- "Check at <a href = 'https://openui5.hana.ondemand.com/versionoverview.html'>https://openui5.hana.ondemand.com/versionoverview.html</a> " +
163
+ "Check at <a href = 'https://sdk.openui5.org/versionoverview.html'>https://sdk.openui5.org/versionoverview.html</a> " +
161
164
  "which versions are available. " +
162
165
  "You can view the version-specific Demo Kit by adding the version number to the URL, e.g. " +
163
- "<a href='https://openui5.hana.ondemand.com/1.52.4/'>https://openui5.hana.ondemand.com/1.52.4/</a>"
166
+ "<a href='https://sdk.openui5.org/1.71.46/'>https://sdk.openui5.org/1.71.46/</a>",
167
+ bUseFeedbackDialog: false // enable to restore previous feedback dialog and hide the Qualtrics surveys
164
168
  });
165
169
 
166
170
  var oComponent = this.getOwnerComponent();
@@ -270,6 +274,7 @@ sap.ui.define([
270
274
  oCookieMgmtComponent.enable(oComponent.getRootControl());
271
275
  });
272
276
 
277
+ this.setSurveyModelData();
273
278
  },
274
279
 
275
280
  _updateMessagesModel: function(oMessagesData) {
@@ -457,12 +462,17 @@ sap.ui.define([
457
462
 
458
463
  handleMenuItemClick: function (oEvent) {
459
464
  var sTargetText = oEvent.getParameter("item").getKey(),
460
- sTarget = this.MENU_LINKS_MAP[sTargetText];
465
+ sTarget = this.MENU_LINKS_MAP[sTargetText],
466
+ bUseFeedbackDialog = this.getModel("appView").getProperty("/bUseFeedbackDialog");
461
467
 
462
468
  if (sTargetText === ABOUT_TEXT) {
463
469
  this.aboutDialogOpen();
464
470
  } else if (sTargetText === FEEDBACK_TEXT) {
465
- this.feedbackDialogOpen();
471
+ if (!bUseFeedbackDialog) {
472
+ this.launchSurvey(oEvent, true);
473
+ } else {
474
+ this.feedbackDialogOpen();
475
+ }
466
476
  } else if (sTargetText === CHANGE_SETTINGS_TEXT) {
467
477
  this.settingsDialogOpen();
468
478
  } else if (sTargetText === CHANGE_COOKIE_PREFERENCES_TEXT) {
@@ -1267,6 +1277,115 @@ sap.ui.define([
1267
1277
  }
1268
1278
  },
1269
1279
 
1280
+ /**
1281
+ * Opens the Qualtrics UX survey when the feedback button gets pressed.
1282
+ * There are two available surveys - a short one (all year round), and quarterly survey.
1283
+ *
1284
+ * Depending on the number of available surveys:
1285
+ * - Directly opens the short survey in a new tab.
1286
+ * - If a long, quarterly survey is available, opens a popover with links for both.
1287
+ *
1288
+ * @param {sap.ui.base.Event} oEvent The feedback/menu button's press event
1289
+ * @param {boolean} bMenu Whether the pressed button is hidden in the 'About' menu
1290
+ */
1291
+ launchSurvey: function (oEvent, bMenu) {
1292
+ var oTarget = this.byId(!bMenu ? "surveyButton" : "aboutMenuButton"),
1293
+ oView = this.getView(),
1294
+ oViewModel = this.getModel("appView"),
1295
+ bShowLongSurvey = oViewModel.getProperty("/bShowLongSurvey");
1296
+
1297
+ if (!bShowLongSurvey) {
1298
+ this.shortSurveyRedirect();
1299
+ } else if (!this._oSurveyPopover) {
1300
+ Fragment.load({
1301
+ name: "sap.ui.documentation.sdk.view.SurveyPopover",
1302
+ controller: this
1303
+ }).then(function (oPopover) {
1304
+ oView.addDependent(oPopover);
1305
+ this._oSurveyPopover = oPopover;
1306
+
1307
+ if (Device.system.phone) {
1308
+ this.addSurveyPopoverCloseBtn();
1309
+ }
1310
+
1311
+ this._oSurveyPopover.openBy(oTarget);
1312
+ }.bind(this));
1313
+ } else {
1314
+ this._oSurveyPopover.openBy(oTarget);
1315
+ }
1316
+ },
1317
+
1318
+ /**
1319
+ * Closes the survey popover on mobile.
1320
+ * @param {sap.ui.base.Event} oEvent The close button's press event
1321
+ */
1322
+ closeSurveyPopover: function (oEvent) {
1323
+ this._oSurveyPopover.close();
1324
+ },
1325
+
1326
+ shortSurveyRedirect: function () {
1327
+ var sQueryParams = "?product=SAPUI5&product_filter=UI5&cluster=BTP",
1328
+ sProdURL = "https://sapinsights.eu.qualtrics.com/jfe/form/SV_2gcfdw3EYYOIz5A" + sQueryParams,
1329
+ sDevURL = "https://sapinsights.eu.qualtrics.com/jfe/form/SV_d3UPNymSgUHAb9Y" + sQueryParams,
1330
+ bProd = !this.getModel("versionData").getProperty("/isDevEnv");
1331
+
1332
+ // This survey could be displayed in a Qualtrics intercept
1333
+ // dialog in the future, instead of a new tab
1334
+ URLHelper.redirect(bProd ? sProdURL : sDevURL, true);
1335
+ },
1336
+
1337
+ longSurveyRedirect: function () {
1338
+ var sBaseURL = "https://sapinsights.eu.qualtrics.com/jfe/form/SV_7X5P63Zg5zXC5zE",
1339
+ sBaseQueryParams = "?product=SAPUI5&product_filter=UI5&cluster=BTP",
1340
+ sProdURL = sBaseURL + sBaseQueryParams,
1341
+ sDevURL = sBaseURL + sBaseQueryParams + "&Q_CHL=preview&Q_SurveyVersionID=current",
1342
+ bProd = !this.getModel("versionData").getProperty("/isDevEnv");
1343
+
1344
+ URLHelper.redirect(bProd ? sProdURL : sDevURL, true);
1345
+ },
1346
+
1347
+ setSurveyModelData: function () {
1348
+ var oViewModel = this.getModel("appView"),
1349
+ dCurrentDate = new Date(),
1350
+ iCurrentYear = dCurrentDate.getFullYear(),
1351
+ aDateSpans = [
1352
+ [new Date(iCurrentYear, 1, 1), new Date(iCurrentYear, 1, 21)], // Feb 1-21
1353
+ [new Date(iCurrentYear, 4, 1), new Date(iCurrentYear, 4, 21)], // May 1-21
1354
+ [new Date(iCurrentYear, 7, 1), new Date(iCurrentYear, 7, 21)], // Aug 1-21
1355
+ [new Date(iCurrentYear, 10, 1), new Date(iCurrentYear, 10, 21)] // Nov 1-21
1356
+ ],
1357
+ bDateInSpan = false,
1358
+ sLastAvailableDate;
1359
+
1360
+ aDateSpans.forEach(function (aDateSpan) {
1361
+ var dMinDate = aDateSpan[0],
1362
+ dMaxDate = aDateSpan[1];
1363
+
1364
+ if (dCurrentDate >= dMinDate && dCurrentDate <= dMaxDate) {
1365
+ bDateInSpan = true;
1366
+ sLastAvailableDate = dMaxDate.toLocaleDateString();
1367
+ return;
1368
+ }
1369
+ });
1370
+
1371
+ oViewModel.setProperty("/bShowLongSurvey", bDateInSpan);
1372
+
1373
+ if (bDateInSpan) {
1374
+ oViewModel.setProperty("/sLongSurveyLastDate", sLastAvailableDate);
1375
+ }
1376
+ },
1377
+
1378
+ addSurveyPopoverCloseBtn: function () {
1379
+ var oResourceBundle = this.getModel("i18n").getResourceBundle(),
1380
+ fCloseBtnHandler = this.closeSurveyPopover.bind(this),
1381
+ oCloseButton = new Button({
1382
+ text: oResourceBundle.getText("SURVEY_POPOVER_CLOSE_BTN"),
1383
+ press: fCloseBtnHandler
1384
+ });
1385
+
1386
+ this._oSurveyPopover.setEndButton(oCloseButton);
1387
+ },
1388
+
1270
1389
  /**
1271
1390
  * Event handler for the send feedback button
1272
1391
  */
@@ -0,0 +1,75 @@
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
+ sap.ui.define([
8
+ "sap/ui/documentation/sdk/controller/BaseController",
9
+ 'sap/ui/model/json/JSONModel',
10
+ "sap/ui/documentation/sdk/util/Resources",
11
+ "sap/ui/thirdparty/jquery",
12
+ "sap/ui/model/resource/ResourceModel",
13
+ "sap/ui/core/HTML"
14
+ ],
15
+ function (BaseController, JSONModel, ResourcesUtil, jQuery, ResourceModel, HTML) {
16
+ 'use strict';
17
+
18
+ return BaseController.extend('sap.ui.documentation.sdk.controller.BPSupport', {
19
+ onInit: function() {
20
+ this.getRouter().getRoute("BPSupport").attachPatternMatched(this._onMatched, this);
21
+
22
+ this._oModel = new JSONModel();
23
+ this.setModel(this._oModel);
24
+
25
+ if (!this._oMessageBundle) {
26
+ this._oMessageBundle = new ResourceModel({
27
+ bundleName: "sap.ui.documentation.messagebundle"
28
+ });
29
+ }
30
+ this.setModel(this._oMessageBundle, "i18n");
31
+ this.oConfigUtil = this.getOwnerComponent().getConfigUtil();
32
+
33
+ },
34
+
35
+ _requestContentPage: function(oConfigPath) {
36
+ return new Promise(function(resolve, reject) {
37
+ jQuery.ajax(ResourcesUtil.getResourceOriginPath(oConfigPath["browserSupportPath"]), {
38
+ dataType: "text"
39
+ }).done(function (oData) {
40
+ resolve(oData);
41
+ }).fail(function (jqXHR, sTextStatus, sError) {
42
+ reject();
43
+ });
44
+ });
45
+ },
46
+ /**
47
+ * Handles "BPSupport" routing
48
+ * @function
49
+ * @private
50
+ */
51
+ _onMatched: function () {
52
+ try {
53
+ this.hideMasterSide();
54
+ } catch (e) {
55
+ // try-catch due to a bug in UI5 SplitApp, CL 1898264 should fix it
56
+ }
57
+
58
+ this.oConfigUtil._requireConfigJSON()
59
+ .then(this._requestContentPage)
60
+ .then(function(oData){
61
+ this._oHTML = new HTML({
62
+ id : "BPSupportContent",
63
+ content : '<div id="d4h5-main-container" class="bpsupport">' + oData + '</div>'
64
+ });
65
+
66
+ this.byId("BPSupportPage").removeAllContent();
67
+ this.byId("BPSupportPage").addContent(this._oHTML);
68
+
69
+ }.bind(this))
70
+ .catch(function(oErr) {
71
+ this.onRouteNotFound();
72
+ }.bind(this));
73
+ }
74
+ });
75
+ });
@@ -8,8 +8,9 @@ sap.ui.define([
8
8
  "sap/ui/documentation/sdk/controller/BaseController",
9
9
  "sap/ui/model/json/JSONModel",
10
10
  "sap/ui/thirdparty/URI",
11
- "sap/uxap/ThrottledTaskHelper"
12
- ], function (BaseController, JSONModel, URI, ThrottledTask) {
11
+ "sap/uxap/ThrottledTaskHelper",
12
+ "sap/ui/core/Core"
13
+ ], function (BaseController, JSONModel, URI, ThrottledTask, Core) {
13
14
  "use strict";
14
15
 
15
16
  var SRC_FILE_NAMES = {
@@ -75,6 +76,15 @@ sap.ui.define([
75
76
  // additional performance optimization:
76
77
  // throttle the output of src changes
77
78
  this._oThrottledTask = null;
79
+
80
+ this.bus = Core.getEventBus();
81
+ this.bus.subscribe("themeChanged", "onDemoKitThemeChanged", this.onDemoKitThemeChanged, this);
82
+ },
83
+
84
+ onDemoKitThemeChanged: function (sChannelId, sEventId, oData) {
85
+ // clean throttled task to reload iFrame with new theme
86
+ this._oThrottledTask = null;
87
+ this.requestExecuteCurrentSrc();
78
88
  },
79
89
 
80
90
  onSrcLiveChange: function(oEvent) {
@@ -157,7 +167,8 @@ sap.ui.define([
157
167
 
158
168
  return {
159
169
  src: oModulesToPost,
160
- moduleNameToRequire: sInitModuleName
170
+ moduleNameToRequire: sInitModuleName,
171
+ activeTheme: Core.getConfiguration().getTheme().toLowerCase()
161
172
  };
162
173
  },
163
174
 
@@ -133,6 +133,8 @@ sap.ui.define([
133
133
 
134
134
  // we need this property to navigate to API reference
135
135
  this.entityId = this._sEntityId ? this._sEntityId : oSample.entityId;
136
+ // we need the lib name in order to fetch dependencies for the sample
137
+ this._sLib = oSample.library;
136
138
 
137
139
  oModelData.sEntityId = this.entityId;
138
140
 
@@ -198,7 +200,7 @@ sap.ui.define([
198
200
  this.getView().byId("apiRefButton").setVisible(bHasAPIReference);
199
201
  }.bind(this));
200
202
 
201
- this.oModel.setData(oModelData);
203
+ this.oModel.setData(oModelData, true);
202
204
  this.appendPageTitle(this.getModel().getProperty("/name"));
203
205
  }.bind(this))
204
206
  .catch(function (oError) {
@@ -229,7 +231,7 @@ sap.ui.define([
229
231
  * @private
230
232
  */
231
233
  _initIframeURL : function () {
232
- var sSampleOrigin = (window['sap-ui-documentation-config'] && window['sap-ui-documentation-config'].demoKitResourceOrigin) || "",
234
+ var sSampleOrigin = ResourcesUtil.getConfig(),
233
235
  sSampleVersion = ResourcesUtil.getResourcesVersion(),
234
236
  sSampleSearchParams = "";
235
237
 
@@ -242,6 +244,7 @@ sap.ui.define([
242
244
 
243
245
  sSampleSearchParams = (sSampleSearchParams === "" ? "?" : sSampleSearchParams + "&") +
244
246
  "sap-ui-xx-sample-id=" + this._sId
247
+ + "&sap-ui-xx-sample-lib=" + (this._sLib || "")
245
248
  + "&sap-ui-xx-sample-origin=" + sSampleOrigin + sSampleVersion
246
249
  + "&sap-ui-xx-dk-origin=" + window.location.origin;
247
250
 
@@ -341,7 +344,7 @@ sap.ui.define([
341
344
 
342
345
  _saveLocalSettings: function(sTheme, sDensityMode, bRTL) {
343
346
  var sDensityMode = this._presetDensity(sDensityMode);
344
- this.getView().getModel().setData({
347
+ this.oModel.setData({
345
348
  theme: sTheme,
346
349
  rtl: bRTL,
347
350
  density: sDensityMode
@@ -407,7 +410,7 @@ sap.ui.define([
407
410
  URLHelper.redirect(this.sIFrameUrl, true);
408
411
  return;
409
412
  }
410
- // this._applySearchParamValueToIframeURL('sap-ui-theme', this._sDefaultSampleTheme);
413
+
411
414
  this.loadSampleSettings(function(eMessage){
412
415
  this._applySearchParamValueToIframeURL('sap-ui-theme', eMessage.data.data.theme);
413
416
  this._applySearchParamValueToIframeURL('sap-ui-rtl', eMessage.data.data.RTL);
@@ -476,14 +479,6 @@ sap.ui.define([
476
479
 
477
480
  _createIframe : function () {
478
481
  return new Promise(function (resolve, reject) {
479
- var sSampleId,
480
- sIframePath = "",
481
- rExtractFilename = /\/([^\/]*)$/,// extracts everything after the last slash (e.g. some/path/index.html -> index.html)
482
- rStripUI5Ending = /\..+$/,// removes everything after the first dot in the filename (e.g. someFile.qunit.html -> .qunit.html)
483
- aFileNameMatches,
484
- sFileName,
485
- sFileEnding,
486
- vIframe;
487
482
 
488
483
  this.fResolve = resolve;
489
484
  this.fReject = reject;
@@ -494,55 +489,18 @@ sap.ui.define([
494
489
  this._oHtmlControl.destroy();
495
490
  }
496
491
 
497
- var fnMessage = function (eMessage) {
498
- var oSettingsData = this.getView().getModel().getData();
499
- if (eMessage.data.type === "INIT") {
500
- if (eMessage.data.config && eMessage.data.config.sample && eMessage.data.config.sample.iframe) {
501
- sSampleId = this._sId;
502
- vIframe = eMessage.data.config.sample.iframe;
503
- sIframePath = this._resolveIframePath(sSampleId, vIframe);
504
-
505
- //vlaid only for samples that contains own index.html
506
- // strip the file extension to be able to use jQuery.sap.getModulePath
507
- aFileNameMatches = rExtractFilename.exec(vIframe);
508
- sFileName = (aFileNameMatches && aFileNameMatches.length > 1 ? aFileNameMatches[1] : vIframe);
509
- sFileEnding = rStripUI5Ending.exec(sFileName)[0];
510
- var sIframeWithoutUI5Ending = sFileName.replace(rStripUI5Ending, "");
511
-
512
- // combine namespace with the file name again
513
- this.sIFrameUrl = (sap.ui.require.toUrl((sIframePath + "/" + sIframeWithoutUI5Ending).replace(/\./g, "/")) + sFileEnding || ".html")
514
- + "?sap-ui-theme=" + sap.ui.getCore().getConfiguration().getTheme();
515
- this._oHtmlControl.getDomRef().src = this.sIFrameUrl;
516
- }
517
- this._oHtmlControl.getDomRef().contentWindow.postMessage({
518
- type: "SETTINGS",
519
- reason: "set",
520
- data: {
521
- "density": oSettingsData.density,
522
- "RTL": oSettingsData.rtl,
523
- "theme": oSettingsData.theme
524
- }
525
- }, this.getOwnerComponent()._sSampleIframeOrigin);
526
- this.fResolve(eMessage.data.config.sample);
527
- } else if (eMessage.data.type === "ERR") {
528
- this.fReject(eMessage.data.data.msg);
529
- } else if (eMessage.data.type === "RTA") {
530
- this._loadRTA.call(this);
531
- }
532
- }.bind(this);
533
-
534
492
  this._oHtmlControl = new HTML({
535
493
  id : "sampleFrame",
536
494
  content : '<iframe src="' + this.sIFrameUrl + '" id="sampleFrame" frameBorder="0"></iframe>'
537
495
  }).addEventDelegate({
538
496
  onBeforeRendering: function () {
539
- window.removeEventListener("message", fnMessage);
540
- }
497
+ window.removeEventListener("message", this.onMessage.bind(this));
498
+ }.bind(this)
541
499
  })
542
500
  .addEventDelegate({
543
501
  onAfterRendering: function () {
544
- window.addEventListener("message", fnMessage);
545
- }
502
+ window.addEventListener("message",this.onMessage.bind(this));
503
+ }.bind(this)
546
504
  });
547
505
 
548
506
  this.byId("page").removeAllContent();
@@ -551,6 +509,72 @@ sap.ui.define([
551
509
  }.bind(this));
552
510
  },
553
511
 
512
+ onMessage: function(eMessage) {
513
+ if (eMessage.origin !== this.getOwnerComponent()._sSampleIframeOrigin) {
514
+ return;
515
+ }
516
+ if (eMessage.source !== this._oHtmlControl.getDomRef().contentWindow) {
517
+ return;
518
+ }
519
+
520
+ if (eMessage.data.type === "INIT") {
521
+ this.fnMessageInit(eMessage);
522
+ } else if (eMessage.data.type === "ERR") {
523
+ this.fnMessageError(eMessage);
524
+ } else if (eMessage.data.type === "LOAD") {
525
+ this.fnMessageLoad(eMessage);
526
+ } else if (eMessage.data.type === "RTA") {
527
+ this._loadRTA.call(this);
528
+ }
529
+ },
530
+
531
+ fnMessageInit: function(eMessage) {
532
+ var sSampleId,
533
+ sIframePath = "",
534
+ rExtractFilename = /\/([^\/]*)$/,// extracts everything after the last slash (e.g. some/path/index.html -> index.html)
535
+ rStripUI5Ending = /\..+$/,// removes everything after the first dot in the filename (e.g. someFile.qunit.html -> .qunit.html)
536
+ aFileNameMatches,
537
+ sFileName,
538
+ sFileEnding,
539
+ vIframe,
540
+ oSettingsData = this.oModel.getData();
541
+
542
+ if (eMessage.data.config && eMessage.data.config.sample && eMessage.data.config.sample.iframe) {
543
+ sSampleId = this._sId;
544
+ vIframe = eMessage.data.config.sample.iframe;
545
+ sIframePath = this._resolveIframePath(sSampleId, vIframe);
546
+
547
+ //vlaid only for samples that contains own index.html
548
+ // strip the file extension to be able to use jQuery.sap.getModulePath
549
+ aFileNameMatches = rExtractFilename.exec(vIframe);
550
+ sFileName = (aFileNameMatches && aFileNameMatches.length > 1 ? aFileNameMatches[1] : vIframe);
551
+ sFileEnding = rStripUI5Ending.exec(sFileName)[0];
552
+ var sIframeWithoutUI5Ending = sFileName.replace(rStripUI5Ending, "");
553
+
554
+ // combine namespace with the file name again
555
+ this.sIFrameUrl = (sap.ui.require.toUrl((sIframePath + "/" + sIframeWithoutUI5Ending).replace(/\./g, "/")) + sFileEnding || ".html")
556
+ + "?sap-ui-theme=" + sap.ui.getCore().getConfiguration().getTheme();
557
+ this._oHtmlControl.getDomRef().src = this.sIFrameUrl;
558
+ }
559
+ this._oHtmlControl.getDomRef().contentWindow.postMessage({
560
+ type: "SETTINGS",
561
+ reason: "set",
562
+ data: {
563
+ "density": oSettingsData.density,
564
+ "RTL": oSettingsData.rtl,
565
+ "theme": oSettingsData.theme
566
+ }
567
+ }, this.getOwnerComponent()._sSampleIframeOrigin);
568
+ this.fResolve(eMessage.data.config.sample);
569
+ },
570
+ fnMessageLoad: function() {
571
+ Log.info("Sample Iframe for sample " + this._sId + " is loaded");
572
+ },
573
+
574
+ fnMessageError: function(eMessage) {
575
+ this.fReject(eMessage.data.data.msg);
576
+ },
577
+
554
578
  _createComponent : function () {
555
579
 
556
580
  // create component only once
@@ -627,7 +651,7 @@ sap.ui.define([
627
651
 
628
652
  oModelData.rtaLoaded = true;
629
653
 
630
- this.oModel.setData(oModelData);
654
+ this.oModel.setData(oModelData, true);
631
655
 
632
656
  this.getRouter().attachRouteMatched(function () {
633
657
  if (this._oRTA) {
@@ -238,7 +238,7 @@ sap.ui.define([
238
238
 
239
239
  _formatMockFile: function (sMockData) {
240
240
  var sWrongPath = "test-resources/sap/ui/documentation/sdk/images/",
241
- sCorrectPath = "https://openui5.hana.ondemand.com/test-resources/sap/ui/documentation/sdk/images/",
241
+ sCorrectPath = "https://sdk.openui5.org/test-resources/sap/ui/documentation/sdk/images/",
242
242
  oRegExp = new RegExp(sWrongPath, "g");
243
243
 
244
244
  return sMockData.replace(oRegExp, sCorrectPath);