@sapui5/sap.suite.ui.commons 1.120.9 → 1.120.11

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 (48) hide show
  1. package/package.json +1 -1
  2. package/src/sap/suite/ui/commons/.library +1 -1
  3. package/src/sap/suite/ui/commons/AriaProperties.js +1 -1
  4. package/src/sap/suite/ui/commons/CalculationBuilder.js +1 -1
  5. package/src/sap/suite/ui/commons/CalculationBuilderExpression.js +1 -1
  6. package/src/sap/suite/ui/commons/CalculationBuilderFunction.js +1 -1
  7. package/src/sap/suite/ui/commons/CalculationBuilderGroup.js +1 -1
  8. package/src/sap/suite/ui/commons/CalculationBuilderItem.js +1 -1
  9. package/src/sap/suite/ui/commons/CalculationBuilderValidationResult.js +1 -1
  10. package/src/sap/suite/ui/commons/CalculationBuilderVariable.js +1 -1
  11. package/src/sap/suite/ui/commons/CloudFilePicker.js +1 -1
  12. package/src/sap/suite/ui/commons/MicroProcessFlow.js +1 -1
  13. package/src/sap/suite/ui/commons/MicroProcessFlowItem.js +1 -1
  14. package/src/sap/suite/ui/commons/TimelineNavigator.js +24 -40
  15. package/src/sap/suite/ui/commons/collaboration/TeamsHelperService.js +3 -1
  16. package/src/sap/suite/ui/commons/collaboration/flpplugins/msplugin/Component.js +15 -2
  17. package/src/sap/suite/ui/commons/flexibility/changeHandler/PropertyChangeMapper.js +1 -1
  18. package/src/sap/suite/ui/commons/imageeditor/CropCustomShapeHistoryItem.js +1 -1
  19. package/src/sap/suite/ui/commons/imageeditor/CropEllipseHistoryItem.js +1 -1
  20. package/src/sap/suite/ui/commons/imageeditor/CropRectangleHistoryItem.js +1 -1
  21. package/src/sap/suite/ui/commons/imageeditor/CustomSizeItem.js +1 -1
  22. package/src/sap/suite/ui/commons/imageeditor/FilterHistoryItem.js +1 -1
  23. package/src/sap/suite/ui/commons/imageeditor/FlipHistoryItem.js +1 -1
  24. package/src/sap/suite/ui/commons/imageeditor/HistoryItem.js +1 -1
  25. package/src/sap/suite/ui/commons/imageeditor/ImageEditor.js +1 -1
  26. package/src/sap/suite/ui/commons/imageeditor/ImageEditorContainer.js +1 -1
  27. package/src/sap/suite/ui/commons/imageeditor/ImageEditorResponsiveContainer.js +1 -1
  28. package/src/sap/suite/ui/commons/imageeditor/ResizeHistoryItem.js +1 -1
  29. package/src/sap/suite/ui/commons/imageeditor/RotateHistoryItem.js +1 -1
  30. package/src/sap/suite/ui/commons/library.js +1 -1
  31. package/src/sap/suite/ui/commons/messagebundle_en_US_saptrc.properties +590 -494
  32. package/src/sap/suite/ui/commons/statusindicator/Circle.js +1 -1
  33. package/src/sap/suite/ui/commons/statusindicator/CustomShape.js +1 -1
  34. package/src/sap/suite/ui/commons/statusindicator/DiscreteThreshold.js +1 -1
  35. package/src/sap/suite/ui/commons/statusindicator/FillingOption.js +1 -1
  36. package/src/sap/suite/ui/commons/statusindicator/LibraryShape.js +1 -1
  37. package/src/sap/suite/ui/commons/statusindicator/Path.js +1 -1
  38. package/src/sap/suite/ui/commons/statusindicator/PropertyThreshold.js +1 -1
  39. package/src/sap/suite/ui/commons/statusindicator/Rectangle.js +1 -1
  40. package/src/sap/suite/ui/commons/statusindicator/Shape.js +1 -1
  41. package/src/sap/suite/ui/commons/statusindicator/ShapeGroup.js +1 -1
  42. package/src/sap/suite/ui/commons/statusindicator/SimpleShape.js +1 -1
  43. package/src/sap/suite/ui/commons/statusindicator/StatusIndicator.js +1 -1
  44. package/src/sap/suite/ui/commons/taccount/TAccount.js +1 -1
  45. package/src/sap/suite/ui/commons/taccount/TAccountGroup.js +1 -1
  46. package/src/sap/suite/ui/commons/taccount/TAccountItem.js +2 -1
  47. package/src/sap/suite/ui/commons/taccount/TAccountItemProperty.js +1 -1
  48. package/src/sap/suite/ui/commons/taccount/TAccountPanel.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.suite.ui.commons",
