@sapui5/sap.fe.templates 1.136.19 → 1.136.20

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.
@@ -2,7 +2,7 @@ import type { SemanticObjectMappingType } from "@sap-ux/vocabularies-types/vocab
2
2
  import Log from "sap/base/Log";
3
3
  import merge from "sap/base/util/merge";
4
4
  import type { EnhanceWithUI5 } from "sap/fe/base/ClassSupport";
5
- import { defineUI5Class, extensible, finalExtension, publicExtension, usingExtension } from "sap/fe/base/ClassSupport";
5
+ import { defineUI5Class,extensible,finalExtension,publicExtension,usingExtension } from "sap/fe/base/ClassSupport";
6
6
  import ActionRuntime from "sap/fe/core/ActionRuntime";
7
7
  import type { FEView } from "sap/fe/core/BaseController";
8
8
  import CommonUtils from "sap/fe/core/CommonUtils";
@@ -23,7 +23,7 @@ import UiModelConstants from "sap/fe/core/controllerextensions/editFlow/editFlow
23
23
  import NavigationReason from "sap/fe/core/controllerextensions/routing/NavigationReason";
24
24
  import type CommandExecution from "sap/fe/core/controls/CommandExecution";
25
25
  import { RecommendationDialogDecision } from "sap/fe/core/controls/Recommendations/ConfirmRecommendationDialog";
26
- import type { HiddenDraft, MicroChartManifestConfiguration } from "sap/fe/core/converters/ManifestSettings";
26
+ import type { HiddenDraft,MicroChartManifestConfiguration } from "sap/fe/core/converters/ManifestSettings";
27
27
  import type { InternalModelContext } from "sap/fe/core/helpers/ModelHelper";
28
28
  import ModelHelper from "sap/fe/core/helpers/ModelHelper";
29
29
  import { getResourceModel } from "sap/fe/core/helpers/ResourceModelHelper";
