@openui5/sap.ui.documentation 1.138.0 → 1.139.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.
- package/README.md +1 -1
- package/REUSE.toml +8 -1
- package/THIRDPARTY.txt +72 -66
- package/package.json +8 -8
- package/src/sap/ui/documentation/.library +1 -1
- package/src/sap/ui/documentation/library.js +2 -2
- package/src/sap/ui/documentation/messagebundle.properties +11 -0
- package/src/sap/ui/documentation/messagebundle_ar.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_bg.properties +7 -1
- package/src/sap/ui/documentation/messagebundle_ca.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_cnr.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_cs.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_cy.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_da.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_de.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_el.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_en.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_en_GB.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_es.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_es_MX.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_et.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_fi.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_fr.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_fr_CA.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_hi.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_hr.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_hu.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_id.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_it.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_iw.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_ja.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_kk.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_ko.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_lt.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_lv.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_mk.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_ms.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_nl.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_no.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_pl.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_pt.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_pt_PT.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_ro.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_ru.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_sh.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_sk.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_sl.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_sr.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_sv.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_th.properties +15 -9
- package/src/sap/ui/documentation/messagebundle_tr.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_uk.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_vi.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_zh_CN.properties +6 -0
- package/src/sap/ui/documentation/messagebundle_zh_TW.properties +6 -0
- package/src/sap/ui/documentation/sdk/controller/App.controller.js +4 -2
- package/src/sap/ui/documentation/sdk/controller/Code.controller.js +82 -0
- package/src/sap/ui/documentation/sdk/controller/Sample.controller.js +13 -23
- package/src/sap/ui/documentation/sdk/controller/SubApiDetail.controller.js +4 -4
- package/src/sap/ui/documentation/sdk/controller/TopicDetail.controller.js +0 -33
- package/src/sap/ui/documentation/sdk/controller/TopicDetailInitial.controller.js +1 -1
- package/src/sap/ui/documentation/sdk/controller/TopicMaster.controller.js +19 -0
- package/src/sap/ui/documentation/sdk/controller/util/Highlighter.js +11 -5
- package/src/sap/ui/documentation/sdk/css/samplesViewer.css +8 -0
- package/src/sap/ui/documentation/sdk/index.html +3 -1
- package/src/sap/ui/documentation/sdk/index.js +27 -33
- package/src/sap/ui/documentation/sdk/model/messagesData.json +1 -1
- package/src/sap/ui/documentation/sdk/samples/Component.js +143 -0
- package/src/sap/ui/documentation/sdk/samples/Page.designtime.js +55 -0
- package/src/sap/ui/documentation/sdk/samples/manifest.json +19 -0
- package/src/sap/ui/documentation/sdk/thirdparty/highlight.js/highlight.js +3 -3
- package/src/sap/ui/documentation/sdk/view/App.view.xml +6 -2
- package/src/sap/ui/documentation/sdk/view/Code.view.xml +0 -1
- package/src/sap/ui/documentation/sdk/view/Sample.view.xml +3 -1
- package/src/sap/ui/documentation/sdk/view/warningSampleDialog.fragment.xml +27 -0
|
@@ -222,6 +222,12 @@ CODE_BACK_BTN_TOOLTIP=Tillbaka till exempel
|
|
|
222
222
|
CODE_API_REFERENCE=API-referens
|
|
223
223
|
CODE_DOWNLOAD_BTN=L\u00E4s ned
|
|
224
224
|
|
|
225
|
+
CACHE_CLEANUP_DIALOG_TITLE=Exempel inl\u00E4st p\u00E5 nytt
|
|
226
|
+
CACHE_CLEANUP_DIALOG_WARNING_MESSAGE=Ett problem intr\u00E4ffade vid inl\u00E4sning av exempel. Cache har rensats och exemplet har l\u00E4sts in p\u00E5 nytt.
|
|
227
|
+
CACHE_CLEANUP_DIALOG_ERROR_MESSAGE=Ett problem intr\u00E4ffade vid inl\u00E4sning av exempel. Cache har rensats men demokit m\u00E5ste l\u00E4sas in p\u00E5 nytt.
|
|
228
|
+
CACHE_CLEANUP_DIALOG_DESCRIPTION=Alla ej sparade \u00E4ndringar eller modifieringar som gjorts av detta exempel har g\u00E5tt f\u00F6rlorade. Upprepa \u00E4ndringarna vid behov.
|
|
229
|
+
CACHE_CLEANUP_DIALOG_OK_BTN=OK
|
|
230
|
+
|
|
225
231
|
CHANGE_VERSION_DIALOG_TITLE=\u00C4ndra version
|
|
226
232
|
CHANGE_VERSION_DIALOG_CLOSE_BTN=St\u00E4ng
|
|
227
233
|
CHANGE_VERSION_DIALOG_APPLY_BTN=Till\u00E4mpa
|
|
@@ -17,7 +17,7 @@ APP_VERSION_BETA_VERSION=\u0E40\u0E27\u0E2D\u0E23\u0E4C\u0E0A\u0E31\u0E19\u0E40\
|
|
|
17
17
|
APP_VERSION_VERSION=\u0E40\u0E27\u0E2D\u0E23\u0E4C\u0E0A\u0E31\u0E19
|
|
18
18
|
APP_VERSION_NOT_PRODUCTIVE=\u2013 \u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19\u0E08\u0E23\u0E34\u0E07\!
|
|
19
19
|
APP_VERSION_IN_PROGRESS=(\u0E01\u0E33\u0E25\u0E31\u0E07\u0E1E\u0E31\u0E12\u0E19\u0E32)
|
|
20
|
-
APP_FEEDBACK_BTN_TOOLTIP=\
|
|
20
|
+
APP_FEEDBACK_BTN_TOOLTIP=\u0E02\u0E49\u0E2D\u0E40\u0E2A\u0E19\u0E2D\u0E41\u0E19\u0E30
|
|
21
21
|
APP_NEWS_BTN_TOOLTIP=\u0E02\u0E48\u0E32\u0E27
|
|
22
22
|
APP_NEWS_DISMISS_ALL_BTN=\u0E1B\u0E34\u0E14\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E02\u0E48\u0E32\u0E27\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14
|
|
23
23
|
APP_NEWS_SHOW_ALL_BTN=\u0E41\u0E2A\u0E14\u0E07\u0E02\u0E48\u0E32\u0E27\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14
|
|
@@ -25,7 +25,7 @@ APP_NEWS_NO_NEW_TEXT=\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E48\u0E32\u0E27
|
|
|
25
25
|
APP_SEARCH_FIELD_CLOSE=\u0E1B\u0E34\u0E14
|
|
26
26
|
APP_INFORMATION_BTN_TOOLTIP=\u0E01\u0E32\u0E23\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E04\u0E48\u0E32
|
|
27
27
|
APP_LEGAL_BTN_TOOLTIP=\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E32\u0E07\u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22
|
|
28
|
-
APP_INFORMATION_BTN_FEEDBACK=\
|
|
28
|
+
APP_INFORMATION_BTN_FEEDBACK=\u0E02\u0E49\u0E2D\u0E40\u0E2A\u0E19\u0E2D\u0E41\u0E19\u0E30
|
|
29
29
|
APP_INFORMATION_BTN_ABOUT=\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A
|
|
30
30
|
APP_INFORMATION_BTN_LEGAL=\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E32\u0E07\u0E01\u0E0E\u0E2B\u0E21\u0E32\u0E22
|
|
31
31
|
APP_INFORMATION_BTN_PRIVACY=\u0E04\u0E27\u0E32\u0E21\u0E40\u0E1B\u0E47\u0E19\u0E2A\u0E48\u0E27\u0E19\u0E15\u0E31\u0E27
|
|
@@ -54,13 +54,13 @@ NEWS_BTN_MARK_AS_READ=\u0E17\u0E33\u0E40\u0E04\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E
|
|
|
54
54
|
NEWS_BTN_VISIT_LINK=\u0E44\u0E1B\u0E17\u0E35\u0E48\u0E25\u0E34\u0E07\u0E01\u0E4C
|
|
55
55
|
NEWS_PREP_FAILURE_TITLE=\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E42\u0E2B\u0E25\u0E14\u0E02\u0E48\u0E32\u0E27\u0E44\u0E14\u0E49
|
|
56
56
|
|
|
57
|
-
FEEDBACK_DIALOG_TITLE=\
|
|
57
|
+
FEEDBACK_DIALOG_TITLE=\u0E43\u0E2B\u0E49\u0E02\u0E49\u0E2D\u0E40\u0E2A\u0E19\u0E2D\u0E41\u0E19\u0E30
|
|
58
58
|
FEEDBACK_DIALOG_OVERALL=\u0E1B\u0E23\u0E30\u0E2A\u0E1A\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E42\u0E14\u0E22\u0E23\u0E27\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1B\u0E47\u0E19\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E44\u0E23?
|
|
59
59
|
FEEDBACK_DIALOG_MESSAGE=\u0E04\u0E38\u0E13\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E43\u0E2B\u0E49\u0E40\u0E23\u0E32\u0E23\u0E39\u0E49\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E2D\u0E30\u0E44\u0E23?
|
|
60
|
-
FEEDBACK_DIALOG_MESSAGE_PLACEHOLDER=\u0E04\u0E38\u0E13\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E41\
|
|
61
|
-
FEEDBACK_DIALOG_RELATED=\
|
|
60
|
+
FEEDBACK_DIALOG_MESSAGE_PLACEHOLDER=\u0E04\u0E38\u0E13\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E41\u0E0A\u0E23\u0E4C\u0E02\u0E49\u0E2D\u0E40\u0E2A\u0E19\u0E2D\u0E41\u0E19\u0E30\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E1B\u0E23\u0E30\u0E2A\u0E1A\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E42\u0E14\u0E22\u0E23\u0E27\u0E21\u0E02\u0E2D\u0E07 Demo Kit \u0E2B\u0E23\u0E37\u0E2D\u0E2B\u0E19\u0E49\u0E32\u0E40\u0E09\u0E1E\u0E32\u0E30\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E14\u0E39\u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E13\u0E30\u0E19\u0E35\u0E49
|
|
61
|
+
FEEDBACK_DIALOG_RELATED=\u0E02\u0E49\u0E2D\u0E40\u0E2A\u0E19\u0E2D\u0E41\u0E19\u0E30\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E02\u0E49\u0E2D\u0E07\u0E01\u0E31\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E1B\u0E31\u0E08\u0E08\u0E38\u0E1A\u0E31\u0E19
|
|
62
62
|
FEEDBACK_DIALOG_SHOW_DATA=\u0E41\u0E2A\u0E14\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E2B\u0E32
|
|
63
|
-
FEEDBACK_DIALOG_DISCLAIMER=\
|
|
63
|
+
FEEDBACK_DIALOG_DISCLAIMER=\u0E02\u0E49\u0E2D\u0E40\u0E2A\u0E19\u0E2D\u0E41\u0E19\u0E30\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1B\u0E47\u0E19\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E23\u0E30\u0E1A\u0E38\u0E0A\u0E37\u0E48\u0E2D \u0E40\u0E23\u0E32\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E40\u0E01\u0E47\u0E1A\u0E23\u0E27\u0E1A\u0E23\u0E27\u0E21\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E1A\u0E38\u0E04\u0E04\u0E25
|
|
64
64
|
FEEDBACK_DIALOG_BTN_SEND=\u0E2A\u0E48\u0E07
|
|
65
65
|
FEEDBACK_DIALOG_BTN_CANCEL=\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01
|
|
66
66
|
FEEDBACK_DIALOG_STATUS_EXCELLENT=\u0E14\u0E35\u0E40\u0E22\u0E35\u0E48\u0E22\u0E21
|
|
@@ -69,9 +69,9 @@ FEEDBACK_DIALOG_STATUS_AVERAGE=\u0E1E\u0E2D\u0E43\u0E0A\u0E49
|
|
|
69
69
|
FEEDBACK_DIALOG_STATUS_POOR=\u0E44\u0E21\u0E48\u0E14\u0E35
|
|
70
70
|
FEEDBACK_DIALOG_STATUS_VERY_POOR=\u0E41\u0E22\u0E48
|
|
71
71
|
FEEDBACK_DIALOG_TITLE_SUCCESS=\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13\!
|
|
72
|
-
FEEDBACK_DIALOG_TEXT_SUCCESS=\
|
|
72
|
+
FEEDBACK_DIALOG_TEXT_SUCCESS=\u0E02\u0E49\u0E2D\u0E40\u0E2A\u0E19\u0E2D\u0E41\u0E19\u0E30\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27
|
|
73
73
|
FEEDBACK_DIALOG_TITLE_ERROR=\u0E02\u0E2D\u0E2D\u0E20\u0E31\u0E22\!
|
|
74
|
-
FEEDBACK_DIALOG_TEXT_ERROR=\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\u0E02\u0E13\u0E30\u0E2A\u0E48\u0E07\
|
|
74
|
+
FEEDBACK_DIALOG_TEXT_ERROR=\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\u0E02\u0E13\u0E30\u0E2A\u0E48\u0E07\u0E02\u0E49\u0E2D\u0E40\u0E2A\u0E19\u0E2D\u0E41\u0E19\u0E30\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\:\n
|
|
75
75
|
|
|
76
76
|
SURVEY_POPOVER_TITLE=\u0E1A\u0E2D\u0E01\u0E43\u0E2B\u0E49\u0E40\u0E23\u0E32\u0E17\u0E23\u0E32\u0E1A\u0E27\u0E48\u0E32\u0E04\u0E38\u0E13\u0E04\u0E34\u0E14\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E44\u0E23
|
|
77
77
|
SURVEY_POPOVER_LONG_SURVEY_TITLE=\u0E41\u0E1A\u0E1A\u0E2A\u0E33\u0E23\u0E27\u0E08\u0E1B\u0E23\u0E30\u0E2A\u0E1A\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49
|
|
@@ -82,7 +82,7 @@ SURVEY_POPOVER_LONG_SURVEY_BTN=\u0E17\u0E33\u0E41\u0E1A\u0E1A\u0E2A\u0E33\u0E23\
|
|
|
82
82
|
SURVEY_POPOVER_LONG_SURVEY_BTN_TOOLTIP=\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E20\u0E32\u0E22\u0E19\u0E2D\u0E01\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E41\u0E1A\u0E1A\u0E2A\u0E33\u0E23\u0E27\u0E08\u0E1B\u0E23\u0E30\u0E2A\u0E1A\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E43\u0E0A\u0E49\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49 Qualtrics
|
|
83
83
|
SURVEY_POPOVER_DEFAULT_SURVEY_TITLE=\u0E41\u0E0A\u0E23\u0E4C\u0E02\u0E49\u0E2D\u0E40\u0E2A\u0E19\u0E2D\u0E41\u0E19\u0E30\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13
|
|
84
84
|
SURVEY_POPOVER_DEFAULT_SURVEY_DESC=\u0E04\u0E27\u0E32\u0E21\u0E40\u0E2B\u0E47\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E33\u0E04\u0E31\u0E0D \u0E41\u0E0A\u0E23\u0E4C\u0E04\u0E27\u0E32\u0E21\u0E04\u0E34\u0E14\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E01\u0E31\u0E1A\u0E40\u0E23\u0E32\u0E44\u0E14\u0E49\u0E15\u0E25\u0E2D\u0E14\u0E40\u0E27\u0E25\u0E32\!
|
|
85
|
-
SURVEY_POPOVER_DEFAULT_SURVEY_BTN=\
|
|
85
|
+
SURVEY_POPOVER_DEFAULT_SURVEY_BTN=\u0E43\u0E2B\u0E49\u0E02\u0E49\u0E2D\u0E40\u0E2A\u0E19\u0E2D\u0E41\u0E19\u0E30
|
|
86
86
|
SURVEY_POPOVER_CLOSE_BTN=\u0E1B\u0E34\u0E14
|
|
87
87
|
|
|
88
88
|
WELCOME_BLOCK_1_TEXT_1=\u0E04\u0E49\u0E19\u0E2B\u0E32\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E43\u0E2B\u0E21\u0E48\u0E23\u0E30\u0E14\u0E31\u0E1A\u0E2D\u0E07\u0E04\u0E4C\u0E01\u0E23
|
|
@@ -222,6 +222,12 @@ CODE_BACK_BTN_TOOLTIP=\u0E01\u0E25\u0E31\u0E1A\u0E44\u0E1B\u0E17\u0E35\u0E48\u0E
|
|
|
222
222
|
CODE_API_REFERENCE=\u0E01\u0E32\u0E23\u0E2D\u0E49\u0E32\u0E07\u0E2D\u0E34\u0E07 API
|
|
223
223
|
CODE_DOWNLOAD_BTN=\u0E14\u0E32\u0E27\u0E19\u0E4C\u0E42\u0E2B\u0E25\u0E14
|
|
224
224
|
|
|
225
|
+
CACHE_CLEANUP_DIALOG_TITLE=\u0E23\u0E35\u0E42\u0E2B\u0E25\u0E14\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E41\u0E25\u0E49\u0E27
|
|
226
|
+
CACHE_CLEANUP_DIALOG_WARNING_MESSAGE=\u0E21\u0E35\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E43\u0E19\u0E01\u0E32\u0E23\u0E42\u0E2B\u0E25\u0E14\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07 \u0E41\u0E04\u0E0A\u0E16\u0E39\u0E01\u0E25\u0E49\u0E32\u0E07\u0E41\u0E25\u0E49\u0E27\u0E41\u0E25\u0E30\u0E23\u0E35\u0E42\u0E2B\u0E25\u0E14\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E44\u0E14\u0E49\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08
|
|
227
|
+
CACHE_CLEANUP_DIALOG_ERROR_MESSAGE=\u0E21\u0E35\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E43\u0E19\u0E01\u0E32\u0E23\u0E42\u0E2B\u0E25\u0E14\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07 \u0E41\u0E04\u0E0A\u0E16\u0E39\u0E01\u0E25\u0E49\u0E32\u0E07\u0E41\u0E25\u0E49\u0E27\u0E41\u0E15\u0E48\u0E15\u0E49\u0E2D\u0E07\u0E23\u0E35\u0E42\u0E2B\u0E25\u0E14 DemoKit
|
|
228
|
+
CACHE_CLEANUP_DIALOG_DESCRIPTION=\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E01\u0E32\u0E23\u0E1B\u0E23\u0E31\u0E1A\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E43\u0E14\u0E46 \u0E17\u0E35\u0E48\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E40\u0E01\u0E47\u0E1A\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E17\u0E33\u0E01\u0E31\u0E1A\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E35\u0E49\u0E2A\u0E39\u0E0D\u0E2B\u0E32\u0E22\u0E44\u0E1B \u0E01\u0E23\u0E38\u0E13\u0E32\u0E17\u0E33\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E2B\u0E32\u0E01\u0E08\u0E33\u0E40\u0E1B\u0E47\u0E19
|
|
229
|
+
CACHE_CLEANUP_DIALOG_OK_BTN=\u0E15\u0E01\u0E25\u0E07
|
|
230
|
+
|
|
225
231
|
CHANGE_VERSION_DIALOG_TITLE=\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07\u0E40\u0E27\u0E2D\u0E23\u0E4C\u0E0A\u0E31\u0E19
|
|
226
232
|
CHANGE_VERSION_DIALOG_CLOSE_BTN=\u0E1B\u0E34\u0E14
|
|
227
233
|
CHANGE_VERSION_DIALOG_APPLY_BTN=\u0E19\u0E33\u0E44\u0E1B\u0E43\u0E0A\u0E49
|
|
@@ -222,6 +222,12 @@ CODE_BACK_BTN_TOOLTIP=\u00D6rne\u011Fe geri d\u00F6n
|
|
|
222
222
|
CODE_API_REFERENCE=API referans\u0131
|
|
223
223
|
CODE_DOWNLOAD_BTN=\u0130ndir
|
|
224
224
|
|
|
225
|
+
CACHE_CLEANUP_DIALOG_TITLE=\u00D6rnek yeniden y\u00FCklendi
|
|
226
|
+
CACHE_CLEANUP_DIALOG_WARNING_MESSAGE=\u00D6rnek y\u00FCklenirken sorun olu\u015Ftu. \u00D6nbellek temizlendi ve \u00F6rnek ba\u015Far\u0131yla yeniden y\u00FCklendi.
|
|
227
|
+
CACHE_CLEANUP_DIALOG_ERROR_MESSAGE=\u00D6rnek y\u00FCklenirken sorun olu\u015Ftu. \u00D6nbellek temizlendi ancak DemoKit'in yeniden y\u00FCklenmesi gerekiyor.
|
|
228
|
+
CACHE_CLEANUP_DIALOG_DESCRIPTION=Bu \u00F6rnekte yapt\u0131\u011F\u0131n\u0131z kaydedilmeyen de\u011Fi\u015Fiklikler veya d\u00FCzenlemeler kayboldu. Gerekirse de\u011Fi\u015Fikliklerinizi tekrar yap\u0131n.
|
|
229
|
+
CACHE_CLEANUP_DIALOG_OK_BTN=Tamam
|
|
230
|
+
|
|
225
231
|
CHANGE_VERSION_DIALOG_TITLE=De\u011Fi\u015Fiklik versiyonu
|
|
226
232
|
CHANGE_VERSION_DIALOG_CLOSE_BTN=Kapat
|
|
227
233
|
CHANGE_VERSION_DIALOG_APPLY_BTN=Uygula
|
|
@@ -222,6 +222,12 @@ CODE_BACK_BTN_TOOLTIP=\u041D\u0430\u0437\u0430\u0434 \u0434\u043E \u0437\u0440\u
|
|
|
222
222
|
CODE_API_REFERENCE=\u041F\u043E\u0441\u0438\u043B\u0430\u043D\u043D\u044F API
|
|
223
223
|
CODE_DOWNLOAD_BTN=\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438
|
|
224
224
|
|
|
225
|
+
CACHE_CLEANUP_DIALOG_TITLE=\u0417\u0440\u0430\u0437\u043E\u043A \u043F\u0435\u0440\u0435\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043E
|
|
226
|
+
CACHE_CLEANUP_DIALOG_WARNING_MESSAGE=\u0412\u0438\u043D\u0438\u043A\u043B\u0430 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0430 \u0456\u0437 \u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F\u043C \u0437\u0440\u0430\u0437\u043A\u0430. \u041A\u0435\u0448 \u0431\u0443\u043B\u043E \u043E\u0447\u0438\u0449\u0435\u043D\u043E, \u0456 \u0437\u0440\u0430\u0437\u043E\u043A \u0443\u0441\u043F\u0456\u0448\u043D\u043E \u043F\u0435\u0440\u0435\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043E.
|
|
227
|
+
CACHE_CLEANUP_DIALOG_ERROR_MESSAGE=\u0412\u0438\u043D\u0438\u043A\u043B\u0430 \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u0430 \u0456\u0437 \u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F\u043C \u0437\u0440\u0430\u0437\u043A\u0430. \u041A\u0435\u0448 \u0431\u0443\u043B\u043E \u043E\u0447\u0438\u0449\u0435\u043D\u043E, \u0456 DemoKit \u043F\u043E\u0442\u0440\u0456\u0431\u043D\u043E \u043F\u0435\u0440\u0435\u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438.
|
|
228
|
+
CACHE_CLEANUP_DIALOG_DESCRIPTION=\u0411\u0443\u0434\u044C-\u044F\u043A\u0456 \u043D\u0435\u0437\u0431\u0435\u0440\u0435\u0436\u0435\u043D\u0456 \u0437\u043C\u0456\u043D\u0438 \u0430\u0431\u043E \u043C\u043E\u0434\u0438\u0444\u0456\u043A\u0430\u0446\u0456\u0457, \u044F\u043A\u0456 \u0432\u0438 \u0432\u043D\u0435\u0441\u043B\u0438 \u0434\u043E \u0446\u044C\u043E\u0433\u043E \u0437\u0440\u0430\u0437\u043A\u0430, \u0431\u0443\u0434\u0443\u0442\u044C \u0432\u0442\u0440\u0430\u0447\u0435\u043D\u0456. \u0412\u043D\u0435\u0441\u0456\u0442\u044C \u0437\u043C\u0456\u043D\u0438 \u0449\u0435 \u0440\u0430\u0437, \u044F\u043A\u0449\u043E \u0446\u0435 \u043D\u0435\u043E\u0431\u0445\u0456\u0434\u043D\u043E.
|
|
229
|
+
CACHE_CLEANUP_DIALOG_OK_BTN=OK
|
|
230
|
+
|
|
225
231
|
CHANGE_VERSION_DIALOG_TITLE=\u0412\u0435\u0440\u0441\u0456\u044F \u0437\u043C\u0456\u043D\u0438
|
|
226
232
|
CHANGE_VERSION_DIALOG_CLOSE_BTN=\u0417\u0430\u043A\u0440\u0438\u0442\u0438
|
|
227
233
|
CHANGE_VERSION_DIALOG_APPLY_BTN=\u0417\u0430\u0441\u0442\u043E\u0441\u0443\u0432\u0430\u0442\u0438
|
|
@@ -222,6 +222,12 @@ CODE_BACK_BTN_TOOLTIP=Quay la\u0323i m\u00E2\u0303u
|
|
|
222
222
|
CODE_API_REFERENCE=Tham chi\u00EA\u0301u API
|
|
223
223
|
CODE_DOWNLOAD_BTN=Ta\u0309i xu\u00F4\u0301ng
|
|
224
224
|
|
|
225
|
+
CACHE_CLEANUP_DIALOG_TITLE=M\u1EABu \u0111\u01B0\u1EE3c t\u1EA3i l\u1EA1i
|
|
226
|
+
CACHE_CLEANUP_DIALOG_WARNING_MESSAGE=\u0110\u00E3 c\u00F3 s\u1EF1 c\u1ED1 khi t\u1EA3i m\u1EABu. B\u1ED9 nh\u1EDB \u0111\u1EC7m \u0111\u00E3 \u0111\u01B0\u1EE3c x\u00F3a v\u00E0 m\u1EABu \u0111\u01B0\u1EE3c t\u1EA3i l\u1EA1i th\u00E0nh c\u00F4ng.
|
|
227
|
+
CACHE_CLEANUP_DIALOG_ERROR_MESSAGE=\u0110\u00E3 c\u00F3 s\u1EF1 c\u1ED1 khi t\u1EA3i m\u1EABu. B\u1ED9 nh\u1EDB \u0111\u1EC7m \u0111\u00E3 \u0111\u01B0\u1EE3c x\u00F3a nh\u01B0ng DemoKit c\u1EA7n \u0111\u01B0\u1EE3c t\u1EA3i l\u1EA1i.
|
|
228
|
+
CACHE_CLEANUP_DIALOG_DESCRIPTION=B\u1EA5t k\u1EF3 thay \u0111\u1ED5i ho\u1EB7c s\u1EEDa \u0111\u1ED5i ch\u01B0a l\u01B0u n\u00E0o m\u00E0 \u0111\u00E3 b\u1EA1n th\u1EF1c hi\u1EC7n \u0111\u1ED1i v\u1EDBi m\u1EABu n\u00E0y \u0111\u1EC1u b\u1ECB m\u1EA5t. Vui l\u00F2ng th\u1EF1c hi\u1EC7n l\u1EA1i c\u00E1c thay \u0111\u1ED5i c\u1EE7a b\u1EA1n n\u1EBFu c\u1EA7n.
|
|
229
|
+
CACHE_CLEANUP_DIALOG_OK_BTN=OK
|
|
230
|
+
|
|
225
231
|
CHANGE_VERSION_DIALOG_TITLE=Thay \u0111\u00F4\u0309i phi\u00EAn ba\u0309n
|
|
226
232
|
CHANGE_VERSION_DIALOG_CLOSE_BTN=\u0110o\u0301ng
|
|
227
233
|
CHANGE_VERSION_DIALOG_APPLY_BTN=A\u0301p du\u0323ng
|
|
@@ -222,6 +222,12 @@ CODE_BACK_BTN_TOOLTIP=\u8FD4\u56DE\u5230\u6837\u4F8B
|
|
|
222
222
|
CODE_API_REFERENCE=API \u53C2\u8003
|
|
223
223
|
CODE_DOWNLOAD_BTN=\u4E0B\u8F7D
|
|
224
224
|
|
|
225
|
+
CACHE_CLEANUP_DIALOG_TITLE=\u5DF2\u91CD\u65B0\u52A0\u8F7D\u6837\u4F8B
|
|
226
|
+
CACHE_CLEANUP_DIALOG_WARNING_MESSAGE=\u52A0\u8F7D\u6837\u4F8B\u65F6\u51FA\u73B0\u95EE\u9898\u3002\u5DF2\u6E05\u9664\u7F13\u5B58\u5E76\u6210\u529F\u91CD\u65B0\u52A0\u8F7D\u6837\u4F8B\u3002
|
|
227
|
+
CACHE_CLEANUP_DIALOG_ERROR_MESSAGE=\u52A0\u8F7D\u6837\u4F8B\u65F6\u51FA\u73B0\u95EE\u9898\u3002\u5DF2\u6E05\u9664\u7F13\u5B58\uFF0C\u4F46\u9700\u8981\u91CD\u65B0\u52A0\u8F7D\u6F14\u793A\u5DE5\u5177\u5305\u3002
|
|
228
|
+
CACHE_CLEANUP_DIALOG_DESCRIPTION=\u5BF9\u6B64\u6837\u4F8B\u6240\u505A\u7684\u4EFB\u4F55\u672A\u4FDD\u5B58\u7684\u66F4\u6539\u6216\u4FEE\u6539\u5747\u5DF2\u4E22\u5931\u3002\u5982\u679C\u9700\u8981\uFF0C\u8BF7\u518D\u6B21\u8FDB\u884C\u66F4\u6539\u3002
|
|
229
|
+
CACHE_CLEANUP_DIALOG_OK_BTN=\u786E\u5B9A
|
|
230
|
+
|
|
225
231
|
CHANGE_VERSION_DIALOG_TITLE=\u66F4\u6539\u7248\u672C
|
|
226
232
|
CHANGE_VERSION_DIALOG_CLOSE_BTN=\u5173\u95ED
|
|
227
233
|
CHANGE_VERSION_DIALOG_APPLY_BTN=\u5E94\u7528
|
|
@@ -222,6 +222,12 @@ CODE_BACK_BTN_TOOLTIP=\u56DE\u5230\u7BC4\u4F8B
|
|
|
222
222
|
CODE_API_REFERENCE=API \u53C3\u8003
|
|
223
223
|
CODE_DOWNLOAD_BTN=\u4E0B\u8F09
|
|
224
224
|
|
|
225
|
+
CACHE_CLEANUP_DIALOG_TITLE=\u5DF2\u91CD\u65B0\u8F09\u5165\u7BC4\u4F8B
|
|
226
|
+
CACHE_CLEANUP_DIALOG_WARNING_MESSAGE=\u8F09\u5165\u7BC4\u4F8B\u6642\u767C\u751F\u554F\u984C\uFF1B\u5DF2\u6E05\u9664\u5FEB\u53D6\u4E26\u6210\u529F\u91CD\u65B0\u8F09\u5165\u7BC4\u4F8B\u3002
|
|
227
|
+
CACHE_CLEANUP_DIALOG_ERROR_MESSAGE=\u8F09\u5165\u7BC4\u4F8B\u6642\u767C\u751F\u554F\u984C\uFF1B\u5DF2\u6E05\u9664\u5FEB\u53D6\u4F46\u9700\u8981\u91CD\u65B0\u8F09\u5165 DemoKit\u3002
|
|
228
|
+
CACHE_CLEANUP_DIALOG_DESCRIPTION=\u60A8\u5C0D\u6B64\u7BC4\u4F8B\u9032\u884C\u7684\u4EFB\u4F55\u672A\u5132\u5B58\u66F4\u6539\u6216\u4FEE\u6539\u5167\u5BB9\u5C07\u6703\u907A\u5931\uFF0C\u8ACB\u8996\u9700\u8981\u518D\u6B21\u9032\u884C\u66F4\u6539\u3002
|
|
229
|
+
CACHE_CLEANUP_DIALOG_OK_BTN=\u78BA\u5B9A
|
|
230
|
+
|
|
225
231
|
CHANGE_VERSION_DIALOG_TITLE=\u66F4\u6539\u7248\u672C
|
|
226
232
|
CHANGE_VERSION_DIALOG_CLOSE_BTN=\u95DC\u9589
|
|
227
233
|
CHANGE_VERSION_DIALOG_APPLY_BTN=\u5957\u7528
|
|
@@ -115,8 +115,10 @@ sap.ui.define([
|
|
|
115
115
|
iCounter = 0;
|
|
116
116
|
aNodes = [];
|
|
117
117
|
while (aOriginalArr[i] && aOriginalArr[i].groupTitle && aOriginalArr[i].groupTitle === sCurrGroupTitle) {
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
if (!aOriginalArr[i]?.version?.includes("legacy-free")) {
|
|
119
|
+
aNodes.push(aOriginalArr[i]);
|
|
120
|
+
iCounter++;
|
|
121
|
+
}
|
|
120
122
|
i++;
|
|
121
123
|
}
|
|
122
124
|
i--;
|
|
@@ -9,8 +9,10 @@ sap.ui.define(
|
|
|
9
9
|
"sap/ui/documentation/sdk/controller/Sample.controller",
|
|
10
10
|
"../model/ExploreSettingsModel",
|
|
11
11
|
"sap/ui/core/Component",
|
|
12
|
+
"sap/ui/core/Fragment",
|
|
12
13
|
"sap/ui/core/HTML",
|
|
13
14
|
"sap/ui/Device",
|
|
15
|
+
"sap/base/Log",
|
|
14
16
|
"sap/base/util/restricted/_debounce",
|
|
15
17
|
"sap/ui/model/odata/v4/lib/_MetadataRequestor",
|
|
16
18
|
"sap/ui/documentation/sdk/controller/util/ControlsInfo",
|
|
@@ -20,8 +22,10 @@ sap.ui.define(
|
|
|
20
22
|
SampleController,
|
|
21
23
|
ExploreSettingsModel,
|
|
22
24
|
Component,
|
|
25
|
+
Fragment,
|
|
23
26
|
HTML,
|
|
24
27
|
Device,
|
|
28
|
+
Log,
|
|
25
29
|
_debounce,
|
|
26
30
|
_MetadataRequestor,
|
|
27
31
|
ControlsInfo,
|
|
@@ -173,6 +177,10 @@ sap.ui.define(
|
|
|
173
177
|
this._sFileName = formatter.routeParamsToFilePath(oArguments);
|
|
174
178
|
this.byId("splitView").setBusy(true);
|
|
175
179
|
|
|
180
|
+
this._loadCodeAndSample();
|
|
181
|
+
},
|
|
182
|
+
|
|
183
|
+
_loadCodeAndSample: function (bRetrying) {
|
|
176
184
|
ControlsInfo.loadData()
|
|
177
185
|
.then(function(oData) {
|
|
178
186
|
return Promise.all([
|
|
@@ -181,8 +189,48 @@ sap.ui.define(
|
|
|
181
189
|
]);
|
|
182
190
|
}.bind(this))
|
|
183
191
|
.then(function(aResults) {
|
|
192
|
+
if (bRetrying) {
|
|
193
|
+
this._showCacheCleanupDialog();
|
|
194
|
+
}
|
|
184
195
|
this._showCode(aResults[0]);
|
|
196
|
+
}.bind(this))
|
|
197
|
+
.catch(function(error) {
|
|
198
|
+
if (!('serviceWorker' in navigator) || !navigator.serviceWorker.controller || bRetrying) {
|
|
199
|
+
this._showCacheCleanupDialog(true);
|
|
200
|
+
// If service worker is not supported or already retried, log error // prevent infinite retry loop
|
|
201
|
+
Log.error("Error loading code or sample: " + error.message);
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
var serviceWorkerResponsePromise = new Promise(function(resolve) {
|
|
206
|
+
// Set up a one-time listener for the service worker response
|
|
207
|
+
var messageHandler = function(event) {
|
|
208
|
+
if (event.data === "CACHE_CLEANED") {
|
|
209
|
+
navigator.serviceWorker.removeEventListener('message', messageHandler);
|
|
210
|
+
resolve();
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
navigator.serviceWorker.addEventListener('message', messageHandler);
|
|
215
|
+
|
|
216
|
+
// Send message to clean the cache
|
|
217
|
+
this._sendMessageToServiceWorker({
|
|
218
|
+
type: "CLEAN_CACHE"
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
// Set a timeout in case the service worker doesn't respond
|
|
222
|
+
setTimeout(function() {
|
|
223
|
+
navigator.serviceWorker.removeEventListener('message', messageHandler);
|
|
224
|
+
resolve();
|
|
225
|
+
}, 5000);
|
|
185
226
|
}.bind(this));
|
|
227
|
+
|
|
228
|
+
// Wait for the service worker to respond before retrying
|
|
229
|
+
return serviceWorkerResponsePromise.then(function() {
|
|
230
|
+
this._setChangedSamplesLocalStorage([]);
|
|
231
|
+
this._loadCodeAndSample(true);
|
|
232
|
+
}.bind(this));
|
|
233
|
+
}.bind(this));
|
|
186
234
|
},
|
|
187
235
|
|
|
188
236
|
_loadCode: function (oData) {
|
|
@@ -250,6 +298,24 @@ sap.ui.define(
|
|
|
250
298
|
}.bind(this));
|
|
251
299
|
},
|
|
252
300
|
|
|
301
|
+
_showCacheCleanupDialog: function (bForceReload) {
|
|
302
|
+
ExploreSettingsModel.setProperty("/showWarning", bForceReload ? false : true);
|
|
303
|
+
|
|
304
|
+
if (!this._oWarningDialog) {
|
|
305
|
+
Fragment.load({
|
|
306
|
+
name: "sap.ui.documentation.sdk.view.warningSampleDialog",
|
|
307
|
+
controller: this
|
|
308
|
+
}).then(function (oDialog) {
|
|
309
|
+
this.getView().addDependent(oDialog);
|
|
310
|
+
oDialog.setModel(ExploreSettingsModel, "settings");
|
|
311
|
+
this._oWarningDialog = oDialog;
|
|
312
|
+
this._oWarningDialog.open();
|
|
313
|
+
}.bind(this));
|
|
314
|
+
} else {
|
|
315
|
+
this._oWarningDialog.open();
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
|
|
253
319
|
_createHTMLControl: function () {
|
|
254
320
|
return new HTML({
|
|
255
321
|
id : "sampleFrameEdit",
|
|
@@ -261,6 +327,12 @@ sap.ui.define(
|
|
|
261
327
|
return this.byId("samplePageEdit");
|
|
262
328
|
},
|
|
263
329
|
|
|
330
|
+
_sendMessageToServiceWorker: function (message) {
|
|
331
|
+
if ('serviceWorker' in navigator && navigator.serviceWorker.controller) {
|
|
332
|
+
navigator.serviceWorker.controller.postMessage(message);
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
|
|
264
336
|
onMessage: function(eMessage) {
|
|
265
337
|
if (eMessage.origin !== this.getOwnerComponent()._sSampleIframeOrigin) {
|
|
266
338
|
return;
|
|
@@ -278,6 +350,16 @@ sap.ui.define(
|
|
|
278
350
|
}
|
|
279
351
|
},
|
|
280
352
|
|
|
353
|
+
handleDialogClose: function () {
|
|
354
|
+
var bShowWarning = ExploreSettingsModel.getProperty("/showWarning");
|
|
355
|
+
|
|
356
|
+
if (this._oWarningDialog && bShowWarning) {
|
|
357
|
+
this._oWarningDialog.close();
|
|
358
|
+
} else {
|
|
359
|
+
window.location.reload(); // reload the page to try again
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
|
|
281
363
|
onNavBack: function () {
|
|
282
364
|
this.oRouter.navTo("sample", {
|
|
283
365
|
entityId: this.entityId,
|
|
@@ -82,6 +82,7 @@ sap.ui.define([
|
|
|
82
82
|
showNavButton : true,
|
|
83
83
|
showNewTab: false,
|
|
84
84
|
rtaLoaded: false,
|
|
85
|
+
rtaStarted: false,
|
|
85
86
|
density: this.getOwnerComponent().getContentDensityClass(),
|
|
86
87
|
rtl: Localization.getRTL(),
|
|
87
88
|
theme: Theming.getTheme(),
|
|
@@ -699,6 +700,10 @@ sap.ui.define([
|
|
|
699
700
|
this.fnMessageLoad(eMessage);
|
|
700
701
|
} else if (eMessage.data.type === "RTA") {
|
|
701
702
|
this._loadRTA.call(this);
|
|
703
|
+
} else if (eMessage.data.type === "RTA_START") {
|
|
704
|
+
this._onRTAStarted.call(this);
|
|
705
|
+
} else if (eMessage.data.type === "RTA_STOP") {
|
|
706
|
+
this._onRTAStopped.call(this);
|
|
702
707
|
}
|
|
703
708
|
},
|
|
704
709
|
|
|
@@ -733,29 +738,6 @@ sap.ui.define([
|
|
|
733
738
|
this.fReject(eMessage.data.data.msg);
|
|
734
739
|
},
|
|
735
740
|
|
|
736
|
-
_createComponent : function () {
|
|
737
|
-
|
|
738
|
-
// create component only once
|
|
739
|
-
var sCompId = 'sampleComp-' + this._sId;
|
|
740
|
-
var sCompName = this._sId;
|
|
741
|
-
var oMainComponent = this.getOwnerComponent();
|
|
742
|
-
|
|
743
|
-
var oComp = Component.getComponentById(sCompId);
|
|
744
|
-
|
|
745
|
-
if (oComp) {
|
|
746
|
-
oComp.destroy();
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
return oMainComponent.runAsOwner(function(){
|
|
750
|
-
return Component.create({
|
|
751
|
-
id: sCompId,
|
|
752
|
-
name: sCompName
|
|
753
|
-
}).then(function (oComponent) {
|
|
754
|
-
return new ComponentContainer({component : oComponent});
|
|
755
|
-
});
|
|
756
|
-
});
|
|
757
|
-
},
|
|
758
|
-
|
|
759
741
|
setDefaultSampleTheme: function() {
|
|
760
742
|
var sSampleVersion = ResourcesUtil.getResourcesVersion();
|
|
761
743
|
this._sDefaultSampleTheme = sSampleVersion && parseInt(sSampleVersion.slice(3,5)) < CONSTANTS.LEGACY_THEME_VERSION_THRESHOLD ?
|
|
@@ -845,6 +827,14 @@ sap.ui.define([
|
|
|
845
827
|
}, this);
|
|
846
828
|
},
|
|
847
829
|
|
|
830
|
+
_onRTAStarted: function () {
|
|
831
|
+
this.oModel.setProperty("/rtaStarted", true);
|
|
832
|
+
},
|
|
833
|
+
|
|
834
|
+
_onRTAStopped: function () {
|
|
835
|
+
this.oModel.setProperty("/rtaStarted", false);
|
|
836
|
+
},
|
|
837
|
+
|
|
848
838
|
onToggleAdaptationMode : function (oEvt) {
|
|
849
839
|
var oContentWindow = this._getIframeContentWindow();
|
|
850
840
|
if (!oContentWindow) {
|
|
@@ -36,7 +36,7 @@ sap.ui.define([
|
|
|
36
36
|
return BaseController.extend("sap.ui.documentation.sdk.controller.SubApiDetail", {
|
|
37
37
|
|
|
38
38
|
NOT_AVAILABLE: 'N/A',
|
|
39
|
-
PUBLIC_GITHUB_FRAMEWORK_DOMAIN: 'https://github.com/
|
|
39
|
+
PUBLIC_GITHUB_FRAMEWORK_DOMAIN: 'https://github.com/UI5/openui5/blob/master/src/',
|
|
40
40
|
SECTION_MAP: {
|
|
41
41
|
"properties": "controlProperties",
|
|
42
42
|
"fields": "properties",
|
|
@@ -534,15 +534,15 @@ sap.ui.define([
|
|
|
534
534
|
const versionData = this.getModel("versionData").getData();
|
|
535
535
|
const isModuleAvailable = oControlData.module !== this.NOT_AVAILABLE;
|
|
536
536
|
const library = versionData?.libraries?.find((lib) => lib.name === oEntityData.lib);
|
|
537
|
-
const
|
|
537
|
+
const sVersion = library?.version?.includes("-SNAPSHOT") ? "HEAD" : library?.version;
|
|
538
538
|
const bIsOpenUI5Lib = library.npmPackageName?.startsWith("@openui5");
|
|
539
539
|
|
|
540
540
|
|
|
541
|
-
if (!isModuleAvailable || !
|
|
541
|
+
if (!isModuleAvailable || !sVersion || !bIsOpenUI5Lib) {
|
|
542
542
|
return _getObjectAttributeBlock("Module", oControlData.module);
|
|
543
543
|
}
|
|
544
544
|
|
|
545
|
-
const sGitHubUrl = `https://github.com/
|
|
545
|
+
const sGitHubUrl = `https://github.com/UI5/openui5/blob/${sVersion}/src/${oEntityData.lib}/src/${oControlData.module}.js`;
|
|
546
546
|
|
|
547
547
|
return _getHBox({
|
|
548
548
|
items: [
|
|
@@ -52,12 +52,6 @@ sap.ui.define([
|
|
|
52
52
|
) {
|
|
53
53
|
"use strict";
|
|
54
54
|
|
|
55
|
-
var GIT_HUB_DOCS_URL = "https://sap.github.io/openui5-docs/#/",
|
|
56
|
-
REGEX = {
|
|
57
|
-
SPECIAL_CHARS: /[\\\/:*\?"<>|]/g,
|
|
58
|
-
SPACES: /\s+/g
|
|
59
|
-
};
|
|
60
|
-
|
|
61
55
|
return BaseController.extend("sap.ui.documentation.sdk.controller.TopicDetail", {
|
|
62
56
|
|
|
63
57
|
|
|
@@ -577,34 +571,7 @@ sap.ui.define([
|
|
|
577
571
|
|
|
578
572
|
onEditGitHubPress: function(oEvent) {
|
|
579
573
|
openWindow(this.jsonDefModel.getProperty("/mdEditLink"));
|
|
580
|
-
},
|
|
581
|
-
|
|
582
|
-
/**
|
|
583
|
-
* Transforms a URL from the SAPUI5 documentation into the corresponding URL in the GitHub repo,
|
|
584
|
-
* following the rules:
|
|
585
|
-
* The GitHub URL starts with <code>GIT_HUB_DOCS_URL</code>
|
|
586
|
-
* and the filename is calculated from the topic title in the following way:
|
|
587
|
-
* 1) Special symbols are removed \ / : * ? “ < > |
|
|
588
|
-
* 2) All empty spaces are replaced with “_” and one additional “_” is added at the end
|
|
589
|
-
* 3) The first seven symbols from the ID used in the Demo Kit URLs are added at the end
|
|
590
|
-
* 4) The file type is added at the end “.md”
|
|
591
|
-
*
|
|
592
|
-
* @param {string} sUrl the url of the file in the internal repo
|
|
593
|
-
* @param {string} sTitle the title of the file
|
|
594
|
-
* @returns {string} the url of the file in the GitHub repo
|
|
595
|
-
* @private
|
|
596
|
-
* @deprecated since v1.107.0
|
|
597
|
-
*/
|
|
598
|
-
_formatToGitHubUrl: function(sUrl, sTitle) {
|
|
599
|
-
var sGitHubFileName = sTitle.trim()
|
|
600
|
-
.replace(REGEX.SPECIAL_CHARS, "") // remove special chars
|
|
601
|
-
.replace(REGEX.SPACES, "_"); // replace remaining spaces with delimiter char
|
|
602
|
-
sGitHubFileName += "_"; // end the text with a single delimiter char
|
|
603
|
-
sGitHubFileName += sUrl.split("/").pop().substring(0, 7); // concat the first 7 symbols of the original filename
|
|
604
|
-
sGitHubFileName += ".md";
|
|
605
|
-
return GIT_HUB_DOCS_URL + sGitHubFileName;
|
|
606
574
|
}
|
|
607
|
-
|
|
608
575
|
});
|
|
609
576
|
|
|
610
577
|
}
|
|
@@ -11,7 +11,7 @@ sap.ui.define([
|
|
|
11
11
|
], function(BaseController, Device, jQuery) {
|
|
12
12
|
"use strict";
|
|
13
13
|
|
|
14
|
-
var GIT_HUB_URL = "https://github.com/
|
|
14
|
+
var GIT_HUB_URL = "https://github.com/UI5/docs";
|
|
15
15
|
|
|
16
16
|
return BaseController.extend("sap.ui.documentation.sdk.controller.TopicDetailInitial", {
|
|
17
17
|
|
|
@@ -62,9 +62,28 @@ sap.ui.define([
|
|
|
62
62
|
|
|
63
63
|
oSearchDataModel.setProperty("/topicQuery", sQuery);
|
|
64
64
|
|
|
65
|
+
if (!sQuery && this._lastQuery) {
|
|
66
|
+
this._clearTopicDetailHighlighting();
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
this._lastQuery = sQuery;
|
|
70
|
+
|
|
65
71
|
this.onTreeFilter({ getParameter: function() { return sQuery; } });
|
|
66
72
|
},
|
|
67
73
|
|
|
74
|
+
_clearTopicDetailHighlighting: function() {
|
|
75
|
+
try {
|
|
76
|
+
var oSplitApp = this.getView().getParent().getParent();
|
|
77
|
+
var oDetailPage = oSplitApp.getCurrentDetailPage();
|
|
78
|
+
var oController = oDetailPage && oDetailPage.getController();
|
|
79
|
+
if (oController && oController.highlighter) {
|
|
80
|
+
oController.highlighter.highlight("");
|
|
81
|
+
}
|
|
82
|
+
} catch (e) {
|
|
83
|
+
// Fail silently
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
|
|
68
87
|
_onTopicMatched: function (event) {
|
|
69
88
|
|
|
70
89
|
try {
|
|
@@ -143,7 +143,7 @@ function() {
|
|
|
143
143
|
this._highlightSubTree(oNode);
|
|
144
144
|
|
|
145
145
|
} else if (oNode.nodeType === document.TEXT_NODE) {
|
|
146
|
-
sText = oNode.data
|
|
146
|
+
sText = oNode.data;
|
|
147
147
|
oMatches = Object.create(null); // Object containing matched queries and their indices.
|
|
148
148
|
aBlockedIndices = []; // Array which serves for preservation of the already matched indices.
|
|
149
149
|
|
|
@@ -233,7 +233,10 @@ function() {
|
|
|
233
233
|
fnSort = function(a, b) {return parseInt(a) > parseInt(b);},
|
|
234
234
|
aIndices = Object.keys(oTokensToHighlight).sort(fnSort),
|
|
235
235
|
iIndex,
|
|
236
|
-
iStartIndex = 0
|
|
236
|
+
iStartIndex = 0,
|
|
237
|
+
fnShouldHighlightToken = function(sToken, oTokensToHighlight) {
|
|
238
|
+
return Object.values(oTokensToHighlight).indexOf(sToken) > -1;
|
|
239
|
+
};
|
|
237
240
|
|
|
238
241
|
// split the <code>sText</code> into tokens,
|
|
239
242
|
// including both the tokens to highlight
|
|
@@ -261,10 +264,13 @@ function() {
|
|
|
261
264
|
// wrap each token in a span
|
|
262
265
|
// and append to the root span
|
|
263
266
|
for (iIndex in aAllTokens) {
|
|
264
|
-
var
|
|
265
|
-
|
|
266
|
-
|
|
267
|
+
var sNextToken = aAllTokens[iIndex], oNextNode;
|
|
268
|
+
if (fnShouldHighlightToken(sNextToken, oTokensToHighlight)) {
|
|
269
|
+
oNextNode = document.createElement("span");
|
|
270
|
+
oNextNode.innerText = sNextToken;
|
|
267
271
|
oNextNode.classList.add("defaultHighlightedText");
|
|
272
|
+
} else {
|
|
273
|
+
oNextNode = document.createTextNode(sNextToken);
|
|
268
274
|
}
|
|
269
275
|
|
|
270
276
|
oRootNode.appendChild(oNextNode);
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
<base href="../../../../../">
|
|
8
8
|
<script type="text/javascript" src="resources/sap/ui/documentation/sdk/index.js"></script>
|
|
9
9
|
<title>SAPUI5 Navigation</title>
|
|
10
|
+
<link rel="stylesheet" type="text/css" href="resources/sap/ui/documentation/sdk/css/samplesViewer.css">
|
|
10
11
|
</head>
|
|
11
|
-
<body class="sapUiBody sapUiSizeCompact"
|
|
12
|
+
<body class="sapUiBody sapUiSizeCompact">
|
|
13
|
+
<div id="content"></div>
|
|
12
14
|
</body>
|
|
13
15
|
</html>
|