3
- "version": "1.120.9",
3
+ "version": "1.120.11",
4
4
  "description": "SAPUI5 Library sap.suite.ui.commons",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -7,7 +7,7 @@
7
7
  SAP UI development toolkit for HTML5 (SAPUI5)
8
8
  (c) Copyright 2009-2015 SAP SE. All rights reserved
9
9
  </copyright>
10
- <version>1.120.9</version>
10
+ <version>1.120.11</version>
11
11
 
12
12
  <documentation>SAP UI library: sap.suite.ui.commons</documentation>
13
13
 
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @extends sap.ui.core.Element
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.120.9
22
+ * @version 1.120.11
23
23
  * @since 1.65.0
24
24
  *
25
25
  * @constructor
@@ -125,7 +125,7 @@ sap.ui.define([
125
125
  * @extends sap.ui.core.Control
126
126
  *
127
127
  * @author SAP SE
128
- * @version 1.120.9
128
+ * @version 1.120.11
129
129
  * @since 1.56.0
130
130
  *
131
131
  * @constructor
@@ -113,7 +113,7 @@ sap.ui.define([
113
113
  * @extends sap.ui.core.Control
114
114
  *
115
115
  * @author SAP SE
116
- * @version 1.120.9
116
+ * @version 1.120.11
117
117
  * @since 1.56.0
118
118
  *
119
119
  * @constructor
@@ -18,7 +18,7 @@ sap.ui.define([
18
18
  * @extends sap.ui.core.Control
19
19
  *
20
20
  * @author SAP SE
21
- * @version 1.120.9
21
+ * @version 1.120.11
22
22
  * @since 1.56.0
23
23
  *
24
24
  * @constructor
@@ -15,7 +15,7 @@ sap.ui.define([
15
15
  * @extends sap.ui.core.Control
16
16
  *
17
17
  * @author SAP SE
18
- * @version 1.120.9
18
+ * @version 1.120.11
19
19
  * @since 1.60.0
20
20
  *
21
21
  * @constructor
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @extends sap.ui.core.Control
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.120.9
35
+ * @version 1.120.11
36
36
  * @since 1.56.0
37
37
  *
38
38
  * @constructor
@@ -14,7 +14,7 @@ sap.ui.define([
14
14
  * @extends sap.ui.base.ManagedObject
15
15
  *
16
16
  * @author SAP SE
17
- * @version 1.120.9
17
+ * @version 1.120.11
18
18
  * @since 1.56.0
19
19
  *
20
20
  * @constructor
@@ -15,7 +15,7 @@ sap.ui.define([
15
15
  * @extends sap.ui.core.Control
16
16
  *
17
17
  * @author SAP SE
18
- * @version 1.120.9
18
+ * @version 1.120.11
19
19
  * @since 1.56.0
20
20
  *
21
21
  * @constructor
@@ -118,7 +118,7 @@ sap.ui.define([
118
118
  * @class
119
119
  * @public
120
120
  * @internal
121
- * @version 1.120.9
121
+ * @version 1.120.11
122
122
  */
123
123
  var CloudFilePicker = Dialog.extend("sap.suite.ui.commons.CloudFilePicker", {
124
124
  metadata: {
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @extends sap.ui.core.Control
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.120.9
33
+ * @version 1.120.11
34
34
  *
35
35
  * @constructor
36
36
  * @public
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  * @extends sap.ui.core.Control
32
32
  *
33
33
  * @author SAP SE
34
- * @version 1.120.9
34
+ * @version 1.120.11
35
35
  *
36
36
  * @constructor
37
37
  * @public
@@ -582,20 +582,18 @@ sap.ui.define([
582
582
  * @returns {boolean} Whether oElement has tabbable children
583
583
  * @private
584
584
  */
585
- TimelineNavigator.prototype._hasTabbableChildren = function (oElement) {
586
- var oTimelineTabbableItem = jQuery(oElement.closest(".sapSuiteUiCommonsTimelineItemOutline")).find(":sapTabbable");
587
- if (oTimelineTabbableItem && oTimelineTabbableItem.index(oElement) >= 0 ) {
588
- if (oTimelineTabbableItem.index(oElement) == oTimelineTabbableItem.length - 1) {
589
- return false;
590
- } else {
591
- return true;
592
- }
593
- } else if (oTimelineTabbableItem.length == 0) {
594
- return false;
595
- } else {
596
- return true;
597
- }
598
- };
585
+ TimelineNavigator.prototype._hasTabbableChildren = function (oElement) {
586
+ if (oElement && oElement.tabIndex >= 0) {
587
+ return true;
588
+ }
589
+ var that = this;
590
+ if (oElement && oElement.childElementCount > 0) {
591
+ oElement.childNodes.forEach(function (oChild) {
592
+ return that._hasTabbableChildren(oChild);
593
+ });
594
+ }
595
+ return false;
596
+ };
599
597
 
600
598
  /**
601
599
  * Checks whether element is last tabbable child in timeline
@@ -615,14 +613,12 @@ sap.ui.define([
615
613
  * @param {jQuery.Event} oEvent The original event object
616
614
  * @private
617
615
  */
618
- TimelineNavigator.prototype.onsaptabnext = function (oEvent) {
619
- if (oEvent.target.id && this._isLastChildInTimeline(oEvent)){
620
- if (oEvent.target.closest(".sapSuiteUiCommonsTimelineItemOutline")) {
621
- oEvent.target.closest(".sapSuiteUiCommonsTimelineItemOutline").focus();
622
- oEvent.preventDefault();
623
- }
624
- }
625
- };
616
+ TimelineNavigator.prototype.onsaptabnext = function (oEvent) {
617
+ if (oEvent.target.id && this._isLastChildInTimeline(oEvent)){
618
+ var sElementId = this.oDomRef.id + "-after";
619
+ jQuery(window.document.getElementById(sElementId)).focus();
620
+ }
621
+ };
626
622
 
627
623
  /**
628
624
  * Handles the onsaptabprevious event
@@ -631,24 +627,12 @@ sap.ui.define([
631
627
  * @param {jQuery.Event} oEvent The original event object
632
628
  * @private
633
629
  */
634
- TimelineNavigator.prototype.onsaptabprevious = function(oEvent) {
635
- if ( this._isInDomRefs(oEvent.target)) {
636
- var oTimelineTabbableItem = jQuery(oEvent.target).find(":sapTabbable");
637
- if (this.aItemDomRefs.indexOf(oEvent.target) == 0 ) {
638
- var sElementId = this.oDomRef.id + "-before";
639
- jQuery(window.document.getElementById(sElementId)).focus();
640
- return;
641
- }
642
- if (oTimelineTabbableItem.length) {
643
- oTimelineTabbableItem[oTimelineTabbableItem.length - 1].focus();
644
- oEvent.preventDefault();
645
- } else {
646
- oEvent.target.focus();
647
- oEvent.preventDefault();
648
- return;
649
- }
650
- }
651
- };
630
+ TimelineNavigator.prototype.onsaptabprevious = function(oEvent) {
631
+ if ( this._isInDomRefs(oEvent.target)) {
632
+ var sElementId = this.oDomRef.id + "-before";
633
+ jQuery(window.document.getElementById(sElementId)).focus();
634
+ }
635
+ };
652
636
 
653
637
  /**
654
638
  * Handles the onfocusin event
@@ -44,6 +44,7 @@ sap.ui.define([
44
44
  */
45
45
  var COLLABORATION_MSTEAMS_APPID = 'db5b69c6-0430-4ae1-8d6e-a65c2220b50c';
46
46
  var oLogger = Log.getLogger("sap.suite.ui.commons.collaboration.TeamsHelperService");
47
+ var CARD_URL_PREFIX = "https://saps4hana.azure-api.net/bot/redirect?target-url=";
47
48
 
48
49
  var oResourceBundle = Core.getLibraryResourceBundle("sap.suite.ui.commons");
49
50
  var PARAM_SAP_CARD_TITLE = "sap-ui-cardTitle";
@@ -467,7 +468,8 @@ sap.ui.define([
467
468
  sUrl = sUrl + "&" + PARAM_SAP_CARD_VERSION + "=" + response.version;
468
469
  }
469
470
  sUrl = sUrl + "&" + PARAM_SAP_CARD_TITLE + "=" + encodeURIComponent(sAppTitle);
470
- sUrl = this._providerConfig.shareAsLinkUrl + "?href=" + encodeURIComponent(sUrl);
471
+ // add the domain prefix to solve link unfurling issue for systems with different domain patterns
472
+ sUrl = this._providerConfig.shareAsLinkUrl + "?href=" + encodeURIComponent(CARD_URL_PREFIX + sUrl);
471
473
  return sUrl;
472
474
  };
473
475
 
@@ -8,11 +8,13 @@ sap.ui.define(
8
8
  [
9
9
  "sap/ui/core/Component",
10
10
  "sap/base/Log",
11
- "../../ServiceContainer"
11
+ "../../ServiceContainer",
12
+ "../../CollaborationHelper"
12
13
  ],
13
- function (Component, Log, ServiceContainer) {
14
+ function (Component, Log, ServiceContainer, CollaborationHelper) {
14
15
  "use strict";
15
16
  var oLogger = Log.getLogger("sap.suite.ui.commons.collaboration.flpplugins.msplugin.Component");
17
+ const sTeamsAuthEndUrl = "sap-collaboration-authEndUrl";
16
18
  /**
17
19
  * Provides the collaboration plugin information for Microsoft Teams Integration.
18
20
  * @extends sap.ui.core.Component
@@ -74,6 +76,17 @@ sap.ui.define(
74
76
  // load plugin config
75
77
  var oPluginConfigData = this._loadPluginConfigData();
76
78
  if (oPluginConfigData) {
79
+ CollaborationHelper._getCurrentUrl().then(function (sCurrentUrl) {
80
+ try {
81
+ const oUrl = new URL(sCurrentUrl);
82
+ if (oUrl.searchParams.has(sTeamsAuthEndUrl)) {
83
+ const sAuthEndUrl = decodeURIComponent(oUrl.searchParams.get(sTeamsAuthEndUrl));
84
+ window.location.replace(sAuthEndUrl);
85
+ }
86
+ } catch (e) {
87
+ oLogger.error(`Error while redirecting to auth end url`);
88
+ }
89
+ });
77
90
  ServiceContainer.setCollaborationType("COLLABORATION_MSTEAMS", oPluginConfigData);
78
91
  } else {
79
92
  oLogger.error("Collaboration configuration for Microsoft Teams Integration could not be loaded.");
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  *
23
23
  * @constructor
24
24
  * @alias sap.suite.ui.commons.flexibility.changeHandler.PropertyChangeMapper
25
- * @version 1.120.9
25
+ * @version 1.120.11
26
26
  * @since 1.50
27
27
  * @private
28
28
  */
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.120.9
24
+ * @version 1.120.11
25
25
  * @since 1.67.0
26
26
  *
27
27
  * @constructor
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.120.9
26
+ * @version 1.120.11
27
27
  * @since 1.66.0
28
28
  *
29
29
  * @constructor
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.120.9
24
+ * @version 1.120.11
25
25
  * @since 1.66.0
26
26
  *
27
27
  * @constructor
@@ -15,7 +15,7 @@ sap.ui.define([
15
15
  * @extends sap.ui.core.Element
16
16
  *
17
17
  * @author SAP SE
18
- * @version 1.120.9
18
+ * @version 1.120.11
19
19
  * @since 1.66.0
20
20
  *
21
21
  * @constructor
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.120.9
24
+ * @version 1.120.11
25
25
  * @since 1.66.0
26
26
  *
27
27
  * @constructor
@@ -18,7 +18,7 @@ sap.ui.define([
18
18
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
19
19
  *
20
20
  * @author SAP SE
21
- * @version 1.120.9
21
+ * @version 1.120.11
22
22
  * @since 1.66.0
23
23
  *
24
24
  * @constructor
@@ -10,7 +10,7 @@ sap.ui.define([
10
10
  * @extends sap.ui.base.Object
11
11
  *
12
12
  * @author SAP SE
13
- * @version 1.120.9
13
+ * @version 1.120.11
14
14
  * @since 1.66.0
15
15
  *
16
16
  * @abstract
@@ -43,7 +43,7 @@ sap.ui.define([
43
43
  * @extends sap.ui.core.Control
44
44
  *
45
45
  * @author SAP SE
46
- * @version 1.120.9
46
+ * @version 1.120.11
47
47
  * @since 1.66.0
48
48
  *
49
49
  * @constructor
@@ -126,7 +126,7 @@ sap.ui.define([
126
126
  * @extends sap.ui.core.Control
127
127
  *
128
128
  * @author SAP SE
129
- * @version 1.120.9
129
+ * @version 1.120.11
130
130
  * @since 1.66.0
131
131
  *
132
132
  * @constructor
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @extends sap.suite.ui.commons.imageeditor.ImageEditorContainer
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.120.9
30
+ * @version 1.120.11
31
31
  * @since 1.68.0
32
32
  *
33
33
  * @constructor
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.120.9
25
+ * @version 1.120.11
26
26
  * @since 1.66.0
27
27
  *
28
28
  * @constructor
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.120.9
19
+ * @version 1.120.11
20
20
  * @since 1.66.0
21
21
  *
22
22
  * @constructor
@@ -202,7 +202,7 @@
202
202
  "sap.suite.ui.commons.PagePanel",
203
203
  "sap.suite.ui.commons.Page"
204
204
  ],
205
- version: "1.120.9",
205
+ version: "1.120.11",
206
206
  extensions: {
207
207
  flChangeHandlers: {
208
208
  "sap.suite.ui.commons.Timeline": "sap/suite/ui/commons/flexibility/Timeline"