@sapui5/sap.suite.ui.commons 1.139.0 → 1.141.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 (59) 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 +13 -2
  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/ChartContainer.js +0 -1
  12. package/src/sap/suite/ui/commons/CloudFilePicker.js +26 -26
  13. package/src/sap/suite/ui/commons/MicroProcessFlow.js +1 -1
  14. package/src/sap/suite/ui/commons/MicroProcessFlowItem.js +1 -1
  15. package/src/sap/suite/ui/commons/TimelineRenderManager.js +25 -13
  16. package/src/sap/suite/ui/commons/collaboration/BaseHelperService.js +12 -12
  17. package/src/sap/suite/ui/commons/collaboration/CollaborationCardHelper.js +6 -5
  18. package/src/sap/suite/ui/commons/collaboration/CollaborationContactInfoHelper.js +15 -15
  19. package/src/sap/suite/ui/commons/collaboration/CollaborationHelper.js +124 -97
  20. package/src/sap/suite/ui/commons/collaboration/CollaborationManagerService.js +41 -41
  21. package/src/sap/suite/ui/commons/collaboration/ContactHelper.js +288 -286
  22. package/src/sap/suite/ui/commons/collaboration/ServiceContainer.js +33 -33
  23. package/src/sap/suite/ui/commons/collaboration/TeamsHelperService.js +337 -194
  24. package/src/sap/suite/ui/commons/collaboration/flpplugins/msplugin/Component-preload.js +3 -3
  25. package/src/sap/suite/ui/commons/collaboration/flpplugins/msplugin/Component.js +11 -13
  26. package/src/sap/suite/ui/commons/flexibility/changeHandler/PropertyChangeMapper.js +1 -1
  27. package/src/sap/suite/ui/commons/imageeditor/CropCustomShapeHistoryItem.js +1 -1
  28. package/src/sap/suite/ui/commons/imageeditor/CropEllipseHistoryItem.js +1 -1
  29. package/src/sap/suite/ui/commons/imageeditor/CropRectangleHistoryItem.js +1 -1
  30. package/src/sap/suite/ui/commons/imageeditor/CustomSizeItem.js +1 -1
  31. package/src/sap/suite/ui/commons/imageeditor/FilterHistoryItem.js +1 -1
  32. package/src/sap/suite/ui/commons/imageeditor/FlipHistoryItem.js +1 -1
  33. package/src/sap/suite/ui/commons/imageeditor/HistoryItem.js +1 -1
  34. package/src/sap/suite/ui/commons/imageeditor/ImageEditor.js +1 -1
  35. package/src/sap/suite/ui/commons/imageeditor/ImageEditorContainer.js +1 -1
  36. package/src/sap/suite/ui/commons/imageeditor/ImageEditorResponsiveContainer.js +1 -1
  37. package/src/sap/suite/ui/commons/imageeditor/ResizeHistoryItem.js +1 -1
  38. package/src/sap/suite/ui/commons/imageeditor/RotateHistoryItem.js +1 -1
  39. package/src/sap/suite/ui/commons/library.js +1 -1
  40. package/src/sap/suite/ui/commons/messagebundle.properties +11 -1
  41. package/src/sap/suite/ui/commons/statusindicator/Circle.js +1 -1
  42. package/src/sap/suite/ui/commons/statusindicator/CustomShape.js +1 -1
  43. package/src/sap/suite/ui/commons/statusindicator/DiscreteThreshold.js +1 -1
  44. package/src/sap/suite/ui/commons/statusindicator/FillingOption.js +1 -1
  45. package/src/sap/suite/ui/commons/statusindicator/LibraryShape.js +1 -1
  46. package/src/sap/suite/ui/commons/statusindicator/Path.js +1 -1
  47. package/src/sap/suite/ui/commons/statusindicator/PropertyThreshold.js +1 -1
  48. package/src/sap/suite/ui/commons/statusindicator/Rectangle.js +1 -1
  49. package/src/sap/suite/ui/commons/statusindicator/Shape.js +1 -1
  50. package/src/sap/suite/ui/commons/statusindicator/ShapeGroup.js +1 -1
  51. package/src/sap/suite/ui/commons/statusindicator/SimpleShape.js +1 -1
  52. package/src/sap/suite/ui/commons/statusindicator/StatusIndicator.js +1 -1
  53. package/src/sap/suite/ui/commons/taccount/TAccount.js +57 -6
  54. package/src/sap/suite/ui/commons/taccount/TAccountGroup.js +1 -1
  55. package/src/sap/suite/ui/commons/taccount/TAccountItem.js +4 -3
  56. package/src/sap/suite/ui/commons/taccount/TAccountItemProperty.js +1 -1
  57. package/src/sap/suite/ui/commons/taccount/TAccountPanel.js +1 -1
  58. package/src/sap/suite/ui/commons/themes/base/TAccount.less +28 -5
  59. package/src/sap/suite/ui/commons/windowmessages/CollaborationMessageBroker.js +0 -1
