@sapui5/sap.fe.templates 1.144.0 → 1.146.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 (137) hide show
  1. package/package.json +1 -1
  2. package/src/sap/fe/templates/.library +2 -2
  3. package/src/sap/fe/templates/AnalyticalListPage/Component.js +1 -1
  4. package/src/sap/fe/templates/AnalyticalListPage/chart/FEChartDelegate.js +1 -1
  5. package/src/sap/fe/templates/AnalyticalListPage/manifest.json +1 -1
  6. package/src/sap/fe/templates/ListComponent.js +1 -1
  7. package/src/sap/fe/templates/ListReport/Component.js +1 -1
  8. package/src/sap/fe/templates/ListReport/ExtendPageDefinition.js +1 -1
  9. package/src/sap/fe/templates/ListReport/ExtensionAPI.js +1 -1
  10. package/src/sap/fe/templates/ListReport/LRMessageStrip.js +1 -1
  11. package/src/sap/fe/templates/ListReport/ListReport.view.xml +8 -0
  12. package/src/sap/fe/templates/ListReport/ListReportController.controller.js +48 -41
  13. package/src/sap/fe/templates/ListReport/ListReportController.controller.ts +51 -39
  14. package/src/sap/fe/templates/ListReport/ListReportTemplating.js +1 -1
  15. package/src/sap/fe/templates/ListReport/controls/MultipleModeControl.js +23 -20
  16. package/src/sap/fe/templates/ListReport/controls/MultipleModeControl.ts +23 -20
  17. package/src/sap/fe/templates/ListReport/designtime/ListReport.designtime.helper.js +1 -1
  18. package/src/sap/fe/templates/ListReport/designtime/ListReport.designtime.js +1 -1
  19. package/src/sap/fe/templates/ListReport/manifest.json +1 -1
  20. package/src/sap/fe/templates/ListReport/overrides/IntentBasedNavigation.js +1 -1
  21. package/src/sap/fe/templates/ListReport/overrides/MessageHandler.js +1 -1
  22. package/src/sap/fe/templates/ListReport/overrides/Share.js +1 -1
  23. package/src/sap/fe/templates/ListReport/overrides/SideEffects.js +1 -1
  24. package/src/sap/fe/templates/ListReport/overrides/ViewState.js +3 -4
  25. package/src/sap/fe/templates/ListReport/overrides/ViewState.ts +1 -2
  26. package/src/sap/fe/templates/ListReport/view/fragments/CollectionVisualization.fragment.xml +32 -0
  27. package/src/sap/fe/templates/ListReport/view/fragments/MacroChart.fragment.xml +1 -0
  28. package/src/sap/fe/templates/ListReport/view/fragments/MultipleMode.block.js +1 -1
  29. package/src/sap/fe/templates/ListReport/view/fragments/Table.fragment.xml +3 -1
  30. package/src/sap/fe/templates/ObjectPage/Component.js +1 -1
  31. package/src/sap/fe/templates/ObjectPage/ExtendPageDefinition.js +1 -1
  32. package/src/sap/fe/templates/ObjectPage/ExtensionAPI.js +74 -3
  33. package/src/sap/fe/templates/ObjectPage/ExtensionAPI.ts +80 -0
  34. package/src/sap/fe/templates/ObjectPage/ObjectPage.view.xml +6 -1
  35. package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js +50 -41
  36. package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.ts +61 -50
  37. package/src/sap/fe/templates/ObjectPage/ObjectPageTemplating.js +3 -72
  38. package/src/sap/fe/templates/ObjectPage/ObjectPageTemplating.ts +0 -74
  39. package/src/sap/fe/templates/ObjectPage/card/AdaptiveCardContent.js +1 -1
  40. package/src/sap/fe/templates/ObjectPage/card/BaseCardContentProvider.js +1 -1
  41. package/src/sap/fe/templates/ObjectPage/card/Generator.js +1 -1
  42. package/src/sap/fe/templates/ObjectPage/card/actions/HeaderActions.js +7 -8
  43. package/src/sap/fe/templates/ObjectPage/card/actions/HeaderActions.ts +5 -6
  44. package/src/sap/fe/templates/ObjectPage/card/facets/HeaderContent.js +1 -1
  45. package/src/sap/fe/templates/ObjectPage/card/facets/HeaderTitle.js +1 -1
  46. package/src/sap/fe/templates/ObjectPage/components/CollaborationDiscardDialog.js +1 -1
  47. package/src/sap/fe/templates/ObjectPage/components/CollaborationDraft.js +1 -1
  48. package/src/sap/fe/templates/ObjectPage/components/DraftToggle.js +76 -9
  49. package/src/sap/fe/templates/ObjectPage/components/DraftToggle.tsx +83 -13
  50. package/src/sap/fe/templates/ObjectPage/controls/StashableHBox.js +1 -1
  51. package/src/sap/fe/templates/ObjectPage/controls/StashableVBox.js +1 -1
  52. package/src/sap/fe/templates/ObjectPage/controls/SubSectionBlock.js +1 -1
  53. package/src/sap/fe/templates/ObjectPage/designtime/FlexBox.designtime.js +1 -1
  54. package/src/sap/fe/templates/ObjectPage/designtime/ObjectPage.designtime.helper.js +23 -4
  55. package/src/sap/fe/templates/ObjectPage/designtime/ObjectPage.designtime.helper.ts +30 -1
  56. package/src/sap/fe/templates/ObjectPage/designtime/ObjectPage.designtime.js +6 -3
  57. package/src/sap/fe/templates/ObjectPage/designtime/ObjectPage.designtime.ts +7 -0
  58. package/src/sap/fe/templates/ObjectPage/designtime/StashableHBox.designtime.js +1 -1
  59. package/src/sap/fe/templates/ObjectPage/designtime/StashableVBox.designtime.js +1 -1
  60. package/src/sap/fe/templates/ObjectPage/flexibility/ScrollableHeaderContainer.flexibility.js +1 -1
  61. package/src/sap/fe/templates/ObjectPage/flexibility/StashControlAndDisconnect.js +1 -1
  62. package/src/sap/fe/templates/ObjectPage/flexibility/StashableHBox.flexibility.js +1 -1
  63. package/src/sap/fe/templates/ObjectPage/flexibility/StashableVBox.flexibility.js +1 -1
  64. package/src/sap/fe/templates/ObjectPage/flexibility/UnstashControlAndConnect.js +1 -1
  65. package/src/sap/fe/templates/ObjectPage/manifest.json +5 -5
  66. package/src/sap/fe/templates/ObjectPage/overrides/CollaborationManager.js +3 -2
  67. package/src/sap/fe/templates/ObjectPage/overrides/CollaborationManager.ts +1 -0
  68. package/src/sap/fe/templates/ObjectPage/overrides/IntentBasedNavigation.js +1 -1
  69. package/src/sap/fe/templates/ObjectPage/overrides/InternalRouting.js +1 -1
  70. package/src/sap/fe/templates/ObjectPage/overrides/MessageHandler.js +7 -3
  71. package/src/sap/fe/templates/ObjectPage/overrides/MessageHandler.ts +6 -1
  72. package/src/sap/fe/templates/ObjectPage/overrides/Paginator.js +1 -1
  73. package/src/sap/fe/templates/ObjectPage/overrides/Share.js +1 -1
  74. package/src/sap/fe/templates/ObjectPage/overrides/ViewState.js +1 -1
  75. package/src/sap/fe/templates/ObjectPage/view/fragments/ExpandedHeading.fragment.xml +45 -7
  76. package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderContent.fragment.xml +8 -13
  77. package/src/sap/fe/templates/ObjectPage/view/fragments/Heading.fragment.xml +36 -6
  78. package/src/sap/fe/templates/ObjectPage/view/fragments/ObjectPageHeaderAddress.fragment.xml +1 -1
  79. package/src/sap/fe/templates/ObjectPage/view/fragments/ObjectPageHeaderContact.fragment.xml +1 -1
  80. package/src/sap/fe/templates/ObjectPage/view/fragments/ObjectPageHeaderForm.fragment.xml +0 -1
  81. package/src/sap/fe/templates/ObjectPage/view/fragments/SectionContent.fragment.xml +82 -39
  82. package/src/sap/fe/templates/ObjectPage/view/fragments/SectionCustomSection.fragment.xml +6 -1
  83. package/src/sap/fe/templates/ObjectPage/view/fragments/Table.fragment.xml +3 -1
  84. package/src/sap/fe/templates/ObjectPage/view/fragments/TransportSelection.js +1 -1
  85. package/src/sap/fe/templates/TableScroller.js +1 -1
  86. package/src/sap/fe/templates/library.js +2 -2
  87. package/src/sap/fe/templates/messagebundle.properties +18 -6
  88. package/src/sap/fe/templates/messagebundle_ar.properties +14 -0
  89. package/src/sap/fe/templates/messagebundle_bg.properties +14 -0
  90. package/src/sap/fe/templates/messagebundle_ca.properties +14 -0
  91. package/src/sap/fe/templates/messagebundle_cnr.properties +15 -1
  92. package/src/sap/fe/templates/messagebundle_cs.properties +14 -0
  93. package/src/sap/fe/templates/messagebundle_cy.properties +14 -0
  94. package/src/sap/fe/templates/messagebundle_da.properties +14 -0
  95. package/src/sap/fe/templates/messagebundle_de.properties +14 -0
  96. package/src/sap/fe/templates/messagebundle_el.properties +14 -0
  97. package/src/sap/fe/templates/messagebundle_en.properties +14 -0
  98. package/src/sap/fe/templates/messagebundle_en_GB.properties +14 -0
  99. package/src/sap/fe/templates/messagebundle_en_US_saprigi.properties +11 -3
  100. package/src/sap/fe/templates/messagebundle_es.properties +16 -2
  101. package/src/sap/fe/templates/messagebundle_es_MX.properties +14 -0
  102. package/src/sap/fe/templates/messagebundle_et.properties +14 -0
  103. package/src/sap/fe/templates/messagebundle_fi.properties +14 -0
  104. package/src/sap/fe/templates/messagebundle_fr.properties +14 -0
  105. package/src/sap/fe/templates/messagebundle_fr_CA.properties +14 -0
  106. package/src/sap/fe/templates/messagebundle_hi.properties +14 -0
  107. package/src/sap/fe/templates/messagebundle_hr.properties +14 -0
  108. package/src/sap/fe/templates/messagebundle_hu.properties +14 -0
  109. package/src/sap/fe/templates/messagebundle_id.properties +14 -0
  110. package/src/sap/fe/templates/messagebundle_it.properties +14 -0
  111. package/src/sap/fe/templates/messagebundle_iw.properties +15 -1
  112. package/src/sap/fe/templates/messagebundle_ja.properties +15 -1
  113. package/src/sap/fe/templates/messagebundle_kk.properties +14 -0
  114. package/src/sap/fe/templates/messagebundle_ko.properties +14 -0
  115. package/src/sap/fe/templates/messagebundle_lt.properties +16 -2
  116. package/src/sap/fe/templates/messagebundle_lv.properties +14 -0
  117. package/src/sap/fe/templates/messagebundle_mk.properties +14 -0
  118. package/src/sap/fe/templates/messagebundle_ms.properties +14 -0
  119. package/src/sap/fe/templates/messagebundle_nl.properties +14 -0
  120. package/src/sap/fe/templates/messagebundle_no.properties +14 -0
  121. package/src/sap/fe/templates/messagebundle_pl.properties +14 -0
  122. package/src/sap/fe/templates/messagebundle_pt.properties +14 -0
  123. package/src/sap/fe/templates/messagebundle_pt_PT.properties +14 -0
  124. package/src/sap/fe/templates/messagebundle_ro.properties +14 -0
  125. package/src/sap/fe/templates/messagebundle_ru.properties +14 -0
  126. package/src/sap/fe/templates/messagebundle_sh.properties +15 -1
  127. package/src/sap/fe/templates/messagebundle_sk.properties +14 -0
  128. package/src/sap/fe/templates/messagebundle_sl.properties +17 -3
  129. package/src/sap/fe/templates/messagebundle_sr.properties +15 -1
  130. package/src/sap/fe/templates/messagebundle_sv.properties +14 -0
  131. package/src/sap/fe/templates/messagebundle_th.properties +14 -0
  132. package/src/sap/fe/templates/messagebundle_tr.properties +14 -0
  133. package/src/sap/fe/templates/messagebundle_uk.properties +14 -0
  134. package/src/sap/fe/templates/messagebundle_vi.properties +16 -2
  135. package/src/sap/fe/templates/messagebundle_zh_CN.properties +14 -0
  136. package/src/sap/fe/templates/messagebundle_zh_TW.properties +14 -0
  137. package/src/sap/fe/templates/types/sap.fe.templates-auto-ext.d.js +1 -1
