@openui5/sap.ui.documentation 1.150.0 → 1.152.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 (71) hide show
  1. package/THIRDPARTY.txt +6 -6
  2. package/package.json +7 -7
  3. package/src/sap/ui/documentation/.library +1 -1
  4. package/src/sap/ui/documentation/library.js +2 -2
  5. package/src/sap/ui/documentation/messagebundle.properties +6 -0
  6. package/src/sap/ui/documentation/messagebundle_ar.properties +3 -0
  7. package/src/sap/ui/documentation/messagebundle_bg.properties +4 -1
  8. package/src/sap/ui/documentation/messagebundle_ca.properties +3 -0
  9. package/src/sap/ui/documentation/messagebundle_cnr.properties +3 -0
  10. package/src/sap/ui/documentation/messagebundle_cs.properties +3 -0
  11. package/src/sap/ui/documentation/messagebundle_cy.properties +3 -0
  12. package/src/sap/ui/documentation/messagebundle_da.properties +3 -0
  13. package/src/sap/ui/documentation/messagebundle_de.properties +3 -0
  14. package/src/sap/ui/documentation/messagebundle_el.properties +3 -0
  15. package/src/sap/ui/documentation/messagebundle_en.properties +3 -0
  16. package/src/sap/ui/documentation/messagebundle_en_GB.properties +3 -0
  17. package/src/sap/ui/documentation/messagebundle_en_US_sappsd.properties +3 -0
  18. package/src/sap/ui/documentation/messagebundle_en_US_saprigi.properties +3 -0
  19. package/src/sap/ui/documentation/messagebundle_en_US_saptrc.properties +3 -0
  20. package/src/sap/ui/documentation/messagebundle_es.properties +3 -0
  21. package/src/sap/ui/documentation/messagebundle_es_MX.properties +3 -0
  22. package/src/sap/ui/documentation/messagebundle_et.properties +3 -0
  23. package/src/sap/ui/documentation/messagebundle_fi.properties +3 -0
  24. package/src/sap/ui/documentation/messagebundle_fr.properties +3 -0
  25. package/src/sap/ui/documentation/messagebundle_fr_CA.properties +3 -0
  26. package/src/sap/ui/documentation/messagebundle_hi.properties +3 -0
  27. package/src/sap/ui/documentation/messagebundle_hr.properties +3 -0
  28. package/src/sap/ui/documentation/messagebundle_hu.properties +3 -0
  29. package/src/sap/ui/documentation/messagebundle_id.properties +3 -0
  30. package/src/sap/ui/documentation/messagebundle_it.properties +3 -0
  31. package/src/sap/ui/documentation/messagebundle_iw.properties +3 -0
  32. package/src/sap/ui/documentation/messagebundle_ja.properties +3 -0
  33. package/src/sap/ui/documentation/messagebundle_kk.properties +3 -0
  34. package/src/sap/ui/documentation/messagebundle_ko.properties +3 -0
  35. package/src/sap/ui/documentation/messagebundle_lt.properties +3 -0
  36. package/src/sap/ui/documentation/messagebundle_lv.properties +3 -0
  37. package/src/sap/ui/documentation/messagebundle_mk.properties +3 -0
  38. package/src/sap/ui/documentation/messagebundle_ms.properties +3 -0
  39. package/src/sap/ui/documentation/messagebundle_nl.properties +3 -0
  40. package/src/sap/ui/documentation/messagebundle_no.properties +3 -0
  41. package/src/sap/ui/documentation/messagebundle_pl.properties +3 -0
  42. package/src/sap/ui/documentation/messagebundle_pt.properties +3 -0
  43. package/src/sap/ui/documentation/messagebundle_pt_PT.properties +3 -0
  44. package/src/sap/ui/documentation/messagebundle_ro.properties +3 -0
  45. package/src/sap/ui/documentation/messagebundle_ru.properties +3 -0
  46. package/src/sap/ui/documentation/messagebundle_sh.properties +3 -0
  47. package/src/sap/ui/documentation/messagebundle_sk.properties +3 -0
  48. package/src/sap/ui/documentation/messagebundle_sl.properties +3 -0
  49. package/src/sap/ui/documentation/messagebundle_sr.properties +3 -0
  50. package/src/sap/ui/documentation/messagebundle_sv.properties +3 -0
  51. package/src/sap/ui/documentation/messagebundle_th.properties +3 -0
  52. package/src/sap/ui/documentation/messagebundle_tr.properties +3 -0
  53. package/src/sap/ui/documentation/messagebundle_uk.properties +4 -1
  54. package/src/sap/ui/documentation/messagebundle_vi.properties +3 -0
  55. package/src/sap/ui/documentation/messagebundle_zh_CN.properties +3 -0
  56. package/src/sap/ui/documentation/messagebundle_zh_TW.properties +3 -0
  57. package/src/sap/ui/documentation/sdk/CookieStatement.html +35 -25
  58. package/src/sap/ui/documentation/sdk/controller/App.controller.js +332 -342
  59. package/src/sap/ui/documentation/sdk/controller/Code.controller.js +8 -4
  60. package/src/sap/ui/documentation/sdk/controller/Sample.controller.js +9 -3
  61. package/src/sap/ui/documentation/sdk/controller/SubApiDetail.controller.js +31 -5
  62. package/src/sap/ui/documentation/sdk/controller/Welcome.controller.js +1 -1
  63. package/src/sap/ui/documentation/sdk/controller/util/SearchRenderer.js +167 -0
  64. package/src/sap/ui/documentation/sdk/controller/util/UsageTracker.js +27 -14
  65. package/src/sap/ui/documentation/sdk/cookieSettingsDialog/i18n/i18n_en_US_saptrc.properties +3 -0
  66. package/src/sap/ui/documentation/sdk/thirdparty/highlight.js/highlight.js +3 -3
  67. package/src/sap/ui/documentation/sdk/view/App.view.xml +202 -192
  68. package/src/sap/ui/documentation/sdk/view/SubApiDetail.view.xml +63 -14
  69. package/src/sap/ui/documentation/themes/base/Documentation.less +26 -141
  70. package/src/sap/ui/documentation/themes/sap_belize_base/Documentation.less +0 -140
  71. package/src/sap/ui/documentation/sdk/view/GlobalSearchPicker.fragment.xml +0 -73