@@ -12,13 +12,13 @@ sap.ui.require.preload({
12
12
  sap.ui.define(["sap/ui/base/Object"],function(t){var n="/sap/opu/odata4/sap/aps_ui_contact_srv/srvd_a2x/sap/";var e=n+"aps_ui_contact/0001/";var a="APS_UI_C_CONTACT";var o=n+"aps_ui_contact/0001/"+a;var r=n+"aps_ui_contact/0001/"+a;var c="APS_UI_C_PRESENCE";var i=n+"aps_ui_contact/0001/"+c;var u="APS_UI_C_CALENDAR";var h=n+"aps_ui_contact/0001/"+u;var f=n+"aps_ui_contact/0001/"+"APS_UI_C_CHECK_SERVICE";var s="GET";var C="HEAD";var d=t.extend("sap.suite.ui.commons.collaboration.CollaborationContactInfoHelper");d.fetchCSRFToken=function(){return fetch(e,{method:C,headers:{"X-CSRF-Token":"Fetch"}}).then(function(t){var n=t.headers.get("X-CSRF-Token");if(t.ok&&n){return n}return undefined})};d.fetchContact=function(t){return this.fetchCSRFToken().then(function(n){return fetch(o+"/"+t,{method:s,headers:{"X-CSRF-Token":n,"content-type":"application/json;odata.metadata=minimal;charset=utf-8"}}).then(function(t){return t.json()})})};d.fetchContactCalendar=function(t){var n=new Date;var e=h+"?$filter=mail eq '"+t+"'";if(n){e=h+"?$filter=(mail eq '"+t+"'&start_datetime eq '"+n.toISOString()+"')"}return this.fetchCSRFToken().then(function(t){return fetch(e,{method:s,headers:{"X-CSRF-Token":t,"content-type":"application/json;odata.metadata=minimal;charset=utf-8"}}).then(function(t){return t.json()})})};d.fetchContactPicture=function(t){return this.fetchCSRFToken().then(function(n){return fetch(r+"/"+t+"/photo",{method:s,headers:{"X-CSRF-Token":n}}).then(function(t){return t.blob()})})};d.fetchContactStatus=function(t){return this.fetchCSRFToken().then(function(n){return fetch(i+"?$filter=id eq '"+t+"'",{method:s,headers:{"X-CSRF-Token":n,"content-type":"application/json;odata.metadata=minimal;charset=utf-8"}}).then(function(t){return t.json()})})};d.fetchServiceStatus=function(){return this.fetchCSRFToken().then(function(t){return fetch(f,{method:s,headers:{"X-CSRF-Token":t,"content-type":"application/json;odata.metadata=minimal;charset=utf-8"}}).then(function(t){return t.json()})})};return d});
13
13
  },
14
14
  "sap/suite/ui/commons/collaboration/CollaborationHelper.js":function(){
15
- sap.ui.define(["sap/base/Log","sap/ui/base/Object","sap/ui/core/Element","../windowmessages/CollaborationMessageConsumer"],function(e,t,i,n){var r="sap-url-hash";var s="&sap-ui-cardTitle";var a="&sap-stageview-hash";var o="&sap-ui-cardId";var c="&sap-ui-xx-cardId";var u="&info=";var l="transient";var f=e.getLogger("sap.suite.ui.commons.collaboration.CollaborationHelper");var p=t.extend("sap.suite.ui.commons.collaboration.CollaborationHelper");p.compactHash=function(e){const t=sap.ui.require("sap/ushell/Container");if(!t){return{url:e}}return t&&t.getServiceAsync("AppState").then(async function(t){var i=t.createEmptyAppState(undefined,false);var n=this._getNextKey(i);if(!this._isEligibleForBackendPersistency(t)){f.warning("Transient flag is true. URL will not be shortened");return{url:e}}var s=this._extractURLBeforeHash(e);var a=await this._extractSemanticObjectAndAction(e);var o=false;try{o=await this._isMinificationFeasible(e)}catch(e){}if(!a||!o){return{url:e}}return this._storeUrl(e,i).then(function(){return{url:s+"#"+a+"&/"+r+"="+n}}).catch(function(t){f.warning("URL is not shortened due to an error."+t.toString());return{url:e}})}.bind(this))};p._getCurrentUrl=function(){const e=sap.ui.require("sap/ushell/Container");return e&&e?new Promise(function(t){e.getFLPUrlAsync(true).then(function(e){t(e)})}):Promise.resolve(document.URL)};p.processAndExpandHash=async function(){const e=await this.isTeamsModeActive();this._hideAvatarFromShellbar(e);return this._getCurrentUrl().then(async function(t){if(t.indexOf(r)>-1){var i=t.split(r)[1].split("=")[1];if(t.indexOf(a)>0){i=i.split(a)[0]}else if(t.includes("info=")){i=i.includes(",")?i.split(",")[0]:i.split("&")[0]}else if(t.indexOf(o)>0||t.indexOf(c)>0){if(t.indexOf(o)>0){i=i.split(o)[0]}else{i=i.split(c)[0]}}else if(t.indexOf(s)>0){i=i.split(s)[0]}return this._retrieveURL(i).then(function(e){if(e.getData()){this._redirectToUrl(e.getData())}else{const e=t.split(r)[0];this._redirectToUrl(e)}return Promise.resolve()}.bind(this))}else if(t.indexOf(o)>-1){const e=t.split(o)[0];this._redirectToUrl(e)}else if(t.indexOf(s)>-1){const e=t.split(s)[0];await this._redirectBasedOnRuntime(e)}else if(e&&t.includes(u)){const e=t.split(u)[0];await this._redirectBasedOnRuntime(e)}return Promise.resolve()}.bind(this))};p._redirectBasedOnRuntime=async function(e){const t=sap.ui.require("sap/ushell/Container");if(t&&t.inAppRuntime()){await n.updateTopLevelURLforAppRuntime(e)}else{const t=this._stripTeamsParams(e);this._redirectToUrl(t)}};p._removeTeamsParams=function(e){try{const t=e.split("#");const i=t[0];const n=t[1]?"#"+t[1]:"";const[r,s]=i.split("?");if(!s){return e}const a=new URLSearchParams(s);a.delete("sap-ushell-config");a.delete("sap-collaboration-teams");const o=a.toString()?`${r}?${a.toString()}`:r;return o+n}catch(t){return e}};p._stripTeamsParams=function(e){if(this._isTopWindow()){return this._removeTeamsParams(e)}return e};p._isTopWindow=function(){return window.self===window.top};p._redirectToUrl=function(e){window.location.replace(e)};p._hideAvatarFromShellbar=function(e){if(e){var t=i.getElementById("userActionsMenuHeaderButton");if(t){t.setVisible(false)}}};p.isTeamsModeActive=function(){var e=false;const t=sap.ui.require("sap/ushell/Container");if(t){return t.getServiceAsync("URLParsing").then(function(t){return this._getCurrentUrl().then(function(i){var n=i.split("#")[0];if(n.indexOf("?")!==-1){var r=t&&t.parseParameters(n.substring(n.indexOf("?")));if(r&&r["sap-collaboration-teams"]&&r["sap-collaboration-teams"][0]&&r["sap-collaboration-teams"][0]==="true"){e=true}var s=false;if(r&&r["sap-ushell-config"]&&r["sap-ushell-config"][0]&&r["sap-ushell-config"][0]==="lean"){s=true}return Promise.resolve(e&&s)}else{return Promise.resolve(false)}})}.bind(this))}else{return Promise.resolve(false)}};p._retrieveURL=function(e){const t=sap.ui.require("sap/ushell/Container");return t&&t.getServiceAsync("AppState").then(function(t){return t.getAppState(e)})};p._isEligibleForBackendPersistency=function(e){return e&&e._oConfig&&l in e._oConfig&&!e._oConfig[l]};p._getNextKey=function(e){return e.getKey()};p._extractSemanticObjectAndAction=function(e){const t=sap.ui.require("sap/ushell/Container");return t&&t.getServiceAsync("URLParsing").then(function(t){var i=t.parseShellHash(this._extractURLHash(e));if(i){return Promise.resolve(i.contextRaw?i.semanticObject+"-"+i.action+"~"+i.contextRaw:i.semanticObject+"-"+i.action)}}.bind(this))};p._isMinificationFeasible=async function(e){const t=sap.ui.require("sap/ushell/Container");if(t){const r=await t.getServiceAsync("NavTargetResolution");const s=await t.getServiceAsync("URLParsing");var i=s.parseShellHash(this._extractURLHash(e));var n=Object.keys(i.params).length;if(n>0){return r.resolveHashFragment(`#${i.semanticObject}-${i.action}`).then(function(e){return true}).catch(function(e){return false})}else{return Promise.resolve(true)}}return Promise.resolve(false)};p._extractURLBeforeHash=function(e){var t=e.split("#")[0];return t};p._extractURLHash=function(e){var t=e.substring(e.indexOf("#"));return t};p._storeUrl=function(e,t){t.setData(e);return t.save()};return p});
15
+ sap.ui.define(["sap/base/Log","sap/ui/base/Object","sap/ui/core/Element","../windowmessages/CollaborationMessageConsumer"],function(e,t,n,i){var r="sap-url-hash";var s="&sap-ui-cardTitle";var a="&sap-stageview-hash";var o="&sap-ui-cardId";var c="&sap-ui-xx-cardId";var u="&info=";var l="sap-ushell-config";var f="sap-collaboration-teams";var p="sap-ui-fesr-env";var h="transient";var d=e.getLogger("sap.suite.ui.commons.collaboration.CollaborationHelper");var m=t.extend("sap.suite.ui.commons.collaboration.CollaborationHelper");m.compactHash=function(e){const t=sap.ui.require("sap/ushell/Container");if(!t){return{url:e}}return t&&t.getServiceAsync("AppState").then(async function(t){var n=t.createEmptyAppState(undefined,false);var i=this._getNextKey(n);if(!this._isEligibleForBackendPersistency(t)){d.warning("Transient flag is true. URL will not be shortened");return{url:e}}var s=this._extractURLBeforeHash(e);var a=await this._extractSemanticObjectAndAction(e);var o=false;try{o=await this._isMinificationFeasible(e)}catch(e){}if(!a||!o){return{url:e}}return this._storeUrl(e,n).then(function(){return{url:s+"#"+a+"&/"+r+"="+i}}).catch(function(t){d.warning("URL is not shortened due to an error."+t.toString());return{url:e}})}.bind(this))};m._getCurrentUrl=function(){const e=sap.ui.require("sap/ushell/Container");return e&&e?new Promise(function(t){e.getFLPUrlAsync(true).then(function(e){t(e)})}):Promise.resolve(document.URL)};m.processAndExpandHash=function(){this._hideAvatarFromShellbar();return this._getCurrentUrl().then(async function(e){if(e.indexOf(r)>-1){var t=e.split(r)[1].split("=")[1];if(e.indexOf(a)>0){t=t.split(a)[0]}else if(e.includes("info=")){t=t.includes(",")?t.split(",")[0]:t.split("&")[0]}else if(e.indexOf(o)>0||e.indexOf(c)>0){if(e.indexOf(o)>0){t=t.split(o)[0]}else{t=t.split(c)[0]}}else if(e.indexOf(s)>0){t=t.split(s)[0]}return this._retrieveURL(t).then(function(t){if(t.getData()){window.location.replace(t.getData())}else{const t=e.split(r)[0];window.location.replace(t)}return Promise.resolve()})}else if(e.indexOf(o)>-1){const t=e.split(o)[0];window.location.replace(t)}else if(e.indexOf(s)>-1){const t=e.split(s)[0];await this._redirectBasedOnRuntime(t)}else if(e.includes(u)&&this._isFromTeams(e)){const t=e.split(u)[0];await this._redirectBasedOnRuntime(t)}return Promise.resolve()}.bind(this))};m._isFromTeams=function(e){const t=new URL(e);const n=t.searchParams.get("sap-collaboration-teams");return n==="true"};m._redirectBasedOnRuntime=async function(e){const t=sap.ui.require("sap/ushell/Container");if(t&&t.inAppRuntime()){await i.updateTopLevelURLforAppRuntime(e)}else{const t=this._stripTeamsParams(e);window.location.replace(t)}};m._removeTeamsParams=function(e){try{const t=e.split("#");const n=t[0];const i=t[1]?"#"+t[1]:"";const[r,s]=n.split("?");if(!s){return e}const a=new URLSearchParams(s);a.delete(l);a.delete(f);a.delete(p);const o=a.toString()?`${r}?${a.toString()}`:r;return o+i}catch(t){return e}};m._stripTeamsParams=function(e){if(this._isTopWindow()){return this._removeTeamsParams(e)}return e};m._isTopWindow=function(){return window.self===window.top};m._hideAvatarFromShellbar=function(){this.isTeamsModeActive().then(function(e){if(e){var t=n.getElementById("userActionsMenuHeaderButton");if(t){t.setVisible(false)}}})};m.isTeamsModeActive=function(){var e=false;const t=sap.ui.require("sap/ushell/Container");if(t){return t.getServiceAsync("URLParsing").then(function(t){return this._getCurrentUrl().then(function(n){var i=n.split("#")[0];if(i.indexOf("?")!==-1){var r=t&&t.parseParameters(i.substring(i.indexOf("?")));if(r&&r["sap-collaboration-teams"]&&r["sap-collaboration-teams"][0]&&r["sap-collaboration-teams"][0]==="true"){e=true}var s=false;if(r&&r["sap-ushell-config"]&&r["sap-ushell-config"][0]&&r["sap-ushell-config"][0]==="lean"){s=true}return Promise.resolve(e&&s)}else{return Promise.resolve(false)}})}.bind(this))}else{return Promise.resolve(false)}};m._retrieveURL=function(e){const t=sap.ui.require("sap/ushell/Container");return t&&t.getServiceAsync("AppState").then(function(t){return t.getAppState(e)})};m._isEligibleForBackendPersistency=function(e){return e&&e._oConfig&&h in e._oConfig&&!e._oConfig[h]};m._getNextKey=function(e){return e.getKey()};m._extractSemanticObjectAndAction=function(e){const t=sap.ui.require("sap/ushell/Container");return t&&t.getServiceAsync("URLParsing").then(function(t){var n=t.parseShellHash(this._extractURLHash(e));if(n){return Promise.resolve(n.contextRaw?n.semanticObject+"-"+n.action+"~"+n.contextRaw:n.semanticObject+"-"+n.action)}}.bind(this))};m._isMinificationFeasible=async function(e){const t=sap.ui.require("sap/ushell/Container");if(t){const r=await t.getServiceAsync("NavTargetResolution");const s=await t.getServiceAsync("URLParsing");var n=s.parseShellHash(this._extractURLHash(e));var i=Object.keys(n.params).length;if(i>0){return r.resolveHashFragment(`#${n.semanticObject}-${n.action}`).then(function(e){return true}).catch(function(e){return false})}else{return Promise.resolve(true)}}return Promise.resolve(false)};m._extractURLBeforeHash=function(e){var t=e.split("#")[0];return t};m._extractURLHash=function(e){var t=e.substring(e.indexOf("#"));return t};m._storeUrl=function(e,t){t.setData(e);return t.save()};return m});
16
16
  },
17
17
  "sap/suite/ui/commons/collaboration/CollaborationManagerService.js":function(){
18
18
  sap.ui.define(["sap/base/Log","sap/ui/core/Core","./BaseHelperService","sap/ui/Device","sap/ui/core/Lib","sap/suite/ui/commons/collaboration/channels/MessageChannel"],function(e,o,a,s,t,i){var n=a.extend("sap.suite.ui.commons.collaboration.CollaborationManagerService");var r=t.getResourceBundleFor("sap.suite.ui.commons");var l=e.getLogger("sap.suite.ui.commons.collaboration.CollaborationManagerService");n.prototype.triggerH2HChat=function(e,o,a){this.publishData({sAppTitle:e,sCurrentURL:o,sEmailId:a})};n.prototype.getOptions=function(){var e=window["sap-ushell-config"]&&window["sap-ushell-config"].bootstrapPlugins&&window["sap-ushell-config"].bootstrapPlugins.H2H_CHAT_PLUGIN;if(s.system.desktop){if(e){return{text:r.getText("COLLABORATION_MANGER"),icon:"sap-icon://BusinessSuiteInAppSymbols/icon-collaboration-manager",press:this.triggerH2HChat.bind(this),fesrStepName:"CM:ShareLink"}}else{l.info("Consumer disable Collaboration Manager option")}}else{l.info("Collaboration Manager is not supported in Phone and Tablet")}return null};n.prototype.publishData=async function(e){try{const o=await i.getInstance();o.postMessage(e)}catch(e){l.error("Failed to publish data:",e)}};return n});
19
19
  },
20
20
  "sap/suite/ui/commons/collaboration/ContactHelper.js":function(){
21
- sap.ui.define(["sap/ui/core/mvc/Controller","sap/ui/core/Fragment","sap/ui/model/json/JSONModel","sap/m/library","sap/ui/core/Lib","sap/ui/core/Core","sap/ui/model/resource/ResourceModel","./CollaborationContactInfoHelper","sap/ui/performance/trace/FESRHelper","sap/ui/core/Element"],function(e,t,a,o,s,i,n,r,c,l){var u=s.getResourceBundleFor("sap.suite.ui.commons");return e.extend("sap.suite.ui.commons.collaboration.ContactHelper",{constructor:function(){},getFullProfileByEmail:async function(e){var t=await r.fetchContact(e);if(t&&t.mail===""){return t}if(t&&t.data!=""){t.photo="data:image/png;base64,"+t.data}t=this.determineContactStatus(t);return t},getTeamsContactOptions:function(){var e=this;return Promise.resolve([{key:"chat",icon:"sap-icon://discussion",tooltip:u.getText("CHAT_BUTTON_TOOLTIP"),fesrStepName:"MST:ContactAction",callBackHandler:function(t){e.handleMSTeamsPress(t)}},{key:"call",icon:"sap-icon://call",tooltip:u.getText("CALL_BUTTON_TOOLTIP"),fesrStepName:"MST:ContactAction",callBackHandler:function(t){e.handleMSTeamsPress(t)}},{key:"videoCall",icon:"sap-icon://video",tooltip:u.getText("VIDEOCALL_BUTTON_TOOLTIP"),fesrStepName:"MST:ContactAction",callBackHandler:function(t){e.handleMSTeamsPress(t)}}])},getTeamsContactStatus:async function(e){var t=await r.fetchContact(e);t.calendar=await r.fetchContactCalendar(e);t=this.determineContactStatus(t);return[{key:"profileStatus",badgeIcon:t.badgeIcon,badgeValueState:t.badgeValueState,badgeTooltip:t.badgeTooltip,fesrStepName:"MST:ContactAction",calendar:t.calendar}]},handleMSTeamsPress:function(e){var t=e.getSource().data("email");var a=e.getSource().data("type");var s="";switch(a){case"chat":s="https://teams.microsoft.com/l/chat/0/0?users="+t;break;case"call":s="https://teams.microsoft.com/l/call/0/0?users="+t;break;case"videoCall":s="https://teams.microsoft.com/l/call/0/0?users="+t+"&withVideo=true";break;default:break}o.URLHelper.redirect(s,true)},formatUri:function(e,t){var a=/^\w+[\w-+\.]*\@\w+([-\.]\w+)*\.[a-zA-Z]{2,}$/;if(a.test(e)){return"mailto:"+e+(t&&t.subject?"?subject="+t.subject:"")+(t&&t.body?"&body="+t.body:"")}else{return"tel:"+e}},loadContactPopover:function(e,o,s){this.afterClose();return t.load({name:"sap.suite.ui.commons.collaboration.ContactPopover",controller:this,type:"XML"}).then(function(t){c.setSemanticStepname(t,"afterClose","MST:ContactDetails");this._oContactPopover=t;this.sEmail=e;this.oParams=o;t.setBusy(true);var i={setFamily:"tnt",setURI:sap.ui.require.toUrl("sap/tnt/themes/base/illustrations")};sap.m.IllustrationPool.registerIllustrationSet(i,false);var n=new a({isUserExistsInTeams:true});this._oContactPopover.setModel(n,"userData");this.isDirectCommunicationEnabled=s;this._oContactPopover.setModel(new sap.ui.model.resource.ResourceModel({bundle:u}),"i18n");return t}.bind(this))},loadMinimalContactPopover:function(e,o){this.afterClose();var s=new a({mail:e,params:o});return t.load({name:"sap.suite.ui.commons.collaboration.MinimalContactPopover",controller:this,type:"XML"}).then(function(e){this._oMinContactPopover=e;c.setSemanticStepname(e,"afterClose","MST:ContactDetails");e.setModel(s,"userData");e.setModel(new sap.ui.model.resource.ResourceModel({bundle:u}),"i18n");return e}.bind(this))},afterClose:function(){if(this._oContactPopover){this._oContactPopover.destroy()}if(this._oMinContactPopover){this._oMinContactPopover.destroy()}},afterOpen:function(){var e=this;this.getFullProfileByEmail(this.sEmail).then(function(t){e._oContactPopover.setBusy(false);if(t&&t.mail===""){t.isUserExistsInTeams=false;t.mail=e.sEmail;t.params=e.oParams;e._oContactPopover.setInitialFocus(l.getElementById("mail"))}else{t.isUserExistsInTeams=true;t.isDirectCommunicationEnabled=!!e.isDirectCommunicationEnabled;e._oContactPopover.setInitialFocus(l.getElementById("avatar"))}var o=new a(t);o.setData(t);e._oContactPopover.setModel(o,"userData");c.setSemanticStepname(e._oContactPopover,"afterClose","MST:ContactDetails")})},afterContinue:function(){var e=this.formatUri(this.sEmail,this.oParams);o.URLHelper.redirect(e,true)},determineContactStatus:function(e){const t=new Map([["OOO",{badgeValueState:"Information",badgeIcon:"sap-icon://offsite-work"}],["BUSYOOO",{badgeValueState:"Error",badgeIcon:"sap-icon://circle-task"}],["ONLINEOOO",{badgeValueState:"Success",badgeIcon:"sap-icon://sys-enter"}],["AVAILABLE",{badgeValueState:"Success",badgeIcon:"sap-icon://sys-enter-2"}],["AWAY",{badgeValueState:"Warning",badgeIcon:"sap-icon://pending"}],["BUSY",{badgeValueState:"Error",badgeIcon:"sap-icon://circle-task-2"}],["PRESENTING",{badgeValueState:"Error",badgeIcon:"sap-icon://sys-minus"}],["OFFLINE",{badgeValueState:"Error",badgeIcon:"sap-icon://message-error"}]]);const a=new Map([["Available","AVAILABLE"],["Away","AWAY"],["Inactive","AWAY"],["Busy","BUSY"],["DoNotDisturb","PRESENTING"],["InACall","BUSY"],["InAMeeting","BUSY"],["Presenting","PRESENTING"],["BeRightBack","AWAY"],["OffWork","OFFLINE"],["Offline","OFFLINE"]]);let o={};if(!!e.isoutofoffice){if(e.activity==="Available"){o=t.get("ONLINEOOO");o.badgeTooltip=`${u.getText("AVAILABLE")}, ${u.getText("OOO")}`}else if(e.activity==="Busy"){o=t.get("BUSYOOO");o.badgeTooltip=`${u.getText("BUSY")}, ${u.getText("OOO")}`}else if(e.activity==="DoNotDisturb"){o=t.get("PRESENTING");o.badgeTooltip=`${u.getText("DONOTDISTURB")}, ${u.getText("OOO")}`}else{o=t.get("OOO");o.badgeTooltip=u.getText("OOO")}}else{const s=e.activity?a.get(e.activity):"OFFLINE";o=t.get(s);o.badgeTooltip=u.getText(e.activity.toUpperCase())}Object.assign(e,o);return e}})});
21
+ sap.ui.define(["sap/ui/core/mvc/Controller","sap/ui/core/Fragment","sap/ui/model/json/JSONModel","sap/m/library","sap/ui/core/Lib","sap/ui/core/Core","sap/ui/model/resource/ResourceModel","./CollaborationContactInfoHelper","sap/ui/performance/trace/FESRHelper","sap/ui/core/Element"],function(e,t,a,o,s,i,n,r,c,l){var u=s.getResourceBundleFor("sap.suite.ui.commons");return e.extend("sap.suite.ui.commons.collaboration.ContactHelper",{constructor:function(){},getFullProfileByEmail:async function(e){var t=await r.fetchContact(e);if(t&&t.mail===""){return t}if(t&&t.data!=""){t.photo="data:image/png;base64,"+t.data}t=this.determineContactStatus(t);return t},getTeamsContactOptions:function(){var e=this;return Promise.resolve([{key:"chat",icon:"sap-icon://discussion",tooltip:u.getText("CHAT_BUTTON_TOOLTIP"),fesrStepName:"MST:ContactAction",callBackHandler:function(t){e.handleMSTeamsPress(t)}},{key:"call",icon:"sap-icon://call",tooltip:u.getText("CALL_BUTTON_TOOLTIP"),fesrStepName:"MST:ContactAction",callBackHandler:function(t){e.handleMSTeamsPress(t)}},{key:"videoCall",icon:"sap-icon://video",tooltip:u.getText("VIDEOCALL_BUTTON_TOOLTIP"),fesrStepName:"MST:ContactAction",callBackHandler:function(t){e.handleMSTeamsPress(t)}}])},getTeamsContactStatus:async function(e){let t={calendar:[]};if(e){const a=await Promise.all([r.fetchContact(e),r.fetchContactCalendar(e)]);t=a[0];t.calendar=a[1]}const a=this.determineContactStatus(t);return[{key:"profileStatus",badgeIcon:a.badgeIcon,badgeValueState:a.badgeValueState,badgeTooltip:a.badgeTooltip,fesrStepName:"MST:ContactAction",calendar:a.calendar}]},handleMSTeamsPress:function(e){var t=e.getSource().data("email");var a=e.getSource().data("type");var s="";switch(a){case"chat":s="https://teams.microsoft.com/l/chat/0/0?users="+t;break;case"call":s="https://teams.microsoft.com/l/call/0/0?users="+t;break;case"videoCall":s="https://teams.microsoft.com/l/call/0/0?users="+t+"&withVideo=true";break;default:break}o.URLHelper.redirect(s,true)},formatUri:function(e,t){var a=/^\w+[\w-+\.]*\@\w+([-\.]\w+)*\.[a-zA-Z]{2,}$/;if(a.test(e)){return"mailto:"+e+(t&&t.subject?"?subject="+t.subject:"")+(t&&t.body?"&body="+t.body:"")}else{return"tel:"+e}},loadContactPopover:function(e,o,s){this.afterClose();return t.load({name:"sap.suite.ui.commons.collaboration.ContactPopover",controller:this,type:"XML"}).then(function(t){c.setSemanticStepname(t,"afterClose","MST:ContactDetails");this._oContactPopover=t;this.sEmail=e;this.oParams=o;t.setBusy(true);var i={setFamily:"tnt",setURI:sap.ui.require.toUrl("sap/tnt/themes/base/illustrations")};sap.m.IllustrationPool.registerIllustrationSet(i,false);var n=new a({isUserExistsInTeams:true});this._oContactPopover.setModel(n,"userData");this.isDirectCommunicationEnabled=s;this._oContactPopover.setModel(new sap.ui.model.resource.ResourceModel({bundle:u}),"i18n");return t}.bind(this))},loadMinimalContactPopover:function(e,o){this.afterClose();var s=new a({mail:e,params:o});return t.load({name:"sap.suite.ui.commons.collaboration.MinimalContactPopover",controller:this,type:"XML"}).then(function(e){this._oMinContactPopover=e;c.setSemanticStepname(e,"afterClose","MST:ContactDetails");e.setModel(s,"userData");e.setModel(new sap.ui.model.resource.ResourceModel({bundle:u}),"i18n");return e}.bind(this))},afterClose:function(){if(this._oContactPopover){this._oContactPopover.destroy()}if(this._oMinContactPopover){this._oMinContactPopover.destroy()}},afterOpen:function(){var e=this;this.getFullProfileByEmail(this.sEmail).then(function(t){e._oContactPopover.setBusy(false);if(t&&t.mail===""){t.isUserExistsInTeams=false;t.mail=e.sEmail;t.params=e.oParams;e._oContactPopover.setInitialFocus(l.getElementById("mail"))}else{t.isUserExistsInTeams=true;t.isDirectCommunicationEnabled=!!e.isDirectCommunicationEnabled;e._oContactPopover.setInitialFocus(l.getElementById("avatar"))}var o=new a(t);o.setData(t);e._oContactPopover.setModel(o,"userData");c.setSemanticStepname(e._oContactPopover,"afterClose","MST:ContactDetails")})},afterContinue:function(){var e=this.formatUri(this.sEmail,this.oParams);o.URLHelper.redirect(e,true)},determineContactStatus:function(e){const t=new Map([["OOO",{badgeValueState:"Information",badgeIcon:"sap-icon://offsite-work"}],["BUSYOOO",{badgeValueState:"Error",badgeIcon:"sap-icon://circle-task"}],["ONLINEOOO",{badgeValueState:"Success",badgeIcon:"sap-icon://sys-enter"}],["AVAILABLE",{badgeValueState:"Success",badgeIcon:"sap-icon://sys-enter-2"}],["AWAY",{badgeValueState:"Warning",badgeIcon:"sap-icon://pending"}],["BUSY",{badgeValueState:"Error",badgeIcon:"sap-icon://circle-task-2"}],["PRESENTING",{badgeValueState:"Error",badgeIcon:"sap-icon://sys-minus"}],["OFFLINE",{badgeValueState:"Error",badgeIcon:"sap-icon://message-error"}]]);const a=new Map([["Available","AVAILABLE"],["Away","AWAY"],["Inactive","AWAY"],["Busy","BUSY"],["DoNotDisturb","PRESENTING"],["InACall","BUSY"],["InAMeeting","BUSY"],["Presenting","PRESENTING"],["BeRightBack","AWAY"],["OffWork","OFFLINE"],["Offline","OFFLINE"]]);let o={};if(!!e.isoutofoffice){if(e.activity==="Available"){o=t.get("ONLINEOOO");o.badgeTooltip=`${u.getText("AVAILABLE")}, ${u.getText("OOO")}`}else if(e.activity==="Busy"){o=t.get("BUSYOOO");o.badgeTooltip=`${u.getText("BUSY")}, ${u.getText("OOO")}`}else if(e.activity==="DoNotDisturb"){o=t.get("PRESENTING");o.badgeTooltip=`${u.getText("DONOTDISTURB")}, ${u.getText("OOO")}`}else{o=t.get("OOO");o.badgeTooltip=u.getText("OOO")}}else{const s=e.activity?a.get(e.activity):"OFFLINE";o=t.get(s);o.badgeTooltip=u.getText(e.activity.toUpperCase())}Object.assign(e,o);return e}})});
22
22
  },
23
23
  "sap/suite/ui/commons/collaboration/ServiceContainer.js":function(){
24
24
  sap.ui.define(["sap/base/Log","./BaseHelperService","./TeamsHelperService","./CollaborationManagerService","../windowmessages/CollaborationMessageBroker","../windowmessages/CollaborationMessageConsumer","./CollaborationHelper","sap/ui/core/Element"],function(e,r,n,i,o,t,a,s){var l=e.getLogger("sap.suite.ui.commons.collaboration.ServiceContainer");var c;var u;function v(){var e;if(c&&Object.keys(c).length){var i=c.sProvider;var o=c.oProviderConfig;if(i==="COLLABORATION_MSTEAMS"){e=new n(o)}u=Promise.resolve(e);return u}e=new r({});l.info("Collaboration provider is not activated on the tenant");return Promise.resolve(e)}function f(){}var g=new f;g.getServiceAsync=async function(){const e=sap.ui.require("sap/ushell/Container");if(u){return u}if(e&&e.inAppRuntime()){c=await t.getProviderConfiguration()}return v()};g.getCollaborationServices=async function(){var e=await g.getServiceAsync();var r={oTeamsHelperService:e,oCMHelperService:new i};return Promise.resolve(r)};g.hidePluginsInMSTeams=async function(){try{const e=await a.isTeamsModeActive();if(e){let e=0;const r=1*1e3;const n={chatButton:true,"sap.das.webclientplugin.s4.shellitem":true};const i=setInterval(()=>{e++;if(e>10){clearInterval(i);return}Object.keys(n).forEach(e=>{const r=s.getElementById(e);if(r?.getVisible()===true){r.setVisible(false);n[e]=false}});const r=Object.values(n).every(e=>!e);if(r){clearInterval(i)}},r)}}catch(e){l.error("Error hiding the plugins in MS Teams",e)}};g.setCollaborationType=function(e,r){l.info("Collaboration properties are now configured");g.hidePluginsInMSTeams();c={sProvider:e,oProviderConfig:r};v();o.startInstance(c)};return g},true);
@@ -29,4 +29,4 @@ sap.ui.require.preload({
29
29
  "sap/suite/ui/commons/collaboration/channels/MessageChannel.js":function(){
30
30
  sap.ui.define(["sap/ui/base/Object"],function(e){var n;var s=e.extend("sap.suite.ui.commons.collaboration.channels.MessageChannel",{postMessage:function(e,n){window.parent.postMessage({...e,_fromMessageChannel:true},n||"*")},subscribe:function(e){window.addEventListener("message",function(n){if(n?.data?._fromMessageChannel&&typeof e==="function"){e(n)}})}});return{getInstance:function(){if(!n){n=new s}return Promise.resolve(n)}}});
31
31
  }
32
- });
32
+ });
@@ -12,7 +12,7 @@ sap.ui.define(
12
12
  "../../ServiceContainer",
13
13
  "../../CollaborationHelper"
14
14
  ],