@@ -12,6 +12,7 @@ import type { SideEffectsTargetType } from "sap/fe/core/services/SideEffectsServ
12
12
  import type Section from "sap/fe/macros/controls/Section";
13
13
  import type TableAPI from "sap/fe/macros/Table";
14
14
  import Link from "sap/m/Link";
15
+ import MessageBox from "sap/m/MessageBox";
15
16
  import MessageItem from "sap/m/MessageItem";
16
17
  import MessagePopover from "sap/m/MessagePopover";
17
18
  import MessageStrip from "sap/m/MessageStrip";
@@ -28,6 +29,8 @@ import type Context from "sap/ui/model/Context";
28
29
  import type ODataV4Context from "sap/ui/model/odata/v4/Context";
29
30
  import type ObjectPageDynamicHeaderTitle from "sap/uxap/ObjectPageDynamicHeaderTitle";
30
31
  import type ObjectPageLayout from "sap/uxap/ObjectPageLayout";
32
+ import type ObjectPageSection from "sap/uxap/ObjectPageSection";
33
+ import type ObjectPageSubSection from "sap/uxap/ObjectPageSubSection";
31
34
 
32
35
  /**
33
36
  * Extension API for object pages on SAP Fiori elements for OData V4.
@@ -464,6 +467,83 @@ class ObjectPageExtensionAPI extends ExtensionAPI {
464
467
  }
465
468
  }
466
469
  }
470
+
471
+ /**
472
+ * Displays an error message when navigation to a section fails.
473
+ */
474
+ private showNavigationError(): void {
475
+ const resourceModel = ResourceModelHelper.getResourceModel(this._view);
476
+ const sTitle = resourceModel.getText("C_ROUTING_NAVIGATION_DISABLED_TITLE");
477
+ Log.error(sTitle);
478
+ MessageBox.error(sTitle);
479
+ }
480
+
481
+ /**
482
+ * Navigate to a specific section or subsection within the current page.
483
+ * Works with Object Page layouts and other section-based layouts.
484
+ * @param sectionOrSubSectionId The ID of the target section or subsection (without a view prefix, for example, "fe::FacetSection::TravelData" or "fe::SubSection::Details")
485
+ * @public
486
+ */
487
+ navigateToSubSection(sectionOrSubSectionId: string): void {
488
+ try {
489
+ // Find the Object Page Layout control
490
+ const objectPageLayout = this._view.getContent()[0] as ObjectPageLayout | undefined;
491
+
492
+ if (!objectPageLayout) {
493
+ this.showNavigationError();
494
+ return;
495
+ }
496
+
497
+ if (!sectionOrSubSectionId) {
498
+ this.showNavigationError();
499
+ return;
500
+ }
501
+
502
+ const control = this._view.byId(sectionOrSubSectionId);
503
+
504
+ if (!control) {
505
+ this.showNavigationError();
506
+ return;
507
+ }
508
+
509
+ let targetSubSection: ObjectPageSubSection | undefined;
510
+
511
+ // Check if control is a SubSection or Section
512
+ if (control.isA<ObjectPageSubSection>("sap.uxap.ObjectPageSubSection")) {
513
+ targetSubSection = control;
514
+ } else if (control.isA<ObjectPageSection>("sap.uxap.ObjectPageSection")) {
515
+ // If it's a section, get the first subsection
516
+ const subSections = control.getSubSections();
517
+ targetSubSection = subSections.length > 0 ? subSections[0] : undefined;
518
+ }
519
+
520
+ // Validate subsection
521
+ if (!targetSubSection || !targetSubSection.getVisible()) {
522
+ this.showNavigationError();
523
+ return;
524
+ }
525
+
526
+ // Get the full subsection ID (including view prefix)
527
+ const subsectionFullId = targetSubSection.getId();
528
+
529
+ if (!subsectionFullId) {
530
+ Log.error("Subsection ID is undefined, cannot set selected section.");
531
+ return;
532
+ }
533
+
534
+ // Navigate using ObjectPageLayout API
535
+ objectPageLayout.setSelectedSection(subsectionFullId);
536
+
537
+ // Trigger iApp state change by firing navigate event
538
+ const parentSection = targetSubSection.getParent() as ObjectPageSection;
539
+ objectPageLayout.fireNavigate({
540
+ section: parentSection,
541
+ subSection: targetSubSection
542
+ });
543
+ } catch (error) {
544
+ Log.error("Error during navigation to subsection:", error as Error);
545
+ }
546
+ }
467
547
  }