@@ -931,149 +931,13 @@ html.sapUiMedia-Std-Tablet {
931
931
  border: none;
932
932
  }
933
933
 
934
- .sapTntToolPageMain,
935
- .sapTntToolPageAside {
936
- margin: 0;
937
- }
938
-
939
934
  .sapUiDemokitMainHeader {
940
- &.sapTntToolHeader.sapMTB {
941
- padding: 0 0.75rem;
942
- }
943
-
944
- .sapUiDemokitMainHeaderGrid {
945
- align-items: center;
946
- }
947
-
948
- .sapUiDemoKitHeaderOTB {
949
- justify-content: end;
950
- }
951
-
952
- &.sapTntToolHeader .sapMBarChild.sapMMenuBtn .sapMBtn:focus .sapMBtnDefault.sapMFocusable::before {
953
- outline: @sapContent_FocusStyle @sapContent_FocusWidth @sapContent_FocusColor;
954
- border: none !important;
955
- }
956
-
957
- // Apply more polished box-shadow effect
958
- .sapUiDocumentationSearch {
959
- .sapMSF .sapMSFF:hover,
960
- .sapMSFVal.sapMFocus .sapMSFF {
961
- box-shadow:
962
- 0 0 0.1875rem 0 rgba(85, 107, 130, 0.1),
963
- 0 0.1875rem 0.3125rem 0 rgba(85, 107, 130, 0.3);
964
- }
965
- }
966
-
967
- // Apply some spacing between the logo and the search field
968
- .sapUiDemokitMainHeaderLogo {
969
- display: block;
970
- margin-left: 1rem;
971
-
972
- @media screen and (max-width: 37.4375em) { // 599px
973
- margin-right: 1rem;
974
- }
975
- }
976
-
977
- // Align the styles of the MenuButton with the styles of other buttons
978
- .sapMIBar .sapMMenuBtn {
979
- .sapMBtn:not(.sapMSBArrow) .sapMBtnInner {
980
- align-items: center;
981
- top: -0.1875rem;
982
- height: 2rem;
983
- padding-right: 0.125rem;
984
-
985
- &:after {
986
- content: none;
987
- }
988
- }
989
-
990
- .sapMBtn:not(.sapMBtnDisabled):hover .sapMBtnInner:not(.sapMBtnActive) {
991
- box-shadow: none;
992
- }
993
-
994
- .sapMBtn .sapMBtnInner.sapMBtnDefault .sapUiIcon {
995
- color: @sapContent_IconColor;
996
- }
997
-
998
- &.sapMMenuBtnRegular .sapMBtnInner::after {
999
- color: @sapContent_IconColor;
1000
- height: 2rem;
1001
- line-height: 2rem;
1002
- }
1003
-
1004
- // Button states
1005
- &:focus .sapMBtnDefault.sapMFocusable {
1006
- &::before {
1007
- outline: @sapContent_FocusStyle @sapContent_FocusWidth @sapContent_FocusColor;
1008
- border: none !important;
1009
- }
1010
- }
1011
-
1012
- &:hover:not(.sapMBtnDisabled) .sapMBtnDefault {
1013
- background: @sapButton_Lite_Hover_Background;
1014
- }
1015
-
1016
- &:active:not(.sapMBtnDisabled) .sapMBtnDefault {
1017
- background: @sapActiveColor;
1018
- }
1019
- }
1020
-
1021
- // Adjust the style of the version switch button to match the design specifiaction
1022
- .sapUiDemoKitHeaderActionsVersionSwitch .sapMBtnInner {
1023
- &:after {
1024
- content: "\e287";
1025
- font-family: "SAP-icons";
1026
- position: relative;
1027
- top: 0.5rem;
1028
- margin-left: 0.5rem;
1029
- }
1030
- }
935
+ --sapPageHeader_BorderColor: transparent;
1031
936
  }