15
- function (Component, EventHub, Log, ServiceContainer, CollaborationHelper) {
15
+ function(Component, EventHub, Log, ServiceContainer, CollaborationHelper) {
16
16
  "use strict";
17
17
  var oLogger = Log.getLogger("sap.suite.ui.commons.collaboration.flpplugins.msplugin.Component");
18
18
  const sTeamsAuthEndUrl = "sap-collaboration-authEndUrl";
@@ -22,9 +22,9 @@ sap.ui.define(
22
22
  * @extends sap.ui.core.Component
23
23
  * @name sap.suite.ui.commons.collaboration.flpplugins.msplugin.Component
24
24
  * @since 1.108.0
25
- * @private
26
- * @ui5-restricted: sap.suite.ui.commons.collaboration
27
- * @experimental Since 1.108
25
+ * @private
26
+ * @ui5-restricted: sap.suite.ui.commons.collaboration
27
+ * @experimental Since 1.108
28
28
  *
29
29
  */
30
30
  return Component.extend("sap.suite.ui.commons.collaboration.flpplugins.msplugin.Component", {
@@ -34,21 +34,21 @@ sap.ui.define(
34
34
  /**
35
35
  * Specifies the collaboration using Microsoft Teams as Link is configured or not.
36
36
  */
37
- isShareAsLinkEnabled: {
37
+ isShareAsLinkEnabled: {
38
38
  name: "isShareAsLinkEnabled",
39
39
  type: "string"
40
40
  },
41
41
  /**
42
42
  * Specifies the collaboration with Microsoft Teams as Tab is configured or not.
43
43
  */
44
- isShareAsTabEnabled: {
44
+ isShareAsTabEnabled: {
45
45
  name: "isShareAsTabEnabled",
46
46
  type: "string"
47
47
  },
48
48
  /**
49
49
  * Specifies the collaboration with Microsoft Teams as Card is configured or not.
50
50
  */
51
- isShareAsCardEnabled: {
51
+ isShareAsCardEnabled: {
52
52
  name: "isShareAsCardEnabled",
53
53
  type: "string"
54
54
  },
@@ -75,11 +75,11 @@ sap.ui.define(
75
75
  }
76
76
  }
77
77
  },
78
- init: function () {
78
+ init: function() {
79
79
  // load plugin config
80
80
  var oPluginConfigData = this._loadPluginConfigData();
81
81
  if (oPluginConfigData) {
82
- CollaborationHelper._getCurrentUrl().then(function (sCurrentUrl) {
82
+ CollaborationHelper._getCurrentUrl().then(function(sCurrentUrl) {
83
83
  try {
84
84
  const oUrl = new URL(sCurrentUrl);
85
85
  if (oUrl.searchParams.has(sTeamsAuthEndUrl)) {
@@ -97,11 +97,9 @@ sap.ui.define(
97
97
  EventHub.emit(sCollaborationMSPluginLoaded);
98
98
  },
99
99
 
100
- _loadPluginConfigData: function () {
100
+ _loadPluginConfigData: function() {
101
101
  var oComponentData = this.getComponentData();
102
- if (oComponentData) {
103
- return oComponentData.config; // retrieve the plugin configuration
104
- }
102
+ return oComponentData && oComponentData.config; // retrieve the plugin configuration
105
103
  }
106
104
  });
107
105
  }
@@ -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.139.0
25
+ * @version 1.141.0
26
26
  * @since 1.50
27
27
  * @private
28
28
  */
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.139.0
31
+ * @version 1.141.0
32
32
  * @since 1.67.0
33
33
  *
34
34
  * @constructor
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.139.0
33
+ * @version 1.141.0
34
34
  * @since 1.66.0
35
35
  *
36
36
  * @constructor
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.139.0
31
+ * @version 1.141.0
32
32
  * @since 1.66.0
33
33
  *
34
34
  * @constructor
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @extends sap.ui.core.Element
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.139.0
25
+ * @version 1.141.0
26
26
  * @since 1.66.0
27
27
  *
28
28
  * @constructor
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.139.0
31
+ * @version 1.141.0
32
32
  * @since 1.66.0
33
33
  *
34
34
  * @constructor
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.139.0
28
+ * @version 1.141.0
29
29
  * @since 1.66.0
30
30
  *
31
31
  * @constructor
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * @extends sap.ui.base.Object
18
18
  *
19
19
  * @author SAP SE
20
- * @version 1.139.0
20
+ * @version 1.141.0
21
21
  * @since 1.66.0
22
22
  *
23
23
  * @abstract
@@ -50,7 +50,7 @@ sap.ui.define([
50
50
  * @extends sap.ui.core.Control
51
51
  *
52
52
  * @author SAP SE
53
- * @version 1.139.0
53
+ * @version 1.141.0
54
54
  * @since 1.66.0
55
55
  *
56
56
  * @constructor
@@ -162,7 +162,7 @@ sap.ui.define([
162
162
  * @extends sap.ui.core.Control
163
163
  *
164
164
  * @author SAP SE
165
- * @version 1.139.0
165
+ * @version 1.141.0
166
166
  * @since 1.66.0
167
167
  *
168
168
  * @constructor
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  * @extends sap.suite.ui.commons.imageeditor.ImageEditorContainer
35
35
  *
36
36
  * @author SAP SE
37
- * @version 1.139.0
37
+ * @version 1.141.0
38
38
  * @since 1.68.0
39
39
  *
40
40
  * @constructor
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
30
30
  *
31
31
  * @author SAP SE
32
- * @version 1.139.0
32
+ * @version 1.141.0
33
33
  * @since 1.66.0
34
34
  *
35
35
  * @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.139.0
26
+ * @version 1.141.0
27
27
  * @since 1.66.0
28
28
  *
29
29
  * @constructor
@@ -195,7 +195,7 @@ sap.ui.define([
195
195
  "sap.suite.ui.commons.TargetFilterMeasureColumn",
196
196
  "sap.suite.ui.commons.AriaProperties"
197
197
  ],
198
- version: "1.139.0",
198
+ version: "1.141.0",
199
199
  extensions: {
200
200
  flChangeHandlers: {
201
201
  "sap.suite.ui.commons.Timeline": "sap/suite/ui/commons/flexibility/Timeline"
@@ -350,7 +350,7 @@ PF_VALUE_UNDEFINED=Undefined
350
350
  #XACT: Text for node description in processflow
351
351
  PF_ARIA_PROCESS_FLOW_NODE_DESC=Use arrow keys to navigate between the Process Flow Nodes
352
352
  #XACT: Text for empty cells description in processflow
353
- PF_ARIA_PROCESS_FLOW_EMPTY_NODE_DESC = Empty cell used for visual spacing in process flow, no content
353
+ PF_ARIA_PROCESS_FLOW_EMPTY_NODE_DESC = Empty space
354
354
  #XACT: Text for status for header lane
355
355
  PF_ARIA_STATUS=the status is
356
356
  #XACT: Text for positive status value for header lane
@@ -750,6 +750,16 @@ COLORED_ITEM_FROM=Colored Item from Journal Entry
750
750
  TACCOUNT_DROP_HERE=Drop Here
751
751
  #XCAP: T Account no data text
752
752
  TACCOUNT_NO_DATA=No data.
753
+ #XCAP: T Account debit
754
+ TACCOUNT_DEBIT_NUMBER=Debit {0}
755
+ #XCAP: T Account credit
756
+ TACCOUNT_CREDIT_NUMBER=Credit {0}
757
+ #XCAP: T Account debit
758
+ TACCOUNT_TOTAL_DEBIT_NUMBER=Total Debit {0}
759
+ #XCAP: T Account credit
760
+ TACCOUNT_TOTAL_CREDIT_NUMBER=Total Credit {0}
761
+ #XCAP: T AccountItems wrapper
762
+ TACCOUNT_ITEM_WRAPPER=List with interactive items. To move to the content press F2
753
763
 
754
764
  #XMSG: Message Toast shown when the image is automatically scaled down because of the restrictions of the platform that the ImageEditor is currently running on
755
765
  IMGEDITOR_SCALE_WARNING=The image was scaled down to {0} x {1} px from {2} x {3} px to ensure better compatibility with your device.
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @extends sap.suite.ui.commons.statusindicator.SimpleShape
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.139.0
33
+ * @version 1.141.0
34
34
  * @since 1.50
35
35
  *
36
36
  * @constructor
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @extends sap.suite.ui.commons.statusindicator.Shape
37
37
  *
38
38
  * @author SAP SE
39
- * @version 1.139.0
39
+ * @version 1.141.0
40
40
  * @since 1.50
41
41
  *
42
42
  * @constructor
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.ui.core.Control
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.139.0
24
+ * @version 1.141.0
25
25
  * @since 1.50
26
26
  *
27
27
  * @constructor
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.ui.core.Control
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.139.0
26
+ * @version 1.141.0
27
27
  * @since 1.50
28
28
  *
29
29
  * @constructor
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.suite.ui.commons.statusindicator.CustomShape
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.139.0
26
+ * @version 1.141.0
27
27
  * @since 1.60.0
28
28
  *
29
29
  * @constructor
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @extends sap.suite.ui.commons.statusindicator.SimpleShape
30
30
  *
31
31
  * @author SAP SE
32
- * @version 1.139.0
32
+ * @version 1.141.0
33
33
  * @since 1.50
34
34
  *
35
35
  * @constructor
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.ui.core.Control
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.139.0
31
+ * @version 1.141.0
32
32
  * @since 1.50
33
33
  *
34
34
  * @constructor
@@ -29,7 +29,7 @@ sap.ui.define(
29
29
  * @extends sap.suite.ui.commons.statusindicator.SimpleShape
30
30
  *
31
31
  * @author SAP SE
32
- * @version 1.139.0
32
+ * @version 1.141.0
33
33
  * @since 1.50
34
34
  *
35
35
  * @constructor
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * @extends sap.ui.core.Control
43
43
  *
44
44
  * @author SAP SE
45
- * @version 1.139.0
45
+ * @version 1.141.0
46
46
  * @since 1.50
47
47
  *
48
48
  * @constructor
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @extends sap.ui.core.Control
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.139.0
33
+ * @version 1.141.0
34
34
  * @since 1.50
35
35
  *
36
36
  * @constructor
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @extends sap.suite.ui.commons.statusindicator.Shape
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.139.0
33
+ * @version 1.141.0
34
34
  * @since 1.50
35
35
  *
36
36
  * @constructor
@@ -49,7 +49,7 @@ sap.ui.define([
49
49
  * @extends sap.ui.core.Control
50
50
  *
51
51
  * @author SAP SE
52
- * @version 1.139.0
52
+ * @version 1.141.0
53
53
  * @since 1.50
54
54
  *
55
55
  * @constructor
@@ -56,7 +56,7 @@ sap.ui.define([
56
56
  * @extends sap.ui.core.Control
57
57
  *
58
58
  * @author SAP SE
59
- * @version 1.139.0
59
+ * @version 1.141.0
60
60
  * @since 1.58.0
61
61
  *
62
62
  * @constructor
@@ -278,6 +278,8 @@ sap.ui.define([
278
278
 
279
279
  oRm.openEnd();
280
280
 
281
+ oRm.renderControl(oAccount._getAriaRowForTAccount());
282
+
281
283
  if (bHasData || oAccount.getOpening()) {
282
284
  oRm.openStart("div");
283
285
  oRm.class("sapSuiteUiCommonsAccountTHeader");
@@ -305,6 +307,8 @@ sap.ui.define([
305
307
  if (oAccount.getOpening()) {
306
308
  oRm.openStart("div")
307
309
  .class("sapSuiteUiCommonsAccountOpeningHeader")
310
+ .attr("tabindex","0")
311
+ .attr("aria-labelledby",oAccount._getAriaRowForTAccount().getId())
308
312
  .openEnd();
309
313
  oRm.openStart("span")
310
314
  .attr("id", oAccount.getId() + "-opening-debit-text")
@@ -318,12 +322,16 @@ sap.ui.define([
318
322
  .openEnd()
319
323
  .text(sOpeningCredit + " " + sUnit)
320
324
  .close("span");
325
+ oRm.openStart("div")
326
+ .class("sapSuiteUiCommonsAccountFocus")
327
+ .openEnd();
328
+ oRm.close("div");
321
329
  oRm.close("div");
322
330
  }
323
331
 
324
- oRm.openStart("div")
332
+ oRm.openStart("div",oAccount.getId() + "-itemWrapper")
325
333
  .class("sapSuiteUiCommonsAccountTBody")
326
- .attr("role", "listbox")
334
+ .attr("tabindex","0")
327
335
  .openEnd();
328
336
 
329
337
  if (oAccount._isOrdered()) {
@@ -343,7 +351,7 @@ sap.ui.define([
343
351
  .attr("role", "listbox")
344
352
  .attr("aria-labelledby", oAccount.getId() + "-debit-text")
345
353
  .openEnd();
346
- fnWriteColumn(oAccount.getDebit(), true);
354
+ fnWriteColumn(oAccount.getDebit(),true);
347
355
  }
348
356
  oRm.close("div");
349
357
 
@@ -353,7 +361,7 @@ sap.ui.define([
353
361
  .attr("role", "listbox")
354
362
  .attr("aria-labelledby", oAccount.getId() + "-credit-text")
355
363
  .openEnd();
356
- fnWriteColumn(oAccount.getCredit(), false);
364
+ fnWriteColumn(oAccount.getCredit(),false);
357
365
  oRm.close("div");
358
366
  }
359
367
 
@@ -374,6 +382,8 @@ sap.ui.define([
374
382
  .close("div");
375
383
  oRm.openStart("div")
376
384
  .class("sapSuiteUiCommonsAccountClosingHeader")
385
+ .attr("aria-labelledby",oAccount._getAriaRowForTAccount().getId())
386
+ .attr("tabindex","0")
377
387
  .openEnd();
378
388
  oRm.openStart("span")
379
389
  .attr("id", oAccount.getId() + "-closing-debit-text")
@@ -387,6 +397,10 @@ sap.ui.define([
387
397
  .openEnd()
388
398
  .text(fnCountBalance(false) + " " + sUnit)
389
399
  .close("span");
400
+ oRm.openStart("div")
401
+ .class("sapSuiteUiCommonsAccountFocus")
402
+ .openEnd();
403
+ oRm.close("div");
390
404
  oRm.close("div");
391
405
  }
392
406
 
@@ -455,6 +469,32 @@ sap.ui.define([
455
469
  }
456
470
  };
457
471
 
472
+ TAccount.prototype.onfocusin = function (oEvent) {
473
+ const oCurrentTarget = oEvent.target;
474
+
475
+ const bIsOpeningHeader = oCurrentTarget.classList.contains("sapSuiteUiCommonsAccountOpeningHeader");
476
+ const bIsClosingHeader = oCurrentTarget.classList.contains("sapSuiteUiCommonsAccountClosingHeader");
477
+ if (!(bIsOpeningHeader || bIsClosingHeader)) {
478
+ return;
479
+ }
480
+
481
+ const sDebitText = oCurrentTarget.childNodes[0]?.innerText;
482
+ const sCreditText = oCurrentTarget.childNodes[1]?.innerText;
483
+
484
+ let sAriaText = "";
485
+
486
+ if (sDebitText) {
487
+ sAriaText += (bIsOpeningHeader) ? oResourceBundle.getText("TACCOUNT_DEBIT_NUMBER",[sDebitText]) : oResourceBundle.getText("TACCOUNT_TOTAL_DEBIT_NUMBER",[sDebitText]);
488
+ sAriaText += " ";
489
+ }
490
+
491
+ if (sCreditText) {
492
+ sAriaText += (bIsOpeningHeader) ? oResourceBundle.getText("TACCOUNT_CREDIT_NUMBER",[sCreditText]) : oResourceBundle.getText("TACCOUNT_TOTAL_CREDIT_NUMBER",[sCreditText]);
493
+ }
494
+
495
+ this._getAriaRowForTAccount().setText(sAriaText);
496
+ };
497
+
458
498
  /* =========================================================== */
459
499
  /* Public methods */
460
500
  /* =========================================================== */
@@ -482,7 +522,7 @@ sap.ui.define([
482
522
 
483
523
  this._oItemNavigation.setRootDomRef(this.$().find(".sapSuiteUiCommonsAccountTBody")[0]);
484
524
  this._oItemNavigation.setItemDomRefs(this.$().find(".sapSuiteUiCommonsAccountItem"));
485
- this._oItemNavigation.setCycling(true);
525
+ this._oItemNavigation.setCycling(false);
486
526
  };
487
527
 
488
528
  TAccount.prototype._isInGroup = function () {
@@ -573,6 +613,17 @@ sap.ui.define([
573
613
  return this._oMarkText;
574
614
  };
575
615
 
616
+ TAccount.prototype._getAriaRowForTAccount = function () {
617
+ if (!this._oTableRowText) {
618
+ this._oTableRowText = new InvisibleText({
619
+ id: this.getId() + "-row-text"
620
+ }
621
+ );
622
+ this.addDependent(this._oTableRowText);
623
+ }
624
+ return this._oTableRowText;
625
+ };
626
+
576
627
  TAccount.prototype._getSum = function () {
577
628
  if (this._iSum == null) {
578
629
  var iSum = new BigNumber("0");
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  * @extends sap.ui.core.Control
42
42
  *
43
43
  * @author SAP SE
44
- * @version 1.139.0
44
+ * @version 1.141.0
45
45
  * @since 1.58.0
46
46
  *
47
47
  * @constructor
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  * @extends sap.ui.core.Control
42
42
  *
43
43
  * @author SAP SE
44
- * @version 1.139.0
44
+ * @version 1.141.0
45
45
  * @since 1.58.0
46
46
  *
47
47
  * @constructor
@@ -101,8 +101,9 @@ sap.ui.define([
101
101
  sValue = TAccountUtils.formatCurrency(new BigNumber(oItem.getValue()), sUnit, oPanelParent ? oPanelParent.getMaxFractionDigits() : 0),
102
102
  sTextValue = sValue + " " + sUnit;
103
103
 
104
- oRm.openStart("div", oItem).attr("tabindex", "0");
104
+ oRm.openStart("div", oItem);
105
105
  oRm.class("sapSuiteUiCommonsAccountItem");
106
+ oRm.attr("tabindex","-1");
106
107
 
107
108
  if (oItem.getGroup()) {
108
109
  oRm.attr("group", oItem.getGroup());
@@ -122,7 +123,7 @@ sap.ui.define([
122
123
  if (sColor) {
123
124
  if (oSemanticColorType.hasOwnProperty(sColor)) {
124
125
  oRm.class("backgroundSemanticColor" + sColor);
125
- }
126
+ }
126
127
  /**
127
128
  * @deprecated As of version 1.120
128
129
  */