@@ -174,6 +174,8 @@ class ObjectPageController extends PageController {
174
174
 
175
175
  private mergePatchDraft = false;
176
176
 
177
+ private fclCloseHandlerSet = false;
178
+
177
179
  private autoQueueLock: ReturnType<ODataModel["lock"]> | undefined;
178
180
 
179
181
  private messageBinding?: Binding;
@@ -777,12 +779,16 @@ class ObjectPageController extends PageController {
777
779
  * @param cards Array of cards to be updated
778
780
  */
779
781
  async _updateAvailableCards(cards: WrappedCard[]): Promise<void> {
780
- await this.collaborationManager.collectAvailableCards(cards);
781
- if (cards.length > 0) {
782
- const cardObject = this.collaborationManager.updateCards(cards);
783
- const parentAppId = this.getAppComponent().getId();
784
- this.getAppComponent().getCollaborationManagerService().addCardsToCollaborationManager(cardObject, parentAppId);
785
- this.getAppComponent().getCollaborationManagerService().shareAvailableCards();
782
+ const collaborationManagerService = this.getAppComponent().getCollaborationManagerService();
783
+ // Only collect cards when consumers are connected to the cards channel
784
+ if (collaborationManagerService.hasCollaborationManagerConnected()) {
785
+ await this.collaborationManager.collectAvailableCards(cards);
786
+ if (cards.length > 0) {
787
+ const cardObject = this.collaborationManager.updateCards(cards);
788
+ const parentAppId = this.getAppComponent().getId();
789
+ collaborationManagerService.addCardsToCollaborationManager(cardObject, parentAppId);
790
+ collaborationManagerService.shareAvailableCards();
791
+ }
786
792
  }
787
793
  }
788
794
 
@@ -913,6 +919,20 @@ class ObjectPageController extends PageController {
913
919
 
914
920
  this.mergePatchDraft = true;
915
921
  }
922
+
923
+ // The FCL Close button loses its DOM node between mousedown and mouseup when the Name
924
+ // (EditableHeaderTitle) field has focus: blur triggers side effects → OData refresh →
925
+ // OPDT re-renders navActionsToolbar, detaching the node before click fires.
926
+ // Calling closeColumn() on mousedown captures the intent before the re-render.
927
+ if (!this.fclCloseHandlerSet && !Device.support.touch) {
928
+ const fclCloseButton = oView.byId("fe::FCLStandardAction::Close");
929
+ if (fclCloseButton?.isA<Button>("sap.m.Button")) {
930
+ fclCloseButton.attachBrowserEvent("mousedown", (): void => {
931
+ this._routing.closeColumn();
932
+ });
933
+ }
934
+ this.fclCloseHandlerSet = true;
935
+ }
916
936
  }
917
937
 
918
938
  /**
@@ -4,7 +4,7 @@
4
4
  "id": "sap.fe.templates.ObjectPage",
5
5
  "type": "component",
6
6
  "applicationVersion": {
7
- "version": "1.136.19"
7
+ "version": "1.136.20"
8
8
  },
9
9
  "title": "Object Page",
10
10
  "tags": {
@@ -40,7 +40,7 @@
40
40
  >
41
41
  <template:if test="{sap.fe.i18n>T_COMMON_OBJECT_PAGE_OBJECT_INFO}">
42
42
  <f:title>
43
- <core:Title level="H4" text="{sap.fe.i18n>T_COMMON_OBJECT_PAGE_OBJECT_INFO}" />
43
+ <core:Title level="H3" text="{sap.fe.i18n>T_COMMON_OBJECT_PAGE_OBJECT_INFO}" />
44
44
  </f:title>
45
45
  </template:if>
46
46
  <f:dependents>
@@ -149,7 +149,7 @@
149
149
  >
150
150
  <template:if test="{subSection>title}">
151
151
  <f:title>
152
- <core:Title level="H4" text="{subSection>title}" />
152
+ <core:Title level="H3" text="{subSection>title}" />
153
153
  </f:title>
154
154
  </template:if>
155
155
  <f:formElements>
@@ -24,7 +24,7 @@
24
24
  dt:designtime="not-adaptable-visibility"
25
25
  id="{headerSection>id}"
26
26
  title="{headerSection>title}"
27
- titleLevel="H3"
27
+ titleLevel="H2"
28
28
  visible="{headerSection>visible}"
29
29
  titleUppercase="false"
30
30
  onSectionLoaded="{section>onSectionLoaded}"
@@ -32,7 +32,7 @@
32
32
  retrieveStateHandler="{headerSection>retrieveState}"
33
33
  >
34
34
  <macroControl:subSections>
35
- <macroSectionContent:SubSection id="fe::EditableHeaderSubSection" title="{headerSection>title}" titleLevel="H4">
35
+ <macroSectionContent:SubSection id="fe::EditableHeaderSubSection" title="{headerSection>title}" titleLevel="H3">
36
36
  <core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.EditableHeaderFacet" type="XML" />
37
37
  </macroSectionContent:SubSection>
38
38
  </macroControl:subSections>
@@ -44,7 +44,7 @@
44
44
  <macroControl:Section
45
45
  id="{section>id}"
46
46
  title="{section>title}"
47
- titleLevel="H3"
47
+ titleLevel="H2"
48
48
  showTitle="{section>showTitle}"
49
49
  titleUppercase="false"
50
50
  visible="{section>visible}"
@@ -58,7 +58,7 @@
58
58
  <macroSectionContent:SubSection
59
59
  id="{subSection>id}"
60
60
  title="{subSection>title}"
61
- titleLevel="H4"
61
+ titleLevel="H3"
62
62
  showTitle="{subSection>showSubSectionTitle}"
63
63
  visible="{subSection>visible}"
64
64
  class="{subSection>class}"
@@ -36,7 +36,7 @@ sap.ui.define(["sap/f/library", "sap/fe/core/library", "sap/fe/macros/library",
36
36
  controls: [],
37
37
  elements: [],
38
38
  // eslint-disable-next-line no-template-curly-in-string
39
- version: "1.136.19",
39
+ version: "1.136.20",
40
40
  noLibraryCSS: true
41
41
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
42
42
  });