1032
- }
1033
-
1034
- // Align the icons of the menu buttons in overflow popover
1035
- .sapMOTAPopover.sapMPopover .sapMPopoverCont .sapMPopoverScroll {
1036
- .sapUiDemoKitHeaderActionsVersionSwitch {
1037
- .sapMBtnInner.sapMBtnTransparent.sapMBtnHoverable {
1038
- background-color: @sapUiButtonBackground;
1039
- border: 0.0625rem solid @sapUiButtonBorderColor;
1040
- color: @sapUiButtonTextColor;
1041
-
1042
- bdi,
1043
- .sapMBtnIcon {
1044
- color: @sapUiButtonTextColor;
1045
- }
1046
-
1047
- &:hover:not(.sapMBtnActive) {
1048
- background-color: @sapUiButtonHoverBackground;
1049
- color: sapUiButtonHoverTextColor;
1050
- box-shadow: @sapContent_Interaction_Shadow;
1051
-
1052
- .sapMBtnIcon {
1053
- color: sapUiButtonHoverTextColor;
1054
- }
1055
- }
1056
937
 
1057
- &.sapMBtnActive {
1058
- bdi,
1059
- .sapMBtnIcon {
1060
- color: @sapUiButtonActiveTextColor;
1061
- }
1062
- }
1063
- }
1064
- }
1065
-
1066
- .sapUiDemoKitHeaderActionsMenuButton.sapMMenuBtn {
1067
- .sapMBtnIcon {
1068
- margin-left: -0.0625rem;
1069
- }
1070
- }
1071
-
1072
- .sapMBtn.sapMBarChild[class*="sapUiDemoKitHeaderActions"] {
1073
- .sapMBadgeTopRight.sapMBadge .sapMBadgeIndicator {
1074
- position: absolute;
1075
- top: -0.3125rem;
1076
- }
938
+ .sapTntToolPageMain,
939
+ .sapTntToolPageAside {
940
+ margin: 0;
1077
941
  }
1078
942
  }
1079
943
 
@@ -1261,4 +1125,25 @@ html.sap-tablet {
1261
1125
  border-radius: 0;
1262
1126
  }
1263
1127
  }