468
548
 
469
549
  export default ObjectPageExtensionAPI;
@@ -51,7 +51,11 @@
51
51
  navigate=".handlers.onNavigateChange"
52
52
  >
53
53
  <uxap:landmarkInfo>
54
- <uxap:ObjectPageAccessibleLandmarkInfo footerLabel="{sap.fe.i18n>T_COMMON_OBJECT_PAGE_FOOTER}" />
54
+ <uxap:ObjectPageAccessibleLandmarkInfo
55
+ headerRole="{= ${internal>/hasUShell} ? 'None' : 'Banner'}"
56
+ headerLabel="{sap.fe.i18n>T_COMMON_OBJECT_PAGE_HEADER}"
57
+ footerLabel="{sap.fe.i18n>T_COMMON_OBJECT_PAGE_FOOTER}"
58
+ />
55
59
  </uxap:landmarkInfo>
56
60
  <uxap:dependents>
57
61
  <control:CommandExecution execute="_executeTabShortCut" command="NextTab" />
@@ -139,6 +143,7 @@
139
143
  <macro:Paginator
140
144
  id="fe::Paginator"
141
145
  ariaTitle="{= COMMONFORMATTERS.getBindingWithText(${headerInfo>Title/Value@@UI.getDataModelObjectPath}) }"
146
+ visible="{= !${viewData>/fclEnabled} || ${fclhelper>/showPaginatorButton} }"
142
147
  />
143
148
  </template:if>
144
149
  <!-- Flexible column layout menu-->