1264
- }
1128
+ }
1129
+
1130
+ // Global search suggestions: keep each result on a single line.
1131
+ // The renderer folds the result summary into the item text ("title: summary"),
1132
+ // and the web component's `title` part is exposed for styling, so it is
1133
+ // constrained to one line and truncated with an ellipsis (matching the SDK design).
1134
+ .sapUiDemokitSearchInput [ui5-search-item]::part(title) {
1135
+ display: block;
1136
+ white-space: nowrap;
1137
+ overflow: hidden;
1138
+ text-overflow: ellipsis;
1139
+ }
1140
+
1141
+ .sapUiDemokitSearchMessageArea {
1142
+ height: 2.5rem;
1143
+ margin-inline-start: 0.5rem;
1144
+ padding-block-start: 0.375rem;
1145
+ }
1146
+
1147
+ .sapUiDemokitSearchCategoryGroup::part(header) {
1148
+ margin-block-start: 0.5rem;
1149
+ }
@@ -856,146 +856,6 @@ html.sapUiMedia-Std-Tablet {
856
856
  .sapTntToolPageAside {
857
857
  margin: 0;
858
858
  }
859
-
860
- .sapUiDemokitMainHeader {
861
- &.sapTntToolHeader.sapMTB {
862
- padding: 0 0.75rem;
863
- }
864
-
865
- .sapUiDemokitMainHeaderGrid {
866
- align-items: center;
867
- }
868
-
869
- .sapUiDemoKitHeaderOTB {
870
- justify-content: end;
871
- }
872
-
873
- &.sapTntToolHeader .sapMBarChild.sapMMenuBtn .sapMBtn:focus .sapMBtnDefault.sapMFocusable::before {
874
- outline: @sapContent_FocusStyle @sapContent_FocusWidth @sapContent_FocusColor;
875
- border: none !important;
876
- }
877
-
878
- // Apply more polished box-shadow effect
879
- .sapUiDocumentationSearch {
880
- .sapMSF .sapMSFF:hover,
881
- .sapMSFVal.sapMFocus .sapMSFF {
882
- box-shadow:
883
- 0 0 0.1875rem 0 rgba(85, 107, 130, 0.1),
884
- 0 0.1875rem 0.3125rem 0 rgba(85, 107, 130, 0.3);
885
- }
886
- }
887
-
888
- // Apply some spacing between the logo and the search field
889
- .sapUiDemokitMainHeaderLogo {
890
- display: block;
891
- margin-left: 1rem;
892
-
893
- @media screen and (max-width: 37.4375em) { // 599px
894
- margin-right: 1rem;
895
- }
896
- }
897
-
898
- // Align the styles of the MenuButton with the styles of other buttons
899
- .sapMIBar .sapMMenuBtn {
900
- .sapMBtn:not(.sapMSBArrow) .sapMBtnInner {
901
- align-items: center;
902
- top: -0.1875rem;
903
- height: 2rem;
904
- padding-right: 0.125rem;
905
-
906
- &:after {
907
- content: none;
908
- }
909
- }
910
-
911
- .sapMBtn:not(.sapMBtnDisabled):hover .sapMBtnInner:not(.sapMBtnActive) {
912
- box-shadow: none;
913
- }
914
-
915
- .sapMBtn .sapMBtnInner.sapMBtnDefault .sapUiIcon {
916
- color: @sapContent_IconColor;
917
- }
918
-
919
- &.sapMMenuBtnRegular .sapMBtnInner::after {
920
- color: @sapContent_IconColor;
921
- height: 2rem;
922
- line-height: 2rem;
923
- }
924
-
925
- // Button states
926
- &:focus .sapMBtnDefault.sapMFocusable {
927
- &::before {
928
- outline: @sapContent_FocusStyle @sapContent_FocusWidth @sapContent_FocusColor;
929
- border: none !important;
930
- }
931
- }
932
-
933
- &:hover:not(.sapMBtnDisabled) .sapMBtnDefault {
934
- background: @sapButton_Lite_Hover_Background;
935
- }
936
-
937
- &:active:not(.sapMBtnDisabled) .sapMBtnDefault {
938
- background: @sapActiveColor;
939
- }
940
- }
941
-
942
- // Adjust the style of the version switch button to match the design specifiaction
943
- .sapUiDemoKitHeaderActionsVersionSwitch .sapMBtnInner {
944
- &:after {
945
- content: "\e287";
946
- font-family: "SAP-icons";
947
- position: relative;
948
- top: 0.5rem;
949
- margin-left: 0.5rem;
950
- }
951
- }
952
- }
953
- }
954
-
955
- // Align the icons of the menu buttons in overflow popover
956
- .sapMOTAPopover.sapMPopover .sapMPopoverCont .sapMPopoverScroll {
957
- .sapUiDemoKitHeaderActionsVersionSwitch {
958
- .sapMBtnInner.sapMBtnTransparent.sapMBtnHoverable {
959
- background-color: @sapUiButtonBackground;
960
- border: 0.0625rem solid @sapUiButtonBorderColor;
961
- color: @sapUiButtonTextColor;
962
-
963
- bdi,
964
- .sapMBtnIcon {
965
- color: @sapUiButtonTextColor;
966
- }
967
-
968
- &:hover:not(.sapMBtnActive) {
969
- background-color: @sapUiButtonHoverBackground;
970
- color: sapUiButtonHoverTextColor;
971
- box-shadow: @sapContent_Interaction_Shadow;
972
-
973
- .sapMBtnIcon {
974
- color: sapUiButtonHoverTextColor;
975
- }
976
- }
977
-
978
- &.sapMBtnActive {
979
- bdi,
980
- .sapMBtnIcon {
981
- color: @sapUiButtonActiveTextColor;
982
- }
983
- }
984
- }
985
- }
986
-
987
- .sapUiDemoKitHeaderActionsMenuButton.sapMMenuBtn {
988
- .sapMBtnIcon {
989
- margin-left: -0.0625rem;
990
- }
991
- }
992
-
993
- .sapMBtn.sapMBarChild[class*="sapUiDemoKitHeaderActions"] {
994
- .sapMBadgeTopRight.sapMBadge .sapMBadgeIndicator {
995
- position: absolute;
996
- top: -0.3125rem;
997
- }
998
- }
999
859
  }
1000
860
 
1001
861
  .sapUiSizeCompact .sapUiDemokit .sapUiDemokitMainHeader {
@@ -1,73 +0,0 @@
1
- <core:FragmentDefinition
2
- xmlns="sap.m"
3
- xmlns:core="sap.ui.core"
4
- xmlns:html="http://www.w3.org/1999/xhtml">
5
- <VBox>
6
- <List id="shortList"
7
- items="{
8
- path: 'searchData>/matches/filteredData',
9
- sorter: [{
10
- path: '',
11
- descending: true,
12
- group: '.getSearchPickerTitle'
13
- }]
14
- }">
15
- <StandardListItem
16
- title="{
17
- parts: [
18
- 'searchData>title',
19
- 'searchData>summary'
20
-
21
- ],
22
- formatter: '.formatSuggestionTitle'
23
- }"
24
- press=".onSearchPickerItemPress"
25
- type="Active">
26
- </StandardListItem>
27
- </List>
28
- <Link width="100%"
29
- class="sapMSelectListItem sapMSelectListItemBase sapMSelectListItemBaseHoverable"
30
- press=".onSearchResultsSummaryPress"
31
- text="{i18n>SEARCH_SUGGESTIONS_ALL_SECTION_TITLE} ({searchData>/matches/AllLength})"
32
- visible="{= ${searchData>/matches/AllLength}>0 }"/>
33
- <List id="categoryList">
34
- <GroupHeaderListItem title="Results by Category"/>
35
- <StandardListItem
36
- title="{i18n>SEARCH_SUGGESTIONS_API_SECTION_TITLE}"
37
- counter="{searchData>/matches/APILength}"
38
- press=".onSearchResultsSummaryPress"
39
- type="Active">
40
- <customData>
41
- <core:CustomData key="category" value="apiref" />
42
- </customData>
43
- </StandardListItem>
44
- <StandardListItem
45
- title="{i18n>SEARCH_SUGGESTIONS_DOCUMENTATION_SECTION_TITLE}"
46
- counter="{searchData>/matches/DocLength}"
47
- press=".onSearchResultsSummaryPress"
48
- type="Active">
49
- <customData>
50
- <core:CustomData key="category" value="topics" />
51
- </customData>
52
- </StandardListItem>
53
- <StandardListItem
54
- title="{i18n>SEARCH_SUGGESTIONS_SAMPLES_SECTION_TITLE}"
55
- counter="{searchData>/matches/ExploredLength}"
56
- press=".onSearchResultsSummaryPress"
57
- type="Active">
58
- <customData>
59
- <core:CustomData key="category" value="entity" />
60
- </customData>
61
- </StandardListItem>
62
- <StandardListItem
63
- title="{i18n>SEARCH_SUGGESTIONS_EXTERNAL_SECTION_TITLE}"
64
- counter="{searchData>/matches/ExternalLength}"
65
- press=".onSearchResultsSummaryPress"
66
- type="Active">
67
- <customData>
68
- <core:CustomData key="category" value="external" />
69
- </customData>
70
- </StandardListItem>
71
- </List>
72
- </VBox>
73
- </core:FragmentDefinition>